@vitest/browser 3.0.8 → 3.1.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/context.d.ts +6 -4
- package/dist/client/.vite/manifest.json +6 -6
- package/dist/client/__vitest__/assets/{index-CV9H8iCm.css → index-Bne9c1R6.css} +1 -1
- package/dist/client/__vitest__/assets/{index-BAYvVM30.js → index-CsZqQx26.js} +5 -5
- package/dist/client/__vitest__/index.html +2 -2
- package/dist/client/__vitest_browser__/{orchestrator-C0dFtnHa.js → orchestrator-CqPXjvQE.js} +1 -1
- package/dist/client/__vitest_browser__/{tester-CHxkAhrF.js → tester-lo_P6U-u.js} +60 -2
- package/dist/client/__vitest_browser__/{utils-CBFLDkwI.js → utils-CNTxSNQV.js} +2 -25
- package/dist/client/orchestrator.html +2 -2
- package/dist/client/tester/tester.html +2 -2
- package/dist/context.js +82 -153
- package/dist/{index-fqTesRIH.js → index-DrTP5i7N.js} +13 -80
- package/dist/index.d.ts +103 -103
- package/dist/index.js +7 -6
- package/dist/locators/index.d.ts +41 -41
- package/dist/locators/index.js +1 -1
- package/dist/locators/playwright.js +74 -1
- package/dist/locators/preview.js +2 -1
- package/dist/locators/webdriverio.js +75 -3
- package/dist/utils-VCysLhWp.js +115 -0
- package/matchers.d.ts +2 -1
- package/package.json +9 -8
- package/providers/playwright.d.ts +2 -0
|
@@ -14,11 +14,11 @@ var DS=Object.defineProperty;var IS=(e,t,r)=>t in e?DS(e,t,{enumerable:!0,config
|
|
|
14
14
|
* @vue/runtime-dom v3.5.12
|
|
15
15
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
16
|
* @license MIT
|
|
17
|
-
**/let Ld;const kv=typeof window<"u"&&window.trustedTypes;if(kv)try{Ld=kv.createPolicy("vue",{createHTML:e=>e})}catch{}const ib=Ld?e=>Ld.createHTML(e):e=>e,Hk="http://www.w3.org/2000/svg",Bk="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,Cv=li&&li.createElement("template"),Wk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?li.createElementNS(Hk,e):t==="mathml"?li.createElementNS(Bk,e):r?li.createElement(e,{is:r}):li.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>li.createTextNode(e),createComment:e=>li.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>li.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Cv.innerHTML=ib(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Cv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Oi="transition",wl="animation",Xl=Symbol("_vtc"),ob={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qk=tn({},xy,ob),Uk=e=>(e.displayName="Transition",e.props=qk,e),jk=Uk((e,{slots:t})=>ya(P_,Vk(e),t)),wo=(e,t=[])=>{He(e)?e.forEach(r=>r(...t)):e&&e(...t)},Tv=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function Vk(e){const t={};for(const R in e)R in ob||(t[R]=e[R]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=Gk(s),N=E&&E[0],L=E&&E[1],{onBeforeEnter:M,onEnter:T,onEnterCancelled:P,onLeave:A,onLeaveCancelled:B,onBeforeAppear:G=M,onAppear:U=T,onAppearCancelled:Q=P}=t,J=(R,$,O)=>{xo(R,$?v:d),xo(R,$?p:f),O&&O()},Y=(R,$)=>{R._isLeaving=!1,xo(R,m),xo(R,w),xo(R,b),$&&$()},ee=R=>($,O)=>{const _=R?U:T,D=()=>J($,R,O);wo(_,[$,D]),Ev(()=>{xo($,R?h:c),Pi($,R?v:d),Tv(_)||Av($,o,N,D)})};return tn(t,{onBeforeEnter(R){wo(M,[R]),Pi(R,c),Pi(R,f)},onBeforeAppear(R){wo(G,[R]),Pi(R,h),Pi(R,p)},onEnter:ee(!1),onAppear:ee(!0),onLeave(R,$){R._isLeaving=!0;const O=()=>Y(R,$);Pi(R,m),Pi(R,b),Yk(),Ev(()=>{R._isLeaving&&(xo(R,m),Pi(R,w),Tv(A)||Av(R,o,L,O))}),wo(A,[R,O])},onEnterCancelled(R){J(R,!1),wo(P,[R])},onAppearCancelled(R){J(R,!0),wo(Q,[R])},onLeaveCancelled(R){Y(R),wo(B,[R])}})}function Gk(e){if(e==null)return null;if(St(e))return[Gf(e.enter),Gf(e.leave)];{const t=Gf(e);return[t,t]}}function Gf(e){return q0(e)}function Pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xl]||(e[Xl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Xl];r&&(r.delete(t),r.size||(e[Xl]=void 0))}function Ev(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kk=0;function Av(e,t,r,o){const s=e._endId=++Kk,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Xk(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function Xk(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=Mv(s,c),d=o(`${wl}Delay`),h=o(`${wl}Duration`),p=Mv(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===wl?p>0&&(v=wl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:wl:null,b=v?v===Oi?c.length:h.length:0);const w=v===Oi&&/\b(transform|all)(,|$)/.test(o(`${Oi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Mv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Lv(r)+Lv(e[o])))}function Lv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Yk(){return document.body.offsetHeight}function Zk(e,t,r){const o=e[Xl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const jc=Symbol("_vod"),sb=Symbol("_vsh"),ji={beforeMount(e,{value:t},{transition:r}){e[jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):xl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),xl(e,!0),o.enter(e)):o.leave(e,()=>{xl(e,!1)}):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[jc]:"none",e[sb]=!t}const Jk=Symbol(""),Qk=/(^|;)\s*display\s*:/;function eC(e,t,r){const o=e.style,s=Rt(r);let c=!1;if(r&&!s){if(t)if(Rt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ec(o,d,"")}else for(const f in t)r[f]==null&&Ec(o,f,"");for(const f in r)f==="display"&&(c=!0),Ec(o,f,r[f])}else if(s){if(t!==r){const f=o[Jk];f&&(r+=";"+f),o.cssText=r,c=Qk.test(r)}}else t&&e.removeAttribute("style");jc in e&&(e[jc]=c?o.display:"",e[sb]&&(o.display="none"))}const Nv=/\s*!important$/;function Ec(e,t,r){if(He(r))r.forEach(o=>Ec(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=tC(e,t);Nv.test(r)?e.setProperty(vi(o),r.replace(Nv,""),"important"):e[o]=r}}const $v=["Webkit","Moz","ms"],Kf={};function tC(e,t){const r=Kf[t];if(r)return r;let o=tr(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=pu(o);for(let s=0;s<$v.length;s++){const c=$v[s]+o;if(c in e)return Kf[t]=c}return t}const Ov="http://www.w3.org/1999/xlink";function Pv(e,t,r,o,s,c=YS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Ov,t.slice(6,t.length)):e.setAttributeNS(Ov,t,r):r==null||c&&!U0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Tr(r)?String(r):r)}function Rv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?ib(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=U0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Co(e,t,r,o){e.addEventListener(t,r,o)}function nC(e,t,r,o){e.removeEventListener(t,r,o)}const zv=Symbol("_vei");function rC(e,t,r,o,s=null){const c=e[zv]||(e[zv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=iC(t);if(o){const p=c[t]=lC(o,s);Co(e,d,p,h)}else f&&(nC(e,d,f,h),c[t]=void 0)}}const Dv=/(?:Once|Passive|Capture)$/;function iC(e){let t;if(Dv.test(e)){t={};let o;for(;o=e.match(Dv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vi(e.slice(2)),t]}let Xf=0;const oC=Promise.resolve(),sC=()=>Xf||(oC.then(()=>Xf=0),Xf=Date.now());function lC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Er(aC(o,r.value),t,5,[o])};return r.value=e,r.attached=sC(),r}function aC(e,t){if(He(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Iv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Zk(e,o,f):t==="style"?eC(e,r,o):fu(t)?fh(t)||rC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uC(e,t,o,f))?(Rv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Rt(o))?Rv(e,tr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Pv(e,t,o,f))};function uC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Iv(t)&&Ve(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Iv(t)&&Rt(r)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?r=>kc(t,r):t};function fC(e){e.target.composing=!0}function Fv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Cs=Symbol("_assign"),dC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Cs]=Vc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=gd(d)),e[Cs](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",fC),Co(e,"compositionend",Fv),Co(e,"change",Fv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Cs]=Vc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?gd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},lb={deep:!0,created(e,t,r){e[Cs]=Vc(r),Co(e,"change",()=>{const o=e._modelValue,s=hC(e),c=e.checked,f=e[Cs];if(He(o)){const d=j0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(du(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(ab(e,c))})},mounted:Hv,beforeUpdate(e,t,r){e[Cs]=Vc(r),Hv(e,t,r)}};function Hv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(He(t))s=j0(t,o.props.value)>-1;else if(du(t))s=t.has(o.props.value);else{if(t===r)return;s=vu(t,ab(e,!0))}e.checked!==s&&(e.checked=s)}function hC(e){return"_value"in e?e._value:e.value}function ab(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const pC=["ctrl","shift","alt","meta"],gC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>pC.some(r=>e[`${r}Key`]&&!t.includes(r))},Ac=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=gC[t[f]];if(d&&d(s,t))return}return e(s,...c)})},vC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Nd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=vi(s.key);if(t.some(f=>f===c||vC[f]===c))return e(s)})},mC=tn({patchProp:cC},Wk);let Bv;function yC(){return Bv||(Bv=uk(mC))}const cb=(...e)=>{const t=yC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=wC(o);if(!s)return;const c=t._component;!Ve(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,bC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function bC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wC(e){return Rt(e)?document.querySelector(e):e}const yi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},xC={};function SC(e,t){const r=Oo("RouterView");return oe(),nt(r)}const _C=yi(xC,[["render",SC]]),kC=["top","right","bottom","left"],Wv=["start","end"],qv=kC.reduce((e,t)=>e.concat(t,t+"-"+Wv[0],t+"-"+Wv[1]),[]),Yl=Math.min,ko=Math.max,CC={left:"right",right:"left",bottom:"top",top:"bottom"},TC={start:"end",end:"start"};function $d(e,t,r){return ko(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Gr(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function ub(e){return e==="x"?"y":"x"}function Lh(e){return e==="y"?"height":"width"}function ba(e){return["top","bottom"].includes(Gr(e))?"y":"x"}function Nh(e){return ub(ba(e))}function fb(e,t,r){r===void 0&&(r=!1);const o=kr(e),s=Nh(e),c=Lh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function EC(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>TC[t])}function AC(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function MC(e,t,r,o){const s=kr(e);let c=AC(Gr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>CC[t])}function LC(e){return{top:0,right:0,bottom:0,left:0,...e}}function db(e){return typeof e!="number"?LC(e):{top:e,right:e,bottom:e,left:e}}function Pl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Uv(e,t,r){let{reference:o,floating:s}=e;const c=ba(t),f=Nh(t),d=Lh(f),h=Gr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(kr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const NC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Uv(p,o,h),b=o,w={},E=0;for(let N=0;N<d.length;N++){const{name:L,fn:M}=d[N],{x:T,y:P,data:A,reset:B}=await M({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=T??v,m=P??m,w={...w,[L]:{...w[L],...A}},B&&E<=50&&(E++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(p=B.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):B.rects),{x:v,y:m}=Uv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Au(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=zo(t,e),E=db(w),L=d[b?m==="floating"?"reference":"floating":m],M=Pl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(L)))==null||r?L:L.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),T=m==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),A=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=Pl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:P,strategy:h}):T);return{top:(M.top-B.top+E.top)/A.y,bottom:(B.bottom-M.bottom+E.bottom)/A.y,left:(M.left-B.left+E.left)/A.x,right:(B.right-M.right+E.right)/A.x}}const $C=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const m=db(v),b={x:r,y:o},w=Nh(s),E=Lh(w),N=await f.getDimensions(p),L=w==="y",M=L?"top":"left",T=L?"bottom":"right",P=L?"clientHeight":"clientWidth",A=c.reference[E]+c.reference[w]-b[w]-c.floating[E],B=b[w]-c.reference[w],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=G?G[P]:0;(!U||!await(f.isElement==null?void 0:f.isElement(G)))&&(U=d.floating[P]||c.floating[E]);const Q=A/2-B/2,J=U/2-N[E]/2-1,Y=Yl(m[M],J),ee=Yl(m[T],J),R=Y,$=U-N[E]-ee,O=U/2-N[E]/2+Q,_=$d(R,O,$),D=!h.arrow&&kr(s)!=null&&O!==_&&c.reference[E]/2-(O<R?Y:ee)-N[E]/2<0,j=D?O<R?O-R:O-$:0;return{[w]:b[w]+j,data:{[w]:_,centerOffset:O-_-j,...D&&{alignmentOffset:j}},reset:D}}});function OC(e,t,r){return(e?[...r.filter(s=>kr(s)===e),...r.filter(s=>kr(s)!==e)]:r.filter(s=>Gr(s)===s)).filter(s=>e?kr(s)===e||(t?Gc(s)!==s:!1):!0)}const PC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=qv,autoAlignment:w=!0,...E}=zo(e,t),N=m!==void 0||b===qv?OC(m||null,w,b):b,L=await Au(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,T=N[M];if(T==null)return{};const P=fb(T,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==T)return{reset:{placement:N[0]}};const A=[L[Gr(T)],L[P[0]],L[P[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:T,overflows:A}],G=N[M+1];if(G)return{data:{index:M+1,overflows:B},reset:{placement:G}};const U=B.map(Y=>{const ee=kr(Y.placement);return[Y.placement,ee&&v?Y.overflows.slice(0,2).reduce((R,$)=>R+$,0):Y.overflows[0],Y.overflows]}).sort((Y,ee)=>Y[1]-ee[1]),J=((s=U.filter(Y=>Y[2].slice(0,kr(Y[0])?2:3).every(ee=>ee<=0))[0])==null?void 0:s[0])||U[0][0];return J!==d?{data:{index:M+1,overflows:B},reset:{placement:J}}:{}}}},RC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...L}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Gr(s),T=Gr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),A=b||(T||!N?[Kc(d)]:EC(d));!b&&E!=="none"&&A.push(...MC(d,N,E,P));const B=[d,...A],G=await Au(t,L),U=[];let Q=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&U.push(G[M]),m){const R=fb(s,f,P);U.push(G[R[0]],G[R[1]])}if(Q=[...Q,{placement:s,overflows:U}],!U.every(R=>R<=0)){var J,Y;const R=(((J=c.flip)==null?void 0:J.index)||0)+1,$=B[R];if($)return{data:{index:R,overflows:Q},reset:{placement:$}};let O=(Y=Q.filter(_=>_.overflows[0]<=0).sort((_,D)=>_.overflows[1]-D.overflows[1])[0])==null?void 0:Y.placement;if(!O)switch(w){case"bestFit":{var ee;const _=(ee=Q.map(D=>[D.placement,D.overflows.filter(j=>j>0).reduce((j,re)=>j+re,0)]).sort((D,j)=>D[1]-j[1])[0])==null?void 0:ee[0];_&&(O=_);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function zC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Gr(r),d=kr(r),h=ba(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const DC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await zC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},IC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:L=>{let{x:M,y:T}=L;return{x:M,y:T}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),m=ba(Gr(s)),b=ub(m);let w=p[b],E=p[m];if(c){const L=b==="y"?"top":"left",M=b==="y"?"bottom":"right",T=w+v[L],P=w-v[M];w=$d(T,w,P)}if(f){const L=m==="y"?"top":"left",M=m==="y"?"bottom":"right",T=E+v[L],P=E-v[M];E=$d(T,E,P)}const N=d.fn({...t,[b]:w,[m]:E});return{...N,data:{x:N.x-r,y:N.y-o}}}}},FC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await Au(t,d),p=Gr(r),v=kr(r),m=ba(r)==="y",{width:b,height:w}=o.floating;let E,N;p==="top"||p==="bottom"?(E=p,N=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(N=p,E=v==="end"?"top":"bottom");const L=w-h[E],M=b-h[N],T=!t.middlewareData.shift;let P=L,A=M;if(m){const G=b-h.left-h.right;A=v||T?Yl(M,G):G}else{const G=w-h.top-h.bottom;P=v||T?Yl(L,G):G}if(T&&!v){const G=ko(h.left,0),U=ko(h.right,0),Q=ko(h.top,0),J=ko(h.bottom,0);m?A=b-2*(G!==0||U!==0?G+U:ko(h.left,h.right)):P=w-2*(Q!==0||J!==0?Q+J:ko(h.top,h.bottom))}await f({...t,availableWidth:A,availableHeight:P});const B=await s.getDimensions(c.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function sr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){return sr(e).getComputedStyle(e)}const jv=Math.min,Rl=Math.max,Xc=Math.round;function hb(e){const t=Ur(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return gb(e)?(e.nodeName||"").toLowerCase():""}let uc;function pb(){if(uc)return uc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(uc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),uc):navigator.userAgent}function jr(e){return e instanceof sr(e).HTMLElement}function Ki(e){return e instanceof sr(e).Element}function gb(e){return e instanceof sr(e).Node}function Vv(e){return typeof ShadowRoot>"u"?!1:e instanceof sr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function HC(e){return["table","td","th"].includes(Ji(e))}function Od(e){const t=/firefox/i.test(pb()),r=Ur(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function vb(){return!/^((?!chrome|android).)*safari/i.test(pb())}function $h(e){return["html","body","#document"].includes(Ji(e))}function mb(e){return Ki(e)?e:e.contextElement}const yb={x:1,y:1};function Ts(e){const t=mb(e);if(!jr(t))return yb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=hb(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=mb(e);let h=yb;t&&(o?Ki(o)&&(h=Ts(o)):h=Ts(e));const p=d?sr(d):window,v=!vb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const N=sr(d),L=o&&Ki(o)?sr(o):o;let M=N.frameElement;for(;M&&o&&L!==N;){const T=Ts(M),P=M.getBoundingClientRect(),A=getComputedStyle(M);P.x+=(M.clientLeft+parseFloat(A.paddingLeft))*T.x,P.y+=(M.clientTop+parseFloat(A.paddingTop))*T.y,m*=T.x,b*=T.y,w*=T.x,E*=T.y,m+=P.x,b+=P.y,M=sr(M).frameElement}}return{width:w,height:E,top:b,right:m+w,bottom:b+E,left:m,x:m,y:b}}function Xi(e){return((gb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lu(e){return Ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bb(e){return Zl(Xi(e)).left+Lu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vv(e)&&e.host||Xi(e);return Vv(t)?t.host:t}function wb(e){const t=Jl(e);return $h(t)?t.ownerDocument.body:jr(t)&&Mu(t)?t:wb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=wb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=sr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function Gv(e,t,r){return t==="viewport"?Pl(function(o,s){const c=sr(o),f=Xi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=vb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Ki(t)?Pl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=jr(o)?Ts(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Pl(function(o){const s=Xi(o),c=Lu(o),f=o.ownerDocument.body,d=Rl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Rl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+bb(o);const v=-c.scrollTop;return Ur(f).direction==="rtl"&&(p+=Rl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Xi(e)))}function Kv(e){return jr(e)&&Ur(e).position!=="fixed"?e.offsetParent:null}function Xv(e){const t=sr(e);let r=Kv(e);for(;r&&HC(r)&&Ur(r).position==="static";)r=Kv(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Ur(r).position==="static"&&!Od(r))?t:r||function(o){let s=Jl(o);for(;jr(s)&&!$h(s);){if(Od(s))return s;s=Jl(s)}return null}(e)||t}function BC(e,t,r){const o=jr(t),s=Xi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Lu(t)),jr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=bb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const WC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Yc(p).filter(L=>Ki(L)&&Ji(L)!=="body"),w=null;const E=Ur(p).position==="fixed";let N=E?Jl(p):p;for(;Ki(N)&&!$h(N);){const L=Ur(N),M=Od(N);(E?M||w:M||L.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=L:b=b.filter(T=>T!==N),N=Jl(N)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Gv(t,v,s);return p.top=Rl(m.top,p.top),p.right=jv(m.right,p.right),p.bottom=jv(m.bottom,p.bottom),p.left=Rl(m.left,p.left),p},Gv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=jr(r),c=Xi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Ji(r)!=="body"||Mu(c))&&(f=Lu(r)),jr(r))){const p=Zl(r);d=Ts(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Ki,getDimensions:function(e){return jr(e)?hb(e):e.getBoundingClientRect()},getOffsetParent:Xv,getDocumentElement:Xi,getScale:Ts,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Xv,c=this.getDimensions;return{reference:BC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ur(e).direction==="rtl"},qC=(e,t,r)=>{const o=new Map,s={platform:WC,...r},c={...s.platform,_c:o};return NC(e,t,{...s,platform:c})},Yi={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Ql(e,t){let r=Yi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Yi.themes[r.$extend]||{}:(r=null,o=Yi[t]):r=null;while(r);return o}function UC(e){const t=[e];let r=Yi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Yi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Yv(e){const t=[e];let r=Yi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Yi.themes[r.$extend]||{}):r=null;while(r);return t}let ea=!1;if(typeof window<"u"){ea=!1;try{const e=Object.defineProperty({},"passive",{get(){ea=!0}});window.addEventListener("test",null,e)}catch{}}let xb=!1;typeof window<"u"&&typeof navigator<"u"&&(xb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Sb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Zv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Jv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Qv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Yf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Jn=[];let So=null;const em={};function tm(e){let t=em[e];return t||(t=em[e]=[]),t}let Pd=function(){};typeof window<"u"&&(Pd=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const Zf="__floating-vue__popper",_b=()=>ut({name:"VPopper",provide(){return{[Zf]:{parentPopper:this}}},inject:{[Zf]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>Sb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Pd,Boolean],default:at("container")},boundary:{type:[String,Pd],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Zf])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(DC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(PC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(IC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(RC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push($C({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(FC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await qC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),So&&this.instantMove&&So.instantMove&&So!==this.parentPopper){So.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(So=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Yf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Jn.length;r++)t=Jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Yv(this.theme))tm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Yf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Qv(Jn,this),Jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Yv(this.theme)){const o=tm(r);Qv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}So===this&&(So=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Yf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Zv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Zv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Jv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Jv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ea?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(zl>=e.left&&zl<=e.right&&Dl>=e.top&&Dl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=zl-Di,o=Dl-Ii,s=t.left+t.width/2-Di+(t.top+t.height/2)-Ii+t.width+t.height,c=Di+r*s,f=Ii+o*s;return fc(Di,Ii,c,f,t.left,t.top,t.left,t.bottom)||fc(Di,Ii,c,f,t.left,t.top,t.right,t.top)||fc(Di,Ii,c,f,t.right,t.top,t.right,t.bottom)||fc(Di,Ii,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(xb){const e=ea?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>nm(t),e),document.addEventListener("touchend",t=>rm(t,!0),e)}else window.addEventListener("mousedown",e=>nm(e),!0),window.addEventListener("click",e=>rm(e,!1),!0);window.addEventListener("resize",GC)}function nm(e,t){for(let r=0;r<Jn.length;r++){const o=Jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function rm(e,t){jC(e,t)}function jC(e,t){const r={};for(let o=Jn.length-1;o>=0;o--){const s=Jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&im(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&im(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function im(e,t,r){return r.closeAllPopover||r.closePopover&&t||VC(e,r)&&!t}function VC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function GC(){for(let e=0;e<Jn.length;e++)Jn[e].$_computePosition()}function om(){for(let e=0;e<Jn.length;e++)Jn[e].hide()}let Di=0,Ii=0,zl=0,Dl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Di=zl,Ii=Dl,zl=e.clientX,Dl=e.clientY},ea?{passive:!0}:void 0);function fc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const KC={extends:_b()},Nu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function XC(e,t,r,o,s,c){return oe(),ye("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[mn(e.$slots,"default",KS(eb(e.slotData)))],2)}const YC=Nu(KC,[["render",XC]]);function ZC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Mc;function Rd(){Rd.init||(Rd.init=!0,Mc=ZC()!==-1)}var $u={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Rd(),Pt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Mc&&this.$el.appendChild(e),e.data="about:blank",Mc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Mc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const JC=by();my("data-v-b329ee4c");const QC={class:"resize-observer",tabindex:"-1"};yy();const eT=JC((e,t,r,o,s,c)=>(oe(),nt("div",QC)));$u.render=eT;$u.__scopeId="data-v-b329ee4c";$u.__file="src/components/ResizeObserver.vue";const kb=(e="theme")=>({computed:{themeClass(){return UC(this[e])}}}),tT=ut({name:"VPopperContent",components:{ResizeObserver:$u},mixins:[kb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),nT=["id","aria-hidden","tabindex","data-popper-placement"],rT={ref:"inner",class:"v-popper__inner"},iT=te("div",{class:"v-popper__arrow-outer"},null,-1),oT=te("div",{class:"v-popper__arrow-inner"},null,-1),sT=[iT,oT];function lT(e,t,r,o,s,c){const f=Oo("ResizeObserver");return oe(),ye("div",{id:e.popperId,ref:"popover",class:it(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:en(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Nd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[te("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),te("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[te("div",rT,[e.mounted?(oe(),ye(ct,{key:0},[te("div",null,[mn(e.$slots,"default")]),e.handleResize?(oe(),nt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ke("",!0)],64)):Ke("",!0)],512),te("div",{ref:"arrow",class:"v-popper__arrow-container",style:en(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},sT,4)],4)],46,nT)}const Cb=Nu(tT,[["render",lT]]),Tb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let zd=function(){};typeof window<"u"&&(zd=window.Element);const aT=ut({name:"VPopperWrapper",components:{Popper:YC,PopperContent:Cb},mixins:[Tb,kb("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,zd,Boolean],default:void 0},boundary:{type:[String,zd],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function cT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),nt(d,di({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:E,handleResize:N,onResize:L,classes:M,result:T})=>[mn(e.$slots,"default",{shown:p,show:w,hide:E}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":N,classes:M,result:T,onHide:E,onResize:L},{default:rt(()=>[mn(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Oh=Nu(aT,[["render",cT]]);({...Oh});({...Oh});const uT={...Oh,name:"VTooltip",vPopperTheme:"tooltip"},fT=ut({name:"VTooltipDirective",components:{Popper:_b(),PopperContent:Cb},mixins:[Tb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),dT=["innerHTML"],hT=["textContent"];function pT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),nt(d,di({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:E,onResize:N,classes:L,result:M})=>[Oe(f,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:L,result:M,onHide:w,onResize:N},{default:rt(()=>[e.html?(oe(),ye("div",{key:0,innerHTML:e.finalContent},null,8,dT)):(oe(),ye("div",{key:1,textContent:Be(e.finalContent)},null,8,hT))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const gT=Nu(fT,[["render",pT]]),Eb="v-popper--has-tooltip";function vT(e,t){let r=e.placement;if(!r&&t)for(const o of Sb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Ab(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=vT(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Jf,ta,mT=0;function yT(){if(Jf)return;ta=je([]),Jf=cb({name:"VTooltipDirectiveApp",setup(){return{directives:ta}},render(){return this.directives.map(t=>ya(gT,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Jf.mount(e)}function Mb(e,t,r){yT();const o=je(Ab(e,t,r)),s=je(!1),c={id:mT++,options:o,shown:s};return ta.value.push(c),e.classList&&e.classList.add(Eb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ph(e){if(e.$_popper){const t=ta.value.indexOf(e.$_popper.item);t!==-1&&ta.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Eb)}function sm(e,{value:t,modifiers:r}){const o=Ab(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))Ph(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Mb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const bT={beforeMount:sm,updated:sm,beforeUnmount(e){Ph(e)}},wT=bT,Lb=uT,Nb={options:Yi};function $b(e){return e!=null}function Rh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const xT=/^[A-Za-z]:\//;function ST(e=""){return e&&e.replace(/\\/g,"/").replace(xT,t=>t.toUpperCase())}const _T=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,lm=/^\/([A-Za-z]:)?$/;function kT(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const am=function(...e){e=e.map(o=>ST(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:kT();!s||s.length===0||(t=`${s}/${t}`,r=cm(s))}return t=CT(t,!r),r&&!cm(t)?`/${t}`:t.length>0?t:"."};function CT(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const cm=function(e){return _T.test(e)},TT=function(e,t){const r=am(e).replace(lm,"$1").split("/"),o=am(t).replace(lm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function ET(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Ob(e,t,r,o){const s=TT(t,e),c={id:AT(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function AT(e,t){return ET(`${e}${t||""}`)}function Pb(e){return na(e)}function na(e){return e.type==="test"}function Rb(e){const t=[],r=Rh(e);for(const o of r)if(na(o))t.push(o);else for(const s of o.tasks)if(na(s))t.push(s);else{const c=Rb(s);for(const f of c)t.push(f)}return t}function zh(e=[]){return Rh(e).flatMap(t=>na(t)?[t]:[t,...zh(t.tasks)])}function MT(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const LT=6e4;function zb(e){return e}const NT=zb,{clearTimeout:$T,setTimeout:OT}=globalThis,PT=Math.random.bind(Math);function RT(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=zb,deserialize:d=NT,resolver:h,bind:p="rpc",timeout:v=LT}=t,m=new Map;let b,w=!1;const E=new Proxy({},{get(M,T){if(T==="$functions")return e;if(T==="$close")return N;if(T==="then"&&!c.includes("then")&&!("then"in e))return;const P=(...B)=>{r(f({m:T,a:B,t:"q"}))};if(c.includes(T))return P.asEvent=P,P;const A=async(...B)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${T}"`);if(b)try{await b}finally{b=void 0}return new Promise((G,U)=>{var Y;const Q=DT();let J;v>=0&&(J=OT(()=>{var ee;try{throw(ee=t.onTimeoutError)==null||ee.call(t,T,B),new Error(`[birpc] timeout on calling "${T}"`)}catch(R){U(R)}m.delete(Q)},v),typeof J=="object"&&(J=(Y=J.unref)==null?void 0:Y.call(J))),m.set(Q,{resolve:G,reject:U,timeoutId:J,method:T}),r(f({m:T,a:B,i:Q,t:"q"}))})};return A.asEvent=P,A}});function N(){w=!0,m.forEach(({reject:M,method:T})=>{M(new Error(`[birpc] rpc is closed, cannot call "${T}"`))}),m.clear(),s(L)}async function L(M,...T){const P=d(M);if(P.t==="q"){const{m:A,a:B}=P;let G,U;const Q=h?h(A,e[A]):e[A];if(!Q)U=new Error(`[birpc] function "${A}" not found`);else try{G=await Q.apply(p==="rpc"?E:e,B)}catch(J){U=J}P.i&&(U&&t.onError&&t.onError(U,A,B),r(f({t:"s",i:P.i,r:G,e:U}),...T))}else{const{i:A,r:B,e:G}=P,U=m.get(A);U&&($T(U.timeoutId),G?U.reject(G):U.resolve(B)),m.delete(A)}}return b=o(L),E}const zT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function DT(e=21){let t="",r=e;for(;r--;)t+=zT[PT()*64|0];return t}const{parse:Db,stringify:IT}=JSON,{keys:FT}=Object,ra=String,Ib="string",um={},Zc="object",Fb=(e,t)=>t,HT=e=>e instanceof ra?ra(e):e,BT=(e,t)=>typeof t===Ib?new ra(t):t,Hb=(e,t,r,o)=>{const s=[];for(let c=FT(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ra){const v=e[p];typeof v===Zc&&!t.has(v)?(t.add(v),r[h]=um,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==um&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Hb.apply(null,h))}return r},fm=(e,t,r)=>{const o=ra(t.push(r)-1);return e.set(r,o),o},Dd=(e,t)=>{const r=Db(e,BT).map(HT),o=r[0],s=t||Fb,c=typeof o===Zc&&o?Hb(r,new Set,o,s):o;return s.call({"":c},"",c)},Bb=(e,t,r)=>{const o=t&&typeof t===Zc?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Fb,s=new Map,c=[],f=[];let d=+fm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=IT(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case Zc:if(b===null)return b;case Ib:return s.get(b)||fm(s,c,b)}return b}},WT=e=>Db(Bb(e));class Wb{constructor(){us(this,"filesMap",new Map);us(this,"pathsSet",new Set);us(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Ob(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function Dh(e){return Rb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function qT(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Wb,waitForConnection:M,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(T){var P;T==null||T.forEach(([A,B])=>{v.state.clearFiles({config:A},[B])}),(P=r.onSpecsCollected)==null||P.call(r,T)},onPathsCollected(T){var P;v.state.collectPaths(T),(P=r.onPathsCollected)==null||P.call(r,T)},onCollected(T){var P;v.state.collectFiles(T),(P=r.onCollected)==null||P.call(r,T)},onTaskUpdate(T){var P;v.state.updateTasks(T),(P=r.onTaskUpdate)==null||P.call(r,T)},onUserConsoleLog(T){var P;v.state.updateUserLog(T),(P=r.onUserConsoleLog)==null||P.call(r,T)},onFinished(T,P){var A;(A=r.onFinished)==null||A.call(r,T,P)},onFinishedReportCoverage(){var T;(T=r.onFinishedReportCoverage)==null||T.call(r)}},w={post:T=>v.ws.send(T),on:T=>m=T,serialize:T=>Bb(T,(P,A)=>A instanceof Error?{name:A.name,message:A.message,stack:A.stack}:A),deserialize:Dd,onTimeoutError(T){throw new Error(`[vitest-ws-client]: Timeout calling "${T}"`)}};v.rpc=RT(b,w);let E;function N(T=!1){T&&(p=c),v.ws=new h(e),L()}function L(){E=new Promise((T,P)=>{var B,G;const A=(G=(B=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:B.unref)==null?void 0:G.call(B);v.ws.OPEN===v.ws.readyState&&T(),v.ws.addEventListener("open",()=>{p=c,T(),clearTimeout(A)})}),v.ws.addEventListener("message",T=>{m(T.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}L();function M(){return E}return v}function Ih(e){return K0()?(QS(e),!0):!1}const Qf=new WeakMap,UT=(...e)=>{var t;const r=e[0],o=(t=Hs())==null?void 0:t.proxy;if(o==null&&!Oy())throw new Error("injectLocal must be called in setup");return o&&Qf.has(o)&&r in Qf.get(o)?Qf.get(o)[r]:qr(...e)},jT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const VT=Object.prototype.toString,GT=e=>VT.call(e)==="[object Object]",Jc=()=>{};function qb(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Ub=e=>e();function jb(e,t={}){let r,o,s=Jc;const c=h=>{clearTimeout(h),s(),s=Jc};let f;return h=>{const p=Ut(e),v=Ut(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function KT(e=Ub,t={}){const{initialState:r="active"}=t,o=Vb(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:ha(o),pause:s,resume:c,eventFilter:f}}function dm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function hm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function XT(e){return Hs()}function ed(e){return Array.isArray(e)?e:[e]}function Vb(...e){if(e.length!==1)return pa(...e);const t=e[0];return typeof t=="function"?ha(fy(()=>({get:t,set:Jc}))):je(t)}function dc(e,t=200,r={}){return qb(jb(t,r),e)}function Gb(e,t,r={}){const{eventFilter:o=Ub,...s}=r;return Et(e,qb(o,t),s)}function Kb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=KT(o,{initialState:s});return{stop:Gb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Fh(e,t=!0,r){XT()?Fs(e,r):t?e():Pt(e)}function Id(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:N}={}){let L=null;const T=[new Promise(P=>{L=Et(e,A=>{m(A)!==t&&(L?L():Pt(()=>L==null?void 0:L()),P(A))},{flush:b,deep:w,immediate:!0})})];return E!=null&&T.push(dm(E,N).then(()=>Ut(e)).finally(()=>L==null?void 0:L())),Promise.race(T)}function o(m,b){if(!kt(m))return r(A=>A===m,b);const{flush:w="sync",deep:E=!1,timeout:N,throwOnTimeout:L}=b??{};let M=null;const P=[new Promise(A=>{M=Et([e,m],([B,G])=>{t!==(B===G)&&(M?M():Pt(()=>M==null?void 0:M()),A(B))},{flush:w,deep:E,immediate:!0})})];return N!=null&&P.push(dm(N,L).then(()=>Ut(e)).finally(()=>(M==null||M(),Ut(e)))),Promise.race(P)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const E=Array.from(w);return E.includes(m)||E.includes(Ut(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(Ut(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Id(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Id(e,!t)}}}function pm(e){return Id(e)}function YT(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=kt(e),c=je(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Ut(r);return c.value=c.value===h?Ut(o):h,c.value}}return s?f:[c,f]}function Hh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Gb(e,t,{...c,eventFilter:jb(o,{maxWait:s})})}function ZT(e,t,r){return Et(e,t,{...r,immediate:!0})}function JT(e,t,r){const o=Et(e,(...s)=>(Pt(()=>o()),t(...s)),r);return o}function QT(e,t,r){let o;kt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Jc}=o,h=On(!s),p=f?On(t):je(t);let v=0;return Eh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(N=>{m(()=>{c&&(c.value=!1),w||N()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ar=jT?window:void 0;function Qc(e){var t;const r=Ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Qi(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=ke(()=>{const d=ed(Ut(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=ZT(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>Qc(p)))!=null?h:[Ar].filter(p=>p!=null),ed(Ut(s.value?e[1]:e[0])),ed(W(s.value?e[2]:e[1])),Ut(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=GT(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,m)))))},{flush:"post"}),f=()=>{c(),r()};return Ih(r),f}function eE(){const e=On(!1),t=Hs();return t&&Fs(()=>{e.value=!0},t),e}function Xb(e){const t=eE();return ke(()=>(t.value,!!e()))}function tE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Yb(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Ar,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tE(t);return Qi(s,c,v=>{v.repeat&&Ut(d)||h(v)&&r(v)},f)}function nE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ar,once:c=!1}=t,f=On(!1),d=ke(()=>o?1e3/Ut(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Ih(b),{isActive:ha(f),pause:b,resume:m}}const rE=Symbol("vueuse-ssr-width");function iE(){const e=Oy()?UT(rE,null):null;return typeof e=="number"?e:void 0}function Zb(e,t={}){const{window:r=Ar,ssrWidth:o=iE()}=t,s=Xb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=je(typeof o=="number"),f=On(),d=On(!1),h=p=>{d.value=p.matches};return Eh(()=>{if(c.value){c.value=!s.value;const p=Ut(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=hm(b[1])),w&&E&&(E=o<=hm(w[1])),m?!E:E});return}s.value&&(f.value=r.matchMedia(Ut(e)),d.value=f.value.matches)}),Qi(f,"change",h,{passive:!0}),ke(()=>d.value)}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",oE=sE();function sE(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Jb(e,t){return oE[e]||t}function lE(e){return Zb("(prefers-color-scheme: dark)",e)}function aE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const cE={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},gm="vueuse-storage";function Qb(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Ar,eventFilter:b,onError:w=ee=>{console.error(ee)},initOnMounted:E}=o,N=(v?On:je)(typeof t=="function"?t():t),L=ke(()=>Ut(e));if(!r)try{r=Jb("getDefaultStorage",()=>{var ee;return(ee=Ar)==null?void 0:ee.localStorage})()}catch(ee){w(ee)}if(!r)return N;const M=Ut(t),T=aE(M),P=(s=o.serializer)!=null?s:cE[T],{pause:A,resume:B}=Kb(N,()=>U(N.value),{flush:c,deep:f,eventFilter:b});Et(L,()=>J(),{flush:c}),m&&d&&Fh(()=>{r instanceof Storage?Qi(m,"storage",J,{passive:!0}):Qi(m,gm,Y),E&&J()}),E||J();function G(ee,R){if(m){const $={key:L.value,oldValue:ee,newValue:R,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(gm,{detail:$}))}}function U(ee){try{const R=r.getItem(L.value);if(ee==null)G(R,null),r.removeItem(L.value);else{const $=P.write(ee);R!==$&&(r.setItem(L.value,$),G(R,$))}}catch(R){w(R)}}function Q(ee){const R=ee?ee.newValue:r.getItem(L.value);if(R==null)return h&&M!=null&&r.setItem(L.value,P.write(M)),M;if(!ee&&p){const $=P.read(R);return typeof p=="function"?p($,M):T==="object"&&!Array.isArray($)?{...M,...$}:$}else return typeof R!="string"?R:P.read(R)}function J(ee){if(!(ee&&ee.storageArea!==r)){if(ee&&ee.key==null){N.value=M;return}if(!(ee&&ee.key!==L.value)){A();try{(ee==null?void 0:ee.newValue)!==P.write(N.value)&&(N.value=Q(ee))}catch(R){w(R)}finally{ee?Pt(B):B()}}}}function Y(ee){J(ee.detail)}return N}const uE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ar,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=lE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Vb(o):Qb(f,o,c,{window:s,listenToStorageChanges:d})),N=ke(()=>E.value==="auto"?w.value:E.value),L=Jb("updateHTMLAttrs",(A,B,G)=>{const U=typeof A=="string"?s==null?void 0:s.document.querySelector(A):Qc(A);if(!U)return;const Q=new Set,J=new Set;let Y=null;if(B==="class"){const R=G.split(/\s/g);Object.values(m).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{R.includes($)?Q.add($):J.add($)})}else Y={key:B,value:G};if(Q.size===0&&J.size===0&&Y===null)return;let ee;v&&(ee=s.document.createElement("style"),ee.appendChild(document.createTextNode(uE)),s.document.head.appendChild(ee));for(const R of Q)U.classList.add(R);for(const R of J)U.classList.remove(R);Y&&U.setAttribute(Y.key,Y.value),v&&(s.getComputedStyle(ee).opacity,document.head.removeChild(ee))});function M(A){var B;L(t,r,(B=m[A])!=null?B:A)}function T(A){e.onChanged?e.onChanged(A,M):M(A)}Et(N,T,{flush:"post",immediate:!0}),Fh(()=>T(N.value));const P=ke({get(){return p?E.value:N.value},set(A){E.value=A}});return Object.assign(P,{store:E,system:w,state:N})}function dE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function hE(e,t,r={}){const{window:o=Ar,...s}=r;let c;const f=Xb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const m=Ut(e);return Array.isArray(m)?m.map(b=>Qc(b)):[Qc(m)]}),p=Et(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Ih(v),{isSupported:f,stop:v}}function Ou(e,t,r={}){const{window:o=Ar}=r;return Qb(e,t,o==null?void 0:o.localStorage,r)}function pE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ar}=t;if(!d)return er(r);const h=er({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const P=d.location.hash||"",A=P.indexOf("?");return A>0?P.slice(A):""}else return(d.location.hash||"").replace(/^#/,"")}function v(P){const A=P.toString();if(e==="history")return`${A?`?${A}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${A?`#${A}`:""}`;const B=d.location.hash||"#",G=B.indexOf("?");return G>0?`${d.location.search||""}${B.slice(0,G)}${A?`?${A}`:""}`:`${d.location.search||""}${B}${A?`?${A}`:""}`}function m(){return new URLSearchParams(p())}function b(P){const A=new Set(Object.keys(h));for(const B of P.keys()){const G=P.getAll(B);h[B]=G.length>1?G:P.get(B)||"",A.delete(B)}Array.from(A).forEach(B=>delete h[B])}const{pause:w,resume:E}=Kb(h,()=>{const P=new URLSearchParams("");Object.keys(h).forEach(A=>{const B=h[A];Array.isArray(B)?B.forEach(G=>P.append(A,G)):o&&B==null||s&&!B?P.delete(A):P.set(A,B)}),N(P,!1)},{deep:!0});function N(P,A){w(),A&&b(P),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(P)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(P)),E()}function L(){c&&N(m(),!0)}const M={passive:!0};Qi(d,"popstate",L,M),e!=="history"&&Qi(d,"hashchange",L,M);const T=m();return T.keys().next().value?b(T):Object.assign(h,r),h}function Bh(e={}){const{window:t=Ar,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=je(r),h=je(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:w}=t.visualViewport;d.value=Math.round(m*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Fh(p);const v={passive:!0};if(Qi("resize",p,v),t&&f==="visual"&&t.visualViewport&&Qi(t.visualViewport,"resize",p,v),s){const m=Zb("(orientation: portrait)");Et(m,()=>p())}return{width:d,height:h}}const Fd=On([]),Gn=On([]),Mr=Ou("vitest-ui_task-tree-opened",[],{shallow:!0}),eu=ke(()=>new Set(Mr.value)),cn=Ou("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Wn=je(cn.value.search),gE={"&":"&","<":"<",">":">",'"':""","'":"'"};function ew(e){return e.replace(/[&<>"']/g,t=>gE[t])}const vE=ke(()=>{const e=Wn.value.toLowerCase();return e.length?new RegExp(`(${ew(e)})`,"gi"):null}),tw=ke(()=>Wn.value.trim()!==""),Je=er({failed:cn.value.failed,success:cn.value.success,skipped:cn.value.skipped,onlyTests:cn.value.onlyTests}),Hd=ke(()=>!!(Je.failed||Je.success||Je.skipped)),Pu=On([]),Os=je(!1),vm=ke(()=>{const e=cn.value.expandAll;return Mr.value.length>0?e!==!0:e!==!1}),mE=ke(()=>{const e=tw.value,t=Hd.value,r=Je.onlyTests,o=Ee.summary.filesFailed,s=Ee.summary.filesSuccess,c=Ee.summary.filesSkipped,f=Ee.summary.filesRunning,d=Pu.value;return Ee.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function wa(e){return Object.hasOwnProperty.call(e,"tasks")}function yE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function nw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function bE(e){return e.type==="test"}function wE(e){return e.mode==="run"&&e.type==="test"}function Nn(e){return e.type==="file"}function pi(e){return e.type==="file"||e.type==="suite"}function xE(e=Ee.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ia(e,t=!1){var o,s,c,f,d;let r=Ee.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:eu.value.size>0&&eu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:nw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ee.nodes.set(e.id,r),Ee.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)xa(e.id,e.tasks[h],!0)}function rw(e,t){const r=Ee.nodes.get(e);if(!r||!pi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!wa(o)))return xa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function SE(e){const t=Ee.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Pb(r)||xa(t.parentId,r,!1)}function xa(e,t,r){var f,d,h,p,v;const o=Ee.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Ee.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):(Pb(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:eu.value.size>0&&eu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ee.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&wa(t)))for(let m=0;m<t.tasks.length;m++)xa(s.id,t.tasks[m],r)}function _E(e){const t=Ee.nodes.get(e);if(!t||!pi(t))return;const r=new Set(Mr.value);r.delete(t.id);const o=[...CE(t)];Mr.value=Array.from(r),Gn.value=o}function kE(){Bd(Ee.root.tasks);const e=[...Gn.value.filter(Nn)];Bd(e),Mr.value=[],cn.value.expandAll=!0,Gn.value=e}function Bd(e){for(const t of e)pi(t)&&(t.expanded=!1,Bd(t.tasks))}function*iw(e,t){if(t&&(yield e.id),pi(e))for(let r=0;r<e.tasks.length;r++)yield*iw(e.tasks[r],!0)}function*CE(e){const t=e.id,r=new Set(iw(e,!1));for(let o=0;o<Gn.value.length;o++){const s=Gn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Ru=je("idle"),gs=ke(()=>Ru.value==="idle"),Wi=je([]);function TE(e,t,r){return e?lw(e,t,r):!1}function Wh(e,t){const r=[...ow(e,t)];Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function*ow(e,t){for(const r of xE())yield*sw(r,e,t)}function*sw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))pi(b)?(s.set(b.id,m),Nn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Nn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...AE(c,r.onlyTests,o,d,f)].reverse(),p=Ee.nodes,v=new Set(h.filter(m=>{var b;return Nn(m)||pi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Nn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function EE(e,t,r,o,s){if(o){if(Nn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}function*AE(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=pi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ee.nodes.get(d.parentId);for(;p;)r.add(p.id),Nn(p)&&o.add(p.id),p=Ee.nodes.get(p.parentId);yield d;continue}if(h){const p=EE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ee.nodes.get(d.parentId);p&&Nn(p)&&o.add(p.id),yield d}}}function ME(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function lw(e,t,r){if(t.length===0||yE(e.name,t))if(r.success||r.failed||r.skipped){if(ME(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(bE(e)){let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}else if(Nn(e))t.add(e.id);else{t.add(e.id);let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}if(yield[o,e],pi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function mm(e,t,r){const o=mt.state.idMap.get(e.id);return o?lw(o,t,r):!1}function LE(e,t,r){const o=rw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)xa(s.id,p,!1);s.expanded=!0;const f=new Set(Mr.value);f.add(s.id);const d=new Set(sw(s,t,r)),h=[...OE(s,d)];Mr.value=Array.from(f),Gn.value=h}function NE(e,t){qh(Ee.root.tasks,!1);const r=[...ow(e,t)];cn.value.expandAll=!1,Mr.value=[],Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function $E(e,t){if(e.size)for(const r of Gn.value)e.has(r.id)&&(r.expanded=!0);else t&&qh(Gn.value.filter(Nn),!0)}function qh(e,t){for(const r of e)pi(r)&&(r.expanded=!0,qh(r.tasks,!1));t&&(cn.value.expandAll=!1,Mr.value=[])}function*OE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Gn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function PE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ia(s,t)),Fd.value=[...Ee.root.tasks],Wh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function RE(e){queueMicrotask(()=>{const t=Ee.pendingTasks,r=mt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function ym(e,t,r,o,s){e&&BE(r);const c=!e;queueMicrotask(()=>{t?IE(c):FE(c)}),queueMicrotask(()=>{WE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Fd.value&&Dh(Fd.value.map(f=>ar(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{HE(o,s,t)})}function*zE(){yield*Gn.value.filter(wE)}function DE(){const e=mt.state.idMap;let t;for(const r of zE())t=e.get(r.parentId),t&&wa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function IE(e){const t=mt.state.getFiles(),r=Ee.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ia(o[c],e),tu(o[c].tasks);const s=Ee.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=ar(f.id);if(!d)continue;ia(d,e);const h=d.tasks;h!=null&&h.length&&tu(d.tasks)}}function FE(e){const t=new Map(Ee.pendingTasks.entries());Ee.pendingTasks.clear();const r=Ee.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>ar(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ia(s,!1),tu(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Ee.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=ar(h.id);if(!p)continue;const v=t.get(p.id);v&&(ia(p,e),tu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function HE(e,t,r=!1){const o=cn.value.expandAll,s=o!==!0,c=new Set(Mr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{bm(e,t,r)}),Os.value||queueMicrotask(()=>{(Gn.value.length||r)&&(Os.value=!0)}),f&&(queueMicrotask(()=>{$E(c,r),s&&(cn.value.expandAll=!1)}),queueMicrotask(()=>{bm(e,t,r)}))}function bm(e,t,r){Wh(e,t),r&&(DE(),Ru.value="idle")}function tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],wa(t)?rw(t.id,!0):SE(t.id)}function BE(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function WE(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Ee.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,ar(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[b,w]of o){if(!w)continue;const E=r.get(b);E&&(E.mode=w.mode,E.setupDuration=w.setupDuration,E.prepareDuration=w.prepareDuration,E.environmentLoad=w.environmentLoad,E.collectDuration=w.collectDuration,E.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,E.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:N,success:L,skipped:M,total:T,ignored:P,todo:A}=aw(w);s.totalTests+=T,s.testsFailed+=N,s.testsSuccess+=L,s.testsSkipped+=M,s.testsTodo+=A,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function aw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of cw(e))(!r||TE(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function qE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>aw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*cw(e){const t=Rh(e);let r;for(let o=0;o<t.length;o++)r=t[o],na(r)?yield r:yield*cw(r.tasks)}class UE{constructor(t=[],r=!1,o=500,s={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},c=new Map,f=new Map,d=er({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){us(this,"rafCollector");us(this,"resumeEndRunId");this.projects=t,this.onTaskUpdateCalled=r,this.resumeEndTimeout=o,this.root=s,this.pendingTasks=c,this.nodes=f,this.summary=d,this.rafCollector=nE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r),PE(t,!0,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){RE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}):ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collectTestsTotal(t,r,o,s){return qE(t,r,o,s,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collapseNode(t){queueMicrotask(()=>{_E(t)})}expandNode(t){queueMicrotask(()=>{LE(t,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{kE()})}expandAllNodes(){queueMicrotask(()=>{NE(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}filterNodes(){queueMicrotask(()=>{Wh(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}}const Ee=new UE,Fr=je([414,896]),zu=pE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),eo=pa(zu,"file"),Yn=pa(zu,"view"),uw=pa(zu,"line"),fw=pa(zu,"test"),Ps=je(),Es=je(!0),to=je(!1),nu=je(!0),vs=ke(()=>{var e;return(e=Du.value)==null?void 0:e.coverage}),qd=ke(()=>{var e;return(e=vs.value)==null?void 0:e.enabled}),ms=ke(()=>qd.value&&!!vs.value.htmlReporter),wr=Ou("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Lo=Ou("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),vn=er({navigation:wr.value[0],details:{size:wr.value[1],browser:Lo.value[0],main:Lo.value[1]}}),wm=ke(()=>{var e;if(ms.value){const t=vs.value.reportsDirectory.lastIndexOf("/"),r=(e=vs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${vs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${vs.value.reportsDirectory.slice(t+1)}/index.html`}});Et(Ru,e=>{nu.value=e==="running"},{immediate:!0});function jE(){const e=eo.value;if(e&&e.length>0){const t=ar(e);t?(Ps.value=t,Es.value=!1,to.value=!1):JT(()=>mt.state.getFiles(),()=>{Ps.value=ar(e),Es.value=!1,to.value=!1})}return Es}function ru(e){Es.value=e,to.value=!1,e&&(Ps.value=void 0,eo.value="")}function dw({file:e,line:t,view:r,test:o}){eo.value=e,uw.value=t,Yn.value=r,fw.value=o,Ps.value=ar(e),ru(!1)}function VE(e){dw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function GE(){to.value=!0,Es.value=!1,Ps.value=void 0,eo.value=""}function KE(){vn.details.browser=100,vn.details.main=0,Lo.value=[100,0]}function XE(){vn.details.browser=33,vn.details.main=67,Lo.value=[33,67]}function YE(){vn.navigation=33,vn.details.size=67,wr.value=[33,67]}const ZE={setCurrentFileId(e){eo.value=e,Ps.value=ar(e),ru(!1)},async setIframeViewport(e,t){Fr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eA=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Cr=!!window.METADATA_PATH,tA=44,xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nA=new Uint8Array(64),hw=new Uint8Array(128);for(let e=0;e<xm.length;e++){const t=xm.charCodeAt(e);nA[e]=t,hw[t]=e}function Sl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=hw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Sm(e,t){return e.pos>=t?!1:e.peek()!==tA}class rA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function iA(e){const{length:t}=e,r=new rA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=Sl(r,s),s<b&&(m=!1),b=s,Sm(r,p)?(c=Sl(r,c),f=Sl(r,f),d=Sl(r,d),Sm(r,p)?(h=Sl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||oA(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function oA(e){e.sort(sA)}function sA(e,t){return e[0]-t[0]}const lA=/^[\w+.-]+:\/\//,aA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,cA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Wt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Wt||(Wt={}));function uA(e){return lA.test(e)}function fA(e){return e.startsWith("//")}function pw(e){return e.startsWith("/")}function dA(e){return e.startsWith("file:")}function _m(e){return/^[.?#]/.test(e)}function gc(e){const t=aA.exec(e);return gw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function hA(e){const t=cA.exec(e),r=t[2];return gw("file:","",t[1]||"","",pw(r)?r:"/"+r,t[3]||"",t[4]||"")}function gw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Wt.Absolute}}function km(e){if(fA(e)){const r=gc("http:"+e);return r.scheme="",r.type=Wt.SchemeRelative,r}if(pw(e)){const r=gc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Wt.AbsolutePath,r}if(dA(e))return hA(e);if(uA(e))return gc(e);const t=gc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Wt.Query:e.startsWith("#")?Wt.Hash:Wt.RelativePath:Wt.Empty,t}function pA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function gA(e,t){vw(t,t.type),e.path==="/"?e.path=t.path:e.path=pA(t.path)+e.path}function vw(e,t){const r=t<=Wt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function vA(e,t){if(!e&&!t)return"";const r=km(e);let o=r.type;if(t&&o!==Wt.Absolute){const c=km(t),f=c.type;switch(o){case Wt.Empty:r.hash=c.hash;case Wt.Hash:r.query=c.query;case Wt.Query:case Wt.RelativePath:gA(r,c);case Wt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Wt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}vw(r,o);const s=r.query+r.hash;switch(o){case Wt.Hash:case Wt.Query:return s;case Wt.RelativePath:{const c=r.path.slice(1);return c?_m(t||e)&&!_m(c)?"./"+c+s:c+s:s||"."}case Wt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Cm(e,t){return t&&!t.endsWith("/")&&(t+="/"),vA(e,t)}function mA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,yA=1,bA=2,wA=3,xA=4;function SA(e,t){const r=Tm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Tm(e,o+1))e[o]=kA(e[o],t);return e}function Tm(e,t){for(let r=t;r<e.length;r++)if(!_A(e[r]))return r;return e.length}function _A(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function kA(e,t){return t||(e=e.slice()),e.sort(CA)}function CA(e,t){return e[no]-t[no]}let iu=!1;function TA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function EA(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function AA(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function MA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function LA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return iu=f!==-1&&e[f][no]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=TA(e,t,d,h)}const NA="`line` must be greater than 0 (lines start at line 1)",$A="`column` must be greater than or equal to 0 (columns start at column 0)",Em=-1,OA=1;class PA{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Cm(h||"",mA(r));this.resolvedSources=p.map(w=>Cm(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=SA(b,o)),this._decodedMemo=MA(),this._bySources=void 0,this._bySourceMemos=void 0}}function RA(e){var t;return(t=e)._decoded||(t._decoded=iA(e._encoded))}function zA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(NA);if(o<0)throw new Error($A);const c=RA(e);if(r>=c.length)return vc(null,null,null,null);const f=c[r],d=DA(f,e._decodedMemo,r,o,s||OA);if(d===-1)return vc(null,null,null,null);const h=f[d];if(h.length===1)return vc(null,null,null,null);const{names:p,resolvedSources:v}=e;return vc(v[h[yA]],h[bA]+1,h[wA],h.length===5?p[h[xA]]:null)}function vc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function DA(e,t,r,o,s){let c=LA(e,o,t,r);return iu?c=(s===Em?EA:AA)(e,o,c):s===Em&&c++,c===-1||c===e.length?-1:c}const IA=/^[A-Za-z]:\//;function FA(e=""){return e&&e.replace(/\\/g,"/").replace(IA,t=>t.toUpperCase())}const HA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function BA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const WA=function(...e){e=e.map(o=>FA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:BA();!s||s.length===0||(t=`${s}/${t}`,r=Am(s))}return t=qA(t,!r),r&&!Am(t)?`/${t}`:t.length>0?t:"."};function qA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Am=function(e){return HA.test(e)},mw=/^\s*at .*(?:\S:\d+|\(native\))/m,UA=/^(?:eval@)?(?:\[native code\])?$/,jA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function yw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function VA(e){let t=e.trim();if(UA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=yw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function GA(e){let t=e.trim();if(!mw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=yw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:WA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function KA(e,t={}){const{ignoreStackEntries:r=jA}=t;return(mw.test(e)?YA(e):XA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Mm(r,s.file)?null:s;const d=new PA(f),{line:h,column:p,source:v,name:m}=zA(d,s);let b=s.file;if(v){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,E=f.sourceRoot?new URL(f.sourceRoot,w):w;b=new URL(v,E).pathname}return Mm(r,b)?null:h!=null&&p!=null?{line:h,column:p,file:b,method:m||s.method}:s}).filter(s=>s!=null)}function Mm(e,t){return e.some(r=>t.match(r))}function XA(e){return e.split(`
|
|
17
|
+
**/let Ld;const kv=typeof window<"u"&&window.trustedTypes;if(kv)try{Ld=kv.createPolicy("vue",{createHTML:e=>e})}catch{}const ib=Ld?e=>Ld.createHTML(e):e=>e,Hk="http://www.w3.org/2000/svg",Bk="http://www.w3.org/1998/Math/MathML",li=typeof document<"u"?document:null,Cv=li&&li.createElement("template"),Wk={insert:(e,t,r)=>{t.insertBefore(e,r||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,r,o)=>{const s=t==="svg"?li.createElementNS(Hk,e):t==="mathml"?li.createElementNS(Bk,e):r?li.createElement(e,{is:r}):li.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>li.createTextNode(e),createComment:e=>li.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>li.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,r,o,s,c){const f=r?r.previousSibling:t.lastChild;if(s&&(s===c||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),r),!(s===c||!(s=s.nextSibling)););else{Cv.innerHTML=ib(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=Cv.content;if(o==="svg"||o==="mathml"){const h=d.firstChild;for(;h.firstChild;)d.appendChild(h.firstChild);d.removeChild(h)}t.insertBefore(d,r)}return[f?f.nextSibling:t.firstChild,r?r.previousSibling:t.lastChild]}},Oi="transition",wl="animation",Xl=Symbol("_vtc"),ob={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},qk=tn({},xy,ob),Uk=e=>(e.displayName="Transition",e.props=qk,e),jk=Uk((e,{slots:t})=>ya(P_,Vk(e),t)),wo=(e,t=[])=>{He(e)?e.forEach(r=>r(...t)):e&&e(...t)},Tv=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function Vk(e){const t={};for(const R in e)R in ob||(t[R]=e[R]);if(e.css===!1)return t;const{name:r="v",type:o,duration:s,enterFromClass:c=`${r}-enter-from`,enterActiveClass:f=`${r}-enter-active`,enterToClass:d=`${r}-enter-to`,appearFromClass:h=c,appearActiveClass:p=f,appearToClass:v=d,leaveFromClass:m=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=Gk(s),N=E&&E[0],L=E&&E[1],{onBeforeEnter:M,onEnter:T,onEnterCancelled:P,onLeave:A,onLeaveCancelled:B,onBeforeAppear:G=M,onAppear:U=T,onAppearCancelled:Q=P}=t,J=(R,$,O)=>{xo(R,$?v:d),xo(R,$?p:f),O&&O()},Y=(R,$)=>{R._isLeaving=!1,xo(R,m),xo(R,w),xo(R,b),$&&$()},ee=R=>($,O)=>{const _=R?U:T,D=()=>J($,R,O);wo(_,[$,D]),Ev(()=>{xo($,R?h:c),Pi($,R?v:d),Tv(_)||Av($,o,N,D)})};return tn(t,{onBeforeEnter(R){wo(M,[R]),Pi(R,c),Pi(R,f)},onBeforeAppear(R){wo(G,[R]),Pi(R,h),Pi(R,p)},onEnter:ee(!1),onAppear:ee(!0),onLeave(R,$){R._isLeaving=!0;const O=()=>Y(R,$);Pi(R,m),Pi(R,b),Yk(),Ev(()=>{R._isLeaving&&(xo(R,m),Pi(R,w),Tv(A)||Av(R,o,L,O))}),wo(A,[R,O])},onEnterCancelled(R){J(R,!1),wo(P,[R])},onAppearCancelled(R){J(R,!0),wo(Q,[R])},onLeaveCancelled(R){Y(R),wo(B,[R])}})}function Gk(e){if(e==null)return null;if(St(e))return[Gf(e.enter),Gf(e.leave)];{const t=Gf(e);return[t,t]}}function Gf(e){return q0(e)}function Pi(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[Xl]||(e[Xl]=new Set)).add(t)}function xo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[Xl];r&&(r.delete(t),r.size||(e[Xl]=void 0))}function Ev(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Kk=0;function Av(e,t,r,o){const s=e._endId=++Kk,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=Xk(e,t);if(!f)return o();const p=f+"end";let v=0;const m=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++v>=h&&m()};setTimeout(()=>{v<h&&m()},d+1),e.addEventListener(p,b)}function Xk(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Oi}Delay`),c=o(`${Oi}Duration`),f=Mv(s,c),d=o(`${wl}Delay`),h=o(`${wl}Duration`),p=Mv(d,h);let v=null,m=0,b=0;t===Oi?f>0&&(v=Oi,m=f,b=c.length):t===wl?p>0&&(v=wl,m=p,b=h.length):(m=Math.max(f,p),v=m>0?f>p?Oi:wl:null,b=v?v===Oi?c.length:h.length:0);const w=v===Oi&&/\b(transform|all)(,|$)/.test(o(`${Oi}Property`).toString());return{type:v,timeout:m,propCount:b,hasTransform:w}}function Mv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>Lv(r)+Lv(e[o])))}function Lv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Yk(){return document.body.offsetHeight}function Zk(e,t,r){const o=e[Xl];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const jc=Symbol("_vod"),sb=Symbol("_vsh"),ji={beforeMount(e,{value:t},{transition:r}){e[jc]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):xl(e,t)},mounted(e,{value:t},{transition:r}){r&&t&&r.enter(e)},updated(e,{value:t,oldValue:r},{transition:o}){!t!=!r&&(o?t?(o.beforeEnter(e),xl(e,!0),o.enter(e)):o.leave(e,()=>{xl(e,!1)}):xl(e,t))},beforeUnmount(e,{value:t}){xl(e,t)}};function xl(e,t){e.style.display=t?e[jc]:"none",e[sb]=!t}const Jk=Symbol(""),Qk=/(^|;)\s*display\s*:/;function eC(e,t,r){const o=e.style,s=Rt(r);let c=!1;if(r&&!s){if(t)if(Rt(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Ec(o,d,"")}else for(const f in t)r[f]==null&&Ec(o,f,"");for(const f in r)f==="display"&&(c=!0),Ec(o,f,r[f])}else if(s){if(t!==r){const f=o[Jk];f&&(r+=";"+f),o.cssText=r,c=Qk.test(r)}}else t&&e.removeAttribute("style");jc in e&&(e[jc]=c?o.display:"",e[sb]&&(o.display="none"))}const Nv=/\s*!important$/;function Ec(e,t,r){if(He(r))r.forEach(o=>Ec(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=tC(e,t);Nv.test(r)?e.setProperty(vi(o),r.replace(Nv,""),"important"):e[o]=r}}const $v=["Webkit","Moz","ms"],Kf={};function tC(e,t){const r=Kf[t];if(r)return r;let o=tr(t);if(o!=="filter"&&o in e)return Kf[t]=o;o=pu(o);for(let s=0;s<$v.length;s++){const c=$v[s]+o;if(c in e)return Kf[t]=c}return t}const Ov="http://www.w3.org/1999/xlink";function Pv(e,t,r,o,s,c=YS(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(Ov,t.slice(6,t.length)):e.setAttributeNS(Ov,t,r):r==null||c&&!U0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Tr(r)?String(r):r)}function Rv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?ib(r):r);return}const c=e.tagName;if(t==="value"&&c!=="PROGRESS"&&!c.includes("-")){const d=c==="OPTION"?e.getAttribute("value")||"":e.value,h=r==null?e.type==="checkbox"?"on":"":String(r);(d!==h||!("_value"in e))&&(e.value=h),r==null&&e.removeAttribute(t),e._value=r;return}let f=!1;if(r===""||r==null){const d=typeof e[t];d==="boolean"?r=U0(r):r==null&&d==="string"?(r="",f=!0):d==="number"&&(r=0,f=!0)}try{e[t]=r}catch{}f&&e.removeAttribute(s||t)}function Co(e,t,r,o){e.addEventListener(t,r,o)}function nC(e,t,r,o){e.removeEventListener(t,r,o)}const zv=Symbol("_vei");function rC(e,t,r,o,s=null){const c=e[zv]||(e[zv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=iC(t);if(o){const p=c[t]=lC(o,s);Co(e,d,p,h)}else f&&(nC(e,d,f,h),c[t]=void 0)}}const Dv=/(?:Once|Passive|Capture)$/;function iC(e){let t;if(Dv.test(e)){t={};let o;for(;o=e.match(Dv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):vi(e.slice(2)),t]}let Xf=0;const oC=Promise.resolve(),sC=()=>Xf||(oC.then(()=>Xf=0),Xf=Date.now());function lC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;Er(aC(o,r.value),t,5,[o])};return r.value=e,r.attached=sC(),r}function aC(e,t){if(He(t)){const r=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{r.call(e),e._stopped=!0},t.map(o=>s=>!s._stopped&&o&&o(s))}else return t}const Iv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,cC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?Zk(e,o,f):t==="style"?eC(e,r,o):fu(t)?fh(t)||rC(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):uC(e,t,o,f))?(Rv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&Pv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Rt(o))?Rv(e,tr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),Pv(e,t,o,f))};function uC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&Iv(t)&&Ve(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const s=e.tagName;if(s==="IMG"||s==="VIDEO"||s==="CANVAS"||s==="SOURCE")return!1}return Iv(t)&&Rt(r)?!1:t in e}const Vc=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?r=>kc(t,r):t};function fC(e){e.target.composing=!0}function Fv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Cs=Symbol("_assign"),dC={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Cs]=Vc(s);const c=o||s.props&&s.props.type==="number";Co(e,t?"change":"input",f=>{if(f.target.composing)return;let d=e.value;r&&(d=d.trim()),c&&(d=gd(d)),e[Cs](d)}),r&&Co(e,"change",()=>{e.value=e.value.trim()}),t||(Co(e,"compositionstart",fC),Co(e,"compositionend",Fv),Co(e,"change",Fv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Cs]=Vc(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?gd(e.value):e.value,h=t??"";d!==h&&(document.activeElement===e&&e.type!=="range"&&(o&&t===r||s&&e.value.trim()===h)||(e.value=h))}},lb={deep:!0,created(e,t,r){e[Cs]=Vc(r),Co(e,"change",()=>{const o=e._modelValue,s=hC(e),c=e.checked,f=e[Cs];if(He(o)){const d=j0(o,s),h=d!==-1;if(c&&!h)f(o.concat(s));else if(!c&&h){const p=[...o];p.splice(d,1),f(p)}}else if(du(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(ab(e,c))})},mounted:Hv,beforeUpdate(e,t,r){e[Cs]=Vc(r),Hv(e,t,r)}};function Hv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(He(t))s=j0(t,o.props.value)>-1;else if(du(t))s=t.has(o.props.value);else{if(t===r)return;s=vu(t,ab(e,!0))}e.checked!==s&&(e.checked=s)}function hC(e){return"_value"in e?e._value:e.value}function ab(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const pC=["ctrl","shift","alt","meta"],gC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>pC.some(r=>e[`${r}Key`]&&!t.includes(r))},Ac=(e,t)=>{const r=e._withMods||(e._withMods={}),o=t.join(".");return r[o]||(r[o]=(s,...c)=>{for(let f=0;f<t.length;f++){const d=gC[t[f]];if(d&&d(s,t))return}return e(s,...c)})},vC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Nd=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=s=>{if(!("key"in s))return;const c=vi(s.key);if(t.some(f=>f===c||vC[f]===c))return e(s)})},mC=tn({patchProp:cC},Wk);let Bv;function yC(){return Bv||(Bv=uk(mC))}const cb=(...e)=>{const t=yC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=wC(o);if(!s)return;const c=t._component;!Ve(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,bC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t};function bC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function wC(e){return Rt(e)?document.querySelector(e):e}const yi=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},xC={};function SC(e,t){const r=Oo("RouterView");return oe(),nt(r)}const _C=yi(xC,[["render",SC]]),kC=["top","right","bottom","left"],Wv=["start","end"],qv=kC.reduce((e,t)=>e.concat(t,t+"-"+Wv[0],t+"-"+Wv[1]),[]),Yl=Math.min,ko=Math.max,CC={left:"right",right:"left",bottom:"top",top:"bottom"},TC={start:"end",end:"start"};function $d(e,t,r){return ko(e,Yl(t,r))}function zo(e,t){return typeof e=="function"?e(t):e}function Gr(e){return e.split("-")[0]}function kr(e){return e.split("-")[1]}function ub(e){return e==="x"?"y":"x"}function Lh(e){return e==="y"?"height":"width"}function ba(e){return["top","bottom"].includes(Gr(e))?"y":"x"}function Nh(e){return ub(ba(e))}function fb(e,t,r){r===void 0&&(r=!1);const o=kr(e),s=Nh(e),c=Lh(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=Kc(f)),[f,Kc(f)]}function EC(e){const t=Kc(e);return[Gc(e),t,Gc(t)]}function Gc(e){return e.replace(/start|end/g,t=>TC[t])}function AC(e,t,r){const o=["left","right"],s=["right","left"],c=["top","bottom"],f=["bottom","top"];switch(e){case"top":case"bottom":return r?t?s:o:t?o:s;case"left":case"right":return t?c:f;default:return[]}}function MC(e,t,r,o){const s=kr(e);let c=AC(Gr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(Gc)))),c}function Kc(e){return e.replace(/left|right|bottom|top/g,t=>CC[t])}function LC(e){return{top:0,right:0,bottom:0,left:0,...e}}function db(e){return typeof e!="number"?LC(e):{top:e,right:e,bottom:e,left:e}}function Pl(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Uv(e,t,r){let{reference:o,floating:s}=e;const c=ba(t),f=Nh(t),d=Lh(f),h=Gr(t),p=c==="y",v=o.x+o.width/2-s.width/2,m=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:v,y:o.y-s.height};break;case"bottom":w={x:v,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:m};break;case"left":w={x:o.x-s.width,y:m};break;default:w={x:o.x,y:o.y}}switch(kr(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const NC=async(e,t,r)=>{const{placement:o="bottom",strategy:s="absolute",middleware:c=[],platform:f}=r,d=c.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(t));let p=await f.getElementRects({reference:e,floating:t,strategy:s}),{x:v,y:m}=Uv(p,o,h),b=o,w={},E=0;for(let N=0;N<d.length;N++){const{name:L,fn:M}=d[N],{x:T,y:P,data:A,reset:B}=await M({x:v,y:m,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});v=T??v,m=P??m,w={...w,[L]:{...w[L],...A}},B&&E<=50&&(E++,typeof B=="object"&&(B.placement&&(b=B.placement),B.rects&&(p=B.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):B.rects),{x:v,y:m}=Uv(p,b,h)),N=-1)}return{x:v,y:m,placement:b,strategy:s,middlewareData:w}};async function Au(e,t){var r;t===void 0&&(t={});const{x:o,y:s,platform:c,rects:f,elements:d,strategy:h}=e,{boundary:p="clippingAncestors",rootBoundary:v="viewport",elementContext:m="floating",altBoundary:b=!1,padding:w=0}=zo(t,e),E=db(w),L=d[b?m==="floating"?"reference":"floating":m],M=Pl(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(L)))==null||r?L:L.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:v,strategy:h})),T=m==="floating"?{...f.floating,x:o,y:s}:f.reference,P=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),A=await(c.isElement==null?void 0:c.isElement(P))?await(c.getScale==null?void 0:c.getScale(P))||{x:1,y:1}:{x:1,y:1},B=Pl(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:T,offsetParent:P,strategy:h}):T);return{top:(M.top-B.top+E.top)/A.y,bottom:(B.bottom-M.bottom+E.bottom)/A.y,left:(M.left-B.left+E.left)/A.x,right:(B.right-M.right+E.right)/A.x}}const $C=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:s,rects:c,platform:f,elements:d,middlewareData:h}=t,{element:p,padding:v=0}=zo(e,t)||{};if(p==null)return{};const m=db(v),b={x:r,y:o},w=Nh(s),E=Lh(w),N=await f.getDimensions(p),L=w==="y",M=L?"top":"left",T=L?"bottom":"right",P=L?"clientHeight":"clientWidth",A=c.reference[E]+c.reference[w]-b[w]-c.floating[E],B=b[w]-c.reference[w],G=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let U=G?G[P]:0;(!U||!await(f.isElement==null?void 0:f.isElement(G)))&&(U=d.floating[P]||c.floating[E]);const Q=A/2-B/2,J=U/2-N[E]/2-1,Y=Yl(m[M],J),ee=Yl(m[T],J),R=Y,$=U-N[E]-ee,O=U/2-N[E]/2+Q,_=$d(R,O,$),D=!h.arrow&&kr(s)!=null&&O!==_&&c.reference[E]/2-(O<R?Y:ee)-N[E]/2<0,j=D?O<R?O-R:O-$:0;return{[w]:b[w]+j,data:{[w]:_,centerOffset:O-_-j,...D&&{alignmentOffset:j}},reset:D}}});function OC(e,t,r){return(e?[...r.filter(s=>kr(s)===e),...r.filter(s=>kr(s)!==e)]:r.filter(s=>Gr(s)===s)).filter(s=>e?kr(s)===e||(t?Gc(s)!==s:!1):!0)}const PC=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,o,s;const{rects:c,middlewareData:f,placement:d,platform:h,elements:p}=t,{crossAxis:v=!1,alignment:m,allowedPlacements:b=qv,autoAlignment:w=!0,...E}=zo(e,t),N=m!==void 0||b===qv?OC(m||null,w,b):b,L=await Au(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,T=N[M];if(T==null)return{};const P=fb(T,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==T)return{reset:{placement:N[0]}};const A=[L[Gr(T)],L[P[0]],L[P[1]]],B=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:T,overflows:A}],G=N[M+1];if(G)return{data:{index:M+1,overflows:B},reset:{placement:G}};const U=B.map(Y=>{const ee=kr(Y.placement);return[Y.placement,ee&&v?Y.overflows.slice(0,2).reduce((R,$)=>R+$,0):Y.overflows[0],Y.overflows]}).sort((Y,ee)=>Y[1]-ee[1]),J=((s=U.filter(Y=>Y[2].slice(0,kr(Y[0])?2:3).every(ee=>ee<=0))[0])==null?void 0:s[0])||U[0][0];return J!==d?{data:{index:M+1,overflows:B},reset:{placement:J}}:{}}}},RC=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:s,middlewareData:c,rects:f,initialPlacement:d,platform:h,elements:p}=t,{mainAxis:v=!0,crossAxis:m=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:N=!0,...L}=zo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Gr(s),T=Gr(d)===d,P=await(h.isRTL==null?void 0:h.isRTL(p.floating)),A=b||(T||!N?[Kc(d)]:EC(d));!b&&E!=="none"&&A.push(...MC(d,N,E,P));const B=[d,...A],G=await Au(t,L),U=[];let Q=((o=c.flip)==null?void 0:o.overflows)||[];if(v&&U.push(G[M]),m){const R=fb(s,f,P);U.push(G[R[0]],G[R[1]])}if(Q=[...Q,{placement:s,overflows:U}],!U.every(R=>R<=0)){var J,Y;const R=(((J=c.flip)==null?void 0:J.index)||0)+1,$=B[R];if($)return{data:{index:R,overflows:Q},reset:{placement:$}};let O=(Y=Q.filter(_=>_.overflows[0]<=0).sort((_,D)=>_.overflows[1]-D.overflows[1])[0])==null?void 0:Y.placement;if(!O)switch(w){case"bestFit":{var ee;const _=(ee=Q.map(D=>[D.placement,D.overflows.filter(j=>j>0).reduce((j,re)=>j+re,0)]).sort((D,j)=>D[1]-j[1])[0])==null?void 0:ee[0];_&&(O=_);break}case"initialPlacement":O=d;break}if(s!==O)return{reset:{placement:O}}}return{}}}};async function zC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Gr(r),d=kr(r),h=ba(r)==="y",p=["left","top"].includes(f)?-1:1,v=c&&h?-1:1,m=zo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof m=="number"?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...m};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*v,y:b*p}:{x:b*p,y:w*v}}const DC=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:s,y:c,placement:f,middlewareData:d}=t,h=await zC(t,e);return f===((r=d.offset)==null?void 0:r.placement)&&(o=d.arrow)!=null&&o.alignmentOffset?{}:{x:s+h.x,y:c+h.y,data:{...h,placement:f}}}}},IC=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:s}=t,{mainAxis:c=!0,crossAxis:f=!1,limiter:d={fn:L=>{let{x:M,y:T}=L;return{x:M,y:T}}},...h}=zo(e,t),p={x:r,y:o},v=await Au(t,h),m=ba(Gr(s)),b=ub(m);let w=p[b],E=p[m];if(c){const L=b==="y"?"top":"left",M=b==="y"?"bottom":"right",T=w+v[L],P=w-v[M];w=$d(T,w,P)}if(f){const L=m==="y"?"top":"left",M=m==="y"?"bottom":"right",T=E+v[L],P=E-v[M];E=$d(T,E,P)}const N=d.fn({...t,[b]:w,[m]:E});return{...N,data:{x:N.x-r,y:N.y-o}}}}},FC=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:s,elements:c}=t,{apply:f=()=>{},...d}=zo(e,t),h=await Au(t,d),p=Gr(r),v=kr(r),m=ba(r)==="y",{width:b,height:w}=o.floating;let E,N;p==="top"||p==="bottom"?(E=p,N=v===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(N=p,E=v==="end"?"top":"bottom");const L=w-h[E],M=b-h[N],T=!t.middlewareData.shift;let P=L,A=M;if(m){const G=b-h.left-h.right;A=v||T?Yl(M,G):G}else{const G=w-h.top-h.bottom;P=v||T?Yl(L,G):G}if(T&&!v){const G=ko(h.left,0),U=ko(h.right,0),Q=ko(h.top,0),J=ko(h.bottom,0);m?A=b-2*(G!==0||U!==0?G+U:ko(h.left,h.right)):P=w-2*(Q!==0||J!==0?Q+J:ko(h.top,h.bottom))}await f({...t,availableWidth:A,availableHeight:P});const B=await s.getDimensions(c.floating);return b!==B.width||w!==B.height?{reset:{rects:!0}}:{}}}};function sr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ur(e){return sr(e).getComputedStyle(e)}const jv=Math.min,Rl=Math.max,Xc=Math.round;function hb(e){const t=Ur(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=Xc(r)!==s||Xc(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function Ji(e){return gb(e)?(e.nodeName||"").toLowerCase():""}let uc;function pb(){if(uc)return uc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(uc=e.brands.map(t=>t.brand+"/"+t.version).join(" "),uc):navigator.userAgent}function jr(e){return e instanceof sr(e).HTMLElement}function Ki(e){return e instanceof sr(e).Element}function gb(e){return e instanceof sr(e).Node}function Vv(e){return typeof ShadowRoot>"u"?!1:e instanceof sr(e).ShadowRoot||e instanceof ShadowRoot}function Mu(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Ur(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function HC(e){return["table","td","th"].includes(Ji(e))}function Od(e){const t=/firefox/i.test(pb()),r=Ur(e),o=r.backdropFilter||r.WebkitBackdropFilter;return r.transform!=="none"||r.perspective!=="none"||!!o&&o!=="none"||t&&r.willChange==="filter"||t&&!!r.filter&&r.filter!=="none"||["transform","perspective"].some(s=>r.willChange.includes(s))||["paint","layout","strict","content"].some(s=>{const c=r.contain;return c!=null&&c.includes(s)})}function vb(){return!/^((?!chrome|android).)*safari/i.test(pb())}function $h(e){return["html","body","#document"].includes(Ji(e))}function mb(e){return Ki(e)?e:e.contextElement}const yb={x:1,y:1};function Ts(e){const t=mb(e);if(!jr(t))return yb;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=hb(t);let f=(c?Xc(r.width):r.width)/o,d=(c?Xc(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function Zl(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=mb(e);let h=yb;t&&(o?Ki(o)&&(h=Ts(o)):h=Ts(e));const p=d?sr(d):window,v=!vb()&&r;let m=(f.left+(v&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(v&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const N=sr(d),L=o&&Ki(o)?sr(o):o;let M=N.frameElement;for(;M&&o&&L!==N;){const T=Ts(M),P=M.getBoundingClientRect(),A=getComputedStyle(M);P.x+=(M.clientLeft+parseFloat(A.paddingLeft))*T.x,P.y+=(M.clientTop+parseFloat(A.paddingTop))*T.y,m*=T.x,b*=T.y,w*=T.x,E*=T.y,m+=P.x,b+=P.y,M=sr(M).frameElement}}return{width:w,height:E,top:b,right:m+w,bottom:b+E,left:m,x:m,y:b}}function Xi(e){return((gb(e)?e.ownerDocument:e.document)||window.document).documentElement}function Lu(e){return Ki(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bb(e){return Zl(Xi(e)).left+Lu(e).scrollLeft}function Jl(e){if(Ji(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Vv(e)&&e.host||Xi(e);return Vv(t)?t.host:t}function wb(e){const t=Jl(e);return $h(t)?t.ownerDocument.body:jr(t)&&Mu(t)?t:wb(t)}function Yc(e,t){var r;t===void 0&&(t=[]);const o=wb(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=sr(o);return s?t.concat(c,c.visualViewport||[],Mu(o)?o:[]):t.concat(o,Yc(o))}function Gv(e,t,r){return t==="viewport"?Pl(function(o,s){const c=sr(o),f=Xi(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,v=0,m=0;if(d){h=d.width,p=d.height;const b=vb();(b||!b&&s==="fixed")&&(v=d.offsetLeft,m=d.offsetTop)}return{width:h,height:p,x:v,y:m}}(e,r)):Ki(t)?Pl(function(o,s){const c=Zl(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=jr(o)?Ts(o):{x:1,y:1};return{width:o.clientWidth*h.x,height:o.clientHeight*h.y,x:d*h.x,y:f*h.y}}(t,r)):Pl(function(o){const s=Xi(o),c=Lu(o),f=o.ownerDocument.body,d=Rl(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=Rl(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+bb(o);const v=-c.scrollTop;return Ur(f).direction==="rtl"&&(p+=Rl(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:v}}(Xi(e)))}function Kv(e){return jr(e)&&Ur(e).position!=="fixed"?e.offsetParent:null}function Xv(e){const t=sr(e);let r=Kv(e);for(;r&&HC(r)&&Ur(r).position==="static";)r=Kv(r);return r&&(Ji(r)==="html"||Ji(r)==="body"&&Ur(r).position==="static"&&!Od(r))?t:r||function(o){let s=Jl(o);for(;jr(s)&&!$h(s);){if(Od(s))return s;s=Jl(s)}return null}(e)||t}function BC(e,t,r){const o=jr(t),s=Xi(t),c=Zl(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((Ji(t)!=="body"||Mu(s))&&(f=Lu(t)),jr(t)){const h=Zl(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=bb(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const WC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?function(p,v){const m=v.get(p);if(m)return m;let b=Yc(p).filter(L=>Ki(L)&&Ji(L)!=="body"),w=null;const E=Ur(p).position==="fixed";let N=E?Jl(p):p;for(;Ki(N)&&!$h(N);){const L=Ur(N),M=Od(N);(E?M||w:M||L.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=L:b=b.filter(T=>T!==N),N=Jl(N)}return v.set(p,b),b}(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce((p,v)=>{const m=Gv(t,v,s);return p.top=Rl(m.top,p.top),p.right=jv(m.right,p.right),p.bottom=jv(m.bottom,p.bottom),p.left=Rl(m.left,p.left),p},Gv(t,d,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}},convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{rect:t,offsetParent:r,strategy:o}=e;const s=jr(r),c=Xi(r);if(r===c)return t;let f={scrollLeft:0,scrollTop:0},d={x:1,y:1};const h={x:0,y:0};if((s||!s&&o!=="fixed")&&((Ji(r)!=="body"||Mu(c))&&(f=Lu(r)),jr(r))){const p=Zl(r);d=Ts(r),h.x=p.x+r.clientLeft,h.y=p.y+r.clientTop}return{width:t.width*d.x,height:t.height*d.y,x:t.x*d.x-f.scrollLeft*d.x+h.x,y:t.y*d.y-f.scrollTop*d.y+h.y}},isElement:Ki,getDimensions:function(e){return jr(e)?hb(e):e.getBoundingClientRect()},getOffsetParent:Xv,getDocumentElement:Xi,getScale:Ts,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Xv,c=this.getDimensions;return{reference:BC(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Ur(e).direction==="rtl"},qC=(e,t,r)=>{const o=new Map,s={platform:WC,...r},c={...s.platform,_c:o};return NC(e,t,{...s,platform:c})},Yi={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:150,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,autoHideOnMousedown:!1,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover"],delay:{show:0,hide:400}}}};function Ql(e,t){let r=Yi.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=Yi.themes[r.$extend]||{}:(r=null,o=Yi[t]):r=null;while(r);return o}function UC(e){const t=[e];let r=Yi.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=Yi.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Yv(e){const t=[e];let r=Yi.themes[e]||{};do r.$extend?(t.push(r.$extend),r=Yi.themes[r.$extend]||{}):r=null;while(r);return t}let ea=!1;if(typeof window<"u"){ea=!1;try{const e=Object.defineProperty({},"passive",{get(){ea=!0}});window.addEventListener("test",null,e)}catch{}}let xb=!1;typeof window<"u"&&typeof navigator<"u"&&(xb=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Sb=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Zv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Jv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function Qv(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function Yf(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const Jn=[];let So=null;const em={};function tm(e){let t=em[e];return t||(t=em[e]=[]),t}let Pd=function(){};typeof window<"u"&&(Pd=window.Element);function at(e){return function(t){return Ql(t.theme,e)}}const Zf="__floating-vue__popper",_b=()=>ut({name:"VPopper",provide(){return{[Zf]:{parentPopper:this}}},inject:{[Zf]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:at("disabled")},positioningDisabled:{type:Boolean,default:at("positioningDisabled")},placement:{type:String,default:at("placement"),validator:e=>Sb.includes(e)},delay:{type:[String,Number,Object],default:at("delay")},distance:{type:[Number,String],default:at("distance")},skidding:{type:[Number,String],default:at("skidding")},triggers:{type:Array,default:at("triggers")},showTriggers:{type:[Array,Function],default:at("showTriggers")},hideTriggers:{type:[Array,Function],default:at("hideTriggers")},popperTriggers:{type:Array,default:at("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:at("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:at("popperHideTriggers")},container:{type:[String,Object,Pd,Boolean],default:at("container")},boundary:{type:[String,Pd],default:at("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:at("strategy")},autoHide:{type:[Boolean,Function],default:at("autoHide")},handleResize:{type:Boolean,default:at("handleResize")},instantMove:{type:Boolean,default:at("instantMove")},eagerMount:{type:Boolean,default:at("eagerMount")},popperClass:{type:[String,Array,Object],default:at("popperClass")},computeTransformOrigin:{type:Boolean,default:at("computeTransformOrigin")},autoMinSize:{type:Boolean,default:at("autoMinSize")},autoSize:{type:[Boolean,String],default:at("autoSize")},autoMaxSize:{type:Boolean,default:at("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:at("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:at("preventOverflow")},overflowPadding:{type:[Number,String],default:at("overflowPadding")},arrowPadding:{type:[Number,String],default:at("arrowPadding")},arrowOverflow:{type:Boolean,default:at("arrowOverflow")},flip:{type:Boolean,default:at("flip")},shift:{type:Boolean,default:at("shift")},shiftCrossAxis:{type:Boolean,default:at("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:at("noAutoFocus")},disposeTimeout:{type:Number,default:at("disposeTimeout")}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},randomId:`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,shownChildren:new Set,lastAutoHide:!0,pendingHide:!1,containsGlobalTarget:!1,isDisposed:!0,mouseDownContains:!1}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:{...this.classes,popperClass:this.popperClass},result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[Zf])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:{shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())},triggers:{handler:"$_refreshListeners",deep:!0},positioningDisabled:"$_refreshListeners",...["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})},created(){this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var o,s;(o=this.parentPopper)!=null&&o.lockedChild&&this.parentPopper.lockedChild!==this||(this.pendingHide=!1,(r||!this.disabled)&&(((s=this.parentPopper)==null?void 0:s.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e;this.isDisposed&&(this.isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=((e=this.referenceNode)==null?void 0:e.call(this))??this.$el,this.$_targetNodes=this.targetNodes().filter(t=>t.nodeType===t.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.isDisposed||(this.isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){if(this.isDisposed||this.positioningDisabled)return;const e={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&e.middleware.push(DC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(PC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(IC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(RC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push($C({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&e.middleware.push({name:"arrowOverflow",fn:({placement:o,rects:s,middlewareData:c})=>{let f;const{centerOffset:d}=c.arrow;return o.startsWith("top")||o.startsWith("bottom")?f=Math.abs(d)>s.reference.width/2:f=Math.abs(d)>s.reference.height/2,{data:{overflow:f}}}}),this.autoMinSize||this.autoSize){const o=this.autoSize?this.autoSize:this.autoMinSize?"min":null;e.middleware.push({name:"autoSize",fn:({rects:s,placement:c,middlewareData:f})=>{var d;if((d=f.autoSize)!=null&&d.skip)return{};let h,p;return c.startsWith("top")||c.startsWith("bottom")?h=s.reference.width:p=s.reference.height,this.$_innerNode.style[o==="min"?"minWidth":o==="max"?"maxWidth":"width"]=h!=null?`${h}px`:null,this.$_innerNode.style[o==="min"?"minHeight":o==="max"?"maxHeight":"height"]=p!=null?`${p}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,e.middleware.push(FC({boundary:this.boundary,padding:this.overflowPadding,apply:({availableWidth:o,availableHeight:s})=>{this.$_innerNode.style.maxWidth=o!=null?`${o}px`:null,this.$_innerNode.style.maxHeight=s!=null?`${s}px`:null}})));const r=await qC(this.$_referenceNode,this.$_popperNode,e);Object.assign(this.result,{x:r.x,y:r.y,placement:r.placement,strategy:r.strategy,arrow:{...r.middlewareData.arrow,...r.middlewareData.arrowOverflow}})},$_scheduleShow(e,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),So&&this.instantMove&&So.instantMove&&So!==this.parentPopper){So.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e,t=!1){if(this.shownChildren.size>0){this.pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(So=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await Yf(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Yc(this.$_referenceNode),...Yc(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),o=r.parentNode.getBoundingClientRect(),s=t.x+t.width/2-(o.left+r.offsetLeft),c=t.y+t.height/2-(o.top+r.offsetTop);this.result.transformOrigin=`${s}px ${c}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<Jn.length;r++)t=Jn[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}Jn.push(this),document.body.classList.add("v-popper--some-open");for(const t of Yv(this.theme))tm(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await Yf(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,Qv(Jn,this),Jn.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Yv(this.theme)){const o=tm(r);Qv(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}So===this&&(So=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=this.disposeTimeout;t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await Yf(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,Zv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Zv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Jv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Jv,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(o=>o.addEventListener(t,r,ea?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,o,s){let c=r;o!=null&&(c=typeof o=="function"?o(c):o),c.forEach(f=>{const d=t[f];d&&this.$_registerEventListeners(e,d,s)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:o,eventType:s,handler:c}=r;!e||e===s?o.forEach(f=>f.removeEventListener(s,c)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const o=r.getAttribute(e);o&&(r.removeAttribute(e),r.setAttribute(t,o))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const o=e[r];o==null?t.removeAttribute(r):t.setAttribute(r,o)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(zl>=e.left&&zl<=e.right&&Dl>=e.top&&Dl<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=zl-Di,o=Dl-Ii,s=t.left+t.width/2-Di+(t.top+t.height/2)-Ii+t.width+t.height,c=Di+r*s,f=Ii+o*s;return fc(Di,Ii,c,f,t.left,t.top,t.left,t.bottom)||fc(Di,Ii,c,f,t.left,t.top,t.right,t.top)||fc(Di,Ii,c,f,t.right,t.top,t.right,t.bottom)||fc(Di,Ii,c,f,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});if(typeof document<"u"&&typeof window<"u"){if(xb){const e=ea?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>nm(t),e),document.addEventListener("touchend",t=>rm(t,!0),e)}else window.addEventListener("mousedown",e=>nm(e),!0),window.addEventListener("click",e=>rm(e,!1),!0);window.addEventListener("resize",GC)}function nm(e,t){for(let r=0;r<Jn.length;r++){const o=Jn[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function rm(e,t){jC(e,t)}function jC(e,t){const r={};for(let o=Jn.length-1;o>=0;o--){const s=Jn[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&im(s,c,e)){if(s.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&c){let d=s.parentPopper;for(;d;)r[d.randomId]=!0,d=d.parentPopper;return}let f=s.parentPopper;for(;f&&im(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function im(e,t,r){return r.closeAllPopover||r.closePopover&&t||VC(e,r)&&!t}function VC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function GC(){for(let e=0;e<Jn.length;e++)Jn[e].$_computePosition()}function om(){for(let e=0;e<Jn.length;e++)Jn[e].hide()}let Di=0,Ii=0,zl=0,Dl=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Di=zl,Ii=Dl,zl=e.clientX,Dl=e.clientY},ea?{passive:!0}:void 0);function fc(e,t,r,o,s,c,f,d){const h=((f-s)*(t-c)-(d-c)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t)),p=((r-e)*(t-c)-(o-t)*(e-s))/((d-c)*(r-e)-(f-s)*(o-t));return h>=0&&h<=1&&p>=0&&p<=1}const KC={extends:_b()},Nu=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function XC(e,t,r,o,s,c){return oe(),ye("div",{ref:"reference",class:it(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[mn(e.$slots,"default",KS(eb(e.slotData)))],2)}const YC=Nu(KC,[["render",XC]]);function ZC(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Mc;function Rd(){Rd.init||(Rd.init=!0,Mc=ZC()!==-1)}var $u={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Rd(),Pt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Mc&&this.$el.appendChild(e),e.data="about:blank",Mc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Mc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const JC=by();my("data-v-b329ee4c");const QC={class:"resize-observer",tabindex:"-1"};yy();const eT=JC((e,t,r,o,s,c)=>(oe(),nt("div",QC)));$u.render=eT;$u.__scopeId="data-v-b329ee4c";$u.__file="src/components/ResizeObserver.vue";const kb=(e="theme")=>({computed:{themeClass(){return UC(this[e])}}}),tT=ut({name:"VPopperContent",components:{ResizeObserver:$u},mixins:[kb()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),nT=["id","aria-hidden","tabindex","data-popper-placement"],rT={ref:"inner",class:"v-popper__inner"},iT=te("div",{class:"v-popper__arrow-outer"},null,-1),oT=te("div",{class:"v-popper__arrow-inner"},null,-1),sT=[iT,oT];function lT(e,t,r,o,s,c){const f=Oo("ResizeObserver");return oe(),ye("div",{id:e.popperId,ref:"popover",class:it(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:en(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=Nd(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[te("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),te("div",{class:"v-popper__wrapper",style:en(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[te("div",rT,[e.mounted?(oe(),ye(ct,{key:0},[te("div",null,[mn(e.$slots,"default")]),e.handleResize?(oe(),nt(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):Ke("",!0)],64)):Ke("",!0)],512),te("div",{ref:"arrow",class:"v-popper__arrow-container",style:en(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},sT,4)],4)],46,nT)}const Cb=Nu(tT,[["render",lT]]),Tb={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};let zd=function(){};typeof window<"u"&&(zd=window.Element);const aT=ut({name:"VPopperWrapper",components:{Popper:YC,PopperContent:Cb},mixins:[Tb,kb("finalTheme")],props:{theme:{type:String,default:null},referenceNode:{type:Function,default:null},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:void 0},positioningDisabled:{type:Boolean,default:void 0},placement:{type:String,default:void 0},delay:{type:[String,Number,Object],default:void 0},distance:{type:[Number,String],default:void 0},skidding:{type:[Number,String],default:void 0},triggers:{type:Array,default:void 0},showTriggers:{type:[Array,Function],default:void 0},hideTriggers:{type:[Array,Function],default:void 0},popperTriggers:{type:Array,default:void 0},popperShowTriggers:{type:[Array,Function],default:void 0},popperHideTriggers:{type:[Array,Function],default:void 0},container:{type:[String,Object,zd,Boolean],default:void 0},boundary:{type:[String,zd],default:void 0},strategy:{type:String,default:void 0},autoHide:{type:[Boolean,Function],default:void 0},handleResize:{type:Boolean,default:void 0},instantMove:{type:Boolean,default:void 0},eagerMount:{type:Boolean,default:void 0},popperClass:{type:[String,Array,Object],default:void 0},computeTransformOrigin:{type:Boolean,default:void 0},autoMinSize:{type:Boolean,default:void 0},autoSize:{type:[Boolean,String],default:void 0},autoMaxSize:{type:Boolean,default:void 0},autoBoundaryMaxSize:{type:Boolean,default:void 0},preventOverflow:{type:Boolean,default:void 0},overflowPadding:{type:[Number,String],default:void 0},arrowPadding:{type:[Number,String],default:void 0},arrowOverflow:{type:Boolean,default:void 0},flip:{type:Boolean,default:void 0},shift:{type:Boolean,default:void 0},shiftCrossAxis:{type:Boolean,default:void 0},noAutoFocus:{type:Boolean,default:void 0},disposeTimeout:{type:Number,default:void 0}},emits:{show:()=>!0,hide:()=>!0,"update:shown":e=>!0,"apply-show":()=>!0,"apply-hide":()=>!0,"close-group":()=>!0,"close-directive":()=>!0,"auto-hide":()=>!0,resize:()=>!0},computed:{finalTheme(){return this.theme??this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function cT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),nt(d,di({ref:"popper"},e.$props,{theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:[e.themeClass],onShow:t[0]||(t[0]=()=>e.$emit("show")),onHide:t[1]||(t[1]=()=>e.$emit("hide")),"onUpdate:shown":t[2]||(t[2]=h=>e.$emit("update:shown",h)),onApplyShow:t[3]||(t[3]=()=>e.$emit("apply-show")),onApplyHide:t[4]||(t[4]=()=>e.$emit("apply-hide")),onCloseGroup:t[5]||(t[5]=()=>e.$emit("close-group")),onCloseDirective:t[6]||(t[6]=()=>e.$emit("close-directive")),onAutoHide:t[7]||(t[7]=()=>e.$emit("auto-hide")),onResize:t[8]||(t[8]=()=>e.$emit("resize"))}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,show:w,hide:E,handleResize:N,onResize:L,classes:M,result:T})=>[mn(e.$slots,"default",{shown:p,show:w,hide:E}),Oe(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":N,classes:M,result:T,onHide:E,onResize:L},{default:rt(()=>[mn(e.$slots,"popper",{shown:p,hide:E})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},16,["theme","target-nodes","popper-node","class"])}const Oh=Nu(aT,[["render",cT]]);({...Oh});({...Oh});const uT={...Oh,name:"VTooltip",vPopperTheme:"tooltip"},fT=ut({name:"VTooltipDirective",components:{Popper:_b(),PopperContent:Cb},mixins:[Tb],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>Ql(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>Ql(e.theme,"loadingContent")},targetNodes:{type:Function,required:!0}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(o=>this.onResult(t,o)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),dT=["innerHTML"],hT=["textContent"];function pT(e,t,r,o,s,c){const f=Oo("PopperContent"),d=Oo("Popper");return oe(),nt(d,di({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:rt(({popperId:h,isShown:p,shouldMountContent:v,skipTransition:m,autoHide:b,hide:w,handleResize:E,onResize:N,classes:L,result:M})=>[Oe(f,{ref:"popperContent",class:it({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:v,"skip-transition":m,"auto-hide":b,"handle-resize":E,classes:L,result:M,onHide:w,onResize:N},{default:rt(()=>[e.html?(oe(),ye("div",{key:0,innerHTML:e.finalContent},null,8,dT)):(oe(),ye("div",{key:1,textContent:Be(e.finalContent)},null,8,hT))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","target-nodes","popper-node","onApplyShow","onApplyHide"])}const gT=Nu(fT,[["render",pT]]),Eb="v-popper--has-tooltip";function vT(e,t){let r=e.placement;if(!r&&t)for(const o of Sb)t[o]&&(r=o);return r||(r=Ql(e.theme||"tooltip","placement")),r}function Ab(e,t,r){let o;const s=typeof t;return s==="string"?o={content:t}:t&&s==="object"?o=t:o={content:!1},o.placement=vT(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let Jf,ta,mT=0;function yT(){if(Jf)return;ta=je([]),Jf=cb({name:"VTooltipDirectiveApp",setup(){return{directives:ta}},render(){return this.directives.map(t=>ya(gT,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),Jf.mount(e)}function Mb(e,t,r){yT();const o=je(Ab(e,t,r)),s=je(!1),c={id:mT++,options:o,shown:s};return ta.value.push(c),e.classList&&e.classList.add(Eb),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function Ph(e){if(e.$_popper){const t=ta.value.indexOf(e.$_popper.item);t!==-1&&ta.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(Eb)}function sm(e,{value:t,modifiers:r}){const o=Ab(e,t,r);if(!o.content||Ql(o.theme||"tooltip","disabled"))Ph(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=Mb(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const bT={beforeMount:sm,updated:sm,beforeUnmount(e){Ph(e)}},wT=bT,Lb=uT,Nb={options:Yi};function $b(e){return e!=null}function Rh(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const xT=/^[A-Za-z]:\//;function ST(e=""){return e&&e.replace(/\\/g,"/").replace(xT,t=>t.toUpperCase())}const _T=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,lm=/^\/([A-Za-z]:)?$/;function kT(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const am=function(...e){e=e.map(o=>ST(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:kT();!s||s.length===0||(t=`${s}/${t}`,r=cm(s))}return t=CT(t,!r),r&&!cm(t)?`/${t}`:t.length>0?t:"."};function CT(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const cm=function(e){return _T.test(e)},TT=function(e,t){const r=am(e).replace(lm,"$1").split("/"),o=am(t).replace(lm,"$1").split("/");if(o[0][1]===":"&&r[0][1]===":"&&r[0]!==o[0])return o.join("/");const s=[...r];for(const c of s){if(o[0]!==c)break;r.shift(),o.shift()}return[...r.map(()=>".."),...o].join("/")};function ET(e){let t=0;if(e.length===0)return`${t}`;for(let r=0;r<e.length;r++){const o=e.charCodeAt(r);t=(t<<5)-t+o,t=t&t}return`${t}`}function Ob(e,t,r,o){const s=TT(t,e),c={id:AT(s,r),name:s,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o};return c.file=c,c}function AT(e,t){return ET(`${e}${t||""}`)}function Pb(e){return na(e)}function na(e){return e.type==="test"}function Rb(e){const t=[],r=Rh(e);for(const o of r)if(na(o))t.push(o);else for(const s of o.tasks)if(na(s))t.push(s);else{const c=Rb(s);for(const f of c)t.push(f)}return t}function zh(e=[]){return Rh(e).flatMap(t=>na(t)?[t]:[t,...zh(t.tasks)])}function MT(e){const t=[e.name];let r=e;for(;r!=null&&r.suite;)r=r.suite,r!=null&&r.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const LT=6e4;function zb(e){return e}const NT=zb,{clearTimeout:$T,setTimeout:OT}=globalThis,PT=Math.random.bind(Math);function RT(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=zb,deserialize:d=NT,resolver:h,bind:p="rpc",timeout:v=LT}=t,m=new Map;let b,w=!1;const E=new Proxy({},{get(M,T){if(T==="$functions")return e;if(T==="$close")return N;if(T==="then"&&!c.includes("then")&&!("then"in e))return;const P=(...B)=>{r(f({m:T,a:B,t:"q"}))};if(c.includes(T))return P.asEvent=P,P;const A=async(...B)=>{if(w)throw new Error(`[birpc] rpc is closed, cannot call "${T}"`);if(b)try{await b}finally{b=void 0}return new Promise((G,U)=>{var Y;const Q=DT();let J;v>=0&&(J=OT(()=>{var ee;try{throw(ee=t.onTimeoutError)==null||ee.call(t,T,B),new Error(`[birpc] timeout on calling "${T}"`)}catch(R){U(R)}m.delete(Q)},v),typeof J=="object"&&(J=(Y=J.unref)==null?void 0:Y.call(J))),m.set(Q,{resolve:G,reject:U,timeoutId:J,method:T}),r(f({m:T,a:B,i:Q,t:"q"}))})};return A.asEvent=P,A}});function N(){w=!0,m.forEach(({reject:M,method:T})=>{M(new Error(`[birpc] rpc is closed, cannot call "${T}"`))}),m.clear(),s(L)}async function L(M,...T){const P=d(M);if(P.t==="q"){const{m:A,a:B}=P;let G,U;const Q=h?h(A,e[A]):e[A];if(!Q)U=new Error(`[birpc] function "${A}" not found`);else try{G=await Q.apply(p==="rpc"?E:e,B)}catch(J){U=J}P.i&&(U&&t.onError&&t.onError(U,A,B),r(f({t:"s",i:P.i,r:G,e:U}),...T))}else{const{i:A,r:B,e:G}=P,U=m.get(A);U&&($T(U.timeoutId),G?U.reject(G):U.resolve(B)),m.delete(A)}}return b=o(L),E}const zT="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function DT(e=21){let t="",r=e;for(;r--;)t+=zT[PT()*64|0];return t}const{parse:Db,stringify:IT}=JSON,{keys:FT}=Object,ra=String,Ib="string",um={},Zc="object",Fb=(e,t)=>t,HT=e=>e instanceof ra?ra(e):e,BT=(e,t)=>typeof t===Ib?new ra(t):t,Hb=(e,t,r,o)=>{const s=[];for(let c=FT(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ra){const v=e[p];typeof v===Zc&&!t.has(v)?(t.add(v),r[h]=um,s.push({k:h,a:[e,t,v,o]})):r[h]=o.call(r,h,v)}else r[h]!==um&&(r[h]=o.call(r,h,p))}for(let{length:c}=s,f=0;f<c;f++){const{k:d,a:h}=s[f];r[d]=o.call(r,d,Hb.apply(null,h))}return r},fm=(e,t,r)=>{const o=ra(t.push(r)-1);return e.set(r,o),o},Dd=(e,t)=>{const r=Db(e,BT).map(HT),o=r[0],s=t||Fb,c=typeof o===Zc&&o?Hb(r,new Set,o,s):o;return s.call({"":c},"",c)},Bb=(e,t,r)=>{const o=t&&typeof t===Zc?(v,m)=>v===""||-1<t.indexOf(v)?m:void 0:t||Fb,s=new Map,c=[],f=[];let d=+fm(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=IT(c[d++],p,r);return"["+f.join(",")+"]";function p(v,m){if(h)return h=!h,m;const b=o.call(this,v,m);switch(typeof b){case Zc:if(b===null)return b;case Ib:return s.get(b)||fm(s,c,b)}return b}},WT=e=>Db(Bb(e));class Wb{constructor(){us(this,"filesMap",new Map);us(this,"pathsSet",new Set);us(this,"idMap",new Map)}getPaths(){return Array.from(this.pathsSet)}getFiles(t){return t?t.map(r=>this.filesMap.get(r)).flat().filter(r=>r&&!r.local):Array.from(this.filesMap.values()).flat().filter(r=>!r.local)}getFilepaths(){return Array.from(this.filesMap.keys())}getFailedFilepaths(){return this.getFiles().filter(t=>{var r;return((r=t.result)==null?void 0:r.state)==="fail"}).map(t=>t.filepath)}collectPaths(t=[]){t.forEach(r=>{this.pathsSet.add(r)})}collectFiles(t=[]){t.forEach(r=>{const o=this.filesMap.get(r.filepath)||[],s=o.filter(f=>f.projectName!==r.projectName||f.meta.typecheck!==r.meta.typecheck),c=o.find(f=>f.projectName===r.projectName);c&&(r.logs=c.logs),s.push(r),this.filesMap.set(r.filepath,s),this.updateId(r)})}clearFiles(t,r=[]){const o=t;r.forEach(s=>{const c=this.filesMap.get(s),f=Ob(s,o.config.root,o.config.name||"");if(f.local=!0,this.idMap.set(f.id,f),!c){this.filesMap.set(s,[f]);return}const d=c.filter(h=>h.projectName!==o.config.name);d.length?this.filesMap.set(s,[...d,f]):this.filesMap.set(s,[f])})}updateId(t){this.idMap.get(t.id)!==t&&(this.idMap.set(t.id,t),t.type==="suite"&&t.tasks.forEach(r=>{this.updateId(r)}))}updateTasks(t){for(const[r,o,s]of t){const c=this.idMap.get(r);c&&(c.result=o,c.meta=s,(o==null?void 0:o.state)==="skip"&&(c.mode="skip"))}}updateUserLog(t){const r=t.taskId&&this.idMap.get(t.taskId);r&&(r.logs||(r.logs=[]),r.logs.push(t))}}function qT(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=T=>T,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const v=d({ws:new h(e),state:new Wb,waitForConnection:M,reconnect:N},"state");v.state.filesMap=d(v.state.filesMap,"filesMap"),v.state.idMap=d(v.state.idMap,"idMap");let m;const b={onSpecsCollected(T){var P;T==null||T.forEach(([A,B])=>{v.state.clearFiles({config:A},[B])}),(P=r.onSpecsCollected)==null||P.call(r,T)},onPathsCollected(T){var P;v.state.collectPaths(T),(P=r.onPathsCollected)==null||P.call(r,T)},onCollected(T){var P;v.state.collectFiles(T),(P=r.onCollected)==null||P.call(r,T)},onTaskUpdate(T){var P;v.state.updateTasks(T),(P=r.onTaskUpdate)==null||P.call(r,T)},onUserConsoleLog(T){var P;v.state.updateUserLog(T),(P=r.onUserConsoleLog)==null||P.call(r,T)},onFinished(T,P){var A;(A=r.onFinished)==null||A.call(r,T,P)},onFinishedReportCoverage(){var T;(T=r.onFinishedReportCoverage)==null||T.call(r)}},w={post:T=>v.ws.send(T),on:T=>m=T,serialize:T=>Bb(T,(P,A)=>A instanceof Error?{name:A.name,message:A.message,stack:A.stack}:A),deserialize:Dd,onTimeoutError(T){throw new Error(`[vitest-ws-client]: Timeout calling "${T}"`)}};v.rpc=RT(b,w);let E;function N(T=!1){T&&(p=c),v.ws=new h(e),L()}function L(){E=new Promise((T,P)=>{var B,G;const A=(G=(B=setTimeout(()=>{P(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f))==null?void 0:B.unref)==null?void 0:G.call(B);v.ws.OPEN===v.ws.readyState&&T(),v.ws.addEventListener("open",()=>{p=c,T(),clearTimeout(A)})}),v.ws.addEventListener("message",T=>{m(T.data)}),v.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(N,s)})}L();function M(){return E}return v}function Dh(e){return K0()?(QS(e),!0):!1}const Qf=new WeakMap,UT=(...e)=>{var t;const r=e[0],o=(t=Hs())==null?void 0:t.proxy;if(o==null&&!Oy())throw new Error("injectLocal must be called in setup");return o&&Qf.has(o)&&r in Qf.get(o)?Qf.get(o)[r]:qr(...e)},jT=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const VT=Object.prototype.toString,GT=e=>VT.call(e)==="[object Object]",Jc=()=>{};function qb(e,t){function r(...o){return new Promise((s,c)=>{Promise.resolve(e(()=>t.apply(this,o),{fn:t,thisArg:this,args:o})).then(s).catch(c)})}return r}const Ub=e=>e();function jb(e,t={}){let r,o,s=Jc;const c=h=>{clearTimeout(h),s(),s=Jc};let f;return h=>{const p=Ut(e),v=Ut(t.maxWait);return r&&c(r),p<=0||v!==void 0&&v<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((m,b)=>{s=t.rejectOnCancel?b:m,f=h,v&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,m(f())},v)),r=setTimeout(()=>{o&&c(o),o=null,m(h())},p)})}}function KT(e=Ub,t={}){const{initialState:r="active"}=t,o=Vb(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:ha(o),pause:s,resume:c,eventFilter:f}}function dm(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function hm(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function XT(e){return Hs()}function ed(e){return Array.isArray(e)?e:[e]}function Vb(...e){if(e.length!==1)return pa(...e);const t=e[0];return typeof t=="function"?ha(fy(()=>({get:t,set:Jc}))):je(t)}function dc(e,t=200,r={}){return qb(jb(t,r),e)}function Gb(e,t,r={}){const{eventFilter:o=Ub,...s}=r;return Et(e,qb(o,t),s)}function Kb(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=KT(o,{initialState:s});return{stop:Gb(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function Ih(e,t=!0,r){XT()?Fs(e,r):t?e():Pt(e)}function Id(e,t=!1){function r(m,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:N}={}){let L=null;const T=[new Promise(P=>{L=Et(e,A=>{m(A)!==t&&(L?L():Pt(()=>L==null?void 0:L()),P(A))},{flush:b,deep:w,immediate:!0})})];return E!=null&&T.push(dm(E,N).then(()=>Ut(e)).finally(()=>L==null?void 0:L())),Promise.race(T)}function o(m,b){if(!kt(m))return r(A=>A===m,b);const{flush:w="sync",deep:E=!1,timeout:N,throwOnTimeout:L}=b??{};let M=null;const P=[new Promise(A=>{M=Et([e,m],([B,G])=>{t!==(B===G)&&(M?M():Pt(()=>M==null?void 0:M()),A(B))},{flush:w,deep:E,immediate:!0})})];return N!=null&&P.push(dm(N,L).then(()=>Ut(e)).finally(()=>(M==null||M(),Ut(e)))),Promise.race(P)}function s(m){return r(b=>!!b,m)}function c(m){return o(null,m)}function f(m){return o(void 0,m)}function d(m){return r(Number.isNaN,m)}function h(m,b){return r(w=>{const E=Array.from(w);return E.includes(m)||E.includes(Ut(m))},b)}function p(m){return v(1,m)}function v(m=1,b){let w=-1;return r(()=>(w+=1,w>=m),b)}return Array.isArray(Ut(e))?{toMatch:r,toContains:h,changed:p,changedTimes:v,get not(){return Id(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:v,get not(){return Id(e,!t)}}}function pm(e){return Id(e)}function YT(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=kt(e),c=je(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Ut(r);return c.value=c.value===h?Ut(o):h,c.value}}return s?f:[c,f]}function Fh(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Gb(e,t,{...c,eventFilter:jb(o,{maxWait:s})})}function ZT(e,t,r){return Et(e,t,{...r,immediate:!0})}function JT(e,t,r){const o=Et(e,(...s)=>(Pt(()=>o()),t(...s)),r);return o}function QT(e,t,r){let o;kt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=Jc}=o,h=On(!s),p=f?On(t):je(t);let v=0;return Eh(async m=>{if(!h.value)return;v++;const b=v;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(N=>{m(()=>{c&&(c.value=!1),w||N()})});b===v&&(p.value=E)}catch(E){d(E)}finally{c&&b===v&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ar=jT?window:void 0;function Qc(e){var t;const r=Ut(e);return(t=r==null?void 0:r.$el)!=null?t:r}function Qi(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,v)=>(d.addEventListener(h,p,v),()=>d.removeEventListener(h,p,v)),s=ke(()=>{const d=ed(Ut(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=ZT(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>Qc(p)))!=null?h:[Ar].filter(p=>p!=null),ed(Ut(s.value?e[1]:e[0])),ed(W(s.value?e[2]:e[1])),Ut(s.value?e[3]:e[2])]},([d,h,p,v])=>{if(r(),!(d!=null&&d.length)||!(h!=null&&h.length)||!(p!=null&&p.length))return;const m=GT(v)?{...v}:v;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,m)))))},{flush:"post"}),f=()=>{c(),r()};return Dh(r),f}function eE(){const e=On(!1),t=Hs();return t&&Fs(()=>{e.value=!0},t),e}function Xb(e){const t=eE();return ke(()=>(t.value,!!e()))}function tE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Yb(...e){let t,r,o={};e.length===3?(t=e[0],r=e[1],o=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],o=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:s=Ar,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=tE(t);return Qi(s,c,v=>{v.repeat&&Ut(d)||h(v)&&r(v)},f)}function nE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ar,once:c=!1}=t,f=On(!1),d=ke(()=>o?1e3/Ut(o):null);let h=0,p=null;function v(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(v);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(v)}function m(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(v))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&m(),Dh(b),{isActive:ha(f),pause:b,resume:m}}const rE=Symbol("vueuse-ssr-width");function iE(){const e=Oy()?UT(rE,null):null;return typeof e=="number"?e:void 0}function Zb(e,t={}){const{window:r=Ar,ssrWidth:o=iE()}=t,s=Xb(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=je(typeof o=="number"),f=On(),d=On(!1),h=p=>{d.value=p.matches};return Eh(()=>{if(c.value){c.value=!s.value;const p=Ut(e).split(",");d.value=p.some(v=>{const m=v.includes("not all"),b=v.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=v.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=hm(b[1])),w&&E&&(E=o<=hm(w[1])),m?!E:E});return}s.value&&(f.value=r.matchMedia(Ut(e)),d.value=f.value.matches)}),Qi(f,"change",h,{passive:!0}),ke(()=>d.value)}const hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},pc="__vueuse_ssr_handlers__",oE=sE();function sE(){return pc in hc||(hc[pc]=hc[pc]||{}),hc[pc]}function Jb(e,t){return oE[e]||t}function lE(e){return Zb("(prefers-color-scheme: dark)",e)}function aE(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}const cE={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},gm="vueuse-storage";function Qb(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:v,window:m=Ar,eventFilter:b,onError:w=ee=>{console.error(ee)},initOnMounted:E}=o,N=(v?On:je)(typeof t=="function"?t():t),L=ke(()=>Ut(e));if(!r)try{r=Jb("getDefaultStorage",()=>{var ee;return(ee=Ar)==null?void 0:ee.localStorage})()}catch(ee){w(ee)}if(!r)return N;const M=Ut(t),T=aE(M),P=(s=o.serializer)!=null?s:cE[T],{pause:A,resume:B}=Kb(N,()=>U(N.value),{flush:c,deep:f,eventFilter:b});Et(L,()=>J(),{flush:c}),m&&d&&Ih(()=>{r instanceof Storage?Qi(m,"storage",J,{passive:!0}):Qi(m,gm,Y),E&&J()}),E||J();function G(ee,R){if(m){const $={key:L.value,oldValue:ee,newValue:R,storageArea:r};m.dispatchEvent(r instanceof Storage?new StorageEvent("storage",$):new CustomEvent(gm,{detail:$}))}}function U(ee){try{const R=r.getItem(L.value);if(ee==null)G(R,null),r.removeItem(L.value);else{const $=P.write(ee);R!==$&&(r.setItem(L.value,$),G(R,$))}}catch(R){w(R)}}function Q(ee){const R=ee?ee.newValue:r.getItem(L.value);if(R==null)return h&&M!=null&&r.setItem(L.value,P.write(M)),M;if(!ee&&p){const $=P.read(R);return typeof p=="function"?p($,M):T==="object"&&!Array.isArray($)?{...M,...$}:$}else return typeof R!="string"?R:P.read(R)}function J(ee){if(!(ee&&ee.storageArea!==r)){if(ee&&ee.key==null){N.value=M;return}if(!(ee&&ee.key!==L.value)){A();try{(ee==null?void 0:ee.newValue)!==P.write(N.value)&&(N.value=Q(ee))}catch(R){w(R)}finally{ee?Pt(B):B()}}}}function Y(ee){J(ee.detail)}return N}const uE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function fE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ar,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:v=!0}=e,m={auto:"",light:"light",dark:"dark",...e.modes||{}},b=lE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Vb(o):Qb(f,o,c,{window:s,listenToStorageChanges:d})),N=ke(()=>E.value==="auto"?w.value:E.value),L=Jb("updateHTMLAttrs",(A,B,G)=>{const U=typeof A=="string"?s==null?void 0:s.document.querySelector(A):Qc(A);if(!U)return;const Q=new Set,J=new Set;let Y=null;if(B==="class"){const R=G.split(/\s/g);Object.values(m).flatMap($=>($||"").split(/\s/g)).filter(Boolean).forEach($=>{R.includes($)?Q.add($):J.add($)})}else Y={key:B,value:G};if(Q.size===0&&J.size===0&&Y===null)return;let ee;v&&(ee=s.document.createElement("style"),ee.appendChild(document.createTextNode(uE)),s.document.head.appendChild(ee));for(const R of Q)U.classList.add(R);for(const R of J)U.classList.remove(R);Y&&U.setAttribute(Y.key,Y.value),v&&(s.getComputedStyle(ee).opacity,document.head.removeChild(ee))});function M(A){var B;L(t,r,(B=m[A])!=null?B:A)}function T(A){e.onChanged?e.onChanged(A,M):M(A)}Et(N,T,{flush:"post",immediate:!0}),Ih(()=>T(N.value));const P=ke({get(){return p?E.value:N.value},set(A){E.value=A}});return Object.assign(P,{store:E,system:w,state:N})}function dE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=fE({...e,onChanged:(f,d)=>{var h;e.onChanged?(h=e.onChanged)==null||h.call(e,f==="dark",d,f):d(f)},modes:{dark:t,light:r}}),s=ke(()=>o.system.value);return ke({get(){return o.value==="dark"},set(f){const d=f?"dark":"light";s.value===d?o.value="auto":o.value=d}})}function hE(e,t,r={}){const{window:o=Ar,...s}=r;let c;const f=Xb(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const m=Ut(e);return Array.isArray(m)?m.map(b=>Qc(b)):[Qc(m)]}),p=Et(h,m=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of m)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),v=()=>{d(),p()};return Dh(v),{isSupported:f,stop:v}}function Ou(e,t,r={}){const{window:o=Ar}=r;return Qb(e,t,o==null?void 0:o.localStorage,r)}function pE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ar}=t;if(!d)return er(r);const h=er({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const P=d.location.hash||"",A=P.indexOf("?");return A>0?P.slice(A):""}else return(d.location.hash||"").replace(/^#/,"")}function v(P){const A=P.toString();if(e==="history")return`${A?`?${A}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${A?`#${A}`:""}`;const B=d.location.hash||"#",G=B.indexOf("?");return G>0?`${d.location.search||""}${B.slice(0,G)}${A?`?${A}`:""}`:`${d.location.search||""}${B}${A?`?${A}`:""}`}function m(){return new URLSearchParams(p())}function b(P){const A=new Set(Object.keys(h));for(const B of P.keys()){const G=P.getAll(B);h[B]=G.length>1?G:P.get(B)||"",A.delete(B)}Array.from(A).forEach(B=>delete h[B])}const{pause:w,resume:E}=Kb(h,()=>{const P=new URLSearchParams("");Object.keys(h).forEach(A=>{const B=h[A];Array.isArray(B)?B.forEach(G=>P.append(A,G)):o&&B==null||s&&!B?P.delete(A):P.set(A,B)}),N(P,!1)},{deep:!0});function N(P,A){w(),A&&b(P),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+v(P)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+v(P)),E()}function L(){c&&N(m(),!0)}const M={passive:!0};Qi(d,"popstate",L,M),e!=="history"&&Qi(d,"hashchange",L,M);const T=m();return T.keys().next().value?b(T):Object.assign(h,r),h}function Hh(e={}){const{window:t=Ar,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=je(r),h=je(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:m,height:b,scale:w}=t.visualViewport;d.value=Math.round(m*w),h.value=Math.round(b*w)}else c?(d.value=t.innerWidth,h.value=t.innerHeight):(d.value=t.document.documentElement.clientWidth,h.value=t.document.documentElement.clientHeight)};p(),Ih(p);const v={passive:!0};if(Qi("resize",p,v),t&&f==="visual"&&t.visualViewport&&Qi(t.visualViewport,"resize",p,v),s){const m=Zb("(orientation: portrait)");Et(m,()=>p())}return{width:d,height:h}}const Fd=On([]),Gn=On([]),Mr=Ou("vitest-ui_task-tree-opened",[],{shallow:!0}),eu=ke(()=>new Set(Mr.value)),cn=Ou("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Wn=je(cn.value.search),gE={"&":"&","<":"<",">":">",'"':""","'":"'"};function ew(e){return e.replace(/[&<>"']/g,t=>gE[t])}const vE=ke(()=>{const e=Wn.value.toLowerCase();return e.length?new RegExp(`(${ew(e)})`,"gi"):null}),tw=ke(()=>Wn.value.trim()!==""),Je=er({failed:cn.value.failed,success:cn.value.success,skipped:cn.value.skipped,onlyTests:cn.value.onlyTests}),Hd=ke(()=>!!(Je.failed||Je.success||Je.skipped)),Pu=On([]),Os=je(!1),vm=ke(()=>{const e=cn.value.expandAll;return Mr.value.length>0?e!==!0:e!==!1}),mE=ke(()=>{const e=tw.value,t=Hd.value,r=Je.onlyTests,o=Ee.summary.filesFailed,s=Ee.summary.filesSuccess,c=Ee.summary.filesSkipped,f=Ee.summary.filesRunning,d=Pu.value;return Ee.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function wa(e){return Object.hasOwnProperty.call(e,"tasks")}function yE(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function nw(e){if(!e)return"";const t=e.split("").reduce((o,s,c)=>o+s.charCodeAt(0)+c,0),r=["yellow","cyan","green","magenta"];return r[t%r.length]}function bE(e){return e.type==="test"}function wE(e){return e.mode==="run"&&e.type==="test"}function Nn(e){return e.type==="file"}function pi(e){return e.type==="file"||e.type==="suite"}function xE(e=Ee.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function ia(e,t=!1){var o,s,c,f,d;let r=Ee.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=(o=e.result)==null?void 0:o.state,r.mode=e.mode,r.duration=(s=e.result)==null?void 0:s.duration,r.collectDuration=e.collectDuration,r.setupDuration=e.setupDuration,r.environmentLoad=e.environmentLoad,r.prepareDuration=e.prepareDuration):(r={id:e.id,parentId:"root",name:e.name,mode:e.mode,expandable:!0,expanded:eu.value.size>0&&eu.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:((c=e.result)==null?void 0:c.duration)!=null?Math.round((f=e.result)==null?void 0:f.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:nw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:(d=e.result)==null?void 0:d.state},Ee.nodes.set(e.id,r),Ee.root.tasks.push(r)),t)for(let h=0;h<e.tasks.length;h++)xa(e.id,e.tasks[h],!0)}function rw(e,t){const r=Ee.nodes.get(e);if(!r||!pi(r))return;const o=mt.state.idMap.get(e);if(!(!o||!wa(o)))return xa(r.parentId,o,t&&o.tasks.length>0),[r,o]}function SE(e){const t=Ee.nodes.get(e);if(!t)return;const r=mt.state.idMap.get(e);!r||!Pb(r)||xa(t.parentId,r,!1)}function xa(e,t,r){var f,d,h,p,v;const o=Ee.nodes.get(e);let s;const c=((f=t.result)==null?void 0:f.duration)!=null?Math.round((d=t.result)==null?void 0:d.duration):void 0;if(o&&(s=Ee.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.mode=t.mode,s.duration=c,s.state=(h=t.result)==null?void 0:h.state):(Pb(t)?s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:t.type,expandable:!1,expanded:!1,indent:o.indent+1,duration:c,state:(p=t.result)==null?void 0:p.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:eu.value.size>0&&eu.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:(v=t.result)==null?void 0:v.state},Ee.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&wa(t)))for(let m=0;m<t.tasks.length;m++)xa(s.id,t.tasks[m],r)}function _E(e){const t=Ee.nodes.get(e);if(!t||!pi(t))return;const r=new Set(Mr.value);r.delete(t.id);const o=[...CE(t)];Mr.value=Array.from(r),Gn.value=o}function kE(){Bd(Ee.root.tasks);const e=[...Gn.value.filter(Nn)];Bd(e),Mr.value=[],cn.value.expandAll=!0,Gn.value=e}function Bd(e){for(const t of e)pi(t)&&(t.expanded=!1,Bd(t.tasks))}function*iw(e,t){if(t&&(yield e.id),pi(e))for(let r=0;r<e.tasks.length;r++)yield*iw(e.tasks[r],!0)}function*CE(e){const t=e.id,r=new Set(iw(e,!1));for(let o=0;o<Gn.value.length;o++){const s=Gn.value[o];if(s.id===t){s.expanded=!1,yield s;continue}if(r.has(s.id)){r.delete(s.id);continue}yield s}}const Ru=je("idle"),gs=ke(()=>Ru.value==="idle"),Wi=je([]);function TE(e,t,r){return e?lw(e,t,r):!1}function Bh(e,t){const r=[...ow(e,t)];Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function*ow(e,t){for(const r of xE())yield*sw(r,e,t)}function*sw(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))c.push([m,b]);else{for(const[m,b]of Wd(e,o,w=>mm(w,t,r)))pi(b)?(s.set(b.id,m),Nn(b)?(m&&(f=b.id),c.push([m,b])):c.push([m||s.get(b.parentId)===!0,b])):c.push([m||s.get(b.parentId)===!0,b]);!f&&!Nn(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...AE(c,r.onlyTests,o,d,f)].reverse(),p=Ee.nodes,v=new Set(h.filter(m=>{var b;return Nn(m)||pi(m)&&((b=p.get(m.parentId))==null?void 0:b.expanded)}).map(m=>m.id));yield*h.filter(m=>{var b;return Nn(m)||v.has(m.parentId)&&((b=p.get(m.parentId))==null?void 0:b.expanded)})}function EE(e,t,r,o,s){if(o){if(Nn(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Ee.nodes.get(t.parentId);return c&&Nn(c)&&s.add(c.id),t}}function*AE(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=pi(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Ee.nodes.get(d.parentId);for(;p;)r.add(p.id),Nn(p)&&o.add(p.id),p=Ee.nodes.get(p.parentId);yield d;continue}if(h){const p=EE(f,d,r,t,o);p&&(yield p)}else if(f){const p=Ee.nodes.get(d.parentId);p&&Nn(p)&&o.add(p.id),yield d}}}function ME(e,t){var r,o;return(t.success||t.failed)&&"result"in e&&(t.success&&((r=e.result)==null?void 0:r.state)==="pass"||t.failed&&((o=e.result)==null?void 0:o.state)==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function lw(e,t,r){if(t.length===0||yE(e.name,t))if(r.success||r.failed||r.skipped){if(ME(e,r))return!0}else return!0;return!1}function*Wd(e,t,r){const o=r(e);if(o)if(bE(e)){let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}else if(Nn(e))t.add(e.id);else{t.add(e.id);let s=Ee.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Ee.nodes.get(s.parentId)}if(yield[o,e],pi(e))for(let s=0;s<e.tasks.length;s++)yield*Wd(e.tasks[s],t,r)}function mm(e,t,r){const o=mt.state.idMap.get(e.id);return o?lw(o,t,r):!1}function LE(e,t,r){const o=rw(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)xa(s.id,p,!1);s.expanded=!0;const f=new Set(Mr.value);f.add(s.id);const d=new Set(sw(s,t,r)),h=[...OE(s,d)];Mr.value=Array.from(f),Gn.value=h}function NE(e,t){Wh(Ee.root.tasks,!1);const r=[...ow(e,t)];cn.value.expandAll=!1,Mr.value=[],Gn.value=r,Pu.value=r.filter(Nn).map(o=>ar(o.id))}function $E(e,t){if(e.size)for(const r of Gn.value)e.has(r.id)&&(r.expanded=!0);else t&&Wh(Gn.value.filter(Nn),!0)}function Wh(e,t){for(const r of e)pi(r)&&(r.expanded=!0,Wh(r.tasks,!1));t&&(cn.value.expandAll=!1,Mr.value=[])}function*OE(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Gn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function qh(e){return Rb(e).some(t=>{var r,o;return(o=(r=t.result)==null?void 0:r.errors)==null?void 0:o.some(s=>typeof(s==null?void 0:s.message)=="string"&&s.message.match(/Snapshot .* mismatched/))})}function PE(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>ia(s,t)),Fd.value=[...Ee.root.tasks],Bh(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function RE(e){queueMicrotask(()=>{const t=Ee.pendingTasks,r=mt.state.idMap;for(const o of e)if(o[1]){const c=r.get(o[0]);if(c){let f=t.get(c.file.id);f||(f=new Set,t.set(c.file.id,f)),f.add(c.id)}}})}function ym(e,t,r,o,s){e&&BE(r);const c=!e;queueMicrotask(()=>{t?IE(c):FE(c)}),queueMicrotask(()=>{WE(r)}),queueMicrotask(()=>{t&&(r.failedSnapshot=Fd.value&&qh(Fd.value.map(f=>ar(f.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{HE(o,s,t)})}function*zE(){yield*Gn.value.filter(wE)}function DE(){const e=mt.state.idMap;let t;for(const r of zE())t=e.get(r.parentId),t&&wa(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function IE(e){const t=mt.state.getFiles(),r=Ee.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)ia(o[c],e),tu(o[c].tasks);const s=Ee.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=ar(f.id);if(!d)continue;ia(d,e);const h=d.tasks;h!=null&&h.length&&tu(d.tasks)}}function FE(e){const t=new Map(Ee.pendingTasks.entries());Ee.pendingTasks.clear();const r=Ee.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>ar(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],ia(s,!1),tu(s.tasks),t.delete(s.id);const c=mt.state.idMap,f=Ee.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=ar(h.id);if(!p)continue;const v=t.get(p.id);v&&(ia(p,e),tu(Array.from(v).map(m=>c.get(m)).filter(Boolean)))}}function HE(e,t,r=!1){const o=cn.value.expandAll,s=o!==!0,c=new Set(Mr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{bm(e,t,r)}),Os.value||queueMicrotask(()=>{(Gn.value.length||r)&&(Os.value=!0)}),f&&(queueMicrotask(()=>{$E(c,r),s&&(cn.value.expandAll=!1)}),queueMicrotask(()=>{bm(e,t,r)}))}function bm(e,t,r){Bh(e,t),r&&(DE(),Ru.value="idle")}function tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],wa(t)?rw(t.id,!0):SE(t.id)}function BE(e){e.files=0,e.time="",e.filesFailed=0,e.filesSuccess=0,e.filesIgnore=0,e.filesRunning=0,e.filesSkipped=0,e.filesTodo=0,e.testsFailed=0,e.testsSuccess=0,e.testsIgnore=0,e.testsSkipped=0,e.testsTodo=0,e.totalTests=0,e.failedSnapshotEnabled=!1}function WE(e){var f,d,h,p,v,m;const t=mt.state.idMap,r=new Map(Ee.root.tasks.filter(b=>t.has(b.id)).map(b=>[b.id,b])),o=Array.from(r.values()).map(b=>[b.id,ar(b.id)]),s={files:r.size,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};let c=0;for(const[b,w]of o){if(!w)continue;const E=r.get(b);E&&(E.mode=w.mode,E.setupDuration=w.setupDuration,E.prepareDuration=w.prepareDuration,E.environmentLoad=w.environmentLoad,E.collectDuration=w.collectDuration,E.duration=((f=w.result)==null?void 0:f.duration)!=null?Math.round((d=w.result)==null?void 0:d.duration):void 0,E.state=(h=w.result)==null?void 0:h.state),c+=Math.max(0,w.collectDuration||0),c+=Math.max(0,w.setupDuration||0),c+=Math.max(0,((p=w.result)==null?void 0:p.duration)||0),c+=Math.max(0,w.environmentLoad||0),c+=Math.max(0,w.prepareDuration||0),s.time=c>1e3?`${(c/1e3).toFixed(2)}s`:`${Math.round(c)}ms`,((v=w.result)==null?void 0:v.state)==="fail"?s.filesFailed++:((m=w.result)==null?void 0:m.state)==="pass"?s.filesSuccess++:w.mode==="skip"?(s.filesIgnore++,s.filesSkipped++):w.mode==="todo"?(s.filesIgnore++,s.filesTodo++):s.filesRunning++;const{failed:N,success:L,skipped:M,total:T,ignored:P,todo:A}=aw(w);s.totalTests+=T,s.testsFailed+=N,s.testsSuccess+=L,s.testsSkipped+=M,s.testsTodo+=A,s.testsIgnore+=P}e.files=s.files,e.time=s.time,e.filesFailed=s.filesFailed,e.filesSuccess=s.filesSuccess,e.filesIgnore=s.filesIgnore,e.filesRunning=s.filesRunning,e.filesSkipped=s.filesSkipped,e.filesTodo=s.filesTodo,e.testsFailed=s.testsFailed,e.testsSuccess=s.testsSuccess,e.testsFailed=s.testsFailed,e.testsTodo=s.testsTodo,e.testsIgnore=s.testsIgnore,e.testsSkipped=s.testsSkipped,e.totalTests=s.totalTests}function aw(e,t="",r){var s,c;const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const f of cw(e))(!r||TE(f,t,r))&&(o.total++,((s=f.result)==null?void 0:s.state)==="fail"?o.failed++:((c=f.result)==null?void 0:c.state)==="pass"?o.success++:f.mode==="skip"?(o.ignored++,o.skipped++):f.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function qE(e,t,r,o,s,c){var f,d;if(t)return r.map(h=>aw(h,s,c)).reduce((h,{failed:p,success:v,ignored:m,running:b})=>(h.failed+=p,h.success+=v,h.skipped+=m,h.running+=b,h),{failed:0,success:0,skipped:0,running:0});if(e){const h={failed:0,success:0,skipped:0,running:0},p=!c.success&&!c.failed,v=c.failed||p,m=c.success||p;for(const b of r)((f=b.result)==null?void 0:f.state)==="fail"?h.failed+=v?1:0:((d=b.result)==null?void 0:d.state)==="pass"?h.success+=m?1:0:b.mode==="skip"||b.mode==="todo"||h.running++;return h}return o}function*cw(e){const t=Rh(e);let r;for(let o=0;o<t.length;o++)r=t[o],na(r)?yield r:yield*cw(r.tasks)}class UE{constructor(t=[],r=!1,o=500,s={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},c=new Map,f=new Map,d=er({files:0,time:"",filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesSnapshotFailed:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0,failedSnapshot:!1,failedSnapshotEnabled:!1})){us(this,"rafCollector");us(this,"resumeEndRunId");this.projects=t,this.onTaskUpdateCalled=r,this.resumeEndTimeout=o,this.root=s,this.pendingTasks=c,this.nodes=f,this.summary=d,this.rafCollector=nE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}loadFiles(t,r){this.projects.splice(0,this.projects.length,...r),PE(t,!0,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}startRun(){this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}resumeRun(t){RE(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(){this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}):ym(t,r,this.summary,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collectTestsTotal(t,r,o,s){return qE(t,r,o,s,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})}collapseNode(t){queueMicrotask(()=>{_E(t)})}expandNode(t){queueMicrotask(()=>{LE(t,Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{kE()})}expandAllNodes(){queueMicrotask(()=>{NE(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}filterNodes(){queueMicrotask(()=>{Bh(Wn.value.trim(),{failed:Je.failed,success:Je.success,skipped:Je.skipped,onlyTests:Je.onlyTests})})}}const Ee=new UE,Fr=je([414,896]),zu=pE("hash",{initialValue:{file:"",view:null,line:null,test:null}}),eo=pa(zu,"file"),Yn=pa(zu,"view"),uw=pa(zu,"line"),fw=pa(zu,"test"),Ps=je(),Es=je(!0),to=je(!1),nu=je(!0),vs=ke(()=>{var e;return(e=Du.value)==null?void 0:e.coverage}),qd=ke(()=>{var e;return(e=vs.value)==null?void 0:e.enabled}),ms=ke(()=>qd.value&&!!vs.value.htmlReporter),wr=Ou("vitest-ui_splitpanes-mainSizes",[33,67],{initOnMounted:!0}),Lo=Ou("vitest-ui_splitpanes-detailSizes",[33,67],{initOnMounted:!0}),vn=er({navigation:wr.value[0],details:{size:wr.value[1],browser:Lo.value[0],main:Lo.value[1]}}),wm=ke(()=>{var e;if(ms.value){const t=vs.value.reportsDirectory.lastIndexOf("/"),r=(e=vs.value.htmlReporter)==null?void 0:e.subdir;return r?`/${vs.value.reportsDirectory.slice(t+1)}/${r}/index.html`:`/${vs.value.reportsDirectory.slice(t+1)}/index.html`}});Et(Ru,e=>{nu.value=e==="running"},{immediate:!0});function jE(){const e=eo.value;if(e&&e.length>0){const t=ar(e);t?(Ps.value=t,Es.value=!1,to.value=!1):JT(()=>mt.state.getFiles(),()=>{Ps.value=ar(e),Es.value=!1,to.value=!1})}return Es}function ru(e){Es.value=e,to.value=!1,e&&(Ps.value=void 0,eo.value="")}function dw({file:e,line:t,view:r,test:o}){eo.value=e,uw.value=t,Yn.value=r,fw.value=o,Ps.value=ar(e),ru(!1)}function VE(e){dw({file:e.file.id,test:e.type==="test"?e.id:null,line:null,view:null})}function GE(){to.value=!0,Es.value=!1,Ps.value=void 0,eo.value=""}function KE(){vn.details.browser=100,vn.details.main=0,Lo.value=[100,0]}function XE(){vn.details.browser=33,vn.details.main=67,Lo.value=[33,67]}function YE(){vn.navigation=33,vn.details.size=67,wr.value=[33,67]}const ZE={setCurrentFileId(e){eo.value=e,Ps.value=ar(e),ru(!1)},async setIframeViewport(e,t){Fr.value=[e,t],await new Promise(r=>requestAnimationFrame(r))}},JE=location.port,QE=[location.hostname,JE].filter(Boolean).join(":"),eA=`${location.protocol==="https:"?"wss:":"ws:"}//${QE}/__vitest_api__?token=${window.VITEST_API_TOKEN}`,Cr=!!window.METADATA_PATH,tA=44,xm="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",nA=new Uint8Array(64),hw=new Uint8Array(128);for(let e=0;e<xm.length;e++){const t=xm.charCodeAt(e);nA[e]=t,hw[t]=e}function Sl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=hw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Sm(e,t){return e.pos>=t?!1:e.peek()!==tA}class rA{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:o}=this,s=r.indexOf(t,o);return s===-1?r.length:s}}function iA(e){const{length:t}=e,r=new rA(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),v=[];let m=!0,b=0;for(s=0;r.pos<p;){let w;s=Sl(r,s),s<b&&(m=!1),b=s,Sm(r,p)?(c=Sl(r,c),f=Sl(r,f),d=Sl(r,d),Sm(r,p)?(h=Sl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],v.push(w),r.pos++}m||oA(v),o.push(v),r.pos=p+1}while(r.pos<=t);return o}function oA(e){e.sort(sA)}function sA(e,t){return e[0]-t[0]}const lA=/^[\w+.-]+:\/\//,aA=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,cA=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Wt;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Wt||(Wt={}));function uA(e){return lA.test(e)}function fA(e){return e.startsWith("//")}function pw(e){return e.startsWith("/")}function dA(e){return e.startsWith("file:")}function _m(e){return/^[.?#]/.test(e)}function gc(e){const t=aA.exec(e);return gw(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function hA(e){const t=cA.exec(e),r=t[2];return gw("file:","",t[1]||"","",pw(r)?r:"/"+r,t[3]||"",t[4]||"")}function gw(e,t,r,o,s,c,f){return{scheme:e,user:t,host:r,port:o,path:s,query:c,hash:f,type:Wt.Absolute}}function km(e){if(fA(e)){const r=gc("http:"+e);return r.scheme="",r.type=Wt.SchemeRelative,r}if(pw(e)){const r=gc("http://foo.com"+e);return r.scheme="",r.host="",r.type=Wt.AbsolutePath,r}if(dA(e))return hA(e);if(uA(e))return gc(e);const t=gc("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Wt.Query:e.startsWith("#")?Wt.Hash:Wt.RelativePath:Wt.Empty,t}function pA(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function gA(e,t){vw(t,t.type),e.path==="/"?e.path=t.path:e.path=pA(t.path)+e.path}function vw(e,t){const r=t<=Wt.RelativePath,o=e.path.split("/");let s=1,c=0,f=!1;for(let h=1;h<o.length;h++){const p=o[h];if(!p){f=!0;continue}if(f=!1,p!=="."){if(p===".."){c?(f=!0,c--,s--):r&&(o[s++]=p);continue}o[s++]=p,c++}}let d="";for(let h=1;h<s;h++)d+="/"+o[h];(!d||f&&!d.endsWith("/.."))&&(d+="/"),e.path=d}function vA(e,t){if(!e&&!t)return"";const r=km(e);let o=r.type;if(t&&o!==Wt.Absolute){const c=km(t),f=c.type;switch(o){case Wt.Empty:r.hash=c.hash;case Wt.Hash:r.query=c.query;case Wt.Query:case Wt.RelativePath:gA(r,c);case Wt.AbsolutePath:r.user=c.user,r.host=c.host,r.port=c.port;case Wt.SchemeRelative:r.scheme=c.scheme}f>o&&(o=f)}vw(r,o);const s=r.query+r.hash;switch(o){case Wt.Hash:case Wt.Query:return s;case Wt.RelativePath:{const c=r.path.slice(1);return c?_m(t||e)&&!_m(c)?"./"+c+s:c+s:s||"."}case Wt.AbsolutePath:return r.path+s;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+s}}function Cm(e,t){return t&&!t.endsWith("/")&&(t+="/"),vA(e,t)}function mA(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const no=0,yA=1,bA=2,wA=3,xA=4;function SA(e,t){const r=Tm(e,0);if(r===e.length)return e;t||(e=e.slice());for(let o=r;o<e.length;o=Tm(e,o+1))e[o]=kA(e[o],t);return e}function Tm(e,t){for(let r=t;r<e.length;r++)if(!_A(e[r]))return r;return e.length}function _A(e){for(let t=1;t<e.length;t++)if(e[t][no]<e[t-1][no])return!1;return!0}function kA(e,t){return t||(e=e.slice()),e.sort(CA)}function CA(e,t){return e[no]-t[no]}let iu=!1;function TA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][no]-t;if(c===0)return iu=!0,s;c<0?r=s+1:o=s-1}return iu=!1,r-1}function EA(e,t,r){for(let o=r+1;o<e.length&&e[o][no]===t;r=o++);return r}function AA(e,t,r){for(let o=r-1;o>=0&&e[o][no]===t;r=o--);return r}function MA(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function LA(e,t,r,o){const{lastKey:s,lastNeedle:c,lastIndex:f}=r;let d=0,h=e.length-1;if(o===s){if(t===c)return iu=f!==-1&&e[f][no]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=TA(e,t,d,h)}const NA="`line` must be greater than 0 (lines start at line 1)",$A="`column` must be greater than or equal to 0 (columns start at column 0)",Em=-1,OA=1;class PA{constructor(t,r){const o=typeof t=="string";if(!o&&t._decodedMemo)return t;const s=o?JSON.parse(t):t,{version:c,file:f,names:d,sourceRoot:h,sources:p,sourcesContent:v}=s;this.version=c,this.file=f,this.names=d||[],this.sourceRoot=h,this.sources=p,this.sourcesContent=v,this.ignoreList=s.ignoreList||s.x_google_ignoreList||void 0;const m=Cm(h||"",mA(r));this.resolvedSources=p.map(w=>Cm(w||"",m));const{mappings:b}=s;typeof b=="string"?(this._encoded=b,this._decoded=void 0):(this._encoded=void 0,this._decoded=SA(b,o)),this._decodedMemo=MA(),this._bySources=void 0,this._bySourceMemos=void 0}}function RA(e){var t;return(t=e)._decoded||(t._decoded=iA(e._encoded))}function zA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(NA);if(o<0)throw new Error($A);const c=RA(e);if(r>=c.length)return vc(null,null,null,null);const f=c[r],d=DA(f,e._decodedMemo,r,o,s||OA);if(d===-1)return vc(null,null,null,null);const h=f[d];if(h.length===1)return vc(null,null,null,null);const{names:p,resolvedSources:v}=e;return vc(v[h[yA]],h[bA]+1,h[wA],h.length===5?p[h[xA]]:null)}function vc(e,t,r,o){return{source:e,line:t,column:r,name:o}}function DA(e,t,r,o,s){let c=LA(e,o,t,r);return iu?c=(s===Em?EA:AA)(e,o,c):s===Em&&c++,c===-1||c===e.length?-1:c}const IA=/^[A-Za-z]:\//;function FA(e=""){return e&&e.replace(/\\/g,"/").replace(IA,t=>t.toUpperCase())}const HA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function BA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const WA=function(...e){e=e.map(o=>FA(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:BA();!s||s.length===0||(t=`${s}/${t}`,r=Am(s))}return t=qA(t,!r),r&&!Am(t)?`/${t}`:t.length>0?t:"."};function qA(e,t){let r="",o=0,s=-1,c=0,f=null;for(let d=0;d<=e.length;++d){if(d<e.length)f=e[d];else{if(f==="/")break;f="/"}if(f==="/"){if(!(s===d-1||c===1))if(c===2){if(r.length<2||o!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const h=r.lastIndexOf("/");h===-1?(r="",o=0):(r=r.slice(0,h),o=r.length-1-r.lastIndexOf("/")),s=d,c=0;continue}else if(r.length>0){r="",o=0,s=d,c=0;continue}}t&&(r+=r.length>0?"/..":"..",o=2)}else r.length>0?r+=`/${e.slice(s+1,d)}`:r=e.slice(s+1,d),o=d-s-1;s=d,c=0}else f==="."&&c!==-1?++c:c=-1}return r}const Am=function(e){return HA.test(e)},mw=/^\s*at .*(?:\S:\d+|\(native\))/m,UA=/^(?:eval@)?(?:\[native code\])?$/,jA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function yw(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let o=r[1];if(o.startsWith("async ")&&(o=o.slice(6)),o.startsWith("http:")||o.startsWith("https:")){const s=new URL(o);s.searchParams.delete("import"),s.searchParams.delete("browserv"),o=s.pathname+s.hash+s.search}if(o.startsWith("/@fs/")){const s=/^\/@fs\/[a-zA-Z]:\//.test(o);o=o.slice(s?5:4)}return[o,r[2]||void 0,r[3]||void 0]}function VA(e){let t=e.trim();if(UA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,o=t.match(r),s=o&&o[1]?o[1]:void 0,[c,f,d]=yw(t.replace(r,""));return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function GA(e){let t=e.trim();if(!mw.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const o=r.match(/ (\(.+\)$)/);r=o?r.replace(o[0],""):r;const[s,c,f]=yw(o?o[1]:r);let d=o&&r||"",h=s&&["eval","<anonymous>"].includes(s)?void 0:s;return!h||!c||!f?null:(d.startsWith("async ")&&(d=d.slice(6)),h.startsWith("file://")&&(h=h.slice(7)),h=h.startsWith("node:")||h.startsWith("internal:")?h:WA(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function KA(e,t={}){const{ignoreStackEntries:r=jA}=t;return(mw.test(e)?YA(e):XA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)==null?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Mm(r,s.file)?null:s;const d=new PA(f),{line:h,column:p,source:v,name:m}=zA(d,s);let b=s.file;if(v){const w=s.file.startsWith("file://")?s.file:`file://${s.file}`,E=f.sourceRoot?new URL(f.sourceRoot,w):w;b=new URL(v,E).pathname}return Mm(r,b)?null:h!=null&&p!=null?{line:h,column:p,file:b,method:m||s.method}:s}).filter(s=>s!=null)}function Mm(e,t){return e.some(r=>t.match(r))}function XA(e){return e.split(`
|
|
18
18
|
`).map(t=>VA(t)).filter($b)}function YA(e){return e.split(`
|
|
19
19
|
`).map(t=>GA(t)).filter($b)}function bw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var td={},yr={};const ZA="Á",JA="á",QA="Ă",eM="ă",tM="∾",nM="∿",rM="∾̳",iM="Â",oM="â",sM="´",lM="А",aM="а",cM="Æ",uM="æ",fM="",dM="𝔄",hM="𝔞",pM="À",gM="à",vM="ℵ",mM="ℵ",yM="Α",bM="α",wM="Ā",xM="ā",SM="⨿",_M="&",kM="&",CM="⩕",TM="⩓",EM="∧",AM="⩜",MM="⩘",LM="⩚",NM="∠",$M="⦤",OM="∠",PM="⦨",RM="⦩",zM="⦪",DM="⦫",IM="⦬",FM="⦭",HM="⦮",BM="⦯",WM="∡",qM="∟",UM="⊾",jM="⦝",VM="∢",GM="Å",KM="⍼",XM="Ą",YM="ą",ZM="𝔸",JM="𝕒",QM="⩯",eL="≈",tL="⩰",nL="≊",rL="≋",iL="'",oL="",sL="≈",lL="≊",aL="Å",cL="å",uL="𝒜",fL="𝒶",dL="≔",hL="*",pL="≈",gL="≍",vL="Ã",mL="ã",yL="Ä",bL="ä",wL="∳",xL="⨑",SL="≌",_L="϶",kL="‵",CL="∽",TL="⋍",EL="∖",AL="⫧",ML="⊽",LL="⌅",NL="⌆",$L="⌅",OL="⎵",PL="⎶",RL="≌",zL="Б",DL="б",IL="„",FL="∵",HL="∵",BL="∵",WL="⦰",qL="϶",UL="ℬ",jL="ℬ",VL="Β",GL="β",KL="ℶ",XL="≬",YL="𝔅",ZL="𝔟",JL="⋂",QL="◯",eN="⋃",tN="⨀",nN="⨁",rN="⨂",iN="⨆",oN="★",sN="▽",lN="△",aN="⨄",cN="⋁",uN="⋀",fN="⤍",dN="⧫",hN="▪",pN="▴",gN="▾",vN="◂",mN="▸",yN="␣",bN="▒",wN="░",xN="▓",SN="█",_N="=⃥",kN="≡⃥",CN="⫭",TN="⌐",EN="𝔹",AN="𝕓",MN="⊥",LN="⊥",NN="⋈",$N="⧉",ON="┐",PN="╕",RN="╖",zN="╗",DN="┌",IN="╒",FN="╓",HN="╔",BN="─",WN="═",qN="┬",UN="╤",jN="╥",VN="╦",GN="┴",KN="╧",XN="╨",YN="╩",ZN="⊟",JN="⊞",QN="⊠",e$="┘",t$="╛",n$="╜",r$="╝",i$="└",o$="╘",s$="╙",l$="╚",a$="│",c$="║",u$="┼",f$="╪",d$="╫",h$="╬",p$="┤",g$="╡",v$="╢",m$="╣",y$="├",b$="╞",w$="╟",x$="╠",S$="‵",_$="˘",k$="˘",C$="¦",T$="𝒷",E$="ℬ",A$="⁏",M$="∽",L$="⋍",N$="⧅",$$="\\",O$="⟈",P$="•",R$="•",z$="≎",D$="⪮",I$="≏",F$="≎",H$="≏",B$="Ć",W$="ć",q$="⩄",U$="⩉",j$="⩋",V$="∩",G$="⋒",K$="⩇",X$="⩀",Y$="ⅅ",Z$="∩︀",J$="⁁",Q$="ˇ",eO="ℭ",tO="⩍",nO="Č",rO="č",iO="Ç",oO="ç",sO="Ĉ",lO="ĉ",aO="∰",cO="⩌",uO="⩐",fO="Ċ",dO="ċ",hO="¸",pO="¸",gO="⦲",vO="¢",mO="·",yO="·",bO="𝔠",wO="ℭ",xO="Ч",SO="ч",_O="✓",kO="✓",CO="Χ",TO="χ",EO="ˆ",AO="≗",MO="↺",LO="↻",NO="⊛",$O="⊚",OO="⊝",PO="⊙",RO="®",zO="Ⓢ",DO="⊖",IO="⊕",FO="⊗",HO="○",BO="⧃",WO="≗",qO="⨐",UO="⫯",jO="⧂",VO="∲",GO="”",KO="’",XO="♣",YO="♣",ZO=":",JO="∷",QO="⩴",eP="≔",tP="≔",nP=",",rP="@",iP="∁",oP="∘",sP="∁",lP="ℂ",aP="≅",cP="⩭",uP="≡",fP="∮",dP="∯",hP="∮",pP="𝕔",gP="ℂ",vP="∐",mP="∐",yP="©",bP="©",wP="℗",xP="∳",SP="↵",_P="✗",kP="⨯",CP="𝒞",TP="𝒸",EP="⫏",AP="⫑",MP="⫐",LP="⫒",NP="⋯",$P="⤸",OP="⤵",PP="⋞",RP="⋟",zP="↶",DP="⤽",IP="⩈",FP="⩆",HP="≍",BP="∪",WP="⋓",qP="⩊",UP="⊍",jP="⩅",VP="∪︀",GP="↷",KP="⤼",XP="⋞",YP="⋟",ZP="⋎",JP="⋏",QP="¤",eR="↶",tR="↷",nR="⋎",rR="⋏",iR="∲",oR="∱",sR="⌭",lR="†",aR="‡",cR="ℸ",uR="↓",fR="↡",dR="⇓",hR="‐",pR="⫤",gR="⊣",vR="⤏",mR="˝",yR="Ď",bR="ď",wR="Д",xR="д",SR="‡",_R="⇊",kR="ⅅ",CR="ⅆ",TR="⤑",ER="⩷",AR="°",MR="∇",LR="Δ",NR="δ",$R="⦱",OR="⥿",PR="𝔇",RR="𝔡",zR="⥥",DR="⇃",IR="⇂",FR="´",HR="˙",BR="˝",WR="`",qR="˜",UR="⋄",jR="⋄",VR="⋄",GR="♦",KR="♦",XR="¨",YR="ⅆ",ZR="ϝ",JR="⋲",QR="÷",e2="÷",t2="⋇",n2="⋇",r2="Ђ",i2="ђ",o2="⌞",s2="⌍",l2="$",a2="𝔻",c2="𝕕",u2="¨",f2="˙",d2="⃜",h2="≐",p2="≑",g2="≐",v2="∸",m2="∔",y2="⊡",b2="⌆",w2="∯",x2="¨",S2="⇓",_2="⇐",k2="⇔",C2="⫤",T2="⟸",E2="⟺",A2="⟹",M2="⇒",L2="⊨",N2="⇑",$2="⇕",O2="∥",P2="⤓",R2="↓",z2="↓",D2="⇓",I2="⇵",F2="̑",H2="⇊",B2="⇃",W2="⇂",q2="⥐",U2="⥞",j2="⥖",V2="↽",G2="⥟",K2="⥗",X2="⇁",Y2="↧",Z2="⊤",J2="⤐",Q2="⌟",ez="⌌",tz="𝒟",nz="𝒹",rz="Ѕ",iz="ѕ",oz="⧶",sz="Đ",lz="đ",az="⋱",cz="▿",uz="▾",fz="⇵",dz="⥯",hz="⦦",pz="Џ",gz="џ",vz="⟿",mz="É",yz="é",bz="⩮",wz="Ě",xz="ě",Sz="Ê",_z="ê",kz="≖",Cz="≕",Tz="Э",Ez="э",Az="⩷",Mz="Ė",Lz="ė",Nz="≑",$z="ⅇ",Oz="≒",Pz="𝔈",Rz="𝔢",zz="⪚",Dz="È",Iz="è",Fz="⪖",Hz="⪘",Bz="⪙",Wz="∈",qz="⏧",Uz="ℓ",jz="⪕",Vz="⪗",Gz="Ē",Kz="ē",Xz="∅",Yz="∅",Zz="◻",Jz="∅",Qz="▫",eD=" ",tD=" ",nD=" ",rD="Ŋ",iD="ŋ",oD=" ",sD="Ę",lD="ę",aD="𝔼",cD="𝕖",uD="⋕",fD="⧣",dD="⩱",hD="ε",pD="Ε",gD="ε",vD="ϵ",mD="≖",yD="≕",bD="≂",wD="⪖",xD="⪕",SD="⩵",_D="=",kD="≂",CD="≟",TD="⇌",ED="≡",AD="⩸",MD="⧥",LD="⥱",ND="≓",$D="ℯ",OD="ℰ",PD="≐",RD="⩳",zD="≂",DD="Η",ID="η",FD="Ð",HD="ð",BD="Ë",WD="ë",qD="€",UD="!",jD="∃",VD="∃",GD="ℰ",KD="ⅇ",XD="ⅇ",YD="≒",ZD="Ф",JD="ф",QD="♀",eI="ffi",tI="ff",nI="ffl",rI="𝔉",iI="𝔣",oI="fi",sI="◼",lI="▪",aI="fj",cI="♭",uI="fl",fI="▱",dI="ƒ",hI="𝔽",pI="𝕗",gI="∀",vI="∀",mI="⋔",yI="⫙",bI="ℱ",wI="⨍",xI="½",SI="⅓",_I="¼",kI="⅕",CI="⅙",TI="⅛",EI="⅔",AI="⅖",MI="¾",LI="⅗",NI="⅜",$I="⅘",OI="⅚",PI="⅝",RI="⅞",zI="⁄",DI="⌢",II="𝒻",FI="ℱ",HI="ǵ",BI="Γ",WI="γ",qI="Ϝ",UI="ϝ",jI="⪆",VI="Ğ",GI="ğ",KI="Ģ",XI="Ĝ",YI="ĝ",ZI="Г",JI="г",QI="Ġ",eF="ġ",tF="≥",nF="≧",rF="⪌",iF="⋛",oF="≥",sF="≧",lF="⩾",aF="⪩",cF="⩾",uF="⪀",fF="⪂",dF="⪄",hF="⋛︀",pF="⪔",gF="𝔊",vF="𝔤",mF="≫",yF="⋙",bF="⋙",wF="ℷ",xF="Ѓ",SF="ѓ",_F="⪥",kF="≷",CF="⪒",TF="⪤",EF="⪊",AF="⪊",MF="⪈",LF="≩",NF="⪈",$F="≩",OF="⋧",PF="𝔾",RF="𝕘",zF="`",DF="≥",IF="⋛",FF="≧",HF="⪢",BF="≷",WF="⩾",qF="≳",UF="𝒢",jF="ℊ",VF="≳",GF="⪎",KF="⪐",XF="⪧",YF="⩺",ZF=">",JF=">",QF="≫",eH="⋗",tH="⦕",nH="⩼",rH="⪆",iH="⥸",oH="⋗",sH="⋛",lH="⪌",aH="≷",cH="≳",uH="≩︀",fH="≩︀",dH="ˇ",hH=" ",pH="½",gH="ℋ",vH="Ъ",mH="ъ",yH="⥈",bH="↔",wH="⇔",xH="↭",SH="^",_H="ℏ",kH="Ĥ",CH="ĥ",TH="♥",EH="♥",AH="…",MH="⊹",LH="𝔥",NH="ℌ",$H="ℋ",OH="⤥",PH="⤦",RH="⇿",zH="∻",DH="↩",IH="↪",FH="𝕙",HH="ℍ",BH="―",WH="─",qH="𝒽",UH="ℋ",jH="ℏ",VH="Ħ",GH="ħ",KH="≎",XH="≏",YH="⁃",ZH="‐",JH="Í",QH="í",eB="",tB="Î",nB="î",rB="И",iB="и",oB="İ",sB="Е",lB="е",aB="¡",cB="⇔",uB="𝔦",fB="ℑ",dB="Ì",hB="ì",pB="ⅈ",gB="⨌",vB="∭",mB="⧜",yB="℩",bB="IJ",wB="ij",xB="Ī",SB="ī",_B="ℑ",kB="ⅈ",CB="ℐ",TB="ℑ",EB="ı",AB="ℑ",MB="⊷",LB="Ƶ",NB="⇒",$B="℅",OB="∞",PB="⧝",RB="ı",zB="⊺",DB="∫",IB="∬",FB="ℤ",HB="∫",BB="⊺",WB="⋂",qB="⨗",UB="⨼",jB="",VB="",GB="Ё",KB="ё",XB="Į",YB="į",ZB="𝕀",JB="𝕚",QB="Ι",e3="ι",t3="⨼",n3="¿",r3="𝒾",i3="ℐ",o3="∈",s3="⋵",l3="⋹",a3="⋴",c3="⋳",u3="∈",f3="",d3="Ĩ",h3="ĩ",p3="І",g3="і",v3="Ï",m3="ï",y3="Ĵ",b3="ĵ",w3="Й",x3="й",S3="𝔍",_3="𝔧",k3="ȷ",C3="𝕁",T3="𝕛",E3="𝒥",A3="𝒿",M3="Ј",L3="ј",N3="Є",$3="є",O3="Κ",P3="κ",R3="ϰ",z3="Ķ",D3="ķ",I3="К",F3="к",H3="𝔎",B3="𝔨",W3="ĸ",q3="Х",U3="х",j3="Ќ",V3="ќ",G3="𝕂",K3="𝕜",X3="𝒦",Y3="𝓀",Z3="⇚",J3="Ĺ",Q3="ĺ",e5="⦴",t5="ℒ",n5="Λ",r5="λ",i5="⟨",o5="⟪",s5="⦑",l5="⟨",a5="⪅",c5="ℒ",u5="«",f5="⇤",d5="⤟",h5="←",p5="↞",g5="⇐",v5="⤝",m5="↩",y5="↫",b5="⤹",w5="⥳",x5="↢",S5="⤙",_5="⤛",k5="⪫",C5="⪭",T5="⪭︀",E5="⤌",A5="⤎",M5="❲",L5="{",N5="[",$5="⦋",O5="⦏",P5="⦍",R5="Ľ",z5="ľ",D5="Ļ",I5="ļ",F5="⌈",H5="{",B5="Л",W5="л",q5="⤶",U5="“",j5="„",V5="⥧",G5="⥋",K5="↲",X5="≤",Y5="≦",Z5="⟨",J5="⇤",Q5="←",e8="←",t8="⇐",n8="⇆",r8="↢",i8="⌈",o8="⟦",s8="⥡",l8="⥙",a8="⇃",c8="⌊",u8="↽",f8="↼",d8="⇇",h8="↔",p8="↔",g8="⇔",v8="⇆",m8="⇋",y8="↭",b8="⥎",w8="↤",x8="⊣",S8="⥚",_8="⋋",k8="⧏",C8="⊲",T8="⊴",E8="⥑",A8="⥠",M8="⥘",L8="↿",N8="⥒",$8="↼",O8="⪋",P8="⋚",R8="≤",z8="≦",D8="⩽",I8="⪨",F8="⩽",H8="⩿",B8="⪁",W8="⪃",q8="⋚︀",U8="⪓",j8="⪅",V8="⋖",G8="⋚",K8="⪋",X8="⋚",Y8="≦",Z8="≶",J8="≶",Q8="⪡",eW="≲",tW="⩽",nW="≲",rW="⥼",iW="⌊",oW="𝔏",sW="𝔩",lW="≶",aW="⪑",cW="⥢",uW="↽",fW="↼",dW="⥪",hW="▄",pW="Љ",gW="љ",vW="⇇",mW="≪",yW="⋘",bW="⌞",wW="⇚",xW="⥫",SW="◺",_W="Ŀ",kW="ŀ",CW="⎰",TW="⎰",EW="⪉",AW="⪉",MW="⪇",LW="≨",NW="⪇",$W="≨",OW="⋦",PW="⟬",RW="⇽",zW="⟦",DW="⟵",IW="⟵",FW="⟸",HW="⟷",BW="⟷",WW="⟺",qW="⟼",UW="⟶",jW="⟶",VW="⟹",GW="↫",KW="↬",XW="⦅",YW="𝕃",ZW="𝕝",JW="⨭",QW="⨴",e4="∗",t4="_",n4="↙",r4="↘",i4="◊",o4="◊",s4="⧫",l4="(",a4="⦓",c4="⇆",u4="⌟",f4="⇋",d4="⥭",h4="",p4="⊿",g4="‹",v4="𝓁",m4="ℒ",y4="↰",b4="↰",w4="≲",x4="⪍",S4="⪏",_4="[",k4="‘",C4="‚",T4="Ł",E4="ł",A4="⪦",M4="⩹",L4="<",N4="<",$4="≪",O4="⋖",P4="⋋",R4="⋉",z4="⥶",D4="⩻",I4="◃",F4="⊴",H4="◂",B4="⦖",W4="⥊",q4="⥦",U4="≨︀",j4="≨︀",V4="¯",G4="♂",K4="✠",X4="✠",Y4="↦",Z4="↦",J4="↧",Q4="↤",eq="↥",tq="▮",nq="⨩",rq="М",iq="м",oq="—",sq="∺",lq="∡",aq=" ",cq="ℳ",uq="𝔐",fq="𝔪",dq="℧",hq="µ",pq="*",gq="⫰",vq="∣",mq="·",yq="⊟",bq="−",wq="∸",xq="⨪",Sq="∓",_q="⫛",kq="…",Cq="∓",Tq="⊧",Eq="𝕄",Aq="𝕞",Mq="∓",Lq="𝓂",Nq="ℳ",$q="∾",Oq="Μ",Pq="μ",Rq="⊸",zq="⊸",Dq="∇",Iq="Ń",Fq="ń",Hq="∠⃒",Bq="≉",Wq="⩰̸",qq="≋̸",Uq="ʼn",jq="≉",Vq="♮",Gq="ℕ",Kq="♮",Xq=" ",Yq="≎̸",Zq="≏̸",Jq="⩃",Qq="Ň",e6="ň",t6="Ņ",n6="ņ",r6="≇",i6="⩭̸",o6="⩂",s6="Н",l6="н",a6="–",c6="⤤",u6="↗",f6="⇗",d6="↗",h6="≠",p6="≐̸",g6="",v6="",m6="",y6="",b6="≢",w6="⤨",x6="≂̸",S6="≫",_6="≪",k6=`
|
|
20
20
|
`,C6="∄",T6="∄",E6="𝔑",A6="𝔫",M6="≧̸",L6="≱",N6="≱",$6="≧̸",O6="⩾̸",P6="⩾̸",R6="⋙̸",z6="≵",D6="≫⃒",I6="≯",F6="≯",H6="≫̸",B6="↮",W6="⇎",q6="⫲",U6="∋",j6="⋼",V6="⋺",G6="∋",K6="Њ",X6="њ",Y6="↚",Z6="⇍",J6="‥",Q6="≦̸",eU="≰",tU="↚",nU="⇍",rU="↮",iU="⇎",oU="≰",sU="≦̸",lU="⩽̸",aU="⩽̸",cU="≮",uU="⋘̸",fU="≴",dU="≪⃒",hU="≮",pU="⋪",gU="⋬",vU="≪̸",mU="∤",yU="",bU=" ",wU="𝕟",xU="ℕ",SU="⫬",_U="¬",kU="≢",CU="≭",TU="∦",EU="∉",AU="≠",MU="≂̸",LU="∄",NU="≯",$U="≱",OU="≧̸",PU="≫̸",RU="≹",zU="⩾̸",DU="≵",IU="≎̸",FU="≏̸",HU="∉",BU="⋵̸",WU="⋹̸",qU="∉",UU="⋷",jU="⋶",VU="⧏̸",GU="⋪",KU="⋬",XU="≮",YU="≰",ZU="≸",JU="≪̸",QU="⩽̸",ej="≴",tj="⪢̸",nj="⪡̸",rj="∌",ij="∌",oj="⋾",sj="⋽",lj="⊀",aj="⪯̸",cj="⋠",uj="∌",fj="⧐̸",dj="⋫",hj="⋭",pj="⊏̸",gj="⋢",vj="⊐̸",mj="⋣",yj="⊂⃒",bj="⊈",wj="⊁",xj="⪰̸",Sj="⋡",_j="≿̸",kj="⊃⃒",Cj="⊉",Tj="≁",Ej="≄",Aj="≇",Mj="≉",Lj="∤",Nj="∦",$j="∦",Oj="⫽⃥",Pj="∂̸",Rj="⨔",zj="⊀",Dj="⋠",Ij="⊀",Fj="⪯̸",Hj="⪯̸",Bj="⤳̸",Wj="↛",qj="⇏",Uj="↝̸",jj="↛",Vj="⇏",Gj="⋫",Kj="⋭",Xj="⊁",Yj="⋡",Zj="⪰̸",Jj="𝒩",Qj="𝓃",eV="∤",tV="∦",nV="≁",rV="≄",iV="≄",oV="∤",sV="∦",lV="⋢",aV="⋣",cV="⊄",uV="⫅̸",fV="⊈",dV="⊂⃒",hV="⊈",pV="⫅̸",gV="⊁",vV="⪰̸",mV="⊅",yV="⫆̸",bV="⊉",wV="⊃⃒",xV="⊉",SV="⫆̸",_V="≹",kV="Ñ",CV="ñ",TV="≸",EV="⋪",AV="⋬",MV="⋫",LV="⋭",NV="Ν",$V="ν",OV="#",PV="№",RV=" ",zV="≍⃒",DV="⊬",IV="⊭",FV="⊮",HV="⊯",BV="≥⃒",WV=">⃒",qV="⤄",UV="⧞",jV="⤂",VV="≤⃒",GV="<⃒",KV="⊴⃒",XV="⤃",YV="⊵⃒",ZV="∼⃒",JV="⤣",QV="↖",e9="⇖",t9="↖",n9="⤧",r9="Ó",i9="ó",o9="⊛",s9="Ô",l9="ô",a9="⊚",c9="О",u9="о",f9="⊝",d9="Ő",h9="ő",p9="⨸",g9="⊙",v9="⦼",m9="Œ",y9="œ",b9="⦿",w9="𝔒",x9="𝔬",S9="˛",_9="Ò",k9="ò",C9="⧁",T9="⦵",E9="Ω",A9="∮",M9="↺",L9="⦾",N9="⦻",$9="‾",O9="⧀",P9="Ō",R9="ō",z9="Ω",D9="ω",I9="Ο",F9="ο",H9="⦶",B9="⊖",W9="𝕆",q9="𝕠",U9="⦷",j9="“",V9="‘",G9="⦹",K9="⊕",X9="↻",Y9="⩔",Z9="∨",J9="⩝",Q9="ℴ",eG="ℴ",tG="ª",nG="º",rG="⊶",iG="⩖",oG="⩗",sG="⩛",lG="Ⓢ",aG="𝒪",cG="ℴ",uG="Ø",fG="ø",dG="⊘",hG="Õ",pG="õ",gG="⨶",vG="⨷",mG="⊗",yG="Ö",bG="ö",wG="⌽",xG="‾",SG="⏞",_G="⎴",kG="⏜",CG="¶",TG="∥",EG="∥",AG="⫳",MG="⫽",LG="∂",NG="∂",$G="П",OG="п",PG="%",RG=".",zG="‰",DG="⊥",IG="‱",FG="𝔓",HG="𝔭",BG="Φ",WG="φ",qG="ϕ",UG="ℳ",jG="☎",VG="Π",GG="π",KG="⋔",XG="ϖ",YG="ℏ",ZG="ℎ",JG="ℏ",QG="⨣",e7="⊞",t7="⨢",n7="+",r7="∔",i7="⨥",o7="⩲",s7="±",l7="±",a7="⨦",c7="⨧",u7="±",f7="ℌ",d7="⨕",h7="𝕡",p7="ℙ",g7="£",v7="⪷",m7="⪻",y7="≺",b7="≼",w7="⪷",x7="≺",S7="≼",_7="≺",k7="⪯",C7="≼",T7="≾",E7="⪯",A7="⪹",M7="⪵",L7="⋨",N7="⪯",$7="⪳",O7="≾",P7="′",R7="″",z7="ℙ",D7="⪹",I7="⪵",F7="⋨",H7="∏",B7="∏",W7="⌮",q7="⌒",U7="⌓",j7="∝",V7="∝",G7="∷",K7="∝",X7="≾",Y7="⊰",Z7="𝒫",J7="𝓅",Q7="Ψ",eK="ψ",tK=" ",nK="𝔔",rK="𝔮",iK="⨌",oK="𝕢",sK="ℚ",lK="⁗",aK="𝒬",cK="𝓆",uK="ℍ",fK="⨖",dK="?",hK="≟",pK='"',gK='"',vK="⇛",mK="∽̱",yK="Ŕ",bK="ŕ",wK="√",xK="⦳",SK="⟩",_K="⟫",kK="⦒",CK="⦥",TK="⟩",EK="»",AK="⥵",MK="⇥",LK="⤠",NK="⤳",$K="→",OK="↠",PK="⇒",RK="⤞",zK="↪",DK="↬",IK="⥅",FK="⥴",HK="⤖",BK="↣",WK="↝",qK="⤚",UK="⤜",jK="∶",VK="ℚ",GK="⤍",KK="⤏",XK="⤐",YK="❳",ZK="}",JK="]",QK="⦌",eX="⦎",tX="⦐",nX="Ř",rX="ř",iX="Ŗ",oX="ŗ",sX="⌉",lX="}",aX="Р",cX="р",uX="⤷",fX="⥩",dX="”",hX="”",pX="↳",gX="ℜ",vX="ℛ",mX="ℜ",yX="ℝ",bX="ℜ",wX="▭",xX="®",SX="®",_X="∋",kX="⇋",CX="⥯",TX="⥽",EX="⌋",AX="𝔯",MX="ℜ",LX="⥤",NX="⇁",$X="⇀",OX="⥬",PX="Ρ",RX="ρ",zX="ϱ",DX="⟩",IX="⇥",FX="→",HX="→",BX="⇒",WX="⇄",qX="↣",UX="⌉",jX="⟧",VX="⥝",GX="⥕",KX="⇂",XX="⌋",YX="⇁",ZX="⇀",JX="⇄",QX="⇌",eY="⇉",tY="↝",nY="↦",rY="⊢",iY="⥛",oY="⋌",sY="⧐",lY="⊳",aY="⊵",cY="⥏",uY="⥜",fY="⥔",dY="↾",hY="⥓",pY="⇀",gY="˚",vY="≓",mY="⇄",yY="⇌",bY="",wY="⎱",xY="⎱",SY="⫮",_Y="⟭",kY="⇾",CY="⟧",TY="⦆",EY="𝕣",AY="ℝ",MY="⨮",LY="⨵",NY="⥰",$Y=")",OY="⦔",PY="⨒",RY="⇉",zY="⇛",DY="›",IY="𝓇",FY="ℛ",HY="↱",BY="↱",WY="]",qY="’",UY="’",jY="⋌",VY="⋊",GY="▹",KY="⊵",XY="▸",YY="⧎",ZY="⧴",JY="⥨",QY="℞",eZ="Ś",tZ="ś",nZ="‚",rZ="⪸",iZ="Š",oZ="š",sZ="⪼",lZ="≻",aZ="≽",cZ="⪰",uZ="⪴",fZ="Ş",dZ="ş",hZ="Ŝ",pZ="ŝ",gZ="⪺",vZ="⪶",mZ="⋩",yZ="⨓",bZ="≿",wZ="С",xZ="с",SZ="⊡",_Z="⋅",kZ="⩦",CZ="⤥",TZ="↘",EZ="⇘",AZ="↘",MZ="§",LZ=";",NZ="⤩",$Z="∖",OZ="∖",PZ="✶",RZ="𝔖",zZ="𝔰",DZ="⌢",IZ="♯",FZ="Щ",HZ="щ",BZ="Ш",WZ="ш",qZ="↓",UZ="←",jZ="∣",VZ="∥",GZ="→",KZ="↑",XZ="",YZ="Σ",ZZ="σ",JZ="ς",QZ="ς",eJ="∼",tJ="⩪",nJ="≃",rJ="≃",iJ="⪞",oJ="⪠",sJ="⪝",lJ="⪟",aJ="≆",cJ="⨤",uJ="⥲",fJ="←",dJ="∘",hJ="∖",pJ="⨳",gJ="⧤",vJ="∣",mJ="⌣",yJ="⪪",bJ="⪬",wJ="⪬︀",xJ="Ь",SJ="ь",_J="⌿",kJ="⧄",CJ="/",TJ="𝕊",EJ="𝕤",AJ="♠",MJ="♠",LJ="∥",NJ="⊓",$J="⊓︀",OJ="⊔",PJ="⊔︀",RJ="√",zJ="⊏",DJ="⊑",IJ="⊏",FJ="⊑",HJ="⊐",BJ="⊒",WJ="⊐",qJ="⊒",UJ="□",jJ="□",VJ="⊓",GJ="⊏",KJ="⊑",XJ="⊐",YJ="⊒",ZJ="⊔",JJ="▪",QJ="□",eQ="▪",tQ="→",nQ="𝒮",rQ="𝓈",iQ="∖",oQ="⌣",sQ="⋆",lQ="⋆",aQ="☆",cQ="★",uQ="ϵ",fQ="ϕ",dQ="¯",hQ="⊂",pQ="⋐",gQ="⪽",vQ="⫅",mQ="⊆",yQ="⫃",bQ="⫁",wQ="⫋",xQ="⊊",SQ="⪿",_Q="⥹",kQ="⊂",CQ="⋐",TQ="⊆",EQ="⫅",AQ="⊆",MQ="⊊",LQ="⫋",NQ="⫇",$Q="⫕",OQ="⫓",PQ="⪸",RQ="≻",zQ="≽",DQ="≻",IQ="⪰",FQ="≽",HQ="≿",BQ="⪰",WQ="⪺",qQ="⪶",UQ="⋩",jQ="≿",VQ="∋",GQ="∑",KQ="∑",XQ="♪",YQ="¹",ZQ="²",JQ="³",QQ="⊃",eee="⋑",tee="⪾",nee="⫘",ree="⫆",iee="⊇",oee="⫄",see="⊃",lee="⊇",aee="⟉",cee="⫗",uee="⥻",fee="⫂",dee="⫌",hee="⊋",pee="⫀",gee="⊃",vee="⋑",mee="⊇",yee="⫆",bee="⊋",wee="⫌",xee="⫈",See="⫔",_ee="⫖",kee="⤦",Cee="↙",Tee="⇙",Eee="↙",Aee="⤪",Mee="ß",Lee=" ",Nee="⌖",$ee="Τ",Oee="τ",Pee="⎴",Ree="Ť",zee="ť",Dee="Ţ",Iee="ţ",Fee="Т",Hee="т",Bee="⃛",Wee="⌕",qee="𝔗",Uee="𝔱",jee="∴",Vee="∴",Gee="∴",Kee="Θ",Xee="θ",Yee="ϑ",Zee="ϑ",Jee="≈",Qee="∼",ete=" ",tte=" ",nte=" ",rte="≈",ite="∼",ote="Þ",ste="þ",lte="˜",ate="∼",cte="≃",ute="≅",fte="≈",dte="⨱",hte="⊠",pte="×",gte="⨰",vte="∭",mte="⤨",yte="⌶",bte="⫱",wte="⊤",xte="𝕋",Ste="𝕥",_te="⫚",kte="⤩",Cte="‴",Tte="™",Ete="™",Ate="▵",Mte="▿",Lte="◃",Nte="⊴",$te="≜",Ote="▹",Pte="⊵",Rte="◬",zte="≜",Dte="⨺",Ite="⃛",Fte="⨹",Hte="⧍",Bte="⨻",Wte="⏢",qte="𝒯",Ute="𝓉",jte="Ц",Vte="ц",Gte="Ћ",Kte="ћ",Xte="Ŧ",Yte="ŧ",Zte="≬",Jte="↞",Qte="↠",ene="Ú",tne="ú",nne="↑",rne="↟",ine="⇑",one="⥉",sne="Ў",lne="ў",ane="Ŭ",cne="ŭ",une="Û",fne="û",dne="У",hne="у",pne="⇅",gne="Ű",vne="ű",mne="⥮",yne="⥾",bne="𝔘",wne="𝔲",xne="Ù",Sne="ù",_ne="⥣",kne="↿",Cne="↾",Tne="▀",Ene="⌜",Ane="⌜",Mne="⌏",Lne="◸",Nne="Ū",$ne="ū",One="¨",Pne="_",Rne="⏟",zne="⎵",Dne="⏝",Ine="⋃",Fne="⊎",Hne="Ų",Bne="ų",Wne="𝕌",qne="𝕦",Une="⤒",jne="↑",Vne="↑",Gne="⇑",Kne="⇅",Xne="↕",Yne="↕",Zne="⇕",Jne="⥮",Qne="↿",ere="↾",tre="⊎",nre="↖",rre="↗",ire="υ",ore="ϒ",sre="ϒ",lre="Υ",are="υ",cre="↥",ure="⊥",fre="⇈",dre="⌝",hre="⌝",pre="⌎",gre="Ů",vre="ů",mre="◹",yre="𝒰",bre="𝓊",wre="⋰",xre="Ũ",Sre="ũ",_re="▵",kre="▴",Cre="⇈",Tre="Ü",Ere="ü",Are="⦧",Mre="⦜",Lre="ϵ",Nre="ϰ",$re="∅",Ore="ϕ",Pre="ϖ",Rre="∝",zre="↕",Dre="⇕",Ire="ϱ",Fre="ς",Hre="⊊︀",Bre="⫋︀",Wre="⊋︀",qre="⫌︀",Ure="ϑ",jre="⊲",Vre="⊳",Gre="⫨",Kre="⫫",Xre="⫩",Yre="В",Zre="в",Jre="⊢",Qre="⊨",eie="⊩",tie="⊫",nie="⫦",rie="⊻",iie="∨",oie="⋁",sie="≚",lie="⋮",aie="|",cie="‖",uie="|",fie="‖",die="∣",hie="|",pie="❘",gie="≀",vie=" ",mie="𝔙",yie="𝔳",bie="⊲",wie="⊂⃒",xie="⊃⃒",Sie="𝕍",_ie="𝕧",kie="∝",Cie="⊳",Tie="𝒱",Eie="𝓋",Aie="⫋︀",Mie="⊊︀",Lie="⫌︀",Nie="⊋︀",$ie="⊪",Oie="⦚",Pie="Ŵ",Rie="ŵ",zie="⩟",Die="∧",Iie="⋀",Fie="≙",Hie="℘",Bie="𝔚",Wie="𝔴",qie="𝕎",Uie="𝕨",jie="℘",Vie="≀",Gie="≀",Kie="𝒲",Xie="𝓌",Yie="⋂",Zie="◯",Jie="⋃",Qie="▽",eoe="𝔛",toe="𝔵",noe="⟷",roe="⟺",ioe="Ξ",ooe="ξ",soe="⟵",loe="⟸",aoe="⟼",coe="⋻",uoe="⨀",foe="𝕏",doe="𝕩",hoe="⨁",poe="⨂",goe="⟶",voe="⟹",moe="𝒳",yoe="𝓍",boe="⨆",woe="⨄",xoe="△",Soe="⋁",_oe="⋀",koe="Ý",Coe="ý",Toe="Я",Eoe="я",Aoe="Ŷ",Moe="ŷ",Loe="Ы",Noe="ы",$oe="¥",Ooe="𝔜",Poe="𝔶",Roe="Ї",zoe="ї",Doe="𝕐",Ioe="𝕪",Foe="𝒴",Hoe="𝓎",Boe="Ю",Woe="ю",qoe="ÿ",Uoe="Ÿ",joe="Ź",Voe="ź",Goe="Ž",Koe="ž",Xoe="З",Yoe="з",Zoe="Ż",Joe="ż",Qoe="ℨ",ese="",tse="Ζ",nse="ζ",rse="𝔷",ise="ℨ",ose="Ж",sse="ж",lse="⇝",ase="𝕫",cse="ℤ",use="𝒵",fse="𝓏",dse="",hse="",ww={Aacute:ZA,aacute:JA,Abreve:QA,abreve:eM,ac:tM,acd:nM,acE:rM,Acirc:iM,acirc:oM,acute:sM,Acy:lM,acy:aM,AElig:cM,aelig:uM,af:fM,Afr:dM,afr:hM,Agrave:pM,agrave:gM,alefsym:vM,aleph:mM,Alpha:yM,alpha:bM,Amacr:wM,amacr:xM,amalg:SM,amp:_M,AMP:kM,andand:CM,And:TM,and:EM,andd:AM,andslope:MM,andv:LM,ang:NM,ange:$M,angle:OM,angmsdaa:PM,angmsdab:RM,angmsdac:zM,angmsdad:DM,angmsdae:IM,angmsdaf:FM,angmsdag:HM,angmsdah:BM,angmsd:WM,angrt:qM,angrtvb:UM,angrtvbd:jM,angsph:VM,angst:GM,angzarr:KM,Aogon:XM,aogon:YM,Aopf:ZM,aopf:JM,apacir:QM,ap:eL,apE:tL,ape:nL,apid:rL,apos:iL,ApplyFunction:oL,approx:sL,approxeq:lL,Aring:aL,aring:cL,Ascr:uL,ascr:fL,Assign:dL,ast:hL,asymp:pL,asympeq:gL,Atilde:vL,atilde:mL,Auml:yL,auml:bL,awconint:wL,awint:xL,backcong:SL,backepsilon:_L,backprime:kL,backsim:CL,backsimeq:TL,Backslash:EL,Barv:AL,barvee:ML,barwed:LL,Barwed:NL,barwedge:$L,bbrk:OL,bbrktbrk:PL,bcong:RL,Bcy:zL,bcy:DL,bdquo:IL,becaus:FL,because:HL,Because:BL,bemptyv:WL,bepsi:qL,bernou:UL,Bernoullis:jL,Beta:VL,beta:GL,beth:KL,between:XL,Bfr:YL,bfr:ZL,bigcap:JL,bigcirc:QL,bigcup:eN,bigodot:tN,bigoplus:nN,bigotimes:rN,bigsqcup:iN,bigstar:oN,bigtriangledown:sN,bigtriangleup:lN,biguplus:aN,bigvee:cN,bigwedge:uN,bkarow:fN,blacklozenge:dN,blacksquare:hN,blacktriangle:pN,blacktriangledown:gN,blacktriangleleft:vN,blacktriangleright:mN,blank:yN,blk12:bN,blk14:wN,blk34:xN,block:SN,bne:_N,bnequiv:kN,bNot:CN,bnot:TN,Bopf:EN,bopf:AN,bot:MN,bottom:LN,bowtie:NN,boxbox:$N,boxdl:ON,boxdL:PN,boxDl:RN,boxDL:zN,boxdr:DN,boxdR:IN,boxDr:FN,boxDR:HN,boxh:BN,boxH:WN,boxhd:qN,boxHd:UN,boxhD:jN,boxHD:VN,boxhu:GN,boxHu:KN,boxhU:XN,boxHU:YN,boxminus:ZN,boxplus:JN,boxtimes:QN,boxul:e$,boxuL:t$,boxUl:n$,boxUL:r$,boxur:i$,boxuR:o$,boxUr:s$,boxUR:l$,boxv:a$,boxV:c$,boxvh:u$,boxvH:f$,boxVh:d$,boxVH:h$,boxvl:p$,boxvL:g$,boxVl:v$,boxVL:m$,boxvr:y$,boxvR:b$,boxVr:w$,boxVR:x$,bprime:S$,breve:_$,Breve:k$,brvbar:C$,bscr:T$,Bscr:E$,bsemi:A$,bsim:M$,bsime:L$,bsolb:N$,bsol:$$,bsolhsub:O$,bull:P$,bullet:R$,bump:z$,bumpE:D$,bumpe:I$,Bumpeq:F$,bumpeq:H$,Cacute:B$,cacute:W$,capand:q$,capbrcup:U$,capcap:j$,cap:V$,Cap:G$,capcup:K$,capdot:X$,CapitalDifferentialD:Y$,caps:Z$,caret:J$,caron:Q$,Cayleys:eO,ccaps:tO,Ccaron:nO,ccaron:rO,Ccedil:iO,ccedil:oO,Ccirc:sO,ccirc:lO,Cconint:aO,ccups:cO,ccupssm:uO,Cdot:fO,cdot:dO,cedil:hO,Cedilla:pO,cemptyv:gO,cent:vO,centerdot:mO,CenterDot:yO,cfr:bO,Cfr:wO,CHcy:xO,chcy:SO,check:_O,checkmark:kO,Chi:CO,chi:TO,circ:EO,circeq:AO,circlearrowleft:MO,circlearrowright:LO,circledast:NO,circledcirc:$O,circleddash:OO,CircleDot:PO,circledR:RO,circledS:zO,CircleMinus:DO,CirclePlus:IO,CircleTimes:FO,cir:HO,cirE:BO,cire:WO,cirfnint:qO,cirmid:UO,cirscir:jO,ClockwiseContourIntegral:VO,CloseCurlyDoubleQuote:GO,CloseCurlyQuote:KO,clubs:XO,clubsuit:YO,colon:ZO,Colon:JO,Colone:QO,colone:eP,coloneq:tP,comma:nP,commat:rP,comp:iP,compfn:oP,complement:sP,complexes:lP,cong:aP,congdot:cP,Congruent:uP,conint:fP,Conint:dP,ContourIntegral:hP,copf:pP,Copf:gP,coprod:vP,Coproduct:mP,copy:yP,COPY:bP,copysr:wP,CounterClockwiseContourIntegral:xP,crarr:SP,cross:_P,Cross:kP,Cscr:CP,cscr:TP,csub:EP,csube:AP,csup:MP,csupe:LP,ctdot:NP,cudarrl:$P,cudarrr:OP,cuepr:PP,cuesc:RP,cularr:zP,cularrp:DP,cupbrcap:IP,cupcap:FP,CupCap:HP,cup:BP,Cup:WP,cupcup:qP,cupdot:UP,cupor:jP,cups:VP,curarr:GP,curarrm:KP,curlyeqprec:XP,curlyeqsucc:YP,curlyvee:ZP,curlywedge:JP,curren:QP,curvearrowleft:eR,curvearrowright:tR,cuvee:nR,cuwed:rR,cwconint:iR,cwint:oR,cylcty:sR,dagger:lR,Dagger:aR,daleth:cR,darr:uR,Darr:fR,dArr:dR,dash:hR,Dashv:pR,dashv:gR,dbkarow:vR,dblac:mR,Dcaron:yR,dcaron:bR,Dcy:wR,dcy:xR,ddagger:SR,ddarr:_R,DD:kR,dd:CR,DDotrahd:TR,ddotseq:ER,deg:AR,Del:MR,Delta:LR,delta:NR,demptyv:$R,dfisht:OR,Dfr:PR,dfr:RR,dHar:zR,dharl:DR,dharr:IR,DiacriticalAcute:FR,DiacriticalDot:HR,DiacriticalDoubleAcute:BR,DiacriticalGrave:WR,DiacriticalTilde:qR,diam:UR,diamond:jR,Diamond:VR,diamondsuit:GR,diams:KR,die:XR,DifferentialD:YR,digamma:ZR,disin:JR,div:QR,divide:e2,divideontimes:t2,divonx:n2,DJcy:r2,djcy:i2,dlcorn:o2,dlcrop:s2,dollar:l2,Dopf:a2,dopf:c2,Dot:u2,dot:f2,DotDot:d2,doteq:h2,doteqdot:p2,DotEqual:g2,dotminus:v2,dotplus:m2,dotsquare:y2,doublebarwedge:b2,DoubleContourIntegral:w2,DoubleDot:x2,DoubleDownArrow:S2,DoubleLeftArrow:_2,DoubleLeftRightArrow:k2,DoubleLeftTee:C2,DoubleLongLeftArrow:T2,DoubleLongLeftRightArrow:E2,DoubleLongRightArrow:A2,DoubleRightArrow:M2,DoubleRightTee:L2,DoubleUpArrow:N2,DoubleUpDownArrow:$2,DoubleVerticalBar:O2,DownArrowBar:P2,downarrow:R2,DownArrow:z2,Downarrow:D2,DownArrowUpArrow:I2,DownBreve:F2,downdownarrows:H2,downharpoonleft:B2,downharpoonright:W2,DownLeftRightVector:q2,DownLeftTeeVector:U2,DownLeftVectorBar:j2,DownLeftVector:V2,DownRightTeeVector:G2,DownRightVectorBar:K2,DownRightVector:X2,DownTeeArrow:Y2,DownTee:Z2,drbkarow:J2,drcorn:Q2,drcrop:ez,Dscr:tz,dscr:nz,DScy:rz,dscy:iz,dsol:oz,Dstrok:sz,dstrok:lz,dtdot:az,dtri:cz,dtrif:uz,duarr:fz,duhar:dz,dwangle:hz,DZcy:pz,dzcy:gz,dzigrarr:vz,Eacute:mz,eacute:yz,easter:bz,Ecaron:wz,ecaron:xz,Ecirc:Sz,ecirc:_z,ecir:kz,ecolon:Cz,Ecy:Tz,ecy:Ez,eDDot:Az,Edot:Mz,edot:Lz,eDot:Nz,ee:$z,efDot:Oz,Efr:Pz,efr:Rz,eg:zz,Egrave:Dz,egrave:Iz,egs:Fz,egsdot:Hz,el:Bz,Element:Wz,elinters:qz,ell:Uz,els:jz,elsdot:Vz,Emacr:Gz,emacr:Kz,empty:Xz,emptyset:Yz,EmptySmallSquare:Zz,emptyv:Jz,EmptyVerySmallSquare:Qz,emsp13:eD,emsp14:tD,emsp:nD,ENG:rD,eng:iD,ensp:oD,Eogon:sD,eogon:lD,Eopf:aD,eopf:cD,epar:uD,eparsl:fD,eplus:dD,epsi:hD,Epsilon:pD,epsilon:gD,epsiv:vD,eqcirc:mD,eqcolon:yD,eqsim:bD,eqslantgtr:wD,eqslantless:xD,Equal:SD,equals:_D,EqualTilde:kD,equest:CD,Equilibrium:TD,equiv:ED,equivDD:AD,eqvparsl:MD,erarr:LD,erDot:ND,escr:$D,Escr:OD,esdot:PD,Esim:RD,esim:zD,Eta:DD,eta:ID,ETH:FD,eth:HD,Euml:BD,euml:WD,euro:qD,excl:UD,exist:jD,Exists:VD,expectation:GD,exponentiale:KD,ExponentialE:XD,fallingdotseq:YD,Fcy:ZD,fcy:JD,female:QD,ffilig:eI,fflig:tI,ffllig:nI,Ffr:rI,ffr:iI,filig:oI,FilledSmallSquare:sI,FilledVerySmallSquare:lI,fjlig:aI,flat:cI,fllig:uI,fltns:fI,fnof:dI,Fopf:hI,fopf:pI,forall:gI,ForAll:vI,fork:mI,forkv:yI,Fouriertrf:bI,fpartint:wI,frac12:xI,frac13:SI,frac14:_I,frac15:kI,frac16:CI,frac18:TI,frac23:EI,frac25:AI,frac34:MI,frac35:LI,frac38:NI,frac45:$I,frac56:OI,frac58:PI,frac78:RI,frasl:zI,frown:DI,fscr:II,Fscr:FI,gacute:HI,Gamma:BI,gamma:WI,Gammad:qI,gammad:UI,gap:jI,Gbreve:VI,gbreve:GI,Gcedil:KI,Gcirc:XI,gcirc:YI,Gcy:ZI,gcy:JI,Gdot:QI,gdot:eF,ge:tF,gE:nF,gEl:rF,gel:iF,geq:oF,geqq:sF,geqslant:lF,gescc:aF,ges:cF,gesdot:uF,gesdoto:fF,gesdotol:dF,gesl:hF,gesles:pF,Gfr:gF,gfr:vF,gg:mF,Gg:yF,ggg:bF,gimel:wF,GJcy:xF,gjcy:SF,gla:_F,gl:kF,glE:CF,glj:TF,gnap:EF,gnapprox:AF,gne:MF,gnE:LF,gneq:NF,gneqq:$F,gnsim:OF,Gopf:PF,gopf:RF,grave:zF,GreaterEqual:DF,GreaterEqualLess:IF,GreaterFullEqual:FF,GreaterGreater:HF,GreaterLess:BF,GreaterSlantEqual:WF,GreaterTilde:qF,Gscr:UF,gscr:jF,gsim:VF,gsime:GF,gsiml:KF,gtcc:XF,gtcir:YF,gt:ZF,GT:JF,Gt:QF,gtdot:eH,gtlPar:tH,gtquest:nH,gtrapprox:rH,gtrarr:iH,gtrdot:oH,gtreqless:sH,gtreqqless:lH,gtrless:aH,gtrsim:cH,gvertneqq:uH,gvnE:fH,Hacek:dH,hairsp:hH,half:pH,hamilt:gH,HARDcy:vH,hardcy:mH,harrcir:yH,harr:bH,hArr:wH,harrw:xH,Hat:SH,hbar:_H,Hcirc:kH,hcirc:CH,hearts:TH,heartsuit:EH,hellip:AH,hercon:MH,hfr:LH,Hfr:NH,HilbertSpace:$H,hksearow:OH,hkswarow:PH,hoarr:RH,homtht:zH,hookleftarrow:DH,hookrightarrow:IH,hopf:FH,Hopf:HH,horbar:BH,HorizontalLine:WH,hscr:qH,Hscr:UH,hslash:jH,Hstrok:VH,hstrok:GH,HumpDownHump:KH,HumpEqual:XH,hybull:YH,hyphen:ZH,Iacute:JH,iacute:QH,ic:eB,Icirc:tB,icirc:nB,Icy:rB,icy:iB,Idot:oB,IEcy:sB,iecy:lB,iexcl:aB,iff:cB,ifr:uB,Ifr:fB,Igrave:dB,igrave:hB,ii:pB,iiiint:gB,iiint:vB,iinfin:mB,iiota:yB,IJlig:bB,ijlig:wB,Imacr:xB,imacr:SB,image:_B,ImaginaryI:kB,imagline:CB,imagpart:TB,imath:EB,Im:AB,imof:MB,imped:LB,Implies:NB,incare:$B,in:"∈",infin:OB,infintie:PB,inodot:RB,intcal:zB,int:DB,Int:IB,integers:FB,Integral:HB,intercal:BB,Intersection:WB,intlarhk:qB,intprod:UB,InvisibleComma:jB,InvisibleTimes:VB,IOcy:GB,iocy:KB,Iogon:XB,iogon:YB,Iopf:ZB,iopf:JB,Iota:QB,iota:e3,iprod:t3,iquest:n3,iscr:r3,Iscr:i3,isin:o3,isindot:s3,isinE:l3,isins:a3,isinsv:c3,isinv:u3,it:f3,Itilde:d3,itilde:h3,Iukcy:p3,iukcy:g3,Iuml:v3,iuml:m3,Jcirc:y3,jcirc:b3,Jcy:w3,jcy:x3,Jfr:S3,jfr:_3,jmath:k3,Jopf:C3,jopf:T3,Jscr:E3,jscr:A3,Jsercy:M3,jsercy:L3,Jukcy:N3,jukcy:$3,Kappa:O3,kappa:P3,kappav:R3,Kcedil:z3,kcedil:D3,Kcy:I3,kcy:F3,Kfr:H3,kfr:B3,kgreen:W3,KHcy:q3,khcy:U3,KJcy:j3,kjcy:V3,Kopf:G3,kopf:K3,Kscr:X3,kscr:Y3,lAarr:Z3,Lacute:J3,lacute:Q3,laemptyv:e5,lagran:t5,Lambda:n5,lambda:r5,lang:i5,Lang:o5,langd:s5,langle:l5,lap:a5,Laplacetrf:c5,laquo:u5,larrb:f5,larrbfs:d5,larr:h5,Larr:p5,lArr:g5,larrfs:v5,larrhk:m5,larrlp:y5,larrpl:b5,larrsim:w5,larrtl:x5,latail:S5,lAtail:_5,lat:k5,late:C5,lates:T5,lbarr:E5,lBarr:A5,lbbrk:M5,lbrace:L5,lbrack:N5,lbrke:$5,lbrksld:O5,lbrkslu:P5,Lcaron:R5,lcaron:z5,Lcedil:D5,lcedil:I5,lceil:F5,lcub:H5,Lcy:B5,lcy:W5,ldca:q5,ldquo:U5,ldquor:j5,ldrdhar:V5,ldrushar:G5,ldsh:K5,le:X5,lE:Y5,LeftAngleBracket:Z5,LeftArrowBar:J5,leftarrow:Q5,LeftArrow:e8,Leftarrow:t8,LeftArrowRightArrow:n8,leftarrowtail:r8,LeftCeiling:i8,LeftDoubleBracket:o8,LeftDownTeeVector:s8,LeftDownVectorBar:l8,LeftDownVector:a8,LeftFloor:c8,leftharpoondown:u8,leftharpoonup:f8,leftleftarrows:d8,leftrightarrow:h8,LeftRightArrow:p8,Leftrightarrow:g8,leftrightarrows:v8,leftrightharpoons:m8,leftrightsquigarrow:y8,LeftRightVector:b8,LeftTeeArrow:w8,LeftTee:x8,LeftTeeVector:S8,leftthreetimes:_8,LeftTriangleBar:k8,LeftTriangle:C8,LeftTriangleEqual:T8,LeftUpDownVector:E8,LeftUpTeeVector:A8,LeftUpVectorBar:M8,LeftUpVector:L8,LeftVectorBar:N8,LeftVector:$8,lEg:O8,leg:P8,leq:R8,leqq:z8,leqslant:D8,lescc:I8,les:F8,lesdot:H8,lesdoto:B8,lesdotor:W8,lesg:q8,lesges:U8,lessapprox:j8,lessdot:V8,lesseqgtr:G8,lesseqqgtr:K8,LessEqualGreater:X8,LessFullEqual:Y8,LessGreater:Z8,lessgtr:J8,LessLess:Q8,lesssim:eW,LessSlantEqual:tW,LessTilde:nW,lfisht:rW,lfloor:iW,Lfr:oW,lfr:sW,lg:lW,lgE:aW,lHar:cW,lhard:uW,lharu:fW,lharul:dW,lhblk:hW,LJcy:pW,ljcy:gW,llarr:vW,ll:mW,Ll:yW,llcorner:bW,Lleftarrow:wW,llhard:xW,lltri:SW,Lmidot:_W,lmidot:kW,lmoustache:CW,lmoust:TW,lnap:EW,lnapprox:AW,lne:MW,lnE:LW,lneq:NW,lneqq:$W,lnsim:OW,loang:PW,loarr:RW,lobrk:zW,longleftarrow:DW,LongLeftArrow:IW,Longleftarrow:FW,longleftrightarrow:HW,LongLeftRightArrow:BW,Longleftrightarrow:WW,longmapsto:qW,longrightarrow:UW,LongRightArrow:jW,Longrightarrow:VW,looparrowleft:GW,looparrowright:KW,lopar:XW,Lopf:YW,lopf:ZW,loplus:JW,lotimes:QW,lowast:e4,lowbar:t4,LowerLeftArrow:n4,LowerRightArrow:r4,loz:i4,lozenge:o4,lozf:s4,lpar:l4,lparlt:a4,lrarr:c4,lrcorner:u4,lrhar:f4,lrhard:d4,lrm:h4,lrtri:p4,lsaquo:g4,lscr:v4,Lscr:m4,lsh:y4,Lsh:b4,lsim:w4,lsime:x4,lsimg:S4,lsqb:_4,lsquo:k4,lsquor:C4,Lstrok:T4,lstrok:E4,ltcc:A4,ltcir:M4,lt:L4,LT:N4,Lt:$4,ltdot:O4,lthree:P4,ltimes:R4,ltlarr:z4,ltquest:D4,ltri:I4,ltrie:F4,ltrif:H4,ltrPar:B4,lurdshar:W4,luruhar:q4,lvertneqq:U4,lvnE:j4,macr:V4,male:G4,malt:K4,maltese:X4,Map:"⤅",map:Y4,mapsto:Z4,mapstodown:J4,mapstoleft:Q4,mapstoup:eq,marker:tq,mcomma:nq,Mcy:rq,mcy:iq,mdash:oq,mDDot:sq,measuredangle:lq,MediumSpace:aq,Mellintrf:cq,Mfr:uq,mfr:fq,mho:dq,micro:hq,midast:pq,midcir:gq,mid:vq,middot:mq,minusb:yq,minus:bq,minusd:wq,minusdu:xq,MinusPlus:Sq,mlcp:_q,mldr:kq,mnplus:Cq,models:Tq,Mopf:Eq,mopf:Aq,mp:Mq,mscr:Lq,Mscr:Nq,mstpos:$q,Mu:Oq,mu:Pq,multimap:Rq,mumap:zq,nabla:Dq,Nacute:Iq,nacute:Fq,nang:Hq,nap:Bq,napE:Wq,napid:qq,napos:Uq,napprox:jq,natural:Vq,naturals:Gq,natur:Kq,nbsp:Xq,nbump:Yq,nbumpe:Zq,ncap:Jq,Ncaron:Qq,ncaron:e6,Ncedil:t6,ncedil:n6,ncong:r6,ncongdot:i6,ncup:o6,Ncy:s6,ncy:l6,ndash:a6,nearhk:c6,nearr:u6,neArr:f6,nearrow:d6,ne:h6,nedot:p6,NegativeMediumSpace:g6,NegativeThickSpace:v6,NegativeThinSpace:m6,NegativeVeryThinSpace:y6,nequiv:b6,nesear:w6,nesim:x6,NestedGreaterGreater:S6,NestedLessLess:_6,NewLine:k6,nexist:C6,nexists:T6,Nfr:E6,nfr:A6,ngE:M6,nge:L6,ngeq:N6,ngeqq:$6,ngeqslant:O6,nges:P6,nGg:R6,ngsim:z6,nGt:D6,ngt:I6,ngtr:F6,nGtv:H6,nharr:B6,nhArr:W6,nhpar:q6,ni:U6,nis:j6,nisd:V6,niv:G6,NJcy:K6,njcy:X6,nlarr:Y6,nlArr:Z6,nldr:J6,nlE:Q6,nle:eU,nleftarrow:tU,nLeftarrow:nU,nleftrightarrow:rU,nLeftrightarrow:iU,nleq:oU,nleqq:sU,nleqslant:lU,nles:aU,nless:cU,nLl:uU,nlsim:fU,nLt:dU,nlt:hU,nltri:pU,nltrie:gU,nLtv:vU,nmid:mU,NoBreak:yU,NonBreakingSpace:bU,nopf:wU,Nopf:xU,Not:SU,not:_U,NotCongruent:kU,NotCupCap:CU,NotDoubleVerticalBar:TU,NotElement:EU,NotEqual:AU,NotEqualTilde:MU,NotExists:LU,NotGreater:NU,NotGreaterEqual:$U,NotGreaterFullEqual:OU,NotGreaterGreater:PU,NotGreaterLess:RU,NotGreaterSlantEqual:zU,NotGreaterTilde:DU,NotHumpDownHump:IU,NotHumpEqual:FU,notin:HU,notindot:BU,notinE:WU,notinva:qU,notinvb:UU,notinvc:jU,NotLeftTriangleBar:VU,NotLeftTriangle:GU,NotLeftTriangleEqual:KU,NotLess:XU,NotLessEqual:YU,NotLessGreater:ZU,NotLessLess:JU,NotLessSlantEqual:QU,NotLessTilde:ej,NotNestedGreaterGreater:tj,NotNestedLessLess:nj,notni:rj,notniva:ij,notnivb:oj,notnivc:sj,NotPrecedes:lj,NotPrecedesEqual:aj,NotPrecedesSlantEqual:cj,NotReverseElement:uj,NotRightTriangleBar:fj,NotRightTriangle:dj,NotRightTriangleEqual:hj,NotSquareSubset:pj,NotSquareSubsetEqual:gj,NotSquareSuperset:vj,NotSquareSupersetEqual:mj,NotSubset:yj,NotSubsetEqual:bj,NotSucceeds:wj,NotSucceedsEqual:xj,NotSucceedsSlantEqual:Sj,NotSucceedsTilde:_j,NotSuperset:kj,NotSupersetEqual:Cj,NotTilde:Tj,NotTildeEqual:Ej,NotTildeFullEqual:Aj,NotTildeTilde:Mj,NotVerticalBar:Lj,nparallel:Nj,npar:$j,nparsl:Oj,npart:Pj,npolint:Rj,npr:zj,nprcue:Dj,nprec:Ij,npreceq:Fj,npre:Hj,nrarrc:Bj,nrarr:Wj,nrArr:qj,nrarrw:Uj,nrightarrow:jj,nRightarrow:Vj,nrtri:Gj,nrtrie:Kj,nsc:Xj,nsccue:Yj,nsce:Zj,Nscr:Jj,nscr:Qj,nshortmid:eV,nshortparallel:tV,nsim:nV,nsime:rV,nsimeq:iV,nsmid:oV,nspar:sV,nsqsube:lV,nsqsupe:aV,nsub:cV,nsubE:uV,nsube:fV,nsubset:dV,nsubseteq:hV,nsubseteqq:pV,nsucc:gV,nsucceq:vV,nsup:mV,nsupE:yV,nsupe:bV,nsupset:wV,nsupseteq:xV,nsupseteqq:SV,ntgl:_V,Ntilde:kV,ntilde:CV,ntlg:TV,ntriangleleft:EV,ntrianglelefteq:AV,ntriangleright:MV,ntrianglerighteq:LV,Nu:NV,nu:$V,num:OV,numero:PV,numsp:RV,nvap:zV,nvdash:DV,nvDash:IV,nVdash:FV,nVDash:HV,nvge:BV,nvgt:WV,nvHarr:qV,nvinfin:UV,nvlArr:jV,nvle:VV,nvlt:GV,nvltrie:KV,nvrArr:XV,nvrtrie:YV,nvsim:ZV,nwarhk:JV,nwarr:QV,nwArr:e9,nwarrow:t9,nwnear:n9,Oacute:r9,oacute:i9,oast:o9,Ocirc:s9,ocirc:l9,ocir:a9,Ocy:c9,ocy:u9,odash:f9,Odblac:d9,odblac:h9,odiv:p9,odot:g9,odsold:v9,OElig:m9,oelig:y9,ofcir:b9,Ofr:w9,ofr:x9,ogon:S9,Ograve:_9,ograve:k9,ogt:C9,ohbar:T9,ohm:E9,oint:A9,olarr:M9,olcir:L9,olcross:N9,oline:$9,olt:O9,Omacr:P9,omacr:R9,Omega:z9,omega:D9,Omicron:I9,omicron:F9,omid:H9,ominus:B9,Oopf:W9,oopf:q9,opar:U9,OpenCurlyDoubleQuote:j9,OpenCurlyQuote:V9,operp:G9,oplus:K9,orarr:X9,Or:Y9,or:Z9,ord:J9,order:Q9,orderof:eG,ordf:tG,ordm:nG,origof:rG,oror:iG,orslope:oG,orv:sG,oS:lG,Oscr:aG,oscr:cG,Oslash:uG,oslash:fG,osol:dG,Otilde:hG,otilde:pG,otimesas:gG,Otimes:vG,otimes:mG,Ouml:yG,ouml:bG,ovbar:wG,OverBar:xG,OverBrace:SG,OverBracket:_G,OverParenthesis:kG,para:CG,parallel:TG,par:EG,parsim:AG,parsl:MG,part:LG,PartialD:NG,Pcy:$G,pcy:OG,percnt:PG,period:RG,permil:zG,perp:DG,pertenk:IG,Pfr:FG,pfr:HG,Phi:BG,phi:WG,phiv:qG,phmmat:UG,phone:jG,Pi:VG,pi:GG,pitchfork:KG,piv:XG,planck:YG,planckh:ZG,plankv:JG,plusacir:QG,plusb:e7,pluscir:t7,plus:n7,plusdo:r7,plusdu:i7,pluse:o7,PlusMinus:s7,plusmn:l7,plussim:a7,plustwo:c7,pm:u7,Poincareplane:f7,pointint:d7,popf:h7,Popf:p7,pound:g7,prap:v7,Pr:m7,pr:y7,prcue:b7,precapprox:w7,prec:x7,preccurlyeq:S7,Precedes:_7,PrecedesEqual:k7,PrecedesSlantEqual:C7,PrecedesTilde:T7,preceq:E7,precnapprox:A7,precneqq:M7,precnsim:L7,pre:N7,prE:$7,precsim:O7,prime:P7,Prime:R7,primes:z7,prnap:D7,prnE:I7,prnsim:F7,prod:H7,Product:B7,profalar:W7,profline:q7,profsurf:U7,prop:j7,Proportional:V7,Proportion:G7,propto:K7,prsim:X7,prurel:Y7,Pscr:Z7,pscr:J7,Psi:Q7,psi:eK,puncsp:tK,Qfr:nK,qfr:rK,qint:iK,qopf:oK,Qopf:sK,qprime:lK,Qscr:aK,qscr:cK,quaternions:uK,quatint:fK,quest:dK,questeq:hK,quot:pK,QUOT:gK,rAarr:vK,race:mK,Racute:yK,racute:bK,radic:wK,raemptyv:xK,rang:SK,Rang:_K,rangd:kK,range:CK,rangle:TK,raquo:EK,rarrap:AK,rarrb:MK,rarrbfs:LK,rarrc:NK,rarr:$K,Rarr:OK,rArr:PK,rarrfs:RK,rarrhk:zK,rarrlp:DK,rarrpl:IK,rarrsim:FK,Rarrtl:HK,rarrtl:BK,rarrw:WK,ratail:qK,rAtail:UK,ratio:jK,rationals:VK,rbarr:GK,rBarr:KK,RBarr:XK,rbbrk:YK,rbrace:ZK,rbrack:JK,rbrke:QK,rbrksld:eX,rbrkslu:tX,Rcaron:nX,rcaron:rX,Rcedil:iX,rcedil:oX,rceil:sX,rcub:lX,Rcy:aX,rcy:cX,rdca:uX,rdldhar:fX,rdquo:dX,rdquor:hX,rdsh:pX,real:gX,realine:vX,realpart:mX,reals:yX,Re:bX,rect:wX,reg:xX,REG:SX,ReverseElement:_X,ReverseEquilibrium:kX,ReverseUpEquilibrium:CX,rfisht:TX,rfloor:EX,rfr:AX,Rfr:MX,rHar:LX,rhard:NX,rharu:$X,rharul:OX,Rho:PX,rho:RX,rhov:zX,RightAngleBracket:DX,RightArrowBar:IX,rightarrow:FX,RightArrow:HX,Rightarrow:BX,RightArrowLeftArrow:WX,rightarrowtail:qX,RightCeiling:UX,RightDoubleBracket:jX,RightDownTeeVector:VX,RightDownVectorBar:GX,RightDownVector:KX,RightFloor:XX,rightharpoondown:YX,rightharpoonup:ZX,rightleftarrows:JX,rightleftharpoons:QX,rightrightarrows:eY,rightsquigarrow:tY,RightTeeArrow:nY,RightTee:rY,RightTeeVector:iY,rightthreetimes:oY,RightTriangleBar:sY,RightTriangle:lY,RightTriangleEqual:aY,RightUpDownVector:cY,RightUpTeeVector:uY,RightUpVectorBar:fY,RightUpVector:dY,RightVectorBar:hY,RightVector:pY,ring:gY,risingdotseq:vY,rlarr:mY,rlhar:yY,rlm:bY,rmoustache:wY,rmoust:xY,rnmid:SY,roang:_Y,roarr:kY,robrk:CY,ropar:TY,ropf:EY,Ropf:AY,roplus:MY,rotimes:LY,RoundImplies:NY,rpar:$Y,rpargt:OY,rppolint:PY,rrarr:RY,Rrightarrow:zY,rsaquo:DY,rscr:IY,Rscr:FY,rsh:HY,Rsh:BY,rsqb:WY,rsquo:qY,rsquor:UY,rthree:jY,rtimes:VY,rtri:GY,rtrie:KY,rtrif:XY,rtriltri:YY,RuleDelayed:ZY,ruluhar:JY,rx:QY,Sacute:eZ,sacute:tZ,sbquo:nZ,scap:rZ,Scaron:iZ,scaron:oZ,Sc:sZ,sc:lZ,sccue:aZ,sce:cZ,scE:uZ,Scedil:fZ,scedil:dZ,Scirc:hZ,scirc:pZ,scnap:gZ,scnE:vZ,scnsim:mZ,scpolint:yZ,scsim:bZ,Scy:wZ,scy:xZ,sdotb:SZ,sdot:_Z,sdote:kZ,searhk:CZ,searr:TZ,seArr:EZ,searrow:AZ,sect:MZ,semi:LZ,seswar:NZ,setminus:$Z,setmn:OZ,sext:PZ,Sfr:RZ,sfr:zZ,sfrown:DZ,sharp:IZ,SHCHcy:FZ,shchcy:HZ,SHcy:BZ,shcy:WZ,ShortDownArrow:qZ,ShortLeftArrow:UZ,shortmid:jZ,shortparallel:VZ,ShortRightArrow:GZ,ShortUpArrow:KZ,shy:XZ,Sigma:YZ,sigma:ZZ,sigmaf:JZ,sigmav:QZ,sim:eJ,simdot:tJ,sime:nJ,simeq:rJ,simg:iJ,simgE:oJ,siml:sJ,simlE:lJ,simne:aJ,simplus:cJ,simrarr:uJ,slarr:fJ,SmallCircle:dJ,smallsetminus:hJ,smashp:pJ,smeparsl:gJ,smid:vJ,smile:mJ,smt:yJ,smte:bJ,smtes:wJ,SOFTcy:xJ,softcy:SJ,solbar:_J,solb:kJ,sol:CJ,Sopf:TJ,sopf:EJ,spades:AJ,spadesuit:MJ,spar:LJ,sqcap:NJ,sqcaps:$J,sqcup:OJ,sqcups:PJ,Sqrt:RJ,sqsub:zJ,sqsube:DJ,sqsubset:IJ,sqsubseteq:FJ,sqsup:HJ,sqsupe:BJ,sqsupset:WJ,sqsupseteq:qJ,square:UJ,Square:jJ,SquareIntersection:VJ,SquareSubset:GJ,SquareSubsetEqual:KJ,SquareSuperset:XJ,SquareSupersetEqual:YJ,SquareUnion:ZJ,squarf:JJ,squ:QJ,squf:eQ,srarr:tQ,Sscr:nQ,sscr:rQ,ssetmn:iQ,ssmile:oQ,sstarf:sQ,Star:lQ,star:aQ,starf:cQ,straightepsilon:uQ,straightphi:fQ,strns:dQ,sub:hQ,Sub:pQ,subdot:gQ,subE:vQ,sube:mQ,subedot:yQ,submult:bQ,subnE:wQ,subne:xQ,subplus:SQ,subrarr:_Q,subset:kQ,Subset:CQ,subseteq:TQ,subseteqq:EQ,SubsetEqual:AQ,subsetneq:MQ,subsetneqq:LQ,subsim:NQ,subsub:$Q,subsup:OQ,succapprox:PQ,succ:RQ,succcurlyeq:zQ,Succeeds:DQ,SucceedsEqual:IQ,SucceedsSlantEqual:FQ,SucceedsTilde:HQ,succeq:BQ,succnapprox:WQ,succneqq:qQ,succnsim:UQ,succsim:jQ,SuchThat:VQ,sum:GQ,Sum:KQ,sung:XQ,sup1:YQ,sup2:ZQ,sup3:JQ,sup:QQ,Sup:eee,supdot:tee,supdsub:nee,supE:ree,supe:iee,supedot:oee,Superset:see,SupersetEqual:lee,suphsol:aee,suphsub:cee,suplarr:uee,supmult:fee,supnE:dee,supne:hee,supplus:pee,supset:gee,Supset:vee,supseteq:mee,supseteqq:yee,supsetneq:bee,supsetneqq:wee,supsim:xee,supsub:See,supsup:_ee,swarhk:kee,swarr:Cee,swArr:Tee,swarrow:Eee,swnwar:Aee,szlig:Mee,Tab:Lee,target:Nee,Tau:$ee,tau:Oee,tbrk:Pee,Tcaron:Ree,tcaron:zee,Tcedil:Dee,tcedil:Iee,Tcy:Fee,tcy:Hee,tdot:Bee,telrec:Wee,Tfr:qee,tfr:Uee,there4:jee,therefore:Vee,Therefore:Gee,Theta:Kee,theta:Xee,thetasym:Yee,thetav:Zee,thickapprox:Jee,thicksim:Qee,ThickSpace:ete,ThinSpace:tte,thinsp:nte,thkap:rte,thksim:ite,THORN:ote,thorn:ste,tilde:lte,Tilde:ate,TildeEqual:cte,TildeFullEqual:ute,TildeTilde:fte,timesbar:dte,timesb:hte,times:pte,timesd:gte,tint:vte,toea:mte,topbot:yte,topcir:bte,top:wte,Topf:xte,topf:Ste,topfork:_te,tosa:kte,tprime:Cte,trade:Tte,TRADE:Ete,triangle:Ate,triangledown:Mte,triangleleft:Lte,trianglelefteq:Nte,triangleq:$te,triangleright:Ote,trianglerighteq:Pte,tridot:Rte,trie:zte,triminus:Dte,TripleDot:Ite,triplus:Fte,trisb:Hte,tritime:Bte,trpezium:Wte,Tscr:qte,tscr:Ute,TScy:jte,tscy:Vte,TSHcy:Gte,tshcy:Kte,Tstrok:Xte,tstrok:Yte,twixt:Zte,twoheadleftarrow:Jte,twoheadrightarrow:Qte,Uacute:ene,uacute:tne,uarr:nne,Uarr:rne,uArr:ine,Uarrocir:one,Ubrcy:sne,ubrcy:lne,Ubreve:ane,ubreve:cne,Ucirc:une,ucirc:fne,Ucy:dne,ucy:hne,udarr:pne,Udblac:gne,udblac:vne,udhar:mne,ufisht:yne,Ufr:bne,ufr:wne,Ugrave:xne,ugrave:Sne,uHar:_ne,uharl:kne,uharr:Cne,uhblk:Tne,ulcorn:Ene,ulcorner:Ane,ulcrop:Mne,ultri:Lne,Umacr:Nne,umacr:$ne,uml:One,UnderBar:Pne,UnderBrace:Rne,UnderBracket:zne,UnderParenthesis:Dne,Union:Ine,UnionPlus:Fne,Uogon:Hne,uogon:Bne,Uopf:Wne,uopf:qne,UpArrowBar:Une,uparrow:jne,UpArrow:Vne,Uparrow:Gne,UpArrowDownArrow:Kne,updownarrow:Xne,UpDownArrow:Yne,Updownarrow:Zne,UpEquilibrium:Jne,upharpoonleft:Qne,upharpoonright:ere,uplus:tre,UpperLeftArrow:nre,UpperRightArrow:rre,upsi:ire,Upsi:ore,upsih:sre,Upsilon:lre,upsilon:are,UpTeeArrow:cre,UpTee:ure,upuparrows:fre,urcorn:dre,urcorner:hre,urcrop:pre,Uring:gre,uring:vre,urtri:mre,Uscr:yre,uscr:bre,utdot:wre,Utilde:xre,utilde:Sre,utri:_re,utrif:kre,uuarr:Cre,Uuml:Tre,uuml:Ere,uwangle:Are,vangrt:Mre,varepsilon:Lre,varkappa:Nre,varnothing:$re,varphi:Ore,varpi:Pre,varpropto:Rre,varr:zre,vArr:Dre,varrho:Ire,varsigma:Fre,varsubsetneq:Hre,varsubsetneqq:Bre,varsupsetneq:Wre,varsupsetneqq:qre,vartheta:Ure,vartriangleleft:jre,vartriangleright:Vre,vBar:Gre,Vbar:Kre,vBarv:Xre,Vcy:Yre,vcy:Zre,vdash:Jre,vDash:Qre,Vdash:eie,VDash:tie,Vdashl:nie,veebar:rie,vee:iie,Vee:oie,veeeq:sie,vellip:lie,verbar:aie,Verbar:cie,vert:uie,Vert:fie,VerticalBar:die,VerticalLine:hie,VerticalSeparator:pie,VerticalTilde:gie,VeryThinSpace:vie,Vfr:mie,vfr:yie,vltri:bie,vnsub:wie,vnsup:xie,Vopf:Sie,vopf:_ie,vprop:kie,vrtri:Cie,Vscr:Tie,vscr:Eie,vsubnE:Aie,vsubne:Mie,vsupnE:Lie,vsupne:Nie,Vvdash:$ie,vzigzag:Oie,Wcirc:Pie,wcirc:Rie,wedbar:zie,wedge:Die,Wedge:Iie,wedgeq:Fie,weierp:Hie,Wfr:Bie,wfr:Wie,Wopf:qie,wopf:Uie,wp:jie,wr:Vie,wreath:Gie,Wscr:Kie,wscr:Xie,xcap:Yie,xcirc:Zie,xcup:Jie,xdtri:Qie,Xfr:eoe,xfr:toe,xharr:noe,xhArr:roe,Xi:ioe,xi:ooe,xlarr:soe,xlArr:loe,xmap:aoe,xnis:coe,xodot:uoe,Xopf:foe,xopf:doe,xoplus:hoe,xotime:poe,xrarr:goe,xrArr:voe,Xscr:moe,xscr:yoe,xsqcup:boe,xuplus:woe,xutri:xoe,xvee:Soe,xwedge:_oe,Yacute:koe,yacute:Coe,YAcy:Toe,yacy:Eoe,Ycirc:Aoe,ycirc:Moe,Ycy:Loe,ycy:Noe,yen:$oe,Yfr:Ooe,yfr:Poe,YIcy:Roe,yicy:zoe,Yopf:Doe,yopf:Ioe,Yscr:Foe,yscr:Hoe,YUcy:Boe,yucy:Woe,yuml:qoe,Yuml:Uoe,Zacute:joe,zacute:Voe,Zcaron:Goe,zcaron:Koe,Zcy:Xoe,zcy:Yoe,Zdot:Zoe,zdot:Joe,zeetrf:Qoe,ZeroWidthSpace:ese,Zeta:tse,zeta:nse,zfr:rse,Zfr:ise,ZHcy:ose,zhcy:sse,zigrarr:lse,zopf:ase,Zopf:cse,Zscr:use,zscr:fse,zwj:dse,zwnj:hse},pse="Á",gse="á",vse="Â",mse="â",yse="´",bse="Æ",wse="æ",xse="À",Sse="à",_se="&",kse="&",Cse="Å",Tse="å",Ese="Ã",Ase="ã",Mse="Ä",Lse="ä",Nse="¦",$se="Ç",Ose="ç",Pse="¸",Rse="¢",zse="©",Dse="©",Ise="¤",Fse="°",Hse="÷",Bse="É",Wse="é",qse="Ê",Use="ê",jse="È",Vse="è",Gse="Ð",Kse="ð",Xse="Ë",Yse="ë",Zse="½",Jse="¼",Qse="¾",ele=">",tle=">",nle="Í",rle="í",ile="Î",ole="î",sle="¡",lle="Ì",ale="ì",cle="¿",ule="Ï",fle="ï",dle="«",hle="<",ple="<",gle="¯",vle="µ",mle="·",yle=" ",ble="¬",wle="Ñ",xle="ñ",Sle="Ó",_le="ó",kle="Ô",Cle="ô",Tle="Ò",Ele="ò",Ale="ª",Mle="º",Lle="Ø",Nle="ø",$le="Õ",Ole="õ",Ple="Ö",Rle="ö",zle="¶",Dle="±",Ile="£",Fle='"',Hle='"',Ble="»",Wle="®",qle="®",Ule="§",jle="",Vle="¹",Gle="²",Kle="³",Xle="ß",Yle="Þ",Zle="þ",Jle="×",Qle="Ú",eae="ú",tae="Û",nae="û",rae="Ù",iae="ù",oae="¨",sae="Ü",lae="ü",aae="Ý",cae="ý",uae="¥",fae="ÿ",dae={Aacute:pse,aacute:gse,Acirc:vse,acirc:mse,acute:yse,AElig:bse,aelig:wse,Agrave:xse,agrave:Sse,amp:_se,AMP:kse,Aring:Cse,aring:Tse,Atilde:Ese,atilde:Ase,Auml:Mse,auml:Lse,brvbar:Nse,Ccedil:$se,ccedil:Ose,cedil:Pse,cent:Rse,copy:zse,COPY:Dse,curren:Ise,deg:Fse,divide:Hse,Eacute:Bse,eacute:Wse,Ecirc:qse,ecirc:Use,Egrave:jse,egrave:Vse,ETH:Gse,eth:Kse,Euml:Xse,euml:Yse,frac12:Zse,frac14:Jse,frac34:Qse,gt:ele,GT:tle,Iacute:nle,iacute:rle,Icirc:ile,icirc:ole,iexcl:sle,Igrave:lle,igrave:ale,iquest:cle,Iuml:ule,iuml:fle,laquo:dle,lt:hle,LT:ple,macr:gle,micro:vle,middot:mle,nbsp:yle,not:ble,Ntilde:wle,ntilde:xle,Oacute:Sle,oacute:_le,Ocirc:kle,ocirc:Cle,Ograve:Tle,ograve:Ele,ordf:Ale,ordm:Mle,Oslash:Lle,oslash:Nle,Otilde:$le,otilde:Ole,Ouml:Ple,ouml:Rle,para:zle,plusmn:Dle,pound:Ile,quot:Fle,QUOT:Hle,raquo:Ble,reg:Wle,REG:qle,sect:Ule,shy:jle,sup1:Vle,sup2:Gle,sup3:Kle,szlig:Xle,THORN:Yle,thorn:Zle,times:Jle,Uacute:Qle,uacute:eae,Ucirc:tae,ucirc:nae,Ugrave:rae,ugrave:iae,uml:oae,Uuml:sae,uuml:lae,Yacute:aae,yacute:cae,yen:uae,yuml:fae},hae="&",pae="'",gae=">",vae="<",mae='"',xw={amp:hae,apos:pae,gt:gae,lt:vae,quot:mae};var ds={};const yae={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376};var Lm;function bae(){if(Lm)return ds;Lm=1;var e=ds&&ds.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(ds,"__esModule",{value:!0});var t=e(yae),r=String.fromCodePoint||function(s){var c="";return s>65535&&(s-=65536,c+=String.fromCharCode(s>>>10&1023|55296),s=56320|s&1023),c+=String.fromCharCode(s),c};function o(s){return s>=55296&&s<=57343||s>1114111?"�":(s in t.default&&(s=t.default[s]),r(s))}return ds.default=o,ds}var Nm;function $m(){if(Nm)return yr;Nm=1;var e=yr&&yr.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(yr,"__esModule",{value:!0}),yr.decodeHTML=yr.decodeHTMLStrict=yr.decodeXML=void 0;var t=e(ww),r=e(dae),o=e(xw),s=e(bae()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;yr.decodeXML=f(o.default),yr.decodeHTMLStrict=f(t.default);function f(p){var v=h(p);return function(m){return String(m).replace(c,v)}}var d=function(p,v){return p<v?1:-1};yr.decodeHTML=function(){for(var p=Object.keys(r.default).sort(d),v=Object.keys(t.default).sort(d),m=0,b=0;m<v.length;m++)p[b]===v[m]?(v[m]+=";?",b++):v[m]+=";";var w=new RegExp("&(?:"+v.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=h(t.default);function N(L){return L.substr(-1)!==";"&&(L+=";"),E(L)}return function(L){return String(L).replace(w,N)}}();function h(p){return function(m){if(m.charAt(1)==="#"){var b=m.charAt(2);return b==="X"||b==="x"?s.default(parseInt(m.substr(3),16)):s.default(parseInt(m.substr(2),10))}return p[m.slice(1,-1)]||m}}return yr}var Cn={},Om;function Pm(){if(Om)return Cn;Om=1;var e=Cn&&Cn.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Cn,"__esModule",{value:!0}),Cn.escapeUTF8=Cn.escape=Cn.encodeNonAsciiHTML=Cn.encodeHTML=Cn.encodeXML=void 0;var t=e(xw),r=d(t.default),o=h(r);Cn.encodeXML=L(r);var s=e(ww),c=d(s.default),f=h(c);Cn.encodeHTML=b(c,f),Cn.encodeNonAsciiHTML=L(c);function d(M){return Object.keys(M).sort().reduce(function(T,P){return T[M[P]]="&"+P+";",T},{})}function h(M){for(var T=[],P=[],A=0,B=Object.keys(M);A<B.length;A++){var G=B[A];G.length===1?T.push("\\"+G):P.push(G)}T.sort();for(var U=0;U<T.length-1;U++){for(var Q=U;Q<T.length-1&&T[Q].charCodeAt(1)+1===T[Q+1].charCodeAt(1);)Q+=1;var J=1+Q-U;J<3||T.splice(U,J,T[U]+"-"+T[Q])}return P.unshift("["+T.join("")+"]"),new RegExp(P.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,v=String.prototype.codePointAt!=null?function(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function m(M){return"&#x"+(M.length>1?v(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,T){return function(P){return P.replace(T,function(A){return M[A]}).replace(p,m)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(M){return M.replace(w,m)}Cn.escape=E;function N(M){return M.replace(o,m)}Cn.escapeUTF8=N;function L(M){return function(T){return T.replace(w,function(P){return M[P]||m(P)})}}return Cn}var Rm;function wae(){return Rm||(Rm=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.decodeXMLStrict=e.decodeHTML5Strict=e.decodeHTML4Strict=e.decodeHTML5=e.decodeHTML4=e.decodeHTMLStrict=e.decodeHTML=e.decodeXML=e.encodeHTML5=e.encodeHTML4=e.escapeUTF8=e.escape=e.encodeNonAsciiHTML=e.encodeHTML=e.encodeXML=e.encode=e.decodeStrict=e.decode=void 0;var t=$m(),r=Pm();function o(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTML)(h)}e.decode=o;function s(h,p){return(!p||p<=0?t.decodeXML:t.decodeHTMLStrict)(h)}e.decodeStrict=s;function c(h,p){return(!p||p<=0?r.encodeXML:r.encodeHTML)(h)}e.encode=c;var f=Pm();Object.defineProperty(e,"encodeXML",{enumerable:!0,get:function(){return f.encodeXML}}),Object.defineProperty(e,"encodeHTML",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return f.encodeNonAsciiHTML}}),Object.defineProperty(e,"escape",{enumerable:!0,get:function(){return f.escape}}),Object.defineProperty(e,"escapeUTF8",{enumerable:!0,get:function(){return f.escapeUTF8}}),Object.defineProperty(e,"encodeHTML4",{enumerable:!0,get:function(){return f.encodeHTML}}),Object.defineProperty(e,"encodeHTML5",{enumerable:!0,get:function(){return f.encodeHTML}});var d=$m();Object.defineProperty(e,"decodeXML",{enumerable:!0,get:function(){return d.decodeXML}}),Object.defineProperty(e,"decodeHTML",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTMLStrict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML4",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML5",{enumerable:!0,get:function(){return d.decodeHTML}}),Object.defineProperty(e,"decodeHTML4Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeHTML5Strict",{enumerable:!0,get:function(){return d.decodeHTMLStrict}}),Object.defineProperty(e,"decodeXMLStrict",{enumerable:!0,get:function(){return d.decodeXML}})}(td)),td}var nd,zm;function xae(){if(zm)return nd;zm=1;function e(R,$){if(!(R instanceof $))throw new TypeError("Cannot call a class as a function")}function t(R,$){for(var O=0;O<$.length;O++){var _=$[O];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(R,_.key,_)}}function r(R,$,O){return $&&t(R.prototype,$),R}function o(R,$){var O=typeof Symbol<"u"&&R[Symbol.iterator]||R["@@iterator"];if(!O){if(Array.isArray(R)||(O=s(R))||$){O&&(R=O);var _=0,D=function(){};return{s:D,n:function(){return _>=R.length?{done:!0}:{done:!1,value:R[_++]}},e:function(Re){throw Re},f:D}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
21
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,re=!1,pe;return{s:function(){O=O.call(R)},n:function(){var Re=O.next();return j=Re.done,Re},e:function(Re){re=!0,pe=Re},f:function(){try{!j&&O.return!=null&&O.return()}finally{if(re)throw pe}}}}function s(R,$){if(R){if(typeof R=="string")return c(R,$);var O=Object.prototype.toString.call(R).slice(8,-1);if(O==="Object"&&R.constructor&&(O=R.constructor.name),O==="Map"||O==="Set")return Array.from(R);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c(R,$)}}function c(R,$){($==null||$>R.length)&&($=R.length);for(var O=0,_=new Array($);O<$;O++)_[O]=R[O];return _}var f=wae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var R={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return L(0,5).forEach(function($){L(0,5).forEach(function(O){L(0,5).forEach(function(_){return p($,O,_,R)})})}),L(0,23).forEach(function($){var O=$+232,_=v($*10+8);R[O]="#"+_+_+_}),R}function p(R,$,O,_){var D=16+R*36+$*6+O,j=R>0?R*40+55:0,re=$>0?$*40+55:0,pe=O>0?O*40+55:0;_[D]=m([j,re,pe])}function v(R){for(var $=R.toString(16);$.length<2;)$="0"+$;return $}function m(R){var $=[],O=o(R),_;try{for(O.s();!(_=O.n()).done;){var D=_.value;$.push(v(D))}}catch(j){O.e(j)}finally{O.f()}return"#"+$.join("")}function b(R,$,O,_){var D;return $==="text"?D=P(O,_):$==="display"?D=E(R,O,_):$==="xterm256Foreground"?D=G(R,_.colors[O]):$==="xterm256Background"?D=U(R,_.colors[O]):$==="rgb"&&(D=w(R,O)),D}function w(R,$){$=$.substring(2).slice(0,-1);var O=+$.substr(0,2),_=$.substring(5).split(";"),D=_.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return B(R,(O===38?"color:#":"background-color:#")+D)}function E(R,$,O){$=parseInt($,10);var _={"-1":function(){return"<br/>"},0:function(){return R.length&&N(R)},1:function(){return A(R,"b")},3:function(){return A(R,"i")},4:function(){return A(R,"u")},8:function(){return B(R,"display:none")},9:function(){return A(R,"strike")},22:function(){return B(R,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Q(R,"i")},24:function(){return Q(R,"u")},39:function(){return G(R,O.fg)},49:function(){return U(R,O.bg)},53:function(){return B(R,"text-decoration:overline")}},D;return _[$]?D=_[$]():4<$&&$<7?D=A(R,"blink"):29<$&&$<38?D=G(R,O.colors[$-30]):39<$&&$<48?D=U(R,O.colors[$-40]):89<$&&$<98?D=G(R,O.colors[8+($-90)]):99<$&&$<108&&(D=U(R,O.colors[8+($-100)])),D}function N(R){var $=R.slice(0);return R.length=0,$.reverse().map(function(O){return"</"+O+">"}).join("")}function L(R,$){for(var O=[],_=R;_<=$;_++)O.push(_);return O}function M(R){return function($){return(R===null||$.category!==R)&&R!=="all"}}function T(R){R=parseInt(R,10);var $=null;return R===0?$="all":R===1?$="bold":2<R&&R<5?$="underline":4<R&&R<7?$="blink":R===8?$="hide":R===9?$="strike":29<R&&R<38||R===39||89<R&&R<98?$="foreground-color":(39<R&&R<48||R===49||99<R&&R<108)&&($="background-color"),$}function P(R,$){return $.escapeXML?f.encodeXML(R):R}function A(R,$,O){return O||(O=""),R.push($),"<".concat($).concat(O?' style="'.concat(O,'"'):"",">")}function B(R,$){return A(R,"span",$)}function G(R,$){return A(R,"span","color:"+$)}function U(R,$){return A(R,"span","background-color:"+$)}function Q(R,$){var O;if(R.slice(-1)[0]===$&&(O=R.pop()),O)return"</"+$+">"}function J(R,$,O){var _=!1,D=3;function j(){return""}function re(q,K){return O("xterm256Foreground",K),""}function pe(q,K){return O("xterm256Background",K),""}function be(q){return $.newline?O("display",-1):O("text",q),""}function Re(q,K){_=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var le=o(K),ce;try{for(le.s();!(ce=le.n()).done;){var ue=ce.value;O("display",ue)}}catch(Se){le.e(Se)}finally{le.f()}return""}function qe(q){return O("text",q),""}function et(q){return O("rgb",q),""}var Ye=[{pattern:/^\x08+/,sub:j},{pattern:/^\x1b\[[012]?K/,sub:j},{pattern:/^\x1b\[\(B/,sub:j},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:et},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:pe},{pattern:/^\n/,sub:be},{pattern:/^\r+\n/,sub:be},{pattern:/^\r/,sub:be},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Re},{pattern:/^\x1b\[\d?J/,sub:j},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:j},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:j},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:qe}];function Xe(q,K){K>D&&_||(_=!1,R=R.replace(q.pattern,q.sub))}var Ae=[],Z=R,ae=Z.length;e:for(;ae>0;){for(var de=0,Ne=0,Me=Ye.length;Ne<Me;de=++Ne){var I=Ye[de];if(Xe(I,de),R.length!==ae){ae=R.length;continue e}}if(R.length===ae)break;Ae.push(0),ae=R.length}return Ae}function Y(R,$,O){return $!=="text"&&(R=R.filter(M(T(O))),R.push({token:$,data:O,category:T(O)})),R}var ee=function(){function R($){e(this,R),$=$||{},$.colors&&($.colors=Object.assign({},d.colors,$.colors)),this.options=Object.assign({},d,$),this.stack=[],this.stickyStack=[]}return r(R,[{key:"toHtml",value:function(O){var _=this;O=typeof O=="string"?[O]:O;var D=this.stack,j=this.options,re=[];return this.stickyStack.forEach(function(pe){var be=b(D,pe.token,pe.data,j);be&&re.push(be)}),J(O.join(""),j,function(pe,be){var Re=b(D,pe,be,j);Re&&re.push(Re),j.stream&&(_.stickyStack=Y(_.stickyStack,pe,be))}),D.length&&re.push(N(D)),re.join("")}}]),R}();return nd=ee,nd}var Sae=xae();const _ae=bw(Sae);function kae(e,t){return t&&e.endsWith(t)}async function Sw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Uh(e){return new _ae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Cae(e){return e===null||typeof e!="function"&&typeof e!="object"}function _w(e){let t=e;if(Cae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=KA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Qn=Uint8Array,ys=Uint16Array,Tae=Int32Array,kw=new Qn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Cw=new Qn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Eae=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tw=function(e,t){for(var r=new ys(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Tae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Ew=Tw(kw,2),Aw=Ew.b,Aae=Ew.r;Aw[28]=258,Aae[258]=28;var Mae=Tw(Cw,0),Lae=Mae.b,Ud=new ys(32768);for(var Tt=0;Tt<32768;++Tt){var Ri=(Tt&43690)>>1|(Tt&21845)<<1;Ri=(Ri&52428)>>2|(Ri&13107)<<2,Ri=(Ri&61680)>>4|(Ri&3855)<<4,Ud[Tt]=((Ri&65280)>>8|(Ri&255)<<8)>>1}var Il=function(e,t,r){for(var o=e.length,s=0,c=new ys(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ys(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ys(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Ud[m]>>h]=p}else for(d=new ys(o),s=0;s<o;++s)e[s]&&(d[s]=Ud[f[e[s]-1]++]>>15-e[s]);return d},Sa=new Qn(288);for(var Tt=0;Tt<144;++Tt)Sa[Tt]=8;for(var Tt=144;Tt<256;++Tt)Sa[Tt]=9;for(var Tt=256;Tt<280;++Tt)Sa[Tt]=7;for(var Tt=280;Tt<288;++Tt)Sa[Tt]=8;var Mw=new Qn(32);for(var Tt=0;Tt<32;++Tt)Mw[Tt]=5;var Nae=Il(Sa,9,1),$ae=Il(Mw,5,1),rd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},br=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},id=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Oae=function(e){return(e+7)/8|0},Lw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Qn(e.subarray(t,r))},Pae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Bn=function(e,t,r){var o=new Error(t||Pae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Bn),!r)throw o;return o},jh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Qn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Qn(s*3));var p=function(Me){var I=r.length;if(Me>I){var q=new Qn(Math.max(I*2,Me));q.set(r),r=q}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,E=t.d,N=t.m,L=t.n,M=s*8;do{if(!w){v=br(e,m,1);var T=br(e,m+1,3);if(m+=3,T)if(T==1)w=Nae,E=$ae,N=9,L=5;else if(T==2){var G=br(e,m,31)+257,U=br(e,m+10,15)+4,Q=G+br(e,m+5,31)+1;m+=14;for(var J=new Qn(Q),Y=new Qn(19),ee=0;ee<U;++ee)Y[Eae[ee]]=br(e,m+ee*3,7);m+=U*3;for(var R=rd(Y),$=(1<<R)-1,O=Il(Y,R,1),ee=0;ee<Q;){var _=O[br(e,m,$)];m+=_&15;var P=_>>4;if(P<16)J[ee++]=P;else{var D=0,j=0;for(P==16?(j=3+br(e,m,3),m+=2,D=J[ee-1]):P==17?(j=3+br(e,m,7),m+=3):P==18&&(j=11+br(e,m,127),m+=7);j--;)J[ee++]=D}}var re=J.subarray(0,G),pe=J.subarray(G);N=rd(re),L=rd(pe),w=Il(re,N,1),E=Il(pe,L,1)}else Bn(1);else{var P=Oae(m)+4,A=e[P-4]|e[P-3]<<8,B=P+A;if(B>s){h&&Bn(0);break}d&&p(b+A),r.set(e.subarray(P,B),b),t.b=b+=A,t.p=m=B*8,t.f=v;continue}if(m>M){h&&Bn(0);break}}d&&p(b+131072);for(var be=(1<<N)-1,Re=(1<<L)-1,qe=m;;qe=m){var D=w[id(e,m)&be],et=D>>4;if(m+=D&15,m>M){h&&Bn(0);break}if(D||Bn(2),et<256)r[b++]=et;else if(et==256){qe=m,w=null;break}else{var Ye=et-254;if(et>264){var ee=et-257,Xe=kw[ee];Ye=br(e,m,(1<<Xe)-1)+Aw[ee],m+=Xe}var Ae=E[id(e,m)&Re],Z=Ae>>4;Ae||Bn(3),m+=Ae&15;var pe=Lae[Z];if(Z>3){var Xe=Cw[Z];pe+=id(e,m)&(1<<Xe)-1,m+=Xe}if(m>M){h&&Bn(0);break}d&&p(b+131072);var ae=b+Ye;if(b<pe){var de=c-pe,Ne=Math.min(pe,ae);for(de+b<0&&Bn(3);b<Ne;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-pe]}}t.l=w,t.p=qe,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=E,t.n=L)}while(!v);return b!=r.length&&f?Lw(r,0,b):r.subarray(0,b)},Rae=new Qn(0),zae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Bn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Iae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Bn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Bn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Fae(e,t){return jh(e,{i:2},t,t)}function Hae(e,t){var r=zae(e);return r+8>e.length&&Bn(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new Qn(Dae(e)),t)}function Bae(e,t){return jh(e.subarray(Iae(e),-4),{i:2},t,t)}function Wae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Fae(e,t):Bae(e,t)}var jd=typeof TextDecoder<"u"&&new TextDecoder,qae=0;try{jd.decode(Rae,{stream:!0}),qae=1}catch{}var Uae=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Lw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function jae(e,t){var r;if(jd)return jd.decode(e);var o=Uae(e),s=o.s,r=o.r;return r.length&&Bn(8),s}const od=()=>{},hn=()=>Promise.resolve();function Vae(){const e=er({state:new Wb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=er(e.state.filesMap),e.state.idMap=er(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:hn,onDone:od,onTaskUpdate:od,writeFile:hn,rerun:hn,rerunTask:hn,updateSnapshot:hn,resolveSnapshotPath:hn,snapshotSaved:hn,onAfterSuiteRun:hn,onCancel:hn,getCountOfFailedTests:()=>0,sendLog:hn,resolveSnapshotRawPath:hn,readSnapshotFile:hn,saveSnapshotFile:hn,readTestFile:async d=>t.sources[d],removeSnapshotFile:hn,onUnhandledError:od,saveTestFile:hn,getProvidedContext:()=>({}),getTestFiles:hn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=jae(Wae(m));t=Dd(b)}else t=Dd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return Cr?Vae():qT(eA,{reactive:(t,r)=>r==="state"?er(t):On(t),handlers:{onTaskUpdate(t){Ee.resumeRun(t),Ru.value="running"},onFinished(t,r){Ee.endRun(),Wi.value=(r||[]).map(_w)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Du=On({}),To=je("CONNECTING"),Jt=ke(()=>{const e=eo.value;return e?ar(e):void 0}),Nw=ke(()=>zh(Jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function ar(e){const t=mt.state.idMap.get(e);return t||void 0}const Gae=ke(()=>To.value==="OPEN"),sd=ke(()=>To.value==="CONNECTING");ke(()=>To.value==="CLOSED");function Kae(){return Vh(mt.state.getFiles())}function $w(e){delete e.result;const t=Ee.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,wa(e)))for(const r of e.tasks)$w(r)}function Xae(e){const t=Ee.nodes;e.forEach(r=>{delete r.result,zh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Nn(o)&&(o.collectDuration=void 0))})}function Vh(e){return Xae(e),Ee.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function Yae(e){return $w(e),Ee.startRun(),mt.rpc.rerunTask(e.id)}const Po=window.__vitest_browser_runner__;window.__vitest_ui_api__=ZE;Et(()=>mt.ws,e=>{To.value=Cr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.value="OPEN",mt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([mt.rpc.getFiles(),mt.rpc.getConfig(),mt.rpc.getUnhandledErrors(),mt.rpc.getResolvedProjectNames()]);r.standalone&&(t=(await mt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Ob(h,d,f);return p.mode="skip",p})),Ee.loadFiles(t,s),mt.state.collectFiles(t),Ee.startRun(),Wi.value=(o||[]).map(_w),Du.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Zae={"text-2xl":""},Jae={"text-lg":"",op50:""},Qae=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>W(Gae)?Ke("",!0):(oe(),ye("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>W(mt).reconnect&&W(mt).reconnect(...o))},[te("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(W(sd)?"animate-pulse":"")},[te("div",{text:"5xl",class:it(W(sd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),te("div",Zae,Be(W(sd)?"Connecting...":"Disconnected"),1),te("div",Jae," Check your terminal or start a new server with `"+Be(W(Po)?`vitest --browser=${W(Po).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),ece=["aria-label","opacity","disabled","hover"],bi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),ye("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:it(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[mn(t.$slots,"default",{},()=>[te("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,ece))}}),tce={h:"full",flex:"~ col"},nce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},ice={class:"pointer-events-none","text-sm":""},oce={key:0},sce={id:"tester-container",relative:""},lce=["data-scale"],Dm=20,ace=100,cce=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Fr.value[0]===v[0]&&Fr.value[1]===v[1]}async function o(p){Fr.value=t[p]}const{width:s,height:c}=Bh(),f=ke(()=>{const m=s.value*(vn.details.size/100)*(vn.details.browser/100)-Dm,b=c.value-ace;return{width:m,height:b}}),d=ke(()=>{const[p,v]=Fr.value,{width:m,height:b}=f.value,w=m>p?1:m/p,E=b>v?1:b/v;return Math.min(1,w,E)}),h=ke(()=>{const p=f.value.width,v=Fr.value[0];return`${Math.trunc((p+Dm-v)/2)}px`});return(p,v)=>{const m=bi,b=Kr("tooltip");return oe(),ye("div",tce,[te("div",nce,[gt(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>W(YE)())},null,512),[[ji,W(vn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=te("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),gt(Oe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>W(KE)())},null,512),[[ji,W(vn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>W(XE)())},null,512),[[ji,W(vn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),te("div",rce,[gt(Oe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),te("span",ice,[pt(Be(W(Fr)[0])+"x"+Be(W(Fr)[1])+"px ",1),W(d)<1?(oe(),ye("span",oce,"("+Be((W(d)*100).toFixed(0))+"%)",1)):Ke("",!0)])]),te("div",sce,[te("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":W(d),style:en({"--viewport-width":`${W(Fr)[0]}px`,"--viewport-height":`${W(Fr)[1]}px`,"--tester-transform":`scale(${W(d)})`,"--tester-margin-left":W(h)})}," Select a test to run ",12,lce)])])}}}),uce=yi(cce,[["__scopeId","data-v-65565204"]]),Ow=ut({__name:"Modal",props:Vl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),ye("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[te("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),te("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[W(r)]]),style:en(t.value?{}:{transform:W(o)})},[mn(c.$slots,"default")],6)],2))}}),fce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},dce={"p-4":"",relative:"",border:"base b"},hce={op50:"","font-mono":"","text-sm":""},pce={op50:"","font-mono":"","text-sm":""},gce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},vce=["src","alt"],mce={key:1},yce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Yb("Escape",()=>{r("close")}),(o,s)=>{const c=bi;return oe(),ye("div",fce,[te("div",dce,[s[1]||(s[1]=te("p",null,"Screenshot error",-1)),te("p",hce,Be(o.file),1),te("p",pce,Be(o.name),1),Oe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),te("div",gce,[o.url?(oe(),ye("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,vce)):(oe(),ye("div",mce," Something was wrong, the image cannot be resolved. "))])])}}}),bce=yi(yce,[["__scopeId","data-v-93900314"]]);function Fl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _a=dE(),wce=YT(_a),xce={class:"scrolls scrolls-rounded task-error"},Sce=["onClickPassive"],_ce=["innerHTML"],kce=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=ke(()=>Uh(_a.value)),s=ke(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=ke(()=>t.error.diff?o.value.toHtml(Fl(t.error.diff)):void 0);return(f,d)=>{const h=Kr("tooltip");return oe(),ye("div",xce,[te("pre",null,[te("b",null,Be(f.error.name||f.error.nameStr),1),pt(": "+Be(f.error.message),1)]),(oe(!0),ye(ct,null,hi(f.error.stacks,(p,v)=>(oe(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[te("pre",null," - "+Be(r(p.file))+":"+Be(p.line)+":"+Be(p.column),1),W(kae)(p.file,f.filename)?gt((oe(),ye("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:m=>W(Sw)(p.file,p.line,p.column)},null,40,Sce)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ke("",!0)]))),128)),W(s)?(oe(),ye("pre",{key:0,"data-testid":"diff",innerHTML:W(c)},null,8,_ce)):Ke("",!0)])}}}),Cce=yi(kce,[["__scopeId","data-v-9dd6eaea"]]),Tce={"h-full":"",class:"scrolls"},Ece=["id"],Ace={flex:"~ gap-2 items-center"},Mce={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Lce=["innerHTML"],Nce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},$ce=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(N=>r(N,w+1))]}function o(b,w){var L,M,T;let E="";(L=w.message)!=null&&L.includes("\x1B")&&(E=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Fl(w.message))}`);const N=(M=w.stackStr)==null?void 0:M.includes("\x1B");return(N||(T=w.stack)!=null&&T.includes("\x1B"))&&(E.length>0?E+=b.toHtml(Fl(N?w.stackStr:w.stack)):E=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Fl(N?w.stackStr:w.stack))}`),E.length>0?E:null}function s(b,w){const E=Uh(b);return w.map(N=>{var T;const L=N.result;if(!L)return N;const M=(T=L.errors)==null?void 0:T.map(P=>o(E,P)).filter(P=>P!=null).join("<br><br>");return M!=null&&M.length&&(L.htmlError=M),N})}const c=ke(()=>{var L,M;const b=t.file,w=((L=b==null?void 0:b.tasks)==null?void 0:L.flatMap(T=>r(T,0)))??[],E=b==null?void 0:b.result;if((M=E==null?void 0:E.errors)==null?void 0:M[0]){const T={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};w.unshift(T)}return w.length>0?s(_a.value,w):w});function f(b){var E;const w=(E=b.meta)==null?void 0:E.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=je(!1),h=je(Date.now()),p=je(),v=ke(()=>{var E;const b=(E=p.value)==null?void 0:E.id,w=h.value;return b?`/__screenshot-error?id=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return Et(()=>[fw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Pt(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const E=bi,N=Cce,L=bce,M=Ow,T=Kr("tooltip");return oe(),ye("div",Tce,[W(c).length?(oe(!0),ye(ct,{key:0},hi(W(c),P=>{var A,B,G,U;return oe(),ye("div",{id:P.id,key:P.id},[te("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:en({"margin-left":`${(A=P.result)!=null&&A.htmlError?.5:2*P.level+.5}rem`})},[te("div",Ace,[te("span",null,Be(P.name),1),W(Po)&&((B=P.meta)!=null&&B.failScreenshotPath)?(oe(),ye(ct,{key:0},[gt(Oe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:Q=>m(P)},null,8,["onClick"]),[[T,"View screenshot error",void 0,{bottom:!0}]]),gt(Oe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:Q=>f(P)},null,8,["onClick"]),[[T,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ke("",!0)]),(G=P.result)!=null&&G.htmlError?(oe(),ye("div",Mce,[te("pre",{innerHTML:P.result.htmlError},null,8,Lce)])):(U=P.result)!=null&&U.errors?(oe(!0),ye(ct,{key:1},hi(P.result.errors,(Q,J)=>{var Y;return oe(),nt(N,{key:J,error:Q,filename:(Y=b.file)==null?void 0:Y.name,root:W(Du).root},null,8,["error","filename","root"])}),128)):Ke("",!0)],4)],8,Ece)}),128)):(oe(),ye("div",Nce," All tests passed in this file ")),W(Po)?(oe(),nt(M,{key:2,modelValue:W(d),"onUpdate:modelValue":w[1]||(w[1]=P=>kt(d)?d.value=P:null),direction:"right"},{default:rt(()=>[W(p)?(oe(),nt(Xy,{key:0},{default:rt(()=>[Oe(L,{file:W(p).file.filepath,name:W(p).name,url:W(v),onClose:w[0]||(w[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])):Ke("",!0)])}}}),Oce=yi($ce,[["__scopeId","data-v-013fc3c6"]]),Pce={border:"b base","p-4":""},Rce=["innerHTML"],zce=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),ye("div",Pce,[te("div",{"text-xs":"","mb-1":"",class:it(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Be(t(r.time))+" | "+Be(r.taskName)+" | "+Be(r.type),3),te("pre",{"data-type":"html",innerHTML:r.content},null,8,Rce)]))}}),Dce={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Ice={key:1,p6:""},Fce=ut({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Nw.value;if(o){const s=Uh(_a.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Fl(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?MT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=zce;return(f=W(t))!=null&&f.length?(oe(),ye("div",Dce,[(oe(!0),ye(ct,null,hi(W(t),({taskId:d,type:h,time:p,content:v})=>(oe(),ye("div",{key:d,"font-mono":""},[Oe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),ye("p",Ice,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),te("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Lc={exports:{}},Hce=Lc.exports,Im;function Bs(){return Im||(Im=1,function(e,t){(function(r,o){e.exports=o()})(Hce,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),N=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),T=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),A=T||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=T||/Mac/.test(o),G=/\bCrOS\b/.test(r),U=/win/i.test(o),Q=E&&r.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(E=!1,v=!0);var J=B&&(m||E&&(Q==null||Q<12.11)),Y=s||h&&p>=9;function ee(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var R=function(n,i){var a=n.className,l=ee(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function $(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return $(n).appendChild(i)}function _(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function D(n,i,a,l){var u=_(n,i,a,l);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:j=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function pe(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function be(n,i){var a=n.className;ee(i).test(a)||(n.className+=(a?" ":"")+i)}function Re(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ee(a[l]).test(i)&&(i+=" "+a[l]);return i}var qe=function(n){n.select()};T?qe=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(qe=function(n){try{n.select()}catch{}});function et(n){return n.display.wrapper.ownerDocument}function Ye(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Ae(n){return et(n).defaultView}function Z(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var Ne=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};Ne.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Ne.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Me(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,q={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},le={origin:"*mouse"},ce={origin:"+move"};function ue(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Se=[""];function _e(n){for(;Se.length<=n;)Se.push(he(Se)+" ");return Se[n]}function he(n){return n[n.length-1]}function ge(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Le(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Le.prototype=n,a=new Le),i&&ae(i,a),a}var Ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ue.test(n))}function ot(n,i){return i?i.source.indexOf("\\w")>-1&&tt(n)?!0:i.test(n):tt(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Mt=/[\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 st(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function jt(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function It(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Rn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var $r=null;function zt(n,i,a){var l;$r=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:$r=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:$r=u)}return l??$r}var zn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(k,z,H){this.level=k,this.from=z,this.to=H}return function(k,z){var H=z=="ltr"?"L":"R";if(k.length==0||z=="ltr"&&!l.test(k))return!1;for(var X=k.length,V=[],ie=0;ie<X;++ie)V.push(a(k.charCodeAt(ie)));for(var fe=0,me=H;fe<X;++fe){var we=V[fe];we=="m"?V[fe]=me:me=we}for(var Te=0,xe=H;Te<X;++Te){var $e=V[Te];$e=="1"&&xe=="r"?V[Te]="n":g.test($e)&&(xe=$e,$e=="r"&&(V[Te]="R"))}for(var Fe=1,ze=V[0];Fe<X-1;++Fe){var Ze=V[Fe];Ze=="+"&&ze=="1"&&V[Fe+1]=="1"?V[Fe]="1":Ze==","&&ze==V[Fe+1]&&(ze=="1"||ze=="n")&&(V[Fe]=ze),ze=Ze}for(var xt=0;xt<X;++xt){var Yt=V[xt];if(Yt==",")V[xt]="N";else if(Yt=="%"){var At=void 0;for(At=xt+1;At<X&&V[At]=="%";++At);for(var Fn=xt&&V[xt-1]=="!"||At<X&&V[At]=="1"?"1":"N",Sn=xt;Sn<At;++Sn)V[Sn]=Fn;xt=At-1}}for(var Ft=0,_n=H;Ft<X;++Ft){var nn=V[Ft];_n=="L"&&nn=="1"?V[Ft]="L":g.test(nn)&&(_n=nn)}for(var qt=0;qt<X;++qt)if(u.test(V[qt])){var Ht=void 0;for(Ht=qt+1;Ht<X&&u.test(V[Ht]);++Ht);for(var Ot=(qt?V[qt-1]:H)=="L",kn=(Ht<X?V[Ht]:H)=="L",as=Ot==kn?Ot?"L":"R":H,$i=qt;$i<Ht;++$i)V[$i]=as;qt=Ht-1}for(var an=[],Dr,Zt=0;Zt<X;)if(y.test(V[Zt])){var Df=Zt;for(++Zt;Zt<X&&y.test(V[Zt]);++Zt);an.push(new S(0,Df,Zt))}else{var ri=Zt,vo=an.length,mo=z=="rtl"?1:0;for(++Zt;Zt<X&&V[Zt]!="L";++Zt);for(var dn=ri;dn<Zt;)if(x.test(V[dn])){ri<dn&&(an.splice(vo,0,new S(1,ri,dn)),vo+=mo);var cs=dn;for(++dn;dn<Zt&&x.test(V[dn]);++dn);an.splice(vo,0,new S(2,cs,dn)),vo+=mo,ri=dn}else++dn;ri<Zt&&an.splice(vo,0,new S(1,ri,Zt))}return z=="ltr"&&(an[0].level==1&&(Dr=k.match(/^\s+/))&&(an[0].from=Dr[0].length,an.unshift(new S(0,0,Dr[0].length))),he(an).level==1&&(Dr=k.match(/\s+$/))&&(he(an).to-=Dr[0].length,an.push(new S(0,X-Dr[0].length,X)))),z=="rtl"?an.reverse():an}}();function Qe(n,i){var a=n.order;return a==null&&(a=n.order=zn(n.text,i)),a}var Ea=[],Ie=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||Ea).concat(a)}};function Yr(n,i){return n._handlers&&n._handlers[i]||Ea}function on(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Me(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Lt(n,i){var a=Yr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Nt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Lt(n,a||i.type,n,i),yn(i)||i.codemirrorIgnore}function rr(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Me(a,i[l])==-1&&a.push(i[l])}function Dn(n,i){return Yr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Ie(this,i,a)},n.prototype.off=function(i,a){on(this,i,a)}}function sn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Do(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function yn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function wi(n){sn(n),Do(n)}function Ws(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var qu=function(){if(h&&p<9)return!1;var n=_("div");return"draggable"in n||"dragDrop"in n}(),Io;function Aa(n){if(Io==null){var i=_("span","");O(n,_("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Io=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Io?_("span",""):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var qs;function xi(n){if(qs!=null)return qs;var i=O(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return $(n),!a||a.left==a.right?!1:qs=l.right-a.right<3}var ir=`
|
|
21
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var j=!0,re=!1,pe;return{s:function(){O=O.call(R)},n:function(){var Re=O.next();return j=Re.done,Re},e:function(Re){re=!0,pe=Re},f:function(){try{!j&&O.return!=null&&O.return()}finally{if(re)throw pe}}}}function s(R,$){if(R){if(typeof R=="string")return c(R,$);var O=Object.prototype.toString.call(R).slice(8,-1);if(O==="Object"&&R.constructor&&(O=R.constructor.name),O==="Map"||O==="Set")return Array.from(R);if(O==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(O))return c(R,$)}}function c(R,$){($==null||$>R.length)&&($=R.length);for(var O=0,_=new Array($);O<$;O++)_[O]=R[O];return _}var f=wae(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var R={0:"#000",1:"#A00",2:"#0A0",3:"#A50",4:"#00A",5:"#A0A",6:"#0AA",7:"#AAA",8:"#555",9:"#F55",10:"#5F5",11:"#FF5",12:"#55F",13:"#F5F",14:"#5FF",15:"#FFF"};return L(0,5).forEach(function($){L(0,5).forEach(function(O){L(0,5).forEach(function(_){return p($,O,_,R)})})}),L(0,23).forEach(function($){var O=$+232,_=v($*10+8);R[O]="#"+_+_+_}),R}function p(R,$,O,_){var D=16+R*36+$*6+O,j=R>0?R*40+55:0,re=$>0?$*40+55:0,pe=O>0?O*40+55:0;_[D]=m([j,re,pe])}function v(R){for(var $=R.toString(16);$.length<2;)$="0"+$;return $}function m(R){var $=[],O=o(R),_;try{for(O.s();!(_=O.n()).done;){var D=_.value;$.push(v(D))}}catch(j){O.e(j)}finally{O.f()}return"#"+$.join("")}function b(R,$,O,_){var D;return $==="text"?D=P(O,_):$==="display"?D=E(R,O,_):$==="xterm256Foreground"?D=G(R,_.colors[O]):$==="xterm256Background"?D=U(R,_.colors[O]):$==="rgb"&&(D=w(R,O)),D}function w(R,$){$=$.substring(2).slice(0,-1);var O=+$.substr(0,2),_=$.substring(5).split(";"),D=_.map(function(j){return("0"+Number(j).toString(16)).substr(-2)}).join("");return B(R,(O===38?"color:#":"background-color:#")+D)}function E(R,$,O){$=parseInt($,10);var _={"-1":function(){return"<br/>"},0:function(){return R.length&&N(R)},1:function(){return A(R,"b")},3:function(){return A(R,"i")},4:function(){return A(R,"u")},8:function(){return B(R,"display:none")},9:function(){return A(R,"strike")},22:function(){return B(R,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return Q(R,"i")},24:function(){return Q(R,"u")},39:function(){return G(R,O.fg)},49:function(){return U(R,O.bg)},53:function(){return B(R,"text-decoration:overline")}},D;return _[$]?D=_[$]():4<$&&$<7?D=A(R,"blink"):29<$&&$<38?D=G(R,O.colors[$-30]):39<$&&$<48?D=U(R,O.colors[$-40]):89<$&&$<98?D=G(R,O.colors[8+($-90)]):99<$&&$<108&&(D=U(R,O.colors[8+($-100)])),D}function N(R){var $=R.slice(0);return R.length=0,$.reverse().map(function(O){return"</"+O+">"}).join("")}function L(R,$){for(var O=[],_=R;_<=$;_++)O.push(_);return O}function M(R){return function($){return(R===null||$.category!==R)&&R!=="all"}}function T(R){R=parseInt(R,10);var $=null;return R===0?$="all":R===1?$="bold":2<R&&R<5?$="underline":4<R&&R<7?$="blink":R===8?$="hide":R===9?$="strike":29<R&&R<38||R===39||89<R&&R<98?$="foreground-color":(39<R&&R<48||R===49||99<R&&R<108)&&($="background-color"),$}function P(R,$){return $.escapeXML?f.encodeXML(R):R}function A(R,$,O){return O||(O=""),R.push($),"<".concat($).concat(O?' style="'.concat(O,'"'):"",">")}function B(R,$){return A(R,"span",$)}function G(R,$){return A(R,"span","color:"+$)}function U(R,$){return A(R,"span","background-color:"+$)}function Q(R,$){var O;if(R.slice(-1)[0]===$&&(O=R.pop()),O)return"</"+$+">"}function J(R,$,O){var _=!1,D=3;function j(){return""}function re(q,K){return O("xterm256Foreground",K),""}function pe(q,K){return O("xterm256Background",K),""}function be(q){return $.newline?O("display",-1):O("text",q),""}function Re(q,K){_=!0,K.trim().length===0&&(K="0"),K=K.trimRight(";").split(";");var le=o(K),ce;try{for(le.s();!(ce=le.n()).done;){var ue=ce.value;O("display",ue)}}catch(Se){le.e(Se)}finally{le.f()}return""}function qe(q){return O("text",q),""}function et(q){return O("rgb",q),""}var Ye=[{pattern:/^\x08+/,sub:j},{pattern:/^\x1b\[[012]?K/,sub:j},{pattern:/^\x1b\[\(B/,sub:j},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:et},{pattern:/^\x1b\[38;5;(\d+)m/,sub:re},{pattern:/^\x1b\[48;5;(\d+)m/,sub:pe},{pattern:/^\n/,sub:be},{pattern:/^\r+\n/,sub:be},{pattern:/^\r/,sub:be},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Re},{pattern:/^\x1b\[\d?J/,sub:j},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:j},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:j},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:qe}];function Xe(q,K){K>D&&_||(_=!1,R=R.replace(q.pattern,q.sub))}var Ae=[],Z=R,ae=Z.length;e:for(;ae>0;){for(var de=0,Ne=0,Me=Ye.length;Ne<Me;de=++Ne){var I=Ye[de];if(Xe(I,de),R.length!==ae){ae=R.length;continue e}}if(R.length===ae)break;Ae.push(0),ae=R.length}return Ae}function Y(R,$,O){return $!=="text"&&(R=R.filter(M(T(O))),R.push({token:$,data:O,category:T(O)})),R}var ee=function(){function R($){e(this,R),$=$||{},$.colors&&($.colors=Object.assign({},d.colors,$.colors)),this.options=Object.assign({},d,$),this.stack=[],this.stickyStack=[]}return r(R,[{key:"toHtml",value:function(O){var _=this;O=typeof O=="string"?[O]:O;var D=this.stack,j=this.options,re=[];return this.stickyStack.forEach(function(pe){var be=b(D,pe.token,pe.data,j);be&&re.push(be)}),J(O.join(""),j,function(pe,be){var Re=b(D,pe,be,j);Re&&re.push(Re),j.stream&&(_.stickyStack=Y(_.stickyStack,pe,be))}),D.length&&re.push(N(D)),re.join("")}}]),R}();return nd=ee,nd}var Sae=xae();const _ae=bw(Sae);function kae(e,t){return t&&e.endsWith(t)}async function Sw(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function Uh(e){return new _ae({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function Cae(e){return e===null||typeof e!="function"&&typeof e!="object"}function _w(e){let t=e;if(Cae(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:""}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:""}}return t.stacks=KA(t.stack||t.stackStr||"",{ignoreStackEntries:[]}),t}var Qn=Uint8Array,ys=Uint16Array,Tae=Int32Array,kw=new Qn([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Cw=new Qn([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),Eae=new Qn([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Tw=function(e,t){for(var r=new ys(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Tae(r[30]),o=1;o<30;++o)for(var c=r[o];c<r[o+1];++c)s[c]=c-r[o]<<5|o;return{b:r,r:s}},Ew=Tw(kw,2),Aw=Ew.b,Aae=Ew.r;Aw[28]=258,Aae[258]=28;var Mae=Tw(Cw,0),Lae=Mae.b,Ud=new ys(32768);for(var Tt=0;Tt<32768;++Tt){var Ri=(Tt&43690)>>1|(Tt&21845)<<1;Ri=(Ri&52428)>>2|(Ri&13107)<<2,Ri=(Ri&61680)>>4|(Ri&3855)<<4,Ud[Tt]=((Ri&65280)>>8|(Ri&255)<<8)>>1}var Il=function(e,t,r){for(var o=e.length,s=0,c=new ys(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new ys(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new ys(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],v=t-e[s],m=f[e[s]-1]++<<v,b=m|(1<<v)-1;m<=b;++m)d[Ud[m]>>h]=p}else for(d=new ys(o),s=0;s<o;++s)e[s]&&(d[s]=Ud[f[e[s]-1]++]>>15-e[s]);return d},Sa=new Qn(288);for(var Tt=0;Tt<144;++Tt)Sa[Tt]=8;for(var Tt=144;Tt<256;++Tt)Sa[Tt]=9;for(var Tt=256;Tt<280;++Tt)Sa[Tt]=7;for(var Tt=280;Tt<288;++Tt)Sa[Tt]=8;var Mw=new Qn(32);for(var Tt=0;Tt<32;++Tt)Mw[Tt]=5;var Nae=Il(Sa,9,1),$ae=Il(Mw,5,1),rd=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},br=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},id=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Oae=function(e){return(e+7)/8|0},Lw=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new Qn(e.subarray(t,r))},Pae=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Bn=function(e,t,r){var o=new Error(t||Pae[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Bn),!r)throw o;return o},jh=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new Qn(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new Qn(s*3));var p=function(Me){var I=r.length;if(Me>I){var q=new Qn(Math.max(I*2,Me));q.set(r),r=q}},v=t.f||0,m=t.p||0,b=t.b||0,w=t.l,E=t.d,N=t.m,L=t.n,M=s*8;do{if(!w){v=br(e,m,1);var T=br(e,m+1,3);if(m+=3,T)if(T==1)w=Nae,E=$ae,N=9,L=5;else if(T==2){var G=br(e,m,31)+257,U=br(e,m+10,15)+4,Q=G+br(e,m+5,31)+1;m+=14;for(var J=new Qn(Q),Y=new Qn(19),ee=0;ee<U;++ee)Y[Eae[ee]]=br(e,m+ee*3,7);m+=U*3;for(var R=rd(Y),$=(1<<R)-1,O=Il(Y,R,1),ee=0;ee<Q;){var _=O[br(e,m,$)];m+=_&15;var P=_>>4;if(P<16)J[ee++]=P;else{var D=0,j=0;for(P==16?(j=3+br(e,m,3),m+=2,D=J[ee-1]):P==17?(j=3+br(e,m,7),m+=3):P==18&&(j=11+br(e,m,127),m+=7);j--;)J[ee++]=D}}var re=J.subarray(0,G),pe=J.subarray(G);N=rd(re),L=rd(pe),w=Il(re,N,1),E=Il(pe,L,1)}else Bn(1);else{var P=Oae(m)+4,A=e[P-4]|e[P-3]<<8,B=P+A;if(B>s){h&&Bn(0);break}d&&p(b+A),r.set(e.subarray(P,B),b),t.b=b+=A,t.p=m=B*8,t.f=v;continue}if(m>M){h&&Bn(0);break}}d&&p(b+131072);for(var be=(1<<N)-1,Re=(1<<L)-1,qe=m;;qe=m){var D=w[id(e,m)&be],et=D>>4;if(m+=D&15,m>M){h&&Bn(0);break}if(D||Bn(2),et<256)r[b++]=et;else if(et==256){qe=m,w=null;break}else{var Ye=et-254;if(et>264){var ee=et-257,Xe=kw[ee];Ye=br(e,m,(1<<Xe)-1)+Aw[ee],m+=Xe}var Ae=E[id(e,m)&Re],Z=Ae>>4;Ae||Bn(3),m+=Ae&15;var pe=Lae[Z];if(Z>3){var Xe=Cw[Z];pe+=id(e,m)&(1<<Xe)-1,m+=Xe}if(m>M){h&&Bn(0);break}d&&p(b+131072);var ae=b+Ye;if(b<pe){var de=c-pe,Ne=Math.min(pe,ae);for(de+b<0&&Bn(3);b<Ne;++b)r[b]=o[de+b]}for(;b<ae;++b)r[b]=r[b-pe]}}t.l=w,t.p=qe,t.b=b,t.f=v,w&&(v=1,t.m=N,t.d=E,t.n=L)}while(!v);return b!=r.length&&f?Lw(r,0,b):r.subarray(0,b)},Rae=new Qn(0),zae=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Bn(6,"invalid gzip data");var t=e[3],r=10;t&4&&(r+=(e[10]|e[11]<<8)+2);for(var o=(t>>3&1)+(t>>4&1);o>0;o-=!e[r++]);return r+(t&2)},Dae=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},Iae=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Bn(6,"invalid zlib data"),(e[1]>>5&1)==1&&Bn(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Fae(e,t){return jh(e,{i:2},t,t)}function Hae(e,t){var r=zae(e);return r+8>e.length&&Bn(6,"invalid gzip data"),jh(e.subarray(r,-8),{i:2},new Qn(Dae(e)),t)}function Bae(e,t){return jh(e.subarray(Iae(e),-4),{i:2},t,t)}function Wae(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hae(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Fae(e,t):Bae(e,t)}var jd=typeof TextDecoder<"u"&&new TextDecoder,qae=0;try{jd.decode(Rae,{stream:!0}),qae=1}catch{}var Uae=function(e){for(var t="",r=0;;){var o=e[r++],s=(o>127)+(o>223)+(o>239);if(r+s>e.length)return{s:t,r:Lw(e,r-1)};s?s==3?(o=((o&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,t+=String.fromCharCode(55296|o>>10,56320|o&1023)):s&1?t+=String.fromCharCode((o&31)<<6|e[r++]&63):t+=String.fromCharCode((o&15)<<12|(e[r++]&63)<<6|e[r++]&63):t+=String.fromCharCode(o)}};function jae(e,t){var r;if(jd)return jd.decode(e);var o=Uae(e),s=o.s,r=o.r;return r.length&&Bn(8),s}const od=()=>{},hn=()=>Promise.resolve();function Vae(){const e=er({state:new Wb,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=er(e.state.filesMap),e.state.idMap=er(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getModuleGraph:async(d,h)=>{var p;return(p=t.moduleGraph[d])==null?void 0:p[h]},getUnhandledErrors:()=>t.unhandledErrors,getTransformResult:hn,onDone:od,onTaskUpdate:od,writeFile:hn,rerun:hn,rerunTask:hn,updateSnapshot:hn,resolveSnapshotPath:hn,snapshotSaved:hn,onAfterSuiteRun:hn,onCancel:hn,getCountOfFailedTests:()=>0,sendLog:hn,resolveSnapshotRawPath:hn,readSnapshotFile:hn,saveSnapshotFile:hn,readTestFile:async d=>t.sources[d],removeSnapshotFile:hn,onUnhandledError:od,saveTestFile:hn,getProvidedContext:()=>({}),getTestFiles:hn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){var v;const d=await fetch(window.METADATA_PATH),h=((v=d.headers.get("content-type"))==null?void 0:v.toLowerCase())||"";if(h.includes("application/gzip")||h.includes("application/x-gzip")){const m=new Uint8Array(await d.arrayBuffer()),b=jae(Wae(m));t=Dd(b)}else t=Dd(await d.text());const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const mt=function(){return Cr?Vae():qT(eA,{reactive:(t,r)=>r==="state"?er(t):On(t),handlers:{onTaskUpdate(t){Ee.resumeRun(t),Ru.value="running"},onFinished(t,r){Ee.endRun(),Wi.value=(r||[]).map(_w)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})}(),Du=On({}),To=je("CONNECTING"),Jt=ke(()=>{const e=eo.value;return e?ar(e):void 0}),Nw=ke(()=>zh(Jt.value).map(e=>(e==null?void 0:e.logs)||[]).flat()||[]);function ar(e){const t=mt.state.idMap.get(e);return t||void 0}const Gae=ke(()=>To.value==="OPEN"),sd=ke(()=>To.value==="CONNECTING");ke(()=>To.value==="CLOSED");function Kae(){return Vh(mt.state.getFiles())}function $w(e){delete e.result;const t=Ee.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,wa(e)))for(const r of e.tasks)$w(r)}function Xae(e){const t=Ee.nodes;e.forEach(r=>{delete r.result,zh(r).forEach(s=>{if(delete s.result,t.has(s.id)){const c=t.get(s.id);c&&(c.state=void 0,c.duration=void 0)}});const o=t.get(r.id);o&&(o.state=void 0,o.duration=void 0,Nn(o)&&(o.collectDuration=void 0))})}function Vh(e){return Xae(e),Ee.startRun(),mt.rpc.rerun(e.map(t=>t.filepath),!0)}function Yae(e){return $w(e),Ee.startRun(),mt.rpc.rerunTask(e.id)}const Po=window.__vitest_browser_runner__;window.__vitest_ui_api__=ZE;Et(()=>mt.ws,e=>{To.value=Cr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{To.value="OPEN",mt.state.filesMap.clear();let[t,r,o,s]=await Promise.all([mt.rpc.getFiles(),mt.rpc.getConfig(),mt.rpc.getUnhandledErrors(),mt.rpc.getResolvedProjectNames()]);r.standalone&&(t=(await mt.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Ob(h,d,f);return p.mode="skip",p})),Ee.loadFiles(t,s),mt.state.collectFiles(t),Ee.startRun(),Wi.value=(o||[]).map(_w),Du.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{To.value==="CONNECTING"&&(To.value="CLOSED")},1e3)})},{immediate:!0});const Zae={"text-2xl":""},Jae={"text-lg":"",op50:""},Qae=ut({__name:"ConnectionOverlay",setup(e){return(t,r)=>W(Gae)?Ke("",!0):(oe(),ye("div",{key:0,fixed:"","inset-0":"",p2:"","z-10":"","select-none":"",text:"center sm",bg:"overlay","backdrop-blur-sm":"","backdrop-saturate-0":"",onClick:r[0]||(r[0]=(...o)=>W(mt).reconnect&&W(mt).reconnect(...o))},[te("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:it(W(sd)?"animate-pulse":"")},[te("div",{text:"5xl",class:it(W(sd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),te("div",Zae,Be(W(sd)?"Connecting...":"Disconnected"),1),te("div",Jae," Check your terminal or start a new server with `"+Be(W(Po)?`vitest --browser=${W(Po).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),ece=["aria-label","opacity","disabled","hover"],bi=ut({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(oe(),ye("button",{"aria-label":t.title,role:"button",opacity:t.disabled?10:70,rounded:"",disabled:t.disabled,hover:t.disabled||t.active?"":"bg-active op100",class:it(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":t.active}]])},[mn(t.$slots,"default",{},()=>[te("span",{class:it(t.icon),ma:"",block:""},null,2)])],10,ece))}}),tce={h:"full",flex:"~ col"},nce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},rce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},ice={class:"pointer-events-none","text-sm":""},oce={key:0},sce={id:"tester-container",relative:""},lce=["data-scale"],Dm=20,ace=100,cce=ut({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const v=t[p];return Fr.value[0]===v[0]&&Fr.value[1]===v[1]}async function o(p){Fr.value=t[p]}const{width:s,height:c}=Hh(),f=ke(()=>{const m=s.value*(vn.details.size/100)*(vn.details.browser/100)-Dm,b=c.value-ace;return{width:m,height:b}}),d=ke(()=>{const[p,v]=Fr.value,{width:m,height:b}=f.value,w=m>p?1:m/p,E=b>v?1:b/v;return Math.min(1,w,E)}),h=ke(()=>{const p=f.value.width,v=Fr.value[0];return`${Math.trunc((p+Dm-v)/2)}px`});return(p,v)=>{const m=bi,b=Kr("tooltip");return oe(),ye("div",tce,[te("div",nce,[gt(Oe(m,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:v[0]||(v[0]=w=>W(YE)())},null,512),[[ji,W(vn).navigation<=2],[b,"Show Navigation Panel",void 0,{bottom:!0}]]),v[6]||(v[6]=te("div",{class:"i-carbon-content-delivery-network"},null,-1)),v[7]||(v[7]=te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),gt(Oe(m,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:v[1]||(v[1]=w=>W(KE)())},null,512),[[ji,W(vn).details.main>0],[b,"Hide Right Panel",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:v[2]||(v[2]=w=>W(XE)())},null,512),[[ji,W(vn).details.main===0],[b,"Show Right Panel",void 0,{bottom:!0}]])]),te("div",rce,[gt(Oe(m,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:v[3]||(v[3]=w=>o("small-mobile"))},null,8,["active"]),[[b,"Small mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:v[4]||(v[4]=w=>o("large-mobile"))},null,8,["active"]),[[b,"Large mobile",void 0,{bottom:!0}]]),gt(Oe(m,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:v[5]||(v[5]=w=>o("tablet"))},null,8,["active"]),[[b,"Tablet",void 0,{bottom:!0}]]),te("span",ice,[pt(Be(W(Fr)[0])+"x"+Be(W(Fr)[1])+"px ",1),W(d)<1?(oe(),ye("span",oce,"("+Be((W(d)*100).toFixed(0))+"%)",1)):Ke("",!0)])]),te("div",sce,[te("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":W(d),style:en({"--viewport-width":`${W(Fr)[0]}px`,"--viewport-height":`${W(Fr)[1]}px`,"--tester-transform":`scale(${W(d)})`,"--tester-margin-left":W(h)})}," Select a test to run ",12,lce)])])}}}),uce=yi(cce,[["__scopeId","data-v-65565204"]]),Ow=ut({__name:"Modal",props:Vl({direction:{default:"bottom"}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue"),r=ke(()=>{switch(e.direction){case"bottom":return"bottom-0 left-0 right-0 border-t";case"top":return"top-0 left-0 right-0 border-b";case"left":return"bottom-0 left-0 top-0 border-r";case"right":return"bottom-0 top-0 right-0 border-l";default:return""}}),o=ke(()=>{switch(e.direction){case"bottom":return"translateY(100%)";case"top":return"translateY(-100%)";case"left":return"translateX(-100%)";case"right":return"translateX(100%)";default:return""}}),s=()=>t.value=!1;return(c,f)=>(oe(),ye("div",{class:it(["fixed inset-0 z-40",t.value?"":"pointer-events-none"])},[te("div",{class:it(["bg-base inset-0 absolute transition-opacity duration-500 ease-out",t.value?"opacity-50":"opacity-0"]),onClick:s},null,2),te("div",{class:it(["bg-base border-base absolute transition-all duration-200 ease-out scrolls",[W(r)]]),style:en(t.value?{}:{transform:W(o)})},[mn(c.$slots,"default")],6)],2))}}),fce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},dce={"p-4":"",relative:"",border:"base b"},hce={op50:"","font-mono":"","text-sm":""},pce={op50:"","font-mono":"","text-sm":""},gce={class:"scrolls",grid:"~ cols-1 rows-[min-content]","p-4":""},vce=["src","alt"],mce={key:1},yce=ut({__name:"ScreenshotError",props:{file:{},name:{},url:{}},emits:["close"],setup(e,{emit:t}){const r=t;return Yb("Escape",()=>{r("close")}),(o,s)=>{const c=bi;return oe(),ye("div",fce,[te("div",dce,[s[1]||(s[1]=te("p",null,"Screenshot error",-1)),te("p",hce,Be(o.file),1),te("p",pce,Be(o.name),1),Oe(c,{icon:"i-carbon:close",title:"Close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:s[0]||(s[0]=f=>r("close"))})]),te("div",gce,[o.url?(oe(),ye("img",{key:0,src:o.url,alt:`Screenshot error for '${o.name}' test in file '${o.file}'`,border:"base t r b l dotted red-500"},null,8,vce)):(oe(),ye("div",mce," Something was wrong, the image cannot be resolved. "))])])}}}),bce=yi(yce,[["__scopeId","data-v-93900314"]]);function Fl(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}const _a=dE(),wce=YT(_a),xce={class:"scrolls scrolls-rounded task-error"},Sce=["onClickPassive"],_ce=["innerHTML"],kce=ut({__name:"ViewReportError",props:{root:{},filename:{},error:{}},setup(e){const t=e;function r(f){return f.startsWith(t.root)?f.slice(t.root.length):f}const o=ke(()=>Uh(_a.value)),s=ke(()=>{var f;return!!((f=t.error)!=null&&f.diff)}),c=ke(()=>t.error.diff?o.value.toHtml(Fl(t.error.diff)):void 0);return(f,d)=>{const h=Kr("tooltip");return oe(),ye("div",xce,[te("pre",null,[te("b",null,Be(f.error.name||f.error.nameStr),1),pt(": "+Be(f.error.message),1)]),(oe(!0),ye(ct,null,hi(f.error.stacks,(p,v)=>(oe(),ye("div",{key:v,class:"op80 flex gap-x-2 items-center","data-testid":"stack"},[te("pre",null," - "+Be(r(p.file))+":"+Be(p.line)+":"+Be(p.column),1),W(kae)(p.file,f.filename)?gt((oe(),ye("div",{key:0,class:"i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",tabindex:"0","aria-label":"Open in Editor",onClickPassive:m=>W(Sw)(p.file,p.line,p.column)},null,40,Sce)),[[h,"Open in Editor",void 0,{bottom:!0}]]):Ke("",!0)]))),128)),W(s)?(oe(),ye("pre",{key:0,"data-testid":"diff",innerHTML:W(c)},null,8,_ce)):Ke("",!0)])}}}),Cce=yi(kce,[["__scopeId","data-v-9dd6eaea"]]),Tce={"h-full":"",class:"scrolls"},Ece=["id"],Ace={flex:"~ gap-2 items-center"},Mce={key:0,class:"scrolls scrolls-rounded task-error","data-testid":"task-error"},Lce=["innerHTML"],Nce={key:1,bg:"green-500/10",text:"green-500 sm",p:"x4 y2","m-2":"",rounded:""},$ce=ut({__name:"ViewReport",props:{file:{}},setup(e){const t=e;function r(b,w){var E;return((E=b.result)==null?void 0:E.state)!=="fail"?[]:b.type==="test"?[{...b,level:w}]:[{...b,level:w},...b.tasks.flatMap(N=>r(N,w+1))]}function o(b,w){var L,M,T;let E="";(L=w.message)!=null&&L.includes("\x1B")&&(E=`<b>${w.nameStr||w.name}</b>: ${b.toHtml(Fl(w.message))}`);const N=(M=w.stackStr)==null?void 0:M.includes("\x1B");return(N||(T=w.stack)!=null&&T.includes("\x1B"))&&(E.length>0?E+=b.toHtml(Fl(N?w.stackStr:w.stack)):E=`<b>${w.nameStr||w.name}</b>: ${w.message}${b.toHtml(Fl(N?w.stackStr:w.stack))}`),E.length>0?E:null}function s(b,w){const E=Uh(b);return w.map(N=>{var T;const L=N.result;if(!L)return N;const M=(T=L.errors)==null?void 0:T.map(P=>o(E,P)).filter(P=>P!=null).join("<br><br>");return M!=null&&M.length&&(L.htmlError=M),N})}const c=ke(()=>{var L,M;const b=t.file,w=((L=b==null?void 0:b.tasks)==null?void 0:L.flatMap(T=>r(T,0)))??[],E=b==null?void 0:b.result;if((M=E==null?void 0:E.errors)==null?void 0:M[0]){const T={id:b.id,file:b,name:b.name,level:0,type:"suite",mode:"run",meta:{},tasks:[],result:E};w.unshift(T)}return w.length>0?s(_a.value,w):w});function f(b){var E;const w=(E=b.meta)==null?void 0:E.failScreenshotPath;w&&fetch(`/__open-in-editor?file=${encodeURIComponent(w)}`)}const d=je(!1),h=je(Date.now()),p=je(),v=ke(()=>{var E;const b=(E=p.value)==null?void 0:E.id,w=h.value;return b?`/__screenshot-error?id=${encodeURIComponent(b)}&t=${w}`:void 0});function m(b){p.value=b,h.value=Date.now(),d.value=!0}return Et(()=>[fw.value],([b])=>{if(b!=null){const w=document.querySelector(`[id='${b}'`);w!=null&&Pt(()=>{w.scrollIntoView()})}},{flush:"post"}),(b,w)=>{const E=bi,N=Cce,L=bce,M=Ow,T=Kr("tooltip");return oe(),ye("div",Tce,[W(c).length?(oe(!0),ye(ct,{key:0},hi(W(c),P=>{var A,B,G,U;return oe(),ye("div",{id:P.id,key:P.id},[te("div",{bg:"red-500/10",text:"red-500 sm",p:"x3 y2","m-2":"",rounded:"",style:en({"margin-left":`${(A=P.result)!=null&&A.htmlError?.5:2*P.level+.5}rem`})},[te("div",Ace,[te("span",null,Be(P.name),1),W(Po)&&((B=P.meta)!=null&&B.failScreenshotPath)?(oe(),ye(ct,{key:0},[gt(Oe(E,{class:"!op-100",icon:"i-carbon:image",title:"View screenshot error",onClick:Q=>m(P)},null,8,["onClick"]),[[T,"View screenshot error",void 0,{bottom:!0}]]),gt(Oe(E,{class:"!op-100",icon:"i-carbon:image-reference",title:"Open screenshot error in editor",onClick:Q=>f(P)},null,8,["onClick"]),[[T,"Open screenshot error in editor",void 0,{bottom:!0}]])],64)):Ke("",!0)]),(G=P.result)!=null&&G.htmlError?(oe(),ye("div",Mce,[te("pre",{innerHTML:P.result.htmlError},null,8,Lce)])):(U=P.result)!=null&&U.errors?(oe(!0),ye(ct,{key:1},hi(P.result.errors,(Q,J)=>{var Y;return oe(),nt(N,{key:J,error:Q,filename:(Y=b.file)==null?void 0:Y.name,root:W(Du).root},null,8,["error","filename","root"])}),128)):Ke("",!0)],4)],8,Ece)}),128)):(oe(),ye("div",Nce," All tests passed in this file ")),W(Po)?(oe(),nt(M,{key:2,modelValue:W(d),"onUpdate:modelValue":w[1]||(w[1]=P=>kt(d)?d.value=P:null),direction:"right"},{default:rt(()=>[W(p)?(oe(),nt(Xy,{key:0},{default:rt(()=>[Oe(L,{file:W(p).file.filepath,name:W(p).name,url:W(v),onClose:w[0]||(w[0]=P=>d.value=!1)},null,8,["file","name","url"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])):Ke("",!0)])}}}),Oce=yi($ce,[["__scopeId","data-v-013fc3c6"]]),Pce={border:"b base","p-4":""},Rce=["innerHTML"],zce=ut({__name:"ViewConsoleOutputEntry",props:{taskName:{},type:{},time:{},content:{}},setup(e){function t(r){return new Date(r).toLocaleTimeString()}return(r,o)=>(oe(),ye("div",Pce,[te("div",{"text-xs":"","mb-1":"",class:it(r.type==="stderr"?"text-red-600 dark:text-red-300":"op30")},Be(t(r.time))+" | "+Be(r.taskName)+" | "+Be(r.type),3),te("pre",{"data-type":"html",innerHTML:r.content},null,8,Rce)]))}}),Dce={key:0,"h-full":"",class:"scrolls",flex:"","flex-col":"","data-testid":"logs"},Ice={key:1,p6:""},Fce=ut({__name:"ViewConsoleOutput",setup(e){const t=ke(()=>{const o=Nw.value;if(o){const s=Uh(_a.value);return o.map(({taskId:c,type:f,time:d,content:h})=>({taskId:c,type:f,time:d,content:s.toHtml(Fl(h))}))}});function r(o){const s=o&&mt.state.idMap.get(o);return s&&"filepath"in s?s.name:(s?MT(s).slice(1).join(" > "):"-")||"-"}return(o,s)=>{var f;const c=zce;return(f=W(t))!=null&&f.length?(oe(),ye("div",Dce,[(oe(!0),ye(ct,null,hi(W(t),({taskId:d,type:h,time:p,content:v})=>(oe(),ye("div",{key:d,"font-mono":""},[Oe(c,{"task-name":r(d),type:h,time:p,content:v},null,8,["task-name","type","time","content"])]))),128))])):(oe(),ye("p",Ice,s[0]||(s[0]=[pt(" Log something in your test and it would print here. (e.g. "),te("pre",{inline:""},"console.log(foo)",-1),pt(") ")])))}}});var Lc={exports:{}},Hce=Lc.exports,Im;function Bs(){return Im||(Im=1,function(e,t){(function(r,o){e.exports=o()})(Hce,function(){var r=navigator.userAgent,o=navigator.platform,s=/gecko\/\d/i.test(r),c=/MSIE \d/.test(r),f=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(r),d=/Edge\/(\d+)/.exec(r),h=c||f||d,p=h&&(c?document.documentMode||6:+(d||f)[1]),v=!d&&/WebKit\//.test(r),m=v&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),N=/Apple Computer/.test(navigator.vendor),L=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),T=N&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),P=/Android/.test(r),A=T||P||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),B=T||/Mac/.test(o),G=/\bCrOS\b/.test(r),U=/win/i.test(o),Q=E&&r.match(/Version\/(\d*\.\d*)/);Q&&(Q=Number(Q[1])),Q&&Q>=15&&(E=!1,v=!0);var J=B&&(m||E&&(Q==null||Q<12.11)),Y=s||h&&p>=9;function ee(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var R=function(n,i){var a=n.className,l=ee(i).exec(a);if(l){var u=a.slice(l.index+l[0].length);n.className=a.slice(0,l.index)+(u?l[1]+u:"")}};function $(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function O(n,i){return $(n).appendChild(i)}function _(n,i,a,l){var u=document.createElement(n);if(a&&(u.className=a),l&&(u.style.cssText=l),typeof i=="string")u.appendChild(document.createTextNode(i));else if(i)for(var g=0;g<i.length;++g)u.appendChild(i[g]);return u}function D(n,i,a,l){var u=_(n,i,a,l);return u.setAttribute("role","presentation"),u}var j;document.createRange?j=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:j=function(n,i,a){var l=document.body.createTextRange();try{l.moveToElementText(n.parentNode)}catch{return l}return l.collapse(!0),l.moveEnd("character",a),l.moveStart("character",i),l};function re(n,i){if(i.nodeType==3&&(i=i.parentNode),n.contains)return n.contains(i);do if(i.nodeType==11&&(i=i.host),i==n)return!0;while(i=i.parentNode)}function pe(n){var i=n.ownerDocument||n,a;try{a=n.activeElement}catch{a=i.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function be(n,i){var a=n.className;ee(i).test(a)||(n.className+=(a?" ":"")+i)}function Re(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!ee(a[l]).test(i)&&(i+=" "+a[l]);return i}var qe=function(n){n.select()};T?qe=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(qe=function(n){try{n.select()}catch{}});function et(n){return n.display.wrapper.ownerDocument}function Ye(n){return Xe(n.display.wrapper)}function Xe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Ae(n){return et(n).defaultView}function Z(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function ae(n,i,a){i||(i={});for(var l in n)n.hasOwnProperty(l)&&(a!==!1||!i.hasOwnProperty(l))&&(i[l]=n[l]);return i}function de(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var g=l||0,y=u||0;;){var x=n.indexOf(" ",g);if(x<0||x>=i)return y+(i-g);y+=x-g,y+=a-y%a,g=x+1}}var Ne=function(){this.id=null,this.f=null,this.time=0,this.handler=Z(this.onTimeout,this)};Ne.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},Ne.prototype.set=function(n,i){this.f=i;var a=+new Date+n;(!this.id||a<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,n),this.time=a)};function Me(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var I=50,q={toString:function(){return"CodeMirror.Pass"}},K={scroll:!1},le={origin:"*mouse"},ce={origin:"+move"};function ue(n,i,a){for(var l=0,u=0;;){var g=n.indexOf(" ",l);g==-1&&(g=n.length);var y=g-l;if(g==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=g-l,u+=a-u%a,l=g+1,u>=i)return l}}var Se=[""];function _e(n){for(;Se.length<=n;)Se.push(he(Se)+" ");return Se[n]}function he(n){return n[n.length-1]}function ge(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function We(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function Le(){}function De(n,i){var a;return Object.create?a=Object.create(n):(Le.prototype=n,a=new Le),i&&ae(i,a),a}var Ue=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function tt(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||Ue.test(n))}function ot(n,i){return i?i.source.indexOf("\\w")>-1&&tt(n)?!0:i.test(n):tt(n)}function lt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Mt=/[\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 st(n){return n.charCodeAt(0)>=768&&Mt.test(n)}function jt(n,i,a){for(;(a<0?i>0:i<n.length)&&st(n.charAt(i));)i+=a;return i}function It(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,g=l<0?Math.ceil(u):Math.floor(u);if(g==i)return n(g)?i:a;n(g)?a=g:i=g+l}}function Rn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,g=0;g<n.length;++g){var y=n[g];(y.from<a&&y.to>i||i==a&&y.to==i)&&(l(Math.max(y.from,i),Math.min(y.to,a),y.level==1?"rtl":"ltr",g),u=!0)}u||l(i,a,"ltr")}var $r=null;function zt(n,i,a){var l;$r=null;for(var u=0;u<n.length;++u){var g=n[u];if(g.from<i&&g.to>i)return u;g.to==i&&(g.from!=g.to&&a=="before"?l=u:$r=u),g.from==i&&(g.from!=g.to&&a!="before"?l=u:$r=u)}return l??$r}var zn=function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(k){return k<=247?n.charAt(k):1424<=k&&k<=1524?"R":1536<=k&&k<=1785?i.charAt(k-1536):1774<=k&&k<=2220?"r":8192<=k&&k<=8203?"w":k==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,g=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(k,z,H){this.level=k,this.from=z,this.to=H}return function(k,z){var H=z=="ltr"?"L":"R";if(k.length==0||z=="ltr"&&!l.test(k))return!1;for(var X=k.length,V=[],ie=0;ie<X;++ie)V.push(a(k.charCodeAt(ie)));for(var fe=0,me=H;fe<X;++fe){var we=V[fe];we=="m"?V[fe]=me:me=we}for(var Te=0,xe=H;Te<X;++Te){var $e=V[Te];$e=="1"&&xe=="r"?V[Te]="n":g.test($e)&&(xe=$e,$e=="r"&&(V[Te]="R"))}for(var Fe=1,ze=V[0];Fe<X-1;++Fe){var Ze=V[Fe];Ze=="+"&&ze=="1"&&V[Fe+1]=="1"?V[Fe]="1":Ze==","&&ze==V[Fe+1]&&(ze=="1"||ze=="n")&&(V[Fe]=ze),ze=Ze}for(var xt=0;xt<X;++xt){var Yt=V[xt];if(Yt==",")V[xt]="N";else if(Yt=="%"){var At=void 0;for(At=xt+1;At<X&&V[At]=="%";++At);for(var Fn=xt&&V[xt-1]=="!"||At<X&&V[At]=="1"?"1":"N",Sn=xt;Sn<At;++Sn)V[Sn]=Fn;xt=At-1}}for(var Ft=0,_n=H;Ft<X;++Ft){var nn=V[Ft];_n=="L"&&nn=="1"?V[Ft]="L":g.test(nn)&&(_n=nn)}for(var qt=0;qt<X;++qt)if(u.test(V[qt])){var Ht=void 0;for(Ht=qt+1;Ht<X&&u.test(V[Ht]);++Ht);for(var Ot=(qt?V[qt-1]:H)=="L",kn=(Ht<X?V[Ht]:H)=="L",as=Ot==kn?Ot?"L":"R":H,$i=qt;$i<Ht;++$i)V[$i]=as;qt=Ht-1}for(var an=[],Dr,Zt=0;Zt<X;)if(y.test(V[Zt])){var Df=Zt;for(++Zt;Zt<X&&y.test(V[Zt]);++Zt);an.push(new S(0,Df,Zt))}else{var ri=Zt,vo=an.length,mo=z=="rtl"?1:0;for(++Zt;Zt<X&&V[Zt]!="L";++Zt);for(var dn=ri;dn<Zt;)if(x.test(V[dn])){ri<dn&&(an.splice(vo,0,new S(1,ri,dn)),vo+=mo);var cs=dn;for(++dn;dn<Zt&&x.test(V[dn]);++dn);an.splice(vo,0,new S(2,cs,dn)),vo+=mo,ri=dn}else++dn;ri<Zt&&an.splice(vo,0,new S(1,ri,Zt))}return z=="ltr"&&(an[0].level==1&&(Dr=k.match(/^\s+/))&&(an[0].from=Dr[0].length,an.unshift(new S(0,0,Dr[0].length))),he(an).level==1&&(Dr=k.match(/\s+$/))&&(he(an).to-=Dr[0].length,an.push(new S(0,X-Dr[0].length,X)))),z=="rtl"?an.reverse():an}}();function Qe(n,i){var a=n.order;return a==null&&(a=n.order=zn(n.text,i)),a}var Ea=[],Ie=function(n,i,a){if(n.addEventListener)n.addEventListener(i,a,!1);else if(n.attachEvent)n.attachEvent("on"+i,a);else{var l=n._handlers||(n._handlers={});l[i]=(l[i]||Ea).concat(a)}};function Yr(n,i){return n._handlers&&n._handlers[i]||Ea}function on(n,i,a){if(n.removeEventListener)n.removeEventListener(i,a,!1);else if(n.detachEvent)n.detachEvent("on"+i,a);else{var l=n._handlers,u=l&&l[i];if(u){var g=Me(u,a);g>-1&&(l[i]=u.slice(0,g).concat(u.slice(g+1)))}}}function Lt(n,i){var a=Yr(n,i);if(a.length)for(var l=Array.prototype.slice.call(arguments,2),u=0;u<a.length;++u)a[u].apply(null,l)}function Nt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Lt(n,a||i.type,n,i),yn(i)||i.codemirrorIgnore}function rr(n){var i=n._handlers&&n._handlers.cursorActivity;if(i)for(var a=n.curOp.cursorActivityHandlers||(n.curOp.cursorActivityHandlers=[]),l=0;l<i.length;++l)Me(a,i[l])==-1&&a.push(i[l])}function Dn(n,i){return Yr(n,i).length>0}function cr(n){n.prototype.on=function(i,a){Ie(this,i,a)},n.prototype.off=function(i,a){on(this,i,a)}}function sn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Do(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function yn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function wi(n){sn(n),Do(n)}function Ws(n){return n.target||n.srcElement}function ur(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),B&&n.ctrlKey&&i==1&&(i=3),i}var qu=function(){if(h&&p<9)return!1;var n=_("div");return"draggable"in n||"dragDrop"in n}(),Io;function Aa(n){if(Io==null){var i=_("span","");O(n,_("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Io=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Io?_("span",""):_("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var qs;function xi(n){if(qs!=null)return qs;var i=O(n,document.createTextNode("AخA")),a=j(i,0,1).getBoundingClientRect(),l=j(i,1,2).getBoundingClientRect();return $(n),!a||a.left==a.right?!1:qs=l.right-a.right<3}var ir=`
|
|
22
22
|
|
|
23
23
|
b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(`
|
|
24
24
|
`,i);u==-1&&(u=n.length);var g=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=g.indexOf("\r");y!=-1?(a.push(g.slice(0,y)),i+=y+1):(a.push(g),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Si=window.getSelection?function(n){try{return n.selectionStart!=n.selectionEnd}catch{return!1}}:function(n){var i;try{i=n.ownerDocument.selection.createRange()}catch{}return!i||i.parentElement()!=n?!1:i.compareEndPoints("StartToEnd",i)!=0},Ma=function(){var n=_("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")}(),fr=null;function Uu(n){if(fr!=null)return fr;var i=O(n,_("span","x")),a=i.getBoundingClientRect(),l=j(i,0,1).getBoundingClientRect();return fr=Math.abs(a.left-l.left)>1}var Fo={},dr={};function hr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Fo[n]=i}function so(n,i){dr[n]=i}function Ho(n){if(typeof n=="string"&&dr.hasOwnProperty(n))n=dr[n];else if(n&&typeof n.name=="string"&&dr.hasOwnProperty(n.name)){var i=dr[n.name];typeof i=="string"&&(i={name:i}),n=De(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return Ho("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return Ho("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function Bo(n,i){i=Ho(i);var a=Fo[i.name];if(!a)return Bo(n,"text/plain");var l=a(n,i);if(_i.hasOwnProperty(i.name)){var u=_i[i.name];for(var g in u)u.hasOwnProperty(g)&&(l.hasOwnProperty(g)&&(l["_"+g]=l[g]),l[g]=u[g])}if(l.name=i.name,i.helperType&&(l.helperType=i.helperType),i.modeProps)for(var y in i.modeProps)l[y]=i.modeProps[y];return l}var _i={};function Wo(n,i){var a=_i.hasOwnProperty(n)?_i[n]:_i[n]={};ae(i,a)}function Or(n,i){if(i===!0)return i;if(n.copyState)return n.copyState(i);var a={};for(var l in i){var u=i[l];u instanceof Array&&(u=u.concat([])),a[l]=u}return a}function Us(n,i){for(var a;n.innerMode&&(a=n.innerMode(i),!(!a||a.mode==n));)i=a.state,n=a.mode;return a||{mode:n,state:i}}function qo(n,i,a){return n.startState?n.startState(i,a):!0}var $t=function(n,i,a){this.pos=this.start=0,this.string=n,this.tabSize=i||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=a};$t.prototype.eol=function(){return this.pos>=this.string.length},$t.prototype.sol=function(){return this.pos==this.lineStart},$t.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},$t.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},$t.prototype.eat=function(n){var i=this.string.charAt(this.pos),a;if(typeof n=="string"?a=i==n:a=i&&(n.test?n.test(i):n(i)),a)return++this.pos,i},$t.prototype.eatWhile=function(n){for(var i=this.pos;this.eat(n););return this.pos>i},$t.prototype.eatSpace=function(){for(var n=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>n},$t.prototype.skipToEnd=function(){this.pos=this.string.length},$t.prototype.skipTo=function(n){var i=this.string.indexOf(n,this.pos);if(i>-1)return this.pos=i,!0},$t.prototype.backUp=function(n){this.pos-=n},$t.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=de(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return de(this.string,null,this.tabSize)-(this.lineStart?de(this.string,this.lineStart,this.tabSize):0)},$t.prototype.match=function(n,i,a){if(typeof n=="string"){var l=function(y){return a?y.toLowerCase():y},u=this.string.substr(this.pos,n.length);if(l(u)==l(n))return i!==!1&&(this.pos+=n.length),!0}else{var g=this.string.slice(this.pos).match(n);return g&&g.index>0?null:(g&&i!==!1&&(this.pos+=g[0].length),g)}},$t.prototype.current=function(){return this.string.slice(this.start,this.pos)},$t.prototype.hideFirstChars=function(n,i){this.lineStart+=n;try{return i()}finally{this.lineStart-=n}},$t.prototype.lookAhead=function(n){var i=this.lineOracle;return i&&i.lookAhead(n)},$t.prototype.baseToken=function(){var n=this.lineOracle;return n&&n.baseToken(this.pos)};function Pe(n,i){if(i-=n.first,i<0||i>=n.size)throw new Error("There is no line "+(i+n.first)+" in the document.");for(var a=n;!a.lines;)for(var l=0;;++l){var u=a.children[l],g=u.chunkSize();if(i<g){a=u;break}i-=g}return a.lines[i]}function Zr(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(g){var y=g.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function js(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Kn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function C(n){if(n.parent==null)return null;for(var i=n.parent,a=Me(i.lines,n),l=i.parent;l;i=l,l=l.parent)for(var u=0;l.children[u]!=i;++u)a+=l.children[u].chunkSize();return a+i.first}function F(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],g=u.height;if(i<g){n=u;continue e}i-=g,a+=u.chunkSize()}return a}while(!n.lines);for(var y=0;y<n.lines.length;++y){var x=n.lines[y],S=x.height;if(i<S)break;i-=S}return a+y}function se(n,i){return i>=n.first&&i<n.first+n.size}function ve(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function ne(n,i,a){if(a===void 0&&(a=null),!(this instanceof ne))return new ne(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ce(n,i){return n.line-i.line||n.ch-i.ch}function ft(n,i){return n.sticky==i.sticky&&Ce(n,i)==0}function Vt(n){return ne(n.line,n.ch)}function bn(n,i){return Ce(n,i)<0?i:n}function Uo(n,i){return Ce(n,i)<0?n:i}function ap(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function Ge(n,i){if(i.line<n.first)return ne(n.first,0);var a=n.first+n.size-1;return i.line>a?ne(a,Pe(n,a).text.length):I1(i,Pe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?ne(n.line,i):a<0?ne(n.line,0):n}function cp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=Ge(n,i[l]);return a}var La=function(n,i){this.state=n,this.lookAhead=i},Pr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Pr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Pr.prototype.baseToken=function(n){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=n;)this.baseTokenPos+=2;var i=this.baseTokens[this.baseTokenPos+1];return{type:i&&i.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-n}},Pr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Pr.fromSaved=function(n,i,a){return i instanceof La?new Pr(n,Or(n.mode,i.state),a,i.lookAhead):new Pr(n,Or(n.mode,i),a)},Pr.prototype.save=function(n){var i=n!==!1?Or(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new La(i,this.maxLookAhead):i};function up(n,i,a,l){var u=[n.state.modeGen],g={};vp(n,i.text,n.doc.mode,a,function(k,z){return u.push(k,z)},g,l);for(var y=a.state,x=function(k){a.baseTokens=u;var z=n.state.overlays[k],H=1,X=0;a.state=!0,vp(n,i.text,z.mode,a,function(V,ie){for(var fe=H;X<V;){var me=u[H];me>V&&u.splice(H,1,V,u[H+1],me),H+=2,X=Math.min(V,me)}if(ie)if(z.opaque)u.splice(fe,H-fe,V,"overlay "+ie),H=fe+2;else for(;fe<H;fe+=2){var we=u[fe+1];u[fe+1]=(we?we+" ":"")+"overlay "+ie}},g),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:g.bgClass||g.textClass?g:null}}function fp(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=Vs(n,C(i)),u=i.text.length>n.options.maxHighlightLength&&Or(n.doc.mode,l.state),g=up(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=g.styles,g.classes?i.styleClasses=g.classes:i.styleClasses&&(i.styleClasses=null),a===n.doc.highlightFrontier&&(n.doc.modeFrontier=Math.max(n.doc.modeFrontier,++n.doc.highlightFrontier))}return i.styles}function Vs(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Pr(l,!0,i);var g=F1(n,i,a),y=g>l.first&&Pe(l,g-1).stateAfter,x=y?Pr.fromSaved(l,y,g):new Pr(l,qo(l.mode),g);return l.iter(g,i,function(S){ju(n,S.text,x);var k=x.line;S.stateAfter=k==i-1||k%5==0||k>=u.viewFrom&&k<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function ju(n,i,a,l){var u=n.doc.mode,g=new $t(i,n.options.tabSize,a);for(g.start=g.pos=l||0,i==""&&dp(u,a.state);!g.eol();)Vu(u,g,a.state),g.start=g.pos}function dp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=Us(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function Vu(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=Us(n,a).mode);var g=n.token(i,a);if(i.pos>i.start)return g}throw new Error("Mode "+n.name+" failed to advance stream.")}var hp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function pp(n,i,a,l){var u=n.doc,g=u.mode,y;i=Ge(u,i);var x=Pe(u,i.line),S=Vs(n,i.line,a),k=new $t(x.text,n.options.tabSize,S),z;for(l&&(z=[]);(l||k.pos<i.ch)&&!k.eol();)k.start=k.pos,y=Vu(g,k,S.state),l&&z.push(new hp(k,y,Or(u.mode,S.state)));return l?z:new hp(k,y,S.state)}function gp(n,i){if(n)for(;;){var a=n.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!a)break;n=n.slice(0,a.index)+n.slice(a.index+a[0].length);var l=a[1]?"bgClass":"textClass";i[l]==null?i[l]=a[2]:new RegExp("(?:^|\\s)"+a[2]+"(?:$|\\s)").test(i[l])||(i[l]+=" "+a[2])}return n}function vp(n,i,a,l,u,g,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,k=null,z=new $t(i,n.options.tabSize,l),H,X=n.options.addModeClass&&[null];for(i==""&&gp(dp(a,l.state),g);!z.eol();){if(z.pos>n.options.maxHighlightLength?(x=!1,y&&ju(n,i,l,z.pos),z.pos=i.length,H=null):H=gp(Vu(a,z,l.state,X),g),X){var V=X[0].name;V&&(H="m-"+(H?V+" "+H:V))}if(!x||k!=H){for(;S<z.start;)S=Math.min(z.start,S+5e3),u(S,k);k=H}z.start=z.pos}for(;S<z.pos;){var ie=Math.min(z.pos,S+5e3);u(ie,k),S=ie}}function F1(n,i,a){for(var l,u,g=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=g.first)return g.first;var S=Pe(g,x-1),k=S.stateAfter;if(k&&(!a||x+(k instanceof La?k.lookAhead:0)<=g.modeFrontier))return x;var z=de(S.text,null,n.options.tabSize);(u==null||l>z)&&(u=x-1,l=z)}return u}function H1(n,i){if(n.modeFrontier=Math.min(n.modeFrontier,i),!(n.highlightFrontier<i-10)){for(var a=n.first,l=i-1;l>a;l--){var u=Pe(n,l).stateAfter;if(u&&(!(u instanceof La)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var mp=!1,Jr=!1;function B1(){mp=!0}function W1(){Jr=!0}function Na(n,i,a){this.marker=n,this.from=i,this.to=a}function Gs(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function q1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function U1(n,i,a){var l=a&&window.WeakSet&&(a.markedSpans||(a.markedSpans=new WeakSet));l&&n.markedSpans&&l.has(n.markedSpans)?n.markedSpans.push(i):(n.markedSpans=n.markedSpans?n.markedSpans.concat([i]):[i],l&&l.add(n.markedSpans)),i.marker.attachLine(n)}function j1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);if(x||g.from==i&&y.type=="bookmark"&&(!a||!g.marker.insertLeft)){var S=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);(l||(l=[])).push(new Na(y,g.from,S?null:g.to))}}return l}function V1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var g=n[u],y=g.marker,x=g.to==null||(y.inclusiveRight?g.to>=i:g.to>i);if(x||g.from==i&&y.type=="bookmark"&&(!a||g.marker.insertLeft)){var S=g.from==null||(y.inclusiveLeft?g.from<=i:g.from<i);(l||(l=[])).push(new Na(y,S?null:g.from-i,g.to==null?null:g.to-i))}}return l}function Gu(n,i){if(i.full)return null;var a=se(n,i.from.line)&&Pe(n,i.from.line).markedSpans,l=se(n,i.to.line)&&Pe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,g=i.to.ch,y=Ce(i.from,i.to)==0,x=j1(a,u,y),S=V1(l,g,y),k=i.text.length==1,z=he(i.text).length+(k?u:0);if(x)for(var H=0;H<x.length;++H){var X=x[H];if(X.to==null){var V=Gs(S,X.marker);V?k&&(X.to=V.to==null?null:V.to+z):X.to=u}}if(S)for(var ie=0;ie<S.length;++ie){var fe=S[ie];if(fe.to!=null&&(fe.to+=z),fe.from==null){var me=Gs(x,fe.marker);me||(fe.from=z,k&&(x||(x=[])).push(fe))}else fe.from+=z,k&&(x||(x=[])).push(fe)}x&&(x=yp(x)),S&&S!=x&&(S=yp(S));var we=[x];if(!k){var Te=i.text.length-2,xe;if(Te>0&&x)for(var $e=0;$e<x.length;++$e)x[$e].to==null&&(xe||(xe=[])).push(new Na(x[$e].marker,null,null));for(var Fe=0;Fe<Te;++Fe)we.push(xe);we.push(S)}return we}function yp(n){for(var i=0;i<n.length;++i){var a=n[i];a.from!=null&&a.from==a.to&&a.marker.clearWhenEmpty!==!1&&n.splice(i--,1)}return n.length?n:null}function G1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(V){if(V.markedSpans)for(var ie=0;ie<V.markedSpans.length;++ie){var fe=V.markedSpans[ie].marker;fe.readOnly&&(!l||Me(l,fe)==-1)&&(l||(l=[])).push(fe)}}),!l)return null;for(var u=[{from:i,to:a}],g=0;g<l.length;++g)for(var y=l[g],x=y.find(0),S=0;S<u.length;++S){var k=u[S];if(!(Ce(k.to,x.from)<0||Ce(k.from,x.to)>0)){var z=[S,1],H=Ce(k.from,x.from),X=Ce(k.to,x.to);(H<0||!y.inclusiveLeft&&!H)&&z.push({from:k.from,to:x.from}),(X>0||!y.inclusiveRight&&!X)&&z.push({from:x.to,to:k.to}),u.splice.apply(u,z),S+=z.length-3}}return u}function bp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function wp(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function $a(n){return n.inclusiveLeft?-1:0}function Oa(n){return n.inclusiveRight?1:0}function Ku(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),g=Ce(l.from,u.from)||$a(n)-$a(i);if(g)return-g;var y=Ce(l.to,u.to)||Oa(n)-Oa(i);return y||i.id-n.id}function xp(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=void 0,g=0;g<a.length;++g)u=a[g],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||Ku(l,u.marker)<0)&&(l=u.marker);return l}function Sp(n){return xp(n,!0)}function Pa(n){return xp(n,!1)}function K1(n,i){var a=Jr&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var g=a[u];g.marker.collapsed&&(g.from==null||g.from<i)&&(g.to==null||g.to>i)&&(!l||Ku(l,g.marker)<0)&&(l=g.marker)}return l}function _p(n,i,a,l,u){var g=Pe(n,i),y=Jr&&g.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var k=S.marker.find(0),z=Ce(k.from,a)||$a(S.marker)-$a(u),H=Ce(k.to,l)||Oa(S.marker)-Oa(u);if(!(z>=0&&H<=0||z<=0&&H>=0)&&(z<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ce(k.to,a)>=0:Ce(k.to,a)>0)||z>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ce(k.from,l)<=0:Ce(k.from,l)<0)))return!0}}}function pr(n){for(var i;i=Sp(n);)n=i.find(-1,!0).line;return n}function X1(n){for(var i;i=Pa(n);)n=i.find(1,!0).line;return n}function Y1(n){for(var i,a;i=Pa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function Xu(n,i){var a=Pe(n,i),l=pr(a);return a==l?i:C(l)}function kp(n,i){if(i>n.lastLine())return i;var a=Pe(n,i),l;if(!ki(n,a))return i;for(;l=Pa(a);)a=l.find(1,!0).line;return C(a)+1}function ki(n,i){var a=Jr&&i.markedSpans;if(a){for(var l=void 0,u=0;u<a.length;++u)if(l=a[u],!!l.marker.collapsed){if(l.from==null)return!0;if(!l.marker.widgetNode&&l.from==0&&l.marker.inclusiveLeft&&Yu(n,i,l))return!0}}}function Yu(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Yu(n,l.line,Gs(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,g=0;g<i.markedSpans.length;++g)if(u=i.markedSpans[g],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Yu(n,i,u))return!0}function Qr(n){n=pr(n);for(var i=0,a=n.parent,l=0;l<a.lines.length;++l){var u=a.lines[l];if(u==n)break;i+=u.height}for(var g=a.parent;g;a=g,g=a.parent)for(var y=0;y<g.children.length;++y){var x=g.children[y];if(x==a)break;i+=x.height}return i}function Ra(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=Sp(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Pa(l);){var g=a.find(0,!0);i-=l.text.length-g.from.ch,l=g.to.line,i+=l.text.length-g.to.ch}return i}function Zu(n){var i=n.display,a=n.doc;i.maxLine=Pe(a,a.first),i.maxLineLength=Ra(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=Ra(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var jo=function(n,i,a){this.text=n,wp(this,i),this.height=a?a(this):1};jo.prototype.lineNo=function(){return C(this)},cr(jo);function Z1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),bp(n),wp(n,a);var u=l?l(n):1;u!=n.height&&Kn(n,u)}function J1(n){n.parent=null,bp(n)}var Q1={},ex={};function Cp(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?ex:Q1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function Tp(n,i){var a=D("span",null,null,v?"padding-right: .1px":null),l={pre:D("pre",[a],"CodeMirror-line"),content:a,col:0,pos:0,cm:n,trailingSpace:!1,splitSpaces:n.getOption("lineWrapping")};i.measure={};for(var u=0;u<=(i.rest?i.rest.length:0);u++){var g=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=nx,xi(n.display.measure)&&(y=Qe(g,n.doc.direction))&&(l.addToken=ix(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&C(g);ox(g,l,fp(n,g,x)),g.styleClasses&&(g.styleClasses.bgClass&&(l.bgClass=Re(g.styleClasses.bgClass,l.bgClass||"")),g.styleClasses.textClass&&(l.textClass=Re(g.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Aa(n.display.measure))),u==0?(i.measure.map=l.map,i.measure.cache={}):((i.measure.maps||(i.measure.maps=[])).push(l.map),(i.measure.caches||(i.measure.caches=[])).push({}))}if(v){var S=l.content.lastChild;(/\bcm-tab\b/.test(S.className)||S.querySelector&&S.querySelector(".cm-tab"))&&(l.content.className="cm-tab-wrap-hack")}return Lt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Re(l.pre.className,l.textClass||"")),l}function tx(n){var i=_("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function nx(n,i,a,l,u,g,y){if(i){var x=n.splitSpaces?rx(i,n.trailingSpace):i,S=n.cm.state.specialChars,k=!1,z;if(!S.test(i))n.col+=i.length,z=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,z),h&&p<9&&(k=!0),n.pos+=i.length;else{z=document.createDocumentFragment();for(var H=0;;){S.lastIndex=H;var X=S.exec(i),V=X?X.index-H:i.length-H;if(V){var ie=document.createTextNode(x.slice(H,H+V));h&&p<9?z.appendChild(_("span",[ie])):z.appendChild(ie),n.map.push(n.pos,n.pos+V,ie),n.col+=V,n.pos+=V}if(!X)break;H+=V+1;var fe=void 0;if(X[0]==" "){var me=n.cm.options.tabSize,we=me-n.col%me;fe=z.appendChild(_("span",_e(we),"cm-tab")),fe.setAttribute("role","presentation"),fe.setAttribute("cm-text"," "),n.col+=we}else X[0]=="\r"||X[0]==`
|
|
@@ -41,11 +41,11 @@ b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.
|
|
|
41
41
|
`)>-1?a.value=n.prevInput="":n.prevInput=u,n.composing&&(n.composing.range.clear(),n.composing.range=i.markText(n.composing.start,i.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Dt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Dt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Dt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var g=co(a,n),y=l.scroller.scrollTop;if(!g||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(g)==-1&&Kt(a,ln)(a.doc,Ei(g),K);var S=u.style.cssText,k=i.wrapper.style.cssText,z=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
42
42
|
top: `+(n.clientY-z.top-5)+"px; left: "+(n.clientX-z.left-5)+`px;
|
|
43
43
|
z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
44
|
-
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var H;v&&(H=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,H),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function X(){if(u.selectionStart!=null){var fe=a.somethingSelected(),me=""+(fe?u.value:"");u.value="⇚",u.value=me,i.prevInput=fe?"":"",u.selectionStart=1,u.selectionEnd=me.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&X();var fe=0,me=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Kt(a,Cg)(a):fe++<10?l.detectingSelectAll=setTimeout(me,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(me,200)}}if(h&&p>=9&&X(),Y){wi(n);var ie=function(){on(window,"mouseup",ie),setTimeout(V,20)};Ie(window,"mouseup",ie)}else setTimeout(V,50)},Dt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Dt.prototype.setUneditable=function(){},Dt.prototype.needsContentAttribute=!1;function PS(n,i){if(i=i?ae(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=pe(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Ie(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(on(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function RS(n){n.off=on,n.on=Ie,n.wheelEventPixels=Wx,n.Doc=xn,n.splitLines=ir,n.countColumn=de,n.findColumn=ue,n.isWordChar=tt,n.Pass=q,n.signal=Lt,n.Line=jo,n.changeEnd=Ai,n.scrollbarModel=tg,n.Pos=ne,n.cmpPos=Ce,n.modes=Fo,n.mimeModes=dr,n.resolveMode=Ho,n.getMode=Bo,n.modeExtensions=_i,n.extendMode=Wo,n.copyState=Or,n.startState=qo,n.innerMode=Us,n.commands=pl,n.keyMap=ni,n.keyName=Bg,n.isModifierKey=Fg,n.lookupKey=is,n.normalizeKeyMap=uS,n.StringStream=$t,n.SharedTextMarker=fl,n.TextMarker=Li,n.LineWidget=ul,n.e_preventDefault=sn,n.e_stopPropagation=Do,n.e_stop=wi,n.addClass=be,n.contains=re,n.rmClass=R,n.keyNames=Ni}TS(Ct),LS(Ct);var zS="iter insert remove copy getEditor constructor".split(" ");for(var oc in xn.prototype)xn.prototype.hasOwnProperty(oc)&&Me(zS,oc)<0&&(Ct.prototype[oc]=function(n){return function(){return n.apply(this.doc,arguments)}}(xn.prototype[oc]));return cr(xn),Ct.inputStyles={textarea:Dt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),hr.apply(this,arguments)},Ct.defineMIME=so,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){xn.prototype[n]=i},Ct.fromTextArea=PS,RS(Ct),Ct.version="5.65.18",Ct})}(Lc)),Lc.exports}var Bce=Bs();const Wce=bw(Bce);var Fm={exports:{}},Hm;function Pw(){return Hm||(Hm=1,function(e,t){(function(r){r(Bs())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(Vt){return{type:Vt,style:"keyword"}}var F=C("keyword a"),se=C("keyword b"),ve=C("keyword c"),ne=C("keyword d"),Ce=C("operator"),ft={type:"atom",style:"atom"};return{if:C("if"),while:F,with:F,else:se,do:se,try:se,finally:se,return:ne,break:ne,continue:ne,new:C("new"),delete:ve,void:ve,throw:ve,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ce,typeof:Ce,instanceof:Ce,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:C("this"),class:C("class"),super:C("atom"),yield:ve,export:C("export"),import:C("import"),extends:ve,await:ve}}(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(C){for(var F=!1,se,ve=!1;(se=C.next())!=null;){if(!F){if(se=="/"&&!ve)return;se=="["?ve=!0:ve&&se=="]"&&(ve=!1)}F=!F&&se=="\\"}}var L,M;function T(C,F,se){return L=C,M=se,F}function P(C,F){var se=C.next();if(se=='"'||se=="'")return F.tokenize=A(se),F.tokenize(C,F);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(se=="."&&C.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return T(se);if(se=="="&&C.eat(">"))return T("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(se=="/")return C.eat("*")?(F.tokenize=B,B(C,F)):C.eat("/")?(C.skipToEnd(),T("comment","comment")):Kn(C,F,1)?(N(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(C.eat("="),T("operator","operator",C.current()));if(se=="`")return F.tokenize=G,G(C,F);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),T("meta","meta");if(se=="#"&&C.eatWhile(m))return T("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),T("comment","comment");if(w.test(se))return(se!=">"||!F.lexical||F.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?T("."):T("operator","operator",C.current());if(m.test(se)){C.eatWhile(m);var ve=C.current();if(F.lastType!="."){if(b.propertyIsEnumerable(ve)){var ne=b[ve];return T(ne.type,ne.style,ve)}if(ve=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ve)}return T("variable","variable",ve)}}function A(C){return function(F,se){var ve=!1,ne;if(d&&F.peek()=="@"&&F.match(E))return se.tokenize=P,T("jsonld-keyword","meta");for(;(ne=F.next())!=null&&!(ne==C&&!ve);)ve=!ve&&ne=="\\";return ve||(se.tokenize=P),T("string","string")}}function B(C,F){for(var se=!1,ve;ve=C.next();){if(ve=="/"&&se){F.tokenize=P;break}se=ve=="*"}return T("comment","comment")}function G(C,F){for(var se=!1,ve;(ve=C.next())!=null;){if(!se&&(ve=="`"||ve=="$"&&C.eat("{"))){F.tokenize=P;break}se=!se&&ve=="\\"}return T("quasi","string-2",C.current())}var U="([{}])";function Q(C,F){F.fatArrowAt&&(F.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ve=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ve&&(se=ve.index)}for(var ne=0,Ce=!1,ft=se-1;ft>=0;--ft){var Vt=C.string.charAt(ft),bn=U.indexOf(Vt);if(bn>=0&&bn<3){if(!ne){++ft;break}if(--ne==0){Vt=="("&&(Ce=!0);break}}else if(bn>=3&&bn<6)++ne;else if(m.test(Vt))Ce=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Uo=C.string.charAt(ft-1);if(Uo==Vt&&C.string.charAt(ft-2)!="\\"){ft--;break}}else if(Ce&&!ne){++ft;break}}Ce&&!ne&&(F.fatArrowAt=ft)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Y(C,F,se,ve,ne,Ce){this.indented=C,this.column=F,this.type=se,this.prev=ne,this.info=Ce,ve!=null&&(this.align=ve)}function ee(C,F){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==F)return!0;for(var ve=C.context;ve;ve=ve.prev)for(var se=ve.vars;se;se=se.next)if(se.name==F)return!0}function R(C,F,se,ve,ne){var Ce=C.cc;for($.state=C,$.stream=ne,$.marked=null,$.cc=Ce,$.style=F,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ft=Ce.length?Ce.pop():h?Me:de;if(ft(se,ve)){for(;Ce.length&&Ce[Ce.length-1].lex;)Ce.pop()();return $.marked?$.marked:se=="variable"&&ee(C,ve)?"variable-2":F}}}var $={state:null,marked:null,cc:null};function O(){for(var C=arguments.length-1;C>=0;C--)$.cc.push(arguments[C])}function _(){return O.apply(null,arguments),!0}function D(C,F){for(var se=F;se;se=se.next)if(se.name==C)return!0;return!1}function j(C){var F=$.state;if($.marked="def",!!p){if(F.context){if(F.lexical.info=="var"&&F.context&&F.context.block){var se=re(C,F.context);if(se!=null){F.context=se;return}}else if(!D(C,F.localVars)){F.localVars=new Re(C,F.localVars);return}}s.globalVars&&!D(C,F.globalVars)&&(F.globalVars=new Re(C,F.globalVars))}}function re(C,F){if(F)if(F.block){var se=re(C,F.prev);return se?se==F.prev?F:new be(se,F.vars,!0):null}else return D(C,F.vars)?F:new be(F.prev,new Re(C,F.vars),!1);else return null}function pe(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function be(C,F,se){this.prev=C,this.vars=F,this.block=se}function Re(C,F){this.name=C,this.next=F}var qe=new Re("this",new Re("arguments",null));function et(){$.state.context=new be($.state.context,$.state.localVars,!1),$.state.localVars=qe}function Ye(){$.state.context=new be($.state.context,$.state.localVars,!0),$.state.localVars=null}et.lex=Ye.lex=!0;function Xe(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}Xe.lex=!0;function Ae(C,F){var se=function(){var ve=$.state,ne=ve.indented;if(ve.lexical.type=="stat")ne=ve.lexical.indented;else for(var Ce=ve.lexical;Ce&&Ce.type==")"&&Ce.align;Ce=Ce.prev)ne=Ce.indented;ve.lexical=new Y(ne,$.stream.column(),C,null,ve.lexical,F)};return se.lex=!0,se}function Z(){var C=$.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}Z.lex=!0;function ae(C){function F(se){return se==C?_():C==";"||se=="}"||se==")"||se=="]"?O():_(F)}return F}function de(C,F){return C=="var"?_(Ae("vardef",F),Do,ae(";"),Z):C=="keyword a"?_(Ae("form"),q,de,Z):C=="keyword b"?_(Ae("form"),de,Z):C=="keyword d"?$.stream.match(/^\s*$/,!1)?_():_(Ae("stat"),le,ae(";"),Z):C=="debugger"?_(ae(";")):C=="{"?_(Ae("}"),Ye,It,Z,Xe):C==";"?_():C=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Z&&$.state.cc.pop()(),_(Ae("form"),q,de,Z,Io)):C=="function"?_(ir):C=="for"?_(Ae("form"),Ye,Aa,de,Xe,Z):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form",C=="class"?C:F),Fo,Z)):C=="variable"?v&&F=="declare"?($.marked="keyword",_(de)):v&&(F=="module"||F=="enum"||F=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",F=="enum"?_(Pe):F=="type"?_(Ma,ae("operator"),Qe,ae(";")):_(Ae("form"),yn,ae("{"),Ae("}"),It,Z,Z)):v&&F=="namespace"?($.marked="keyword",_(Ae("form"),Me,de,Z)):v&&F=="abstract"?($.marked="keyword",_(de)):_(Ae("stat"),Ue):C=="switch"?_(Ae("form"),q,ae("{"),Ae("}","switch"),Ye,It,Z,Z,Xe):C=="case"?_(Me,ae(":")):C=="default"?_(ae(":")):C=="catch"?_(Ae("form"),et,Ne,de,Z,Xe):C=="export"?_(Ae("stat"),Ho,Z):C=="import"?_(Ae("stat"),_i,Z):C=="async"?_(de):F=="@"?_(Me,de):O(Ae("stat"),Me,ae(";"),Z)}function Ne(C){if(C=="(")return _(fr,ae(")"))}function Me(C,F){return K(C,F,!1)}function I(C,F){return K(C,F,!0)}function q(C){return C!="("?O():_(Ae(")"),le,ae(")"),Z)}function K(C,F,se){if($.state.fatArrowAt==$.stream.start){var ve=se?ge:he;if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,ae("=>"),ve,Xe);if(C=="variable")return O(et,yn,ae("=>"),ve,Xe)}var ne=se?ue:ce;return J.hasOwnProperty(C)?_(ne):C=="function"?_(ir,ne):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form"),Uu,Z)):C=="keyword c"||C=="async"?_(se?I:Me):C=="("?_(Ae(")"),le,ae(")"),Z,ne):C=="operator"||C=="spread"?_(se?I:Me):C=="["?_(Ae("]"),$t,Z,ne):C=="{"?jt(ot,"}",null,ne):C=="quasi"?O(Se,ne):C=="new"?_(We(se)):_()}function le(C){return C.match(/[;\}\)\],]/)?O():O(Me)}function ce(C,F){return C==","?_(le):ue(C,F,!1)}function ue(C,F,se){var ve=se==!1?ce:ue,ne=se==!1?Me:I;if(C=="=>")return _(et,se?ge:he,Xe);if(C=="operator")return/\+\+|--/.test(F)||v&&F=="!"?_(ve):v&&F=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(Ae(">"),st(Qe,">"),Z,ve):F=="?"?_(Me,ae(":"),ne):_(ne);if(C=="quasi")return O(Se,ve);if(C!=";"){if(C=="(")return jt(I,")","call",ve);if(C==".")return _(tt,ve);if(C=="[")return _(Ae("]"),le,ae("]"),Z,ve);if(v&&F=="as")return $.marked="keyword",_(Qe,ve);if(C=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),_(ne)}}function Se(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(Se):_(le,_e)}function _e(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(Se)}function he(C){return Q($.stream,$.state),O(C=="{"?de:Me)}function ge(C){return Q($.stream,$.state),O(C=="{"?de:I)}function We(C){return function(F){return F=="."?_(C?De:Le):F=="variable"&&v?_(Dn,C?ue:ce):O(C?I:Me)}}function Le(C,F){if(F=="target")return $.marked="keyword",_(ce)}function De(C,F){if(F=="target")return $.marked="keyword",_(ue)}function Ue(C){return C==":"?_(Z,de):O(ce,ae(";"),Z)}function tt(C){if(C=="variable")return $.marked="property",_()}function ot(C,F){if(C=="async")return $.marked="property",_(ot);if(C=="variable"||$.style=="keyword"){if($.marked="property",F=="get"||F=="set")return _(lt);var se;return v&&$.state.fatArrowAt==$.stream.start&&(se=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+se[0].length),_(Mt)}else{if(C=="number"||C=="string")return $.marked=d?"property":$.style+" property",_(Mt);if(C=="jsonld-keyword")return _(Mt);if(v&&pe(F))return $.marked="keyword",_(ot);if(C=="[")return _(Me,Rn,ae("]"),Mt);if(C=="spread")return _(I,Mt);if(F=="*")return $.marked="keyword",_(ot);if(C==":")return O(Mt)}}function lt(C){return C!="variable"?O(Mt):($.marked="property",_(ir))}function Mt(C){if(C==":")return _(I);if(C=="(")return O(ir)}function st(C,F,se){function ve(ne,Ce){if(se?se.indexOf(ne)>-1:ne==","){var ft=$.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),_(function(Vt,bn){return Vt==F||bn==F?O():O(C)},ve)}return ne==F||Ce==F?_():se&&se.indexOf(";")>-1?O(C):_(ae(F))}return function(ne,Ce){return ne==F||Ce==F?_():O(C,ve)}}function jt(C,F,se){for(var ve=3;ve<arguments.length;ve++)$.cc.push(arguments[ve]);return _(Ae(F,se),st(C,F),Z)}function It(C){return C=="}"?_():O(de,It)}function Rn(C,F){if(v){if(C==":")return _(Qe);if(F=="?")return _(Rn)}}function $r(C,F){if(v&&(C==":"||F=="in"))return _(Qe)}function zt(C){if(v&&C==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?_(Me,zn,Qe):_(Qe)}function zn(C,F){if(F=="is")return $.marked="keyword",_()}function Qe(C,F){if(F=="keyof"||F=="typeof"||F=="infer"||F=="readonly")return $.marked="keyword",_(F=="typeof"?I:Qe);if(C=="variable"||F=="void")return $.marked="type",_(rr);if(F=="|"||F=="&")return _(Qe);if(C=="string"||C=="number"||C=="atom")return _(rr);if(C=="[")return _(Ae("]"),st(Qe,"]",","),Z,rr);if(C=="{")return _(Ae("}"),Ie,Z,rr);if(C=="(")return _(st(Nt,")"),Ea,rr);if(C=="<")return _(st(Qe,">"),Qe);if(C=="quasi")return O(on,rr)}function Ea(C){if(C=="=>")return _(Qe)}function Ie(C){return C.match(/[\}\)\]]/)?_():C==","||C==";"?_(Ie):O(Yr,Ie)}function Yr(C,F){if(C=="variable"||$.style=="keyword")return $.marked="property",_(Yr);if(F=="?"||C=="number"||C=="string")return _(Yr);if(C==":")return _(Qe);if(C=="[")return _(ae("variable"),$r,ae("]"),Yr);if(C=="(")return O(Si,Yr);if(!C.match(/[;\}\)\],]/))return _()}function on(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(on):_(Qe,Lt)}function Lt(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(on)}function Nt(C,F){return C=="variable"&&$.stream.match(/^\s*[?:]/,!1)||F=="?"?_(Nt):C==":"?_(Qe):C=="spread"?_(Nt):O(Qe)}function rr(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr);if(F=="|"||C=="."||F=="&")return _(Qe);if(C=="[")return _(Qe,ae("]"),rr);if(F=="extends"||F=="implements")return $.marked="keyword",_(Qe);if(F=="?")return _(Qe,ae(":"),Qe)}function Dn(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr)}function cr(){return O(Qe,sn)}function sn(C,F){if(F=="=")return _(Qe)}function Do(C,F){return F=="enum"?($.marked="keyword",_(Pe)):O(yn,Rn,ur,qu)}function yn(C,F){if(v&&pe(F))return $.marked="keyword",_(yn);if(C=="variable")return j(F),_();if(C=="spread")return _(yn);if(C=="[")return jt(Ws,"]");if(C=="{")return jt(wi,"}")}function wi(C,F){return C=="variable"&&!$.stream.match(/^\s*:/,!1)?(j(F),_(ur)):(C=="variable"&&($.marked="property"),C=="spread"?_(yn):C=="}"?O():C=="["?_(Me,ae("]"),ae(":"),wi):_(ae(":"),yn,ur))}function Ws(){return O(yn,ur)}function ur(C,F){if(F=="=")return _(I)}function qu(C){if(C==",")return _(Do)}function Io(C,F){if(C=="keyword b"&&F=="else")return _(Ae("form","else"),de,Z)}function Aa(C,F){if(F=="await")return _(Aa);if(C=="(")return _(Ae(")"),qs,Z)}function qs(C){return C=="var"?_(Do,xi):C=="variable"?_(xi):O(xi)}function xi(C,F){return C==")"?_():C==";"?_(xi):F=="in"||F=="of"?($.marked="keyword",_(Me,xi)):O(Me,xi)}function ir(C,F){if(F=="*")return $.marked="keyword",_(ir);if(C=="variable")return j(F),_(ir);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,de,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,ir)}function Si(C,F){if(F=="*")return $.marked="keyword",_(Si);if(C=="variable")return j(F),_(Si);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,Si)}function Ma(C,F){if(C=="keyword"||C=="variable")return $.marked="type",_(Ma);if(F=="<")return _(Ae(">"),st(cr,">"),Z)}function fr(C,F){return F=="@"&&_(Me,fr),C=="spread"?_(fr):v&&pe(F)?($.marked="keyword",_(fr)):v&&C=="this"?_(Rn,ur):O(yn,Rn,ur)}function Uu(C,F){return C=="variable"?Fo(C,F):dr(C,F)}function Fo(C,F){if(C=="variable")return j(F),_(dr)}function dr(C,F){if(F=="<")return _(Ae(">"),st(cr,">"),Z,dr);if(F=="extends"||F=="implements"||v&&C==",")return F=="implements"&&($.marked="keyword"),_(v?Qe:Me,dr);if(C=="{")return _(Ae("}"),hr,Z)}function hr(C,F){if(C=="async"||C=="variable"&&(F=="static"||F=="get"||F=="set"||v&&pe(F))&&$.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return $.marked="keyword",_(hr);if(C=="variable"||$.style=="keyword")return $.marked="property",_(so,hr);if(C=="number"||C=="string")return _(so,hr);if(C=="[")return _(Me,Rn,ae("]"),so,hr);if(F=="*")return $.marked="keyword",_(hr);if(v&&C=="(")return O(Si,hr);if(C==";"||C==",")return _(hr);if(C=="}")return _();if(F=="@")return _(Me,hr)}function so(C,F){if(F=="!"||F=="?")return _(so);if(C==":")return _(Qe,ur);if(F=="=")return _(I);var se=$.state.lexical.prev,ve=se&&se.info=="interface";return O(ve?Si:ir)}function Ho(C,F){return F=="*"?($.marked="keyword",_(qo,ae(";"))):F=="default"?($.marked="keyword",_(Me,ae(";"))):C=="{"?_(st(Bo,"}"),qo,ae(";")):O(de)}function Bo(C,F){if(F=="as")return $.marked="keyword",_(ae("variable"));if(C=="variable")return O(I,Bo)}function _i(C){return C=="string"?_():C=="("?O(Me):C=="."?O(ce):O(Wo,Or,qo)}function Wo(C,F){return C=="{"?jt(Wo,"}"):(C=="variable"&&j(F),F=="*"&&($.marked="keyword"),_(Us))}function Or(C){if(C==",")return _(Wo,Or)}function Us(C,F){if(F=="as")return $.marked="keyword",_(Wo)}function qo(C,F){if(F=="from")return $.marked="keyword",_(Me)}function $t(C){return C=="]"?_():O(st(I,"]"))}function Pe(){return O(Ae("form"),yn,ae("{"),Ae("}"),st(Zr,"}"),Z,Z)}function Zr(){return O(yn,ur)}function js(C,F){return C.lastType=="operator"||C.lastType==","||w.test(F.charAt(0))||/[,.]/.test(F.charAt(0))}function Kn(C,F,se){return F.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(F.lastType)||F.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var F={tokenize:P,lastType:"sof",cc:[],lexical:new Y((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new be(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(F.globalVars=s.globalVars),F},token:function(C,F){if(C.sol()&&(F.lexical.hasOwnProperty("align")||(F.lexical.align=!1),F.indented=C.indentation(),Q(C,F)),F.tokenize!=B&&C.eatSpace())return null;var se=F.tokenize(C,F);return L=="comment"?se:(F.lastType=L=="operator"&&(M=="++"||M=="--")?"incdec":L,R(F,se,L,M,C))},indent:function(C,F){if(C.tokenize==B||C.tokenize==G)return r.Pass;if(C.tokenize!=P)return 0;var se=F&&F.charAt(0),ve=C.lexical,ne;if(!/^\s*else\b/.test(F))for(var Ce=C.cc.length-1;Ce>=0;--Ce){var ft=C.cc[Ce];if(ft==Z)ve=ve.prev;else if(ft!=Io&&ft!=Xe)break}for(;(ve.type=="stat"||ve.type=="form")&&(se=="}"||(ne=C.cc[C.cc.length-1])&&(ne==ce||ne==ue)&&!/^[,\.=+\-*:?[\(]/.test(F));)ve=ve.prev;f&&ve.type==")"&&ve.prev.type=="stat"&&(ve=ve.prev);var Vt=ve.type,bn=se==Vt;return Vt=="vardef"?ve.indented+(C.lastType=="operator"||C.lastType==","?ve.info.length+1:0):Vt=="form"&&se=="{"?ve.indented:Vt=="form"?ve.indented+c:Vt=="stat"?ve.indented+(js(C,F)?f||c:0):ve.info=="switch"&&!bn&&s.doubleIndentSwitch!=!1?ve.indented+(/^(?:case|default)\b/.test(F)?c:2*c):ve.align?ve.column+(bn?0:1):ve.indented+(bn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Kn,skipExpression:function(C){R(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Fm.exports}Pw();var Bm={exports:{}},Wm;function Rw(){return Wm||(Wm=1,function(e,t){(function(r){r(Bs())})(function(r){var o={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},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(_,D){function j(be){return D.tokenize=be,be(_,D)}var re=_.next();if(re=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?j(L("atom","]]>")):null:_.match("--")?j(L("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),j(M(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),D.tokenize=L("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",D.tokenize=E,"tag bracket");if(re=="&"){var pe;return _.eat("#")?_.eat("x")?pe=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):pe=_.eatWhile(/[\d]/)&&_.eat(";"):pe=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),pe?"atom":"error"}else return _.eatWhile(/[^&<]/),null}w.isInText=!0;function E(_,D){var j=_.next();if(j==">"||j=="/"&&_.eat(">"))return D.tokenize=w,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){D.tokenize=w,D.state=G,D.tagName=D.tagStart=null;var re=D.tokenize(_,D);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(j)?(D.tokenize=N(j),D.stringStartCol=_.column(),D.tokenize(_,D)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(_){var D=function(j,re){for(;!j.eol();)if(j.next()==_){re.tokenize=E;break}return"string"};return D.isInAttribute=!0,D}function L(_,D){return function(j,re){for(;!j.eol();){if(j.match(D)){re.tokenize=w;break}j.next()}return _}}function M(_){return function(D,j){for(var re;(re=D.next())!=null;){if(re=="<")return j.tokenize=M(_+1),j.tokenize(D,j);if(re==">")if(_==1){j.tokenize=w;break}else return j.tokenize=M(_-1),j.tokenize(D,j)}return"meta"}}function T(_){return _&&_.toLowerCase()}function P(_,D,j){this.prev=_.context,this.tagName=D||"",this.indent=_.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(D)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function A(_){_.context&&(_.context=_.context.prev)}function B(_,D){for(var j;;){if(!_.context||(j=_.context.tagName,!h.contextGrabbers.hasOwnProperty(T(j))||!h.contextGrabbers[T(j)].hasOwnProperty(T(D))))return;A(_)}}function G(_,D,j){return _=="openTag"?(j.tagStart=D.column(),U):_=="closeTag"?Q:G}function U(_,D,j){return _=="word"?(j.tagName=D.current(),b="tag",ee):h.allowMissingTagName&&_=="endTag"?(b="tag bracket",ee(_,D,j)):(b="error",U)}function Q(_,D,j){if(_=="word"){var re=D.current();return j.context&&j.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(T(j.context.tagName))&&A(j),j.context&&j.context.tagName==re||h.matchClosing===!1?(b="tag",J):(b="tag error",Y)}else return h.allowMissingTagName&&_=="endTag"?(b="tag bracket",J(_,D,j)):(b="error",Y)}function J(_,D,j){return _!="endTag"?(b="error",J):(A(j),G)}function Y(_,D,j){return b="error",J(_,D,j)}function ee(_,D,j){if(_=="word")return b="attribute",R;if(_=="endTag"||_=="selfcloseTag"){var re=j.tagName,pe=j.tagStart;return j.tagName=j.tagStart=null,_=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(T(re))?B(j,re):(B(j,re),j.context=new P(j,re,pe==j.indented)),G}return b="error",ee}function R(_,D,j){return _=="equals"?$:(h.allowMissing||(b="error"),ee(_,D,j))}function $(_,D,j){return _=="string"?O:_=="word"&&h.allowUnquoted?(b="string",ee):(b="error",ee(_,D,j))}function O(_,D,j){return _=="string"?O:ee(_,D,j)}return{startState:function(_){var D={tokenize:w,state:G,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(D.baseIndent=_),D},token:function(_,D){if(!D.tagName&&_.sol()&&(D.indented=_.indentation()),_.eatSpace())return null;m=null;var j=D.tokenize(_,D);return(j||m)&&j!="comment"&&(b=null,D.state=D.state(m||j,_,D),b&&(j=b=="error"?j+" error":b)),j},indent:function(_,D,j){var re=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+d;if(re&&re.noIndent)return r.Pass;if(_.tokenize!=E&&_.tokenize!=w)return j?j.match(/^(\s*)/)[0].length:0;if(_.tagName)return h.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var pe=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(pe&&pe[1])for(;re;)if(re.tagName==pe[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(T(re.tagName)))re=re.prev;else break;else if(pe)for(;re;){var be=h.contextGrabbers[T(re.tagName)];if(be&&be.hasOwnProperty(T(pe[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(_){_.state==$&&(_.state=ee)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var D=[],j=_.context;j;j=j.prev)D.push(j.tagName);return D.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Bm.exports}Rw();var qm={exports:{}},Um;function qce(){return Um||(Um=1,function(e,t){(function(r){r(Bs(),Rw(),Pw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var N=d.indent(w,"","");return w.tagName=E,N}function v(w,E){return E.context.mode==d?m(w,E,E.context):b(w,E,E.context)}function m(w,E,N){if(N.depth==2)return w.match(/^.*?\*\//)?N.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(N.state);var L=p(N.state),M=N.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?L-=c.indentUnit:N.prev.state.lexical&&(L=N.prev.state.lexical.indented)}else N.depth==1&&(L+=c.indentUnit);return E.context=new o(r.startState(h,L),h,0,E.context),null}if(N.depth==1){if(w.peek()=="<")return d.skipAttribute(N.state),E.context=new o(r.startState(d,p(N.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return N.depth=2,v(w,E)}var T=d.token(w,N.state),P=w.current(),A;return/\btag\b/.test(T)?/>$/.test(P)?N.state.context?N.depth=0:E.context=E.context.prev:/^</.test(P)&&(N.depth=1):!T&&(A=P.indexOf("{"))>-1&&w.backUp(P.length-A),T}function b(w,E,N){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,N.state))return E.context=new o(r.startState(d,h.indent(N.state,"","")),d,0,E.context),h.skipExpression(N.state),null;var L=h.token(w,N.state);if(!L&&N.depth!=null){var M=w.current();M=="{"?N.depth++:M=="}"&&--N.depth==0&&(E.context=E.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,E,N){return w.context.mode.indent(w.context.state,E,N)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),qm.exports}qce();var jm={exports:{}},Vm;function Uce(){return Vm||(Vm=1,function(e,t){(function(r){r(Bs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),jm.exports}Uce();var Gm={exports:{}},Km;function jce(){return Km||(Km=1,function(e,t){(function(r){r(Bs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],E=p.pos;function N(){r.off(document,"mousemove",L),r.off(document,"mouseup",N)}function L(M){if(M.which!=1)return N();p.moveTo(E+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",N)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})}()),Gm.exports}jce();const Hn=On();function Vce(e,t,r={}){const o=Wce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Et(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Su(()=>{Hn.value=void 0}),xh(o)}async function Gce(e){var t;dw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const zw=ut({__name:"CodeMirrorContainer",props:Vl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Vl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=ku(e,"modelValue"),s=X_(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=je();return Fs(async()=>{const d=Vce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Hn.value=d,setTimeout(()=>Hn.value.refresh(),100)}),(d,h)=>(oe(),ye("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[te("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Kce=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=je(""),c=On(void 0),f=je(!1),d=je(!0),h=je(!1),p=je();Et(()=>r.file,async()=>{var U;if(!h.value){d.value=!0;try{if(!r.file||!((U=r.file)!=null&&U.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await mt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Q){console.error("cannot fetch file",Q)}await Pt(),d.value=!1}},{immediate:!0}),Et(()=>[d.value,h.value,r.file,uw.value],([U,Q,J,Y])=>{!U&&!Q&&(Y!=null?Pt(()=>{var $;const ee=p.value,R=ee??{line:Y??0,ch:0};ee?p.value=void 0:(($=Hn.value)==null||$.scrollIntoView(R,100),Pt(()=>{var O,_;(O=Hn.value)==null||O.focus(),(_=Hn.value)==null||_.setCursor(R)}))}):Pt(()=>{var ee;(ee=Hn.value)==null||ee.focus()}))},{flush:"post"});const v=ke(()=>{var U,Q;return((Q=(U=r.file)==null?void 0:U.filepath)==null?void 0:Q.split(/\./g).pop())||"js"}),m=je(),b=ke(()=>{var U;return((U=r.file)==null?void 0:U.tasks.filter(Q=>{var J;return((J=Q.result)==null?void 0:J.state)==="fail"}))||[]}),w=[],E=[],N=[],L=je(!1);function M(){N.forEach(([U,Q,J])=>{U.removeEventListener("click",Q),J()}),N.length=0}hE(m,()=>{var U;(U=Hn.value)==null||U.refresh()});function T(){f.value=c.value!==Hn.value.getValue()}Et(f,U=>{o("draft",U)},{immediate:!0});function P(U){const Q=((U==null?void 0:U.stacks)||[]).filter(O=>{var _;return O.file&&O.file===((_=r.file)==null?void 0:_.filepath)}),J=Q==null?void 0:Q[0];if(!J)return;const Y=document.createElement("div");Y.className="op80 flex gap-x-2 items-center";const ee=document.createElement("pre");ee.className="c-red-600 dark:c-red-400",ee.textContent=`${" ".repeat(J.column)}^ ${(U==null?void 0:U.nameStr)||U.name}: ${(U==null?void 0:U.message)||""}`,Y.appendChild(ee);const R=document.createElement("span");R.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",R.tabIndex=0,R.ariaLabel="Open in Editor",Mb(R,{content:"Open in Editor",placement:"bottom"},!1);const $=async()=>{await Sw(J.file,J.line,J.column)};R.addEventListener("click",$),Y.appendChild(R),N.push([R,$,()=>Ph(R)]),E.push(Hn.value.addLineClass(J.line-1,"wrap","bg-red-500/10")),w.push(Hn.value.addLineWidget(J.line-1,Y))}const{pause:A,resume:B}=Et([Hn,b,gs],([U,Q,J])=>{if(!U){w.length=0,E.length=0,M();return}J&&(U.off("changes",T),M(),w.forEach(Y=>Y.clear()),E.forEach(Y=>U==null?void 0:U.removeLineClass(Y,"wrap")),w.length=0,E.length=0,setTimeout(()=>{Q.forEach(Y=>{var ee,R;(R=(ee=Y.result)==null?void 0:ee.errors)==null||R.forEach(P)}),L.value||U.clearHistory(),U.on("changes",T)},100))},{flush:"post"});Hh(()=>[gs.value,h.value,p.value],([U,Q],J)=>{var Y;U&&!Q&&J&&J[2]&&((Y=Hn.value)==null||Y.setCursor(J[2]))},{debounce:100,flush:"post"});async function G(U){if(h.value)return;A(),h.value=!0,await Pt();const Q=Hn.value;Q&&(Q.setOption("readOnly",!0),await Pt(),Q.refresh()),p.value=Q==null?void 0:Q.getCursor(),Q==null||Q.off("changes",T),M(),w.forEach(J=>J.clear()),E.forEach(J=>Q==null?void 0:Q.removeLineClass(J,"wrap")),w.length=0,E.length=0;try{L.value=!0,await mt.rpc.saveTestFile(r.file.filepath,U),c.value=U,f.value=!1}catch(J){console.error("error saving file",J)}L.value||Q==null||Q.clearHistory();try{await pm(gs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await pm(gs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(J=>{var Y,ee;(ee=(Y=J.result)==null?void 0:Y.errors)==null||ee.forEach(P)}),Q==null||Q.on("changes",T),h.value=!1,await Pt(),Q&&(Q.setOption("readOnly",!1),await Pt(),Q.refresh()),B()}return _h(M),(U,Q)=>{const J=zw;return oe(),nt(J,di({ref_key:"editor",ref:m,modelValue:W(s),"onUpdate:modelValue":Q[0]||(Q[0]=Y=>kt(s)?s.value=Y:null),"h-full":""},{lineNumbers:!0,readOnly:W(Cr),saving:W(h)},{mode:W(v),"data-testid":"code-mirror",onSave:G}),null,16,["modelValue","mode"])}}}),Xce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Yce={"p-4":"",relative:""},Zce={op50:"","font-mono":"","text-sm":""},Jce={key:0,"p-5":""},Qce={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},eue={key:0},tue={p:"x3 y-1","bg-overlay":"",border:"base b t"},nue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=QT(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Po)),c=ke(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=ke(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return Yb("Escape",()=>{o("close")}),(p,v)=>{const m=bi,b=zw;return oe(),ye("div",Xce,[te("div",Yce,[v[1]||(v[1]=te("p",null,"Module Info",-1)),te("p",Zce,Be(p.id),1),Oe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),W(s)?(oe(),ye(ct,{key:1},[te("div",Qce,[v[2]||(v[2]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,di({"h-full":"","model-value":W(f),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"]),Oe(b,di({"h-full":"","model-value":W(d),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])]),W(h).mappings!==""?(oe(),ye("div",eue,[te("div",tue," Source map (v"+Be(W(h).version)+") ",1),Oe(b,di({"model-value":W(h).mappings,"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])])):Ke("",!0)],64)):(oe(),ye("div",Jce," No transform result found for this module. "))])}}});function rue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const Xm={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Iu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Xm.hasOwnProperty(t)?{space:Xm[t],local:e}:e}function iue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function oue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dw(e){var t=Iu(e);return(t.local?oue:iue)(t)}function sue(){}function Gh(e){return e==null?sue:function(){return this.querySelector(e)}}function lue(e){typeof e!="function"&&(e=Gh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new nr(o,this._parents)}function aue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function cue(){return[]}function Iw(e){return e==null?cue:function(){return this.querySelectorAll(e)}}function uue(e){return function(){return aue(e.apply(this,arguments))}}function fue(e){typeof e=="function"?e=uue(e):e=Iw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new nr(o,s)}function Fw(e){return function(){return this.matches(e)}}function Hw(e){return function(t){return t.matches(e)}}var due=Array.prototype.find;function hue(e){return function(){return due.call(this.children,e)}}function pue(){return this.firstElementChild}function gue(e){return this.select(e==null?pue:hue(typeof e=="function"?e:Hw(e)))}var vue=Array.prototype.filter;function mue(){return Array.from(this.children)}function yue(e){return function(){return vue.call(this.children,e)}}function bue(e){return this.selectAll(e==null?mue:yue(typeof e=="function"?e:Hw(e)))}function wue(e){typeof e!="function"&&(e=Fw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new nr(o,this._parents)}function Bw(e){return new Array(e.length)}function xue(){return new nr(this._enter||this._groups.map(Bw),this._parents)}function ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ou.prototype={constructor:ou,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Sue(e){return function(){return e}}function _ue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new ou(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function kue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new ou(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Cue(e){return e.__data__}function Tue(e,t){if(!arguments.length)return Array.from(this,Cue);var r=t?kue:_ue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Sue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=Eue(e.call(v,v&&v.__data__,p,o)),E=w.length,N=d[p]=new Array(E),L=f[p]=new Array(E),M=h[p]=new Array(b);r(v,m,N,L,M,w,t);for(var T=0,P=0,A,B;T<E;++T)if(A=N[T]){for(T>=P&&(P=T+1);!(B=L[P])&&++P<E;);A._next=B||null}}return f=new nr(f,o),f._enter=d,f._exit=h,f}function Eue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Aue(){return new nr(this._exit||this._groups.map(Bw),this._parents)}function Mue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Lue(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,E=0;E<m;++E)(w=p[E]||v[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new nr(d,this._parents)}function Nue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function $ue(e){e||(e=Oue);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new nr(s,this._parents).order()}function Oue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Pue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Rue(){return Array.from(this)}function zue(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Due(){let e=0;for(const t of this)++e;return e}function Iue(){return!this.node()}function Fue(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Hue(e){return function(){this.removeAttribute(e)}}function Bue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wue(e,t){return function(){this.setAttribute(e,t)}}function que(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Uue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function jue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Vue(e,t){var r=Iu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?Bue:Hue:typeof t=="function"?r.local?jue:Uue:r.local?que:Wue)(r,t))}function Ww(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Gue(e){return function(){this.style.removeProperty(e)}}function Kue(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Xue(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Yue(e,t,r){return arguments.length>1?this.each((t==null?Gue:typeof t=="function"?Xue:Kue)(e,t,r??"")):Rs(this.node(),e)}function Rs(e,t){return e.style.getPropertyValue(t)||Ww(e).getComputedStyle(e,null).getPropertyValue(t)}function Zue(e){return function(){delete this[e]}}function Jue(e,t){return function(){this[e]=t}}function Que(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function efe(e,t){return arguments.length>1?this.each((t==null?Zue:typeof t=="function"?Que:Jue)(e,t)):this.node()[e]}function qw(e){return e.trim().split(/^|\s+/)}function Kh(e){return e.classList||new Uw(e)}function Uw(e){this._node=e,this._names=qw(e.getAttribute("class")||"")}Uw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function jw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Vw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function tfe(e){return function(){jw(this,e)}}function nfe(e){return function(){Vw(this,e)}}function rfe(e,t){return function(){(t.apply(this,arguments)?jw:Vw)(this,e)}}function ife(e,t){var r=qw(e+"");if(arguments.length<2){for(var o=Kh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?rfe:t?tfe:nfe)(r,t))}function ofe(){this.textContent=""}function sfe(e){return function(){this.textContent=e}}function lfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function afe(e){return arguments.length?this.each(e==null?ofe:(typeof e=="function"?lfe:sfe)(e)):this.node().textContent}function cfe(){this.innerHTML=""}function ufe(e){return function(){this.innerHTML=e}}function ffe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function dfe(e){return arguments.length?this.each(e==null?cfe:(typeof e=="function"?ffe:ufe)(e)):this.node().innerHTML}function hfe(){this.nextSibling&&this.parentNode.appendChild(this)}function pfe(){return this.each(hfe)}function gfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vfe(){return this.each(gfe)}function mfe(e){var t=typeof e=="function"?e:Dw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yfe(){return null}function bfe(e,t){var r=typeof e=="function"?e:Dw(e),o=t==null?yfe:typeof t=="function"?t:Gh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function wfe(){var e=this.parentNode;e&&e.removeChild(this)}function xfe(){return this.each(wfe)}function Sfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _fe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kfe(e){return this.select(e?_fe:Sfe)}function Cfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tfe(e){return function(t){e.call(this,t,this.__data__)}}function Efe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function Afe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Mfe(e,t,r){return function(){var o=this.__on,s,c=Tfe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Lfe(e,t,r){var o=Efe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Mfe:Afe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Gw(e,t,r){var o=Ww(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Nfe(e,t){return function(){return Gw(this,e,t)}}function $fe(e,t){return function(){return Gw(this,e,t.apply(this,arguments))}}function Ofe(e,t){return this.each((typeof t=="function"?$fe:Nfe)(e,t))}function*Pfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var Kw=[null];function nr(e,t){this._groups=e,this._parents=t}function ka(){return new nr([[document.documentElement]],Kw)}function Rfe(){return this}nr.prototype=ka.prototype={constructor:nr,select:lue,selectAll:fue,selectChild:gue,selectChildren:bue,filter:wue,data:Tue,enter:xue,exit:Aue,join:Mue,merge:Lue,selection:Rfe,order:Nue,sort:$ue,call:Pue,nodes:Rue,node:zue,size:Due,empty:Iue,each:Fue,attr:Vue,style:Yue,property:efe,classed:ife,text:afe,html:dfe,raise:pfe,lower:vfe,append:mfe,insert:bfe,remove:xfe,clone:kfe,datum:Cfe,on:Lfe,dispatch:Ofe,[Symbol.iterator]:Pfe};function Un(e){return typeof e=="string"?new nr([[document.querySelector(e)]],[document.documentElement]):new nr([[e]],Kw)}function zfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ai(e,t){if(e=zfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class An{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new An(t,r)}add(t){return new An(this.x+t.x,this.y+t.y)}subtract(t){return new An(this.x-t.x,this.y-t.y)}multiply(t){return new An(this.x*t,this.y*t)}divide(t){return new An(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new An(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new An(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new An(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Dfe={value:()=>{}};function Ca(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Nc(r)}function Nc(e){this._=e}function Ife(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Nc.prototype=Ca.prototype={constructor:Nc,on:function(e,t){var r=this._,o=Ife(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Ffe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=Ym(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Ym(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Nc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Ffe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Ym(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Dfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Hfe={passive:!1},oa={capture:!0,passive:!1};function ld(e){e.stopImmediatePropagation()}function As(e){e.preventDefault(),e.stopImmediatePropagation()}function Xw(e){var t=e.document.documentElement,r=Un(e).on("dragstart.drag",As,oa);"onselectstart"in t?r.on("selectstart.drag",As,oa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yw(e,t){var r=e.document.documentElement,o=Un(e).on("dragstart.drag",null);t&&(o.on("click.drag",As,oa),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const mc=e=>()=>e;function Gd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}Gd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Bfe(e){return!e.ctrlKey&&!e.button}function Wfe(){return this.parentNode}function qfe(e,t){return t??{x:e.x,y:e.y}}function Ufe(){return navigator.maxTouchPoints||"ontouchstart"in this}function jfe(){var e=Bfe,t=Wfe,r=qfe,o=Ufe,s={},c=Ca("start","drag","end"),f=0,d,h,p,v,m=0;function b(A){A.on("mousedown.drag",w).filter(o).on("touchstart.drag",L).on("touchmove.drag",M,Hfe).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(A,B){if(!(v||!e.call(this,A,B))){var G=P(this,t.call(this,A,B),A,B,"mouse");G&&(Un(A.view).on("mousemove.drag",E,oa).on("mouseup.drag",N,oa),Xw(A.view),ld(A),p=!1,d=A.clientX,h=A.clientY,G("start",A))}}function E(A){if(As(A),!p){var B=A.clientX-d,G=A.clientY-h;p=B*B+G*G>m}s.mouse("drag",A)}function N(A){Un(A.view).on("mousemove.drag mouseup.drag",null),Yw(A.view,p),As(A),s.mouse("end",A)}function L(A,B){if(e.call(this,A,B)){var G=A.changedTouches,U=t.call(this,A,B),Q=G.length,J,Y;for(J=0;J<Q;++J)(Y=P(this,U,A,B,G[J].identifier,G[J]))&&(ld(A),Y("start",A,G[J]))}}function M(A){var B=A.changedTouches,G=B.length,U,Q;for(U=0;U<G;++U)(Q=s[B[U].identifier])&&(As(A),Q("drag",A,B[U]))}function T(A){var B=A.changedTouches,G=B.length,U,Q;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<G;++U)(Q=s[B[U].identifier])&&(ld(A),Q("end",A,B[U]))}function P(A,B,G,U,Q,J){var Y=c.copy(),ee=ai(J||G,B),R,$,O;if((O=r.call(A,new Gd("beforestart",{sourceEvent:G,target:b,identifier:Q,active:f,x:ee[0],y:ee[1],dx:0,dy:0,dispatch:Y}),U))!=null)return R=O.x-ee[0]||0,$=O.y-ee[1]||0,function _(D,j,re){var pe=ee,be;switch(D){case"start":s[Q]=_,be=f++;break;case"end":delete s[Q],--f;case"drag":ee=ai(re||j,B),be=f;break}Y.call(D,A,new Gd(D,{sourceEvent:j,subject:O,target:b,identifier:Q,active:be,x:ee[0]+R,y:ee[1]+$,dx:ee[0]-pe[0],dy:ee[1]-pe[1],dispatch:Y}),U)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:mc(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:mc(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:mc(A),b):r},b.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:mc(!!A),b):o},b.on=function(){var A=c.on.apply(c,arguments);return A===c?b:A},b.clickDistance=function(A){return arguments.length?(m=(A=+A)*A,b):Math.sqrt(m)},b}function Xh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Zw(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ta(){}var sa=.7,su=1/sa,Ms="\\s*([+-]?\\d+)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vfe=/^#([0-9a-f]{3,8})$/,Gfe=new RegExp(`^rgb\\(${Ms},${Ms},${Ms}\\)$`),Kfe=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),Xfe=new RegExp(`^rgba\\(${Ms},${Ms},${Ms},${la}\\)$`),Yfe=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${la}\\)$`),Zfe=new RegExp(`^hsl\\(${la},${Vr},${Vr}\\)$`),Jfe=new RegExp(`^hsla\\(${la},${Vr},${Vr},${la}\\)$`),Zm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Xh(Ta,aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jm,formatHex:Jm,formatHex8:Qfe,formatHsl:ede,formatRgb:Qm,toString:Qm});function Jm(){return this.rgb().formatHex()}function Qfe(){return this.rgb().formatHex8()}function ede(){return Jw(this).formatHsl()}function Qm(){return this.rgb().formatRgb()}function aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Vfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?e0(t):r===3?new Vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Gfe.exec(e))?new Vn(t[1],t[2],t[3],1):(t=Kfe.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xfe.exec(e))?yc(t[1],t[2],t[3],t[4]):(t=Yfe.exec(e))?yc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zfe.exec(e))?r0(t[1],t[2]/100,t[3]/100,1):(t=Jfe.exec(e))?r0(t[1],t[2]/100,t[3]/100,t[4]):Zm.hasOwnProperty(e)?e0(Zm[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function e0(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function yc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Vn(e,t,r,o)}function tde(e){return e instanceof Ta||(e=aa(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function Kd(e,t,r,o){return arguments.length===1?tde(e):new Vn(e,t,r,o??1)}function Vn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Xh(Vn,Kd,Zw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(No(this.r),No(this.g),No(this.b),lu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:t0,formatHex:t0,formatHex8:nde,formatRgb:n0,toString:n0}));function t0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function nde(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function n0(){const e=lu(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function lu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function r0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Sr(e,t,r,o)}function Jw(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof Ta||(e=aa(e)),!e)return new Sr;if(e instanceof Sr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Sr(f,d,h,e.opacity)}function rde(e,t,r,o){return arguments.length===1?Jw(e):new Sr(e,t,r,o??1)}function Sr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Xh(Sr,rde,Zw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new Sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Vn(ad(e>=240?e-240:e+120,s,o),ad(e,s,o),ad(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Sr(i0(this.h),bc(this.s),bc(this.l),lu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=lu(this.opacity);return`${e===1?"hsl(":"hsla("}${i0(this.h)}, ${bc(this.s)*100}%, ${bc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function i0(e){return e=(e||0)%360,e<0?e+360:e}function bc(e){return Math.max(0,Math.min(1,e||0))}function ad(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Qw=e=>()=>e;function ide(e,t){return function(r){return e+r*t}}function ode(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function sde(e){return(e=+e)==1?e1:function(t,r){return r-t?ode(t,r,e):Qw(isNaN(t)?r:t)}}function e1(e,t){var r=t-e;return r?ide(e,r):Qw(isNaN(e)?t:e)}const o0=function e(t){var r=sde(t);function o(s,c){var f=r((s=Kd(s)).r,(c=Kd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=e1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Xd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cd=new RegExp(Xd.source,"g");function lde(e){return function(){return e}}function ade(e){return function(t){return e(t)+""}}function cde(e,t){var r=Xd.lastIndex=cd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Xd.exec(e))&&(s=cd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:qi(o,s)})),r=cd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?ade(h[0].x):lde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var s0=180/Math.PI,Yd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*s0,skewX:Math.atan(h)*s0,scaleX:f,scaleY:d}}var wc;function ude(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Yd:t1(t.a,t.b,t.c,t.d,t.e,t.f)}function fde(e){return e==null||(wc||(wc=document.createElementNS("http://www.w3.org/2000/svg","g")),wc.setAttribute("transform",e),!(e=wc.transform.baseVal.consolidate()))?Yd:(e=e.matrix,t1(e.a,e.b,e.c,e.d,e.e,e.f))}function n1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push("translate(",null,t,null,r);E.push({i:N-4,x:qi(p,m)},{i:N-2,x:qi(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:qi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:qi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push(s(w)+"scale(",null,",",null,")");E.push({i:N-4,x:qi(p,m)},{i:N-2,x:qi(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var E=-1,N=b.length,L;++E<N;)m[(L=b[E]).i]=L.x(w);return m.join("")}}}var dde=n1(ude,"px, ","px)","deg)"),hde=n1(fde,", ",")",")"),pde=1e-12;function l0(e){return((e=Math.exp(e))+1/e)/2}function gde(e){return((e=Math.exp(e))-1/e)/2}function vde(e){return((e=Math.exp(2*e))-1)/(e+1)}const mde=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,E=m-h,N=w*w+E*E,L,M;if(N<pde)M=Math.log(b/p)/t,L=function(U){return[d+U*w,h+U*E,p*Math.exp(t*U*M)]};else{var T=Math.sqrt(N),P=(b*b-p*p+o*N)/(2*p*r*T),A=(b*b-p*p-o*N)/(2*b*r*T),B=Math.log(Math.sqrt(P*P+1)-P),G=Math.log(Math.sqrt(A*A+1)-A);M=(G-B)/t,L=function(U){var Q=U*M,J=l0(B),Y=p/(r*T)*(J*vde(t*Q+B)-gde(B));return[d+Y*w,h+Y*E,p*J/l0(t*Q+B)]}}return L.duration=M*1e3*t/Math.SQRT2,L}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var zs=0,El=0,_l=0,r1=1e3,au,Al,cu=0,Ro=0,Fu=0,ca=typeof performance=="object"&&performance.now?performance:Date,i1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yh(){return Ro||(i1(yde),Ro=ca.now()+Fu)}function yde(){Ro=0}function uu(){this._call=this._time=this._next=null}uu.prototype=Zh.prototype={constructor:uu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Yh():+r)+(t==null?0:+t),!this._next&&Al!==this&&(Al?Al._next=this:au=this,Al=this),this._call=e,this._time=r,Zd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zd())}};function Zh(e,t,r){var o=new uu;return o.restart(e,t,r),o}function bde(){Yh(),++zs;for(var e=au,t;e;)(t=Ro-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function a0(){Ro=(cu=ca.now())+Fu,zs=El=0;try{bde()}finally{zs=0,xde(),Ro=0}}function wde(){var e=ca.now(),t=e-cu;t>r1&&(Fu-=t,cu=e)}function xde(){for(var e,t=au,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:au=r);Al=e,Zd(o)}function Zd(e){if(!zs){El&&(El=clearTimeout(El));var t=e-Ro;t>24?(e<1/0&&(El=setTimeout(a0,e-ca.now()-Fu)),_l&&(_l=clearInterval(_l))):(_l||(cu=ca.now(),_l=setInterval(wde,r1)),zs=1,i1(a0))}}function c0(e,t,r){var o=new uu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Sde=Ca("start","end","cancel","interrupt"),_de=[],o1=0,u0=1,Jd=2,$c=3,f0=4,Qd=5,Oc=6;function Hu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;kde(e,r,{name:t,index:o,group:s,on:Sde,tween:_de,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:o1})}function Jh(e,t){var r=Nr(e,t);if(r.state>o1)throw new Error("too late; already scheduled");return r}function Xr(e,t){var r=Nr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Nr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function kde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Zh(c,0,r.time);function c(p){r.state=u0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==u0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===$c)return c0(f);w.state===f0?(w.state=Oc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Oc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(c0(function(){r.state===$c&&(r.state=f0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Jd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Jd){for(r.state=$c,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Qd,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===Qd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Oc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Pc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Jd&&o.state<Qd,o.state=Oc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Cde(e){return this.each(function(){Pc(this,e)})}function Tde(e,t){var r,o;return function(){var s=Xr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Ede(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Xr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function Ade(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Nr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Tde:Ede)(r,e,t))}function Qh(e,t,r){var o=e._id;return e.each(function(){var s=Xr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Nr(s,o).value[t]}}function s1(e,t){var r;return(typeof t=="number"?qi:t instanceof aa?o0:(r=aa(t))?(t=r,o0):cde)(e,t)}function Mde(e){return function(){this.removeAttribute(e)}}function Lde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function $de(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Ode(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Pde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Rde(e,t){var r=Iu(e),o=r==="transform"?hde:s1;return this.attrTween(e,typeof t=="function"?(r.local?Pde:Ode)(r,o,Qh(this,"attr."+e,t)):t==null?(r.local?Lde:Mde)(r):(r.local?$de:Nde)(r,o,t))}function zde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Dde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ide(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Dde(e,c)),r}return s._value=t,s}function Fde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&zde(e,c)),r}return s._value=t,s}function Hde(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Iu(e);return this.tween(r,(o.local?Ide:Fde)(o,t))}function Bde(e,t){return function(){Jh(this,e).delay=+t.apply(this,arguments)}}function Wde(e,t){return t=+t,function(){Jh(this,e).delay=t}}function qde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Bde:Wde)(t,e)):Nr(this.node(),t).delay}function Ude(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function jde(e,t){return t=+t,function(){Xr(this,e).duration=t}}function Vde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ude:jde)(t,e)):Nr(this.node(),t).duration}function Gde(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function Kde(e){var t=this._id;return arguments.length?this.each(Gde(t,e)):Nr(this.node(),t).ease}function Xde(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Xr(this,e).ease=r}}function Yde(e){if(typeof e!="function")throw new Error;return this.each(Xde(this._id,e))}function Zde(e){typeof e!="function"&&(e=Fw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new gi(o,this._parents,this._name,this._id)}function Jde(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new gi(f,this._parents,this._name,this._id)}function Qde(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function ehe(e,t,r){var o,s,c=Qde(t)?Jh:Xr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function the(e,t){var r=this._id;return arguments.length<2?Nr(this.node(),r).on.on(e):this.each(ehe(r,e,t))}function nhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function rhe(){return this.on("end.remove",nhe(this._id))}function ihe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Gh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Hu(p[b],t,r,b,p,Nr(v,r)));return new gi(c,this._parents,t,r)}function ohe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Iw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,E=Nr(v,r),N=0,L=b.length;N<L;++N)(w=b[N])&&Hu(w,t,r,N,b,E);c.push(b),f.push(v)}return new gi(c,f,t,r)}var she=ka.prototype.constructor;function lhe(){return new she(this._groups,this._parents)}function ahe(e,t){var r,o,s;return function(){var c=Rs(this,e),f=(this.style.removeProperty(e),Rs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function l1(e){return function(){this.style.removeProperty(e)}}function che(e,t,r){var o,s=r+"",c;return function(){var f=Rs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function uhe(e,t,r){var o,s,c;return function(){var f=Rs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Rs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function fhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Xr(this,e),p=h.on,v=h.value[c]==null?d||(d=l1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function dhe(e,t,r){var o=(e+="")=="transform"?dde:s1;return t==null?this.styleTween(e,ahe(e,o)).on("end.style."+e,l1(e)):typeof t=="function"?this.styleTween(e,uhe(e,o,Qh(this,"style."+e,t))).each(fhe(this._id,e)):this.styleTween(e,che(e,o,t),r).on("end.style."+e,null)}function hhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function phe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&hhe(e,f,r)),o}return c._value=t,c}function ghe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,phe(e,t,r??""))}function vhe(e){return function(){this.textContent=e}}function mhe(e){return function(){var t=e(this);this.textContent=t??""}}function yhe(e){return this.tween("text",typeof e=="function"?mhe(Qh(this,"text",e)):vhe(e==null?"":e+""))}function bhe(e){return function(t){this.textContent=e.call(this,t)}}function whe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&bhe(s)),t}return o._value=e,o}function xhe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,whe(e))}function She(){for(var e=this._name,t=this._id,r=a1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Nr(h,t);Hu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new gi(o,this._parents,e,r)}function _he(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Xr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var khe=0;function gi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function a1(){return++khe}var oi=ka.prototype;gi.prototype={constructor:gi,select:ihe,selectAll:ohe,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:Zde,merge:Jde,selection:lhe,transition:She,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:the,attr:Rde,attrTween:Hde,style:dhe,styleTween:ghe,text:yhe,textTween:xhe,remove:rhe,tween:Ade,delay:qde,duration:Vde,ease:Kde,easeVarying:Yde,end:_he,[Symbol.iterator]:oi[Symbol.iterator]};function Che(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var The={time:null,delay:0,duration:250,ease:Che};function Ehe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Ahe(e){var t,r;e instanceof gi?(t=e._id,e=e._name):(t=a1(),(r=The).time=Yh(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Hu(h,e,t,p,f,r||Ehe(h,t));return new gi(o,this._parents,e,t)}ka.prototype.interrupt=Cde;ka.prototype.transition=Ahe;const xc=e=>()=>e;function Mhe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function fi(e,t,r){this.k=e,this.x=t,this.y=r}fi.prototype={constructor:fi,scale:function(e){return e===1?this:new fi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ep=new fi(1,0,0);fi.prototype;function ud(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function Lhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Nhe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function d0(){return this.__zoom||ep}function $he(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ohe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Phe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Rhe(){var e=Lhe,t=Nhe,r=Phe,o=$he,s=Ohe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=mde,p=Ca("start","zoom","end"),v,m,b,w=500,E=150,N=0,L=10;function M(O){O.property("__zoom",d0).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",Y).filter(s).on("touchstart.zoom",ee).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(O,_,D,j){var re=O.selection?O.selection():O;re.property("__zoom",d0),O!==re?B(O,_,D,j):re.interrupt().each(function(){G(this,arguments).event(j).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},M.scaleBy=function(O,_,D,j){M.scaleTo(O,function(){var re=this.__zoom.k,pe=typeof _=="function"?_.apply(this,arguments):_;return re*pe},D,j)},M.scaleTo=function(O,_,D,j){M.transform(O,function(){var re=t.apply(this,arguments),pe=this.__zoom,be=D==null?A(re):typeof D=="function"?D.apply(this,arguments):D,Re=pe.invert(be),qe=typeof _=="function"?_.apply(this,arguments):_;return r(P(T(pe,qe),be,Re),re,f)},D,j)},M.translateBy=function(O,_,D,j){M.transform(O,function(){return r(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),f)},null,j)},M.translateTo=function(O,_,D,j,re){M.transform(O,function(){var pe=t.apply(this,arguments),be=this.__zoom,Re=j==null?A(pe):typeof j=="function"?j.apply(this,arguments):j;return r(ep.translate(Re[0],Re[1]).scale(be.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof D=="function"?-D.apply(this,arguments):-D),pe,f)},j,re)};function T(O,_){return _=Math.max(c[0],Math.min(c[1],_)),_===O.k?O:new fi(_,O.x,O.y)}function P(O,_,D){var j=_[0]-D[0]*O.k,re=_[1]-D[1]*O.k;return j===O.x&&re===O.y?O:new fi(O.k,j,re)}function A(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function B(O,_,D,j){O.on("start.zoom",function(){G(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(j).end()}).tween("zoom",function(){var re=this,pe=arguments,be=G(re,pe).event(j),Re=t.apply(re,pe),qe=D==null?A(Re):typeof D=="function"?D.apply(re,pe):D,et=Math.max(Re[1][0]-Re[0][0],Re[1][1]-Re[0][1]),Ye=re.__zoom,Xe=typeof _=="function"?_.apply(re,pe):_,Ae=h(Ye.invert(qe).concat(et/Ye.k),Xe.invert(qe).concat(et/Xe.k));return function(Z){if(Z===1)Z=Xe;else{var ae=Ae(Z),de=et/ae[2];Z=new fi(de,qe[0]-ae[0]*de,qe[1]-ae[1]*de)}be.zoom(null,Z)}})}function G(O,_,D){return!D&&O.__zooming||new U(O,_)}function U(O,_){this.that=O,this.args=_,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,_),this.taps=0}U.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,_){return this.mouse&&O!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var _=Un(this.that).datum();p.call(O,this.that,new Mhe(O,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),_)}};function Q(O,..._){if(!e.apply(this,arguments))return;var D=G(this,_).event(O),j=this.__zoom,re=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),pe=ai(O);if(D.wheel)(D.mouse[0][0]!==pe[0]||D.mouse[0][1]!==pe[1])&&(D.mouse[1]=j.invert(D.mouse[0]=pe)),clearTimeout(D.wheel);else{if(j.k===re)return;D.mouse=[pe,j.invert(pe)],Pc(this),D.start()}kl(O),D.wheel=setTimeout(be,E),D.zoom("mouse",r(P(T(j,re),D.mouse[0],D.mouse[1]),D.extent,f));function be(){D.wheel=null,D.end()}}function J(O,..._){if(b||!e.apply(this,arguments))return;var D=O.currentTarget,j=G(this,_,!0).event(O),re=Un(O.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",et,!0),pe=ai(O,D),be=O.clientX,Re=O.clientY;Xw(O.view),ud(O),j.mouse=[pe,this.__zoom.invert(pe)],Pc(this),j.start();function qe(Ye){if(kl(Ye),!j.moved){var Xe=Ye.clientX-be,Ae=Ye.clientY-Re;j.moved=Xe*Xe+Ae*Ae>N}j.event(Ye).zoom("mouse",r(P(j.that.__zoom,j.mouse[0]=ai(Ye,D),j.mouse[1]),j.extent,f))}function et(Ye){re.on("mousemove.zoom mouseup.zoom",null),Yw(Ye.view,j.moved),kl(Ye),j.event(Ye).end()}}function Y(O,..._){if(e.apply(this,arguments)){var D=this.__zoom,j=ai(O.changedTouches?O.changedTouches[0]:O,this),re=D.invert(j),pe=D.k*(O.shiftKey?.5:2),be=r(P(T(D,pe),j,re),t.apply(this,_),f);kl(O),d>0?Un(this).transition().duration(d).call(B,be,j,O):Un(this).call(M.transform,be,j,O)}}function ee(O,..._){if(e.apply(this,arguments)){var D=O.touches,j=D.length,re=G(this,_,O.changedTouches.length===j).event(O),pe,be,Re,qe;for(ud(O),be=0;be<j;++be)Re=D[be],qe=ai(Re,this),qe=[qe,this.__zoom.invert(qe),Re.identifier],re.touch0?!re.touch1&&re.touch0[2]!==qe[2]&&(re.touch1=qe,re.taps=0):(re.touch0=qe,pe=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),pe&&(re.taps<2&&(m=qe[0],v=setTimeout(function(){v=null},w)),Pc(this),re.start())}}function R(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be,Re,qe;for(kl(O),pe=0;pe<re;++pe)be=j[pe],Re=ai(be,this),D.touch0&&D.touch0[2]===be.identifier?D.touch0[0]=Re:D.touch1&&D.touch1[2]===be.identifier&&(D.touch1[0]=Re);if(be=D.that.__zoom,D.touch1){var et=D.touch0[0],Ye=D.touch0[1],Xe=D.touch1[0],Ae=D.touch1[1],Z=(Z=Xe[0]-et[0])*Z+(Z=Xe[1]-et[1])*Z,ae=(ae=Ae[0]-Ye[0])*ae+(ae=Ae[1]-Ye[1])*ae;be=T(be,Math.sqrt(Z/ae)),Re=[(et[0]+Xe[0])/2,(et[1]+Xe[1])/2],qe=[(Ye[0]+Ae[0])/2,(Ye[1]+Ae[1])/2]}else if(D.touch0)Re=D.touch0[0],qe=D.touch0[1];else return;D.zoom("touch",r(P(be,Re,qe),D.extent,f))}}function $(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be;for(ud(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),pe=0;pe<re;++pe)be=j[pe],D.touch0&&D.touch0[2]===be.identifier?delete D.touch0:D.touch1&&D.touch1[2]===be.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(be=ai(be,this),Math.hypot(m[0]-be[0],m[1]-be[1])<L)){var Re=Un(this).on("dblclick.zoom");Re&&Re.apply(this,arguments)}}}return M.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:xc(+O),M):o},M.filter=function(O){return arguments.length?(e=typeof O=="function"?O:xc(!!O),M):e},M.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:xc(!!O),M):s},M.extent=function(O){return arguments.length?(t=typeof O=="function"?O:xc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),M):t},M.scaleExtent=function(O){return arguments.length?(c[0]=+O[0],c[1]=+O[1],M):[c[0],c[1]]},M.translateExtent=function(O){return arguments.length?(f[0][0]=+O[0][0],f[1][0]=+O[1][0],f[0][1]=+O[0][1],f[1][1]=+O[1][1],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(O){return arguments.length?(r=O,M):r},M.duration=function(O){return arguments.length?(d=+O,M):d},M.interpolate=function(O){return arguments.length?(h=O,M):h},M.on=function(){var O=p.on.apply(p,arguments);return O===p?M:O},M.clickDistance=function(O){return arguments.length?(N=(O=+O)*O,M):Math.sqrt(N)},M.tapDistance=function(O){return arguments.length?(L=+O,M):L},M}function zhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return c1(this.cover(t,r),t,r,e)}function c1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,E,N,L,M,T;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[M=L<<1|N]))return s[M]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b;while((M=L<<1|N)===(T=(E>=b)<<1|w>=m));return s[T]=c,s[M]=f,e}function Dhe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)c1(this,f[r],d[r],e[r]);return this}function Ihe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Fhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Hhe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Ln(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Bhe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,E,N;for(w&&b.push(new Ln(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>v||(d=E.y0)>m||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var L=(f+h)/2,M=(d+p)/2;b.push(new Ln(w[3],L,M,h,p),new Ln(w[2],f,M,L,p),new Ln(w[1],L,d,h,M),new Ln(w[0],f,d,L,M)),(N=(t>=M)<<1|e>=L)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=E)}else{var T=e-+this._x.call(null,w.data),P=t-+this._y.call(null,w.data),A=T*T+P*P;if(A<r){var B=Math.sqrt(r=A);s=e-B,c=t-B,v=e+B,m=t+B,o=w.data}}return o}function Whe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,E,N,L,M;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(N=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[L=N<<1|E]))return this;if(!r.length)break;(t[L+1&3]||t[L+2&3]||t[L+3&3])&&(o=t,M=L)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[L]=c:delete t[L],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function qhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Uhe(){return this._root}function jhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Vhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Ln(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new Ln(s,p,v,d,h)),(s=o[2])&&t.push(new Ln(s,c,v,p,h)),(s=o[1])&&t.push(new Ln(s,p,f,d,v)),(s=o[0])&&t.push(new Ln(s,c,f,p,v))}return this}function Ghe(e){var t=[],r=[],o;for(this._root&&t.push(new Ln(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new Ln(c,f,d,v,m)),(c=s[1])&&t.push(new Ln(c,v,d,h,m)),(c=s[2])&&t.push(new Ln(c,f,m,v,p)),(c=s[3])&&t.push(new Ln(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Khe(e){return e[0]}function Xhe(e){return arguments.length?(this._x=e,this):this._x}function Yhe(e){return e[1]}function Zhe(e){return arguments.length?(this._y=e,this):this._y}function tp(e,t,r){var o=new np(t??Khe,r??Yhe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function np(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function h0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Pn=tp.prototype=np.prototype;Pn.copy=function(){var e=new np(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=h0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=h0(o));return e};Pn.add=zhe;Pn.addAll=Dhe;Pn.cover=Ihe;Pn.data=Fhe;Pn.extent=Hhe;Pn.find=Bhe;Pn.remove=Whe;Pn.removeAll=qhe;Pn.root=Uhe;Pn.size=jhe;Pn.visit=Vhe;Pn.visitAfter=Ghe;Pn.x=Xhe;Pn.y=Zhe;function $n(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Jhe(e){return e.x+e.vx}function Qhe(e){return e.y+e.vy}function epe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=$n(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,E,N,L,M=0;M<c;++M)for(m=tp(t,Jhe,Qhe).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],L=N*N,w=b.x+b.vx,E=b.y+b.vy,m.visit(T);function T(P,A,B,G,U){var Q=P.data,J=P.r,Y=N+J;if(Q){if(Q.index>b.index){var ee=w-Q.x-Q.vx,R=E-Q.y-Q.vy,$=ee*ee+R*R;$<Y*Y&&(ee===0&&(ee=Vi(o),$+=ee*ee),R===0&&(R=Vi(o),$+=R*R),$=(Y-($=Math.sqrt($)))/$*s,b.vx+=(ee*=$)*(Y=(J*=J)/(L+J)),b.vy+=(R*=$)*Y,Q.vx-=ee*(Y=1-Y),Q.vy-=R*Y)}return}return A>w+Y||G<w-Y||B>E+Y||U<E-Y}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:$n(+p),h(),f):e},f}function tpe(e){return e.index}function p0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function npe(e){var t=tpe,r=m,o,s=$n(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(L){return 1/Math.min(d[L.source.index],d[L.target.index])}function b(L){for(var M=0,T=e.length;M<v;++M)for(var P=0,A,B,G,U,Q,J,Y;P<T;++P)A=e[P],B=A.source,G=A.target,U=G.x+G.vx-B.x-B.vx||Vi(p),Q=G.y+G.vy-B.y-B.vy||Vi(p),J=Math.sqrt(U*U+Q*Q),J=(J-c[P])/J*L*o[P],U*=J,Q*=J,G.vx-=U*(Y=h[P]),G.vy-=Q*Y,B.vx+=U*(Y=1-Y),B.vy+=Q*Y}function w(){if(f){var L,M=f.length,T=e.length,P=new Map(f.map((B,G)=>[t(B,G,f),B])),A;for(L=0,d=new Array(M);L<T;++L)A=e[L],A.index=L,typeof A.source!="object"&&(A.source=p0(P,A.source)),typeof A.target!="object"&&(A.target=p0(P,A.target)),d[A.source.index]=(d[A.source.index]||0)+1,d[A.target.index]=(d[A.target.index]||0)+1;for(L=0,h=new Array(T);L<T;++L)A=e[L],h[L]=d[A.source.index]/(d[A.source.index]+d[A.target.index]);o=new Array(T),E(),c=new Array(T),N()}}function E(){if(f)for(var L=0,M=e.length;L<M;++L)o[L]=+r(e[L],L,e)}function N(){if(f)for(var L=0,M=e.length;L<M;++L)c[L]=+s(e[L],L,e)}return b.initialize=function(L,M){f=L,p=M,w()},b.links=function(L){return arguments.length?(e=L,w(),b):e},b.id=function(L){return arguments.length?(t=L,b):t},b.iterations=function(L){return arguments.length?(v=+L,b):v},b.strength=function(L){return arguments.length?(r=typeof L=="function"?L:$n(+L),E(),b):r},b.distance=function(L){return arguments.length?(s=typeof L=="function"?L:$n(+L),N(),b):s},b}const rpe=1664525,ipe=1013904223,g0=4294967296;function ope(){let e=1;return()=>(e=(rpe*e+ipe)%g0)/g0}function spe(e){return e.x}function lpe(e){return e.y}var ape=10,cpe=Math.PI*(3-Math.sqrt(5));function upe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Zh(m),p=Ca("tick","end"),v=ope();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var L,M=e.length,T;N===void 0&&(N=1);for(var P=0;P<N;++P)for(r+=(c-r)*s,d.forEach(function(A){A(r)}),L=0;L<M;++L)T=e[L],T.fx==null?T.x+=T.vx*=f:(T.x=T.fx,T.vx=0),T.fy==null?T.y+=T.vy*=f:(T.y=T.fy,T.vy=0);return t}function w(){for(var N=0,L=e.length,M;N<L;++N){if(M=e[N],M.index=N,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var T=ape*Math.sqrt(.5+N),P=N*cpe;M.x=T*Math.cos(P),M.y=T*Math.sin(P)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function E(N){return N.initialize&&N.initialize(e,v),N}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(N){return arguments.length?(e=N,w(),d.forEach(E),t):e},alpha:function(N){return arguments.length?(r=+N,t):r},alphaMin:function(N){return arguments.length?(o=+N,t):o},alphaDecay:function(N){return arguments.length?(s=+N,t):+s},alphaTarget:function(N){return arguments.length?(c=+N,t):c},velocityDecay:function(N){return arguments.length?(f=1-N,t):1-f},randomSource:function(N){return arguments.length?(v=N,d.forEach(E),t):v},force:function(N,L){return arguments.length>1?(L==null?d.delete(N):d.set(N,E(L)),t):d.get(N)},find:function(N,L,M){var T=0,P=e.length,A,B,G,U,Q;for(M==null?M=1/0:M*=M,T=0;T<P;++T)U=e[T],A=N-U.x,B=L-U.y,G=A*A+B*B,G<M&&(Q=U,M=G);return Q},on:function(N,L){return arguments.length>1?(p.on(N,L),t):p.on(N)}}}function fpe(){var e,t,r,o,s=$n(-30),c,f=1,d=1/0,h=.81;function p(w){var E,N=e.length,L=tp(e,spe,lpe).visitAfter(m);for(o=w,E=0;E<N;++E)t=e[E],L.visit(b)}function v(){if(e){var w,E=e.length,N;for(c=new Array(E),w=0;w<E;++w)N=e[w],c[N.index]=+s(N,w,e)}}function m(w){var E=0,N,L,M=0,T,P,A;if(w.length){for(T=P=A=0;A<4;++A)(N=w[A])&&(L=Math.abs(N.value))&&(E+=N.value,M+=L,T+=L*N.x,P+=L*N.y);w.x=T/M,w.y=P/M}else{N=w,N.x=N.data.x,N.y=N.data.y;do E+=c[N.data.index];while(N=N.next)}w.value=E}function b(w,E,N,L){if(!w.value)return!0;var M=w.x-t.x,T=w.y-t.y,P=L-E,A=M*M+T*T;if(P*P/h<A)return A<d&&(M===0&&(M=Vi(r),A+=M*M),T===0&&(T=Vi(r),A+=T*T),A<f&&(A=Math.sqrt(f*A)),t.vx+=M*w.value*o/A,t.vy+=T*w.value*o/A),!0;if(w.length||A>=d)return;(w.data!==t||w.next)&&(M===0&&(M=Vi(r),A+=M*M),T===0&&(T=Vi(r),A+=T*T),A<f&&(A=Math.sqrt(f*A)));do w.data!==t&&(P=c[w.data.index]*o/A,t.vx+=M*P,t.vy+=T*P);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:$n(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function dpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:$n(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}function hpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:$n(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}var ppe=Object.defineProperty,gpe=(e,t,r)=>t in e?ppe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t,r)=>gpe(e,typeof t!="symbol"?t+"":t,r);function vpe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function v0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Gi(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=Gi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:v0(t[o])&&v0(r[o])?t[o]=Gi(t[o],r[o]):t[o]=r[o])}),t},{})}const u1={mergeArrays:!0};Gi.options=u1;Gi.withOptions=(e,...t)=>{Gi.options={mergeArrays:!0,...e};const r=Gi(...t);return Gi.options=u1,r};function mpe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function ype(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function f1(e){e.preventDefault(),e.stopPropagation()}function d1(e){return typeof e=="number"}function ro(e,t){return d1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function bpe(e){return`${e.source.id}-${e.target.id}`}function h1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function wpe(e){return`url(#${h1(e.color)})`}function xpe(e){return{size:e,padding:(t,r)=>ro(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const p1={Arrow:e=>xpe(e)},Spe=(e,t,r)=>[t/2,r/2],_pe=(e,t,r)=>[m0(0,t),m0(0,r)];function m0(e,t){return Math.random()*(t-e)+e}const eh={Centered:Spe,Randomized:_pe};function kpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:ype(),nodeRadius:16,marker:p1.Arrow(4),modifiers:{},positionInitializer:eh.Centered,simulation:{alphas:vpe(),forces:mpe()},zoom:{initial:1,min:.1,max:2}}}function Cpe(e={}){return Gi.withOptions({mergeArrays:!1},kpe(),e)}function Tpe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>f1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,ep.translate(c,f).scale(d)),p.append("g")}function Epe({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Ape({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=jfe().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Un(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Un(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function Mpe({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Lpe({links:c},r)}function Lpe(e,t){const r=[...Npe(e,t),...$pe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Npe(e,t){return g1(e,t,(r,o)=>r.target.id===o.id)}function $pe(e,t){return g1(e,t,(r,o)=>r.source.id===o.id)}function g1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function th(e){return e.x??0}function nh(e){return e.y??0}function rp({source:e,target:t}){const r=new An(th(e),nh(e)),o=new An(th(t),nh(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function v1({center:e,node:t}){const r=new An(th(t),nh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new An(0,1))),{n:r,c:o}}function m1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=rp({source:t,target:r}),f=o.add(c.multiply(ro(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function Ope(e){const{start:t,end:r}=m1(e);return`M${t.x},${t.y}
|
|
44
|
+
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var H;v&&(H=u.ownerDocument.defaultView.scrollY),l.input.focus(),v&&u.ownerDocument.defaultView.scrollTo(null,H),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=V,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function X(){if(u.selectionStart!=null){var fe=a.somethingSelected(),me=""+(fe?u.value:"");u.value="⇚",u.value=me,i.prevInput=fe?"":"",u.selectionStart=1,u.selectionEnd=me.length,l.selForContextMenu=a.doc.sel}}function V(){if(i.contextMenuPending==V&&(i.contextMenuPending=!1,i.wrapper.style.cssText=k,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&X();var fe=0,me=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Kt(a,Cg)(a):fe++<10?l.detectingSelectAll=setTimeout(me,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(me,200)}}if(h&&p>=9&&X(),Y){wi(n);var ie=function(){on(window,"mouseup",ie),setTimeout(V,20)};Ie(window,"mouseup",ie)}else setTimeout(V,50)},Dt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Dt.prototype.setUneditable=function(){},Dt.prototype.needsContentAttribute=!1;function PS(n,i){if(i=i?ae(i):{},i.value=n.value,!i.tabindex&&n.tabIndex&&(i.tabindex=n.tabIndex),!i.placeholder&&n.placeholder&&(i.placeholder=n.placeholder),i.autofocus==null){var a=pe(Xe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Ie(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var g=n.form;u=g.submit;try{var y=g.submit=function(){l(),g.submit=u,g.submit(),g.submit=y}}catch{}}i.finishInit=function(S){S.save=l,S.getTextArea=function(){return n},S.toTextArea=function(){S.toTextArea=isNaN,l(),n.parentNode.removeChild(S.getWrapperElement()),n.style.display="",n.form&&(on(n.form,"submit",l),!i.leaveSubmitMethodAlone&&typeof n.form.submit=="function"&&(n.form.submit=u))}},n.style.display="none";var x=Ct(function(S){return n.parentNode.insertBefore(S,n.nextSibling)},i);return x}function RS(n){n.off=on,n.on=Ie,n.wheelEventPixels=Wx,n.Doc=xn,n.splitLines=ir,n.countColumn=de,n.findColumn=ue,n.isWordChar=tt,n.Pass=q,n.signal=Lt,n.Line=jo,n.changeEnd=Ai,n.scrollbarModel=tg,n.Pos=ne,n.cmpPos=Ce,n.modes=Fo,n.mimeModes=dr,n.resolveMode=Ho,n.getMode=Bo,n.modeExtensions=_i,n.extendMode=Wo,n.copyState=Or,n.startState=qo,n.innerMode=Us,n.commands=pl,n.keyMap=ni,n.keyName=Bg,n.isModifierKey=Fg,n.lookupKey=is,n.normalizeKeyMap=uS,n.StringStream=$t,n.SharedTextMarker=fl,n.TextMarker=Li,n.LineWidget=ul,n.e_preventDefault=sn,n.e_stopPropagation=Do,n.e_stop=wi,n.addClass=be,n.contains=re,n.rmClass=R,n.keyNames=Ni}TS(Ct),LS(Ct);var zS="iter insert remove copy getEditor constructor".split(" ");for(var oc in xn.prototype)xn.prototype.hasOwnProperty(oc)&&Me(zS,oc)<0&&(Ct.prototype[oc]=function(n){return function(){return n.apply(this.doc,arguments)}}(xn.prototype[oc]));return cr(xn),Ct.inputStyles={textarea:Dt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),hr.apply(this,arguments)},Ct.defineMIME=so,Ct.defineMode("null",function(){return{token:function(n){return n.skipToEnd()}}}),Ct.defineMIME("text/plain","null"),Ct.defineExtension=function(n,i){Ct.prototype[n]=i},Ct.defineDocExtension=function(n,i){xn.prototype[n]=i},Ct.fromTextArea=PS,RS(Ct),Ct.version="5.65.18",Ct})}(Lc)),Lc.exports}var Bce=Bs();const Wce=bw(Bce);var Fm={exports:{}},Hm;function Pw(){return Hm||(Hm=1,function(e,t){(function(r){r(Bs())})(function(r){r.defineMode("javascript",function(o,s){var c=o.indentUnit,f=s.statementIndent,d=s.jsonld,h=s.json||d,p=s.trackScope!==!1,v=s.typescript,m=s.wordCharacters||/[\w$\xa1-\uffff]/,b=function(){function C(Vt){return{type:Vt,style:"keyword"}}var F=C("keyword a"),se=C("keyword b"),ve=C("keyword c"),ne=C("keyword d"),Ce=C("operator"),ft={type:"atom",style:"atom"};return{if:C("if"),while:F,with:F,else:se,do:se,try:se,finally:se,return:ne,break:ne,continue:ne,new:C("new"),delete:ve,void:ve,throw:ve,debugger:C("debugger"),var:C("var"),const:C("var"),let:C("var"),function:C("function"),catch:C("catch"),for:C("for"),switch:C("switch"),case:C("case"),default:C("default"),in:Ce,typeof:Ce,instanceof:Ce,true:ft,false:ft,null:ft,undefined:ft,NaN:ft,Infinity:ft,this:C("this"),class:C("class"),super:C("atom"),yield:ve,export:C("export"),import:C("import"),extends:ve,await:ve}}(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function N(C){for(var F=!1,se,ve=!1;(se=C.next())!=null;){if(!F){if(se=="/"&&!ve)return;se=="["?ve=!0:ve&&se=="]"&&(ve=!1)}F=!F&&se=="\\"}}var L,M;function T(C,F,se){return L=C,M=se,F}function P(C,F){var se=C.next();if(se=='"'||se=="'")return F.tokenize=A(se),F.tokenize(C,F);if(se=="."&&C.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return T("number","number");if(se=="."&&C.match(".."))return T("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(se))return T(se);if(se=="="&&C.eat(">"))return T("=>","operator");if(se=="0"&&C.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return T("number","number");if(/\d/.test(se))return C.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),T("number","number");if(se=="/")return C.eat("*")?(F.tokenize=B,B(C,F)):C.eat("/")?(C.skipToEnd(),T("comment","comment")):Kn(C,F,1)?(N(C),C.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),T("regexp","string-2")):(C.eat("="),T("operator","operator",C.current()));if(se=="`")return F.tokenize=G,G(C,F);if(se=="#"&&C.peek()=="!")return C.skipToEnd(),T("meta","meta");if(se=="#"&&C.eatWhile(m))return T("variable","property");if(se=="<"&&C.match("!--")||se=="-"&&C.match("->")&&!/\S/.test(C.string.slice(0,C.start)))return C.skipToEnd(),T("comment","comment");if(w.test(se))return(se!=">"||!F.lexical||F.lexical.type!=">")&&(C.eat("=")?(se=="!"||se=="=")&&C.eat("="):/[<>*+\-|&?]/.test(se)&&(C.eat(se),se==">"&&C.eat(se))),se=="?"&&C.eat(".")?T("."):T("operator","operator",C.current());if(m.test(se)){C.eatWhile(m);var ve=C.current();if(F.lastType!="."){if(b.propertyIsEnumerable(ve)){var ne=b[ve];return T(ne.type,ne.style,ve)}if(ve=="async"&&C.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return T("async","keyword",ve)}return T("variable","variable",ve)}}function A(C){return function(F,se){var ve=!1,ne;if(d&&F.peek()=="@"&&F.match(E))return se.tokenize=P,T("jsonld-keyword","meta");for(;(ne=F.next())!=null&&!(ne==C&&!ve);)ve=!ve&&ne=="\\";return ve||(se.tokenize=P),T("string","string")}}function B(C,F){for(var se=!1,ve;ve=C.next();){if(ve=="/"&&se){F.tokenize=P;break}se=ve=="*"}return T("comment","comment")}function G(C,F){for(var se=!1,ve;(ve=C.next())!=null;){if(!se&&(ve=="`"||ve=="$"&&C.eat("{"))){F.tokenize=P;break}se=!se&&ve=="\\"}return T("quasi","string-2",C.current())}var U="([{}])";function Q(C,F){F.fatArrowAt&&(F.fatArrowAt=null);var se=C.string.indexOf("=>",C.start);if(!(se<0)){if(v){var ve=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(C.string.slice(C.start,se));ve&&(se=ve.index)}for(var ne=0,Ce=!1,ft=se-1;ft>=0;--ft){var Vt=C.string.charAt(ft),bn=U.indexOf(Vt);if(bn>=0&&bn<3){if(!ne){++ft;break}if(--ne==0){Vt=="("&&(Ce=!0);break}}else if(bn>=3&&bn<6)++ne;else if(m.test(Vt))Ce=!0;else if(/["'\/`]/.test(Vt))for(;;--ft){if(ft==0)return;var Uo=C.string.charAt(ft-1);if(Uo==Vt&&C.string.charAt(ft-2)!="\\"){ft--;break}}else if(Ce&&!ne){++ft;break}}Ce&&!ne&&(F.fatArrowAt=ft)}}var J={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function Y(C,F,se,ve,ne,Ce){this.indented=C,this.column=F,this.type=se,this.prev=ne,this.info=Ce,ve!=null&&(this.align=ve)}function ee(C,F){if(!p)return!1;for(var se=C.localVars;se;se=se.next)if(se.name==F)return!0;for(var ve=C.context;ve;ve=ve.prev)for(var se=ve.vars;se;se=se.next)if(se.name==F)return!0}function R(C,F,se,ve,ne){var Ce=C.cc;for($.state=C,$.stream=ne,$.marked=null,$.cc=Ce,$.style=F,C.lexical.hasOwnProperty("align")||(C.lexical.align=!0);;){var ft=Ce.length?Ce.pop():h?Me:de;if(ft(se,ve)){for(;Ce.length&&Ce[Ce.length-1].lex;)Ce.pop()();return $.marked?$.marked:se=="variable"&&ee(C,ve)?"variable-2":F}}}var $={state:null,marked:null,cc:null};function O(){for(var C=arguments.length-1;C>=0;C--)$.cc.push(arguments[C])}function _(){return O.apply(null,arguments),!0}function D(C,F){for(var se=F;se;se=se.next)if(se.name==C)return!0;return!1}function j(C){var F=$.state;if($.marked="def",!!p){if(F.context){if(F.lexical.info=="var"&&F.context&&F.context.block){var se=re(C,F.context);if(se!=null){F.context=se;return}}else if(!D(C,F.localVars)){F.localVars=new Re(C,F.localVars);return}}s.globalVars&&!D(C,F.globalVars)&&(F.globalVars=new Re(C,F.globalVars))}}function re(C,F){if(F)if(F.block){var se=re(C,F.prev);return se?se==F.prev?F:new be(se,F.vars,!0):null}else return D(C,F.vars)?F:new be(F.prev,new Re(C,F.vars),!1);else return null}function pe(C){return C=="public"||C=="private"||C=="protected"||C=="abstract"||C=="readonly"}function be(C,F,se){this.prev=C,this.vars=F,this.block=se}function Re(C,F){this.name=C,this.next=F}var qe=new Re("this",new Re("arguments",null));function et(){$.state.context=new be($.state.context,$.state.localVars,!1),$.state.localVars=qe}function Ye(){$.state.context=new be($.state.context,$.state.localVars,!0),$.state.localVars=null}et.lex=Ye.lex=!0;function Xe(){$.state.localVars=$.state.context.vars,$.state.context=$.state.context.prev}Xe.lex=!0;function Ae(C,F){var se=function(){var ve=$.state,ne=ve.indented;if(ve.lexical.type=="stat")ne=ve.lexical.indented;else for(var Ce=ve.lexical;Ce&&Ce.type==")"&&Ce.align;Ce=Ce.prev)ne=Ce.indented;ve.lexical=new Y(ne,$.stream.column(),C,null,ve.lexical,F)};return se.lex=!0,se}function Z(){var C=$.state;C.lexical.prev&&(C.lexical.type==")"&&(C.indented=C.lexical.indented),C.lexical=C.lexical.prev)}Z.lex=!0;function ae(C){function F(se){return se==C?_():C==";"||se=="}"||se==")"||se=="]"?O():_(F)}return F}function de(C,F){return C=="var"?_(Ae("vardef",F),Do,ae(";"),Z):C=="keyword a"?_(Ae("form"),q,de,Z):C=="keyword b"?_(Ae("form"),de,Z):C=="keyword d"?$.stream.match(/^\s*$/,!1)?_():_(Ae("stat"),le,ae(";"),Z):C=="debugger"?_(ae(";")):C=="{"?_(Ae("}"),Ye,It,Z,Xe):C==";"?_():C=="if"?($.state.lexical.info=="else"&&$.state.cc[$.state.cc.length-1]==Z&&$.state.cc.pop()(),_(Ae("form"),q,de,Z,Io)):C=="function"?_(ir):C=="for"?_(Ae("form"),Ye,Aa,de,Xe,Z):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form",C=="class"?C:F),Fo,Z)):C=="variable"?v&&F=="declare"?($.marked="keyword",_(de)):v&&(F=="module"||F=="enum"||F=="type")&&$.stream.match(/^\s*\w/,!1)?($.marked="keyword",F=="enum"?_(Pe):F=="type"?_(Ma,ae("operator"),Qe,ae(";")):_(Ae("form"),yn,ae("{"),Ae("}"),It,Z,Z)):v&&F=="namespace"?($.marked="keyword",_(Ae("form"),Me,de,Z)):v&&F=="abstract"?($.marked="keyword",_(de)):_(Ae("stat"),Ue):C=="switch"?_(Ae("form"),q,ae("{"),Ae("}","switch"),Ye,It,Z,Z,Xe):C=="case"?_(Me,ae(":")):C=="default"?_(ae(":")):C=="catch"?_(Ae("form"),et,Ne,de,Z,Xe):C=="export"?_(Ae("stat"),Ho,Z):C=="import"?_(Ae("stat"),_i,Z):C=="async"?_(de):F=="@"?_(Me,de):O(Ae("stat"),Me,ae(";"),Z)}function Ne(C){if(C=="(")return _(fr,ae(")"))}function Me(C,F){return K(C,F,!1)}function I(C,F){return K(C,F,!0)}function q(C){return C!="("?O():_(Ae(")"),le,ae(")"),Z)}function K(C,F,se){if($.state.fatArrowAt==$.stream.start){var ve=se?ge:he;if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,ae("=>"),ve,Xe);if(C=="variable")return O(et,yn,ae("=>"),ve,Xe)}var ne=se?ue:ce;return J.hasOwnProperty(C)?_(ne):C=="function"?_(ir,ne):C=="class"||v&&F=="interface"?($.marked="keyword",_(Ae("form"),Uu,Z)):C=="keyword c"||C=="async"?_(se?I:Me):C=="("?_(Ae(")"),le,ae(")"),Z,ne):C=="operator"||C=="spread"?_(se?I:Me):C=="["?_(Ae("]"),$t,Z,ne):C=="{"?jt(ot,"}",null,ne):C=="quasi"?O(Se,ne):C=="new"?_(We(se)):_()}function le(C){return C.match(/[;\}\)\],]/)?O():O(Me)}function ce(C,F){return C==","?_(le):ue(C,F,!1)}function ue(C,F,se){var ve=se==!1?ce:ue,ne=se==!1?Me:I;if(C=="=>")return _(et,se?ge:he,Xe);if(C=="operator")return/\+\+|--/.test(F)||v&&F=="!"?_(ve):v&&F=="<"&&$.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?_(Ae(">"),st(Qe,">"),Z,ve):F=="?"?_(Me,ae(":"),ne):_(ne);if(C=="quasi")return O(Se,ve);if(C!=";"){if(C=="(")return jt(I,")","call",ve);if(C==".")return _(tt,ve);if(C=="[")return _(Ae("]"),le,ae("]"),Z,ve);if(v&&F=="as")return $.marked="keyword",_(Qe,ve);if(C=="regexp")return $.state.lastType=$.marked="operator",$.stream.backUp($.stream.pos-$.stream.start-1),_(ne)}}function Se(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(Se):_(le,_e)}function _e(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(Se)}function he(C){return Q($.stream,$.state),O(C=="{"?de:Me)}function ge(C){return Q($.stream,$.state),O(C=="{"?de:I)}function We(C){return function(F){return F=="."?_(C?De:Le):F=="variable"&&v?_(Dn,C?ue:ce):O(C?I:Me)}}function Le(C,F){if(F=="target")return $.marked="keyword",_(ce)}function De(C,F){if(F=="target")return $.marked="keyword",_(ue)}function Ue(C){return C==":"?_(Z,de):O(ce,ae(";"),Z)}function tt(C){if(C=="variable")return $.marked="property",_()}function ot(C,F){if(C=="async")return $.marked="property",_(ot);if(C=="variable"||$.style=="keyword"){if($.marked="property",F=="get"||F=="set")return _(lt);var se;return v&&$.state.fatArrowAt==$.stream.start&&(se=$.stream.match(/^\s*:\s*/,!1))&&($.state.fatArrowAt=$.stream.pos+se[0].length),_(Mt)}else{if(C=="number"||C=="string")return $.marked=d?"property":$.style+" property",_(Mt);if(C=="jsonld-keyword")return _(Mt);if(v&&pe(F))return $.marked="keyword",_(ot);if(C=="[")return _(Me,Rn,ae("]"),Mt);if(C=="spread")return _(I,Mt);if(F=="*")return $.marked="keyword",_(ot);if(C==":")return O(Mt)}}function lt(C){return C!="variable"?O(Mt):($.marked="property",_(ir))}function Mt(C){if(C==":")return _(I);if(C=="(")return O(ir)}function st(C,F,se){function ve(ne,Ce){if(se?se.indexOf(ne)>-1:ne==","){var ft=$.state.lexical;return ft.info=="call"&&(ft.pos=(ft.pos||0)+1),_(function(Vt,bn){return Vt==F||bn==F?O():O(C)},ve)}return ne==F||Ce==F?_():se&&se.indexOf(";")>-1?O(C):_(ae(F))}return function(ne,Ce){return ne==F||Ce==F?_():O(C,ve)}}function jt(C,F,se){for(var ve=3;ve<arguments.length;ve++)$.cc.push(arguments[ve]);return _(Ae(F,se),st(C,F),Z)}function It(C){return C=="}"?_():O(de,It)}function Rn(C,F){if(v){if(C==":")return _(Qe);if(F=="?")return _(Rn)}}function $r(C,F){if(v&&(C==":"||F=="in"))return _(Qe)}function zt(C){if(v&&C==":")return $.stream.match(/^\s*\w+\s+is\b/,!1)?_(Me,zn,Qe):_(Qe)}function zn(C,F){if(F=="is")return $.marked="keyword",_()}function Qe(C,F){if(F=="keyof"||F=="typeof"||F=="infer"||F=="readonly")return $.marked="keyword",_(F=="typeof"?I:Qe);if(C=="variable"||F=="void")return $.marked="type",_(rr);if(F=="|"||F=="&")return _(Qe);if(C=="string"||C=="number"||C=="atom")return _(rr);if(C=="[")return _(Ae("]"),st(Qe,"]",","),Z,rr);if(C=="{")return _(Ae("}"),Ie,Z,rr);if(C=="(")return _(st(Nt,")"),Ea,rr);if(C=="<")return _(st(Qe,">"),Qe);if(C=="quasi")return O(on,rr)}function Ea(C){if(C=="=>")return _(Qe)}function Ie(C){return C.match(/[\}\)\]]/)?_():C==","||C==";"?_(Ie):O(Yr,Ie)}function Yr(C,F){if(C=="variable"||$.style=="keyword")return $.marked="property",_(Yr);if(F=="?"||C=="number"||C=="string")return _(Yr);if(C==":")return _(Qe);if(C=="[")return _(ae("variable"),$r,ae("]"),Yr);if(C=="(")return O(Si,Yr);if(!C.match(/[;\}\)\],]/))return _()}function on(C,F){return C!="quasi"?O():F.slice(F.length-2)!="${"?_(on):_(Qe,Lt)}function Lt(C){if(C=="}")return $.marked="string-2",$.state.tokenize=G,_(on)}function Nt(C,F){return C=="variable"&&$.stream.match(/^\s*[?:]/,!1)||F=="?"?_(Nt):C==":"?_(Qe):C=="spread"?_(Nt):O(Qe)}function rr(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr);if(F=="|"||C=="."||F=="&")return _(Qe);if(C=="[")return _(Qe,ae("]"),rr);if(F=="extends"||F=="implements")return $.marked="keyword",_(Qe);if(F=="?")return _(Qe,ae(":"),Qe)}function Dn(C,F){if(F=="<")return _(Ae(">"),st(Qe,">"),Z,rr)}function cr(){return O(Qe,sn)}function sn(C,F){if(F=="=")return _(Qe)}function Do(C,F){return F=="enum"?($.marked="keyword",_(Pe)):O(yn,Rn,ur,qu)}function yn(C,F){if(v&&pe(F))return $.marked="keyword",_(yn);if(C=="variable")return j(F),_();if(C=="spread")return _(yn);if(C=="[")return jt(Ws,"]");if(C=="{")return jt(wi,"}")}function wi(C,F){return C=="variable"&&!$.stream.match(/^\s*:/,!1)?(j(F),_(ur)):(C=="variable"&&($.marked="property"),C=="spread"?_(yn):C=="}"?O():C=="["?_(Me,ae("]"),ae(":"),wi):_(ae(":"),yn,ur))}function Ws(){return O(yn,ur)}function ur(C,F){if(F=="=")return _(I)}function qu(C){if(C==",")return _(Do)}function Io(C,F){if(C=="keyword b"&&F=="else")return _(Ae("form","else"),de,Z)}function Aa(C,F){if(F=="await")return _(Aa);if(C=="(")return _(Ae(")"),qs,Z)}function qs(C){return C=="var"?_(Do,xi):C=="variable"?_(xi):O(xi)}function xi(C,F){return C==")"?_():C==";"?_(xi):F=="in"||F=="of"?($.marked="keyword",_(Me,xi)):O(Me,xi)}function ir(C,F){if(F=="*")return $.marked="keyword",_(ir);if(C=="variable")return j(F),_(ir);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,de,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,ir)}function Si(C,F){if(F=="*")return $.marked="keyword",_(Si);if(C=="variable")return j(F),_(Si);if(C=="(")return _(et,Ae(")"),st(fr,")"),Z,zt,Xe);if(v&&F=="<")return _(Ae(">"),st(cr,">"),Z,Si)}function Ma(C,F){if(C=="keyword"||C=="variable")return $.marked="type",_(Ma);if(F=="<")return _(Ae(">"),st(cr,">"),Z)}function fr(C,F){return F=="@"&&_(Me,fr),C=="spread"?_(fr):v&&pe(F)?($.marked="keyword",_(fr)):v&&C=="this"?_(Rn,ur):O(yn,Rn,ur)}function Uu(C,F){return C=="variable"?Fo(C,F):dr(C,F)}function Fo(C,F){if(C=="variable")return j(F),_(dr)}function dr(C,F){if(F=="<")return _(Ae(">"),st(cr,">"),Z,dr);if(F=="extends"||F=="implements"||v&&C==",")return F=="implements"&&($.marked="keyword"),_(v?Qe:Me,dr);if(C=="{")return _(Ae("}"),hr,Z)}function hr(C,F){if(C=="async"||C=="variable"&&(F=="static"||F=="get"||F=="set"||v&&pe(F))&&$.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return $.marked="keyword",_(hr);if(C=="variable"||$.style=="keyword")return $.marked="property",_(so,hr);if(C=="number"||C=="string")return _(so,hr);if(C=="[")return _(Me,Rn,ae("]"),so,hr);if(F=="*")return $.marked="keyword",_(hr);if(v&&C=="(")return O(Si,hr);if(C==";"||C==",")return _(hr);if(C=="}")return _();if(F=="@")return _(Me,hr)}function so(C,F){if(F=="!"||F=="?")return _(so);if(C==":")return _(Qe,ur);if(F=="=")return _(I);var se=$.state.lexical.prev,ve=se&&se.info=="interface";return O(ve?Si:ir)}function Ho(C,F){return F=="*"?($.marked="keyword",_(qo,ae(";"))):F=="default"?($.marked="keyword",_(Me,ae(";"))):C=="{"?_(st(Bo,"}"),qo,ae(";")):O(de)}function Bo(C,F){if(F=="as")return $.marked="keyword",_(ae("variable"));if(C=="variable")return O(I,Bo)}function _i(C){return C=="string"?_():C=="("?O(Me):C=="."?O(ce):O(Wo,Or,qo)}function Wo(C,F){return C=="{"?jt(Wo,"}"):(C=="variable"&&j(F),F=="*"&&($.marked="keyword"),_(Us))}function Or(C){if(C==",")return _(Wo,Or)}function Us(C,F){if(F=="as")return $.marked="keyword",_(Wo)}function qo(C,F){if(F=="from")return $.marked="keyword",_(Me)}function $t(C){return C=="]"?_():O(st(I,"]"))}function Pe(){return O(Ae("form"),yn,ae("{"),Ae("}"),st(Zr,"}"),Z,Z)}function Zr(){return O(yn,ur)}function js(C,F){return C.lastType=="operator"||C.lastType==","||w.test(F.charAt(0))||/[,.]/.test(F.charAt(0))}function Kn(C,F,se){return F.tokenize==P&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(F.lastType)||F.lastType=="quasi"&&/\{\s*$/.test(C.string.slice(0,C.pos-(se||0)))}return{startState:function(C){var F={tokenize:P,lastType:"sof",cc:[],lexical:new Y((C||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new be(null,null,!1),indented:C||0};return s.globalVars&&typeof s.globalVars=="object"&&(F.globalVars=s.globalVars),F},token:function(C,F){if(C.sol()&&(F.lexical.hasOwnProperty("align")||(F.lexical.align=!1),F.indented=C.indentation(),Q(C,F)),F.tokenize!=B&&C.eatSpace())return null;var se=F.tokenize(C,F);return L=="comment"?se:(F.lastType=L=="operator"&&(M=="++"||M=="--")?"incdec":L,R(F,se,L,M,C))},indent:function(C,F){if(C.tokenize==B||C.tokenize==G)return r.Pass;if(C.tokenize!=P)return 0;var se=F&&F.charAt(0),ve=C.lexical,ne;if(!/^\s*else\b/.test(F))for(var Ce=C.cc.length-1;Ce>=0;--Ce){var ft=C.cc[Ce];if(ft==Z)ve=ve.prev;else if(ft!=Io&&ft!=Xe)break}for(;(ve.type=="stat"||ve.type=="form")&&(se=="}"||(ne=C.cc[C.cc.length-1])&&(ne==ce||ne==ue)&&!/^[,\.=+\-*:?[\(]/.test(F));)ve=ve.prev;f&&ve.type==")"&&ve.prev.type=="stat"&&(ve=ve.prev);var Vt=ve.type,bn=se==Vt;return Vt=="vardef"?ve.indented+(C.lastType=="operator"||C.lastType==","?ve.info.length+1:0):Vt=="form"&&se=="{"?ve.indented:Vt=="form"?ve.indented+c:Vt=="stat"?ve.indented+(js(C,F)?f||c:0):ve.info=="switch"&&!bn&&s.doubleIndentSwitch!=!1?ve.indented+(/^(?:case|default)\b/.test(F)?c:2*c):ve.align?ve.column+(bn?0:1):ve.indented+(bn?0:c)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:h?null:"/*",blockCommentEnd:h?null:"*/",blockCommentContinue:h?null:" * ",lineComment:h?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:h?"json":"javascript",jsonldMode:d,jsonMode:h,expressionAllowed:Kn,skipExpression:function(C){R(C,"atom","atom","true",new r.StringStream("",2,null))}}}),r.registerHelper("wordChars","javascript",/[\w$]/),r.defineMIME("text/javascript","javascript"),r.defineMIME("text/ecmascript","javascript"),r.defineMIME("application/javascript","javascript"),r.defineMIME("application/x-javascript","javascript"),r.defineMIME("application/ecmascript","javascript"),r.defineMIME("application/json",{name:"javascript",json:!0}),r.defineMIME("application/x-json",{name:"javascript",json:!0}),r.defineMIME("application/manifest+json",{name:"javascript",json:!0}),r.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),r.defineMIME("text/typescript",{name:"javascript",typescript:!0}),r.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),Fm.exports}Pw();var Bm={exports:{}},Wm;function Rw(){return Wm||(Wm=1,function(e,t){(function(r){r(Bs())})(function(r){var o={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},s={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};r.defineMode("xml",function(c,f){var d=c.indentUnit,h={},p=f.htmlMode?o:s;for(var v in p)h[v]=p[v];for(var v in f)h[v]=f[v];var m,b;function w(_,D){function j(be){return D.tokenize=be,be(_,D)}var re=_.next();if(re=="<")return _.eat("!")?_.eat("[")?_.match("CDATA[")?j(L("atom","]]>")):null:_.match("--")?j(L("comment","-->")):_.match("DOCTYPE",!0,!0)?(_.eatWhile(/[\w\._\-]/),j(M(1))):null:_.eat("?")?(_.eatWhile(/[\w\._\-]/),D.tokenize=L("meta","?>"),"meta"):(m=_.eat("/")?"closeTag":"openTag",D.tokenize=E,"tag bracket");if(re=="&"){var pe;return _.eat("#")?_.eat("x")?pe=_.eatWhile(/[a-fA-F\d]/)&&_.eat(";"):pe=_.eatWhile(/[\d]/)&&_.eat(";"):pe=_.eatWhile(/[\w\.\-:]/)&&_.eat(";"),pe?"atom":"error"}else return _.eatWhile(/[^&<]/),null}w.isInText=!0;function E(_,D){var j=_.next();if(j==">"||j=="/"&&_.eat(">"))return D.tokenize=w,m=j==">"?"endTag":"selfcloseTag","tag bracket";if(j=="=")return m="equals",null;if(j=="<"){D.tokenize=w,D.state=G,D.tagName=D.tagStart=null;var re=D.tokenize(_,D);return re?re+" tag error":"tag error"}else return/[\'\"]/.test(j)?(D.tokenize=N(j),D.stringStartCol=_.column(),D.tokenize(_,D)):(_.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function N(_){var D=function(j,re){for(;!j.eol();)if(j.next()==_){re.tokenize=E;break}return"string"};return D.isInAttribute=!0,D}function L(_,D){return function(j,re){for(;!j.eol();){if(j.match(D)){re.tokenize=w;break}j.next()}return _}}function M(_){return function(D,j){for(var re;(re=D.next())!=null;){if(re=="<")return j.tokenize=M(_+1),j.tokenize(D,j);if(re==">")if(_==1){j.tokenize=w;break}else return j.tokenize=M(_-1),j.tokenize(D,j)}return"meta"}}function T(_){return _&&_.toLowerCase()}function P(_,D,j){this.prev=_.context,this.tagName=D||"",this.indent=_.indented,this.startOfLine=j,(h.doNotIndent.hasOwnProperty(D)||_.context&&_.context.noIndent)&&(this.noIndent=!0)}function A(_){_.context&&(_.context=_.context.prev)}function B(_,D){for(var j;;){if(!_.context||(j=_.context.tagName,!h.contextGrabbers.hasOwnProperty(T(j))||!h.contextGrabbers[T(j)].hasOwnProperty(T(D))))return;A(_)}}function G(_,D,j){return _=="openTag"?(j.tagStart=D.column(),U):_=="closeTag"?Q:G}function U(_,D,j){return _=="word"?(j.tagName=D.current(),b="tag",ee):h.allowMissingTagName&&_=="endTag"?(b="tag bracket",ee(_,D,j)):(b="error",U)}function Q(_,D,j){if(_=="word"){var re=D.current();return j.context&&j.context.tagName!=re&&h.implicitlyClosed.hasOwnProperty(T(j.context.tagName))&&A(j),j.context&&j.context.tagName==re||h.matchClosing===!1?(b="tag",J):(b="tag error",Y)}else return h.allowMissingTagName&&_=="endTag"?(b="tag bracket",J(_,D,j)):(b="error",Y)}function J(_,D,j){return _!="endTag"?(b="error",J):(A(j),G)}function Y(_,D,j){return b="error",J(_,D,j)}function ee(_,D,j){if(_=="word")return b="attribute",R;if(_=="endTag"||_=="selfcloseTag"){var re=j.tagName,pe=j.tagStart;return j.tagName=j.tagStart=null,_=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(T(re))?B(j,re):(B(j,re),j.context=new P(j,re,pe==j.indented)),G}return b="error",ee}function R(_,D,j){return _=="equals"?$:(h.allowMissing||(b="error"),ee(_,D,j))}function $(_,D,j){return _=="string"?O:_=="word"&&h.allowUnquoted?(b="string",ee):(b="error",ee(_,D,j))}function O(_,D,j){return _=="string"?O:ee(_,D,j)}return{startState:function(_){var D={tokenize:w,state:G,indented:_||0,tagName:null,tagStart:null,context:null};return _!=null&&(D.baseIndent=_),D},token:function(_,D){if(!D.tagName&&_.sol()&&(D.indented=_.indentation()),_.eatSpace())return null;m=null;var j=D.tokenize(_,D);return(j||m)&&j!="comment"&&(b=null,D.state=D.state(m||j,_,D),b&&(j=b=="error"?j+" error":b)),j},indent:function(_,D,j){var re=_.context;if(_.tokenize.isInAttribute)return _.tagStart==_.indented?_.stringStartCol+1:_.indented+d;if(re&&re.noIndent)return r.Pass;if(_.tokenize!=E&&_.tokenize!=w)return j?j.match(/^(\s*)/)[0].length:0;if(_.tagName)return h.multilineTagIndentPastTag!==!1?_.tagStart+_.tagName.length+2:_.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(D))return 0;var pe=D&&/^<(\/)?([\w_:\.-]*)/.exec(D);if(pe&&pe[1])for(;re;)if(re.tagName==pe[2]){re=re.prev;break}else if(h.implicitlyClosed.hasOwnProperty(T(re.tagName)))re=re.prev;else break;else if(pe)for(;re;){var be=h.contextGrabbers[T(re.tagName)];if(be&&be.hasOwnProperty(T(pe[2])))re=re.prev;else break}for(;re&&re.prev&&!re.startOfLine;)re=re.prev;return re?re.indent+d:_.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(_){_.state==$&&(_.state=ee)},xmlCurrentTag:function(_){return _.tagName?{name:_.tagName,close:_.type=="closeTag"}:null},xmlCurrentContext:function(_){for(var D=[],j=_.context;j;j=j.prev)D.push(j.tagName);return D.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),Bm.exports}Rw();var qm={exports:{}},Um;function qce(){return Um||(Um=1,function(e,t){(function(r){r(Bs(),Rw(),Pw())})(function(r){function o(c,f,d,h){this.state=c,this.mode=f,this.depth=d,this.prev=h}function s(c){return new o(r.copyState(c.mode,c.state),c.mode,c.depth,c.prev&&s(c.prev))}r.defineMode("jsx",function(c,f){var d=r.getMode(c,{name:"xml",allowMissing:!0,multilineTagIndentPastTag:!1,allowMissingTagName:!0}),h=r.getMode(c,f&&f.base||"javascript");function p(w){var E=w.tagName;w.tagName=null;var N=d.indent(w,"","");return w.tagName=E,N}function v(w,E){return E.context.mode==d?m(w,E,E.context):b(w,E,E.context)}function m(w,E,N){if(N.depth==2)return w.match(/^.*?\*\//)?N.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(N.state);var L=p(N.state),M=N.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?L-=c.indentUnit:N.prev.state.lexical&&(L=N.prev.state.lexical.indented)}else N.depth==1&&(L+=c.indentUnit);return E.context=new o(r.startState(h,L),h,0,E.context),null}if(N.depth==1){if(w.peek()=="<")return d.skipAttribute(N.state),E.context=new o(r.startState(d,p(N.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return N.depth=2,v(w,E)}var T=d.token(w,N.state),P=w.current(),A;return/\btag\b/.test(T)?/>$/.test(P)?N.state.context?N.depth=0:E.context=E.context.prev:/^</.test(P)&&(N.depth=1):!T&&(A=P.indexOf("{"))>-1&&w.backUp(P.length-A),T}function b(w,E,N){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,N.state))return E.context=new o(r.startState(d,h.indent(N.state,"","")),d,0,E.context),h.skipExpression(N.state),null;var L=h.token(w,N.state);if(!L&&N.depth!=null){var M=w.current();M=="{"?N.depth++:M=="}"&&--N.depth==0&&(E.context=E.context.prev)}return L}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:v,indent:function(w,E,N){return w.context.mode.indent(w.context.state,E,N)},innerMode:function(w){return w.context}}},"xml","javascript"),r.defineMIME("text/jsx","jsx"),r.defineMIME("text/typescript-jsx",{name:"jsx",base:{name:"javascript",typescript:!0}})})}()),qm.exports}qce();var jm={exports:{}},Vm;function Uce(){return Vm||(Vm=1,function(e,t){(function(r){r(Bs())})(function(r){r.defineOption("placeholder","",function(p,v,m){var b=m&&m!=r.Init;if(v&&!b)p.on("blur",f),p.on("change",d),p.on("swapDoc",d),r.on(p.getInputField(),"compositionupdate",p.state.placeholderCompose=function(){c(p)}),d(p);else if(!v&&b){p.off("blur",f),p.off("change",d),p.off("swapDoc",d),r.off(p.getInputField(),"compositionupdate",p.state.placeholderCompose),o(p);var w=p.getWrapperElement();w.className=w.className.replace(" CodeMirror-empty","")}v&&!p.hasFocus()&&f(p)});function o(p){p.state.placeholder&&(p.state.placeholder.parentNode.removeChild(p.state.placeholder),p.state.placeholder=null)}function s(p){o(p);var v=p.state.placeholder=document.createElement("pre");v.style.cssText="height: 0; overflow: visible",v.style.direction=p.getOption("direction"),v.className="CodeMirror-placeholder CodeMirror-line-like";var m=p.getOption("placeholder");typeof m=="string"&&(m=document.createTextNode(m)),v.appendChild(m),p.display.lineSpace.insertBefore(v,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var v=!1;if(p.lineCount()==1){var m=p.getInputField();v=m.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(m.querySelector(".CodeMirror-line").textContent)}v?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var v=p.getWrapperElement(),m=h(p);v.className=v.className.replace(" CodeMirror-empty","")+(m?" CodeMirror-empty":""),m?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})}()),jm.exports}Uce();var Gm={exports:{}},Km;function jce(){return Km||(Km=1,function(e,t){(function(r){r(Bs())})(function(r){function o(f,d,h){this.orientation=d,this.scroll=h,this.screen=this.total=this.size=1,this.pos=0,this.node=document.createElement("div"),this.node.className=f+"-"+d,this.inner=this.node.appendChild(document.createElement("div"));var p=this;r.on(this.inner,"mousedown",function(m){if(m.which!=1)return;r.e_preventDefault(m);var b=p.orientation=="horizontal"?"pageX":"pageY",w=m[b],E=p.pos;function N(){r.off(document,"mousemove",L),r.off(document,"mouseup",N)}function L(M){if(M.which!=1)return N();p.moveTo(E+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",L),r.on(document,"mouseup",N)}),r.on(this.node,"click",function(m){r.e_preventDefault(m);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=m.clientX<b.left?-1:m.clientX>b.right?1:0:w=m.clientY<b.top?-1:m.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function v(m){var b=r.wheelEventPixels(m)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(m)}r.on(this.node,"mousewheel",v),r.on(this.node,"DOMMouseScroll",v)}o.prototype.setPos=function(f,d){return f<0&&(f=0),f>this.total-this.screen&&(f=this.total-this.screen),!d&&f==this.pos?!1:(this.pos=f,this.inner.style[this.orientation=="horizontal"?"left":"top"]=f*(this.size/this.total)+"px",!0)},o.prototype.moveTo=function(f){this.setPos(f)&&this.scroll(f,this.orientation)};var s=10;o.prototype.update=function(f,d,h){var p=this.screen!=d||this.total!=f||this.size!=h;p&&(this.screen=d,this.total=f,this.size=h);var v=this.screen*(this.size/this.total);v<s&&(this.size-=s-v,v=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=v+"px",this.setPos(this.pos,p)};function c(f,d,h){this.addClass=f,this.horiz=new o(f,"horizontal",h),d(this.horiz.node),this.vert=new o(f,"vertical",h),d(this.vert.node),this.width=null}c.prototype.update=function(f){if(this.width==null){var d=window.getComputedStyle?window.getComputedStyle(this.horiz.node):this.horiz.node.currentStyle;d&&(this.width=parseInt(d.height))}var h=this.width||0,p=f.scrollWidth>f.clientWidth+1,v=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=v?"block":"none",this.horiz.node.style.display=p?"block":"none",v&&(this.vert.update(f.scrollHeight,f.clientHeight,f.viewHeight-(p?h:0)),this.vert.node.style.bottom=p?h+"px":"0"),p&&(this.horiz.update(f.scrollWidth,f.clientWidth,f.viewWidth-(v?h:0)-f.barLeft),this.horiz.node.style.right=v?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:v?h:0,bottom:p?h:0}},c.prototype.setScrollTop=function(f){this.vert.setPos(f)},c.prototype.setScrollLeft=function(f){this.horiz.setPos(f)},c.prototype.clear=function(){var f=this.horiz.node.parentNode;f.removeChild(this.horiz.node),f.removeChild(this.vert.node)},r.scrollbarModel.simple=function(f,d){return new c("CodeMirror-simplescroll",f,d)},r.scrollbarModel.overlay=function(f,d){return new c("CodeMirror-overlayscroll",f,d)}})}()),Gm.exports}jce();const Hn=On();function Vce(e,t,r={}){const o=Wce.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),Et(t,c=>{if(c!==o.getValue()){s=!0;const f=o.listSelections();o.replaceRange(c,o.posFromIndex(0),o.posFromIndex(Number.POSITIVE_INFINITY)),o.setSelections(f)}},{immediate:!0}),Su(()=>{Hn.value=void 0}),xh(o)}async function Gce(e){var t;dw({file:e.file.id,line:((t=e.location)==null?void 0:t.line)??0,view:"editor",test:null})}const zw=ut({__name:"CodeMirrorContainer",props:Vl({mode:{},readOnly:{type:Boolean},saving:{type:Boolean}},{modelValue:{},modelModifiers:{}}),emits:Vl(["save"],["update:modelValue"]),setup(e,{emit:t}){const r=t,o=ku(e,"modelValue"),s=X_(),c={js:"javascript",mjs:"javascript",cjs:"javascript",ts:{name:"javascript",typescript:!0},mts:{name:"javascript",typescript:!0},cts:{name:"javascript",typescript:!0},jsx:{name:"javascript",jsx:!0},tsx:{name:"javascript",typescript:!0,jsx:!0}},f=je();return Fs(async()=>{const d=Vce(f,o,{...s,mode:c[e.mode||""]||e.mode,readOnly:e.readOnly?!0:void 0,extraKeys:{"Cmd-S":function(h){h.getOption("readOnly")||r("save",h.getValue())},"Ctrl-S":function(h){h.getOption("readOnly")||r("save",h.getValue())}}});d.setSize("100%","100%"),d.clearHistory(),Hn.value=d,setTimeout(()=>Hn.value.refresh(),100)}),(d,h)=>(oe(),ye("div",{relative:"","font-mono":"","text-sm":"",class:it(["codemirror-scrolls",d.saving?"codemirror-busy":void 0])},[te("textarea",{ref_key:"el",ref:f},null,512)],2))}}),Kce=ut({__name:"ViewEditor",props:{file:{}},emits:["draft"],setup(e,{emit:t}){const r=e,o=t,s=je(""),c=On(void 0),f=je(!1),d=je(!0),h=je(!1),p=je();Et(()=>r.file,async()=>{var U;if(!h.value){d.value=!0;try{if(!r.file||!((U=r.file)!=null&&U.filepath)){s.value="",c.value=s.value,f.value=!1,d.value=!1;return}s.value=await mt.rpc.readTestFile(r.file.filepath)||"",c.value=s.value,f.value=!1}catch(Q){console.error("cannot fetch file",Q)}await Pt(),d.value=!1}},{immediate:!0}),Et(()=>[d.value,h.value,r.file,uw.value],([U,Q,J,Y])=>{!U&&!Q&&(Y!=null?Pt(()=>{var $;const ee=p.value,R=ee??{line:Y??0,ch:0};ee?p.value=void 0:(($=Hn.value)==null||$.scrollIntoView(R,100),Pt(()=>{var O,_;(O=Hn.value)==null||O.focus(),(_=Hn.value)==null||_.setCursor(R)}))}):Pt(()=>{var ee;(ee=Hn.value)==null||ee.focus()}))},{flush:"post"});const v=ke(()=>{var U,Q;return((Q=(U=r.file)==null?void 0:U.filepath)==null?void 0:Q.split(/\./g).pop())||"js"}),m=je(),b=ke(()=>{var U;return((U=r.file)==null?void 0:U.tasks.filter(Q=>{var J;return((J=Q.result)==null?void 0:J.state)==="fail"}))||[]}),w=[],E=[],N=[],L=je(!1);function M(){N.forEach(([U,Q,J])=>{U.removeEventListener("click",Q),J()}),N.length=0}hE(m,()=>{var U;(U=Hn.value)==null||U.refresh()});function T(){f.value=c.value!==Hn.value.getValue()}Et(f,U=>{o("draft",U)},{immediate:!0});function P(U){const Q=((U==null?void 0:U.stacks)||[]).filter(O=>{var _;return O.file&&O.file===((_=r.file)==null?void 0:_.filepath)}),J=Q==null?void 0:Q[0];if(!J)return;const Y=document.createElement("div");Y.className="op80 flex gap-x-2 items-center";const ee=document.createElement("pre");ee.className="c-red-600 dark:c-red-400",ee.textContent=`${" ".repeat(J.column)}^ ${(U==null?void 0:U.nameStr)||U.name}: ${(U==null?void 0:U.message)||""}`,Y.appendChild(ee);const R=document.createElement("span");R.className="i-carbon-launch c-red-600 dark:c-red-400 hover:cursor-pointer min-w-1em min-h-1em",R.tabIndex=0,R.ariaLabel="Open in Editor",Mb(R,{content:"Open in Editor",placement:"bottom"},!1);const $=async()=>{await Sw(J.file,J.line,J.column)};R.addEventListener("click",$),Y.appendChild(R),N.push([R,$,()=>Ph(R)]),E.push(Hn.value.addLineClass(J.line-1,"wrap","bg-red-500/10")),w.push(Hn.value.addLineWidget(J.line-1,Y))}const{pause:A,resume:B}=Et([Hn,b,gs],([U,Q,J])=>{if(!U){w.length=0,E.length=0,M();return}J&&(U.off("changes",T),M(),w.forEach(Y=>Y.clear()),E.forEach(Y=>U==null?void 0:U.removeLineClass(Y,"wrap")),w.length=0,E.length=0,setTimeout(()=>{Q.forEach(Y=>{var ee,R;(R=(ee=Y.result)==null?void 0:ee.errors)==null||R.forEach(P)}),L.value||U.clearHistory(),U.on("changes",T)},100))},{flush:"post"});Fh(()=>[gs.value,h.value,p.value],([U,Q],J)=>{var Y;U&&!Q&&J&&J[2]&&((Y=Hn.value)==null||Y.setCursor(J[2]))},{debounce:100,flush:"post"});async function G(U){if(h.value)return;A(),h.value=!0,await Pt();const Q=Hn.value;Q&&(Q.setOption("readOnly",!0),await Pt(),Q.refresh()),p.value=Q==null?void 0:Q.getCursor(),Q==null||Q.off("changes",T),M(),w.forEach(J=>J.clear()),E.forEach(J=>Q==null?void 0:Q.removeLineClass(J,"wrap")),w.length=0,E.length=0;try{L.value=!0,await mt.rpc.saveTestFile(r.file.filepath,U),c.value=U,f.value=!1}catch(J){console.error("error saving file",J)}L.value||Q==null||Q.clearHistory();try{await pm(gs).toBe(!1,{flush:"sync",timeout:1e3,throwOnTimeout:!0}),await pm(gs).toBe(!0,{flush:"sync",timeout:1e3,throwOnTimeout:!1})}catch{}b.value.forEach(J=>{var Y,ee;(ee=(Y=J.result)==null?void 0:Y.errors)==null||ee.forEach(P)}),Q==null||Q.on("changes",T),h.value=!1,await Pt(),Q&&(Q.setOption("readOnly",!1),await Pt(),Q.refresh()),B()}return _h(M),(U,Q)=>{const J=zw;return oe(),nt(J,di({ref_key:"editor",ref:m,modelValue:W(s),"onUpdate:modelValue":Q[0]||(Q[0]=Y=>kt(s)?s.value=Y:null),"h-full":""},{lineNumbers:!0,readOnly:W(Cr),saving:W(h)},{mode:W(v),"data-testid":"code-mirror",onSave:G}),null,16,["modelValue","mode"])}}}),Xce={"w-350":"","max-w-screen":"","h-full":"",flex:"","flex-col":""},Yce={"p-4":"",relative:""},Zce={op50:"","font-mono":"","text-sm":""},Jce={key:0,"p-5":""},Qce={grid:"~ cols-2 rows-[min-content_auto]","overflow-hidden":"","flex-auto":""},eue={key:0},tue={p:"x3 y-1","bg-overlay":"",border:"base b t"},nue=ut({__name:"ModuleTransformResultView",props:{id:{},projectName:{}},emits:["close"],setup(e,{emit:t}){const r=e,o=t,s=QT(()=>mt.rpc.getTransformResult(r.projectName,r.id,!!Po)),c=ke(()=>{var p;return((p=r.id)==null?void 0:p.split(/\./g).pop())||"js"}),f=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.source)==null?void 0:v.trim())||""}),d=ke(()=>{var p,v;return((v=(p=s.value)==null?void 0:p.code)==null?void 0:v.replace(/\/\/# sourceMappingURL=.*\n/,"").trim())||""}),h=ke(()=>{var p,v,m,b;return{mappings:((v=(p=s.value)==null?void 0:p.map)==null?void 0:v.mappings)??"",version:(b=(m=s.value)==null?void 0:m.map)==null?void 0:b.version}});return Yb("Escape",()=>{o("close")}),(p,v)=>{const m=bi,b=zw;return oe(),ye("div",Xce,[te("div",Yce,[v[1]||(v[1]=te("p",null,"Module Info",-1)),te("p",Zce,Be(p.id),1),Oe(m,{icon:"i-carbon-close",absolute:"","top-5px":"","right-5px":"","text-2xl":"",onClick:v[0]||(v[0]=w=>o("close"))})]),W(s)?(oe(),ye(ct,{key:1},[te("div",Qce,[v[2]||(v[2]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t r"}," Source ",-1)),v[3]||(v[3]=te("div",{p:"x3 y-1","bg-overlay":"",border:"base b t"}," Transformed ",-1)),Oe(b,di({"h-full":"","model-value":W(f),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"]),Oe(b,di({"h-full":"","model-value":W(d),"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])]),W(h).mappings!==""?(oe(),ye("div",eue,[te("div",tue," Source map (v"+Be(W(h).version)+") ",1),Oe(b,di({"model-value":W(h).mappings,"read-only":""},{lineNumbers:!0},{mode:W(c)}),null,16,["model-value","mode"])])):Ke("",!0)],64)):(oe(),ye("div",Jce," No transform result found for this module. "))])}}});function rue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var Vd="http://www.w3.org/1999/xhtml";const Xm={svg:"http://www.w3.org/2000/svg",xhtml:Vd,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function Iu(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Xm.hasOwnProperty(t)?{space:Xm[t],local:e}:e}function iue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===Vd&&t.documentElement.namespaceURI===Vd?t.createElement(e):t.createElementNS(r,e)}}function oue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Dw(e){var t=Iu(e);return(t.local?oue:iue)(t)}function sue(){}function Gh(e){return e==null?sue:function(){return this.querySelector(e)}}function lue(e){typeof e!="function"&&(e=Gh(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=new Array(f),h,p,v=0;v<f;++v)(h=c[v])&&(p=e.call(h,h.__data__,v,c))&&("__data__"in h&&(p.__data__=h.__data__),d[v]=p);return new nr(o,this._parents)}function aue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function cue(){return[]}function Iw(e){return e==null?cue:function(){return this.querySelectorAll(e)}}function uue(e){return function(){return aue(e.apply(this,arguments))}}function fue(e){typeof e=="function"?e=uue(e):e=Iw(e);for(var t=this._groups,r=t.length,o=[],s=[],c=0;c<r;++c)for(var f=t[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&(o.push(e.call(h,h.__data__,p,f)),s.push(h));return new nr(o,s)}function Fw(e){return function(){return this.matches(e)}}function Hw(e){return function(t){return t.matches(e)}}var due=Array.prototype.find;function hue(e){return function(){return due.call(this.children,e)}}function pue(){return this.firstElementChild}function gue(e){return this.select(e==null?pue:hue(typeof e=="function"?e:Hw(e)))}var vue=Array.prototype.filter;function mue(){return Array.from(this.children)}function yue(e){return function(){return vue.call(this.children,e)}}function bue(e){return this.selectAll(e==null?mue:yue(typeof e=="function"?e:Hw(e)))}function wue(e){typeof e!="function"&&(e=Fw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new nr(o,this._parents)}function Bw(e){return new Array(e.length)}function xue(){return new nr(this._enter||this._groups.map(Bw),this._parents)}function ou(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}ou.prototype={constructor:ou,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function Sue(e){return function(){return e}}function _ue(e,t,r,o,s,c){for(var f=0,d,h=t.length,p=c.length;f<p;++f)(d=t[f])?(d.__data__=c[f],o[f]=d):r[f]=new ou(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function kue(e,t,r,o,s,c,f){var d,h,p=new Map,v=t.length,m=c.length,b=new Array(v),w;for(d=0;d<v;++d)(h=t[d])&&(b[d]=w=f.call(h,h.__data__,d,t)+"",p.has(w)?s[d]=h:p.set(w,h));for(d=0;d<m;++d)w=f.call(e,c[d],d,c)+"",(h=p.get(w))?(o[d]=h,h.__data__=c[d],p.delete(w)):r[d]=new ou(e,c[d]);for(d=0;d<v;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function Cue(e){return e.__data__}function Tue(e,t){if(!arguments.length)return Array.from(this,Cue);var r=t?kue:_ue,o=this._parents,s=this._groups;typeof e!="function"&&(e=Sue(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var v=o[p],m=s[p],b=m.length,w=Eue(e.call(v,v&&v.__data__,p,o)),E=w.length,N=d[p]=new Array(E),L=f[p]=new Array(E),M=h[p]=new Array(b);r(v,m,N,L,M,w,t);for(var T=0,P=0,A,B;T<E;++T)if(A=N[T]){for(T>=P&&(P=T+1);!(B=L[P])&&++P<E;);A._next=B||null}}return f=new nr(f,o),f._enter=d,f._exit=h,f}function Eue(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function Aue(){return new nr(this._exit||this._groups.map(Bw),this._parents)}function Mue(e,t,r){var o=this.enter(),s=this,c=this.exit();return typeof e=="function"?(o=e(o),o&&(o=o.selection())):o=o.append(e+""),t!=null&&(s=t(s),s&&(s=s.selection())),r==null?c.remove():r(c),o&&s?o.merge(s).order():s}function Lue(e){for(var t=e.selection?e.selection():e,r=this._groups,o=t._groups,s=r.length,c=o.length,f=Math.min(s,c),d=new Array(s),h=0;h<f;++h)for(var p=r[h],v=o[h],m=p.length,b=d[h]=new Array(m),w,E=0;E<m;++E)(w=p[E]||v[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new nr(d,this._parents)}function Nue(){for(var e=this._groups,t=-1,r=e.length;++t<r;)for(var o=e[t],s=o.length-1,c=o[s],f;--s>=0;)(f=o[s])&&(c&&f.compareDocumentPosition(c)^4&&c.parentNode.insertBefore(f,c),c=f);return this}function $ue(e){e||(e=Oue);function t(m,b){return m&&b?e(m.__data__,b.__data__):!m-!b}for(var r=this._groups,o=r.length,s=new Array(o),c=0;c<o;++c){for(var f=r[c],d=f.length,h=s[c]=new Array(d),p,v=0;v<d;++v)(p=f[v])&&(h[v]=p);h.sort(t)}return new nr(s,this._parents).order()}function Oue(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Pue(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function Rue(){return Array.from(this)}function zue(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length;s<c;++s){var f=o[s];if(f)return f}return null}function Due(){let e=0;for(const t of this)++e;return e}function Iue(){return!this.node()}function Fue(e){for(var t=this._groups,r=0,o=t.length;r<o;++r)for(var s=t[r],c=0,f=s.length,d;c<f;++c)(d=s[c])&&e.call(d,d.__data__,c,s);return this}function Hue(e){return function(){this.removeAttribute(e)}}function Bue(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Wue(e,t){return function(){this.setAttribute(e,t)}}function que(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Uue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function jue(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,r)}}function Vue(e,t){var r=Iu(e);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((t==null?r.local?Bue:Hue:typeof t=="function"?r.local?jue:Uue:r.local?que:Wue)(r,t))}function Ww(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Gue(e){return function(){this.style.removeProperty(e)}}function Kue(e,t,r){return function(){this.style.setProperty(e,t,r)}}function Xue(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Yue(e,t,r){return arguments.length>1?this.each((t==null?Gue:typeof t=="function"?Xue:Kue)(e,t,r??"")):Rs(this.node(),e)}function Rs(e,t){return e.style.getPropertyValue(t)||Ww(e).getComputedStyle(e,null).getPropertyValue(t)}function Zue(e){return function(){delete this[e]}}function Jue(e,t){return function(){this[e]=t}}function Que(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function efe(e,t){return arguments.length>1?this.each((t==null?Zue:typeof t=="function"?Que:Jue)(e,t)):this.node()[e]}function qw(e){return e.trim().split(/^|\s+/)}function Kh(e){return e.classList||new Uw(e)}function Uw(e){this._node=e,this._names=qw(e.getAttribute("class")||"")}Uw.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function jw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Vw(e,t){for(var r=Kh(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function tfe(e){return function(){jw(this,e)}}function nfe(e){return function(){Vw(this,e)}}function rfe(e,t){return function(){(t.apply(this,arguments)?jw:Vw)(this,e)}}function ife(e,t){var r=qw(e+"");if(arguments.length<2){for(var o=Kh(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?rfe:t?tfe:nfe)(r,t))}function ofe(){this.textContent=""}function sfe(e){return function(){this.textContent=e}}function lfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function afe(e){return arguments.length?this.each(e==null?ofe:(typeof e=="function"?lfe:sfe)(e)):this.node().textContent}function cfe(){this.innerHTML=""}function ufe(e){return function(){this.innerHTML=e}}function ffe(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function dfe(e){return arguments.length?this.each(e==null?cfe:(typeof e=="function"?ffe:ufe)(e)):this.node().innerHTML}function hfe(){this.nextSibling&&this.parentNode.appendChild(this)}function pfe(){return this.each(hfe)}function gfe(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function vfe(){return this.each(gfe)}function mfe(e){var t=typeof e=="function"?e:Dw(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function yfe(){return null}function bfe(e,t){var r=typeof e=="function"?e:Dw(e),o=t==null?yfe:typeof t=="function"?t:Gh(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function wfe(){var e=this.parentNode;e&&e.removeChild(this)}function xfe(){return this.each(wfe)}function Sfe(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function _fe(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kfe(e){return this.select(e?_fe:Sfe)}function Cfe(e){return arguments.length?this.property("__data__",e):this.node().__data__}function Tfe(e){return function(t){e.call(this,t,this.__data__)}}function Efe(e){return e.trim().split(/^|\s+/).map(function(t){var r="",o=t.indexOf(".");return o>=0&&(r=t.slice(o+1),t=t.slice(0,o)),{type:t,name:r}})}function Afe(e){return function(){var t=this.__on;if(t){for(var r=0,o=-1,s=t.length,c;r<s;++r)c=t[r],(!e.type||c.type===e.type)&&c.name===e.name?this.removeEventListener(c.type,c.listener,c.options):t[++o]=c;++o?t.length=o:delete this.__on}}}function Mfe(e,t,r){return function(){var o=this.__on,s,c=Tfe(t);if(o){for(var f=0,d=o.length;f<d;++f)if((s=o[f]).type===e.type&&s.name===e.name){this.removeEventListener(s.type,s.listener,s.options),this.addEventListener(s.type,s.listener=c,s.options=r),s.value=t;return}}this.addEventListener(e.type,c,r),s={type:e.type,name:e.name,value:t,listener:c,options:r},o?o.push(s):this.__on=[s]}}function Lfe(e,t,r){var o=Efe(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,v;h<p;++h)for(s=0,v=d[h];s<c;++s)if((f=o[s]).type===v.type&&f.name===v.name)return v.value}return}for(d=t?Mfe:Afe,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Gw(e,t,r){var o=Ww(e),s=o.CustomEvent;typeof s=="function"?s=new s(t,r):(s=o.document.createEvent("Event"),r?(s.initEvent(t,r.bubbles,r.cancelable),s.detail=r.detail):s.initEvent(t,!1,!1)),e.dispatchEvent(s)}function Nfe(e,t){return function(){return Gw(this,e,t)}}function $fe(e,t){return function(){return Gw(this,e,t.apply(this,arguments))}}function Ofe(e,t){return this.each((typeof t=="function"?$fe:Nfe)(e,t))}function*Pfe(){for(var e=this._groups,t=0,r=e.length;t<r;++t)for(var o=e[t],s=0,c=o.length,f;s<c;++s)(f=o[s])&&(yield f)}var Kw=[null];function nr(e,t){this._groups=e,this._parents=t}function ka(){return new nr([[document.documentElement]],Kw)}function Rfe(){return this}nr.prototype=ka.prototype={constructor:nr,select:lue,selectAll:fue,selectChild:gue,selectChildren:bue,filter:wue,data:Tue,enter:xue,exit:Aue,join:Mue,merge:Lue,selection:Rfe,order:Nue,sort:$ue,call:Pue,nodes:Rue,node:zue,size:Due,empty:Iue,each:Fue,attr:Vue,style:Yue,property:efe,classed:ife,text:afe,html:dfe,raise:pfe,lower:vfe,append:mfe,insert:bfe,remove:xfe,clone:kfe,datum:Cfe,on:Lfe,dispatch:Ofe,[Symbol.iterator]:Pfe};function Un(e){return typeof e=="string"?new nr([[document.querySelector(e)]],[document.documentElement]):new nr([[e]],Kw)}function zfe(e){let t;for(;t=e.sourceEvent;)e=t;return e}function ai(e,t){if(e=zfe(e),t===void 0&&(t=e.currentTarget),t){var r=t.ownerSVGElement||t;if(r.createSVGPoint){var o=r.createSVGPoint();return o.x=e.clientX,o.y=e.clientY,o=o.matrixTransform(t.getScreenCTM().inverse()),[o.x,o.y]}if(t.getBoundingClientRect){var s=t.getBoundingClientRect();return[e.clientX-s.left-t.clientLeft,e.clientY-s.top-t.clientTop]}}return[e.pageX,e.pageY]}class An{constructor(t,r){this.x=t,this.y=r}static of([t,r]){return new An(t,r)}add(t){return new An(this.x+t.x,this.y+t.y)}subtract(t){return new An(this.x-t.x,this.y-t.y)}multiply(t){return new An(this.x*t,this.y*t)}divide(t){return new An(this.x/t,this.y/t)}dot(t){return this.x*t.x+this.y*t.y}cross(t){return this.x*t.y-t.x*this.y}hadamard(t){return new An(this.x*t.x,this.y*t.y)}length(){return Math.sqrt(this.x**2+this.y**2)}normalize(){const t=this.length();return new An(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new An(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}}var Dfe={value:()=>{}};function Ca(){for(var e=0,t=arguments.length,r={},o;e<t;++e){if(!(o=arguments[e]+"")||o in r||/[\s.]/.test(o))throw new Error("illegal type: "+o);r[o]=[]}return new Nc(r)}function Nc(e){this._=e}function Ife(e,t){return e.trim().split(/^|\s+/).map(function(r){var o="",s=r.indexOf(".");if(s>=0&&(o=r.slice(s+1),r=r.slice(0,s)),r&&!t.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}Nc.prototype=Ca.prototype={constructor:Nc,on:function(e,t){var r=this._,o=Ife(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Ffe(r[s],e.name)))return s;return}if(t!=null&&typeof t!="function")throw new Error("invalid callback: "+t);for(;++c<f;)if(s=(e=o[c]).type)r[s]=Ym(r[s],e.name,t);else if(t==null)for(s in r)r[s]=Ym(r[s],e.name,null);return this},copy:function(){var e={},t=this._;for(var r in t)e[r]=t[r].slice();return new Nc(e)},call:function(e,t){if((s=arguments.length-2)>0)for(var r=new Array(s),o=0,s,c;o<s;++o)r[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(c=this._[e],o=0,s=c.length;o<s;++o)c[o].value.apply(t,r)},apply:function(e,t,r){if(!this._.hasOwnProperty(e))throw new Error("unknown type: "+e);for(var o=this._[e],s=0,c=o.length;s<c;++s)o[s].value.apply(t,r)}};function Ffe(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function Ym(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Dfe,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Hfe={passive:!1},oa={capture:!0,passive:!1};function ld(e){e.stopImmediatePropagation()}function As(e){e.preventDefault(),e.stopImmediatePropagation()}function Xw(e){var t=e.document.documentElement,r=Un(e).on("dragstart.drag",As,oa);"onselectstart"in t?r.on("selectstart.drag",As,oa):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Yw(e,t){var r=e.document.documentElement,o=Un(e).on("dragstart.drag",null);t&&(o.on("click.drag",As,oa),setTimeout(function(){o.on("click.drag",null)},0)),"onselectstart"in r?o.on("selectstart.drag",null):(r.style.MozUserSelect=r.__noselect,delete r.__noselect)}const mc=e=>()=>e;function Gd(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:v}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:r,enumerable:!0,configurable:!0},target:{value:o,enumerable:!0,configurable:!0},identifier:{value:s,enumerable:!0,configurable:!0},active:{value:c,enumerable:!0,configurable:!0},x:{value:f,enumerable:!0,configurable:!0},y:{value:d,enumerable:!0,configurable:!0},dx:{value:h,enumerable:!0,configurable:!0},dy:{value:p,enumerable:!0,configurable:!0},_:{value:v}})}Gd.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Bfe(e){return!e.ctrlKey&&!e.button}function Wfe(){return this.parentNode}function qfe(e,t){return t??{x:e.x,y:e.y}}function Ufe(){return navigator.maxTouchPoints||"ontouchstart"in this}function jfe(){var e=Bfe,t=Wfe,r=qfe,o=Ufe,s={},c=Ca("start","drag","end"),f=0,d,h,p,v,m=0;function b(A){A.on("mousedown.drag",w).filter(o).on("touchstart.drag",L).on("touchmove.drag",M,Hfe).on("touchend.drag touchcancel.drag",T).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(A,B){if(!(v||!e.call(this,A,B))){var G=P(this,t.call(this,A,B),A,B,"mouse");G&&(Un(A.view).on("mousemove.drag",E,oa).on("mouseup.drag",N,oa),Xw(A.view),ld(A),p=!1,d=A.clientX,h=A.clientY,G("start",A))}}function E(A){if(As(A),!p){var B=A.clientX-d,G=A.clientY-h;p=B*B+G*G>m}s.mouse("drag",A)}function N(A){Un(A.view).on("mousemove.drag mouseup.drag",null),Yw(A.view,p),As(A),s.mouse("end",A)}function L(A,B){if(e.call(this,A,B)){var G=A.changedTouches,U=t.call(this,A,B),Q=G.length,J,Y;for(J=0;J<Q;++J)(Y=P(this,U,A,B,G[J].identifier,G[J]))&&(ld(A),Y("start",A,G[J]))}}function M(A){var B=A.changedTouches,G=B.length,U,Q;for(U=0;U<G;++U)(Q=s[B[U].identifier])&&(As(A),Q("drag",A,B[U]))}function T(A){var B=A.changedTouches,G=B.length,U,Q;for(v&&clearTimeout(v),v=setTimeout(function(){v=null},500),U=0;U<G;++U)(Q=s[B[U].identifier])&&(ld(A),Q("end",A,B[U]))}function P(A,B,G,U,Q,J){var Y=c.copy(),ee=ai(J||G,B),R,$,O;if((O=r.call(A,new Gd("beforestart",{sourceEvent:G,target:b,identifier:Q,active:f,x:ee[0],y:ee[1],dx:0,dy:0,dispatch:Y}),U))!=null)return R=O.x-ee[0]||0,$=O.y-ee[1]||0,function _(D,j,re){var pe=ee,be;switch(D){case"start":s[Q]=_,be=f++;break;case"end":delete s[Q],--f;case"drag":ee=ai(re||j,B),be=f;break}Y.call(D,A,new Gd(D,{sourceEvent:j,subject:O,target:b,identifier:Q,active:be,x:ee[0]+R,y:ee[1]+$,dx:ee[0]-pe[0],dy:ee[1]-pe[1],dispatch:Y}),U)}}return b.filter=function(A){return arguments.length?(e=typeof A=="function"?A:mc(!!A),b):e},b.container=function(A){return arguments.length?(t=typeof A=="function"?A:mc(A),b):t},b.subject=function(A){return arguments.length?(r=typeof A=="function"?A:mc(A),b):r},b.touchable=function(A){return arguments.length?(o=typeof A=="function"?A:mc(!!A),b):o},b.on=function(){var A=c.on.apply(c,arguments);return A===c?b:A},b.clickDistance=function(A){return arguments.length?(m=(A=+A)*A,b):Math.sqrt(m)},b}function Xh(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Zw(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Ta(){}var sa=.7,su=1/sa,Ms="\\s*([+-]?\\d+)\\s*",la="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Vr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Vfe=/^#([0-9a-f]{3,8})$/,Gfe=new RegExp(`^rgb\\(${Ms},${Ms},${Ms}\\)$`),Kfe=new RegExp(`^rgb\\(${Vr},${Vr},${Vr}\\)$`),Xfe=new RegExp(`^rgba\\(${Ms},${Ms},${Ms},${la}\\)$`),Yfe=new RegExp(`^rgba\\(${Vr},${Vr},${Vr},${la}\\)$`),Zfe=new RegExp(`^hsl\\(${la},${Vr},${Vr}\\)$`),Jfe=new RegExp(`^hsla\\(${la},${Vr},${Vr},${la}\\)$`),Zm={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};Xh(Ta,aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Jm,formatHex:Jm,formatHex8:Qfe,formatHsl:ede,formatRgb:Qm,toString:Qm});function Jm(){return this.rgb().formatHex()}function Qfe(){return this.rgb().formatHex8()}function ede(){return Jw(this).formatHsl()}function Qm(){return this.rgb().formatRgb()}function aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=Vfe.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?e0(t):r===3?new Vn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?yc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?yc(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Gfe.exec(e))?new Vn(t[1],t[2],t[3],1):(t=Kfe.exec(e))?new Vn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Xfe.exec(e))?yc(t[1],t[2],t[3],t[4]):(t=Yfe.exec(e))?yc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Zfe.exec(e))?r0(t[1],t[2]/100,t[3]/100,1):(t=Jfe.exec(e))?r0(t[1],t[2]/100,t[3]/100,t[4]):Zm.hasOwnProperty(e)?e0(Zm[e]):e==="transparent"?new Vn(NaN,NaN,NaN,0):null}function e0(e){return new Vn(e>>16&255,e>>8&255,e&255,1)}function yc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Vn(e,t,r,o)}function tde(e){return e instanceof Ta||(e=aa(e)),e?(e=e.rgb(),new Vn(e.r,e.g,e.b,e.opacity)):new Vn}function Kd(e,t,r,o){return arguments.length===1?tde(e):new Vn(e,t,r,o??1)}function Vn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Xh(Vn,Kd,Zw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new Vn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Vn(No(this.r),No(this.g),No(this.b),lu(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:t0,formatHex:t0,formatHex8:nde,formatRgb:n0,toString:n0}));function t0(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}`}function nde(){return`#${Eo(this.r)}${Eo(this.g)}${Eo(this.b)}${Eo((isNaN(this.opacity)?1:this.opacity)*255)}`}function n0(){const e=lu(this.opacity);return`${e===1?"rgb(":"rgba("}${No(this.r)}, ${No(this.g)}, ${No(this.b)}${e===1?")":`, ${e})`}`}function lu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function No(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Eo(e){return e=No(e),(e<16?"0":"")+e.toString(16)}function r0(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Sr(e,t,r,o)}function Jw(e){if(e instanceof Sr)return new Sr(e.h,e.s,e.l,e.opacity);if(e instanceof Ta||(e=aa(e)),!e)return new Sr;if(e instanceof Sr)return e;e=e.rgb();var t=e.r/255,r=e.g/255,o=e.b/255,s=Math.min(t,r,o),c=Math.max(t,r,o),f=NaN,d=c-s,h=(c+s)/2;return d?(t===c?f=(r-o)/d+(r<o)*6:r===c?f=(o-t)/d+2:f=(t-r)/d+4,d/=h<.5?c+s:2-c-s,f*=60):d=h>0&&h<1?0:f,new Sr(f,d,h,e.opacity)}function rde(e,t,r,o){return arguments.length===1?Jw(e):new Sr(e,t,r,o??1)}function Sr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Xh(Sr,rde,Zw(Ta,{brighter(e){return e=e==null?su:Math.pow(su,e),new Sr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?sa:Math.pow(sa,e),new Sr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*t,s=2*r-o;return new Vn(ad(e>=240?e-240:e+120,s,o),ad(e,s,o),ad(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Sr(i0(this.h),bc(this.s),bc(this.l),lu(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=lu(this.opacity);return`${e===1?"hsl(":"hsla("}${i0(this.h)}, ${bc(this.s)*100}%, ${bc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function i0(e){return e=(e||0)%360,e<0?e+360:e}function bc(e){return Math.max(0,Math.min(1,e||0))}function ad(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}const Qw=e=>()=>e;function ide(e,t){return function(r){return e+r*t}}function ode(e,t,r){return e=Math.pow(e,r),t=Math.pow(t,r)-e,r=1/r,function(o){return Math.pow(e+o*t,r)}}function sde(e){return(e=+e)==1?e1:function(t,r){return r-t?ode(t,r,e):Qw(isNaN(t)?r:t)}}function e1(e,t){var r=t-e;return r?ide(e,r):Qw(isNaN(e)?t:e)}const o0=function e(t){var r=sde(t);function o(s,c){var f=r((s=Kd(s)).r,(c=Kd(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=e1(s.opacity,c.opacity);return function(v){return s.r=f(v),s.g=d(v),s.b=h(v),s.opacity=p(v),s+""}}return o.gamma=e,o}(1);function qi(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var Xd=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,cd=new RegExp(Xd.source,"g");function lde(e){return function(){return e}}function ade(e){return function(t){return e(t)+""}}function cde(e,t){var r=Xd.lastIndex=cd.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=Xd.exec(e))&&(s=cd.exec(t));)(c=s.index)>r&&(c=t.slice(r,c),d[f]?d[f]+=c:d[++f]=c),(o=o[0])===(s=s[0])?d[f]?d[f]+=s:d[++f]=s:(d[++f]=null,h.push({i:f,x:qi(o,s)})),r=cd.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?ade(h[0].x):lde(t):(t=h.length,function(p){for(var v=0,m;v<t;++v)d[(m=h[v]).i]=m.x(p);return d.join("")})}var s0=180/Math.PI,Yd={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function t1(e,t,r,o,s,c){var f,d,h;return(f=Math.sqrt(e*e+t*t))&&(e/=f,t/=f),(h=e*r+t*o)&&(r-=e*h,o-=t*h),(d=Math.sqrt(r*r+o*o))&&(r/=d,o/=d,h/=d),e*o<t*r&&(e=-e,t=-t,h=-h,f=-f),{translateX:s,translateY:c,rotate:Math.atan2(t,e)*s0,skewX:Math.atan(h)*s0,scaleX:f,scaleY:d}}var wc;function ude(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Yd:t1(t.a,t.b,t.c,t.d,t.e,t.f)}function fde(e){return e==null||(wc||(wc=document.createElementNS("http://www.w3.org/2000/svg","g")),wc.setAttribute("transform",e),!(e=wc.transform.baseVal.consolidate()))?Yd:(e=e.matrix,t1(e.a,e.b,e.c,e.d,e.e,e.f))}function n1(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push("translate(",null,t,null,r);E.push({i:N-4,x:qi(p,m)},{i:N-2,x:qi(v,b)})}else(m||b)&&w.push("translate("+m+t+b+r)}function f(p,v,m,b){p!==v?(p-v>180?v+=360:v-p>180&&(p+=360),b.push({i:m.push(s(m)+"rotate(",null,o)-2,x:qi(p,v)})):v&&m.push(s(m)+"rotate("+v+o)}function d(p,v,m,b){p!==v?b.push({i:m.push(s(m)+"skewX(",null,o)-2,x:qi(p,v)}):v&&m.push(s(m)+"skewX("+v+o)}function h(p,v,m,b,w,E){if(p!==m||v!==b){var N=w.push(s(w)+"scale(",null,",",null,")");E.push({i:N-4,x:qi(p,m)},{i:N-2,x:qi(v,b)})}else(m!==1||b!==1)&&w.push(s(w)+"scale("+m+","+b+")")}return function(p,v){var m=[],b=[];return p=e(p),v=e(v),c(p.translateX,p.translateY,v.translateX,v.translateY,m,b),f(p.rotate,v.rotate,m,b),d(p.skewX,v.skewX,m,b),h(p.scaleX,p.scaleY,v.scaleX,v.scaleY,m,b),p=v=null,function(w){for(var E=-1,N=b.length,L;++E<N;)m[(L=b[E]).i]=L.x(w);return m.join("")}}}var dde=n1(ude,"px, ","px)","deg)"),hde=n1(fde,", ",")",")"),pde=1e-12;function l0(e){return((e=Math.exp(e))+1/e)/2}function gde(e){return((e=Math.exp(e))-1/e)/2}function vde(e){return((e=Math.exp(2*e))-1)/(e+1)}const mde=function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],v=f[0],m=f[1],b=f[2],w=v-d,E=m-h,N=w*w+E*E,L,M;if(N<pde)M=Math.log(b/p)/t,L=function(U){return[d+U*w,h+U*E,p*Math.exp(t*U*M)]};else{var T=Math.sqrt(N),P=(b*b-p*p+o*N)/(2*p*r*T),A=(b*b-p*p-o*N)/(2*b*r*T),B=Math.log(Math.sqrt(P*P+1)-P),G=Math.log(Math.sqrt(A*A+1)-A);M=(G-B)/t,L=function(U){var Q=U*M,J=l0(B),Y=p/(r*T)*(J*vde(t*Q+B)-gde(B));return[d+Y*w,h+Y*E,p*J/l0(t*Q+B)]}}return L.duration=M*1e3*t/Math.SQRT2,L}return s.rho=function(c){var f=Math.max(.001,+c),d=f*f,h=d*d;return e(f,d,h)},s}(Math.SQRT2,2,4);var zs=0,El=0,_l=0,r1=1e3,au,Al,cu=0,Ro=0,Fu=0,ca=typeof performance=="object"&&performance.now?performance:Date,i1=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Yh(){return Ro||(i1(yde),Ro=ca.now()+Fu)}function yde(){Ro=0}function uu(){this._call=this._time=this._next=null}uu.prototype=Zh.prototype={constructor:uu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Yh():+r)+(t==null?0:+t),!this._next&&Al!==this&&(Al?Al._next=this:au=this,Al=this),this._call=e,this._time=r,Zd()},stop:function(){this._call&&(this._call=null,this._time=1/0,Zd())}};function Zh(e,t,r){var o=new uu;return o.restart(e,t,r),o}function bde(){Yh(),++zs;for(var e=au,t;e;)(t=Ro-e._time)>=0&&e._call.call(void 0,t),e=e._next;--zs}function a0(){Ro=(cu=ca.now())+Fu,zs=El=0;try{bde()}finally{zs=0,xde(),Ro=0}}function wde(){var e=ca.now(),t=e-cu;t>r1&&(Fu-=t,cu=e)}function xde(){for(var e,t=au,r,o=1/0;t;)t._call?(o>t._time&&(o=t._time),e=t,t=t._next):(r=t._next,t._next=null,t=e?e._next=r:au=r);Al=e,Zd(o)}function Zd(e){if(!zs){El&&(El=clearTimeout(El));var t=e-Ro;t>24?(e<1/0&&(El=setTimeout(a0,e-ca.now()-Fu)),_l&&(_l=clearInterval(_l))):(_l||(cu=ca.now(),_l=setInterval(wde,r1)),zs=1,i1(a0))}}function c0(e,t,r){var o=new uu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var Sde=Ca("start","end","cancel","interrupt"),_de=[],o1=0,u0=1,Jd=2,$c=3,f0=4,Qd=5,Oc=6;function Hu(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;kde(e,r,{name:t,index:o,group:s,on:Sde,tween:_de,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:o1})}function Jh(e,t){var r=Nr(e,t);if(r.state>o1)throw new Error("too late; already scheduled");return r}function Xr(e,t){var r=Nr(e,t);if(r.state>$c)throw new Error("too late; already running");return r}function Nr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function kde(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Zh(c,0,r.time);function c(p){r.state=u0,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var v,m,b,w;if(r.state!==u0)return h();for(v in o)if(w=o[v],w.name===r.name){if(w.state===$c)return c0(f);w.state===f0?(w.state=Oc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[v]):+v<t&&(w.state=Oc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[v])}if(c0(function(){r.state===$c&&(r.state=f0,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Jd,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Jd){for(r.state=$c,s=new Array(b=r.tween.length),v=0,m=-1;v<b;++v)(w=r.tween[v].value.call(e,e.__data__,r.index,r.group))&&(s[++m]=w);s.length=m+1}}function d(p){for(var v=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Qd,1),m=-1,b=s.length;++m<b;)s[m].call(e,v);r.state===Qd&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Oc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function Pc(e,t){var r=e.__transition,o,s,c=!0,f;if(r){t=t==null?null:t+"";for(f in r){if((o=r[f]).name!==t){c=!1;continue}s=o.state>Jd&&o.state<Qd,o.state=Oc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function Cde(e){return this.each(function(){Pc(this,e)})}function Tde(e,t){var r,o;return function(){var s=Xr(this,e),c=s.tween;if(c!==r){o=r=c;for(var f=0,d=o.length;f<d;++f)if(o[f].name===t){o=o.slice(),o.splice(f,1);break}}s.tween=o}}function Ede(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=Xr(this,e),f=c.tween;if(f!==o){s=(o=f).slice();for(var d={name:t,value:r},h=0,p=s.length;h<p;++h)if(s[h].name===t){s[h]=d;break}h===p&&s.push(d)}c.tween=s}}function Ade(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Nr(this.node(),r).tween,s=0,c=o.length,f;s<c;++s)if((f=o[s]).name===e)return f.value;return null}return this.each((t==null?Tde:Ede)(r,e,t))}function Qh(e,t,r){var o=e._id;return e.each(function(){var s=Xr(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Nr(s,o).value[t]}}function s1(e,t){var r;return(typeof t=="number"?qi:t instanceof aa?o0:(r=aa(t))?(t=r,o0):cde)(e,t)}function Mde(e){return function(){this.removeAttribute(e)}}function Lde(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nde(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttribute(e);return f===s?null:f===o?c:c=t(o=f,r)}}function $de(e,t,r){var o,s=r+"",c;return function(){var f=this.getAttributeNS(e.space,e.local);return f===s?null:f===o?c:c=t(o=f,r)}}function Ode(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttribute(e):(f=this.getAttribute(e),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Pde(e,t,r){var o,s,c;return function(){var f,d=r(this),h;return d==null?void this.removeAttributeNS(e.space,e.local):(f=this.getAttributeNS(e.space,e.local),h=d+"",f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d)))}}function Rde(e,t){var r=Iu(e),o=r==="transform"?hde:s1;return this.attrTween(e,typeof t=="function"?(r.local?Pde:Ode)(r,o,Qh(this,"attr."+e,t)):t==null?(r.local?Lde:Mde)(r):(r.local?$de:Nde)(r,o,t))}function zde(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Dde(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ide(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Dde(e,c)),r}return s._value=t,s}function Fde(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&zde(e,c)),r}return s._value=t,s}function Hde(e,t){var r="attr."+e;if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!="function")throw new Error;var o=Iu(e);return this.tween(r,(o.local?Ide:Fde)(o,t))}function Bde(e,t){return function(){Jh(this,e).delay=+t.apply(this,arguments)}}function Wde(e,t){return t=+t,function(){Jh(this,e).delay=t}}function qde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Bde:Wde)(t,e)):Nr(this.node(),t).delay}function Ude(e,t){return function(){Xr(this,e).duration=+t.apply(this,arguments)}}function jde(e,t){return t=+t,function(){Xr(this,e).duration=t}}function Vde(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Ude:jde)(t,e)):Nr(this.node(),t).duration}function Gde(e,t){if(typeof t!="function")throw new Error;return function(){Xr(this,e).ease=t}}function Kde(e){var t=this._id;return arguments.length?this.each(Gde(t,e)):Nr(this.node(),t).ease}function Xde(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;Xr(this,e).ease=r}}function Yde(e){if(typeof e!="function")throw new Error;return this.each(Xde(this._id,e))}function Zde(e){typeof e!="function"&&(e=Fw(e));for(var t=this._groups,r=t.length,o=new Array(r),s=0;s<r;++s)for(var c=t[s],f=c.length,d=o[s]=[],h,p=0;p<f;++p)(h=c[p])&&e.call(h,h.__data__,p,c)&&d.push(h);return new gi(o,this._parents,this._name,this._id)}function Jde(e){if(e._id!==this._id)throw new Error;for(var t=this._groups,r=e._groups,o=t.length,s=r.length,c=Math.min(o,s),f=new Array(o),d=0;d<c;++d)for(var h=t[d],p=r[d],v=h.length,m=f[d]=new Array(v),b,w=0;w<v;++w)(b=h[w]||p[w])&&(m[w]=b);for(;d<o;++d)f[d]=t[d];return new gi(f,this._parents,this._name,this._id)}function Qde(e){return(e+"").trim().split(/^|\s+/).every(function(t){var r=t.indexOf(".");return r>=0&&(t=t.slice(0,r)),!t||t==="start"})}function ehe(e,t,r){var o,s,c=Qde(t)?Jh:Xr;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function the(e,t){var r=this._id;return arguments.length<2?Nr(this.node(),r).on.on(e):this.each(ehe(r,e,t))}function nhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function rhe(){return this.on("end.remove",nhe(this._id))}function ihe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Gh(e));for(var o=this._groups,s=o.length,c=new Array(s),f=0;f<s;++f)for(var d=o[f],h=d.length,p=c[f]=new Array(h),v,m,b=0;b<h;++b)(v=d[b])&&(m=e.call(v,v.__data__,b,d))&&("__data__"in v&&(m.__data__=v.__data__),p[b]=m,Hu(p[b],t,r,b,p,Nr(v,r)));return new gi(c,this._parents,t,r)}function ohe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Iw(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,v,m=0;m<p;++m)if(v=h[m]){for(var b=e.call(v,v.__data__,m,h),w,E=Nr(v,r),N=0,L=b.length;N<L;++N)(w=b[N])&&Hu(w,t,r,N,b,E);c.push(b),f.push(v)}return new gi(c,f,t,r)}var she=ka.prototype.constructor;function lhe(){return new she(this._groups,this._parents)}function ahe(e,t){var r,o,s;return function(){var c=Rs(this,e),f=(this.style.removeProperty(e),Rs(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function l1(e){return function(){this.style.removeProperty(e)}}function che(e,t,r){var o,s=r+"",c;return function(){var f=Rs(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function uhe(e,t,r){var o,s,c;return function(){var f=Rs(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),Rs(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function fhe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=Xr(this,e),p=h.on,v=h.value[c]==null?d||(d=l1(t)):void 0;(p!==r||s!==v)&&(o=(r=p).copy()).on(f,s=v),h.on=o}}function dhe(e,t,r){var o=(e+="")=="transform"?dde:s1;return t==null?this.styleTween(e,ahe(e,o)).on("end.style."+e,l1(e)):typeof t=="function"?this.styleTween(e,uhe(e,o,Qh(this,"style."+e,t))).each(fhe(this._id,e)):this.styleTween(e,che(e,o,t),r).on("end.style."+e,null)}function hhe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function phe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&hhe(e,f,r)),o}return c._value=t,c}function ghe(e,t,r){var o="style."+(e+="");if(arguments.length<2)return(o=this.tween(o))&&o._value;if(t==null)return this.tween(o,null);if(typeof t!="function")throw new Error;return this.tween(o,phe(e,t,r??""))}function vhe(e){return function(){this.textContent=e}}function mhe(e){return function(){var t=e(this);this.textContent=t??""}}function yhe(e){return this.tween("text",typeof e=="function"?mhe(Qh(this,"text",e)):vhe(e==null?"":e+""))}function bhe(e){return function(t){this.textContent=e.call(this,t)}}function whe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&bhe(s)),t}return o._value=e,o}function xhe(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!="function")throw new Error;return this.tween(t,whe(e))}function She(){for(var e=this._name,t=this._id,r=a1(),o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)if(h=f[p]){var v=Nr(h,t);Hu(h,e,r,p,f,{time:v.time+v.delay+v.duration,delay:0,duration:v.duration,ease:v.ease})}return new gi(o,this._parents,e,r)}function _he(){var e,t,r=this,o=r._id,s=r.size();return new Promise(function(c,f){var d={value:f},h={value:function(){--s===0&&c()}};r.each(function(){var p=Xr(this,o),v=p.on;v!==e&&(t=(e=v).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var khe=0;function gi(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function a1(){return++khe}var oi=ka.prototype;gi.prototype={constructor:gi,select:ihe,selectAll:ohe,selectChild:oi.selectChild,selectChildren:oi.selectChildren,filter:Zde,merge:Jde,selection:lhe,transition:She,call:oi.call,nodes:oi.nodes,node:oi.node,size:oi.size,empty:oi.empty,each:oi.each,on:the,attr:Rde,attrTween:Hde,style:dhe,styleTween:ghe,text:yhe,textTween:xhe,remove:rhe,tween:Ade,delay:qde,duration:Vde,ease:Kde,easeVarying:Yde,end:_he,[Symbol.iterator]:oi[Symbol.iterator]};function Che(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var The={time:null,delay:0,duration:250,ease:Che};function Ehe(e,t){for(var r;!(r=e.__transition)||!(r=r[t]);)if(!(e=e.parentNode))throw new Error(`transition ${t} not found`);return r}function Ahe(e){var t,r;e instanceof gi?(t=e._id,e=e._name):(t=a1(),(r=The).time=Yh(),e=e==null?null:e+"");for(var o=this._groups,s=o.length,c=0;c<s;++c)for(var f=o[c],d=f.length,h,p=0;p<d;++p)(h=f[p])&&Hu(h,e,t,p,f,r||Ehe(h,t));return new gi(o,this._parents,e,t)}ka.prototype.interrupt=Cde;ka.prototype.transition=Ahe;const xc=e=>()=>e;function Mhe(e,{sourceEvent:t,target:r,transform:o,dispatch:s}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},transform:{value:o,enumerable:!0,configurable:!0},_:{value:s}})}function fi(e,t,r){this.k=e,this.x=t,this.y=r}fi.prototype={constructor:fi,scale:function(e){return e===1?this:new fi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fi(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var ep=new fi(1,0,0);fi.prototype;function ud(e){e.stopImmediatePropagation()}function kl(e){e.preventDefault(),e.stopImmediatePropagation()}function Lhe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function Nhe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function d0(){return this.__zoom||ep}function $he(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ohe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Phe(e,t,r){var o=e.invertX(t[0][0])-r[0][0],s=e.invertX(t[1][0])-r[1][0],c=e.invertY(t[0][1])-r[0][1],f=e.invertY(t[1][1])-r[1][1];return e.translate(s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s),f>c?(c+f)/2:Math.min(0,c)||Math.max(0,f))}function Rhe(){var e=Lhe,t=Nhe,r=Phe,o=$he,s=Ohe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=mde,p=Ca("start","zoom","end"),v,m,b,w=500,E=150,N=0,L=10;function M(O){O.property("__zoom",d0).on("wheel.zoom",Q,{passive:!1}).on("mousedown.zoom",J).on("dblclick.zoom",Y).filter(s).on("touchstart.zoom",ee).on("touchmove.zoom",R).on("touchend.zoom touchcancel.zoom",$).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(O,_,D,j){var re=O.selection?O.selection():O;re.property("__zoom",d0),O!==re?B(O,_,D,j):re.interrupt().each(function(){G(this,arguments).event(j).start().zoom(null,typeof _=="function"?_.apply(this,arguments):_).end()})},M.scaleBy=function(O,_,D,j){M.scaleTo(O,function(){var re=this.__zoom.k,pe=typeof _=="function"?_.apply(this,arguments):_;return re*pe},D,j)},M.scaleTo=function(O,_,D,j){M.transform(O,function(){var re=t.apply(this,arguments),pe=this.__zoom,be=D==null?A(re):typeof D=="function"?D.apply(this,arguments):D,Re=pe.invert(be),qe=typeof _=="function"?_.apply(this,arguments):_;return r(P(T(pe,qe),be,Re),re,f)},D,j)},M.translateBy=function(O,_,D,j){M.transform(O,function(){return r(this.__zoom.translate(typeof _=="function"?_.apply(this,arguments):_,typeof D=="function"?D.apply(this,arguments):D),t.apply(this,arguments),f)},null,j)},M.translateTo=function(O,_,D,j,re){M.transform(O,function(){var pe=t.apply(this,arguments),be=this.__zoom,Re=j==null?A(pe):typeof j=="function"?j.apply(this,arguments):j;return r(ep.translate(Re[0],Re[1]).scale(be.k).translate(typeof _=="function"?-_.apply(this,arguments):-_,typeof D=="function"?-D.apply(this,arguments):-D),pe,f)},j,re)};function T(O,_){return _=Math.max(c[0],Math.min(c[1],_)),_===O.k?O:new fi(_,O.x,O.y)}function P(O,_,D){var j=_[0]-D[0]*O.k,re=_[1]-D[1]*O.k;return j===O.x&&re===O.y?O:new fi(O.k,j,re)}function A(O){return[(+O[0][0]+ +O[1][0])/2,(+O[0][1]+ +O[1][1])/2]}function B(O,_,D,j){O.on("start.zoom",function(){G(this,arguments).event(j).start()}).on("interrupt.zoom end.zoom",function(){G(this,arguments).event(j).end()}).tween("zoom",function(){var re=this,pe=arguments,be=G(re,pe).event(j),Re=t.apply(re,pe),qe=D==null?A(Re):typeof D=="function"?D.apply(re,pe):D,et=Math.max(Re[1][0]-Re[0][0],Re[1][1]-Re[0][1]),Ye=re.__zoom,Xe=typeof _=="function"?_.apply(re,pe):_,Ae=h(Ye.invert(qe).concat(et/Ye.k),Xe.invert(qe).concat(et/Xe.k));return function(Z){if(Z===1)Z=Xe;else{var ae=Ae(Z),de=et/ae[2];Z=new fi(de,qe[0]-ae[0]*de,qe[1]-ae[1]*de)}be.zoom(null,Z)}})}function G(O,_,D){return!D&&O.__zooming||new U(O,_)}function U(O,_){this.that=O,this.args=_,this.active=0,this.sourceEvent=null,this.extent=t.apply(O,_),this.taps=0}U.prototype={event:function(O){return O&&(this.sourceEvent=O),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(O,_){return this.mouse&&O!=="mouse"&&(this.mouse[1]=_.invert(this.mouse[0])),this.touch0&&O!=="touch"&&(this.touch0[1]=_.invert(this.touch0[0])),this.touch1&&O!=="touch"&&(this.touch1[1]=_.invert(this.touch1[0])),this.that.__zoom=_,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(O){var _=Un(this.that).datum();p.call(O,this.that,new Mhe(O,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),_)}};function Q(O,..._){if(!e.apply(this,arguments))return;var D=G(this,_).event(O),j=this.__zoom,re=Math.max(c[0],Math.min(c[1],j.k*Math.pow(2,o.apply(this,arguments)))),pe=ai(O);if(D.wheel)(D.mouse[0][0]!==pe[0]||D.mouse[0][1]!==pe[1])&&(D.mouse[1]=j.invert(D.mouse[0]=pe)),clearTimeout(D.wheel);else{if(j.k===re)return;D.mouse=[pe,j.invert(pe)],Pc(this),D.start()}kl(O),D.wheel=setTimeout(be,E),D.zoom("mouse",r(P(T(j,re),D.mouse[0],D.mouse[1]),D.extent,f));function be(){D.wheel=null,D.end()}}function J(O,..._){if(b||!e.apply(this,arguments))return;var D=O.currentTarget,j=G(this,_,!0).event(O),re=Un(O.view).on("mousemove.zoom",qe,!0).on("mouseup.zoom",et,!0),pe=ai(O,D),be=O.clientX,Re=O.clientY;Xw(O.view),ud(O),j.mouse=[pe,this.__zoom.invert(pe)],Pc(this),j.start();function qe(Ye){if(kl(Ye),!j.moved){var Xe=Ye.clientX-be,Ae=Ye.clientY-Re;j.moved=Xe*Xe+Ae*Ae>N}j.event(Ye).zoom("mouse",r(P(j.that.__zoom,j.mouse[0]=ai(Ye,D),j.mouse[1]),j.extent,f))}function et(Ye){re.on("mousemove.zoom mouseup.zoom",null),Yw(Ye.view,j.moved),kl(Ye),j.event(Ye).end()}}function Y(O,..._){if(e.apply(this,arguments)){var D=this.__zoom,j=ai(O.changedTouches?O.changedTouches[0]:O,this),re=D.invert(j),pe=D.k*(O.shiftKey?.5:2),be=r(P(T(D,pe),j,re),t.apply(this,_),f);kl(O),d>0?Un(this).transition().duration(d).call(B,be,j,O):Un(this).call(M.transform,be,j,O)}}function ee(O,..._){if(e.apply(this,arguments)){var D=O.touches,j=D.length,re=G(this,_,O.changedTouches.length===j).event(O),pe,be,Re,qe;for(ud(O),be=0;be<j;++be)Re=D[be],qe=ai(Re,this),qe=[qe,this.__zoom.invert(qe),Re.identifier],re.touch0?!re.touch1&&re.touch0[2]!==qe[2]&&(re.touch1=qe,re.taps=0):(re.touch0=qe,pe=!0,re.taps=1+!!v);v&&(v=clearTimeout(v)),pe&&(re.taps<2&&(m=qe[0],v=setTimeout(function(){v=null},w)),Pc(this),re.start())}}function R(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be,Re,qe;for(kl(O),pe=0;pe<re;++pe)be=j[pe],Re=ai(be,this),D.touch0&&D.touch0[2]===be.identifier?D.touch0[0]=Re:D.touch1&&D.touch1[2]===be.identifier&&(D.touch1[0]=Re);if(be=D.that.__zoom,D.touch1){var et=D.touch0[0],Ye=D.touch0[1],Xe=D.touch1[0],Ae=D.touch1[1],Z=(Z=Xe[0]-et[0])*Z+(Z=Xe[1]-et[1])*Z,ae=(ae=Ae[0]-Ye[0])*ae+(ae=Ae[1]-Ye[1])*ae;be=T(be,Math.sqrt(Z/ae)),Re=[(et[0]+Xe[0])/2,(et[1]+Xe[1])/2],qe=[(Ye[0]+Ae[0])/2,(Ye[1]+Ae[1])/2]}else if(D.touch0)Re=D.touch0[0],qe=D.touch0[1];else return;D.zoom("touch",r(P(be,Re,qe),D.extent,f))}}function $(O,..._){if(this.__zooming){var D=G(this,_).event(O),j=O.changedTouches,re=j.length,pe,be;for(ud(O),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),pe=0;pe<re;++pe)be=j[pe],D.touch0&&D.touch0[2]===be.identifier?delete D.touch0:D.touch1&&D.touch1[2]===be.identifier&&delete D.touch1;if(D.touch1&&!D.touch0&&(D.touch0=D.touch1,delete D.touch1),D.touch0)D.touch0[1]=this.__zoom.invert(D.touch0[0]);else if(D.end(),D.taps===2&&(be=ai(be,this),Math.hypot(m[0]-be[0],m[1]-be[1])<L)){var Re=Un(this).on("dblclick.zoom");Re&&Re.apply(this,arguments)}}}return M.wheelDelta=function(O){return arguments.length?(o=typeof O=="function"?O:xc(+O),M):o},M.filter=function(O){return arguments.length?(e=typeof O=="function"?O:xc(!!O),M):e},M.touchable=function(O){return arguments.length?(s=typeof O=="function"?O:xc(!!O),M):s},M.extent=function(O){return arguments.length?(t=typeof O=="function"?O:xc([[+O[0][0],+O[0][1]],[+O[1][0],+O[1][1]]]),M):t},M.scaleExtent=function(O){return arguments.length?(c[0]=+O[0],c[1]=+O[1],M):[c[0],c[1]]},M.translateExtent=function(O){return arguments.length?(f[0][0]=+O[0][0],f[1][0]=+O[1][0],f[0][1]=+O[0][1],f[1][1]=+O[1][1],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(O){return arguments.length?(r=O,M):r},M.duration=function(O){return arguments.length?(d=+O,M):d},M.interpolate=function(O){return arguments.length?(h=O,M):h},M.on=function(){var O=p.on.apply(p,arguments);return O===p?M:O},M.clickDistance=function(O){return arguments.length?(N=(O=+O)*O,M):Math.sqrt(N)},M.tapDistance=function(O){return arguments.length?(L=+O,M):L},M}function zhe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return c1(this.cover(t,r),t,r,e)}function c1(e,t,r,o){if(isNaN(t)||isNaN(r))return e;var s,c=e._root,f={data:o},d=e._x0,h=e._y0,p=e._x1,v=e._y1,m,b,w,E,N,L,M,T;if(!c)return e._root=f,e;for(;c.length;)if((N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b,s=c,!(c=c[M=L<<1|N]))return s[M]=f,e;if(w=+e._x.call(null,c.data),E=+e._y.call(null,c.data),t===w&&r===E)return f.next=c,s?s[M]=f:e._root=f,e;do s=s?s[M]=new Array(4):e._root=new Array(4),(N=t>=(m=(d+p)/2))?d=m:p=m,(L=r>=(b=(h+v)/2))?h=b:v=b;while((M=L<<1|N)===(T=(E>=b)<<1|w>=m));return s[T]=c,s[M]=f,e}function Dhe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,v=-1/0,m=-1/0;for(r=0;r<o;++r)isNaN(s=+this._x.call(null,t=e[r]))||isNaN(c=+this._y.call(null,t))||(f[r]=s,d[r]=c,s<h&&(h=s),s>v&&(v=s),c<p&&(p=c),c>m&&(m=c));if(h>v||p>m)return this;for(this.cover(h,p).cover(v,m),r=0;r<o;++r)c1(this,f[r],d[r],e[r]);return this}function Ihe(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var r=this._x0,o=this._y0,s=this._x1,c=this._y1;if(isNaN(r))s=(r=Math.floor(e))+1,c=(o=Math.floor(t))+1;else{for(var f=s-r||1,d=this._root,h,p;r>e||e>=s||o>t||t>=c;)switch(p=(t<o)<<1|e<r,h=new Array(4),h[p]=d,d=h,f*=2,p){case 0:s=r+f,c=o+f;break;case 1:r=s-f,c=o+f;break;case 2:s=r+f,o=c-f;break;case 3:r=s-f,o=c-f;break}this._root&&this._root.length&&(this._root=d)}return this._x0=r,this._y0=o,this._x1=s,this._y1=c,this}function Fhe(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Hhe(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]}function Ln(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Bhe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,v=this._x1,m=this._y1,b=[],w=this._root,E,N;for(w&&b.push(new Ln(w,s,c,v,m)),r==null?r=1/0:(s=e-r,c=t-r,v=e+r,m=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>v||(d=E.y0)>m||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var L=(f+h)/2,M=(d+p)/2;b.push(new Ln(w[3],L,M,h,p),new Ln(w[2],f,M,L,p),new Ln(w[1],L,d,h,M),new Ln(w[0],f,d,L,M)),(N=(t>=M)<<1|e>=L)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-N],b[b.length-1-N]=E)}else{var T=e-+this._x.call(null,w.data),P=t-+this._y.call(null,w.data),A=T*T+P*P;if(A<r){var B=Math.sqrt(r=A);s=e-B,c=t-B,v=e+B,m=t+B,o=w.data}}return o}function Whe(e){if(isNaN(v=+this._x.call(null,e))||isNaN(m=+this._y.call(null,e)))return this;var t,r=this._root,o,s,c,f=this._x0,d=this._y0,h=this._x1,p=this._y1,v,m,b,w,E,N,L,M;if(!r)return this;if(r.length)for(;;){if((E=v>=(b=(f+h)/2))?f=b:h=b,(N=m>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[L=N<<1|E]))return this;if(!r.length)break;(t[L+1&3]||t[L+2&3]||t[L+3&3])&&(o=t,M=L)}for(;r.data!==e;)if(s=r,!(r=r.next))return this;return(c=r.next)&&delete r.next,s?(c?s.next=c:delete s.next,this):t?(c?t[L]=c:delete t[L],(r=t[0]||t[1]||t[2]||t[3])&&r===(t[3]||t[2]||t[1]||t[0])&&!r.length&&(o?o[M]=r:this._root=r),this):(this._root=c,this)}function qhe(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Uhe(){return this._root}function jhe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function Vhe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Ln(o,this._x0,this._y0,this._x1,this._y1));r=t.pop();)if(!e(o=r.node,c=r.x0,f=r.y0,d=r.x1,h=r.y1)&&o.length){var p=(c+d)/2,v=(f+h)/2;(s=o[3])&&t.push(new Ln(s,p,v,d,h)),(s=o[2])&&t.push(new Ln(s,c,v,p,h)),(s=o[1])&&t.push(new Ln(s,p,f,d,v)),(s=o[0])&&t.push(new Ln(s,c,f,p,v))}return this}function Ghe(e){var t=[],r=[],o;for(this._root&&t.push(new Ln(this._root,this._x0,this._y0,this._x1,this._y1));o=t.pop();){var s=o.node;if(s.length){var c,f=o.x0,d=o.y0,h=o.x1,p=o.y1,v=(f+h)/2,m=(d+p)/2;(c=s[0])&&t.push(new Ln(c,f,d,v,m)),(c=s[1])&&t.push(new Ln(c,v,d,h,m)),(c=s[2])&&t.push(new Ln(c,f,m,v,p)),(c=s[3])&&t.push(new Ln(c,v,m,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Khe(e){return e[0]}function Xhe(e){return arguments.length?(this._x=e,this):this._x}function Yhe(e){return e[1]}function Zhe(e){return arguments.length?(this._y=e,this):this._y}function tp(e,t,r){var o=new np(t??Khe,r??Yhe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function np(e,t,r,o,s,c){this._x=e,this._y=t,this._x0=r,this._y0=o,this._x1=s,this._y1=c,this._root=void 0}function h0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var Pn=tp.prototype=np.prototype;Pn.copy=function(){var e=new np(this._x,this._y,this._x0,this._y0,this._x1,this._y1),t=this._root,r,o;if(!t)return e;if(!t.length)return e._root=h0(t),e;for(r=[{source:t,target:e._root=new Array(4)}];t=r.pop();)for(var s=0;s<4;++s)(o=t.source[s])&&(o.length?r.push({source:o,target:t.target[s]=new Array(4)}):t.target[s]=h0(o));return e};Pn.add=zhe;Pn.addAll=Dhe;Pn.cover=Ihe;Pn.data=Fhe;Pn.extent=Hhe;Pn.find=Bhe;Pn.remove=Whe;Pn.removeAll=qhe;Pn.root=Uhe;Pn.size=jhe;Pn.visit=Vhe;Pn.visitAfter=Ghe;Pn.x=Xhe;Pn.y=Zhe;function $n(e){return function(){return e}}function Vi(e){return(e()-.5)*1e-6}function Jhe(e){return e.x+e.vx}function Qhe(e){return e.y+e.vy}function epe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=$n(e==null?1:+e));function f(){for(var p,v=t.length,m,b,w,E,N,L,M=0;M<c;++M)for(m=tp(t,Jhe,Qhe).visitAfter(d),p=0;p<v;++p)b=t[p],N=r[b.index],L=N*N,w=b.x+b.vx,E=b.y+b.vy,m.visit(T);function T(P,A,B,G,U){var Q=P.data,J=P.r,Y=N+J;if(Q){if(Q.index>b.index){var ee=w-Q.x-Q.vx,R=E-Q.y-Q.vy,$=ee*ee+R*R;$<Y*Y&&(ee===0&&(ee=Vi(o),$+=ee*ee),R===0&&(R=Vi(o),$+=R*R),$=(Y-($=Math.sqrt($)))/$*s,b.vx+=(ee*=$)*(Y=(J*=J)/(L+J)),b.vy+=(R*=$)*Y,Q.vx-=ee*(Y=1-Y),Q.vy-=R*Y)}return}return A>w+Y||G<w-Y||B>E+Y||U<E-Y}}function d(p){if(p.data)return p.r=r[p.data.index];for(var v=p.r=0;v<4;++v)p[v]&&p[v].r>p.r&&(p.r=p[v].r)}function h(){if(t){var p,v=t.length,m;for(r=new Array(v),p=0;p<v;++p)m=t[p],r[m.index]=+e(m,p,t)}}return f.initialize=function(p,v){t=p,o=v,h()},f.iterations=function(p){return arguments.length?(c=+p,f):c},f.strength=function(p){return arguments.length?(s=+p,f):s},f.radius=function(p){return arguments.length?(e=typeof p=="function"?p:$n(+p),h(),f):e},f}function tpe(e){return e.index}function p0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function npe(e){var t=tpe,r=m,o,s=$n(30),c,f,d,h,p,v=1;e==null&&(e=[]);function m(L){return 1/Math.min(d[L.source.index],d[L.target.index])}function b(L){for(var M=0,T=e.length;M<v;++M)for(var P=0,A,B,G,U,Q,J,Y;P<T;++P)A=e[P],B=A.source,G=A.target,U=G.x+G.vx-B.x-B.vx||Vi(p),Q=G.y+G.vy-B.y-B.vy||Vi(p),J=Math.sqrt(U*U+Q*Q),J=(J-c[P])/J*L*o[P],U*=J,Q*=J,G.vx-=U*(Y=h[P]),G.vy-=Q*Y,B.vx+=U*(Y=1-Y),B.vy+=Q*Y}function w(){if(f){var L,M=f.length,T=e.length,P=new Map(f.map((B,G)=>[t(B,G,f),B])),A;for(L=0,d=new Array(M);L<T;++L)A=e[L],A.index=L,typeof A.source!="object"&&(A.source=p0(P,A.source)),typeof A.target!="object"&&(A.target=p0(P,A.target)),d[A.source.index]=(d[A.source.index]||0)+1,d[A.target.index]=(d[A.target.index]||0)+1;for(L=0,h=new Array(T);L<T;++L)A=e[L],h[L]=d[A.source.index]/(d[A.source.index]+d[A.target.index]);o=new Array(T),E(),c=new Array(T),N()}}function E(){if(f)for(var L=0,M=e.length;L<M;++L)o[L]=+r(e[L],L,e)}function N(){if(f)for(var L=0,M=e.length;L<M;++L)c[L]=+s(e[L],L,e)}return b.initialize=function(L,M){f=L,p=M,w()},b.links=function(L){return arguments.length?(e=L,w(),b):e},b.id=function(L){return arguments.length?(t=L,b):t},b.iterations=function(L){return arguments.length?(v=+L,b):v},b.strength=function(L){return arguments.length?(r=typeof L=="function"?L:$n(+L),E(),b):r},b.distance=function(L){return arguments.length?(s=typeof L=="function"?L:$n(+L),N(),b):s},b}const rpe=1664525,ipe=1013904223,g0=4294967296;function ope(){let e=1;return()=>(e=(rpe*e+ipe)%g0)/g0}function spe(e){return e.x}function lpe(e){return e.y}var ape=10,cpe=Math.PI*(3-Math.sqrt(5));function upe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Zh(m),p=Ca("tick","end"),v=ope();e==null&&(e=[]);function m(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(N){var L,M=e.length,T;N===void 0&&(N=1);for(var P=0;P<N;++P)for(r+=(c-r)*s,d.forEach(function(A){A(r)}),L=0;L<M;++L)T=e[L],T.fx==null?T.x+=T.vx*=f:(T.x=T.fx,T.vx=0),T.fy==null?T.y+=T.vy*=f:(T.y=T.fy,T.vy=0);return t}function w(){for(var N=0,L=e.length,M;N<L;++N){if(M=e[N],M.index=N,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var T=ape*Math.sqrt(.5+N),P=N*cpe;M.x=T*Math.cos(P),M.y=T*Math.sin(P)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function E(N){return N.initialize&&N.initialize(e,v),N}return w(),t={tick:b,restart:function(){return h.restart(m),t},stop:function(){return h.stop(),t},nodes:function(N){return arguments.length?(e=N,w(),d.forEach(E),t):e},alpha:function(N){return arguments.length?(r=+N,t):r},alphaMin:function(N){return arguments.length?(o=+N,t):o},alphaDecay:function(N){return arguments.length?(s=+N,t):+s},alphaTarget:function(N){return arguments.length?(c=+N,t):c},velocityDecay:function(N){return arguments.length?(f=1-N,t):1-f},randomSource:function(N){return arguments.length?(v=N,d.forEach(E),t):v},force:function(N,L){return arguments.length>1?(L==null?d.delete(N):d.set(N,E(L)),t):d.get(N)},find:function(N,L,M){var T=0,P=e.length,A,B,G,U,Q;for(M==null?M=1/0:M*=M,T=0;T<P;++T)U=e[T],A=N-U.x,B=L-U.y,G=A*A+B*B,G<M&&(Q=U,M=G);return Q},on:function(N,L){return arguments.length>1?(p.on(N,L),t):p.on(N)}}}function fpe(){var e,t,r,o,s=$n(-30),c,f=1,d=1/0,h=.81;function p(w){var E,N=e.length,L=tp(e,spe,lpe).visitAfter(m);for(o=w,E=0;E<N;++E)t=e[E],L.visit(b)}function v(){if(e){var w,E=e.length,N;for(c=new Array(E),w=0;w<E;++w)N=e[w],c[N.index]=+s(N,w,e)}}function m(w){var E=0,N,L,M=0,T,P,A;if(w.length){for(T=P=A=0;A<4;++A)(N=w[A])&&(L=Math.abs(N.value))&&(E+=N.value,M+=L,T+=L*N.x,P+=L*N.y);w.x=T/M,w.y=P/M}else{N=w,N.x=N.data.x,N.y=N.data.y;do E+=c[N.data.index];while(N=N.next)}w.value=E}function b(w,E,N,L){if(!w.value)return!0;var M=w.x-t.x,T=w.y-t.y,P=L-E,A=M*M+T*T;if(P*P/h<A)return A<d&&(M===0&&(M=Vi(r),A+=M*M),T===0&&(T=Vi(r),A+=T*T),A<f&&(A=Math.sqrt(f*A)),t.vx+=M*w.value*o/A,t.vy+=T*w.value*o/A),!0;if(w.length||A>=d)return;(w.data!==t||w.next)&&(M===0&&(M=Vi(r),A+=M*M),T===0&&(T=Vi(r),A+=T*T),A<f&&(A=Math.sqrt(f*A)));do w.data!==t&&(P=c[w.data.index]*o/A,t.vx+=M*P,t.vy+=T*P);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,v()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:$n(+w),v(),p):s},p.distanceMin=function(w){return arguments.length?(f=w*w,p):Math.sqrt(f)},p.distanceMax=function(w){return arguments.length?(d=w*w,p):Math.sqrt(d)},p.theta=function(w){return arguments.length?(h=w*w,p):Math.sqrt(h)},p}function dpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vx+=(s[h]-v.x)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:$n(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}function hpe(e){var t=$n(.1),r,o,s;typeof e!="function"&&(e=$n(e==null?0:+e));function c(d){for(var h=0,p=r.length,v;h<p;++h)v=r[h],v.vy+=(s[h]-v.y)*o[h]*d}function f(){if(r){var d,h=r.length;for(o=new Array(h),s=new Array(h),d=0;d<h;++d)o[d]=isNaN(s[d]=+e(r[d],d,r))?0:+t(r[d],d,r)}}return c.initialize=function(d){r=d,f()},c.strength=function(d){return arguments.length?(t=typeof d=="function"?d:$n(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:$n(+d),f(),c):e},c}var ppe=Object.defineProperty,gpe=(e,t,r)=>t in e?ppe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Bt=(e,t,r)=>gpe(e,typeof t!="symbol"?t+"":t,r);function vpe(){return{drag:{end:0,start:.1},filter:{link:1,type:.1,unlinked:{include:.1,exclude:.1}},focus:{acquire:()=>.1,release:()=>.1},initialize:1,labels:{links:{hide:0,show:0},nodes:{hide:0,show:0}},resize:.5}}function v0(e){if(typeof e=="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){const t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1}function Gi(...e){return e.reduce((t,r)=>{if(Array.isArray(r))throw new TypeError("Arguments provided to deepmerge must be objects, not arrays.");return Object.keys(r).forEach(o=>{["__proto__","constructor","prototype"].includes(o)||(Array.isArray(t[o])&&Array.isArray(r[o])?t[o]=Gi.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:v0(t[o])&&v0(r[o])?t[o]=Gi(t[o],r[o]):t[o]=r[o])}),t},{})}const u1={mergeArrays:!0};Gi.options=u1;Gi.withOptions=(e,...t)=>{Gi.options={mergeArrays:!0,...e};const r=Gi(...t);return Gi.options=u1,r};function mpe(){return{centering:{enabled:!0,strength:.1},charge:{enabled:!0,strength:-1},collision:{enabled:!0,strength:1,radiusMultiplier:2},link:{enabled:!0,strength:1,length:128}}}function ype(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function f1(e){e.preventDefault(),e.stopPropagation()}function d1(e){return typeof e=="number"}function ro(e,t){return d1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function bpe(e){return`${e.source.id}-${e.target.id}`}function h1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function wpe(e){return`url(#${h1(e.color)})`}function xpe(e){return{size:e,padding:(t,r)=>ro(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const p1={Arrow:e=>xpe(e)},Spe=(e,t,r)=>[t/2,r/2],_pe=(e,t,r)=>[m0(0,t),m0(0,r)];function m0(e,t){return Math.random()*(t-e)+e}const eh={Centered:Spe,Randomized:_pe};function kpe(){return{autoResize:!1,callbacks:{},hooks:{},initial:ype(),nodeRadius:16,marker:p1.Arrow(4),modifiers:{},positionInitializer:eh.Centered,simulation:{alphas:vpe(),forces:mpe()},zoom:{initial:1,min:.1,max:2}}}function Cpe(e={}){return Gi.withOptions({mergeArrays:!1},kpe(),e)}function Tpe({applyZoom:e,container:t,onDoubleClick:r,onPointerMoved:o,onPointerUp:s,offset:[c,f],scale:d,zoom:h}){const p=t.classed("graph",!0).append("svg").attr("height","100%").attr("width","100%").call(h).on("contextmenu",v=>f1(v)).on("dblclick",v=>r==null?void 0:r(v)).on("dblclick.zoom",null).on("pointermove",v=>o==null?void 0:o(v)).on("pointerup",v=>s==null?void 0:s(v)).style("cursor","grab");return e&&p.call(h.transform,ep.translate(c,f).scale(d)),p.append("g")}function Epe({canvas:e,scale:t,xOffset:r,yOffset:o}){e==null||e.attr("transform",`translate(${r},${o})scale(${t})`)}function Ape({config:e,onDragStart:t,onDragEnd:r}){var o,s;const c=jfe().filter(f=>f.type==="mousedown"?f.button===0:f.type==="touchstart"?f.touches.length===1:!1).on("start",(f,d)=>{f.active===0&&t(f,d),Un(f.sourceEvent.target).classed("grabbed",!0),d.fx=d.x,d.fy=d.y}).on("drag",(f,d)=>{d.fx=f.x,d.fy=f.y}).on("end",(f,d)=>{f.active===0&&r(f,d),Un(f.sourceEvent.target).classed("grabbed",!1),d.fx=void 0,d.fy=void 0});return(s=(o=e.modifiers).drag)==null||s.call(o,c),c}function Mpe({graph:e,filter:t,focusedNode:r,includeUnlinked:o,linkFilter:s}){const c=e.links.filter(h=>t.includes(h.source.type)&&t.includes(h.target.type)&&s(h)),f=h=>c.find(p=>p.source.id===h.id||p.target.id===h.id)!==void 0,d=e.nodes.filter(h=>t.includes(h.type)&&(o||f(h)));return r===void 0||!t.includes(r.type)?{nodes:d,links:c}:Lpe({links:c},r)}function Lpe(e,t){const r=[...Npe(e,t),...$pe(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function Npe(e,t){return g1(e,t,(r,o)=>r.target.id===o.id)}function $pe(e,t){return g1(e,t,(r,o)=>r.source.id===o.id)}function g1(e,t,r){const o=new Set(e.links),s=new Set([t]),c=[];for(;o.size>0;){const f=[...o].filter(d=>[...s].some(h=>r(d,h)));if(f.length===0)return c;f.forEach(d=>{s.add(d.source),s.add(d.target),c.push(d),o.delete(d)})}return c}function th(e){return e.x??0}function nh(e){return e.y??0}function rp({source:e,target:t}){const r=new An(th(e),nh(e)),o=new An(th(t),nh(t)),s=o.subtract(r),c=s.length(),f=s.normalize(),d=f.multiply(-1);return{s:r,t:o,dist:c,norm:f,endNorm:d}}function v1({center:e,node:t}){const r=new An(th(t),nh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new An(0,1))),{n:r,c:o}}function m1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=rp({source:t,target:r}),f=o.add(c.multiply(ro(e,t)-1)),d=s.subtract(c.multiply(e.marker.padding(r,e)));return{start:f,end:d}}function Ope(e){const{start:t,end:r}=m1(e);return`M${t.x},${t.y}
|
|
45
45
|
L${r.x},${r.y}`}function Ppe(e){const{start:t,end:r}=m1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Rpe({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=rp({source:t,target:r}),h=10,p=f.rotateByDegrees(-10).multiply(ro(e,t)-1).add(o),v=d.rotateByDegrees(h).multiply(ro(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),m=1.2*c;return`M${p.x},${p.y}
|
|
46
46
|
A${m},${m},0,0,1,${v.x},${v.y}`}function zpe({center:e,config:t,node:r}){const{n:o,c:s}=v1({center:e,node:r}),c=ro(t,r),f=o.subtract(s),d=f.multiply(1/f.length()),h=d.rotateByDegrees(40).multiply(c-1).add(o),p=d.rotateByDegrees(-40).multiply(c).add(o).add(d.rotateByDegrees(-40).multiply(2*t.marker.size));return`M${h.x},${h.y}
|
|
47
|
-
A${c},${c},0,1,0,${p.x},${p.y}`}function Dpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=rp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Ipe({center:e,config:t,node:r}){const{n:o,c:s}=v1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ro(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ls={line:{labelTransform:Ppe,path:Ope},arc:{labelTransform:Dpe,path:Rpe},reflexive:{labelTransform:Ipe,path:zpe}};function Fpe(e){return e.append("g").classed("links",!0).selectAll("path")}function Hpe({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>bpe(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>wpe(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Bpe(e){Wpe(e),qpe(e)}function Wpe({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Ls.reflexive.path({config:t,node:s.source,center:e}):y1(r,s.source,s.target)?Ls.arc.path({config:t,source:s.source,target:s.target}):Ls.line.path({config:t,source:s.source,target:s.target}))}function qpe({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Ls.reflexive.labelTransform({config:e,node:s.source,center:t}):y1(r,s.source,s.target)?Ls.arc.labelTransform({config:e,source:s.source,target:s.target}):Ls.line.labelTransform({config:e,source:s.source,target:s.target}))}function y1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Upe(e){return e.append("defs").selectAll("marker")}function jpe({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Vpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>h1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Gpe(e.marker.path)),s})}function Vpe(e){return[...new Set(e.links.map(t=>t.color))]}function Gpe(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Kpe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Xpe({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const E=w.append("circle").classed("node",!0).attr("r",L=>ro(e,L)).on("contextmenu",(L,M)=>{f1(L),o(M)}).on("pointerdown",(L,M)=>Zpe(L,M,s??o)).style("fill",L=>L.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const N=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,N),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Ype=500;function Zpe(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Ype){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Jpe(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Qpe({center:e,config:t,graph:r,onTick:o}){var s,c;const f=upe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",dpe(()=>e().x).strength(m)).force("y",hpe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",fpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",epe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",npe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function ege({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Rhe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class tge{constructor(t,r,o){if(Bt(this,"nodeTypes"),Bt(this,"_nodeTypeFilter"),Bt(this,"_includeUnlinked",!0),Bt(this,"_linkFilter",()=>!0),Bt(this,"_showLinkLabels",!0),Bt(this,"_showNodeLabels",!0),Bt(this,"filteredGraph"),Bt(this,"width",0),Bt(this,"height",0),Bt(this,"simulation"),Bt(this,"canvas"),Bt(this,"linkSelection"),Bt(this,"nodeSelection"),Bt(this,"markerSelection"),Bt(this,"zoom"),Bt(this,"drag"),Bt(this,"xOffset",0),Bt(this,"yOffset",0),Bt(this,"scale"),Bt(this,"focusedNode"),Bt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(rue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return An.of([this.width,this.height]).divide(2).subtract(An.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(d1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=jpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Hpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Xpe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Qpe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=ege({config:this.config,canvasContainer:()=>Un(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Tpe({applyZoom:this.scale!==1,container:Un(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Fpe(this.canvas),this.nodeSelection=Kpe(this.canvas),this.markerSelection=Upe(this.canvas),this.drag=Ape({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Jpe(this.nodeSelection),Bpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Un(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){Epe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=Mpe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function y0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function nge(e){return{...e}}function b1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const rge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},ige={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},oge={flex:"~ gap-1","items-center":"","select-none":""},sge=["id","checked","onChange"],lge=["for"],age=ut({__name:"ViewModuleGraph",props:Vl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=ku(e,"modelValue"),{graph:o}=S_(t),s=je(),c=je(!1),f=je(),d=je();Eh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),Fs(()=>{v()}),Su(()=>{var w;(w=d.value)==null||w.shutdown()}),Et(o,()=>v());function h(w,E){var N;(N=d.value)==null||N.filterNodesByType(E,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var E;if((E=d.value)==null||E.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new tge(s.value,o.value,Cpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:N,newWidth:L})=>N===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:p1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?eh.Randomized:eh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(Cr)return;let E=0,N=0,L=0;w.on("pointerdown",(M,T)=>{T.type!=="external"&&(!T.x||!T.y||!m(M)||(E=T.x,N=T.y,L=Date.now()))}).on("pointerup",(M,T)=>{if(T.type==="external"||!T.x||!T.y||!m(M)||Date.now()-L>500)return;const P=T.x-E,A=T.y-N;P**2+A**2<100&&p(T.id)})}return(w,E)=>{var P;const N=bi,L=nue,M=Ow,T=Kr("tooltip");return oe(),ye("div",rge,[te("div",null,[te("div",ige,[te("div",oge,[gt(te("input",{id:"hide-node-modules","onUpdate:modelValue":E[0]||(E[0]=A=>r.value=A),type:"checkbox"},null,512),[[lb,r.value]]),E[4]||(E[4]=te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(oe(!0),ye(ct,null,hi((P=W(d))==null?void 0:P.nodeTypes.sort(),A=>{var B;return oe(),ye("div",{key:A,flex:"~ gap-1","items-center":"","select-none":""},[te("input",{id:`type-${A}`,type:"checkbox",checked:(B=W(d))==null?void 0:B.nodeTypeFilter.includes(A),onChange:G=>h(A,G.target.checked)},null,40,sge),te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${A}`,"border-b-2":"",style:en({"border-color":`var(--color-node-${A})`})},Be(A)+" Modules",13,lge)])}),128)),E[5]||(E[5]=te("div",{"flex-auto":""},null,-1)),te("div",null,[gt(Oe(N,{icon:"i-carbon-reset",onClick:E[1]||(E[1]=A=>v(!0))},null,512),[[T,"Reset",void 0,{bottom:!0}]])])])]),te("div",{ref_key:"el",ref:s},null,512),Oe(M,{modelValue:W(c),"onUpdate:modelValue":E[3]||(E[3]=A=>kt(c)?c.value=A:null),direction:"right"},{default:rt(()=>[W(f)?(oe(),nt(Xy,{key:0},{default:rt(()=>[Oe(L,{id:W(f),"project-name":w.projectName,onClose:E[2]||(E[2]=A=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])])}}}),cge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},uge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},fge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},dge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},hge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},pge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},w1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Kr("tooltip");return t.state==="pass"?(oe(),ye("div",cge)):t.failedSnapshot?gt((oe(),ye("div",uge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),ye("div",fge)):t.mode==="todo"?gt((oe(),ye("div",dge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((oe(),ye("div",hge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),ye("div",pge))}}});function gge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function vge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function mge(e){const t=e.map(o=>vge(o)),r=gge(t);return t.map(({raw:o,id:s})=>b1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function yge(e,t){return b1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function bge(e,t){if(!e)return y0({});const r=mge(e.externalized),o=e.inlined.map(d=>yge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return nge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return y0({nodes:s,links:f})}const wge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},xge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Sge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},_ge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},kge={class:"flex text-lg"},Cge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Tge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Ege={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Age={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Mge=["flex-1"],Lge=ut({__name:"FileDetails",setup(e){const t=je({nodes:[],links:[]}),r=je(!1),o=je(!1),s=je(!1),c=je(void 0),f=je(!0),d=ke(()=>{const T=Jt.value;if(!(!T||!T.filepath))return{filepath:T.filepath,projectName:T.file.projectName||""}}),h=ke(()=>Jt.value&&Dh(Jt.value)),p=ke(()=>{var T,P;return!!((P=(T=Jt.value)==null?void 0:T.meta)!=null&&P.typecheck)});function v(){var P;const T=(P=Jt.value)==null?void 0:P.filepath;T&&fetch(`/__open-in-editor?file=${encodeURIComponent(T)}`)}function m(T){T==="graph"&&(o.value=!0),Yn.value=T}const b=ke(()=>{var T;return((T=Nw.value)==null?void 0:T.reduce((P,{size:A})=>P+A,0))??0});function w(T){r.value=T}const E=/[/\\]node_modules[/\\]/;async function N(T=!1){var P;if(!(s.value||((P=d.value)==null?void 0:P.filepath)===c.value&&!T)){s.value=!0,await Pt();try{const A=d.value;if(!A){s.value=!1;return}if(T||!c.value||A.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let B=await mt.rpc.getModuleGraph(A.projectName,A.filepath,!!Po);f.value&&(Cr&&(B=typeof window.structuredClone<"u"?window.structuredClone(B):WT(B)),B.inlined=B.inlined.filter(G=>!E.test(G)),B.externalized=B.externalized.filter(G=>!E.test(G))),t.value=bge(B,A.filepath),c.value=A.filepath}m("graph")}finally{await new Promise(A=>setTimeout(A,100)),s.value=!1}}}Hh(()=>[d.value,Yn.value,f.value],([,T,P],A)=>{T==="graph"&&N(A&&P!==A[2])},{debounce:100,immediate:!0});const L=ke(()=>{var T;return nw((T=Jt.value)==null?void 0:T.file.projectName)}),M=ke(()=>{switch(L.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,P)=>{var ee,R,$,O;const A=w1,B=bi,G=age,U=Kce,Q=Fce,J=Oce,Y=Kr("tooltip");return W(Jt)?(oe(),ye("div",wge,[te("div",null,[te("div",xge,[Oe(A,{state:(ee=W(Jt).result)==null?void 0:ee.state,mode:W(Jt).mode,"failed-snapshot":W(h)},null,8,["state","mode","failed-snapshot"]),W(p)?gt((oe(),ye("div",Sge,null,512)),[[Y,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),(R=W(Jt))!=null&&R.file.projectName?(oe(),ye("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:en({backgroundColor:W(L),color:W(M)})},Be(W(Jt).file.projectName),5)):Ke("",!0),te("div",_ge,Be(($=W(Jt))==null?void 0:$.name),1),te("div",kge,[W(Cr)?Ke("",!0):gt((oe(),nt(B,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=W(Jt))!=null&&O.filepath),onClick:v},null,8,["disabled"])),[[Y,"Open in editor",void 0,{bottom:!0}]])])]),te("div",Cge,[te("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==null}]),"data-testid":"btn-report",onClick:P[0]||(P[0]=_=>m(null))},P[5]||(P[5]=[te("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),te("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="graph"}]),onClick:P[1]||(P[1]=_=>m("graph"))},[W(s)?(oe(),ye("span",Tge)):(oe(),ye("span",Ege)),P[6]||(P[6]=pt(" Module Graph "))],2),te("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="editor"}]),onClick:P[2]||(P[2]=_=>m("editor"))},[P[7]||(P[7]=te("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+Be(W(r)?"* ":"")+"Code ",1)],2),te("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="console",op20:W(Yn)!=="console"&&W(b)===0}]),onClick:P[3]||(P[3]=_=>m("console"))},[P[8]||(P[8]=te("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+Be(W(b))+") ",1)],2)])]),te("div",Age,[W(o)?(oe(),ye("div",{key:0,"flex-1":W(Yn)==="graph"&&""},[gt(Oe(G,{modelValue:W(f),"onUpdate:modelValue":P[4]||(P[4]=_=>kt(f)?f.value=_:null),graph:W(t),"data-testid":"graph","project-name":W(Jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ji,W(Yn)==="graph"&&!W(s)]])],8,Mge)):Ke("",!0),W(Yn)==="editor"?(oe(),nt(U,{key:W(Jt).id,file:W(Jt),"data-testid":"editor",onDraft:w},null,8,["file"])):W(Yn)==="console"?(oe(),nt(Q,{key:2,file:W(Jt),"data-testid":"console"},null,8,["file"])):W(Yn)?Ke("",!0):(oe(),nt(J,{key:3,file:W(Jt),"data-testid":"report"},null,8,["file"]))])])):Ke("",!0)}}}),Nge={h:"full",flex:"~ col"},$ge={"flex-auto":"","py-1":"","bg-white":""},Oge=["src"],Pge=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),ye("div",Nge,[r[0]||(r[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon:folder-details-reference"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),te("div",$ge,[te("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Oge)])]))}}),Rge={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},zge={"font-bold":""},Dge={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Ige=["font-bold"],Fge={text:"red500/70"},Hge={key:1,text:"sm","mb-2":""},Bge={"font-bold":""},Wge={key:2,text:"sm","mb-2":""},qge={"font-bold":""},Uge={key:3,text:"sm","font-thin":""},jge=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),ye(ct,null,[te("h4",Rge,[te("span",zge,[pt(Be(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),ye(ct,{key:0},[pt(":")],64)):Ke("",!0)]),pt(" "+Be(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),ye("p",Dge,[(oe(!0),ye(ct,null,hi(t.error.stacks,(s,c)=>(oe(),ye("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+Be(s.method)+" "+Be(s.file)+":",1),te("span",Fge,Be(s.line)+":"+Be(s.column),1),r[0]||(r[0]=te("br",null,null,-1))],8,Ige))),128))])):Ke("",!0),t.error.VITEST_TEST_PATH?(oe(),ye("p",Hge,[r[1]||(r[1]=pt(" This error originated in ")),te("span",Bge,Be(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Ke("",!0),t.error.VITEST_TEST_NAME?(oe(),ye("p",Wge,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),te("span",qge,Be(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=te("br",null,null,-1)),r[6]||(r[6]=te("ul",null,[te("li",null," The error was thrown, while Vitest was running this test. "),te("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ke("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),ye("p",Uge,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),te("br",null,null,-1),te("ul",null,[te("li",null," Cancel timeouts using clearTimeout and clearInterval. "),te("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ke("",!0)],64)}}}),Vge={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Gge={class:"number","data-testid":"num-files"},Kge={class:"number"},Xge={class:"number","text-red5":""},Yge={class:"number","text-red5":""},Zge={class:"number","text-red5":""},Jge={class:"number","data-testid":"run-time"},Qge={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},eve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},tve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},nve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=jge;return oe(),ye(ct,null,[te("div",Vge,[r[8]||(r[8]=te("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=te("div",null,"Files",-1)),te("div",Gge,Be(W(Ee).summary.files),1),W(Ee).summary.filesSuccess?(oe(),ye(ct,{key:0},[r[0]||(r[0]=te("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=te("div",null,"Pass",-1)),te("div",Kge,Be(W(Ee).summary.filesSuccess),1)],64)):Ke("",!0),W(Ee).summary.filesFailed?(oe(),ye(ct,{key:1},[r[2]||(r[2]=te("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=te("div",null," Fail ",-1)),te("div",Xge,Be(W(Ee).summary.filesFailed),1)],64)):Ke("",!0),W(Ee).summary.filesSnapshotFailed?(oe(),ye(ct,{key:2},[r[4]||(r[4]=te("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=te("div",null," Snapshot Fail ",-1)),te("div",Yge,Be(W(Ee).summary.filesSnapshotFailed),1)],64)):Ke("",!0),W(Wi).length?(oe(),ye(ct,{key:3},[r[6]||(r[6]=te("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=te("div",null," Errors ",-1)),te("div",Zge,Be(W(Wi).length),1)],64)):Ke("",!0),r[10]||(r[10]=te("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=te("div",null,"Time",-1)),te("div",Jge,Be(W(Ee).summary.time),1)]),W(Wi).length?(oe(),ye("div",Qge,[r[15]||(r[15]=te("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),te("p",eve,[pt(" Vitest caught "+Be(W(Wi).length)+" error"+Be(W(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=te("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),te("details",tve,[r[14]||(r[14]=te("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),ye(ct,null,hi(W(Wi),(s,c)=>(oe(),nt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ke("",!0)],64)}}}),rve=yi(nve,[["__scopeId","data-v-0178ddee"]]),ive={"p-2":"","text-center":"",flex:""},ove={"text-4xl":"","min-w-2em":""},sve={"text-md":""},lve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),ye("div",ive,[te("div",null,[te("div",ove,[mn(t.$slots,"body")]),te("div",sve,[mn(t.$slots,"header")])])]))}}),ave={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},cve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=lve;return oe(),ye("div",ave,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSuccess),1)]),_:1}),Oe(o,{class:it({"text-red5":W(Ee).summary.testsFailed,op50:!W(Ee).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsFailed),1)]),_:1},8,["class"]),W(Ee).summary.testsSkipped?(oe(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSkipped),1)]),_:1})):Ke("",!0),W(Ee).summary.testsTodo?(oe(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsTodo),1)]),_:1})):Ke("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(Be(W(Ee).summary.totalTests),1)]),_:1})])}}}),uve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},fve={key:0,class:"text-gray-5"},dve={"aria-labelledby":"tests",m:"y-4 x-2"},hve=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=cve,s=rve;return oe(),ye("div",uve,[W(Ee).summary.files===0&&W(gs)?(oe(),ye("div",fve," No tests found ")):Ke("",!0),te("section",dve,[Oe(o)]),Oe(s)])}}}),pve={},gve={h:"full",flex:"~ col"},vve={class:"scrolls","flex-auto":"","py-1":""};function mve(e,t){const r=hve;return oe(),ye("div",gve,[t[0]||(t[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon-dashboard"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),te("div",vve,[Oe(r)])])}const yve=yi(pve,[["render",mve]]),bve=["open"],wve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=je(!0);return(r,o)=>(oe(),ye("div",{open:W(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[te("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:it(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),mn(r.$slots,"summary",{open:W(t)}),o[2]||(o[2]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),mn(r.$slots,"default")],40,bve))}}),xve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Sve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),ye("button",xve,[te("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},_ve=["aria-label","data-current"],kve={key:1,"w-4":""},Cve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Tve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Eve={"text-sm":"",truncate:"","font-light":""},Ave=["text","innerHTML"],Mve={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Lve={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Nve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},$ve={key:1},Ove=ut({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=ke(()=>mt.state.idMap.get(e.taskId)),r=ke(()=>{if(Cr)return!1;const L=t.value;return L&&Dh(L)});function o(){var L;if(!e.expandable){(L=e.onItemClick)==null||L.call(e,t.value);return}e.opened?Ee.collapseNode(e.taskId):Ee.expandNode(e.taskId)}async function s(L){var M;(M=e.onItemClick)==null||M.call(e,L),ms.value&&(nu.value=!0,await Pt()),e.type==="file"?await Vh([L.file]):await Yae(L)}function c(L){return mt.rpc.updateSnapshot(L.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(L,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const L=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${L.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>ew(e.name)),v=ke(()=>{const L=vE.value,M=p.value;return L?M.replace(L,T=>`<span class="highlight">${T}</span>`):M}),m=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>m.value?"color-red5 dark:color-#f43f5e":null);function E(){var M;const L=t.value;e.type==="file"?(M=e.onItemClick)==null||M.call(e,L):Gce(L)}const N=ke(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(L,M)=>{const T=w1,P=Sve,A=bi,B=Kr("tooltip");return W(t)?(oe(),ye("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:en(W(d)),"aria-label":L.name,"data-current":L.current,onClick:M[2]||(M[2]=G=>o())},[L.indent>0?(oe(!0),ye(ct,{key:0},hi(W(f),G=>(oe(),ye("div",{key:G,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ke("",!0),L.type==="file"||L.type==="suite"?(oe(),ye("div",kve,[te("div",{class:it(L.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ke("",!0),Oe(T,{state:L.state,mode:W(t).mode,"failed-snapshot":W(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),te("div",Cve,[L.type==="file"&&L.typecheck?gt((oe(),ye("div",Tve,null,512)),[[B,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),te("span",Eve,[L.type==="file"&&L.projectName?(oe(),ye("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:en({backgroundColor:L.projectNameColor,color:W(N)})},Be(L.projectName),5)):Ke("",!0),te("span",{text:L.state==="fail"?"red-500":"",innerHTML:W(v)},null,8,Ave)]),typeof L.duration=="number"?(oe(),ye("span",Mve,Be(L.duration>0?L.duration:"< 1")+"ms ",1)):Ke("",!0)]),te("div",Lve,[!W(Cr)&&W(r)?gt((oe(),nt(P,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=Ac(G=>c(W(t)),["prevent","stop"]))},null,512)),[[B,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),Oe(W(Lb),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",W(w)])},{popper:rt(()=>[W(m)?(oe(),ye("div",Nve,[M[5]||(M[5]=te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),te("div",null,[pt(Be(W(b))+": this feature is not available, you have disabled ",1),M[3]||(M[3]=te("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=pt(" in your configuration file."))]),M[6]||(M[6]=te("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(oe(),ye("div",$ve,Be(W(b)),1))]),default:rt(()=>[Oe(A,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Ac(E,["prevent","stop"])})]),_:1},8,["class"]),W(Cr)?Ke("",!0):gt((oe(),nt(A,{key:1,"data-testid":"btn-run-test",title:W(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=Ac(G=>s(W(t)),["prevent","stop"]))},null,8,["title"])),[[B,W(h),void 0,{bottom:!0}]])])],12,_ve)):Ke("",!0)}}}),Pve=yi(Ove,[["__scopeId","data-v-f7232aed"]]),Rve={"flex-1":"","ms-2":"","select-none":""},zve=ut({__name:"FilterStatus",props:Vl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue");return(r,o)=>(oe(),ye("label",di({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Ac(s=>t.value=!t.value,["prevent"]))}),[te("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(te("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[lb,t.value]]),te("span",Rve,Be(r.label),1)],16))}});function Dve(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function rh(){rh.init||(rh.init=!0,Rc=Dve()!==-1)}var Bu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rh(),Pt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ive=by();my("data-v-b329ee4c");const Fve={class:"resize-observer",tabindex:"-1"};yy();const Hve=Ive((e,t,r,o,s,c)=>(oe(),nt("div",Fve)));Bu.render=Hve;Bu.__scopeId="data-v-b329ee4c";Bu.__file="src/components/ResizeObserver.vue";function zc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zc=function(t){return typeof t}:zc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Bve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wve(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function qve(e,t,r){return t&&Wve(e.prototype,t),e}function b0(e){return Uve(e)||jve(e)||Vve(e)||Gve()}function Uve(e){if(Array.isArray(e))return ih(e)}function jve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Vve(e,t){if(e){if(typeof e=="string")return ih(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ih(e,t)}}function ih(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Gve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kve(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Xve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(b0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(b0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function x1(e,t){if(e===t)return!0;if(zc(e)==="object"){for(var r in e)if(!x1(e[r],t[r]))return!1;return!0}return!1}var Yve=function(){function e(t,r,o){Bve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return qve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Kve(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Xve(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Pt(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function S1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new Yve(e,o,r);e._vue_visibilityState=s}}function Zve(e,t,r){var o=t.value,s=t.oldValue;if(!x1(o,s)){var c=e._vue_visibilityState;if(!o){_1(e);return}c?c.createObserver(o,r):S1(e,{value:o},r)}}function _1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Jve={beforeMount:S1,updated:Zve,unmounted:_1},Qve={itemsLimit:1e3},eme=/(auto|scroll)/;function k1(e,t){return e.parentNode===null?t:k1(e.parentNode,t.concat([e]))}var fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},tme=function(t){return fd(t,"overflow")+fd(t,"overflow-y")+fd(t,"overflow-x")},nme=function(t){return eme.test(tme(t))};function w0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=k1(e.parentNode,[]),r=0;r<t.length;r+=1)if(nme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function oh(e){"@babel/helpers - typeof";return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(e)}var rme={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function ime(){return this.items.length&&oh(this.items[0])!=="object"}var sh=!1;if(typeof window<"u"){sh=!1;try{var ome=Object.defineProperty({},"passive",{get:function(){sh=!0}});window.addEventListener("test",null,ome)}catch{}}let sme=0;var ip={name:"RecycleScroller",components:{ResizeObserver:Bu},directives:{ObserveVisibility:Jve},props:{...rme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:ime,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=xh({id:sme++,index:t,used:!0,key:o,type:s}),f=yh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let N,L,M,T,P;if(!p)N=L=T=P=M=0;else if(this.$_prerender)N=T=0,L=P=Math.min(this.prerender,h.length),M=null;else{const Y=this.getScroll();if(t){let $=Y.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),r===null&&$<c||$<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=Y.start;const ee=this.buffer;Y.start-=ee,Y.end+=ee;let R=0;if(this.$refs.before&&(R=this.$refs.before.scrollHeight,Y.start-=R),this.$refs.after){const $=this.$refs.after.scrollHeight;Y.end+=$}if(r===null){let $,O=0,_=p-1,D=~~(p/2),j;do j=D,$=v[D].accumulator,$<Y.start?O=D:D<p-1&&v[D+1].accumulator>Y.start&&(_=D),D=~~((O+_)/2);while(D!==j);for(D<0&&(D=0),N=D,M=v[p-1].accumulator,L=D;L<p&&v[L].accumulator<Y.end;L++);for(L===-1?L=h.length-1:(L++,L>p&&(L=p)),T=N;T<p&&R+v[T].accumulator<Y.start;T++);for(P=T;P<p&&R+v[P].accumulator<Y.end;P++);}else{N=~~(Y.start/r*o);const $=N%o;N-=$,L=Math.ceil(Y.end/r*o),T=Math.max(0,Math.floor((Y.start-R)/r*o)),P=Math.floor((Y.end-R)/r*o),N<0&&(N=0),L>p&&(L=p),T<0&&(T=0),P>p&&(P=p),M=Math.ceil(p/o)*r}}L-N>Qve.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let A;const B=N<=this.$_endIndex&&L>=this.$_startIndex;if(B)for(let Y=0,ee=w.length;Y<ee;Y++)A=w[Y],A.nr.used&&(e&&(A.nr.index=E[A.item[d]]),(A.nr.index==null||A.nr.index<N||A.nr.index>=L)&&this.unuseView(A));const G=B?null:new Map;let U,Q,J;for(let Y=N;Y<L;Y++){U=h[Y];const ee=d?U[d]:U;if(ee==null)throw new Error(`Key is ${ee} on item (keyField is '${d}')`);if(A=m.get(ee),!r&&!v[Y].size){A&&this.unuseView(A);continue}Q=U[f];let R=b.get(Q),$=!1;if(!A)B?R&&R.length?A=R.pop():A=this.addView(w,Y,U,ee,Q):(J=G.get(Q)||0,(!R||J>=R.length)&&(A=this.addView(w,Y,U,ee,Q),this.unuseView(A,!0),R=b.get(Q)),A=R[J],G.set(Q,J+1)),m.delete(A.nr.key),A.nr.used=!0,A.nr.index=Y,A.nr.key=ee,A.nr.type=Q,m.set(ee,A),$=!0;else if(!A.nr.used&&(A.nr.used=!0,$=!0,R)){const O=R.indexOf(A);O!==-1&&R.splice(O,1)}A.item=U,$&&(Y===h.length-1&&this.$emit("scroll-end"),Y===0&&this.$emit("scroll-start")),r===null?(A.position=v[Y-1].accumulator,A.offset=0):(A.position=Math.floor(Y/o)*r,A.offset=Y%o*s)}return this.$_startIndex=N,this.$_endIndex=L,this.emitUpdate&&this.$emit("update",N,L,T,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=w0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,sh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=w0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const lme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},ame={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function cme(e,t,r,o,s,c){const f=Oo("ResizeObserver"),d=Kr("observe-visibility");return gt((oe(),ye("div",{class:it(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),ye("div",lme,[mn(e.$slots,"before")],512)):Ke("v-if",!0),(oe(),nt(hv(r.listTag),{ref:"wrapper",style:en({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(oe(!0),ye(ct,null,hi(s.pool,h=>(oe(),nt(hv(r.itemTag),di({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},G_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[mn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),mn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),ye("div",ame,[mn(e.$slots,"after")],512)):Ke("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}ip.render=cme;ip.__file="src/components/RecycleScroller.vue";function ume(e){const t=ke(()=>Hd.value?!1:!Je.onlyTests),r=ke(()=>Wn.value===""),o=je(Wn.value);Hh(()=>Wn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Wn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Je.failed=!1,Je.success=!1,Je.skipped=!1,Je.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Os.value&&(cn.value.search=(h==null?void 0:h.trim())??"",cn.value.failed=p,cn.value.success=v,cn.value.skipped=m,cn.value.onlyTests=b)}return Et(()=>[o.value,Je.failed,Je.success,Je.skipped,Je.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ee.filterNodes()},{flush:"post"}),Et(()=>Mr.value.length,h=>{h&&(cn.value.expandAll=void 0)},{flush:"post"}),{initialized:Os,filter:Je,search:Wn,disableFilter:t,isFiltered:tw,isFilteredByStatus:Hd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Pu,testsTotal:mE,uiEntries:Gn}}const fme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},dme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},hme=["op"],pme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},gme={"text-red5":""},vme={"text-yellow5":""},mme={"text-green5":""},yme={class:"text-purple5:50"},bme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},wme=["disabled"],xme=["disabled"],Sme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},_me=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>Du.value.includeTaskLocation),s=je(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:N,testsTotal:L,uiEntries:M}=ume(s),T=je("grid-cols-2"),P=je("grid-col-span-2"),A=je(),{width:B}=Bh();return Et(()=>B.value*(vn.navigation/100),G=>{G<420?(T.value="grid-cols-2",P.value="grid-col-span-2"):(T.value="grid-cols-4",P.value="grid-col-span-4")}),(G,U)=>{const Q=bi,J=zve,Y=Pve,ee=wve,R=Kr("tooltip");return oe(),ye("div",{ref_key:"testExplorerRef",ref:A,h:"full",flex:"~ col"},[te("div",null,[te("div",fme,[mn(G.$slots,"header",{filteredFiles:W(p)||W(v)?W(N):void 0})]),te("div",dme,[U[13]||(U[13]=te("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(te("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=$=>kt(d)?d.value=$:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Nd($=>W(w)(!1),["esc"])),U[2]||(U[2]=Nd($=>r("run",W(p)||W(v)?W(N):void 0),["enter"]))]},null,40,hme),[[dC,W(d)]]),gt(Oe(Q,{disabled:W(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=$=>W(w)(!0))},null,8,["disabled"]),[[R,"Clear search",void 0,{bottom:!0}]])]),te("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(W(T))},[te("div",{class:it(W(P)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=te("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=te("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Oe(Q,{disabled:W(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=$=>W(E)(!1))},null,8,["disabled"]),[[R,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(J,{modelValue:W(f).failed,"onUpdate:modelValue":U[5]||(U[5]=$=>W(f).failed=$),label:"Fail"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).success,"onUpdate:modelValue":U[6]||(U[6]=$=>W(f).success=$),label:"Pass"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=$=>W(f).skipped=$),label:"Skip"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=$=>W(f).onlyTests=$),label:"Only Tests"},null,8,["modelValue"])],2)]),te("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...$)=>W(om)&&W(om)(...$))},[Oe(ee,null,V_({default:rt(()=>[(W(p)||W(v))&&W(M).length===0?(oe(),ye(ct,{key:0},[W(c)?(oe(),ye("div",bme,[U[18]||(U[18]=te("div",{op30:""}," No matched test ",-1)),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(m)?null:"hover:op100"),disabled:W(m),onClickPassive:U[9]||(U[9]=$=>W(w)(!0))}," Clear Search ",42,wme),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(h)?null:"hover:op100"),disabled:W(h),onClickPassive:U[10]||(U[10]=$=>W(E)(!0))}," Clear Filter ",42,xme),te("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...$)=>W(b)&&W(b)(...$))}," Clear All ",32)])):(oe(),ye("div",Sme,U[19]||(U[19]=[te("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),te("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),nt(W(ip),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(M),buffer:100},{default:rt(({item:$})=>[Oe(Y,{class:it(["h-28px m-0 p-0",W(eo)===$.id?"bg-active":""]),"task-id":$.id,expandable:$.expandable,type:$.type,current:W(eo)===$.id,indent:$.indent,name:$.name,typecheck:$.typecheck===!0,"project-name":$.projectName??"","project-name-color":$.projectNameColor??"",state:$.state,duration:$.duration,opened:$.expanded,"disable-task-location":!W(o),"on-item-click":G.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(c)?{name:"summary",fn:rt(()=>[te("div",pme,[te("span",gme," FAIL ("+Be(W(L).failed)+") ",1),U[16]||(U[16]=te("span",null,"/",-1)),te("span",vme," RUNNING ("+Be(W(L).running)+") ",1),te("span",mme," PASS ("+Be(W(L).success)+") ",1),U[17]||(U[17]=te("span",null,"/",-1)),te("span",yme," SKIP ("+Be(W(f).onlyTests?W(L).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),kme=""+new URL("../favicon.svg",import.meta.url).href,Cme={class:"flex text-lg"},Tme=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=ke(()=>_a.value?"light":"dark");async function o(f){ms.value&&(nu.value=!0,await Pt(),to.value&&(ru(!0),await Pt())),f!=null&&f.length?await Vh(f):await Kae()}function s(){Ee.collapseAllNodes()}function c(){Ee.expandAllNodes()}return(f,d)=>{const h=bi,p=_me,v=Kr("tooltip");return oe(),nt(p,{border:"r base","on-item-click":W(VE),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=te("img",{"w-6":"","h-6":"",src:kme,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=te("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),te("div",Cme,[gt(Oe(h,{title:"Collapse tests",disabled:!W(Os),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[ji,!W(vm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Oe(h,{disabled:!W(Os),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[ji,W(vm)],[v,"Expand tests",void 0,{bottom:!0}]]),gt(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>W(ru)(!0))},null,512),[[ji,W(qd)&&!W(ms)||!W(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),W(qd)&&!W(ms)?(oe(),nt(W(Lb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:rt(()=>d[6]||(d[6]=[te("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),te("div",null,"Coverage enabled but missing html reporter."),te("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=te("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ke("",!0),W(ms)?gt((oe(),nt(h,{key:1,disabled:W(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>W(GE)())},null,8,["disabled"])),[[ji,!W(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ke("",!0),W(Ee).summary.failedSnapshot&&!W(Cr)?gt((oe(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!W(Ee).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>W(Ee).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),W(Cr)?Ke("",!0):gt((oe(),nt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),gt(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>W(wce)())},null,512),[[v,`Toggle to ${W(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Eme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Ame=ut({__name:"ProgressBar",setup(e){const{width:t}=Bh(),r=ke(()=>[Ee.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!gs.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesSuccess/d:0}),s=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesFailed/d:0}),c=ke(()=>Ee.summary.files-Ee.summary.filesFailed-Ee.summary.filesSuccess),f=ke(()=>{const d=Ee.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),ye("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:it(W(r))},[te("div",Eme,[te("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(W(r)),style:en(`width: ${W(s)}px;`)}," ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(s)}px; width: ${W(o)}px;`)}," ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(o)+W(s)}px; width: ${W(f)}px;`)}," ",6)])],2))}}),Mme=yi(Ame,[["__scopeId","data-v-16879415"]]),x0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ya("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Lme=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},Nme={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function $me(e,t,r,o,s,c){return oe(),ye("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:en(e.style)},[mn(e.$slots,"default")],4)}const Sc=Lme(Nme,[["render",$me]]),Ome={"h-screen":"","w-screen":"",overflow:"hidden"},Pme=ut({__name:"index",setup(e){const t=jE(),r=dc(m=>{p(),h(m)},0),o=dc(m=>{m.forEach((b,w)=>{wr.value[w]=b.size}),d(m)},0),s=dc(m=>{m.forEach((b,w)=>{Lo.value[w]=b.size}),h(m),v()},0),c=dc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);wr.value[0]=100*b/m,wr.value[1]=100-wr.value[0],d([{size:wr.value[0]},{size:wr.value[1]}])}function d(m){vn.navigation=m[0].size,vn.details.size=m[1].size}function h(m){vn.details.browser=m[0].size,vn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=Mme,E=Tme,N=yve,L=Pge,M=Lge,T=uce,P=Qae;return oe(),ye(ct,null,[Oe(w),te("div",Ome,[Oe(W(x0),{class:"pt-4px",onResized:W(o),onResize:W(c),onReady:f},{default:rt(()=>[Oe(W(Sc),{size:W(wr)[0]},{default:rt(()=>[Oe(E)]),_:1},8,["size"]),Oe(W(Sc),{size:W(wr)[1]},{default:rt(()=>[W(Po)?(oe(),nt(W(x0),{id:"details-splitpanes",key:"browser-detail",onResize:W(r),onResized:W(s)},{default:rt(()=>[Oe(W(Sc),{size:W(Lo)[0],"min-size":"10"},{default:rt(()=>[b[0]||(qc(-1),(b[0]=Oe(T)).cacheIndex=0,qc(1),b[0])]),_:1},8,["size"]),Oe(W(Sc),{size:W(Lo)[1]},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),nt(jk,{key:"ui-detail"},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(P)],64)}}}),Rme=[{name:"index",path:"/",component:Pme,props:!0}];/*!
|
|
47
|
+
A${c},${c},0,1,0,${p.x},${p.y}`}function Dpe({config:e,source:t,target:r}){const{t:o,dist:s,endNorm:c}=rp({source:t,target:r}),f=c.rotateByDegrees(10).multiply(.5*s).add(o);return`translate(${f.x},${f.y})`}function Ipe({center:e,config:t,node:r}){const{n:o,c:s}=v1({center:e,node:r}),c=o.subtract(s),f=c.multiply(1/c.length()).multiply(3*ro(t,r)+8).add(o);return`translate(${f.x},${f.y})`}const Ls={line:{labelTransform:Ppe,path:Ope},arc:{labelTransform:Dpe,path:Rpe},reflexive:{labelTransform:Ipe,path:zpe}};function Fpe(e){return e.append("g").classed("links",!0).selectAll("path")}function Hpe({config:e,graph:t,selection:r,showLabels:o}){const s=r==null?void 0:r.data(t.links,c=>bpe(c)).join(c=>{var f,d,h,p;const v=c.append("g"),m=v.append("path").classed("link",!0).style("marker-end",w=>wpe(w)).style("stroke",w=>w.color);(d=(f=e.modifiers).link)==null||d.call(f,m);const b=v.append("text").classed("link__label",!0).style("fill",w=>w.label?w.label.color:null).style("font-size",w=>w.label?w.label.fontSize:null).text(w=>w.label?w.label.text:null);return(p=(h=e.modifiers).linkLabel)==null||p.call(h,b),v});return s==null||s.select(".link__label").attr("opacity",c=>c.label&&o?1:0),s}function Bpe(e){Wpe(e),qpe(e)}function Wpe({center:e,config:t,graph:r,selection:o}){o==null||o.selectAll("path").attr("d",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"":s.source.id===s.target.id?Ls.reflexive.path({config:t,node:s.source,center:e}):y1(r,s.source,s.target)?Ls.arc.path({config:t,source:s.source,target:s.target}):Ls.line.path({config:t,source:s.source,target:s.target}))}function qpe({config:e,center:t,graph:r,selection:o}){o==null||o.select(".link__label").attr("transform",s=>s.source.x===void 0||s.source.y===void 0||s.target.x===void 0||s.target.y===void 0?"translate(0, 0)":s.source.id===s.target.id?Ls.reflexive.labelTransform({config:e,node:s.source,center:t}):y1(r,s.source,s.target)?Ls.arc.labelTransform({config:e,source:s.source,target:s.target}):Ls.line.labelTransform({config:e,source:s.source,target:s.target}))}function y1(e,t,r){return t.id!==r.id&&e.links.some(o=>o.target.id===t.id&&o.source.id===r.id)&&e.links.some(o=>o.target.id===r.id&&o.source.id===t.id)}function Upe(e){return e.append("defs").selectAll("marker")}function jpe({config:e,graph:t,selection:r}){return r==null?void 0:r.data(Vpe(t),o=>o).join(o=>{const s=o.append("marker").attr("id",c=>h1(c)).attr("markerHeight",4*e.marker.size).attr("markerWidth",4*e.marker.size).attr("markerUnits","userSpaceOnUse").attr("orient","auto").attr("refX",e.marker.ref[0]).attr("refY",e.marker.ref[1]).attr("viewBox",e.marker.viewBox).style("fill",c=>c);return s.append("path").attr("d",Gpe(e.marker.path)),s})}function Vpe(e){return[...new Set(e.links.map(t=>t.color))]}function Gpe(e){const[t,...r]=e;if(!t)return"M0,0";const[o,s]=t;return r.reduce((c,[f,d])=>`${c}L${f},${d}`,`M${o},${s}`)}function Kpe(e){return e.append("g").classed("nodes",!0).selectAll("circle")}function Xpe({config:e,drag:t,graph:r,onNodeContext:o,onNodeSelected:s,selection:c,showLabels:f}){const d=c==null?void 0:c.data(r.nodes,h=>h.id).join(h=>{var p,v,m,b;const w=h.append("g");t!==void 0&&w.call(t);const E=w.append("circle").classed("node",!0).attr("r",L=>ro(e,L)).on("contextmenu",(L,M)=>{f1(L),o(M)}).on("pointerdown",(L,M)=>Zpe(L,M,s??o)).style("fill",L=>L.color);(v=(p=e.modifiers).node)==null||v.call(p,E);const N=w.append("text").classed("node__label",!0).attr("dy","0.33em").style("fill",L=>L.label?L.label.color:null).style("font-size",L=>L.label?L.label.fontSize:null).style("stroke","none").text(L=>L.label?L.label.text:null);return(b=(m=e.modifiers).nodeLabel)==null||b.call(m,N),w});return d==null||d.select(".node").classed("focused",h=>h.isFocused),d==null||d.select(".node__label").attr("opacity",f?1:0),d}const Ype=500;function Zpe(e,t,r){if(e.button!==void 0&&e.button!==0)return;const o=t.lastInteractionTimestamp,s=Date.now();if(o===void 0||s-o>Ype){t.lastInteractionTimestamp=s;return}t.lastInteractionTimestamp=void 0,r(t)}function Jpe(e){e==null||e.attr("transform",t=>`translate(${t.x??0},${t.y??0})`)}function Qpe({center:e,config:t,graph:r,onTick:o}){var s,c;const f=upe(r.nodes),d=t.simulation.forces.centering;if(d&&d.enabled){const m=d.strength;f.force("x",dpe(()=>e().x).strength(m)).force("y",hpe(()=>e().y).strength(m))}const h=t.simulation.forces.charge;h&&h.enabled&&f.force("charge",fpe().strength(h.strength));const p=t.simulation.forces.collision;p&&p.enabled&&f.force("collision",epe().radius(m=>p.radiusMultiplier*ro(t,m)));const v=t.simulation.forces.link;return v&&v.enabled&&f.force("link",npe(r.links).id(m=>m.id).distance(t.simulation.forces.link.length).strength(v.strength)),f.on("tick",()=>o()),(c=(s=t.modifiers).simulation)==null||c.call(s,f),f}function ege({canvasContainer:e,config:t,min:r,max:o,onZoom:s}){var c,f;const d=Rhe().scaleExtent([r,o]).filter(h=>{var p;return h.button===0||((p=h.touches)==null?void 0:p.length)>=2}).on("start",()=>e().classed("grabbed",!0)).on("zoom",h=>s(h)).on("end",()=>e().classed("grabbed",!1));return(f=(c=t.modifiers).zoom)==null||f.call(c,d),d}class tge{constructor(t,r,o){if(Bt(this,"nodeTypes"),Bt(this,"_nodeTypeFilter"),Bt(this,"_includeUnlinked",!0),Bt(this,"_linkFilter",()=>!0),Bt(this,"_showLinkLabels",!0),Bt(this,"_showNodeLabels",!0),Bt(this,"filteredGraph"),Bt(this,"width",0),Bt(this,"height",0),Bt(this,"simulation"),Bt(this,"canvas"),Bt(this,"linkSelection"),Bt(this,"nodeSelection"),Bt(this,"markerSelection"),Bt(this,"zoom"),Bt(this,"drag"),Bt(this,"xOffset",0),Bt(this,"yOffset",0),Bt(this,"scale"),Bt(this,"focusedNode"),Bt(this,"resizeObserver"),this.container=t,this.graph=r,this.config=o,this.scale=o.zoom.initial,this.resetView(),this.graph.nodes.forEach(s=>{const[c,f]=o.positionInitializer(s,this.effectiveWidth,this.effectiveHeight);s.x=s.x??c,s.y=s.y??f}),this.nodeTypes=[...new Set(r.nodes.map(s=>s.type))],this._nodeTypeFilter=[...this.nodeTypes],o.initial){const{includeUnlinked:s,nodeTypeFilter:c,linkFilter:f,showLinkLabels:d,showNodeLabels:h}=o.initial;this._includeUnlinked=s??this._includeUnlinked,this._showLinkLabels=d??this._showLinkLabels,this._showNodeLabels=h??this._showNodeLabels,this._nodeTypeFilter=c??this._nodeTypeFilter,this._linkFilter=f??this._linkFilter}this.filterGraph(void 0),this.initGraph(),this.restart(o.simulation.alphas.initialize),o.autoResize&&(this.resizeObserver=new ResizeObserver(rue(()=>this.resize())),this.resizeObserver.observe(this.container))}get nodeTypeFilter(){return this._nodeTypeFilter}get includeUnlinked(){return this._includeUnlinked}set includeUnlinked(t){this._includeUnlinked=t,this.filterGraph(this.focusedNode);const{include:r,exclude:o}=this.config.simulation.alphas.filter.unlinked,s=t?r:o;this.restart(s)}set linkFilter(t){this._linkFilter=t,this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.link)}get linkFilter(){return this._linkFilter}get showNodeLabels(){return this._showNodeLabels}set showNodeLabels(t){this._showNodeLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.nodes,s=t?o:r;this.restart(s)}get showLinkLabels(){return this._showLinkLabels}set showLinkLabels(t){this._showLinkLabels=t;const{hide:r,show:o}=this.config.simulation.alphas.labels.links,s=t?o:r;this.restart(s)}get effectiveWidth(){return this.width/this.scale}get effectiveHeight(){return this.height/this.scale}get effectiveCenter(){return An.of([this.width,this.height]).divide(2).subtract(An.of([this.xOffset,this.yOffset])).divide(this.scale)}resize(){const t=this.width,r=this.height,o=this.container.getBoundingClientRect().width,s=this.container.getBoundingClientRect().height,c=t.toFixed()!==o.toFixed(),f=r.toFixed()!==s.toFixed();if(!c&&!f)return;this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height;const d=this.config.simulation.alphas.resize;this.restart(d1(d)?d:d({oldWidth:t,oldHeight:r,newWidth:o,newHeight:s}))}restart(t){var r;this.markerSelection=jpe({config:this.config,graph:this.filteredGraph,selection:this.markerSelection}),this.linkSelection=Hpe({config:this.config,graph:this.filteredGraph,selection:this.linkSelection,showLabels:this._showLinkLabels}),this.nodeSelection=Xpe({config:this.config,drag:this.drag,graph:this.filteredGraph,onNodeContext:o=>this.toggleNodeFocus(o),onNodeSelected:this.config.callbacks.nodeClicked,selection:this.nodeSelection,showLabels:this._showNodeLabels}),(r=this.simulation)==null||r.stop(),this.simulation=Qpe({center:()=>this.effectiveCenter,config:this.config,graph:this.filteredGraph,onTick:()=>this.onTick()}).alpha(t).restart()}filterNodesByType(t,r){t?this._nodeTypeFilter.push(r):this._nodeTypeFilter=this._nodeTypeFilter.filter(o=>o!==r),this.filterGraph(this.focusedNode),this.restart(this.config.simulation.alphas.filter.type)}shutdown(){var t,r;this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),(t=this.resizeObserver)==null||t.unobserve(this.container),(r=this.simulation)==null||r.stop()}initGraph(){this.zoom=ege({config:this.config,canvasContainer:()=>Un(this.container).select("svg"),min:this.config.zoom.min,max:this.config.zoom.max,onZoom:t=>this.onZoom(t)}),this.canvas=Tpe({applyZoom:this.scale!==1,container:Un(this.container),offset:[this.xOffset,this.yOffset],scale:this.scale,zoom:this.zoom}),this.applyZoom(),this.linkSelection=Fpe(this.canvas),this.nodeSelection=Kpe(this.canvas),this.markerSelection=Upe(this.canvas),this.drag=Ape({config:this.config,onDragStart:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.start).restart()},onDragEnd:()=>{var t;return(t=this.simulation)==null?void 0:t.alphaTarget(this.config.simulation.alphas.drag.end).restart()}})}onTick(){Jpe(this.nodeSelection),Bpe({config:this.config,center:this.effectiveCenter,graph:this.filteredGraph,selection:this.linkSelection})}resetView(){var t;(t=this.simulation)==null||t.stop(),Un(this.container).selectChildren().remove(),this.zoom=void 0,this.canvas=void 0,this.linkSelection=void 0,this.nodeSelection=void 0,this.markerSelection=void 0,this.simulation=void 0,this.width=this.container.getBoundingClientRect().width,this.height=this.container.getBoundingClientRect().height}onZoom(t){var r,o,s;this.xOffset=t.transform.x,this.yOffset=t.transform.y,this.scale=t.transform.k,this.applyZoom(),(o=(r=this.config.hooks).afterZoom)==null||o.call(r,this.scale,this.xOffset,this.yOffset),(s=this.simulation)==null||s.restart()}applyZoom(){Epe({canvas:this.canvas,scale:this.scale,xOffset:this.xOffset,yOffset:this.yOffset})}toggleNodeFocus(t){t.isFocused?(this.filterGraph(void 0),this.restart(this.config.simulation.alphas.focus.release(t))):this.focusNode(t)}focusNode(t){this.filterGraph(t),this.restart(this.config.simulation.alphas.focus.acquire(t))}filterGraph(t){this.focusedNode!==void 0&&(this.focusedNode.isFocused=!1,this.focusedNode=void 0),t!==void 0&&this._nodeTypeFilter.includes(t.type)&&(t.isFocused=!0,this.focusedNode=t),this.filteredGraph=Mpe({graph:this.graph,filter:this._nodeTypeFilter,focusedNode:this.focusedNode,includeUnlinked:this._includeUnlinked,linkFilter:this._linkFilter})}}function y0({nodes:e,links:t}){return{nodes:e??[],links:t??[]}}function nge(e){return{...e}}function b1(e){return{...e,isFocused:!1,lastInteractionTimestamp:void 0}}const rge={"h-full":"","min-h-75":"","flex-1":"",overflow:"hidden"},ige={flex:"","items-center":"","gap-4":"","px-3":"","py-2":""},oge={flex:"~ gap-1","items-center":"","select-none":""},sge=["id","checked","onChange"],lge=["for"],age=ut({__name:"ViewModuleGraph",props:Vl({graph:{},projectName:{}},{modelValue:{type:Boolean,required:!0},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=e,r=ku(e,"modelValue"),{graph:o}=S_(t),s=je(),c=je(!1),f=je(),d=je();Eh(()=>{c.value===!1&&setTimeout(()=>f.value=void 0,300)},{flush:"post"}),Fs(()=>{v()}),Su(()=>{var w;(w=d.value)==null||w.shutdown()}),Et(o,()=>v());function h(w,E){var N;(N=d.value)==null||N.filterNodesByType(E,w)}function p(w){f.value=w,c.value=!0}function v(w=!1){var E;if((E=d.value)==null||E.shutdown(),w&&!r.value){r.value=!0;return}!o.value||!s.value||(d.value=new tge(s.value,o.value,Cpe({nodeRadius:10,autoResize:!0,simulation:{alphas:{initialize:1,resize:({newHeight:N,newWidth:L})=>N===0&&L===0?0:.25},forces:{collision:{radiusMultiplier:10},link:{length:240}}},marker:p1.Arrow(2),modifiers:{node:b},positionInitializer:o.value.nodes.length>1?eh.Randomized:eh.Centered,zoom:{min:.5,max:2}})))}const m=w=>w.button===0;function b(w){if(Cr)return;let E=0,N=0,L=0;w.on("pointerdown",(M,T)=>{T.type!=="external"&&(!T.x||!T.y||!m(M)||(E=T.x,N=T.y,L=Date.now()))}).on("pointerup",(M,T)=>{if(T.type==="external"||!T.x||!T.y||!m(M)||Date.now()-L>500)return;const P=T.x-E,A=T.y-N;P**2+A**2<100&&p(T.id)})}return(w,E)=>{var P;const N=bi,L=nue,M=Ow,T=Kr("tooltip");return oe(),ye("div",rge,[te("div",null,[te("div",ige,[te("div",oge,[gt(te("input",{id:"hide-node-modules","onUpdate:modelValue":E[0]||(E[0]=A=>r.value=A),type:"checkbox"},null,512),[[lb,r.value]]),E[4]||(E[4]=te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"","select-none":"",truncate:"",for:"hide-node-modules","border-b-2":"",border:"$cm-namespace"},"Hide node_modules",-1))]),(oe(!0),ye(ct,null,hi((P=W(d))==null?void 0:P.nodeTypes.sort(),A=>{var B;return oe(),ye("div",{key:A,flex:"~ gap-1","items-center":"","select-none":""},[te("input",{id:`type-${A}`,type:"checkbox",checked:(B=W(d))==null?void 0:B.nodeTypeFilter.includes(A),onChange:G=>h(A,G.target.checked)},null,40,sge),te("label",{"font-light":"","text-sm":"","ws-nowrap":"","overflow-hidden":"",capitalize:"","select-none":"",truncate:"",for:`type-${A}`,"border-b-2":"",style:en({"border-color":`var(--color-node-${A})`})},Be(A)+" Modules",13,lge)])}),128)),E[5]||(E[5]=te("div",{"flex-auto":""},null,-1)),te("div",null,[gt(Oe(N,{icon:"i-carbon-reset",onClick:E[1]||(E[1]=A=>v(!0))},null,512),[[T,"Reset",void 0,{bottom:!0}]])])])]),te("div",{ref_key:"el",ref:s},null,512),Oe(M,{modelValue:W(c),"onUpdate:modelValue":E[3]||(E[3]=A=>kt(c)?c.value=A:null),direction:"right"},{default:rt(()=>[W(f)?(oe(),nt(Xy,{key:0},{default:rt(()=>[Oe(L,{id:W(f),"project-name":w.projectName,onClose:E[2]||(E[2]=A=>c.value=!1)},null,8,["id","project-name"])]),_:1})):Ke("",!0)]),_:1},8,["modelValue"])])}}}),cge={key:0,"text-green-500":"","flex-shrink-0":"","i-carbon:checkmark":""},uge={key:1,"text-red-500":"","flex-shrink-0":"","i-carbon:compare":""},fge={key:2,"text-red-500":"","flex-shrink-0":"","i-carbon:close":""},dge={key:3,"text-gray-500":"","flex-shrink-0":"","i-carbon:document-blank":""},hge={key:4,"text-gray-500":"","flex-shrink-0":"","i-carbon:redo":"","rotate-90":""},pge={key:5,"text-yellow-500":"","flex-shrink-0":"","i-carbon:circle-dash":"","animate-spin":""},w1=ut({__name:"StatusIcon",props:{state:{},mode:{},failedSnapshot:{type:Boolean}},setup(e){return(t,r)=>{const o=Kr("tooltip");return t.state==="pass"?(oe(),ye("div",cge)):t.failedSnapshot?gt((oe(),ye("div",uge,null,512)),[[o,"Contains failed snapshot",void 0,{right:!0}]]):t.state==="fail"?(oe(),ye("div",fge)):t.mode==="todo"?gt((oe(),ye("div",dge,null,512)),[[o,"Todo",void 0,{right:!0}]]):t.mode==="skip"||t.state==="skip"?gt((oe(),ye("div",hge,null,512)),[[o,"Skipped",void 0,{right:!0}]]):(oe(),ye("div",pge))}}});function gge(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{var v;const{splits:d,finished:h}=c;if(h){s++;const{raw:m,candidate:b}=c;t.set(m,b);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,(v=r.get(p))==null||v.push(f),d.shift()):(r.set(p,[f]),o.push(f))}),o.forEach(c=>{const f=e[c],d=f.splits.shift();f.candidate+=f.candidate===""?d:`/${d}`}),r.forEach(c=>{if(c.length===1){const f=c[0];e[f].finished=!0}}),r.clear(),o.length=0,s===e.length)break}return t}function vge(e){let t=e;t.includes("/node_modules/")&&(t=e.split(/\/node_modules\//g).pop());const r=t.split(/\//g);return{raw:t,splits:r,candidate:"",finished:!1,id:e}}function mge(e){const t=e.map(o=>vge(o)),r=gge(t);return t.map(({raw:o,id:s})=>b1({color:"var(--color-node-external)",label:{color:"var(--color-node-external)",fontSize:"0.875rem",text:r.get(o)??""},isFocused:!1,id:s,type:"external"}))}function yge(e,t){return b1({color:t?"var(--color-node-root)":"var(--color-node-inline)",label:{color:t?"var(--color-node-root)":"var(--color-node-inline)",fontSize:"0.875rem",text:e.split(/\//g).pop()},isFocused:!1,id:e,type:"inline"})}function bge(e,t){if(!e)return y0({});const r=mge(e.externalized),o=e.inlined.map(d=>yge(d,d===t))??[],s=[...r,...o],c=Object.fromEntries(s.map(d=>[d.id,d])),f=Object.entries(e.graph).flatMap(([d,h])=>h.map(p=>{const v=c[d],m=c[p];if(!(v===void 0||m===void 0))return nge({source:v,target:m,color:"var(--color-link)",label:!1})}).filter(p=>p!==void 0));return y0({nodes:s,links:f})}const wge={key:0,flex:"","flex-col":"","h-full":"","max-h-full":"","overflow-hidden":"","data-testid":"file-detail"},xge={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Sge={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},_ge={"flex-1":"","font-light":"","op-50":"","ws-nowrap":"",truncate:"","text-sm":""},kge={class:"flex text-lg"},Cge={flex:"~","items-center":"","bg-header":"",border:"b-2 base","text-sm":"","h-41px":""},Tge={key:0,class:"block w-1.4em h-1.4em i-carbon:circle-dash animate-spin animate-2s"},Ege={key:1,class:"block w-1.4em h-1.4em i-carbon:chart-relationship"},Age={flex:"","flex-col":"","flex-1":"",overflow:"hidden"},Mge=["flex-1"],Lge=ut({__name:"FileDetails",setup(e){const t=je({nodes:[],links:[]}),r=je(!1),o=je(!1),s=je(!1),c=je(void 0),f=je(!0),d=ke(()=>{const T=Jt.value;if(!(!T||!T.filepath))return{filepath:T.filepath,projectName:T.file.projectName||""}}),h=ke(()=>Jt.value&&qh(Jt.value)),p=ke(()=>{var T,P;return!!((P=(T=Jt.value)==null?void 0:T.meta)!=null&&P.typecheck)});function v(){var P;const T=(P=Jt.value)==null?void 0:P.filepath;T&&fetch(`/__open-in-editor?file=${encodeURIComponent(T)}`)}function m(T){T==="graph"&&(o.value=!0),Yn.value=T}const b=ke(()=>{var T;return((T=Nw.value)==null?void 0:T.reduce((P,{size:A})=>P+A,0))??0});function w(T){r.value=T}const E=/[/\\]node_modules[/\\]/;async function N(T=!1){var P;if(!(s.value||((P=d.value)==null?void 0:P.filepath)===c.value&&!T)){s.value=!0,await Pt();try{const A=d.value;if(!A){s.value=!1;return}if(T||!c.value||A.filepath!==c.value||!t.value.nodes.length&&!t.value.links.length){let B=await mt.rpc.getModuleGraph(A.projectName,A.filepath,!!Po);f.value&&(Cr&&(B=typeof window.structuredClone<"u"?window.structuredClone(B):WT(B)),B.inlined=B.inlined.filter(G=>!E.test(G)),B.externalized=B.externalized.filter(G=>!E.test(G))),t.value=bge(B,A.filepath),c.value=A.filepath}m("graph")}finally{await new Promise(A=>setTimeout(A,100)),s.value=!1}}}Fh(()=>[d.value,Yn.value,f.value],([,T,P],A)=>{T==="graph"&&N(A&&P!==A[2])},{debounce:100,immediate:!0});const L=ke(()=>{var T;return nw((T=Jt.value)==null?void 0:T.file.projectName)}),M=ke(()=>{switch(L.value){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(T,P)=>{var ee,R,$,O;const A=w1,B=bi,G=age,U=Kce,Q=Fce,J=Oce,Y=Kr("tooltip");return W(Jt)?(oe(),ye("div",wge,[te("div",null,[te("div",xge,[Oe(A,{state:(ee=W(Jt).result)==null?void 0:ee.state,mode:W(Jt).mode,"failed-snapshot":W(h)},null,8,["state","mode","failed-snapshot"]),W(p)?gt((oe(),ye("div",Sge,null,512)),[[Y,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),(R=W(Jt))!=null&&R.file.projectName?(oe(),ye("span",{key:1,class:"rounded-full py-0.5 px-1 text-xs font-light",style:en({backgroundColor:W(L),color:W(M)})},Be(W(Jt).file.projectName),5)):Ke("",!0),te("div",_ge,Be(($=W(Jt))==null?void 0:$.name),1),te("div",kge,[W(Cr)?Ke("",!0):gt((oe(),nt(B,{key:0,title:"Open in editor",icon:"i-carbon-launch",disabled:!((O=W(Jt))!=null&&O.filepath),onClick:v},null,8,["disabled"])),[[Y,"Open in editor",void 0,{bottom:!0}]])])]),te("div",Cge,[te("button",{"tab-button":"",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==null}]),"data-testid":"btn-report",onClick:P[0]||(P[0]=_=>m(null))},P[5]||(P[5]=[te("span",{class:"block w-1.4em h-1.4em i-carbon:report"},null,-1),pt(" Report ")]),2),te("button",{"tab-button":"","data-testid":"btn-graph",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="graph"}]),onClick:P[1]||(P[1]=_=>m("graph"))},[W(s)?(oe(),ye("span",Tge)):(oe(),ye("span",Ege)),P[6]||(P[6]=pt(" Module Graph "))],2),te("button",{"tab-button":"","data-testid":"btn-code",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="editor"}]),onClick:P[2]||(P[2]=_=>m("editor"))},[P[7]||(P[7]=te("span",{class:"block w-1.4em h-1.4em i-carbon:code"},null,-1)),pt(" "+Be(W(r)?"* ":"")+"Code ",1)],2),te("button",{"tab-button":"","data-testid":"btn-console",class:it(["flex items-center gap-2",{"tab-button-active":W(Yn)==="console",op20:W(Yn)!=="console"&&W(b)===0}]),onClick:P[3]||(P[3]=_=>m("console"))},[P[8]||(P[8]=te("span",{class:"block w-1.4em h-1.4em i-carbon:terminal-3270"},null,-1)),pt(" Console ("+Be(W(b))+") ",1)],2)])]),te("div",Age,[W(o)?(oe(),ye("div",{key:0,"flex-1":W(Yn)==="graph"&&""},[gt(Oe(G,{modelValue:W(f),"onUpdate:modelValue":P[4]||(P[4]=_=>kt(f)?f.value=_:null),graph:W(t),"data-testid":"graph","project-name":W(Jt).file.projectName||""},null,8,["modelValue","graph","project-name"]),[[ji,W(Yn)==="graph"&&!W(s)]])],8,Mge)):Ke("",!0),W(Yn)==="editor"?(oe(),nt(U,{key:W(Jt).id,file:W(Jt),"data-testid":"editor",onDraft:w},null,8,["file"])):W(Yn)==="console"?(oe(),nt(Q,{key:2,file:W(Jt),"data-testid":"console"},null,8,["file"])):W(Yn)?Ke("",!0):(oe(),nt(J,{key:3,file:W(Jt),"data-testid":"report"},null,8,["file"]))])])):Ke("",!0)}}}),Nge={h:"full",flex:"~ col"},$ge={"flex-auto":"","py-1":"","bg-white":""},Oge=["src"],Pge=ut({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(oe(),ye("div",Nge,[r[0]||(r[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon:folder-details-reference"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),te("div",$ge,[te("iframe",{id:"vitest-ui-coverage",src:t.src},null,8,Oge)])]))}}),Rge={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},zge={"font-bold":""},Dge={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},Ige=["font-bold"],Fge={text:"red500/70"},Hge={key:1,text:"sm","mb-2":""},Bge={"font-bold":""},Wge={key:2,text:"sm","mb-2":""},qge={"font-bold":""},Uge={key:3,text:"sm","font-thin":""},jge=ut({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>{var o;return oe(),ye(ct,null,[te("h4",Rge,[te("span",zge,[pt(Be(t.error.name||t.error.nameStr||"Unknown Error"),1),t.error.message?(oe(),ye(ct,{key:0},[pt(":")],64)):Ke("",!0)]),pt(" "+Be(t.error.message),1)]),(o=t.error.stacks)!=null&&o.length?(oe(),ye("p",Dge,[(oe(!0),ye(ct,null,hi(t.error.stacks,(s,c)=>(oe(),ye("span",{key:c,"whitespace-pre":"","font-bold":c===0?"":null},[pt("❯ "+Be(s.method)+" "+Be(s.file)+":",1),te("span",Fge,Be(s.line)+":"+Be(s.column),1),r[0]||(r[0]=te("br",null,null,-1))],8,Ige))),128))])):Ke("",!0),t.error.VITEST_TEST_PATH?(oe(),ye("p",Hge,[r[1]||(r[1]=pt(" This error originated in ")),te("span",Bge,Be(t.error.VITEST_TEST_PATH),1),r[2]||(r[2]=pt(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. "))])):Ke("",!0),t.error.VITEST_TEST_NAME?(oe(),ye("p",Wge,[r[3]||(r[3]=pt(" The latest test that might've caused the error is ")),te("span",qge,Be(t.error.VITEST_TEST_NAME),1),r[4]||(r[4]=pt(". It might mean one of the following:")),r[5]||(r[5]=te("br",null,null,-1)),r[6]||(r[6]=te("ul",null,[te("li",null," The error was thrown, while Vitest was running this test. "),te("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):Ke("",!0),t.error.VITEST_AFTER_ENV_TEARDOWN?(oe(),ye("p",Uge,r[7]||(r[7]=[pt(" This error was caught after test environment was torn down. Make sure to cancel any running tasks before test finishes:"),te("br",null,null,-1),te("ul",null,[te("li",null," Cancel timeouts using clearTimeout and clearInterval. "),te("li",null," Wait for promises to resolve using the await keyword. ")],-1)]))):Ke("",!0)],64)}}}),Vge={"data-testid":"test-files-entry",grid:"~ cols-[min-content_1fr_min-content]","items-center":"",gap:"x-2 y-3",p:"x4",relative:"","font-light":"","w-80":"",op80:""},Gge={class:"number","data-testid":"num-files"},Kge={class:"number"},Xge={class:"number","text-red5":""},Yge={class:"number","text-red5":""},Zge={class:"number","text-red5":""},Jge={class:"number","data-testid":"run-time"},Qge={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},eve={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},tve={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},nve=ut({__name:"TestFilesEntry",setup(e){return(t,r)=>{const o=jge;return oe(),ye(ct,null,[te("div",Vge,[r[8]||(r[8]=te("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=te("div",null,"Files",-1)),te("div",Gge,Be(W(Ee).summary.files),1),W(Ee).summary.filesSuccess?(oe(),ye(ct,{key:0},[r[0]||(r[0]=te("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=te("div",null,"Pass",-1)),te("div",Kge,Be(W(Ee).summary.filesSuccess),1)],64)):Ke("",!0),W(Ee).summary.filesFailed?(oe(),ye(ct,{key:1},[r[2]||(r[2]=te("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=te("div",null," Fail ",-1)),te("div",Xge,Be(W(Ee).summary.filesFailed),1)],64)):Ke("",!0),W(Ee).summary.filesSnapshotFailed?(oe(),ye(ct,{key:2},[r[4]||(r[4]=te("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=te("div",null," Snapshot Fail ",-1)),te("div",Yge,Be(W(Ee).summary.filesSnapshotFailed),1)],64)):Ke("",!0),W(Wi).length?(oe(),ye(ct,{key:3},[r[6]||(r[6]=te("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=te("div",null," Errors ",-1)),te("div",Zge,Be(W(Wi).length),1)],64)):Ke("",!0),r[10]||(r[10]=te("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=te("div",null,"Time",-1)),te("div",Jge,Be(W(Ee).summary.time),1)]),W(Wi).length?(oe(),ye("div",Qge,[r[15]||(r[15]=te("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),te("p",eve,[pt(" Vitest caught "+Be(W(Wi).length)+" error"+Be(W(Wi).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=te("br",null,null,-1)),r[13]||(r[13]=pt(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. "))]),te("details",tve,[r[14]||(r[14]=te("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(oe(!0),ye(ct,null,hi(W(Wi),(s,c)=>(oe(),nt(o,{key:c,error:s},null,8,["error"]))),128))])])):Ke("",!0)],64)}}}),rve=yi(nve,[["__scopeId","data-v-0178ddee"]]),ive={"p-2":"","text-center":"",flex:""},ove={"text-4xl":"","min-w-2em":""},sve={"text-md":""},lve=ut({__name:"DashboardEntry",setup(e){return(t,r)=>(oe(),ye("div",ive,[te("div",null,[te("div",ove,[mn(t.$slots,"body")]),te("div",sve,[mn(t.$slots,"header")])])]))}}),ave={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},cve=ut({__name:"TestsEntry",setup(e){return(t,r)=>{const o=lve;return oe(),ye("div",ave,[Oe(o,{"text-green5":"","data-testid":"pass-entry"},{header:rt(()=>r[0]||(r[0]=[pt(" Pass ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSuccess),1)]),_:1}),Oe(o,{class:it({"text-red5":W(Ee).summary.testsFailed,op50:!W(Ee).summary.testsFailed}),"data-testid":"fail-entry"},{header:rt(()=>r[1]||(r[1]=[pt(" Fail ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsFailed),1)]),_:1},8,["class"]),W(Ee).summary.testsSkipped?(oe(),nt(o,{key:0,op50:"","data-testid":"skipped-entry"},{header:rt(()=>r[2]||(r[2]=[pt(" Skip ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsSkipped),1)]),_:1})):Ke("",!0),W(Ee).summary.testsTodo?(oe(),nt(o,{key:1,op50:"","data-testid":"todo-entry"},{header:rt(()=>r[3]||(r[3]=[pt(" Todo ")])),body:rt(()=>[pt(Be(W(Ee).summary.testsTodo),1)]),_:1})):Ke("",!0),Oe(o,{tail:!0,"data-testid":"total-entry"},{header:rt(()=>r[4]||(r[4]=[pt(" Total ")])),body:rt(()=>[pt(Be(W(Ee).summary.totalTests),1)]),_:1})])}}}),uve={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},fve={key:0,class:"text-gray-5"},dve={"aria-labelledby":"tests",m:"y-4 x-2"},hve=ut({__name:"TestsFilesContainer",setup(e){return(t,r)=>{const o=cve,s=rve;return oe(),ye("div",uve,[W(Ee).summary.files===0&&W(gs)?(oe(),ye("div",fve," No tests found ")):Ke("",!0),te("section",dve,[Oe(o)]),Oe(s)])}}}),pve={},gve={h:"full",flex:"~ col"},vve={class:"scrolls","flex-auto":"","py-1":""};function mve(e,t){const r=hve;return oe(),ye("div",gve,[t[0]||(t[0]=te("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[te("div",{class:"i-carbon-dashboard"}),te("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),te("div",vve,[Oe(r)])])}const yve=yi(pve,[["render",mve]]),bve=["open"],wve=ut({__name:"DetailsPanel",props:{color:{}},setup(e){const t=je(!0);return(r,o)=>(oe(),ye("div",{open:W(t),class:"details-panel","data-testid":"details-panel",onToggle:o[0]||(o[0]=s=>t.value=s.target.open)},[te("div",{p:"y1","text-sm":"","bg-base":"","items-center":"","z-5":"","gap-2":"",class:it(r.color),"w-full":"",flex:"","select-none":"",sticky:"",top:"-1"},[o[1]||(o[1]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1)),mn(r.$slots,"summary",{open:W(t)}),o[2]||(o[2]=te("div",{"flex-1":"","h-1px":"",border:"base b",op80:""},null,-1))],2),mn(r.$slots,"default")],40,bve))}}),xve={type:"button",dark:"op75",bg:"gray-200 dark:#111",hover:"op100","rounded-1":"","p-0.5":""},Sve={__name:"IconAction",props:{icon:String},setup(e){return(t,r)=>(oe(),ye("button",xve,[te("span",{block:"",class:it([e.icon,"dark:op85 hover:op100"]),op65:""},null,2)]))}},_ve=["aria-label","data-current"],kve={key:1,"w-4":""},Cve={flex:"","items-end":"","gap-2":"","overflow-hidden":""},Tve={key:0,class:"i-logos:typescript-icon","flex-shrink-0":""},Eve={"text-sm":"",truncate:"","font-light":""},Ave=["text","innerHTML"],Mve={key:1,text:"xs",op20:"",style:{"white-space":"nowrap"}},Lve={"gap-1":"","justify-end":"","flex-grow-1":"","pl-1":"",class:"test-actions"},Nve={key:0,class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},$ve={key:1},Ove=ut({__name:"ExplorerItem",props:{taskId:{},name:{},indent:{},typecheck:{type:Boolean},duration:{},state:{},current:{type:Boolean},type:{},opened:{type:Boolean},expandable:{type:Boolean},search:{},projectName:{},projectNameColor:{},disableTaskLocation:{type:Boolean},onItemClick:{type:Function}},setup(e){const t=ke(()=>mt.state.idMap.get(e.taskId)),r=ke(()=>{if(Cr)return!1;const L=t.value;return L&&qh(L)});function o(){var L;if(!e.expandable){(L=e.onItemClick)==null||L.call(e,t.value);return}e.opened?Ee.collapseNode(e.taskId):Ee.expandNode(e.taskId)}async function s(L){var M;(M=e.onItemClick)==null||M.call(e,L),ms.value&&(nu.value=!0,await Pt()),e.type==="file"?await Vh([L.file]):await Yae(L)}function c(L){return mt.rpc.updateSnapshot(L.file)}const f=ke(()=>e.indent<=0?[]:Array.from({length:e.indent},(L,M)=>`${e.taskId}-${M}`)),d=ke(()=>{const L=f.value,M=[];return(e.type==="file"||e.type==="suite")&&M.push("min-content"),M.push("min-content"),e.type==="suite"&&e.typecheck&&M.push("min-content"),M.push("minmax(0, 1fr)"),M.push("min-content"),`grid-template-columns: ${L.map(()=>"1rem").join(" ")} ${M.join(" ")};`}),h=ke(()=>e.type==="file"?"Run current file":e.type==="suite"?"Run all tests in this suite":"Run current test"),p=ke(()=>ew(e.name)),v=ke(()=>{const L=vE.value,M=p.value;return L?M.replace(L,T=>`<span class="highlight">${T}</span>`):M}),m=ke(()=>e.type!=="file"&&e.disableTaskLocation),b=ke(()=>e.type==="file"?"Open test details":e.type==="suite"?"View Suite Source Code":"View Test Source Code"),w=ke(()=>m.value?"color-red5 dark:color-#f43f5e":null);function E(){var M;const L=t.value;e.type==="file"?(M=e.onItemClick)==null||M.call(e,L):Gce(L)}const N=ke(()=>{switch(e.projectNameColor){case"blue":case"green":case"magenta":return"white";default:return"black"}});return(L,M)=>{const T=w1,P=Sve,A=bi,B=Kr("tooltip");return W(t)?(oe(),ye("div",{key:0,"items-center":"",p:"x-2 y-1",grid:"~ rows-1 items-center gap-x-2","w-full":"","h-28px":"","border-rounded":"",hover:"bg-active","cursor-pointer":"",class:"item-wrapper",style:en(W(d)),"aria-label":L.name,"data-current":L.current,onClick:M[2]||(M[2]=G=>o())},[L.indent>0?(oe(!0),ye(ct,{key:0},hi(W(f),G=>(oe(),ye("div",{key:G,border:"solid gray-500 dark:gray-400",class:"vertical-line","h-28px":"","inline-flex":"","mx-2":"",op20:""}))),128)):Ke("",!0),L.type==="file"||L.type==="suite"?(oe(),ye("div",kve,[te("div",{class:it(L.opened?"i-carbon:chevron-down":"i-carbon:chevron-right op20"),op20:""},null,2)])):Ke("",!0),Oe(T,{state:L.state,mode:W(t).mode,"failed-snapshot":W(r),"w-4":""},null,8,["state","mode","failed-snapshot"]),te("div",Cve,[L.type==="file"&&L.typecheck?gt((oe(),ye("div",Tve,null,512)),[[B,"This is a typecheck test. It won't report results of the runtime tests",void 0,{bottom:!0}]]):Ke("",!0),te("span",Eve,[L.type==="file"&&L.projectName?(oe(),ye("span",{key:0,class:"rounded-full py-0.5 px-1 mr-1 text-xs",style:en({backgroundColor:L.projectNameColor,color:W(N)})},Be(L.projectName),5)):Ke("",!0),te("span",{text:L.state==="fail"?"red-500":"",innerHTML:W(v)},null,8,Ave)]),typeof L.duration=="number"?(oe(),ye("span",Mve,Be(L.duration>0?L.duration:"< 1")+"ms ",1)):Ke("",!0)]),te("div",Lve,[!W(Cr)&&W(r)?gt((oe(),nt(P,{key:0,"data-testid":"btn-fix-snapshot",title:"Fix failed snapshot(s)",icon:"i-carbon:result-old",onClick:M[0]||(M[0]=Ac(G=>c(W(t)),["prevent","stop"]))},null,512)),[[B,"Fix failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),Oe(W(Lb),{placement:"bottom",class:it(["w-1.4em h-1.4em op100 rounded flex",W(w)])},{popper:rt(()=>[W(m)?(oe(),ye("div",Nve,[M[5]||(M[5]=te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"},null,-1)),te("div",null,[pt(Be(W(b))+": this feature is not available, you have disabled ",1),M[3]||(M[3]=te("span",{class:"text-[#add467]"},"includeTaskLocation",-1)),M[4]||(M[4]=pt(" in your configuration file."))]),M[6]||(M[6]=te("div",{style:{"grid-column":"2"}}," Clicking this button the code tab will position the cursor at first line in the source code since the UI doesn't have the information available. ",-1))])):(oe(),ye("div",$ve,Be(W(b)),1))]),default:rt(()=>[Oe(A,{"data-testid":"btn-open-details",icon:"i-carbon:intrusion-prevention",onClick:Ac(E,["prevent","stop"])})]),_:1},8,["class"]),W(Cr)?Ke("",!0):gt((oe(),nt(A,{key:1,"data-testid":"btn-run-test",title:W(h),icon:"i-carbon:play-filled-alt","text-green5":"",onClick:M[1]||(M[1]=Ac(G=>s(W(t)),["prevent","stop"]))},null,8,["title"])),[[B,W(h),void 0,{bottom:!0}]])])],12,_ve)):Ke("",!0)}}}),Pve=yi(Ove,[["__scopeId","data-v-0f30dec3"]]),Rve={"flex-1":"","ms-2":"","select-none":""},zve=ut({__name:"FilterStatus",props:Vl({label:{}},{modelValue:{type:[Boolean,null]},modelModifiers:{}}),emits:["update:modelValue"],setup(e){const t=ku(e,"modelValue");return(r,o)=>(oe(),ye("label",di({class:"font-light text-sm checkbox flex items-center cursor-pointer py-1 text-sm w-full gap-y-1 mb-1px"},r.$attrs,{onClick:o[1]||(o[1]=Ac(s=>t.value=!t.value,["prevent"]))}),[te("span",{class:it([t.value?"i-carbon:checkbox-checked-filled":"i-carbon:checkbox"]),"text-lg":"","aria-hidden":"true"},null,2),gt(te("input",{"onUpdate:modelValue":o[0]||(o[0]=s=>t.value=s),type:"checkbox","sr-only":""},null,512),[[lb,t.value]]),te("span",Rve,Be(r.label),1)],16))}});function Dve(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var s=e.indexOf("Edge/");return s>0?parseInt(e.substring(s+5,e.indexOf(".",s)),10):-1}let Rc;function rh(){rh.init||(rh.init=!0,Rc=Dve()!==-1)}var Bu={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){rh(),Pt(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Rc&&this.$el.appendChild(e),e.data="about:blank",Rc||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Rc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Ive=by();my("data-v-b329ee4c");const Fve={class:"resize-observer",tabindex:"-1"};yy();const Hve=Ive((e,t,r,o,s,c)=>(oe(),nt("div",Fve)));Bu.render=Hve;Bu.__scopeId="data-v-b329ee4c";Bu.__file="src/components/ResizeObserver.vue";function zc(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?zc=function(t){return typeof t}:zc=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zc(e)}function Bve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Wve(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function qve(e,t,r){return t&&Wve(e.prototype,t),e}function b0(e){return Uve(e)||jve(e)||Vve(e)||Gve()}function Uve(e){if(Array.isArray(e))return ih(e)}function jve(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Vve(e,t){if(e){if(typeof e=="string")return ih(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ih(e,t)}}function ih(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}function Gve(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
48
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Kve(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function Xve(e,t){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,s,c,f=function(h){for(var p=arguments.length,v=new Array(p>1?p-1:0),m=1;m<p;m++)v[m-1]=arguments[m];if(c=v,!(o&&h===s)){var b=r.leading;typeof b=="function"&&(b=b(h,s)),(!o||h!==s)&&b&&e.apply(void 0,[h].concat(b0(c))),s=h,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[h].concat(b0(c))),o=0},t)}};return f._clear=function(){clearTimeout(o),o=null},f}function x1(e,t){if(e===t)return!0;if(zc(e)==="object"){for(var r in e)if(!x1(e[r],t[r]))return!1;return!0}return!1}var Yve=function(){function e(t,r,o){Bve(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(r,o)}return qve(e,[{key:"createObserver",value:function(r,o){var s=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=Kve(r),this.callback=function(d,h){s.options.callback(d,h),d&&s.options.once&&(s.frozen=!0,s.destroyObserver())},this.callback&&this.options.throttle){var c=this.options.throttleOptions||{},f=c.leading;this.callback=Xve(this.callback,this.options.throttle,{leading:function(h){return f==="both"||f==="visible"&&h||f==="hidden"&&!h}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var h=d[0];if(d.length>1){var p=d.find(function(m){return m.isIntersecting});p&&(h=p)}if(s.callback){var v=h.isIntersecting&&h.intersectionRatio>=s.threshold;if(v===s.oldResult)return;s.oldResult=v,s.callback(v,h)}},this.options.intersection),Pt(function(){s.observer&&s.observer.observe(s.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function S1(e,t,r){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var s=new Yve(e,o,r);e._vue_visibilityState=s}}function Zve(e,t,r){var o=t.value,s=t.oldValue;if(!x1(o,s)){var c=e._vue_visibilityState;if(!o){_1(e);return}c?c.createObserver(o,r):S1(e,{value:o},r)}}function _1(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var Jve={beforeMount:S1,updated:Zve,unmounted:_1},Qve={itemsLimit:1e3},eme=/(auto|scroll)/;function k1(e,t){return e.parentNode===null?t:k1(e.parentNode,t.concat([e]))}var fd=function(t,r){return getComputedStyle(t,null).getPropertyValue(r)},tme=function(t){return fd(t,"overflow")+fd(t,"overflow-y")+fd(t,"overflow-x")},nme=function(t){return eme.test(tme(t))};function w0(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=k1(e.parentNode,[]),r=0;r<t.length;r+=1)if(nme(t[r]))return t[r];return document.scrollingElement||document.documentElement}}function oh(e){"@babel/helpers - typeof";return oh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oh(e)}var rme={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function ime(){return this.items.length&&oh(this.items[0])!=="object"}var sh=!1;if(typeof window<"u"){sh=!1;try{var ome=Object.defineProperty({},"passive",{get:function(){sh=!0}});window.addEventListener("test",null,ome)}catch{}}let sme=0;var ip={name:"RecycleScroller",components:{ResizeObserver:Bu},directives:{ObserveVisibility:Jve},props:{...rme,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,r=this.sizeField,o=this.minItemSize;let s=1e4,c=0,f;for(let d=0,h=t.length;d<h;d++)f=t[d][r]||o,f<s&&(s=f),c+=f,e[d]={accumulator:c,size:f};return this.$_computedMinItemSize=s,e}return[]},simpleArray:ime,itemIndexByKey(){const{keyField:e,items:t}=this,r={};for(let o=0,s=t.length;o<s;o++)r[t[o][e]]=o;return r}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,r,o,s){const c=xh({id:sme++,index:t,used:!0,key:o,type:s}),f=yh({item:r,position:0,nr:c});return e.push(f),f},unuseView(e,t=!1){const r=this.$_unusedViews,o=e.nr.type;let s=r.get(o);s||(s=[],r.set(o,s)),s.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:r}=this.updateVisibleItems(!1,!0);r||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const r=this.itemSize,o=this.gridItems||1,s=this.itemSecondarySize||r,c=this.$_computedMinItemSize,f=this.typeField,d=this.simpleArray?null:this.keyField,h=this.items,p=h.length,v=this.sizes,m=this.$_views,b=this.$_unusedViews,w=this.pool,E=this.itemIndexByKey;let N,L,M,T,P;if(!p)N=L=T=P=M=0;else if(this.$_prerender)N=T=0,L=P=Math.min(this.prerender,h.length),M=null;else{const Y=this.getScroll();if(t){let $=Y.start-this.$_lastUpdateScrollPosition;if($<0&&($=-$),r===null&&$<c||$<r)return{continuous:!0}}this.$_lastUpdateScrollPosition=Y.start;const ee=this.buffer;Y.start-=ee,Y.end+=ee;let R=0;if(this.$refs.before&&(R=this.$refs.before.scrollHeight,Y.start-=R),this.$refs.after){const $=this.$refs.after.scrollHeight;Y.end+=$}if(r===null){let $,O=0,_=p-1,D=~~(p/2),j;do j=D,$=v[D].accumulator,$<Y.start?O=D:D<p-1&&v[D+1].accumulator>Y.start&&(_=D),D=~~((O+_)/2);while(D!==j);for(D<0&&(D=0),N=D,M=v[p-1].accumulator,L=D;L<p&&v[L].accumulator<Y.end;L++);for(L===-1?L=h.length-1:(L++,L>p&&(L=p)),T=N;T<p&&R+v[T].accumulator<Y.start;T++);for(P=T;P<p&&R+v[P].accumulator<Y.end;P++);}else{N=~~(Y.start/r*o);const $=N%o;N-=$,L=Math.ceil(Y.end/r*o),T=Math.max(0,Math.floor((Y.start-R)/r*o)),P=Math.floor((Y.end-R)/r*o),N<0&&(N=0),L>p&&(L=p),T<0&&(T=0),P>p&&(P=p),M=Math.ceil(p/o)*r}}L-N>Qve.itemsLimit&&this.itemsLimitError(),this.totalSize=M;let A;const B=N<=this.$_endIndex&&L>=this.$_startIndex;if(B)for(let Y=0,ee=w.length;Y<ee;Y++)A=w[Y],A.nr.used&&(e&&(A.nr.index=E[A.item[d]]),(A.nr.index==null||A.nr.index<N||A.nr.index>=L)&&this.unuseView(A));const G=B?null:new Map;let U,Q,J;for(let Y=N;Y<L;Y++){U=h[Y];const ee=d?U[d]:U;if(ee==null)throw new Error(`Key is ${ee} on item (keyField is '${d}')`);if(A=m.get(ee),!r&&!v[Y].size){A&&this.unuseView(A);continue}Q=U[f];let R=b.get(Q),$=!1;if(!A)B?R&&R.length?A=R.pop():A=this.addView(w,Y,U,ee,Q):(J=G.get(Q)||0,(!R||J>=R.length)&&(A=this.addView(w,Y,U,ee,Q),this.unuseView(A,!0),R=b.get(Q)),A=R[J],G.set(Q,J+1)),m.delete(A.nr.key),A.nr.used=!0,A.nr.index=Y,A.nr.key=ee,A.nr.type=Q,m.set(ee,A),$=!0;else if(!A.nr.used&&(A.nr.used=!0,$=!0,R)){const O=R.indexOf(A);O!==-1&&R.splice(O,1)}A.item=U,$&&(Y===h.length-1&&this.$emit("scroll-end"),Y===0&&this.$emit("scroll-start")),r===null?(A.position=v[Y-1].accumulator,A.offset=0):(A.position=Math.floor(Y/o)*r,A.offset=Y%o*s)}return this.$_startIndex=N,this.$_endIndex=L,this.emitUpdate&&this.$emit("update",N,L,T,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:B}},getListenerTarget(){let e=w0(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,r=t==="vertical";let o;if(this.pageMode){const s=e.getBoundingClientRect(),c=r?s.height:s.width;let f=-(r?s.top:s.left),d=r?window.innerHeight:window.innerWidth;f<0&&(d+=f,f=0),f+d>c&&(d=c-f),o={start:f,end:f+d}}else r?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,sh?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const r=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/r)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let r,o,s;if(this.pageMode){const c=w0(this.$el),f=c.tagName==="HTML"?0:c[t.scroll],d=c.getBoundingClientRect(),p=this.$el.getBoundingClientRect()[t.start]-d[t.start];r=c,o=t.scroll,s=e+f+p}else r=this.$el,o=t.scroll,s=e;r[o]=s},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const lme={key:0,ref:"before",class:"vue-recycle-scroller__slot"},ame={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function cme(e,t,r,o,s,c){const f=Oo("ResizeObserver"),d=Kr("observe-visibility");return gt((oe(),ye("div",{class:it(["vue-recycle-scroller",{ready:s.ready,"page-mode":r.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...h)=>c.handleScroll&&c.handleScroll(...h))},[e.$slots.before?(oe(),ye("div",lme,[mn(e.$slots,"before")],512)):Ke("v-if",!0),(oe(),nt(hv(r.listTag),{ref:"wrapper",style:en({[e.direction==="vertical"?"minHeight":"minWidth"]:s.totalSize+"px"}),class:it(["vue-recycle-scroller__item-wrapper",r.listClass])},{default:rt(()=>[(oe(!0),ye(ct,null,hi(s.pool,h=>(oe(),nt(hv(r.itemTag),di({key:h.nr.id,style:s.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${h.position}px) translate${e.direction==="vertical"?"X":"Y"}(${h.offset}px)`,width:r.gridItems?`${e.direction==="vertical"&&r.itemSecondarySize||r.itemSize}px`:void 0,height:r.gridItems?`${e.direction==="horizontal"&&r.itemSecondarySize||r.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[r.itemClass,{hover:!r.skipHover&&s.hoverKey===h.nr.key}]]},G_(r.skipHover?{}:{mouseenter:()=>{s.hoverKey=h.nr.key},mouseleave:()=>{s.hoverKey=null}})),{default:rt(()=>[mn(e.$slots,"default",{item:h.item,index:h.nr.index,active:h.nr.used})]),_:2},1040,["style","class"]))),128)),mn(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(oe(),ye("div",ame,[mn(e.$slots,"after")],512)):Ke("v-if",!0),Oe(f,{onNotify:c.handleResize},null,8,["onNotify"])],34)),[[d,c.handleVisibilityChange]])}ip.render=cme;ip.__file="src/components/RecycleScroller.vue";function ume(e){const t=ke(()=>Hd.value?!1:!Je.onlyTests),r=ke(()=>Wn.value===""),o=je(Wn.value);Fh(()=>Wn.value,h=>{o.value=(h==null?void 0:h.trim())??""},{debounce:256});function s(h){var p;Wn.value="",h&&((p=e.value)==null||p.focus())}function c(h){var p;Je.failed=!1,Je.success=!1,Je.skipped=!1,Je.onlyTests=!1,h&&((p=e.value)==null||p.focus())}function f(){c(!1),s(!0)}function d(h,p,v,m,b){Os.value&&(cn.value.search=(h==null?void 0:h.trim())??"",cn.value.failed=p,cn.value.success=v,cn.value.skipped=m,cn.value.onlyTests=b)}return Et(()=>[o.value,Je.failed,Je.success,Je.skipped,Je.onlyTests],([h,p,v,m,b])=>{d(h,p,v,m,b),Ee.filterNodes()},{flush:"post"}),Et(()=>Mr.value.length,h=>{h&&(cn.value.expandAll=void 0)},{flush:"post"}),{initialized:Os,filter:Je,search:Wn,disableFilter:t,isFiltered:tw,isFilteredByStatus:Hd,disableClearSearch:r,clearAll:f,clearSearch:s,clearFilter:c,filteredFiles:Pu,testsTotal:mE,uiEntries:Gn}}const fme={p:"2","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},dme={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},hme=["op"],pme={grid:"~ items-center gap-x-1 cols-[auto_min-content_auto] rows-[min-content_min-content]"},gme={"text-red5":""},vme={"text-yellow5":""},mme={"text-green5":""},yme={class:"text-purple5:50"},bme={key:0,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},wme=["disabled"],xme=["disabled"],Sme={key:1,flex:"~ col","items-center":"",p:"x4 y4","font-light":""},_me=ut({inheritAttrs:!1,__name:"Explorer",props:{onItemClick:{type:Function}},emits:["item-click","run"],setup(e,{emit:t}){const r=t,o=ke(()=>Du.value.includeTaskLocation),s=je(),{initialized:c,filter:f,search:d,disableFilter:h,isFiltered:p,isFilteredByStatus:v,disableClearSearch:m,clearAll:b,clearSearch:w,clearFilter:E,filteredFiles:N,testsTotal:L,uiEntries:M}=ume(s),T=je("grid-cols-2"),P=je("grid-col-span-2"),A=je(),{width:B}=Hh();return Et(()=>B.value*(vn.navigation/100),G=>{G<420?(T.value="grid-cols-2",P.value="grid-col-span-2"):(T.value="grid-cols-4",P.value="grid-col-span-4")}),(G,U)=>{const Q=bi,J=zve,Y=Pve,ee=wve,R=Kr("tooltip");return oe(),ye("div",{ref_key:"testExplorerRef",ref:A,h:"full",flex:"~ col"},[te("div",null,[te("div",fme,[mn(G.$slots,"header",{filteredFiles:W(p)||W(v)?W(N):void 0})]),te("div",dme,[U[13]||(U[13]=te("div",{class:"i-carbon:search","flex-shrink-0":""},null,-1)),gt(te("input",{ref_key:"searchBox",ref:s,"onUpdate:modelValue":U[0]||(U[0]=$=>kt(d)?d.value=$:null),placeholder:"Search...",outline:"none",bg:"transparent",font:"light",text:"sm","flex-1":"","pl-1":"",op:W(d).length?"100":"50",onKeydown:[U[1]||(U[1]=Nd($=>W(w)(!1),["esc"])),U[2]||(U[2]=Nd($=>r("run",W(p)||W(v)?W(N):void 0),["enter"]))]},null,40,hme),[[dC,W(d)]]),gt(Oe(Q,{disabled:W(m),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[3]||(U[3]=$=>W(w)(!0))},null,8,["disabled"]),[[R,"Clear search",void 0,{bottom:!0}]])]),te("div",{p:"l3 y2 r2","items-center":"","bg-header":"",border:"b-2 base",grid:"~ items-center gap-x-2 rows-[auto_auto]",class:it(W(T))},[te("div",{class:it(W(P)),flex:"~ gap-2 items-center"},[U[14]||(U[14]=te("div",{"aria-hidden":"true",class:"i-carbon:filter"},null,-1)),U[15]||(U[15]=te("div",{"flex-grow-1":"","text-sm":""}," Filter ",-1)),gt(Oe(Q,{disabled:W(h),title:"Clear search",icon:"i-carbon:filter-remove",onClickPassive:U[4]||(U[4]=$=>W(E)(!1))},null,8,["disabled"]),[[R,"Clear Filter",void 0,{bottom:!0}]])],2),Oe(J,{modelValue:W(f).failed,"onUpdate:modelValue":U[5]||(U[5]=$=>W(f).failed=$),label:"Fail"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).success,"onUpdate:modelValue":U[6]||(U[6]=$=>W(f).success=$),label:"Pass"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).skipped,"onUpdate:modelValue":U[7]||(U[7]=$=>W(f).skipped=$),label:"Skip"},null,8,["modelValue"]),Oe(J,{modelValue:W(f).onlyTests,"onUpdate:modelValue":U[8]||(U[8]=$=>W(f).onlyTests=$),label:"Only Tests"},null,8,["modelValue"])],2)]),te("div",{class:"scrolls","flex-auto":"","py-1":"",onScrollPassive:U[12]||(U[12]=(...$)=>W(om)&&W(om)(...$))},[Oe(ee,null,V_({default:rt(()=>[(W(p)||W(v))&&W(M).length===0?(oe(),ye(ct,{key:0},[W(c)?(oe(),ye("div",bme,[U[18]||(U[18]=te("div",{op30:""}," No matched test ",-1)),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(m)?null:"hover:op100"),disabled:W(m),onClickPassive:U[9]||(U[9]=$=>W(w)(!0))}," Clear Search ",42,wme),te("button",{type:"button","font-light":"","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",op:"50",class:it(W(h)?null:"hover:op100"),disabled:W(h),onClickPassive:U[10]||(U[10]=$=>W(E)(!0))}," Clear Filter ",42,xme),te("button",{type:"button","font-light":"",op:"50 hover:100","text-sm":"",border:"~ gray-400/50 rounded",p:"x2 y0.5",m:"t2",onClickPassive:U[11]||(U[11]=(...$)=>W(b)&&W(b)(...$))}," Clear All ",32)])):(oe(),ye("div",Sme,U[19]||(U[19]=[te("div",{class:"i-carbon:circle-dash animate-spin"},null,-1),te("div",{op30:""}," Loading... ",-1)])))],64)):(oe(),nt(W(ip),{key:1,"page-mode":"","key-field":"id","item-size":28,items:W(M),buffer:100},{default:rt(({item:$})=>[Oe(Y,{class:it(["h-28px m-0 p-0",W(eo)===$.id?"bg-active":""]),"task-id":$.id,expandable:$.expandable,type:$.type,current:W(eo)===$.id,indent:$.indent,name:$.name,typecheck:$.typecheck===!0,"project-name":$.projectName??"","project-name-color":$.projectNameColor??"",state:$.state,duration:$.duration,opened:$.expanded,"disable-task-location":!W(o),"on-item-click":G.onItemClick},null,8,["task-id","expandable","type","current","indent","name","typecheck","project-name","project-name-color","state","duration","opened","disable-task-location","class","on-item-click"])]),_:1},8,["items"]))]),_:2},[W(c)?{name:"summary",fn:rt(()=>[te("div",pme,[te("span",gme," FAIL ("+Be(W(L).failed)+") ",1),U[16]||(U[16]=te("span",null,"/",-1)),te("span",vme," RUNNING ("+Be(W(L).running)+") ",1),te("span",mme," PASS ("+Be(W(L).success)+") ",1),U[17]||(U[17]=te("span",null,"/",-1)),te("span",yme," SKIP ("+Be(W(f).onlyTests?W(L).skipped:"--")+") ",1)])]),key:"0"}:void 0]),1024)],32)],512)}}}),kme=""+new URL("../favicon.svg",import.meta.url).href,Cme={class:"flex text-lg"},Tme=ut({__name:"Navigation",setup(e){function t(){return mt.rpc.updateSnapshot()}const r=ke(()=>_a.value?"light":"dark");async function o(f){ms.value&&(nu.value=!0,await Pt(),to.value&&(ru(!0),await Pt())),f!=null&&f.length?await Vh(f):await Kae()}function s(){Ee.collapseAllNodes()}function c(){Ee.expandAllNodes()}return(f,d)=>{const h=bi,p=_me,v=Kr("tooltip");return oe(),nt(p,{border:"r base","on-item-click":W(VE),nested:!0,onRun:o},{header:rt(({filteredFiles:m})=>[d[8]||(d[8]=te("img",{"w-6":"","h-6":"",src:kme,alt:"Vitest logo"},null,-1)),d[9]||(d[9]=te("span",{"font-light":"","text-sm":"","flex-1":""},"Vitest",-1)),te("div",Cme,[gt(Oe(h,{title:"Collapse tests",disabled:!W(Os),"data-testid":"collapse-all",icon:"i-carbon:collapse-all",onClick:d[0]||(d[0]=b=>s())},null,8,["disabled"]),[[ji,!W(vm)],[v,"Collapse tests",void 0,{bottom:!0}]]),gt(Oe(h,{disabled:!W(Os),title:"Expand tests","data-testid":"expand-all",icon:"i-carbon:expand-all",onClick:d[1]||(d[1]=b=>c())},null,8,["disabled"]),[[ji,W(vm)],[v,"Expand tests",void 0,{bottom:!0}]]),gt(Oe(h,{title:"Show dashboard",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:dashboard",onClick:d[2]||(d[2]=b=>W(ru)(!0))},null,512),[[ji,W(qd)&&!W(ms)||!W(Es)],[v,"Dashboard",void 0,{bottom:!0}]]),W(qd)&&!W(ms)?(oe(),nt(W(Lb),{key:0,title:"Coverage enabled but missing html reporter",class:"w-1.4em h-1.4em op100 rounded flex color-red5 dark:color-#f43f5e cursor-help"},{popper:rt(()=>d[6]||(d[6]=[te("div",{class:"op100 gap-1 p-y-1",grid:"~ items-center cols-[1.5em_1fr]"},[te("div",{class:"i-carbon:information-square w-1.5em h-1.5em"}),te("div",null,"Coverage enabled but missing html reporter."),te("div",{style:{"grid-column":"2"}}," Add html reporter to your configuration to see coverage here. ")],-1)])),default:rt(()=>[d[7]||(d[7]=te("div",{class:"i-carbon:folder-off ma"},null,-1))]),_:1})):Ke("",!0),W(ms)?gt((oe(),nt(h,{key:1,disabled:W(nu),title:"Show coverage",class:"!animate-100ms","animate-count-1":"",icon:"i-carbon:folder-details-reference",onClick:d[3]||(d[3]=b=>W(GE)())},null,8,["disabled"])),[[ji,!W(to)],[v,"Coverage",void 0,{bottom:!0}]]):Ke("",!0),W(Ee).summary.failedSnapshot&&!W(Cr)?gt((oe(),nt(h,{key:2,icon:"i-carbon:result-old",disabled:!W(Ee).summary.failedSnapshotEnabled,onClick:d[4]||(d[4]=b=>W(Ee).summary.failedSnapshotEnabled&&t())},null,8,["disabled"])),[[v,"Update all failed snapshot(s)",void 0,{bottom:!0}]]):Ke("",!0),W(Cr)?Ke("",!0):gt((oe(),nt(h,{key:3,disabled:(m==null?void 0:m.length)===0,icon:"i-carbon:play",onClick:b=>o(m)},null,8,["disabled","onClick"])),[[v,m?m.length===0?"No test to run (clear filter)":"Rerun filtered":"Rerun all",void 0,{bottom:!0}]]),gt(Oe(h,{icon:"dark:i-carbon-moon i-carbon:sun",onClick:d[5]||(d[5]=b=>W(wce)())},null,512),[[v,`Toggle to ${W(r)} mode`,void 0,{bottom:!0}]])])]),_:1},8,["on-item-click"])}}}),Eme={"h-3px":"",relative:"","overflow-hidden":"",class:"px-0","w-screen":""},Ame=ut({__name:"ProgressBar",setup(e){const{width:t}=Hh(),r=ke(()=>[Ee.summary.files===0&&"!bg-gray-4 !dark:bg-gray-7",!gs.value&&"in-progress"].filter(Boolean).join(" ")),o=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesSuccess/d:0}),s=ke(()=>{const d=Ee.summary.files;return d>0?t.value*Ee.summary.filesFailed/d:0}),c=ke(()=>Ee.summary.files-Ee.summary.filesFailed-Ee.summary.filesSuccess),f=ke(()=>{const d=Ee.summary.files;return d>0?t.value*c.value/d:0});return(d,h)=>(oe(),ye("div",{absolute:"","t-0":"","l-0":"","r-0":"","z-index-1031":"","pointer-events-none":"","p-0":"","h-3px":"",grid:"~ auto-cols-max","justify-items-center":"","w-screen":"",class:it(W(r))},[te("div",Eme,[te("div",{absolute:"","l-0":"","t-0":"","bg-red5":"","h-3px":"",class:it(W(r)),style:en(`width: ${W(s)}px;`)}," ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-green5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(s)}px; width: ${W(o)}px;`)}," ",6),te("div",{absolute:"","l-0":"","t-0":"","bg-yellow5":"","h-3px":"",class:it(W(r)),style:en(`left: ${W(o)+W(s)}px; width: ${W(f)}px;`)}," ",6)])],2))}}),Mme=yi(Ame,[["__scopeId","data-v-16879415"]]),x0={name:"splitpanes",emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click"],props:{horizontal:{type:Boolean},pushOtherPanes:{type:Boolean,default:!0},dblClickSplitter:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean}},provide(){return{requestUpdate:this.requestUpdate,onPaneAdd:this.onPaneAdd,onPaneRemove:this.onPaneRemove,onPaneClick:this.onPaneClick}},data:()=>({container:null,ready:!1,panes:[],touch:{mouseDown:!1,dragging:!1,activeSplitter:null},splitterTaps:{splitter:null,timeoutId:null}}),computed:{panesCount(){return this.panes.length},indexedPanes(){return this.panes.reduce((e,t)=>(e[t.id]=t)&&e,{})}},methods:{updatePaneComponents(){this.panes.forEach(e=>{e.update&&e.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[e.id].size}%`})})},bindEvents(){document.addEventListener("mousemove",this.onMouseMove,{passive:!1}),document.addEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.addEventListener("touchmove",this.onMouseMove,{passive:!1}),document.addEventListener("touchend",this.onMouseUp))},unbindEvents(){document.removeEventListener("mousemove",this.onMouseMove,{passive:!1}),document.removeEventListener("mouseup",this.onMouseUp),"ontouchstart"in window&&(document.removeEventListener("touchmove",this.onMouseMove,{passive:!1}),document.removeEventListener("touchend",this.onMouseUp))},onMouseDown(e,t){this.bindEvents(),this.touch.mouseDown=!0,this.touch.activeSplitter=t},onMouseMove(e){this.touch.mouseDown&&(e.preventDefault(),this.touch.dragging=!0,this.calculatePanesSize(this.getCurrentMouseDrag(e)),this.$emit("resize",this.panes.map(t=>({min:t.min,max:t.max,size:t.size}))))},onMouseUp(){this.touch.dragging&&this.$emit("resized",this.panes.map(e=>({min:e.min,max:e.max,size:e.size}))),this.touch.mouseDown=!1,setTimeout(()=>{this.touch.dragging=!1,this.unbindEvents()},100)},onSplitterClick(e,t){"ontouchstart"in window&&(e.preventDefault(),this.dblClickSplitter&&(this.splitterTaps.splitter===t?(clearTimeout(this.splitterTaps.timeoutId),this.splitterTaps.timeoutId=null,this.onSplitterDblClick(e,t),this.splitterTaps.splitter=null):(this.splitterTaps.splitter=t,this.splitterTaps.timeoutId=setTimeout(()=>{this.splitterTaps.splitter=null},500)))),this.touch.dragging||this.$emit("splitter-click",this.panes[t])},onSplitterDblClick(e,t){let r=0;this.panes=this.panes.map((o,s)=>(o.size=s===t?o.max:o.min,s!==t&&(r+=o.min),o)),this.panes[t].size-=r,this.$emit("pane-maximize",this.panes[t]),this.$emit("resized",this.panes.map(o=>({min:o.min,max:o.max,size:o.size})))},onPaneClick(e,t){this.$emit("pane-click",this.indexedPanes[t])},getCurrentMouseDrag(e){const t=this.container.getBoundingClientRect(),{clientX:r,clientY:o}="ontouchstart"in window&&e.touches?e.touches[0]:e;return{x:r-t.left,y:o-t.top}},getCurrentDragPercentage(e){e=e[this.horizontal?"y":"x"];const t=this.container[this.horizontal?"clientHeight":"clientWidth"];return this.rtl&&!this.horizontal&&(e=t-e),e*100/t},calculatePanesSize(e){const t=this.touch.activeSplitter;let r={prevPanesSize:this.sumPrevPanesSize(t),nextPanesSize:this.sumNextPanesSize(t),prevReachedMinPanes:0,nextReachedMinPanes:0};const o=0+(this.pushOtherPanes?0:r.prevPanesSize),s=100-(this.pushOtherPanes?0:r.nextPanesSize),c=Math.max(Math.min(this.getCurrentDragPercentage(e),s),o);let f=[t,t+1],d=this.panes[f[0]]||null,h=this.panes[f[1]]||null;const p=d.max<100&&c>=d.max+r.prevPanesSize,v=h.max<100&&c<=100-(h.max+this.sumNextPanesSize(t+1));if(p||v){p?(d.size=d.max,h.size=Math.max(100-d.max-r.prevPanesSize-r.nextPanesSize,0)):(d.size=Math.max(100-h.max-r.prevPanesSize-this.sumNextPanesSize(t+1),0),h.size=h.max);return}if(this.pushOtherPanes){const m=this.doPushOtherPanes(r,c);if(!m)return;({sums:r,panesToResize:f}=m),d=this.panes[f[0]]||null,h=this.panes[f[1]]||null}d!==null&&(d.size=Math.min(Math.max(c-r.prevPanesSize-r.prevReachedMinPanes,d.min),d.max)),h!==null&&(h.size=Math.min(Math.max(100-c-r.nextPanesSize-r.nextReachedMinPanes,h.min),h.max))},doPushOtherPanes(e,t){const r=this.touch.activeSplitter,o=[r,r+1];return t<e.prevPanesSize+this.panes[o[0]].min&&(o[0]=this.findPrevExpandedPane(r).index,e.prevReachedMinPanes=0,o[0]<r&&this.panes.forEach((s,c)=>{c>o[0]&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),e.prevPanesSize=this.sumPrevPanesSize(o[0]),o[0]===void 0)?(e.prevReachedMinPanes=0,this.panes[0].size=this.panes[0].min,this.panes.forEach((s,c)=>{c>0&&c<=r&&(s.size=s.min,e.prevReachedMinPanes+=s.min)}),this.panes[o[1]].size=100-e.prevReachedMinPanes-this.panes[0].min-e.prevPanesSize-e.nextPanesSize,null):t>100-e.nextPanesSize-this.panes[o[1]].min&&(o[1]=this.findNextExpandedPane(r).index,e.nextReachedMinPanes=0,o[1]>r+1&&this.panes.forEach((s,c)=>{c>r&&c<o[1]&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),e.nextPanesSize=this.sumNextPanesSize(o[1]-1),o[1]===void 0)?(e.nextReachedMinPanes=0,this.panes[this.panesCount-1].size=this.panes[this.panesCount-1].min,this.panes.forEach((s,c)=>{c<this.panesCount-1&&c>=r+1&&(s.size=s.min,e.nextReachedMinPanes+=s.min)}),this.panes[o[0]].size=100-e.prevPanesSize-e.nextReachedMinPanes-this.panes[this.panesCount-1].min-e.nextPanesSize,null):{sums:e,panesToResize:o}},sumPrevPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o<e?r.size:0),0)},sumNextPanesSize(e){return this.panes.reduce((t,r,o)=>t+(o>e+1?r.size:0),0)},findPrevExpandedPane(e){return[...this.panes].reverse().find(t=>t.index<e&&t.size>t.min)||{}},findNextExpandedPane(e){return this.panes.find(t=>t.index>e+1&&t.size>t.min)||{}},checkSplitpanesNodes(){Array.from(this.container.children).forEach(e=>{const t=e.classList.contains("splitpanes__pane"),r=e.classList.contains("splitpanes__splitter");!t&&!r&&(e.parentNode.removeChild(e),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))})},addSplitter(e,t,r=!1){const o=e-1,s=document.createElement("div");s.classList.add("splitpanes__splitter"),r||(s.onmousedown=c=>this.onMouseDown(c,o),typeof window<"u"&&"ontouchstart"in window&&(s.ontouchstart=c=>this.onMouseDown(c,o)),s.onclick=c=>this.onSplitterClick(c,o+1)),this.dblClickSplitter&&(s.ondblclick=c=>this.onSplitterDblClick(c,o+1)),t.parentNode.insertBefore(s,t)},removeSplitter(e){e.onmousedown=void 0,e.onclick=void 0,e.ondblclick=void 0,e.parentNode.removeChild(e)},redoSplitters(){const e=Array.from(this.container.children);e.forEach(r=>{r.className.includes("splitpanes__splitter")&&this.removeSplitter(r)});let t=0;e.forEach(r=>{r.className.includes("splitpanes__pane")&&(!t&&this.firstSplitter?this.addSplitter(t,r,!0):t&&this.addSplitter(t,r),t++)})},requestUpdate({target:e,...t}){const r=this.indexedPanes[e._.uid];Object.entries(t).forEach(([o,s])=>r[o]=s)},onPaneAdd(e){let t=-1;Array.from(e.$el.parentNode.children).some(s=>(s.className.includes("splitpanes__pane")&&t++,s===e.$el));const r=parseFloat(e.minSize),o=parseFloat(e.maxSize);this.panes.splice(t,0,{id:e._.uid,index:t,min:isNaN(r)?0:r,max:isNaN(o)?100:o,size:e.size===null?null:parseFloat(e.size),givenSize:e.size,update:e.update}),this.panes.forEach((s,c)=>s.index=c),this.ready&&this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({addedPane:this.panes[t]}),this.$emit("pane-add",{index:t,panes:this.panes.map(s=>({min:s.min,max:s.max,size:s.size}))})})},onPaneRemove(e){const t=this.panes.findIndex(o=>o.id===e._.uid),r=this.panes.splice(t,1)[0];this.panes.forEach((o,s)=>o.index=s),this.$nextTick(()=>{this.redoSplitters(),this.resetPaneSizes({removedPane:{...r,index:t}}),this.$emit("pane-remove",{removed:r,panes:this.panes.map(o=>({min:o.min,max:o.max,size:o.size}))})})},resetPaneSizes(e={}){!e.addedPane&&!e.removedPane?this.initialPanesSizing():this.panes.some(t=>t.givenSize!==null||t.min||t.max<100)?this.equalizeAfterAddOrRemove(e):this.equalize(),this.ready&&this.$emit("resized",this.panes.map(t=>({min:t.min,max:t.max,size:t.size})))},equalize(){const e=100/this.panesCount;let t=0;const r=[],o=[];this.panes.forEach(s=>{s.size=Math.max(Math.min(e,s.max),s.min),t-=s.size,s.size>=s.max&&r.push(s.id),s.size<=s.min&&o.push(s.id)}),t>.1&&this.readjustSizes(t,r,o)},initialPanesSizing(){let e=100;const t=[],r=[];let o=0;this.panes.forEach(c=>{e-=c.size,c.size!==null&&o++,c.size>=c.max&&t.push(c.id),c.size<=c.min&&r.push(c.id)});let s=100;e>.1&&(this.panes.forEach(c=>{c.size===null&&(c.size=Math.max(Math.min(e/(this.panesCount-o),c.max),c.min)),s-=c.size}),s>.1&&this.readjustSizes(e,t,r))},equalizeAfterAddOrRemove({addedPane:e,removedPane:t}={}){let r=100/this.panesCount,o=0;const s=[],c=[];e&&e.givenSize!==null&&(r=(100-e.givenSize)/(this.panesCount-1)),this.panes.forEach(f=>{o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),!(Math.abs(o)<.1)&&(this.panes.forEach(f=>{e&&e.givenSize!==null&&e.id===f.id||(f.size=Math.max(Math.min(r,f.max),f.min)),o-=f.size,f.size>=f.max&&s.push(f.id),f.size<=f.min&&c.push(f.id)}),o>.1&&this.readjustSizes(o,s,c))},readjustSizes(e,t,r){let o;e>0?o=e/(this.panesCount-t.length):o=e/(this.panesCount-r.length),this.panes.forEach((s,c)=>{if(e>0&&!t.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}else if(!r.includes(s.id)){const f=Math.max(Math.min(s.size+o,s.max),s.min),d=f-s.size;e-=d,s.size=f}s.update({[this.horizontal?"height":"width"]:`${this.indexedPanes[s.id].size}%`})}),Math.abs(e)>.1&&this.$nextTick(()=>{this.ready&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})}},watch:{panes:{deep:!0,immediate:!1,handler(){this.updatePaneComponents()}},horizontal(){this.updatePaneComponents()},firstSplitter(){this.redoSplitters()},dblClickSplitter(e){[...this.container.querySelectorAll(".splitpanes__splitter")].forEach((t,r)=>{t.ondblclick=e?o=>this.onSplitterDblClick(o,r):void 0})}},beforeUnmount(){this.ready=!1},mounted(){this.container=this.$refs.container,this.checkSplitpanesNodes(),this.redoSplitters(),this.resetPaneSizes(),this.$emit("ready"),this.ready=!0},render(){return ya("div",{ref:"container",class:["splitpanes",`splitpanes--${this.horizontal?"horizontal":"vertical"}`,{"splitpanes--dragging":this.touch.dragging}]},this.$slots.default())}},Lme=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},Nme={name:"pane",inject:["requestUpdate","onPaneAdd","onPaneRemove","onPaneClick"],props:{size:{type:[Number,String],default:null},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},data:()=>({style:{}}),mounted(){this.onPaneAdd(this)},beforeUnmount(){this.onPaneRemove(this)},methods:{update(e){this.style=e}},computed:{sizeNumber(){return this.size||this.size===0?parseFloat(this.size):null},minSizeNumber(){return parseFloat(this.minSize)},maxSizeNumber(){return parseFloat(this.maxSize)}},watch:{sizeNumber(e){this.requestUpdate({target:this,size:e})},minSizeNumber(e){this.requestUpdate({target:this,min:e})},maxSizeNumber(e){this.requestUpdate({target:this,max:e})}}};function $me(e,t,r,o,s,c){return oe(),ye("div",{class:"splitpanes__pane",onClick:t[0]||(t[0]=f=>c.onPaneClick(f,e._.uid)),style:en(e.style)},[mn(e.$slots,"default")],4)}const Sc=Lme(Nme,[["render",$me]]),Ome={"h-screen":"","w-screen":"",overflow:"hidden"},Pme=ut({__name:"index",setup(e){const t=jE(),r=dc(m=>{p(),h(m)},0),o=dc(m=>{m.forEach((b,w)=>{wr.value[w]=b.size}),d(m)},0),s=dc(m=>{m.forEach((b,w)=>{Lo.value[w]=b.size}),h(m),v()},0),c=dc(m=>{d(m),p()},0);function f(){const m=window.innerWidth,b=Math.min(m/3,300);wr.value[0]=100*b/m,wr.value[1]=100-wr.value[0],d([{size:wr.value[0]},{size:wr.value[1]}])}function d(m){vn.navigation=m[0].size,vn.details.size=m[1].size}function h(m){vn.details.browser=m[0].size,vn.details.main=m[1].size}function p(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="none")}function v(){const m=document.querySelector("#tester-ui");m&&(m.style.pointerEvents="")}return(m,b)=>{const w=Mme,E=Tme,N=yve,L=Pge,M=Lge,T=uce,P=Qae;return oe(),ye(ct,null,[Oe(w),te("div",Ome,[Oe(W(x0),{class:"pt-4px",onResized:W(o),onResize:W(c),onReady:f},{default:rt(()=>[Oe(W(Sc),{size:W(wr)[0]},{default:rt(()=>[Oe(E)]),_:1},8,["size"]),Oe(W(Sc),{size:W(wr)[1]},{default:rt(()=>[W(Po)?(oe(),nt(W(x0),{id:"details-splitpanes",key:"browser-detail",onResize:W(r),onResized:W(s)},{default:rt(()=>[Oe(W(Sc),{size:W(Lo)[0],"min-size":"10"},{default:rt(()=>[b[0]||(qc(-1),(b[0]=Oe(T)).cacheIndex=0,qc(1),b[0])]),_:1},8,["size"]),Oe(W(Sc),{size:W(Lo)[1]},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1},8,["size"])]),_:1},8,["onResize","onResized"])):(oe(),nt(jk,{key:"ui-detail"},{default:rt(()=>[W(t)?(oe(),nt(N,{key:"summary"})):W(to)?(oe(),nt(L,{key:"coverage",src:W(wm)},null,8,["src"])):(oe(),nt(M,{key:"details"}))]),_:1}))]),_:1},8,["size"])]),_:1},8,["onResized","onResize"])]),Oe(P)],64)}}}),Rme=[{name:"index",path:"/",component:Pme,props:!0}];/*!
|
|
49
49
|
* vue-router v4.5.0
|
|
50
50
|
* (c) 2024 Eduardo San Martin Morote
|
|
51
51
|
* @license MIT
|