()
| 17 | **/let rh;const iv=typeof window<"u"&&window.trustedTypes;if(iv)try{rh=iv.createPolicy("vue",{createHTML:e=>e})}catch{}const Gb=rh?e=>rh.createHTML(e):e=>e,IT="http://www.w3.org/2000/svg",DT="http://www.w3.org/1998/Math/MathML",mi=typeof document<"u"?document:null,ov=mi&&mi.createElement("template"),zT={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"?mi.createElementNS(IT,e):t==="mathml"?mi.createElementNS(DT,e):r?mi.createElement(e,{is:r}):mi.createElement(e);return e==="select"&&o&&o.multiple!=null&&s.setAttribute("multiple",o.multiple),s},createText:e=>mi.createTextNode(e),createComment:e=>mi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>mi.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{ov.innerHTML=Gb(o==="svg"?`<svg>${e}</svg>`:o==="mathml"?`<math>${e}</math>`:e);const d=ov.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]}},Ui="transition",zl="animation",ga=Symbol("_vtc"),Kb={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},FT=on({},cb,Kb),HT=e=>(e.displayName="Transition",e.props=FT,e),BT=HT((e,{slots:t})=>za(M_,WT(e),t)),Oo=(e,t=[])=>{Ze(e)?e.forEach(r=>r(...t)):e&&e(...t)},sv=e=>e?Ze(e)?e.some(t=>t.length>1):e.length>1:!1;function WT(e){const t={};for(const N in e)N in Kb||(t[N]=e[N]);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:g=d,leaveFromClass:v=`${r}-leave-from`,leaveActiveClass:b=`${r}-leave-active`,leaveToClass:w=`${r}-leave-to`}=e,E=qT(s),L=E&&E[0],P=E&&E[1],{onBeforeEnter:M,onEnter:R,onEnterCancelled:I,onLeave:_,onLeaveCancelled:$,onBeforeAppear:W=M,onAppear:ne=R,onAppearCancelled:ee=I}=t,Z=(N,O,C,k)=>{N._enterCancelled=k,Po(N,O?g:d),Po(N,O?p:f),C&&C()},G=(N,O)=>{N._isLeaving=!1,Po(N,v),Po(N,w),Po(N,b),O&&O()},j=N=>(O,C)=>{const k=N?ne:R,z=()=>Z(O,N,C);Oo(k,[O,z]),lv(()=>{Po(O,N?h:c),di(O,N?g:d),sv(k)||av(O,o,L,z)})};return on(t,{onBeforeEnter(N){Oo(M,[N]),di(N,c),di(N,f)},onBeforeAppear(N){Oo(W,[N]),di(N,h),di(N,p)},onEnter:j(!1),onAppear:j(!0),onLeave(N,O){N._isLeaving=!0;const C=()=>G(N,O);di(N,v),N._enterCancelled?(di(N,b),fv(N)):(fv(N),di(N,b)),lv(()=>{N._isLeaving&&(Po(N,v),di(N,w),sv(_)||av(N,o,P,C))}),Oo(_,[N,C])},onEnterCancelled(N){Z(N,!1,void 0,!0),Oo(I,[N])},onAppearCancelled(N){Z(N,!0,void 0,!0),Oo(ee,[N])},onLeaveCancelled(N){G(N),Oo($,[N])}})}function qT(e){if(e==null)return null;if(kt(e))return[bd(e.enter),bd(e.leave)];{const t=bd(e);return[t,t]}}function bd(e){return N0(e)}function di(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.add(r)),(e[ga]||(e[ga]=new Set)).add(t)}function Po(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const r=e[ga];r&&(r.delete(t),r.size||(e[ga]=void 0))}function lv(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let jT=0;function av(e,t,r,o){const s=e._endId=++jT,c=()=>{s===e._endId&&o()};if(r!=null)return setTimeout(c,r);const{type:f,timeout:d,propCount:h}=UT(e,t);if(!f)return o();const p=f+"end";let g=0;const v=()=>{e.removeEventListener(p,b),c()},b=w=>{w.target===e&&++g>=h&&v()};setTimeout(()=>{g<h&&v()},d+1),e.addEventListener(p,b)}function UT(e,t){const r=window.getComputedStyle(e),o=E=>(r[E]||"").split(", "),s=o(`${Ui}Delay`),c=o(`${Ui}Duration`),f=cv(s,c),d=o(`${zl}Delay`),h=o(`${zl}Duration`),p=cv(d,h);let g=null,v=0,b=0;t===Ui?f>0&&(g=Ui,v=f,b=c.length):t===zl?p>0&&(g=zl,v=p,b=h.length):(v=Math.max(f,p),g=v>0?f>p?Ui:zl:null,b=g?g===Ui?c.length:h.length:0);const w=g===Ui&&/\b(?:transform|all)(?:,|$)/.test(o(`${Ui}Property`).toString());return{type:g,timeout:v,propCount:b,hasTransform:w}}function cv(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((r,o)=>uv(r)+uv(e[o])))}function uv(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function fv(e){return(e?e.ownerDocument:document).body.offsetHeight}function VT(e,t,r){const o=e[ga];o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):r?e.setAttribute("class",t):e.className=t}const du=Symbol("_vod"),Xb=Symbol("_vsh"),ro={name:"show",beforeMount(e,{value:t},{transition:r}){e[du]=e.style.display==="none"?"":e.style.display,r&&t?r.beforeEnter(e):Fl(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),Fl(e,!0),o.enter(e)):o.leave(e,()=>{Fl(e,!1)}):Fl(e,t))},beforeUnmount(e,{value:t}){Fl(e,t)}};function Fl(e,t){e.style.display=t?e[du]:"none",e[Xb]=!t}const GT=Symbol(""),KT=/(?:^|;)\s*display\s*:/;function XT(e,t,r){const o=e.style,s=Ht(r);let c=!1;if(r&&!s){if(t)if(Ht(t))for(const f of t.split(";")){const d=f.slice(0,f.indexOf(":")).trim();r[d]==null&&Vc(o,d,"")}else for(const f in t)r[f]==null&&Vc(o,f,"");for(const f in r)f==="display"&&(c=!0),Vc(o,f,r[f])}else if(s){if(t!==r){const f=o[GT];f&&(r+=";"+f),o.cssText=r,c=KT.test(r)}}else t&&e.removeAttribute("style");du in e&&(e[du]=c?o.display:"",e[Xb]&&(o.display="none"))}const dv=/\s*!important$/;function Vc(e,t,r){if(Ze(r))r.forEach(o=>Vc(e,t,o));else if(r==null&&(r=""),t.startsWith("--"))e.setProperty(t,r);else{const o=YT(e,t);dv.test(r)?e.setProperty(Ai(o),r.replace(dv,""),"important"):e[o]=r}}const hv=["Webkit","Moz","ms"],wd={};function YT(e,t){const r=wd[t];if(r)return r;let o=sr(t);if(o!=="filter"&&o in e)return wd[t]=o;o=Fu(o);for(let s=0;s<hv.length;s++){const c=hv[s]+o;if(c in e)return wd[t]=c}return t}const pv="http://www.w3.org/1999/xlink";function gv(e,t,r,o,s,c=US(t)){o&&t.startsWith("xlink:")?r==null?e.removeAttributeNS(pv,t.slice(6,t.length)):e.setAttributeNS(pv,t,r):r==null||c&&!O0(r)?e.removeAttribute(t):e.setAttribute(t,c?"":Pr(r)?String(r):r)}function mv(e,t,r,o,s){if(t==="innerHTML"||t==="textContent"){r!=null&&(e[t]=t==="innerHTML"?Gb(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=O0(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 zo(e,t,r,o){e.addEventListener(t,r,o)}function ZT(e,t,r,o){e.removeEventListener(t,r,o)}const vv=Symbol("_vei");function JT(e,t,r,o,s=null){const c=e[vv]||(e[vv]={}),f=c[t];if(o&&f)f.value=o;else{const[d,h]=QT(t);if(o){const p=c[t]=nC(o,s);zo(e,d,p,h)}else f&&(ZT(e,d,f,h),c[t]=void 0)}}const yv=/(?:Once|Passive|Capture)$/;function QT(e){let t;if(yv.test(e)){t={};let o;for(;o=e.match(yv);)e=e.slice(0,e.length-o[0].length),t[o[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Ai(e.slice(2)),t]}let xd=0;const eC=Promise.resolve(),tC=()=>xd||(eC.then(()=>xd=0),xd=Date.now());function nC(e,t){const r=o=>{if(!o._vts)o._vts=Date.now();else if(o._vts<=r.attached)return;$r(rC(o,r.value),t,5,[o])};return r.value=e,r.attached=tC(),r}function rC(e,t){if(Ze(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 bv=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,iC=(e,t,r,o,s,c)=>{const f=s==="svg";t==="class"?VT(e,o,f):t==="style"?XT(e,r,o):$u(t)?Hh(t)||JT(e,t,r,o,c):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):oC(e,t,o,f))?(mv(e,t,o),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&gv(e,t,o,f,c,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ht(o))?mv(e,sr(t),o,c,t):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),gv(e,t,o,f))};function oC(e,t,r,o){if(o)return!!(t==="innerHTML"||t==="textContent"||t in e&&bv(t)&&et(r));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 bv(t)&&Ht(r)?!1:t in e}const hu=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Ze(t)?r=>jc(t,r):t};function sC(e){e.target.composing=!0}function wv(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fs=Symbol("_assign");function xv(e,t,r){return t&&(e=e.trim()),r&&(e=Wh(e)),e}const Yb={created(e,{modifiers:{lazy:t,trim:r,number:o}},s){e[Fs]=hu(s);const c=o||s.props&&s.props.type==="number";zo(e,t?"change":"input",f=>{f.target.composing||e[Fs](xv(e.value,r,c))}),(r||c)&&zo(e,"change",()=>{e.value=xv(e.value,r,c)}),t||(zo(e,"compositionstart",sC),zo(e,"compositionend",wv),zo(e,"change",wv))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:r,modifiers:{lazy:o,trim:s,number:c}},f){if(e[Fs]=hu(f),e.composing)return;const d=(c||e.type==="number")&&!/^0\d/.test(e.value)?Wh(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))}},Zb={deep:!0,created(e,t,r){e[Fs]=hu(r),zo(e,"change",()=>{const o=e._modelValue,s=lC(e),c=e.checked,f=e[Fs];if(Ze(o)){const d=P0(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(Iu(o)){const d=new Set(o);c?d.add(s):d.delete(s),f(d)}else f(Jb(e,c))})},mounted:kv,beforeUpdate(e,t,r){e[Fs]=hu(r),kv(e,t,r)}};function kv(e,{value:t,oldValue:r},o){e._modelValue=t;let s;if(Ze(t))s=P0(t,o.props.value)>-1;else if(Iu(t))s=t.has(o.props.value);else{if(t===r)return;s=Bu(t,Jb(e,!0))}e.checked!==s&&(e.checked=s)}function lC(e){return"_value"in e?e._value:e.value}function Jb(e,t){const r=t?"_trueValue":"_falseValue";return r in e?e[r]:t}const aC=["ctrl","shift","alt","meta"],cC={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)=>aC.some(r=>e[`${r}Key`]&&!t.includes(r))},Gc=(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=cC[t[f]];if(d&&d(s,t))return}return e(s,...c)}))},uC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},ih=(e,t)=>{const r=e._withKeys||(e._withKeys={}),o=t.join(".");return r[o]||(r[o]=(s=>{if(!("key"in s))return;const c=Ai(s.key);if(t.some(f=>f===c||uC[f]===c))return e(s)}))},fC=on({patchProp:iC},zT);let Sv;function dC(){return Sv||(Sv=gT(fC))}const Qb=((...e)=>{const t=dC().createApp(...e),{mount:r}=t;return t.mount=o=>{const s=pC(o);if(!s)return;const c=t._component;!et(c)&&!c.render&&!c.template&&(c.template=s.innerHTML),s.nodeType===1&&(s.textContent="");const f=r(s,!1,hC(s));return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),f},t});function hC(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function pC(e){return Ht(e)?document.querySelector(e):e}const Ni=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r},gC={};function mC(e,t){const r=Go("RouterView");return ie(),Ve(r)}const vC=Ni(gC,[["render",mC]]),yC=["top","right","bottom","left"],_v=["start","end"],Tv=yC.reduce((e,t)=>e.concat(t,t+"-"+_v[0],t+"-"+_v[1]),[]),ma=Math.min,Io=Math.max,bC={left:"right",right:"left",bottom:"top",top:"bottom"},wC={start:"end",end:"start"};function oh(e,t,r){return Io(e,ma(t,r))}function Xo(e,t){return typeof e=="function"?e(t):e}function Qr(e){return e.split("-")[0]}function Or(e){return e.split("-")[1]}function ew(e){return e==="x"?"y":"x"}function ip(e){return e==="y"?"height":"width"}function Fa(e){return["top","bottom"].includes(Qr(e))?"y":"x"}function op(e){return ew(Fa(e))}function tw(e,t,r){r===void 0&&(r=!1);const o=Or(e),s=op(e),c=ip(s);let f=s==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[c]>t.floating[c]&&(f=gu(f)),[f,gu(f)]}function xC(e){const t=gu(e);return[pu(e),t,pu(t)]}function pu(e){return e.replace(/start|end/g,t=>wC[t])}function kC(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 SC(e,t,r,o){const s=Or(e);let c=kC(Qr(e),r==="start",o);return s&&(c=c.map(f=>f+"-"+s),t&&(c=c.concat(c.map(pu)))),c}function gu(e){return e.replace(/left|right|bottom|top/g,t=>bC[t])}function _C(e){return{top:0,right:0,bottom:0,left:0,...e}}function nw(e){return typeof e!="number"?_C(e):{top:e,right:e,bottom:e,left:e}}function ta(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Cv(e,t,r){let{reference:o,floating:s}=e;const c=Fa(t),f=op(t),d=ip(f),h=Qr(t),p=c==="y",g=o.x+o.width/2-s.width/2,v=o.y+o.height/2-s.height/2,b=o[d]/2-s[d]/2;let w;switch(h){case"top":w={x:g,y:o.y-s.height};break;case"bottom":w={x:g,y:o.y+o.height};break;case"right":w={x:o.x+o.width,y:v};break;case"left":w={x:o.x-s.width,y:v};break;default:w={x:o.x,y:o.y}}switch(Or(t)){case"start":w[f]-=b*(r&&p?-1:1);break;case"end":w[f]+=b*(r&&p?-1:1);break}return w}const TC=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:g,y:v}=Cv(p,o,h),b=o,w={},E=0;for(let L=0;L<d.length;L++){const{name:P,fn:M}=d[L],{x:R,y:I,data:_,reset:$}=await M({x:g,y:v,initialPlacement:o,placement:b,strategy:s,middlewareData:w,rects:p,platform:f,elements:{reference:e,floating:t}});g=R??g,v=I??v,w={...w,[P]:{...w[P],..._}},$&&E<=50&&(E++,typeof $=="object"&&($.placement&&(b=$.placement),$.rects&&(p=$.rects===!0?await f.getElementRects({reference:e,floating:t,strategy:s}):$.rects),{x:g,y:v}=Cv(p,b,h)),L=-1)}return{x:g,y:v,placement:b,strategy:s,middlewareData:w}};async function ef(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:g="viewport",elementContext:v="floating",altBoundary:b=!1,padding:w=0}=Xo(t,e),E=nw(w),P=d[b?v==="floating"?"reference":"floating":v],M=ta(await c.getClippingRect({element:(r=await(c.isElement==null?void 0:c.isElement(P)))==null||r?P:P.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(d.floating)),boundary:p,rootBoundary:g,strategy:h})),R=v==="floating"?{...f.floating,x:o,y:s}:f.reference,I=await(c.getOffsetParent==null?void 0:c.getOffsetParent(d.floating)),_=await(c.isElement==null?void 0:c.isElement(I))?await(c.getScale==null?void 0:c.getScale(I))||{x:1,y:1}:{x:1,y:1},$=ta(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({elements:d,rect:R,offsetParent:I,strategy:h}):R);return{top:(M.top-$.top+E.top)/_.y,bottom:($.bottom-M.bottom+E.bottom)/_.y,left:(M.left-$.left+E.left)/_.x,right:($.right-M.right+E.right)/_.x}}const CC=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:g=0}=Xo(e,t)||{};if(p==null)return{};const v=nw(g),b={x:r,y:o},w=op(s),E=ip(w),L=await f.getDimensions(p),P=w==="y",M=P?"top":"left",R=P?"bottom":"right",I=P?"clientHeight":"clientWidth",_=c.reference[E]+c.reference[w]-b[w]-c.floating[E],$=b[w]-c.reference[w],W=await(f.getOffsetParent==null?void 0:f.getOffsetParent(p));let ne=W?W[I]:0;(!ne||!await(f.isElement==null?void 0:f.isElement(W)))&&(ne=d.floating[I]||c.floating[E]);const ee=_/2-$/2,Z=ne/2-L[E]/2-1,G=ma(v[M],Z),j=ma(v[R],Z),N=G,O=ne-L[E]-j,C=ne/2-L[E]/2+ee,k=oh(N,C,O),z=!h.arrow&&Or(s)!=null&&C!==k&&c.reference[E]/2-(C<N?G:j)-L[E]/2<0,B=z?C<N?C-N:C-O:0;return{[w]:b[w]+B,data:{[w]:k,centerOffset:C-k-B,...z&&{alignmentOffset:B}},reset:z}}});function EC(e,t,r){return(e?[...r.filter(s=>Or(s)===e),...r.filter(s=>Or(s)!==e)]:r.filter(s=>Qr(s)===s)).filter(s=>e?Or(s)===e||(t?pu(s)!==s:!1):!0)}const AC=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:g=!1,alignment:v,allowedPlacements:b=Tv,autoAlignment:w=!0,...E}=Xo(e,t),L=v!==void 0||b===Tv?EC(v||null,w,b):b,P=await ef(t,E),M=((r=f.autoPlacement)==null?void 0:r.index)||0,R=L[M];if(R==null)return{};const I=tw(R,c,await(h.isRTL==null?void 0:h.isRTL(p.floating)));if(d!==R)return{reset:{placement:L[0]}};const _=[P[Qr(R)],P[I[0]],P[I[1]]],$=[...((o=f.autoPlacement)==null?void 0:o.overflows)||[],{placement:R,overflows:_}],W=L[M+1];if(W)return{data:{index:M+1,overflows:$},reset:{placement:W}};const ne=$.map(G=>{const j=Or(G.placement);return[G.placement,j&&g?G.overflows.slice(0,2).reduce((N,O)=>N+O,0):G.overflows[0],G.overflows]}).sort((G,j)=>G[1]-j[1]),Z=((s=ne.filter(G=>G[2].slice(0,Or(G[0])?2:3).every(j=>j<=0))[0])==null?void 0:s[0])||ne[0][0];return Z!==d?{data:{index:M+1,overflows:$},reset:{placement:Z}}:{}}}},LC=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:g=!0,crossAxis:v=!0,fallbackPlacements:b,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:L=!0,...P}=Xo(e,t);if((r=c.arrow)!=null&&r.alignmentOffset)return{};const M=Qr(s),R=Qr(d)===d,I=await(h.isRTL==null?void 0:h.isRTL(p.floating)),_=b||(R||!L?[gu(d)]:xC(d));!b&&E!=="none"&&_.push(...SC(d,L,E,I));const $=[d,..._],W=await ef(t,P),ne=[];let ee=((o=c.flip)==null?void 0:o.overflows)||[];if(g&&ne.push(W[M]),v){const N=tw(s,f,I);ne.push(W[N[0]],W[N[1]])}if(ee=[...ee,{placement:s,overflows:ne}],!ne.every(N=>N<=0)){var Z,G;const N=(((Z=c.flip)==null?void 0:Z.index)||0)+1,O=$[N];if(O)return{data:{index:N,overflows:ee},reset:{placement:O}};let C=(G=ee.filter(k=>k.overflows[0]<=0).sort((k,z)=>k.overflows[1]-z.overflows[1])[0])==null?void 0:G.placement;if(!C)switch(w){case"bestFit":{var j;const k=(j=ee.map(z=>[z.placement,z.overflows.filter(B=>B>0).reduce((B,ce)=>B+ce,0)]).sort((z,B)=>z[1]-B[1])[0])==null?void 0:j[0];k&&(C=k);break}case"initialPlacement":C=d;break}if(s!==C)return{reset:{placement:C}}}return{}}}};async function MC(e,t){const{placement:r,platform:o,elements:s}=e,c=await(o.isRTL==null?void 0:o.isRTL(s.floating)),f=Qr(r),d=Or(r),h=Fa(r)==="y",p=["left","top"].includes(f)?-1:1,g=c&&h?-1:1,v=Xo(t,e);let{mainAxis:b,crossAxis:w,alignmentAxis:E}=typeof v=="number"?{mainAxis:v,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...v};return d&&typeof E=="number"&&(w=d==="end"?E*-1:E),h?{x:w*g,y:b*p}:{x:b*p,y:w*g}}const NC=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 MC(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}}}}},OC=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:P=>{let{x:M,y:R}=P;return{x:M,y:R}}},...h}=Xo(e,t),p={x:r,y:o},g=await ef(t,h),v=Fa(Qr(s)),b=ew(v);let w=p[b],E=p[v];if(c){const P=b==="y"?"top":"left",M=b==="y"?"bottom":"right",R=w+g[P],I=w-g[M];w=oh(R,w,I)}if(f){const P=v==="y"?"top":"left",M=v==="y"?"bottom":"right",R=E+g[P],I=E-g[M];E=oh(R,E,I)}const L=d.fn({...t,[b]:w,[v]:E});return{...L,data:{x:L.x-r,y:L.y-o}}}}},PC=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}=Xo(e,t),h=await ef(t,d),p=Qr(r),g=Or(r),v=Fa(r)==="y",{width:b,height:w}=o.floating;let E,L;p==="top"||p==="bottom"?(E=p,L=g===(await(s.isRTL==null?void 0:s.isRTL(c.floating))?"start":"end")?"left":"right"):(L=p,E=g==="end"?"top":"bottom");const P=w-h[E],M=b-h[L],R=!t.middlewareData.shift;let I=P,_=M;if(v){const W=b-h.left-h.right;_=g||R?ma(M,W):W}else{const W=w-h.top-h.bottom;I=g||R?ma(P,W):W}if(R&&!g){const W=Io(h.left,0),ne=Io(h.right,0),ee=Io(h.top,0),Z=Io(h.bottom,0);v?_=b-2*(W!==0||ne!==0?W+ne:Io(h.left,h.right)):I=w-2*(ee!==0||Z!==0?ee+Z:Io(h.top,h.bottom))}await f({...t,availableWidth:_,availableHeight:I});const $=await s.getDimensions(c.floating);return b!==$.width||w!==$.height?{reset:{rects:!0}}:{}}}};function hr(e){var t;return((t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Yr(e){return hr(e).getComputedStyle(e)}const Ev=Math.min,na=Math.max,mu=Math.round;function rw(e){const t=Yr(e);let r=parseFloat(t.width),o=parseFloat(t.height);const s=e.offsetWidth,c=e.offsetHeight,f=mu(r)!==s||mu(o)!==c;return f&&(r=s,o=c),{width:r,height:o,fallback:f}}function fo(e){return ow(e)?(e.nodeName||"").toLowerCase():""}let Lc;function iw(){if(Lc)return Lc;const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?(Lc=e.brands.map((t=>t.brand+"/"+t.version)).join(" "),Lc):navigator.userAgent}function Zr(e){return e instanceof hr(e).HTMLElement}function so(e){return e instanceof hr(e).Element}function ow(e){return e instanceof hr(e).Node}function Av(e){return typeof ShadowRoot>"u"?!1:e instanceof hr(e).ShadowRoot||e instanceof ShadowRoot}function tf(e){const{overflow:t,overflowX:r,overflowY:o,display:s}=Yr(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(s)}function RC(e){return["table","td","th"].includes(fo(e))}function sh(e){const t=/firefox/i.test(iw()),r=Yr(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 sw(){return!/^((?!chrome|android).)*safari/i.test(iw())}function sp(e){return["html","body","#document"].includes(fo(e))}function lw(e){return so(e)?e:e.contextElement}const aw={x:1,y:1};function Hs(e){const t=lw(e);if(!Zr(t))return aw;const r=t.getBoundingClientRect(),{width:o,height:s,fallback:c}=rw(t);let f=(c?mu(r.width):r.width)/o,d=(c?mu(r.height):r.height)/s;return f&&Number.isFinite(f)||(f=1),d&&Number.isFinite(d)||(d=1),{x:f,y:d}}function va(e,t,r,o){var s,c;t===void 0&&(t=!1),r===void 0&&(r=!1);const f=e.getBoundingClientRect(),d=lw(e);let h=aw;t&&(o?so(o)&&(h=Hs(o)):h=Hs(e));const p=d?hr(d):window,g=!sw()&&r;let v=(f.left+(g&&((s=p.visualViewport)==null?void 0:s.offsetLeft)||0))/h.x,b=(f.top+(g&&((c=p.visualViewport)==null?void 0:c.offsetTop)||0))/h.y,w=f.width/h.x,E=f.height/h.y;if(d){const L=hr(d),P=o&&so(o)?hr(o):o;let M=L.frameElement;for(;M&&o&&P!==L;){const R=Hs(M),I=M.getBoundingClientRect(),_=getComputedStyle(M);I.x+=(M.clientLeft+parseFloat(_.paddingLeft))*R.x,I.y+=(M.clientTop+parseFloat(_.paddingTop))*R.y,v*=R.x,b*=R.y,w*=R.x,E*=R.y,v+=I.x,b+=I.y,M=hr(M).frameElement}}return{width:w,height:E,top:b,right:v+w,bottom:b+E,left:v,x:v,y:b}}function lo(e){return((ow(e)?e.ownerDocument:e.document)||window.document).documentElement}function nf(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function cw(e){return va(lo(e)).left+nf(e).scrollLeft}function ya(e){if(fo(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Av(e)&&e.host||lo(e);return Av(t)?t.host:t}function uw(e){const t=ya(e);return sp(t)?t.ownerDocument.body:Zr(t)&&tf(t)?t:uw(t)}function vu(e,t){var r;t===void 0&&(t=[]);const o=uw(e),s=o===((r=e.ownerDocument)==null?void 0:r.body),c=hr(o);return s?t.concat(c,c.visualViewport||[],tf(o)?o:[]):t.concat(o,vu(o))}function Lv(e,t,r){return t==="viewport"?ta((function(o,s){const c=hr(o),f=lo(o),d=c.visualViewport;let h=f.clientWidth,p=f.clientHeight,g=0,v=0;if(d){h=d.width,p=d.height;const b=sw();(b||!b&&s==="fixed")&&(g=d.offsetLeft,v=d.offsetTop)}return{width:h,height:p,x:g,y:v}})(e,r)):so(t)?ta((function(o,s){const c=va(o,!0,s==="fixed"),f=c.top+o.clientTop,d=c.left+o.clientLeft,h=Zr(o)?Hs(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)):ta((function(o){const s=lo(o),c=nf(o),f=o.ownerDocument.body,d=na(s.scrollWidth,s.clientWidth,f.scrollWidth,f.clientWidth),h=na(s.scrollHeight,s.clientHeight,f.scrollHeight,f.clientHeight);let p=-c.scrollLeft+cw(o);const g=-c.scrollTop;return Yr(f).direction==="rtl"&&(p+=na(s.clientWidth,f.clientWidth)-d),{width:d,height:h,x:p,y:g}})(lo(e)))}function Mv(e){return Zr(e)&&Yr(e).position!=="fixed"?e.offsetParent:null}function Nv(e){const t=hr(e);let r=Mv(e);for(;r&&RC(r)&&Yr(r).position==="static";)r=Mv(r);return r&&(fo(r)==="html"||fo(r)==="body"&&Yr(r).position==="static"&&!sh(r))?t:r||(function(o){let s=ya(o);for(;Zr(s)&&!sp(s);){if(sh(s))return s;s=ya(s)}return null})(e)||t}function $C(e,t,r){const o=Zr(t),s=lo(t),c=va(e,!0,r==="fixed",t);let f={scrollLeft:0,scrollTop:0};const d={x:0,y:0};if(o||!o&&r!=="fixed")if((fo(t)!=="body"||tf(s))&&(f=nf(t)),Zr(t)){const h=va(t,!0);d.x=h.x+t.clientLeft,d.y=h.y+t.clientTop}else s&&(d.x=cw(s));return{x:c.left+f.scrollLeft-d.x,y:c.top+f.scrollTop-d.y,width:c.width,height:c.height}}const IC={getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:o,strategy:s}=e;const c=r==="clippingAncestors"?(function(p,g){const v=g.get(p);if(v)return v;let b=vu(p).filter((P=>so(P)&&fo(P)!=="body")),w=null;const E=Yr(p).position==="fixed";let L=E?ya(p):p;for(;so(L)&&!sp(L);){const P=Yr(L),M=sh(L);(E?M||w:M||P.position!=="static"||!w||!["absolute","fixed"].includes(w.position))?w=P:b=b.filter((R=>R!==L)),L=ya(L)}return g.set(p,b),b})(t,this._c):[].concat(r),f=[...c,o],d=f[0],h=f.reduce(((p,g)=>{const v=Lv(t,g,s);return p.top=na(v.top,p.top),p.right=Ev(v.right,p.right),p.bottom=Ev(v.bottom,p.bottom),p.left=na(v.left,p.left),p}),Lv(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=Zr(r),c=lo(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")&&((fo(r)!=="body"||tf(c))&&(f=nf(r)),Zr(r))){const p=va(r);d=Hs(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:so,getDimensions:function(e){return Zr(e)?rw(e):e.getBoundingClientRect()},getOffsetParent:Nv,getDocumentElement:lo,getScale:Hs,async getElementRects(e){let{reference:t,floating:r,strategy:o}=e;const s=this.getOffsetParent||Nv,c=this.getDimensions;return{reference:$C(t,await s(r),o),floating:{x:0,y:0,...await c(r)}}},getClientRects:e=>Array.from(e.getClientRects()),isRTL:e=>Yr(e).direction==="rtl"},DC=(e,t,r)=>{const o=new Map,s={platform:IC,...r},c={...s.platform,_c:o};return TC(e,t,{...s,platform:c})},ao={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 ba(e,t){let r=ao.themes[e]||{},o;do o=r[t],typeof o>"u"?r.$extend?r=ao.themes[r.$extend]||{}:(r=null,o=ao[t]):r=null;while(r);return o}function zC(e){const t=[e];let r=ao.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t.map(o=>`v-popper--theme-${o}`)}function Ov(e){const t=[e];let r=ao.themes[e]||{};do r.$extend?(t.push(r.$extend),r=ao.themes[r.$extend]||{}):r=null;while(r);return t}let wa=!1;if(typeof window<"u"){wa=!1;try{const e=Object.defineProperty({},"passive",{get(){wa=!0}});window.addEventListener("test",null,e)}catch{}}let fw=!1;typeof window<"u"&&typeof navigator<"u"&&(fw=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const dw=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),Pv={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart",pointer:"pointerdown"},Rv={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend",pointer:"pointerup"};function $v(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function kd(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const nr=[];let Ro=null;const Iv={};function Dv(e){let t=Iv[e];return t||(t=Iv[e]=[]),t}let lh=function(){};typeof window<"u"&&(lh=window.Element);function ht(e){return function(t){return ba(t.theme,e)}}const Sd="__floating-vue__popper",hw=()=>rt({name:"VPopper",provide(){return{[Sd]:{parentPopper:this}}},inject:{[Sd]:{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:ht("disabled")},positioningDisabled:{type:Boolean,default:ht("positioningDisabled")},placement:{type:String,default:ht("placement"),validator:e=>dw.includes(e)},delay:{type:[String,Number,Object],default:ht("delay")},distance:{type:[Number,String],default:ht("distance")},skidding:{type:[Number,String],default:ht("skidding")},triggers:{type:Array,default:ht("triggers")},showTriggers:{type:[Array,Function],default:ht("showTriggers")},hideTriggers:{type:[Array,Function],default:ht("hideTriggers")},popperTriggers:{type:Array,default:ht("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:ht("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:ht("popperHideTriggers")},container:{type:[String,Object,lh,Boolean],default:ht("container")},boundary:{type:[String,lh],default:ht("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:ht("strategy")},autoHide:{type:[Boolean,Function],default:ht("autoHide")},handleResize:{type:Boolean,default:ht("handleResize")},instantMove:{type:Boolean,default:ht("instantMove")},eagerMount:{type:Boolean,default:ht("eagerMount")},popperClass:{type:[String,Array,Object],default:ht("popperClass")},computeTransformOrigin:{type:Boolean,default:ht("computeTransformOrigin")},autoMinSize:{type:Boolean,default:ht("autoMinSize")},autoSize:{type:[Boolean,String],default:ht("autoSize")},autoMaxSize:{type:Boolean,default:ht("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:ht("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:ht("preventOverflow")},overflowPadding:{type:[Number,String],default:ht("overflowPadding")},arrowPadding:{type:[Number,String],default:ht("arrowPadding")},arrowOverflow:{type:Boolean,default:ht("arrowOverflow")},flip:{type:Boolean,default:ht("flip")},shift:{type:Boolean,default:ht("shift")},shiftCrossAxis:{type:Boolean,default:ht("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:ht("noAutoFocus")},disposeTimeout:{type:Number,default:ht("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[Sd])==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(NC({mainAxis:this.distance,crossAxis:this.skidding}));const t=this.placement.startsWith("auto");if(t?e.middleware.push(AC({alignment:this.placement.split("-")[1]??""})):e.placement=this.placement,this.preventOverflow&&(this.shift&&e.middleware.push(OC({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!t&&this.flip&&e.middleware.push(LC({padding:this.overflowPadding,boundary:this.boundary}))),e.middleware.push(CC({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(PC({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 DC(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),Ro&&this.instantMove&&Ro.instantMove&&Ro!==this.parentPopper){Ro.$_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&&(Ro=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 kd(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...vu(this.$_referenceNode),...vu(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<nr.length;r++)t=nr[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}nr.push(this),document.body.classList.add("v-popper--some-open");for(const t of Ov(this.theme))Dv(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 kd(),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,$v(nr,this),nr.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of Ov(this.theme)){const o=Dv(r);$v(o,this),o.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}Ro===this&&(Ro=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 kd(),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,Pv,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],Pv,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,Rv,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],Rv,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,wa?{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(ra>=e.left&&ra<=e.right&&ia>=e.top&&ia<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=ra-Ki,o=ia-Xi,s=t.left+t.width/2-Ki+(t.top+t.height/2)-Xi+t.width+t.height,c=Ki+r*s,f=Xi+o*s;return Mc(Ki,Xi,c,f,t.left,t.top,t.left,t.bottom)||Mc(Ki,Xi,c,f,t.left,t.top,t.right,t.top)||Mc(Ki,Xi,c,f,t.right,t.top,t.right,t.bottom)||Mc(Ki,Xi,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(fw){const e=wa?{passive:!0,capture:!0}:!0;document.addEventListener("touchstart",t=>zv(t),e),document.addEventListener("touchend",t=>Fv(t,!0),e)}else window.addEventListener("mousedown",e=>zv(e),!0),window.addEventListener("click",e=>Fv(e,!1),!0);window.addEventListener("resize",BC)}function zv(e,t){for(let r=0;r<nr.length;r++){const o=nr[r];try{o.mouseDownContains=o.popperNode().contains(e.target)}catch{}}}function Fv(e,t){FC(e,t)}function FC(e,t){const r={};for(let o=nr.length-1;o>=0;o--){const s=nr[o];try{const c=s.containsGlobalTarget=s.mouseDownContains||s.popperNode().contains(e.target);s.pendingHide=!1,requestAnimationFrame(()=>{if(s.pendingHide=!1,!r[s.randomId]&&Hv(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&&Hv(f,f.containsGlobalTarget,e);)f.$_handleGlobalClose(e,t),f=f.parentPopper}})}catch{}}}function Hv(e,t,r){return r.closeAllPopover||r.closePopover&&t||HC(e,r)&&!t}function HC(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function BC(){for(let e=0;e<nr.length;e++)nr[e].$_computePosition()}function Bv(){for(let e=0;e<nr.length;e++)nr[e].hide()}let Ki=0,Xi=0,ra=0,ia=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{Ki=ra,Xi=ia,ra=e.clientX,ia=e.clientY},wa?{passive:!0}:void 0);function Mc(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 WC={extends:hw()},rf=(e,t)=>{const r=e.__vccOpts||e;for(const[o,s]of t)r[o]=s;return r};function qC(e,t,r,o,s,c){return ie(),ve("div",{ref:"reference",class:ot(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Dt(e.$slots,"default",qS(qb(e.slotData)))],2)}const jC=rf(WC,[["render",qC]]);function UC(){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 Kc;function ah(){ah.init||(ah.init=!0,Kc=UC()!==-1)}var of={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){ah(),Et(()=>{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",Kc&&this.$el.appendChild(e),e.data="about:blank",Kc||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&&(!Kc&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const VC=lb();ob("data-v-b329ee4c");const GC={class:"resize-observer",tabindex:"-1"};sb();const KC=VC((e,t,r,o,s,c)=>(ie(),Ve("div",GC)));of.render=KC;of.__scopeId="data-v-b329ee4c";of.__file="src/components/ResizeObserver.vue";const pw=(e="theme")=>({computed:{themeClass(){return zC(this[e])}}}),XC=rt({name:"VPopperContent",components:{ResizeObserver:of},mixins:[pw()],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}}}),YC=["id","aria-hidden","tabindex","data-popper-placement"],ZC={ref:"inner",class:"v-popper__inner"},JC=X("div",{class:"v-popper__arrow-outer"},null,-1),QC=X("div",{class:"v-popper__arrow-inner"},null,-1),eE=[JC,QC];function tE(e,t,r,o,s,c){const f=Go("ResizeObserver");return ie(),ve("div",{id:e.popperId,ref:"popover",class:ot(["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:zt(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]=ih(d=>e.autoHide&&e.$emit("hide"),["esc"]))},[X("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=d=>e.autoHide&&e.$emit("hide"))}),X("div",{class:"v-popper__wrapper",style:zt(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[X("div",ZC,[e.mounted?(ie(),ve(nt,{key:0},[X("div",null,[Dt(e.$slots,"default")]),e.handleResize?(ie(),Ve(f,{key:0,onNotify:t[1]||(t[1]=d=>e.$emit("resize",d))})):He("",!0)],64)):He("",!0)],512),X("div",{ref:"arrow",class:"v-popper__arrow-container",style:zt(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},eE,4)],4)],46,YC)}const gw=rf(XC,[["render",tE]]),mw={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 ch=function(){};typeof window<"u"&&(ch=window.Element);const nE=rt({name:"VPopperWrapper",components:{Popper:jC,PopperContent:gw},mixins:[mw,pw("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,ch,Boolean],default:void 0},boundary:{type:[String,ch],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 rE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({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:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,show:w,hide:E,handleResize:L,onResize:P,classes:M,result:R})=>[Dt(e.$slots,"default",{shown:p,show:w,hide:E}),Ne(f,{ref:"popperContent","popper-id":h,theme:e.finalTheme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":L,classes:M,result:R,onHide:E,onResize:P},{default:We(()=>[Dt(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 lp=rf(nE,[["render",rE]]);({...lp});({...lp});const iE={...lp,name:"VTooltip",vPopperTheme:"tooltip"},oE=rt({name:"VTooltipDirective",components:{Popper:hw(),PopperContent:gw},mixins:[mw],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>ba(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>ba(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}}}),sE=["innerHTML"],lE=["textContent"];function aE(e,t,r,o,s,c){const f=Go("PopperContent"),d=Go("Popper");return ie(),Ve(d,ki({ref:"popper"},e.$attrs,{theme:e.theme,"target-nodes":e.targetNodes,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:We(({popperId:h,isShown:p,shouldMountContent:g,skipTransition:v,autoHide:b,hide:w,handleResize:E,onResize:L,classes:P,result:M})=>[Ne(f,{ref:"popperContent",class:ot({"v-popper--tooltip-loading":e.loading}),"popper-id":h,theme:e.theme,shown:p,mounted:g,"skip-transition":v,"auto-hide":b,"handle-resize":E,classes:P,result:M,onHide:w,onResize:L},{default:We(()=>[e.html?(ie(),ve("div",{key:0,innerHTML:e.finalContent},null,8,sE)):(ie(),ve("div",{key:1,textContent:Re(e.finalContent)},null,8,lE))]),_: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 cE=rf(oE,[["render",aE]]),vw="v-popper--has-tooltip";function uE(e,t){let r=e.placement;if(!r&&t)for(const o of dw)t[o]&&(r=o);return r||(r=ba(e.theme||"tooltip","placement")),r}function yw(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=uE(o,r),o.targetNodes=()=>[e],o.referenceNode=()=>e,o}let _d,xa,fE=0;function dE(){if(_d)return;xa=Ge([]),_d=Qb({name:"VTooltipDirectiveApp",setup(){return{directives:xa}},render(){return this.directives.map(t=>za(cE,{...t.options,shown:t.shown||t.options.shown,key:t.id}))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),_d.mount(e)}function bw(e,t,r){dE();const o=Ge(yw(e,t,r)),s=Ge(!1),c={id:fE++,options:o,shown:s};return xa.value.push(c),e.classList&&e.classList.add(vw),e.$_popper={options:o,item:c,show(){s.value=!0},hide(){s.value=!1}}}function ap(e){if(e.$_popper){const t=xa.value.indexOf(e.$_popper.item);t!==-1&&xa.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(vw)}function Wv(e,{value:t,modifiers:r}){const o=yw(e,t,r);if(!o.content||ba(o.theme||"tooltip","disabled"))ap(e);else{let s;e.$_popper?(s=e.$_popper,s.options.value=o):s=bw(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?s.show():s.hide())}}const hE={beforeMount:Wv,updated:Wv,beforeUnmount(e){ap(e)}},pE=hE,Qi=iE,ww={options:ao};function cp(e){return I0()?(KS(e),!0):!1}const Td=new WeakMap,gE=(...e)=>{var t;const r=e[0],o=(t=ti())==null?void 0:t.proxy;if(o==null&&!Sb())throw new Error("injectLocal must be called in setup");return o&&Td.has(o)&&r in Td.get(o)?Td.get(o)[r]:pn(...e)},mE=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const vE=Object.prototype.toString,yE=e=>vE.call(e)==="[object Object]",bE=()=>+Date.now(),yu=()=>{};function up(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 fp=e=>e();function xw(e,t={}){let r,o,s=yu;const c=h=>{clearTimeout(h),s(),s=yu};let f;return h=>{const p=Xt(e),g=Xt(t.maxWait);return r&&c(r),p<=0||g!==void 0&&g<=0?(o&&(c(o),o=null),Promise.resolve(h())):new Promise((v,b)=>{s=t.rejectOnCancel?b:v,f=h,g&&!o&&(o=setTimeout(()=>{r&&c(r),o=null,v(f())},g)),r=setTimeout(()=>{o&&c(o),o=null,v(h())},p)})}}function kw(e=fp,t={}){const{initialState:r="active"}=t,o=Yo(r==="active");function s(){o.value=!1}function c(){o.value=!0}const f=(...d)=>{o.value&&e(...d)};return{isActive:Gs(o),pause:s,resume:c,eventFilter:f}}function qv(e,t=!1,r="Timeout"){return new Promise((o,s)=>{setTimeout(t?()=>s(r):o,e)})}function jv(e){return e.endsWith("rem")?Number.parseFloat(e)*16:Number.parseFloat(e)}function wE(e){return ti()}function Cd(e){return Array.isArray(e)?e:[e]}function Yo(...e){if(e.length!==1)return w_(...e);const t=e[0];return typeof t=="function"?Gs(Q0(()=>({get:t,set:yu}))):Ge(t)}function Nc(e,t=200,r={}){return up(xw(t,r),e)}function Sw(e,t,r={}){const{eventFilter:o=fp,...s}=r;return xt(e,up(o,t),s)}function _w(e,t,r={}){const{eventFilter:o,initialState:s="active",...c}=r,{eventFilter:f,pause:d,resume:h,isActive:p}=kw(o,{initialState:s});return{stop:Sw(e,t,{...c,eventFilter:f}),pause:d,resume:h,isActive:p}}function dp(e,t=!0,r){wE()?Mi(e,r):t?e():Et(e)}function uh(e,t=!1){function r(v,{flush:b="sync",deep:w=!1,timeout:E,throwOnTimeout:L}={}){let P=null;const R=[new Promise(I=>{P=xt(e,_=>{v(_)!==t&&(P?P():Et(()=>P?.()),I(_))},{flush:b,deep:w,immediate:!0})})];return E!=null&&R.push(qv(E,L).then(()=>Xt(e)).finally(()=>P?.())),Promise.race(R)}function o(v,b){if(!Mt(v))return r(_=>_===v,b);const{flush:w="sync",deep:E=!1,timeout:L,throwOnTimeout:P}=b??{};let M=null;const I=[new Promise(_=>{M=xt([e,v],([$,W])=>{t!==($===W)&&(M?M():Et(()=>M?.()),_($))},{flush:w,deep:E,immediate:!0})})];return L!=null&&I.push(qv(L,P).then(()=>Xt(e)).finally(()=>(M?.(),Xt(e)))),Promise.race(I)}function s(v){return r(b=>!!b,v)}function c(v){return o(null,v)}function f(v){return o(void 0,v)}function d(v){return r(Number.isNaN,v)}function h(v,b){return r(w=>{const E=Array.from(w);return E.includes(v)||E.includes(Xt(v))},b)}function p(v){return g(1,v)}function g(v=1,b){let w=-1;return r(()=>(w+=1,w>=v),b)}return Array.isArray(Xt(e))?{toMatch:r,toContains:h,changed:p,changedTimes:g,get not(){return uh(e,!t)}}:{toMatch:r,toBe:o,toBeTruthy:s,toBeNull:c,toBeNaN:d,toBeUndefined:f,changed:p,changedTimes:g,get not(){return uh(e,!t)}}}function Uv(e){return uh(e)}function xE(e=!1,t={}){const{truthyValue:r=!0,falsyValue:o=!1}=t,s=Mt(e),c=Ft(e);function f(d){if(arguments.length)return c.value=d,c.value;{const h=Xt(r);return c.value=c.value===h?Xt(o):h,c.value}}return s?f:[c,f]}function hp(e,t,r={}){const{debounce:o=0,maxWait:s=void 0,...c}=r;return Sw(e,t,{...c,eventFilter:xw(o,{maxWait:s})})}function kE(e,t,r={}){const{eventFilter:o=fp,...s}=r,c=up(o,t);let f,d,h;if(s.flush==="sync"){const p=Ft(!1);d=()=>{},f=g=>{p.value=!0,g(),p.value=!1},h=xt(e,(...g)=>{p.value||c(...g)},s)}else{const p=[],g=Ft(0),v=Ft(0);d=()=>{g.value=v.value},p.push(xt(e,()=>{v.value++},{...s,flush:"sync"})),f=b=>{const w=v.value;b(),g.value+=v.value-w},p.push(xt(e,(...b)=>{const w=g.value>0&&g.value===v.value;g.value=0,v.value=0,!w&&c(...b)},s)),h=()=>{p.forEach(b=>b())}}return{stop:h,ignoreUpdates:f,ignorePrevAsyncUpdates:d}}function SE(e,t,r){return xt(e,t,{...r,immediate:!0})}function _E(e,t,r){const o=xt(e,(...s)=>(Et(()=>o()),t(...s)),r);return o}function TE(e,t,r){let o;Mt(r)?o={evaluating:r}:o={};const{lazy:s=!1,evaluating:c=void 0,shallow:f=!0,onError:d=yu}=o,h=Ft(!s),p=f?Ft(t):Ge(t);let g=0;return _b(async v=>{if(!h.value)return;g++;const b=g;let w=!1;c&&Promise.resolve().then(()=>{c.value=!0});try{const E=await e(L=>{v(()=>{c&&(c.value=!1),w||L()})});b===g&&(p.value=E)}catch(E){d(E)}finally{c&&b===g&&(c.value=!1),w=!0}}),s?ke(()=>(h.value=!0,p.value)):p}const Ir=mE?window:void 0;function bu(e){var t;const r=Xt(e);return(t=r?.$el)!=null?t:r}function ho(...e){const t=[],r=()=>{t.forEach(d=>d()),t.length=0},o=(d,h,p,g)=>(d.addEventListener(h,p,g),()=>d.removeEventListener(h,p,g)),s=ke(()=>{const d=Cd(Xt(e[0])).filter(h=>h!=null);return d.every(h=>typeof h!="string")?d:void 0}),c=SE(()=>{var d,h;return[(h=(d=s.value)==null?void 0:d.map(p=>bu(p)))!=null?h:[Ir].filter(p=>p!=null),Cd(Xt(s.value?e[1]:e[0])),Cd(K(s.value?e[2]:e[1])),Xt(s.value?e[3]:e[2])]},([d,h,p,g])=>{if(r(),!d?.length||!h?.length||!p?.length)return;const v=yE(g)?{...g}:g;t.push(...d.flatMap(b=>h.flatMap(w=>p.map(E=>o(b,w,E,v)))))},{flush:"post"}),f=()=>{c(),r()};return cp(r),f}function CE(){const e=Ft(!1),t=ti();return t&&Mi(()=>{e.value=!0},t),e}function Tw(e){const t=CE();return ke(()=>(t.value,!!e()))}function EE(e){return typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0}function Cw(...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=Ir,eventName:c="keydown",passive:f=!1,dedupe:d=!1}=o,h=EE(t);return ho(s,c,g=>{g.repeat&&Xt(d)||h(g)&&r(g)},f)}function AE(e,t={}){const{immediate:r=!0,fpsLimit:o=void 0,window:s=Ir,once:c=!1}=t,f=Ft(!1),d=ke(()=>o?1e3/Xt(o):null);let h=0,p=null;function g(w){if(!f.value||!s)return;h||(h=w);const E=w-h;if(d.value&&E<d.value){p=s.requestAnimationFrame(g);return}if(h=w,e({delta:E,timestamp:w}),c){f.value=!1,p=null;return}p=s.requestAnimationFrame(g)}function v(){!f.value&&s&&(f.value=!0,h=0,p=s.requestAnimationFrame(g))}function b(){f.value=!1,p!=null&&s&&(s.cancelAnimationFrame(p),p=null)}return r&&v(),cp(b),{isActive:Gs(f),pause:b,resume:v}}const LE=Symbol("vueuse-ssr-width");function ME(){const e=Sb()?gE(LE,null):null;return typeof e=="number"?e:void 0}function Ew(e,t={}){const{window:r=Ir,ssrWidth:o=ME()}=t,s=Tw(()=>r&&"matchMedia"in r&&typeof r.matchMedia=="function"),c=Ft(typeof o=="number"),f=Ft(),d=Ft(!1),h=p=>{d.value=p.matches};return _b(()=>{if(c.value){c.value=!s.value;const p=Xt(e).split(",");d.value=p.some(g=>{const v=g.includes("not all"),b=g.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/),w=g.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/);let E=!!(b||w);return b&&E&&(E=o>=jv(b[1])),w&&E&&(E=o<=jv(w[1])),v?!E:E});return}s.value&&(f.value=r.matchMedia(Xt(e)),d.value=f.value.matches)}),ho(f,"change",h,{passive:!0}),ke(()=>d.value)}function Aw(e){return JSON.parse(JSON.stringify(e))}const Oc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Pc="__vueuse_ssr_handlers__",NE=OE();function OE(){return Pc in Oc||(Oc[Pc]=Oc[Pc]||{}),Oc[Pc]}function Lw(e,t){return NE[e]||t}function PE(e){return Ew("(prefers-color-scheme: dark)",e)}function RE(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 $E={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()}},Vv="vueuse-storage";function Mw(e,t,r,o={}){var s;const{flush:c="pre",deep:f=!0,listenToStorageChanges:d=!0,writeDefaults:h=!0,mergeDefaults:p=!1,shallow:g,window:v=Ir,eventFilter:b,onError:w=j=>{console.error(j)},initOnMounted:E}=o,L=(g?Ft:Ge)(typeof t=="function"?t():t),P=ke(()=>Xt(e));if(!r)try{r=Lw("getDefaultStorage",()=>{var j;return(j=Ir)==null?void 0:j.localStorage})()}catch(j){w(j)}if(!r)return L;const M=Xt(t),R=RE(M),I=(s=o.serializer)!=null?s:$E[R],{pause:_,resume:$}=_w(L,()=>ne(L.value),{flush:c,deep:f,eventFilter:b});xt(P,()=>Z(),{flush:c}),v&&d&&dp(()=>{r instanceof Storage?ho(v,"storage",Z,{passive:!0}):ho(v,Vv,G),E&&Z()}),E||Z();function W(j,N){if(v){const O={key:P.value,oldValue:j,newValue:N,storageArea:r};v.dispatchEvent(r instanceof Storage?new StorageEvent("storage",O):new CustomEvent(Vv,{detail:O}))}}function ne(j){try{const N=r.getItem(P.value);if(j==null)W(N,null),r.removeItem(P.value);else{const O=I.write(j);N!==O&&(r.setItem(P.value,O),W(N,O))}}catch(N){w(N)}}function ee(j){const N=j?j.newValue:r.getItem(P.value);if(N==null)return h&&M!=null&&r.setItem(P.value,I.write(M)),M;if(!j&&p){const O=I.read(N);return typeof p=="function"?p(O,M):R==="object"&&!Array.isArray(O)?{...M,...O}:O}else return typeof N!="string"?N:I.read(N)}function Z(j){if(!(j&&j.storageArea!==r)){if(j&&j.key==null){L.value=M;return}if(!(j&&j.key!==P.value)){_();try{j?.newValue!==I.write(L.value)&&(L.value=ee(j))}catch(N){w(N)}finally{j?Et($):$()}}}}function G(j){Z(j.detail)}return L}const IE="*,*::before,*::after{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}";function DE(e={}){const{selector:t="html",attribute:r="class",initialValue:o="auto",window:s=Ir,storage:c,storageKey:f="vueuse-color-scheme",listenToStorageChanges:d=!0,storageRef:h,emitAuto:p,disableTransition:g=!0}=e,v={auto:"",light:"light",dark:"dark",...e.modes||{}},b=PE({window:s}),w=ke(()=>b.value?"dark":"light"),E=h||(f==null?Yo(o):Mw(f,o,c,{window:s,listenToStorageChanges:d})),L=ke(()=>E.value==="auto"?w.value:E.value),P=Lw("updateHTMLAttrs",(_,$,W)=>{const ne=typeof _=="string"?s?.document.querySelector(_):bu(_);if(!ne)return;const ee=new Set,Z=new Set;let G=null;if($==="class"){const N=W.split(/\s/g);Object.values(v).flatMap(O=>(O||"").split(/\s/g)).filter(Boolean).forEach(O=>{N.includes(O)?ee.add(O):Z.add(O)})}else G={key:$,value:W};if(ee.size===0&&Z.size===0&&G===null)return;let j;g&&(j=s.document.createElement("style"),j.appendChild(document.createTextNode(IE)),s.document.head.appendChild(j));for(const N of ee)ne.classList.add(N);for(const N of Z)ne.classList.remove(N);G&&ne.setAttribute(G.key,G.value),g&&(s.getComputedStyle(j).opacity,document.head.removeChild(j))});function M(_){var $;P(t,r,($=v[_])!=null?$:_)}function R(_){e.onChanged?e.onChanged(_,M):M(_)}xt(L,R,{flush:"post",immediate:!0}),dp(()=>R(L.value));const I=ke({get(){return p?E.value:L.value},set(_){E.value=_}});return Object.assign(I,{store:E,system:w,state:L})}function zE(e={}){const{valueDark:t="dark",valueLight:r=""}=e,o=DE({...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 Nw(e){return e}function FE(e,t){return e.value=t}function HE(e){return e?typeof e=="function"?e:Aw:Nw}function BE(e){return e?typeof e=="function"?e:Aw:Nw}function WE(e,t={}){const{clone:r=!1,dump:o=HE(r),parse:s=BE(r),setSource:c=FE}=t;function f(){return Uu({snapshot:o(e.value),timestamp:bE()})}const d=Ge(f()),h=Ge([]),p=Ge([]),g=I=>{c(e,s(I.snapshot)),d.value=I},v=()=>{h.value.unshift(d.value),d.value=f(),t.capacity&&h.value.length>t.capacity&&h.value.splice(t.capacity,Number.POSITIVE_INFINITY),p.value.length&&p.value.splice(0,p.value.length)},b=()=>{h.value.splice(0,h.value.length),p.value.splice(0,p.value.length)},w=()=>{const I=h.value.shift();I&&(p.value.unshift(d.value),g(I))},E=()=>{const I=p.value.shift();I&&(h.value.unshift(d.value),g(I))},L=()=>{g(d.value)},P=ke(()=>[d.value,...h.value]),M=ke(()=>h.value.length>0),R=ke(()=>p.value.length>0);return{source:e,undoStack:h,redoStack:p,last:d,history:P,canUndo:M,canRedo:R,clear:b,commit:v,reset:L,undo:w,redo:E}}function qE(e,t={}){const{deep:r=!1,flush:o="pre",eventFilter:s}=t,{eventFilter:c,pause:f,resume:d,isActive:h}=kw(s),{ignoreUpdates:p,ignorePrevAsyncUpdates:g,stop:v}=kE(e,P,{deep:r,flush:o,eventFilter:c});function b(_,$){g(),p(()=>{_.value=$})}const w=WE(e,{...t,clone:t.clone||r,setSource:b}),{clear:E,commit:L}=w;function P(){g(),L()}function M(_){d(),_&&P()}function R(_){let $=!1;const W=()=>$=!0;p(()=>{_(W)}),$||P()}function I(){v(),E()}return{...w,isTracking:h,pause:f,resume:M,commit:P,batch:R,dispose:I}}function Ow(e,t,r={}){const{window:o=Ir,...s}=r;let c;const f=Tw(()=>o&&"ResizeObserver"in o),d=()=>{c&&(c.disconnect(),c=void 0)},h=ke(()=>{const v=Xt(e);return Array.isArray(v)?v.map(b=>bu(b)):[bu(v)]}),p=xt(h,v=>{if(d(),f.value&&o){c=new ResizeObserver(t);for(const b of v)b&&c.observe(b,s)}},{immediate:!0,flush:"post"}),g=()=>{d(),p()};return cp(g),{isSupported:f,stop:g}}function sf(e,t,r={}){const{window:o=Ir}=r;return Mw(e,t,o?.localStorage,r)}function jE(e="history",t={}){const{initialValue:r={},removeNullishValues:o=!0,removeFalsyValues:s=!1,write:c=!0,writeMode:f="replace",window:d=Ir}=t;if(!d)return ir(r);const h=ir({});function p(){if(e==="history")return d.location.search||"";if(e==="hash"){const I=d.location.hash||"",_=I.indexOf("?");return _>0?I.slice(_):""}else return(d.location.hash||"").replace(/^#/,"")}function g(I){const _=I.toString();if(e==="history")return`${_?`?${_}`:""}${d.location.hash||""}`;if(e==="hash-params")return`${d.location.search||""}${_?`#${_}`:""}`;const $=d.location.hash||"#",W=$.indexOf("?");return W>0?`${d.location.search||""}${$.slice(0,W)}${_?`?${_}`:""}`:`${d.location.search||""}${$}${_?`?${_}`:""}`}function v(){return new URLSearchParams(p())}function b(I){const _=new Set(Object.keys(h));for(const $ of I.keys()){const W=I.getAll($);h[$]=W.length>1?W:I.get($)||"",_.delete($)}Array.from(_).forEach($=>delete h[$])}const{pause:w,resume:E}=_w(h,()=>{const I=new URLSearchParams("");Object.keys(h).forEach(_=>{const $=h[_];Array.isArray($)?$.forEach(W=>I.append(_,W)):o&&$==null||s&&!$?I.delete(_):I.set(_,$)}),L(I,!1)},{deep:!0});function L(I,_){w(),_&&b(I),f==="replace"?d.history.replaceState(d.history.state,d.document.title,d.location.pathname+g(I)):d.history.pushState(d.history.state,d.document.title,d.location.pathname+g(I)),E()}function P(){c&&L(v(),!0)}const M={passive:!0};ho(d,"popstate",P,M),e!=="history"&&ho(d,"hashchange",P,M);const R=v();return R.keys().next().value?b(R):Object.assign(h,r),h}function Pw(e={}){const{window:t=Ir,initialWidth:r=Number.POSITIVE_INFINITY,initialHeight:o=Number.POSITIVE_INFINITY,listenOrientation:s=!0,includeScrollbar:c=!0,type:f="inner"}=e,d=Ft(r),h=Ft(o),p=()=>{if(t)if(f==="outer")d.value=t.outerWidth,h.value=t.outerHeight;else if(f==="visual"&&t.visualViewport){const{width:v,height:b,scale:w}=t.visualViewport;d.value=Math.round(v*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(),dp(p);const g={passive:!0};if(ho("resize",p,g),t&&f==="visual"&&t.visualViewport&&ho(t.visualViewport,"resize",p,g),s){const v=Ew("(orientation: portrait)");xt(v,()=>p())}return{width:d,height:h}}const Gv={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(e,{emit:t}){const r=t,o=e,s=yb(),c=Ge([]),f=ke(()=>c.value.reduce((F,Y)=>(F[~~Y.id]=Y)&&F,{})),d=ke(()=>c.value.length),h=Ge(null),p=Ge(!1),g=Ge({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),v=Ge({splitter:null,timeoutId:null}),b=ke(()=>({[`splitpanes splitpanes--${o.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":g.value.dragging})),w=()=>{document.addEventListener("mousemove",P,{passive:!1}),document.addEventListener("mouseup",M),"ontouchstart"in window&&(document.addEventListener("touchmove",P,{passive:!1}),document.addEventListener("touchend",M))},E=()=>{document.removeEventListener("mousemove",P,{passive:!1}),document.removeEventListener("mouseup",M),"ontouchstart"in window&&(document.removeEventListener("touchmove",P,{passive:!1}),document.removeEventListener("touchend",M))},L=(F,Y)=>{const re=F.target.closest(".splitpanes__splitter");if(re){const{left:le,top:ae}=re.getBoundingClientRect(),{clientX:D,clientY:q}="ontouchstart"in window&&F.touches?F.touches[0]:F;g.value.cursorOffset=o.horizontal?q-ae:D-le}w(),g.value.mouseDown=!0,g.value.activeSplitter=Y},P=F=>{g.value.mouseDown&&(F.preventDefault(),g.value.dragging=!0,requestAnimationFrame(()=>{ne($(F)),Fe("resize",{event:F},!0)}))},M=F=>{g.value.dragging&&(window.getSelection().removeAllRanges(),Fe("resized",{event:F},!0)),g.value.mouseDown=!1,g.value.activeSplitter=null,setTimeout(()=>{g.value.dragging=!1,E()},100)},R=(F,Y)=>{"ontouchstart"in window&&(F.preventDefault(),v.value.splitter===Y?(clearTimeout(v.value.timeoutId),v.value.timeoutId=null,I(F,Y),v.value.splitter=null):(v.value.splitter=Y,v.value.timeoutId=setTimeout(()=>v.value.splitter=null,500))),g.value.dragging||Fe("splitter-click",{event:F,index:Y},!0)},I=(F,Y)=>{if(Fe("splitter-dblclick",{event:F,index:Y},!0),o.maximizePanes){let re=0;c.value=c.value.map((le,ae)=>(le.size=ae===Y?le.max:le.min,ae!==Y&&(re+=le.min),le)),c.value[Y].size-=re,Fe("pane-maximize",{event:F,index:Y,pane:c.value[Y]}),Fe("resized",{event:F,index:Y},!0)}},_=(F,Y)=>{Fe("pane-click",{event:F,index:f.value[Y].index,pane:f.value[Y]})},$=F=>{const Y=h.value.getBoundingClientRect(),{clientX:re,clientY:le}="ontouchstart"in window&&F.touches?F.touches[0]:F;return{x:re-(o.horizontal?0:g.value.cursorOffset)-Y.left,y:le-(o.horizontal?g.value.cursorOffset:0)-Y.top}},W=F=>{F=F[o.horizontal?"y":"x"];const Y=h.value[o.horizontal?"clientHeight":"clientWidth"];return o.rtl&&!o.horizontal&&(F=Y-F),F*100/Y},ne=F=>{const Y=g.value.activeSplitter;let re={prevPanesSize:Z(Y),nextPanesSize:G(Y),prevReachedMinPanes:0,nextReachedMinPanes:0};const le=0+(o.pushOtherPanes?0:re.prevPanesSize),ae=100-(o.pushOtherPanes?0:re.nextPanesSize),D=Math.max(Math.min(W(F),ae),le);let q=[Y,Y+1],Q=c.value[q[0]]||null,he=c.value[q[1]]||null;const de=Q.max<100&&D>=Q.max+re.prevPanesSize,ge=he.max<100&&D<=100-(he.max+G(Y+1));if(de||ge){de?(Q.size=Q.max,he.size=Math.max(100-Q.max-re.prevPanesSize-re.nextPanesSize,0)):(Q.size=Math.max(100-he.max-re.prevPanesSize-G(Y+1),0),he.size=he.max);return}if(o.pushOtherPanes){const Ce=ee(re,D);if(!Ce)return;({sums:re,panesToResize:q}=Ce),Q=c.value[q[0]]||null,he=c.value[q[1]]||null}Q!==null&&(Q.size=Math.min(Math.max(D-re.prevPanesSize-re.prevReachedMinPanes,Q.min),Q.max)),he!==null&&(he.size=Math.min(Math.max(100-D-re.nextPanesSize-re.nextReachedMinPanes,he.min),he.max))},ee=(F,Y)=>{const re=g.value.activeSplitter,le=[re,re+1];return Y<F.prevPanesSize+c.value[le[0]].min&&(le[0]=j(re).index,F.prevReachedMinPanes=0,le[0]<re&&c.value.forEach((ae,D)=>{D>le[0]&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),F.prevPanesSize=Z(le[0]),le[0]===void 0)?(F.prevReachedMinPanes=0,c.value[0].size=c.value[0].min,c.value.forEach((ae,D)=>{D>0&&D<=re&&(ae.size=ae.min,F.prevReachedMinPanes+=ae.min)}),c.value[le[1]].size=100-F.prevReachedMinPanes-c.value[0].min-F.prevPanesSize-F.nextPanesSize,null):Y>100-F.nextPanesSize-c.value[le[1]].min&&(le[1]=N(re).index,F.nextReachedMinPanes=0,le[1]>re+1&&c.value.forEach((ae,D)=>{D>re&&D<le[1]&&(ae.size=ae.min,F.nextReachedMinPanes+=ae.min)}),F.nextPanesSize=G(le[1]-1),le[1]===void 0)?(F.nextReachedMinPanes=0,c.value.forEach((ae,D)=>{D<d.value-1&&D>=re+1&&(ae.size=ae.min,F.nextReachedMinPanes+=ae.min)}),c.value[le[0]].size=100-F.prevPanesSize-G(le[0]-1),null):{sums:F,panesToResize:le}},Z=F=>c.value.reduce((Y,re,le)=>Y+(le<F?re.size:0),0),G=F=>c.value.reduce((Y,re,le)=>Y+(le>F+1?re.size:0),0),j=F=>[...c.value].reverse().find(Y=>Y.index<F&&Y.size>Y.min)||{},N=F=>c.value.find(Y=>Y.index>F+1&&Y.size>Y.min)||{},O=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const re of Y){const le=re.classList.contains("splitpanes__pane"),ae=re.classList.contains("splitpanes__splitter");!le&&!ae&&(re.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},C=(F,Y,re=!1)=>{const le=F-1,ae=document.createElement("div");ae.classList.add("splitpanes__splitter"),re||(ae.onmousedown=D=>L(D,le),typeof window<"u"&&"ontouchstart"in window&&(ae.ontouchstart=D=>L(D,le)),ae.onclick=D=>R(D,le+1)),ae.ondblclick=D=>I(D,le+1),Y.parentNode.insertBefore(ae,Y)},k=F=>{F.onmousedown=void 0,F.onclick=void 0,F.ondblclick=void 0,F.remove()},z=()=>{var F;const Y=Array.from(((F=h.value)==null?void 0:F.children)||[]);for(const le of Y)le.className.includes("splitpanes__splitter")&&k(le);let re=0;for(const le of Y)le.className.includes("splitpanes__pane")&&(!re&&o.firstSplitter?C(re,le,!0):re&&C(re,le),re++)},B=({uid:F,...Y})=>{const re=f.value[F];for(const[le,ae]of Object.entries(Y))re[le]=ae},ce=F=>{var Y;let re=-1;Array.from(((Y=h.value)==null?void 0:Y.children)||[]).some(le=>(le.className.includes("splitpanes__pane")&&re++,le.isSameNode(F.el))),c.value.splice(re,0,{...F,index:re}),c.value.forEach((le,ae)=>le.index=ae),p.value&&Et(()=>{z(),Se({addedPane:c.value[re]}),Fe("pane-add",{pane:c.value[re]})})},be=F=>{const Y=c.value.findIndex(le=>le.id===F);c.value[Y].el=null;const re=c.value.splice(Y,1)[0];c.value.forEach((le,ae)=>le.index=ae),Et(()=>{z(),Fe("pane-remove",{pane:re}),Se({removedPane:{...re}})})},Se=(F={})=>{!F.addedPane&&!F.removedPane?Ae():c.value.some(Y=>Y.givenSize!==null||Y.min||Y.max<100)?Ke(F):Be(),p.value&&Fe("resized")},Be=()=>{const F=100/d.value;let Y=0;const re=[],le=[];for(const ae of c.value)ae.size=Math.max(Math.min(F,ae.max),ae.min),Y-=ae.size,ae.size>=ae.max&&re.push(ae.id),ae.size<=ae.min&&le.push(ae.id);Y>.1&&je(Y,re,le)},Ae=()=>{let F=100;const Y=[],re=[];let le=0;for(const D of c.value)F-=D.size,D.givenSize!==null&&le++,D.size>=D.max&&Y.push(D.id),D.size<=D.min&&re.push(D.id);let ae=100;if(F>.1){for(const D of c.value)D.givenSize===null&&(D.size=Math.max(Math.min(F/(d.value-le),D.max),D.min)),ae-=D.size;ae>.1&&je(ae,Y,re)}},Ke=({addedPane:F,removedPane:Y}={})=>{let re=100/d.value,le=0;const ae=[],D=[];(F?.givenSize??null)!==null&&(re=(100-F.givenSize)/(d.value-1));for(const q of c.value)le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);if(!(Math.abs(le)<.1)){for(const q of c.value)F?.givenSize!==null&&F?.id===q.id||(q.size=Math.max(Math.min(re,q.max),q.min)),le-=q.size,q.size>=q.max&&ae.push(q.id),q.size<=q.min&&D.push(q.id);le>.1&&je(le,ae,D)}},je=(F,Y,re)=>{let le;F>0?le=F/(d.value-Y.length):le=F/(d.value-re.length),c.value.forEach((ae,D)=>{if(F>0&&!Y.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}else if(!re.includes(ae.id)){const q=Math.max(Math.min(ae.size+le,ae.max),ae.min),Q=q-ae.size;F-=Q,ae.size=q}}),Math.abs(F)>.1&&Et(()=>{p.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Fe=(F,Y=void 0,re=!1)=>{const le=Y?.index??g.value.activeSplitter??null;r(F,{...Y,...le!==null&&{index:le},...re&&le!==null&&{prevPane:c.value[le-(o.firstSplitter?1:0)],nextPane:c.value[le+(o.firstSplitter?0:1)]},panes:c.value.map(ae=>({min:ae.min,max:ae.max,size:ae.size}))})};xt(()=>o.firstSplitter,()=>z()),Mi(()=>{O(),z(),Se(),Fe("ready"),p.value=!0}),$a(()=>p.value=!1);const Pe=()=>{var F;return za("div",{ref:h,class:b.value},(F=s.default)==null?void 0:F.call(s))};return dr("panes",c),dr("indexedPanes",f),dr("horizontal",ke(()=>o.horizontal)),dr("requestUpdate",B),dr("onPaneAdd",ce),dr("onPaneRemove",be),dr("onPaneClick",_),(F,Y)=>(ie(),Ve(Xd(Pe)))}},Rc={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(e){var t;const r=e,o=pn("requestUpdate"),s=pn("onPaneAdd"),c=pn("horizontal"),f=pn("onPaneRemove"),d=pn("onPaneClick"),h=(t=ti())==null?void 0:t.uid,p=pn("indexedPanes"),g=ke(()=>p.value[h]),v=Ge(null),b=ke(()=>{const P=isNaN(r.size)||r.size===void 0?0:parseFloat(r.size);return Math.max(Math.min(P,E.value),w.value)}),w=ke(()=>{const P=parseFloat(r.minSize);return isNaN(P)?0:P}),E=ke(()=>{const P=parseFloat(r.maxSize);return isNaN(P)?100:P}),L=ke(()=>{var P;return`${c.value?"height":"width"}: ${(P=g.value)==null?void 0:P.size}%`});return xt(()=>b.value,P=>o({uid:h,size:P})),xt(()=>w.value,P=>o({uid:h,min:P})),xt(()=>E.value,P=>o({uid:h,max:P})),Mi(()=>{s({id:h,el:v.value,min:w.value,max:E.value,givenSize:r.size===void 0?null:b.value,size:b.value})}),$a(()=>f(h)),(P,M)=>(ie(),ve("div",{ref_key:"paneEl",ref:v,class:"splitpanes__pane",onClick:M[0]||(M[0]=R=>K(d)(R,P._.uid)),style:zt(L.value)},[Dt(P.$slots,"default")],4))}},tr=Ge([414,896]);function Rw(e){return e!=null}function pp(e){return e==null&&(e=[]),Array.isArray(e)?e:[e]}const UE=/^[A-Za-z]:\//;function VE(e=""){return e&&e.replace(/\\/g,"/").replace(UE,t=>t.toUpperCase())}const GE=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function KE(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const $w=function(...e){e=e.map(o=>VE(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:KE();!s||s.length===0||(t=`${s}/${t}`,r=Kv(s))}return t=XE(t,!r),r&&!Kv(t)?`/${t}`:t.length>0?t:"."};function XE(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 Kv=function(e){return GE.test(e)};var YE=44,Xv="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ZE=new Uint8Array(64),Iw=new Uint8Array(128);for(let e=0;e<Xv.length;e++){const t=Xv.charCodeAt(e);ZE[e]=t,Iw[t]=e}function Hl(e,t){let r=0,o=0,s=0;do{const f=e.next();s=Iw[f],r|=(s&31)<<o,o+=5}while(s&32);const c=r&1;return r>>>=1,c&&(r=-2147483648|-r),t+r}function Yv(e,t){return e.pos>=t?!1:e.peek()!==YE}var JE=class{constructor(e){this.pos=0,this.buffer=e}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(e){const{buffer:t,pos:r}=this,o=t.indexOf(e,r);return o===-1?t.length:o}};function QE(e){const{length:t}=e,r=new JE(e),o=[];let s=0,c=0,f=0,d=0,h=0;do{const p=r.indexOf(";"),g=[];let v=!0,b=0;for(s=0;r.pos<p;){let w;s=Hl(r,s),s<b&&(v=!1),b=s,Yv(r,p)?(c=Hl(r,c),f=Hl(r,f),d=Hl(r,d),Yv(r,p)?(h=Hl(r,h),w=[s,c,f,d,h]):w=[s,c,f,d]):w=[s],g.push(w),r.pos++}v||eA(g),o.push(g),r.pos=p+1}while(r.pos<=t);return o}function eA(e){e.sort(tA)}function tA(e,t){return e[0]-t[0]}var lf=0,nA=1,rA=2,iA=3,oA=4,wu=!1;function sA(e,t,r,o){for(;r<=o;){const s=r+(o-r>>1),c=e[s][lf]-t;if(c===0)return wu=!0,s;c<0?r=s+1:o=s-1}return wu=!1,r-1}function lA(e,t,r){for(let o=r+1;o<e.length&&e[o][lf]===t;r=o++);return r}function aA(e,t,r){for(let o=r-1;o>=0&&e[o][lf]===t;r=o--);return r}function cA(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 wu=f!==-1&&e[f][lf]===t,f;t>=c?d=f===-1?0:f:h=f}return r.lastKey=o,r.lastNeedle=t,r.lastIndex=sA(e,t,d,h)}var uA="`line` must be greater than 0 (lines start at line 1)",fA="`column` must be greater than or equal to 0 (columns start at column 0)",Zv=-1,dA=1;function hA(e){var t;return(t=e)._decoded||(t._decoded=QE(e._encoded))}function pA(e,t){let{line:r,column:o,bias:s}=t;if(r--,r<0)throw new Error(uA);if(o<0)throw new Error(fA);const c=hA(e);if(r>=c.length)return $c(null,null,null,null);const f=c[r],d=gA(f,e._decodedMemo,r,o,s||dA);if(d===-1)return $c(null,null,null,null);const h=f[d];if(h.length===1)return $c(null,null,null,null);const{names:p,resolvedSources:g}=e;return $c(g[h[nA]],h[rA]+1,h[iA],h.length===5?p[h[oA]]:null)}function $c(e,t,r,o){return{source:e,line:t,column:r,name:o}}function gA(e,t,r,o,s){let c=cA(e,o,t,r);return wu?c=(s===Zv?lA:aA)(e,o,c):s===Zv&&c++,c===-1||c===e.length?-1:c}const Dw=/^\s*at .*(?:\S:\d+|\(native\))/m,mA=/^(?:eval@)?(?:\[native code\])?$/,vA=["node:internal",/\/packages\/\w+\/dist\//,/\/@vitest\/\w+\/dist\//,"/vitest/dist/","/vitest/src/","/node_modules/chai/","/node_modules/tinyspy/","/vite/dist/node/module-runner","/rolldown-vite/dist/node/module-runner","/deps/chunk-","/deps/@vitest","/deps/loupe","/deps/chai","/browser-playwright/dist/locators.js","/browser-webdriverio/dist/locators.js","/browser-preview/dist/locators.js",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function zw(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 yA(e){let t=e.trim();if(mA.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")))return null;let r=-1,o="",s;for(let h=0;h<t.length;h++)if(t[h]==="@"){const p=t.slice(h+1);if(p.includes(":")&&p.length>=3){r=h,o=p,s=h>0?t.slice(0,h):void 0;break}}if(r===-1||!o.includes(":")||o.length<3)return null;const[c,f,d]=zw(o);return!c||!f||!d?null:{file:c,method:s||"",line:Number.parseInt(f),column:Number.parseInt(d)}}function bA(e){let t=e.trim();if(!Dw.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]=zw(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:$w(h),d&&(d=d.replace(/__vite_ssr_import_\d+__\./g,"").replace(/(Object\.)?__vite_ssr_export_default__\s?/g,"")),{method:d,file:h,line:Number.parseInt(c),column:Number.parseInt(f)})}function wA(e,t={}){const{ignoreStackEntries:r=vA}=t;return(Dw.test(e)?kA(e):xA(e)).map(s=>{var c;t.getUrlId&&(s.file=t.getUrlId(s.file));const f=(c=t.getSourceMap)===null||c===void 0?void 0:c.call(t,s.file);if(!f||typeof f!="object"||!f.version)return Jv(r,s.file)?null:s;const d=new SA(f,s.file),h=TA(d,s);if(!h)return s;const{line:p,column:g,source:v,name:b}=h;let w=v||s.file;return w.match(/\/\w:\//)&&(w=w.slice(1)),Jv(r,w)?null:p!=null&&g!=null?{line:p,column:g,file:w,method:b||s.method}:s}).filter(s=>s!=null)}function Jv(e,t){return e.some(r=>t.match(r))}function xA(e){return e.split(` |
| 18 | `).map(t=>yA(t)).filter(Rw)}function kA(e){return e.split(` |
| 19 | `).map(t=>bA(t)).filter(Rw)}class SA{_encoded;_decoded;_decodedMemo;url;version;names=[];resolvedSources;constructor(t,r){this.map=t;const{mappings:o,names:s,sources:c}=t;this.version=t.version,this.names=s||[],this._encoded=o||"",this._decodedMemo=_A(),this.url=r,this.resolvedSources=(c||[]).map(f=>$w(f||"",r))}}function _A(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function TA(e,t){const r=pA(e,t);return r.column==null?null:r}const CA=/^[A-Za-z]:\//;function Fw(e=""){return e&&e.replace(/\\/g,"/").replace(CA,t=>t.toUpperCase())}const EA=/^[/\\]{2}/,AA=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/,LA=/^[A-Za-z]:$/,Qv=/^\/([A-Za-z]:)?$/,MA=function(e){if(e.length===0)return".";e=Fw(e);const t=e.match(EA),r=xu(e),o=e[e.length-1]==="/";return e=Hw(e,!r),e.length===0?r?"/":o?"./":".":(o&&(e+="/"),LA.test(e)&&(e+="/"),t?r?`//${e}`:`//./${e}`:r&&!xu(e)?`/${e}`:e)},NA=function(...e){let t="";for(const r of e)if(r)if(t.length>0){const o=t[t.length-1]==="/",s=r[0]==="/";o&&s?t+=r.slice(1):t+=o||s?r:`/${r}`}else t+=r;return MA(t)};function OA(){return typeof process<"u"&&typeof process.cwd=="function"?process.cwd().replace(/\\/g,"/"):"/"}const ey=function(...e){e=e.map(o=>Fw(o));let t="",r=!1;for(let o=e.length-1;o>=-1&&!r;o--){const s=o>=0?e[o]:OA();!s||s.length===0||(t=`${s}/${t}`,r=xu(s))}return t=Hw(t,!r),r&&!xu(t)?`/${t}`:t.length>0?t:"."};function Hw(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 xu=function(e){return AA.test(e)},af=function(e,t){const r=ey(e).replace(Qv,"$1").split("/"),o=ey(t).replace(Qv,"$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 PA(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 Bw(e,t,r,o,s){const c=af(t,e),f={id:RA(c,r),name:c,fullName:c,type:"suite",mode:"queued",filepath:e,tasks:[],meta:Object.create(null),projectName:r,file:void 0,pool:o,viteEnvironment:s};return f.file=f,f}function RA(e,t){return PA(`${e}${t||""}`)}function Js(e){return e.type==="test"}function Ww(e){const t=[],r=pp(e);for(const o of r)if(Js(o))t.push(o);else for(const s of o.tasks)if(Js(s))t.push(s);else{const c=Ww(s);for(const f of c)t.push(f)}return t}function gp(e=[]){return pp(e).flatMap(t=>Js(t)?[t]:[t,...gp(t.tasks)])}function $A(e){const t=[e.name];let r=e;for(;r?.suite;)r=r.suite,r?.name&&t.unshift(r.name);return r!==e.file&&t.unshift(e.file.name),t}const ty="q",ny="s";function IA(){let e,t;return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}const DA=Math.random.bind(Math),zA="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function FA(e=21){let t="",r=e;for(;r--;)t+=zA[DA()*64|0];return t}const HA=6e4,qw=e=>e,BA=qw,{clearTimeout:ry,setTimeout:WA}=globalThis;function qA(e,t){const{post:r,on:o,off:s=()=>{},eventNames:c=[],serialize:f=qw,deserialize:d=BA,resolver:h,bind:p="rpc",timeout:g=HA,proxify:v=!0}=t;let b=!1;const w=new Map;let E,L;async function P($,W,ne,ee){if(b)throw new Error(`[birpc] rpc is closed, cannot call "${$}"`);const Z={m:$,a:W,t:ty};ee&&(Z.o=!0);const G=async B=>r(f(B));if(ne){await G(Z);return}if(E)try{await E}finally{E=void 0}let{promise:j,resolve:N,reject:O}=IA();const C=FA();Z.i=C;let k;async function z(B=Z){return g>=0&&(k=WA(()=>{try{if(t.onTimeoutError?.call(L,$,W)!==!0)throw new Error(`[birpc] timeout on calling "${$}"`)}catch(ce){O(ce)}w.delete(C)},g),typeof k=="object"&&(k=k.unref?.())),w.set(C,{resolve:N,reject:O,timeoutId:k,method:$}),await G(B),j}try{t.onRequest?await t.onRequest.call(L,Z,z,N):await z()}catch(B){if(t.onGeneralError?.call(L,B)!==!0)throw B;return}finally{ry(k),w.delete(C)}return j}const M={$call:($,...W)=>P($,W,!1),$callOptional:($,...W)=>P($,W,!1,!0),$callEvent:($,...W)=>P($,W,!0),$callRaw:$=>P($.method,$.args,$.event,$.optional),$rejectPendingCalls:I,get $closed(){return b},get $meta(){return t.meta},$close:R,$functions:e};v?L=new Proxy({},{get($,W){if(Object.prototype.hasOwnProperty.call(M,W))return M[W];if(W==="then"&&!c.includes("then")&&!("then"in e))return;const ne=(...Z)=>P(W,Z,!0);if(c.includes(W))return ne.asEvent=ne,ne;const ee=(...Z)=>P(W,Z,!1);return ee.asEvent=ne,ee}}):L=M;function R($){b=!0,w.forEach(({reject:W,method:ne})=>{const ee=new Error(`[birpc] rpc is closed, cannot call "${ne}"`);if($)return $.cause??=ee,W($);W(ee)}),w.clear(),s(_)}function I($){const W=Array.from(w.values()).map(({method:ne,reject:ee})=>$?$({method:ne,reject:ee}):ee(new Error(`[birpc]: rejected pending call "${ne}".`)));return w.clear(),W}async function _($,...W){let ne;try{ne=d($)}catch(ee){if(t.onGeneralError?.call(L,ee)!==!0)throw ee;return}if(ne.t===ty){const{m:ee,a:Z,o:G}=ne;let j,N,O=await(h?h.call(L,ee,e[ee]):e[ee]);if(G&&(O||=()=>{}),!O)N=new Error(`[birpc] function "${ee}" not found`);else try{j=await O.apply(p==="rpc"?L:e,Z)}catch(C){N=C}if(ne.i){if(N&&t.onFunctionError&&t.onFunctionError.call(L,N,ee,Z)===!0)return;if(!N)try{await r(f({t:ny,i:ne.i,r:j}),...W);return}catch(C){if(N=C,t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}try{await r(f({t:ny,i:ne.i,e:N}),...W)}catch(C){if(t.onGeneralError?.call(L,C,ee,Z)!==!0)throw C}}}else{const{i:ee,r:Z,e:G}=ne,j=w.get(ee);j&&(ry(j.timeoutId),G?j.reject(G):j.resolve(Z)),w.delete(ee)}}return E=o(_),L}const{parse:jw,stringify:jA}=JSON,{keys:UA}=Object,ka=String,Uw="string",iy={},ku="object",Vw=(e,t)=>t,VA=e=>e instanceof ka?ka(e):e,GA=(e,t)=>typeof t===Uw?new ka(t):t,Gw=(e,t,r,o)=>{const s=[];for(let c=UA(r),{length:f}=c,d=0;d<f;d++){const h=c[d],p=r[h];if(p instanceof ka){const g=e[p];typeof g===ku&&!t.has(g)?(t.add(g),r[h]=iy,s.push({k:h,a:[e,t,g,o]})):r[h]=o.call(r,h,g)}else r[h]!==iy&&(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,Gw.apply(null,h))}return r},oy=(e,t,r)=>{const o=ka(t.push(r)-1);return e.set(r,o),o},fh=(e,t)=>{const r=jw(e,GA).map(VA),o=r[0],s=t||Vw,c=typeof o===ku&&o?Gw(r,new Set,o,s):o;return s.call({"":c},"",c)},Kw=(e,t,r)=>{const o=t&&typeof t===ku?(g,v)=>g===""||-1<t.indexOf(g)?v:void 0:t||Vw,s=new Map,c=[],f=[];let d=+oy(s,c,o.call({"":e},"",e)),h=!d;for(;d<c.length;)h=!0,f[d]=jA(c[d++],p,r);return"["+f.join(",")+"]";function p(g,v){if(h)return h=!h,v;const b=o.call(this,g,v);switch(typeof b){case ku:if(b===null)return b;case Uw:return s.get(b)||oy(s,c,b)}return b}},KA=e=>jw(Kw(e));class Xw{filesMap=new Map;pathsSet=new Set;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=>t.result?.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=Bw(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?.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 XA(e,t={}){const{handlers:r={},autoReconnect:o=!0,reconnectInterval:s=2e3,reconnectTries:c=10,connectTimeout:f=6e4,reactive:d=R=>R,WebSocketConstructor:h=globalThis.WebSocket}=t;let p=c;const g=d({ws:new h(e),state:new Xw,waitForConnection:M,reconnect:L},"state");g.state.filesMap=d(g.state.filesMap,"filesMap"),g.state.idMap=d(g.state.idMap,"idMap");let v;const b={onTestAnnotate(R,I){r.onTestAnnotate?.(R,I)},onTestArtifactRecord(R,I){r.onTestArtifactRecord?.(R,I)},onSpecsCollected(R,I){R?.forEach(([_,$])=>{g.state.clearFiles({config:_},[$])}),r.onSpecsCollected?.(R,I)},onPathsCollected(R){g.state.collectPaths(R),r.onPathsCollected?.(R)},onCollected(R){g.state.collectFiles(R),r.onCollected?.(R)},onTaskUpdate(R,I){g.state.updateTasks(R),r.onTaskUpdate?.(R,I)},onUserConsoleLog(R){g.state.updateUserLog(R),r.onUserConsoleLog?.(R)},onFinished(R,I,_,$){r.onFinished?.(R,I,_,$)},onFinishedReportCoverage(){r.onFinishedReportCoverage?.()}},w={post:R=>g.ws.send(R),on:R=>v=R,serialize:R=>Kw(R,(I,_)=>_ instanceof Error?{name:_.name,message:_.message,stack:_.stack}:_),deserialize:fh,timeout:-1};g.rpc=qA(b,w);let E;function L(R=!1){R&&(p=c),g.ws=new h(e),P()}function P(){E=new Promise((R,I)=>{const _=setTimeout(()=>{I(new Error(`Cannot connect to the server in ${f/1e3} seconds`))},f)?.unref?.();g.ws.OPEN===g.ws.readyState&&R(),g.ws.addEventListener("open",()=>{p=c,R(),clearTimeout(_)})}),g.ws.addEventListener("message",R=>{v(R.data)}),g.ws.addEventListener("close",()=>{p-=1,o&&p>0&&setTimeout(L,s)})}P();function M(){return E}return g}const dh=Ft([]),Jn=Ft([]),Dr=sf("vitest-ui_task-tree-opened",[],{shallow:!0}),Su=ke(()=>new Set(Dr.value)),gn=sf("vitest-ui_task-tree-filter",{expandAll:void 0,failed:!1,success:!1,skipped:!1,onlyTests:!1,search:""}),Vn=Ge(gn.value.search),YA={"&":"&","<":"<",">":">",'"':""","'":"'"};function Yw(e){return e.replace(/[&<>"']/g,t=>YA[t])}const ZA=ke(()=>{const e=Vn.value.toLowerCase();return e.length?new RegExp(`(${Yw(e)})`,"gi"):null}),Zw=ke(()=>Vn.value.trim()!==""),it=ir({failed:gn.value.failed,success:gn.value.success,skipped:gn.value.skipped,onlyTests:gn.value.onlyTests}),hh=ke(()=>!!(it.failed||it.success||it.skipped)),cf=Ft([]),Qs=Ge(!1),sy=ke(()=>{const e=gn.value.expandAll;return Dr.value.length>0?e!==!0:e!==!1}),JA=ke(()=>{const e=Zw.value,t=hh.value,r=it.onlyTests,o=Oe.summary.filesFailed,s=Oe.summary.filesSuccess,c=Oe.summary.filesSkipped,f=Oe.summary.filesRunning,d=cf.value;return Oe.collectTestsTotal(e||t,r,d,{failed:o,success:s,skipped:c,running:f})});function Ha(e){return Object.hasOwn(e,"tasks")}function QA(e,t){return typeof e!="string"||typeof t!="string"?!1:e.toLowerCase().includes(t.toLowerCase())}function Fo(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${Math.round(e)}ms`}function Ed(e){return e>1e3?`${(e/1e3).toFixed(2)}s`:`${e.toFixed(2)}ms`}function eL(e){const t=new Map,r=new Map,o=[];for(;;){let s=0;if(e.forEach((c,f)=>{const{splits:d,finished:h}=c;if(h){s++;const{raw:g,candidate:v}=c;t.set(g,v);return}if(d.length===0){c.finished=!0;return}const p=d[0];r.has(p)?(c.candidate+=c.candidate===""?p:`/${p}`,r.get(p)?.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 Jw(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 tL(e){return Jw(e).raw}function Xc(e){if(e>=500)return"danger";if(e>=100)return"warning"}function _u(e){const t=Xc(e);if(t==="danger")return"text-red";if(t==="warning")return"text-orange"}function Qw(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 ex(e){switch(e){case"blue":case"green":case"magenta":case"black":case"red":return"white";case"yellow":case"cyan":case"white":default:return"black"}}function nL(e){return e.type==="test"}function rL(e){return e.mode==="run"&&e.type==="test"}function In(e){return e.type==="file"}function Ci(e){return e.type==="file"||e.type==="suite"}function iL(e=Oe.root.tasks){return e.sort((t,r)=>`${t.filepath}:${t.projectName}`.localeCompare(`${r.filepath}:${r.projectName}`))}function Sa(e,t=!1){let r=Oe.nodes.get(e.id);if(r?(r.typecheck=!!e.meta&&"typecheck"in e.meta,r.state=e.result?.state,r.mode=e.mode,r.duration=typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,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:Su.value.size>0&&Su.value.has(e.id),type:"file",children:new Set,tasks:[],typecheck:!!e.meta&&"typecheck"in e.meta,indent:0,duration:typeof e.result?.duration=="number"?Math.round(e.result.duration):void 0,filepath:e.filepath,projectName:e.projectName||"",projectNameColor:Oe.colors.get(e.projectName||"")||Qw(e.projectName),collectDuration:e.collectDuration,setupDuration:e.setupDuration,environmentLoad:e.environmentLoad,prepareDuration:e.prepareDuration,state:e.result?.state},Oe.nodes.set(e.id,r),Oe.root.tasks.push(r)),t)for(let o=0;o<e.tasks.length;o++)Ba(e.id,e.tasks[o],!0)}function tx(e,t){const r=Oe.nodes.get(e);if(!r||!Ci(r))return;const o=ft.state.idMap.get(e);if(!(!o||!Ha(o)))return Ba(r.parentId,o,t&&o.tasks.length>0),[r,o]}function oL(e){const t=Oe.nodes.get(e);if(!t)return;const r=ft.state.idMap.get(e);!r||!Js(r)||Ba(t.parentId,r,!1)}function Ba(e,t,r){const o=Oe.nodes.get(e);let s;const c=typeof t.result?.duration=="number"?Math.round(t.result.duration):void 0;if(o&&(s=Oe.nodes.get(t.id),s?(o.children.has(t.id)||(o.tasks.push(s),o.children.add(t.id)),s.name=t.name,s.mode=t.mode,s.duration=c,s.state=t.result?.state):(Js(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:t.result?.state}:s={id:t.id,fileId:t.file.id,parentId:e,name:t.name,mode:t.mode,type:"suite",expandable:!0,expanded:Su.value.size>0&&Su.value.has(t.id),children:new Set,tasks:[],indent:o.indent+1,duration:c,state:t.result?.state},Oe.nodes.set(t.id,s),o.tasks.push(s),o.children.add(t.id)),s&&r&&Ha(t)))for(let f=0;f<t.tasks.length;f++)Ba(s.id,t.tasks[f],r)}function sL(e){const t=Oe.nodes.get(e);if(!t||!Ci(t))return;const r=new Set(Dr.value);r.delete(t.id);const o=[...aL(t)];Dr.value=Array.from(r),Jn.value=o}function lL(){ph(Oe.root.tasks);const e=[...Jn.value.filter(In)];ph(e),Dr.value=[],gn.value.expandAll=!0,Jn.value=e}function ph(e){for(const t of e)Ci(t)&&(t.expanded=!1,ph(t.tasks))}function*nx(e,t){if(t&&(yield e.id),Ci(e))for(let r=0;r<e.tasks.length;r++)yield*nx(e.tasks[r],!0)}function*aL(e){const t=e.id,r=new Set(nx(e,!1));for(let o=0;o<Jn.value.length;o++){const s=Jn.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 uf=Ge("idle"),Ms=ke(()=>uf.value==="idle"),eo=Ge([]);function cL(e,t,r){return e?ox(e,t,r):!1}function mp(e,t){const r=[...rx(e,t)];Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function*rx(e,t){for(const r of iL())yield*ix(r,e,t)}function*ix(e,t,r){const o=new Set,s=new Map,c=[];let f;if(r.onlyTests)for(const[v,b]of gh(e,o,w=>ly(w,t,r)))c.push([v,b]);else{for(const[v,b]of gh(e,o,w=>ly(w,t,r)))Ci(b)?(s.set(b.id,v),In(b)?(v&&(f=b.id),c.push([v,b])):c.push([v||s.get(b.parentId)===!0,b])):c.push([v||s.get(b.parentId)===!0,b]);!f&&!In(e)&&"fileId"in e&&(f=e.fileId)}const d=new Set,h=[...fL(c,r.onlyTests,o,d,f)].reverse(),p=Oe.nodes,g=new Set(h.filter(v=>In(v)||Ci(v)&&p.get(v.parentId)?.expanded).map(v=>v.id));yield*h.filter(v=>In(v)||g.has(v.parentId)&&p.get(v.parentId)?.expanded)}function uL(e,t,r,o,s){if(o){if(In(t))return s.has(t.id)?t:void 0;if(r.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}else if(e||r.has(t.id)||s.has(t.id)){const c=Oe.nodes.get(t.parentId);return c&&In(c)&&s.add(c.id),t}}function*fL(e,t,r,o,s){for(let c=e.length-1;c>=0;c--){const[f,d]=e[c],h=Ci(d);if(!t&&s&&r.has(s)&&"fileId"in d&&d.fileId===s){h&&r.add(d.id);let p=Oe.nodes.get(d.parentId);for(;p;)r.add(p.id),In(p)&&o.add(p.id),p=Oe.nodes.get(p.parentId);yield d;continue}if(h){const p=uL(f,d,r,t,o);p&&(yield p)}else if(f){const p=Oe.nodes.get(d.parentId);p&&In(p)&&o.add(p.id),yield d}}}function dL(e,t){return(t.success||t.failed)&&"result"in e&&(t.success&&e.result?.state==="pass"||t.failed&&e.result?.state==="fail")?!0:t.skipped&&"mode"in e?e.mode==="skip"||e.mode==="todo":!1}function ox(e,t,r){if(t.length===0||QA(e.name,t))if(r.success||r.failed||r.skipped){if(dL(e,r))return!0}else return!0;return!1}function*gh(e,t,r){const o=r(e);if(o)if(nL(e)){let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}else if(In(e))t.add(e.id);else{t.add(e.id);let s=Oe.nodes.get(e.parentId);for(;s;)t.add(s.id),s=Oe.nodes.get(s.parentId)}if(yield[o,e],Ci(e))for(let s=0;s<e.tasks.length;s++)yield*gh(e.tasks[s],t,r)}function ly(e,t,r){const o=ft.state.idMap.get(e.id);return o?ox(o,t,r):!1}function hL(e,t,r){const o=tx(e,!1);if(!o)return;const[s,c]=o;for(const p of c.tasks)Ba(s.id,p,!1);s.expanded=!0;const f=new Set(Dr.value);f.add(s.id);const d=new Set(ix(s,t,r)),h=[...mL(s,d)];Dr.value=Array.from(f),Jn.value=h}function pL(e,t){vp(Oe.root.tasks,!1);const r=[...rx(e,t)];gn.value.expandAll=!1,Dr.value=[],Jn.value=r,cf.value=r.filter(In).map(o=>mr(o.id))}function gL(e,t){if(e.size)for(const r of Jn.value)e.has(r.id)&&(r.expanded=!0);else t&&vp(Jn.value.filter(In),!0)}function vp(e,t){for(const r of e)Ci(r)&&(r.expanded=!0,vp(r.tasks,!1));t&&(gn.value.expandAll=!1,Dr.value=[])}function*mL(e,t){const r=e.id,o=new Set(Array.from(t).map(s=>s.id));for(const s of Jn.value)s.id===r?(s.expanded=!0,o.has(s.id)||(yield e),yield*t):o.has(s.id)||(yield s)}function yp(e){return Ww(e).some(t=>t.result?.errors?.some(r=>typeof r?.message=="string"&&r.message.match(/Snapshot .* mismatched/)))}function vL(e,t,r,o){e.map(s=>[`${s.filepath}:${s.projectName||""}`,s]).sort(([s],[c])=>s.localeCompare(c)).map(([,s])=>Sa(s,t)),dh.value=[...Oe.root.tasks],mp(r.trim(),{failed:o.failed,success:o.success,skipped:o.skipped,onlyTests:o.onlyTests})}function yL(e){queueMicrotask(()=>{const t=Oe.pendingTasks,r=ft.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 bL(e,t){const r=Oe.pendingTasks,s=ft.state.idMap.get(e);if(s?.type==="test"){let c=r.get(s.file.id);c||(c=new Set,r.set(s.file.id,c)),c.add(s.id),t.type==="internal:annotation"?s.annotations.push(t.annotation):s.artifacts.push(t)}}function ay(e,t,r,o,s,c){e&&TL(r);const f=!e;queueMicrotask(()=>{t?kL(f):SL(f)}),queueMicrotask(()=>{CL(r,c)}),queueMicrotask(()=>{t&&(r.failedSnapshot=dh.value&&yp(dh.value.map(d=>mr(d.id))),r.failedSnapshotEnabled=!0)}),queueMicrotask(()=>{_L(o,s,t)})}function*wL(){yield*Jn.value.filter(rL)}function xL(){const e=ft.state.idMap;let t;for(const r of wL())t=e.get(r.parentId),t&&Ha(t)&&t.mode==="todo"&&(t=e.get(r.id),t&&(t.mode="todo"))}function kL(e){const t=ft.state.getFiles(),r=Oe.nodes,o=t.filter(c=>!r.has(c.id));for(let c=0;c<o.length;c++)Sa(o[c],e),Tu(o[c].tasks);const s=Oe.root.tasks;for(let c=0;c<s.length;c++){const f=s[c],d=mr(f.id);!d||(Sa(d,e),!d.tasks?.length)||Tu(d.tasks)}}function SL(e){const t=new Map(Oe.pendingTasks.entries());Oe.pendingTasks.clear();const r=Oe.nodes,o=Array.from(t.keys()).filter(d=>!r.has(d)).map(d=>mr(d)).filter(Boolean);let s;for(let d=0;d<o.length;d++)s=o[d],Sa(s,!1),Tu(s.tasks),t.delete(s.id);const c=ft.state.idMap,f=Oe.root.tasks;for(let d=0;d<f.length;d++){const h=f[d],p=mr(h.id);if(!p)continue;const g=t.get(p.id);g&&(Sa(p,e),Tu(Array.from(g,v=>c.get(v)).filter(Boolean)))}}function _L(e,t,r=!1){const o=gn.value.expandAll,s=o!==!0,c=new Set(Dr.value),f=c.size>0&&o===!1||s;queueMicrotask(()=>{cy(e,t,r)}),Qs.value||queueMicrotask(()=>{(Jn.value.length||r)&&(Qs.value=!0)}),f&&(queueMicrotask(()=>{gL(c,r),s&&(gn.value.expandAll=!1)}),queueMicrotask(()=>{cy(e,t,r)}))}function cy(e,t,r){mp(e,t),r&&(xL(),uf.value="idle")}function Tu(e){let t;for(let r=0;r<e.length;r++)t=e[r],Ha(t)?tx(t.id,!0):oL(t.id)}function TL(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 CL(e,t){const r=ft.state.idMap,o=new Map(Oe.root.tasks.filter(f=>r.has(f.id)).map(f=>[f.id,f])),s=Array.from(o.values(),f=>[f.id,mr(f.id)]),c={files:o.size,time:t>1e3?`${(t/1e3).toFixed(2)}s`:`${Math.round(t)}ms`,filesFailed:0,filesSuccess:0,filesIgnore:0,filesRunning:0,filesSkipped:0,filesTodo:0,testsFailed:0,testsSuccess:0,testsIgnore:0,testsSkipped:0,testsTodo:0,totalTests:0};for(const[f,d]of s){if(!d)continue;d.result?.state==="fail"?c.filesFailed++:d.result?.state==="pass"?c.filesSuccess++:d.mode==="skip"?(c.filesIgnore++,c.filesSkipped++):d.mode==="todo"?(c.filesIgnore++,c.filesTodo++):c.filesRunning++;const{failed:h,success:p,skipped:g,total:v,ignored:b,todo:w}=sx(d);c.totalTests+=v,c.testsFailed+=h,c.testsSuccess+=p,c.testsSkipped+=g,c.testsTodo+=w,c.testsIgnore+=b}e.files=c.files,e.time=c.time,e.filesFailed=c.filesFailed,e.filesSuccess=c.filesSuccess,e.filesIgnore=c.filesIgnore,e.filesRunning=c.filesRunning,e.filesSkipped=c.filesSkipped,e.filesTodo=c.filesTodo,e.testsFailed=c.testsFailed,e.testsSuccess=c.testsSuccess,e.testsFailed=c.testsFailed,e.testsTodo=c.testsTodo,e.testsIgnore=c.testsIgnore,e.testsSkipped=c.testsSkipped,e.totalTests=c.totalTests}function sx(e,t="",r){const o={failed:0,success:0,skipped:0,running:0,total:0,ignored:0,todo:0};for(const s of lx(e))(!r||cL(s,t,r))&&(o.total++,s.result?.state==="fail"?o.failed++:s.result?.state==="pass"?o.success++:s.mode==="skip"?(o.ignored++,o.skipped++):s.mode==="todo"&&(o.ignored++,o.todo++));return o.running=o.total-o.failed-o.success-o.ignored,o}function EL(e,t,r,o,s,c){if(t)return r.map(f=>sx(f,s,c)).reduce((f,{failed:d,success:h,ignored:p,running:g})=>(f.failed+=d,f.success+=h,f.skipped+=p,f.running+=g,f),{failed:0,success:0,skipped:0,running:0});if(e){const f={failed:0,success:0,skipped:0,running:0},d=!c.success&&!c.failed,h=c.failed||d,p=c.success||d;for(const g of r)g.result?.state==="fail"?f.failed+=h?1:0:g.result?.state==="pass"?f.success+=p?1:0:g.mode==="skip"||g.mode==="todo"||f.running++;return f}return o}function*lx(e){const t=pp(e);let r;for(let o=0;o<t.length;o++)r=t[o],Js(r)?yield r:yield*lx(r.tasks)}class AL{constructor(t=[],r=new Map,o=!1,s=500,c={id:"vitest-root-node",expandable:!0,expanded:!0,tasks:[]},f=new Map,d=new Map,h=ir({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})){this.projects=t,this.colors=r,this.onTaskUpdateCalled=o,this.resumeEndTimeout=s,this.root=c,this.pendingTasks=f,this.nodes=d,this.summary=h,this.rafCollector=AE(this.runCollect.bind(this),{fpsLimit:10,immediate:!1})}rafCollector;resumeEndRunId;startTime=0;executionTime=0;loadFiles(t,r){this.projects.splice(0,this.projects.length,...r.map(o=>o.name)),this.colors=new Map(r.map(o=>[o.name,o.color])),vL(t,!0,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}startRun(){this.startTime=performance.now(),this.resumeEndRunId=setTimeout(()=>this.endRun(),this.resumeEndTimeout),this.collect(!0,!1)}recordTestArtifact(t,r){bL(t,r),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}resumeRun(t,r){yL(t),this.onTaskUpdateCalled||(clearTimeout(this.resumeEndRunId),this.onTaskUpdateCalled=!0,this.collect(!0,!1,!1),this.rafCollector.resume())}endRun(t=performance.now()-this.startTime){this.executionTime=t,this.rafCollector.pause(),this.onTaskUpdateCalled=!1,this.collect(!1,!0)}runCollect(){this.collect(!1,!1)}collect(t,r,o=!0){o?queueMicrotask(()=>{ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}):ay(t,r,this.summary,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests},r?this.executionTime:performance.now()-this.startTime)}collectTestsTotal(t,r,o,s){return EL(t,r,o,s,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})}collapseNode(t){queueMicrotask(()=>{sL(t)})}expandNode(t){queueMicrotask(()=>{hL(t,Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}collapseAllNodes(){queueMicrotask(()=>{lL()})}expandAllNodes(){queueMicrotask(()=>{pL(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}filterNodes(){queueMicrotask(()=>{mp(Vn.value.trim(),{failed:it.failed,success:it.success,skipped:it.skipped,onlyTests:it.onlyTests})})}}const Oe=new AL;function ax(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yc={exports:{}},LL=Yc.exports,uy;function vo(){return uy||(uy=1,(function(e,t){(function(r,o){e.exports=o()})(LL,(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]),g=!d&&/WebKit\//.test(r),v=g&&/Qt\/\d+\.\d+/.test(r),b=!d&&/Chrome\/(\d+)/.exec(r),w=b&&+b[1],E=/Opera\//.test(r),L=/Apple Computer/.test(navigator.vendor),P=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(r),M=/PhantomJS/.test(r),R=L&&(/Mobile\/\w+/.test(r)||navigator.maxTouchPoints>2),I=/Android/.test(r),_=R||I||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(r),$=R||/Mac/.test(o),W=/\bCrOS\b/.test(r),ne=/win/i.test(o),ee=E&&r.match(/Version\/(\d*\.\d*)/);ee&&(ee=Number(ee[1])),ee&&ee>=15&&(E=!1,g=!0);var Z=$&&(v||E&&(ee==null||ee<12.11)),G=s||h&&p>=9;function j(n){return new RegExp("(^|\\s)"+n+"(?:$|\\s)\\s*")}var N=function(n,i){var a=n.className,l=j(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 O(n){for(var i=n.childNodes.length;i>0;--i)n.removeChild(n.firstChild);return n}function C(n,i){return O(n).appendChild(i)}function k(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 m=0;m<i.length;++m)u.appendChild(i[m]);return u}function z(n,i,a,l){var u=k(n,i,a,l);return u.setAttribute("role","presentation"),u}var B;document.createRange?B=function(n,i,a,l){var u=document.createRange();return u.setEnd(l||n,a),u.setStart(n,i),u}:B=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 ce(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 be(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 Se(n,i){var a=n.className;j(i).test(a)||(n.className+=(a?" ":"")+i)}function Be(n,i){for(var a=n.split(" "),l=0;l<a.length;l++)a[l]&&!j(a[l]).test(i)&&(i+=" "+a[l]);return i}var Ae=function(n){n.select()};R?Ae=function(n){n.selectionStart=0,n.selectionEnd=n.value.length}:h&&(Ae=function(n){try{n.select()}catch{}});function Ke(n){return n.display.wrapper.ownerDocument}function je(n){return Fe(n.display.wrapper)}function Fe(n){return n.getRootNode?n.getRootNode():n.ownerDocument}function Pe(n){return Ke(n).defaultView}function F(n){var i=Array.prototype.slice.call(arguments,1);return function(){return n.apply(null,i)}}function Y(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 re(n,i,a,l,u){i==null&&(i=n.search(/[^\s\u00a0]/),i==-1&&(i=n.length));for(var m=l||0,y=u||0;;){var x=n.indexOf(" ",m);if(x<0||x>=i)return y+(i-m);y+=x-m,y+=a-y%a,m=x+1}}var le=function(){this.id=null,this.f=null,this.time=0,this.handler=F(this.onTimeout,this)};le.prototype.onTimeout=function(n){n.id=0,n.time<=+new Date?n.f():setTimeout(n.handler,n.time-+new Date)},le.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 ae(n,i){for(var a=0;a<n.length;++a)if(n[a]==i)return a;return-1}var D=50,q={toString:function(){return"CodeMirror.Pass"}},Q={scroll:!1},he={origin:"*mouse"},de={origin:"+move"};function ge(n,i,a){for(var l=0,u=0;;){var m=n.indexOf(" ",l);m==-1&&(m=n.length);var y=m-l;if(m==n.length||u+y>=i)return l+Math.min(y,i-u);if(u+=m-l,u+=a-u%a,l=m+1,u>=i)return l}}var Ce=[""];function Ee(n){for(;Ce.length<=n;)Ce.push(xe(Ce)+" ");return Ce[n]}function xe(n){return n[n.length-1]}function ye(n,i){for(var a=[],l=0;l<n.length;l++)a[l]=i(n[l],l);return a}function J(n,i,a){for(var l=0,u=a(i);l<n.length&&a(n[l])<=u;)l++;n.splice(l,0,i)}function ue(){}function oe(n,i){var a;return Object.create?a=Object.create(n):(ue.prototype=n,a=new ue),i&&Y(i,a),a}var $e=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Je(n){return/\w/.test(n)||n>""&&(n.toUpperCase()!=n.toLowerCase()||$e.test(n))}function ct(n,i){return i?i.source.indexOf("\\w")>-1&&Je(n)?!0:i.test(n):Je(n)}function dt(n){for(var i in n)if(n.hasOwnProperty(i)&&n[i])return!1;return!0}var Nt=/[\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 ut(n){return n.charCodeAt(0)>=768&&Nt.test(n)}function Yt(n,i,a){for(;(a<0?i>0:i<n.length)&&ut(n.charAt(i));)i+=a;return i}function jt(n,i,a){for(var l=i>a?-1:1;;){if(i==a)return i;var u=(i+a)/2,m=l<0?Math.ceil(u):Math.floor(u);if(m==i)return n(m)?i:a;n(m)?a=m:i=m+l}}function Fn(n,i,a,l){if(!n)return l(i,a,"ltr",0);for(var u=!1,m=0;m<n.length;++m){var y=n[m];(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",m),u=!0)}u||l(i,a,"ltr")}var Hr=null;function Bt(n,i,a){var l;Hr=null;for(var u=0;u<n.length;++u){var m=n[u];if(m.from<i&&m.to>i)return u;m.to==i&&(m.from!=m.to&&a=="before"?l=u:Hr=u),m.from==i&&(m.from!=m.to&&a!="before"?l=u:Hr=u)}return l??Hr}var Hn=(function(){var n="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",i="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function a(T){return T<=247?n.charAt(T):1424<=T&&T<=1524?"R":1536<=T&&T<=1785?i.charAt(T-1536):1774<=T&&T<=2220?"r":8192<=T&&T<=8203?"w":T==8204?"b":"L"}var l=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,u=/[stwN]/,m=/[LRr]/,y=/[Lb1n]/,x=/[1n]/;function S(T,H,V){this.level=T,this.from=H,this.to=V}return function(T,H){var V=H=="ltr"?"L":"R";if(T.length==0||H=="ltr"&&!l.test(T))return!1;for(var se=T.length,te=[],pe=0;pe<se;++pe)te.push(a(T.charCodeAt(pe)));for(var we=0,Te=V;we<se;++we){var Le=te[we];Le=="m"?te[we]=Te:Te=Le}for(var De=0,Me=V;De<se;++De){var ze=te[De];ze=="1"&&Me=="r"?te[De]="n":m.test(ze)&&(Me=ze,ze=="r"&&(te[De]="R"))}for(var Ye=1,Ue=te[0];Ye<se-1;++Ye){var st=te[Ye];st=="+"&&Ue=="1"&&te[Ye+1]=="1"?te[Ye]="1":st==","&&Ue==te[Ye+1]&&(Ue=="1"||Ue=="n")&&(te[Ye]=Ue),Ue=st}for(var St=0;St<se;++St){var tn=te[St];if(tn==",")te[St]="N";else if(tn=="%"){var Ot=void 0;for(Ot=St+1;Ot<se&&te[Ot]=="%";++Ot);for(var qn=St&&te[St-1]=="!"||Ot<se&&te[Ot]=="1"?"1":"N",Cn=St;Cn<Ot;++Cn)te[Cn]=qn;St=Ot-1}}for(var Ut=0,En=V;Ut<se;++Ut){var sn=te[Ut];En=="L"&&sn=="1"?te[Ut]="L":m.test(sn)&&(En=sn)}for(var Kt=0;Kt<se;++Kt)if(u.test(te[Kt])){var Vt=void 0;for(Vt=Kt+1;Vt<se&&u.test(te[Vt]);++Vt);for(var It=(Kt?te[Kt-1]:V)=="L",An=(Vt<se?te[Vt]:V)=="L",ks=It==An?It?"L":"R":V,ji=Kt;ji<Vt;++ji)te[ji]=ks;Kt=Vt-1}for(var fn=[],Ur,nn=0;nn<se;)if(y.test(te[nn])){var cd=nn;for(++nn;nn<se&&y.test(te[nn]);++nn);fn.push(new S(0,cd,nn))}else{var ui=nn,Ao=fn.length,Lo=H=="rtl"?1:0;for(++nn;nn<se&&te[nn]!="L";++nn);for(var yn=ui;yn<nn;)if(x.test(te[yn])){ui<yn&&(fn.splice(Ao,0,new S(1,ui,yn)),Ao+=Lo);var Ss=yn;for(++yn;yn<nn&&x.test(te[yn]);++yn);fn.splice(Ao,0,new S(2,Ss,yn)),Ao+=Lo,ui=yn}else++yn;ui<nn&&fn.splice(Ao,0,new S(1,ui,nn))}return H=="ltr"&&(fn[0].level==1&&(Ur=T.match(/^\s+/))&&(fn[0].from=Ur[0].length,fn.unshift(new S(0,0,Ur[0].length))),xe(fn).level==1&&(Ur=T.match(/\s+$/))&&(xe(fn).to-=Ur[0].length,fn.push(new S(0,se-Ur[0].length,se)))),H=="rtl"?fn.reverse():fn}})();function lt(n,i){var a=n.order;return a==null&&(a=n.order=Hn(n.text,i)),a}var yo=[],Xe=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]||yo).concat(a)}};function ri(n,i){return n._handlers&&n._handlers[i]||yo}function an(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 m=ae(u,a);m>-1&&(l[i]=u.slice(0,m).concat(u.slice(m+1)))}}}function Pt(n,i){var a=ri(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 Rt(n,i,a){return typeof i=="string"&&(i={type:i,preventDefault:function(){this.defaultPrevented=!0}}),Pt(n,a||i.type,n,i),kn(i)||i.codemirrorIgnore}function ar(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)ae(a,i[l])==-1&&a.push(i[l])}function Bn(n,i){return ri(n,i).length>0}function yr(n){n.prototype.on=function(i,a){Xe(this,i,a)},n.prototype.off=function(i,a){an(this,i,a)}}function cn(n){n.preventDefault?n.preventDefault():n.returnValue=!1}function Zo(n){n.stopPropagation?n.stopPropagation():n.cancelBubble=!0}function kn(n){return n.defaultPrevented!=null?n.defaultPrevented:n.returnValue==!1}function Oi(n){cn(n),Zo(n)}function sl(n){return n.target||n.srcElement}function br(n){var i=n.which;return i==null&&(n.button&1?i=1:n.button&2?i=3:n.button&4&&(i=2)),$&&n.ctrlKey&&i==1&&(i=3),i}var mf=(function(){if(h&&p<9)return!1;var n=k("div");return"draggable"in n||"dragDrop"in n})(),Jo;function Ga(n){if(Jo==null){var i=k("span","");C(n,k("span",[i,document.createTextNode("x")])),n.firstChild.offsetHeight!=0&&(Jo=i.offsetWidth<=1&&i.offsetHeight>2&&!(h&&p<8))}var a=Jo?k("span",""):k("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return a.setAttribute("cm-text",""),a}var ll;function Pi(n){if(ll!=null)return ll;var i=C(n,document.createTextNode("AخA")),a=B(i,0,1).getBoundingClientRect(),l=B(i,1,2).getBoundingClientRect();return O(n),!a||a.left==a.right?!1:ll=l.right-a.right<3}var cr=` |
| 20 | |
| 21 | b`.split(/\n/).length!=3?function(n){for(var i=0,a=[],l=n.length;i<=l;){var u=n.indexOf(` |
| 22 | `,i);u==-1&&(u=n.length);var m=n.slice(i,n.charAt(u-1)=="\r"?u-1:u),y=m.indexOf("\r");y!=-1?(a.push(m.slice(0,y)),i+=y+1):(a.push(m),i=u+1)}return a}:function(n){return n.split(/\r\n?|\n/)},Ri=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},Ka=(function(){var n=k("div");return"oncopy"in n?!0:(n.setAttribute("oncopy","return;"),typeof n.oncopy=="function")})(),wr=null;function vf(n){if(wr!=null)return wr;var i=C(n,k("span","x")),a=i.getBoundingClientRect(),l=B(i,0,1).getBoundingClientRect();return wr=Math.abs(a.left-l.left)>1}var Qo={},xr={};function kr(n,i){arguments.length>2&&(i.dependencies=Array.prototype.slice.call(arguments,2)),Qo[n]=i}function bo(n,i){xr[n]=i}function es(n){if(typeof n=="string"&&xr.hasOwnProperty(n))n=xr[n];else if(n&&typeof n.name=="string"&&xr.hasOwnProperty(n.name)){var i=xr[n.name];typeof i=="string"&&(i={name:i}),n=oe(i,n),n.name=i.name}else{if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(n))return es("application/xml");if(typeof n=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(n))return es("application/json")}return typeof n=="string"?{name:n}:n||{name:"null"}}function ts(n,i){i=es(i);var a=Qo[i.name];if(!a)return ts(n,"text/plain");var l=a(n,i);if($i.hasOwnProperty(i.name)){var u=$i[i.name];for(var m in u)u.hasOwnProperty(m)&&(l.hasOwnProperty(m)&&(l["_"+m]=l[m]),l[m]=u[m])}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 ns(n,i){var a=$i.hasOwnProperty(n)?$i[n]:$i[n]={};Y(i,a)}function Br(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 al(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 rs(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=re(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?re(this.string,this.lineStart,this.tabSize):0)},$t.prototype.indentation=function(){return re(this.string,null,this.tabSize)-(this.lineStart?re(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 m=this.string.slice(this.pos).match(n);return m&&m.index>0?null:(m&&i!==!1&&(this.pos+=m[0].length),m)}},$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 qe(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],m=u.chunkSize();if(i<m){a=u;break}i-=m}return a.lines[i]}function ii(n,i,a){var l=[],u=i.line;return n.iter(i.line,a.line+1,function(m){var y=m.text;u==a.line&&(y=y.slice(0,a.ch)),u==i.line&&(y=y.slice(i.ch)),l.push(y),++u}),l}function cl(n,i,a){var l=[];return n.iter(i,a,function(u){l.push(u.text)}),l}function Qn(n,i){var a=i-n.height;if(a)for(var l=n;l;l=l.parent)l.height+=a}function A(n){if(n.parent==null)return null;for(var i=n.parent,a=ae(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 U(n,i){var a=n.first;e:do{for(var l=0;l<n.children.length;++l){var u=n.children[l],m=u.height;if(i<m){n=u;continue e}i-=m,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 me(n,i){return i>=n.first&&i<n.first+n.size}function _e(n,i){return String(n.lineNumberFormatter(i+n.firstLineNumber))}function fe(n,i,a){if(a===void 0&&(a=null),!(this instanceof fe))return new fe(n,i,a);this.line=n,this.ch=i,this.sticky=a}function Ie(n,i){return n.line-i.line||n.ch-i.ch}function pt(n,i){return n.sticky==i.sticky&&Ie(n,i)==0}function Zt(n){return fe(n.line,n.ch)}function Sn(n,i){return Ie(n,i)<0?i:n}function is(n,i){return Ie(n,i)<0?n:i}function Wp(n,i){return Math.max(n.first,Math.min(i,n.first+n.size-1))}function tt(n,i){if(i.line<n.first)return fe(n.first,0);var a=n.first+n.size-1;return i.line>a?fe(a,qe(n,a).text.length):I1(i,qe(n,i.line).text.length)}function I1(n,i){var a=n.ch;return a==null||a>i?fe(n.line,i):a<0?fe(n.line,0):n}function qp(n,i){for(var a=[],l=0;l<i.length;l++)a[l]=tt(n,i[l]);return a}var Xa=function(n,i){this.state=n,this.lookAhead=i},Wr=function(n,i,a,l){this.state=i,this.doc=n,this.line=a,this.maxLookAhead=l||0,this.baseTokens=null,this.baseTokenPos=1};Wr.prototype.lookAhead=function(n){var i=this.doc.getLine(this.line+n);return i!=null&&n>this.maxLookAhead&&(this.maxLookAhead=n),i},Wr.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}},Wr.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},Wr.fromSaved=function(n,i,a){return i instanceof Xa?new Wr(n,Br(n.mode,i.state),a,i.lookAhead):new Wr(n,Br(n.mode,i),a)},Wr.prototype.save=function(n){var i=n!==!1?Br(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Xa(i,this.maxLookAhead):i};function jp(n,i,a,l){var u=[n.state.modeGen],m={};Yp(n,i.text,n.doc.mode,a,function(T,H){return u.push(T,H)},m,l);for(var y=a.state,x=function(T){a.baseTokens=u;var H=n.state.overlays[T],V=1,se=0;a.state=!0,Yp(n,i.text,H.mode,a,function(te,pe){for(var we=V;se<te;){var Te=u[V];Te>te&&u.splice(V,1,te,u[V+1],Te),V+=2,se=Math.min(te,Te)}if(pe)if(H.opaque)u.splice(we,V-we,te,"overlay "+pe),V=we+2;else for(;we<V;we+=2){var Le=u[we+1];u[we+1]=(Le?Le+" ":"")+"overlay "+pe}},m),a.state=y,a.baseTokens=null,a.baseTokenPos=1},S=0;S<n.state.overlays.length;++S)x(S);return{styles:u,classes:m.bgClass||m.textClass?m:null}}function Up(n,i,a){if(!i.styles||i.styles[0]!=n.state.modeGen){var l=ul(n,A(i)),u=i.text.length>n.options.maxHighlightLength&&Br(n.doc.mode,l.state),m=jp(n,i,l);u&&(l.state=u),i.stateAfter=l.save(!u),i.styles=m.styles,m.classes?i.styleClasses=m.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 ul(n,i,a){var l=n.doc,u=n.display;if(!l.mode.startState)return new Wr(l,!0,i);var m=D1(n,i,a),y=m>l.first&&qe(l,m-1).stateAfter,x=y?Wr.fromSaved(l,y,m):new Wr(l,rs(l.mode),m);return l.iter(m,i,function(S){yf(n,S.text,x);var T=x.line;S.stateAfter=T==i-1||T%5==0||T>=u.viewFrom&&T<u.viewTo?x.save():null,x.nextLine()}),a&&(l.modeFrontier=x.line),x}function yf(n,i,a,l){var u=n.doc.mode,m=new $t(i,n.options.tabSize,a);for(m.start=m.pos=l||0,i==""&&Vp(u,a.state);!m.eol();)bf(u,m,a.state),m.start=m.pos}function Vp(n,i){if(n.blankLine)return n.blankLine(i);if(n.innerMode){var a=al(n,i);if(a.mode.blankLine)return a.mode.blankLine(a.state)}}function bf(n,i,a,l){for(var u=0;u<10;u++){l&&(l[0]=al(n,a).mode);var m=n.token(i,a);if(i.pos>i.start)return m}throw new Error("Mode "+n.name+" failed to advance stream.")}var Gp=function(n,i,a){this.start=n.start,this.end=n.pos,this.string=n.current(),this.type=i||null,this.state=a};function Kp(n,i,a,l){var u=n.doc,m=u.mode,y;i=tt(u,i);var x=qe(u,i.line),S=ul(n,i.line,a),T=new $t(x.text,n.options.tabSize,S),H;for(l&&(H=[]);(l||T.pos<i.ch)&&!T.eol();)T.start=T.pos,y=bf(m,T,S.state),l&&H.push(new Gp(T,y,Br(u.mode,S.state)));return l?H:new Gp(T,y,S.state)}function Xp(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 Yp(n,i,a,l,u,m,y){var x=a.flattenSpans;x==null&&(x=n.options.flattenSpans);var S=0,T=null,H=new $t(i,n.options.tabSize,l),V,se=n.options.addModeClass&&[null];for(i==""&&Xp(Vp(a,l.state),m);!H.eol();){if(H.pos>n.options.maxHighlightLength?(x=!1,y&&yf(n,i,l,H.pos),H.pos=i.length,V=null):V=Xp(bf(a,H,l.state,se),m),se){var te=se[0].name;te&&(V="m-"+(V?te+" "+V:te))}if(!x||T!=V){for(;S<H.start;)S=Math.min(H.start,S+5e3),u(S,T);T=V}H.start=H.pos}for(;S<H.pos;){var pe=Math.min(H.pos,S+5e3);u(pe,T),S=pe}}function D1(n,i,a){for(var l,u,m=n.doc,y=a?-1:i-(n.doc.mode.innerMode?1e3:100),x=i;x>y;--x){if(x<=m.first)return m.first;var S=qe(m,x-1),T=S.stateAfter;if(T&&(!a||x+(T instanceof Xa?T.lookAhead:0)<=m.modeFrontier))return x;var H=re(S.text,null,n.options.tabSize);(u==null||l>H)&&(u=x-1,l=H)}return u}function z1(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=qe(n,l).stateAfter;if(u&&(!(u instanceof Xa)||l+u.lookAhead<i)){a=l+1;break}}n.highlightFrontier=Math.min(n.highlightFrontier,a)}}var Zp=!1,oi=!1;function F1(){Zp=!0}function H1(){oi=!0}function Ya(n,i,a){this.marker=n,this.from=i,this.to=a}function fl(n,i){if(n)for(var a=0;a<n.length;++a){var l=n[a];if(l.marker==i)return l}}function B1(n,i){for(var a,l=0;l<n.length;++l)n[l]!=i&&(a||(a=[])).push(n[l]);return a}function W1(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 q1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);if(x||m.from==i&&y.type=="bookmark"&&(!a||!m.marker.insertLeft)){var S=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);(l||(l=[])).push(new Ya(y,m.from,S?null:m.to))}}return l}function j1(n,i,a){var l;if(n)for(var u=0;u<n.length;++u){var m=n[u],y=m.marker,x=m.to==null||(y.inclusiveRight?m.to>=i:m.to>i);if(x||m.from==i&&y.type=="bookmark"&&(!a||m.marker.insertLeft)){var S=m.from==null||(y.inclusiveLeft?m.from<=i:m.from<i);(l||(l=[])).push(new Ya(y,S?null:m.from-i,m.to==null?null:m.to-i))}}return l}function wf(n,i){if(i.full)return null;var a=me(n,i.from.line)&&qe(n,i.from.line).markedSpans,l=me(n,i.to.line)&&qe(n,i.to.line).markedSpans;if(!a&&!l)return null;var u=i.from.ch,m=i.to.ch,y=Ie(i.from,i.to)==0,x=q1(a,u,y),S=j1(l,m,y),T=i.text.length==1,H=xe(i.text).length+(T?u:0);if(x)for(var V=0;V<x.length;++V){var se=x[V];if(se.to==null){var te=fl(S,se.marker);te?T&&(se.to=te.to==null?null:te.to+H):se.to=u}}if(S)for(var pe=0;pe<S.length;++pe){var we=S[pe];if(we.to!=null&&(we.to+=H),we.from==null){var Te=fl(x,we.marker);Te||(we.from=H,T&&(x||(x=[])).push(we))}else we.from+=H,T&&(x||(x=[])).push(we)}x&&(x=Jp(x)),S&&S!=x&&(S=Jp(S));var Le=[x];if(!T){var De=i.text.length-2,Me;if(De>0&&x)for(var ze=0;ze<x.length;++ze)x[ze].to==null&&(Me||(Me=[])).push(new Ya(x[ze].marker,null,null));for(var Ye=0;Ye<De;++Ye)Le.push(Me);Le.push(S)}return Le}function Jp(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 U1(n,i,a){var l=null;if(n.iter(i.line,a.line+1,function(te){if(te.markedSpans)for(var pe=0;pe<te.markedSpans.length;++pe){var we=te.markedSpans[pe].marker;we.readOnly&&(!l||ae(l,we)==-1)&&(l||(l=[])).push(we)}}),!l)return null;for(var u=[{from:i,to:a}],m=0;m<l.length;++m)for(var y=l[m],x=y.find(0),S=0;S<u.length;++S){var T=u[S];if(!(Ie(T.to,x.from)<0||Ie(T.from,x.to)>0)){var H=[S,1],V=Ie(T.from,x.from),se=Ie(T.to,x.to);(V<0||!y.inclusiveLeft&&!V)&&H.push({from:T.from,to:x.from}),(se>0||!y.inclusiveRight&&!se)&&H.push({from:x.to,to:T.to}),u.splice.apply(u,H),S+=H.length-3}}return u}function Qp(n){var i=n.markedSpans;if(i){for(var a=0;a<i.length;++a)i[a].marker.detachLine(n);n.markedSpans=null}}function eg(n,i){if(i){for(var a=0;a<i.length;++a)i[a].marker.attachLine(n);n.markedSpans=i}}function Za(n){return n.inclusiveLeft?-1:0}function Ja(n){return n.inclusiveRight?1:0}function xf(n,i){var a=n.lines.length-i.lines.length;if(a!=0)return a;var l=n.find(),u=i.find(),m=Ie(l.from,u.from)||Za(n)-Za(i);if(m)return-m;var y=Ie(l.to,u.to)||Ja(n)-Ja(i);return y||i.id-n.id}function tg(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=void 0,m=0;m<a.length;++m)u=a[m],u.marker.collapsed&&(i?u.from:u.to)==null&&(!l||xf(l,u.marker)<0)&&(l=u.marker);return l}function ng(n){return tg(n,!0)}function Qa(n){return tg(n,!1)}function V1(n,i){var a=oi&&n.markedSpans,l;if(a)for(var u=0;u<a.length;++u){var m=a[u];m.marker.collapsed&&(m.from==null||m.from<i)&&(m.to==null||m.to>i)&&(!l||xf(l,m.marker)<0)&&(l=m.marker)}return l}function rg(n,i,a,l,u){var m=qe(n,i),y=oi&&m.markedSpans;if(y)for(var x=0;x<y.length;++x){var S=y[x];if(S.marker.collapsed){var T=S.marker.find(0),H=Ie(T.from,a)||Za(S.marker)-Za(u),V=Ie(T.to,l)||Ja(S.marker)-Ja(u);if(!(H>=0&&V<=0||H<=0&&V>=0)&&(H<=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.to,a)>=0:Ie(T.to,a)>0)||H>=0&&(S.marker.inclusiveRight&&u.inclusiveLeft?Ie(T.from,l)<=0:Ie(T.from,l)<0)))return!0}}}function Sr(n){for(var i;i=ng(n);)n=i.find(-1,!0).line;return n}function G1(n){for(var i;i=Qa(n);)n=i.find(1,!0).line;return n}function K1(n){for(var i,a;i=Qa(n);)n=i.find(1,!0).line,(a||(a=[])).push(n);return a}function kf(n,i){var a=qe(n,i),l=Sr(a);return a==l?i:A(l)}function ig(n,i){if(i>n.lastLine())return i;var a=qe(n,i),l;if(!Ii(n,a))return i;for(;l=Qa(a);)a=l.find(1,!0).line;return A(a)+1}function Ii(n,i){var a=oi&&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&&Sf(n,i,l))return!0}}}function Sf(n,i,a){if(a.to==null){var l=a.marker.find(1,!0);return Sf(n,l.line,fl(l.line.markedSpans,a.marker))}if(a.marker.inclusiveRight&&a.to==i.text.length)return!0;for(var u=void 0,m=0;m<i.markedSpans.length;++m)if(u=i.markedSpans[m],u.marker.collapsed&&!u.marker.widgetNode&&u.from==a.to&&(u.to==null||u.to!=a.from)&&(u.marker.inclusiveLeft||a.marker.inclusiveRight)&&Sf(n,i,u))return!0}function si(n){n=Sr(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 m=a.parent;m;a=m,m=a.parent)for(var y=0;y<m.children.length;++y){var x=m.children[y];if(x==a)break;i+=x.height}return i}function ec(n){if(n.height==0)return 0;for(var i=n.text.length,a,l=n;a=ng(l);){var u=a.find(0,!0);l=u.from.line,i+=u.from.ch-u.to.ch}for(l=n;a=Qa(l);){var m=a.find(0,!0);i-=l.text.length-m.from.ch,l=m.to.line,i+=l.text.length-m.to.ch}return i}function _f(n){var i=n.display,a=n.doc;i.maxLine=qe(a,a.first),i.maxLineLength=ec(i.maxLine),i.maxLineChanged=!0,a.iter(function(l){var u=ec(l);u>i.maxLineLength&&(i.maxLineLength=u,i.maxLine=l)})}var os=function(n,i,a){this.text=n,eg(this,i),this.height=a?a(this):1};os.prototype.lineNo=function(){return A(this)},yr(os);function X1(n,i,a,l){n.text=i,n.stateAfter&&(n.stateAfter=null),n.styles&&(n.styles=null),n.order!=null&&(n.order=null),Qp(n),eg(n,a);var u=l?l(n):1;u!=n.height&&Qn(n,u)}function Y1(n){n.parent=null,Qp(n)}var Z1={},J1={};function og(n,i){if(!n||/^\s*$/.test(n))return null;var a=i.addModeClass?J1:Z1;return a[n]||(a[n]=n.replace(/\S+/g,"cm-$&"))}function sg(n,i){var a=z("span",null,null,g?"padding-right: .1px":null),l={pre:z("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 m=u?i.rest[u-1]:i.line,y=void 0;l.pos=0,l.addToken=ek,Pi(n.display.measure)&&(y=lt(m,n.doc.direction))&&(l.addToken=nk(l.addToken,y)),l.map=[];var x=i!=n.display.externalMeasured&&A(m);rk(m,l,Up(n,m,x)),m.styleClasses&&(m.styleClasses.bgClass&&(l.bgClass=Be(m.styleClasses.bgClass,l.bgClass||"")),m.styleClasses.textClass&&(l.textClass=Be(m.styleClasses.textClass,l.textClass||""))),l.map.length==0&&l.map.push(0,0,l.content.appendChild(Ga(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(g){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 Pt(n,"renderLine",n,i.line,l.pre),l.pre.className&&(l.textClass=Be(l.pre.className,l.textClass||"")),l}function Q1(n){var i=k("span","•","cm-invalidchar");return i.title="\\u"+n.charCodeAt(0).toString(16),i.setAttribute("aria-label",i.title),i}function ek(n,i,a,l,u,m,y){if(i){var x=n.splitSpaces?tk(i,n.trailingSpace):i,S=n.cm.state.specialChars,T=!1,H;if(!S.test(i))n.col+=i.length,H=document.createTextNode(x),n.map.push(n.pos,n.pos+i.length,H),h&&p<9&&(T=!0),n.pos+=i.length;else{H=document.createDocumentFragment();for(var V=0;;){S.lastIndex=V;var se=S.exec(i),te=se?se.index-V:i.length-V;if(te){var pe=document.createTextNode(x.slice(V,V+te));h&&p<9?H.appendChild(k("span",[pe])):H.appendChild(pe),n.map.push(n.pos,n.pos+te,pe),n.col+=te,n.pos+=te}if(!se)break;V+=te+1;var we=void 0;if(se[0]==" "){var Te=n.cm.options.tabSize,Le=Te-n.col%Te;we=H.appendChild(k("span",Ee(Le),"cm-tab")),we.setAttribute("role","presentation"),we.setAttribute("cm-text"," "),n.col+=Le}else se[0]=="\r"||se[0]==` |
| 23 | `?(we=H.appendChild(k("span",se[0]=="\r"?"␍":"","cm-invalidchar")),we.setAttribute("cm-text",se[0]),n.col+=1):(we=n.cm.options.specialCharPlaceholder(se[0]),we.setAttribute("cm-text",se[0]),h&&p<9?H.appendChild(k("span",[we])):H.appendChild(we),n.col+=1);n.map.push(n.pos,n.pos+1,we),n.pos++}}if(n.trailingSpace=x.charCodeAt(i.length-1)==32,a||l||u||T||m||y){var De=a||"";l&&(De+=l),u&&(De+=u);var Me=k("span",[H],De,m);if(y)for(var ze in y)y.hasOwnProperty(ze)&&ze!="style"&&ze!="class"&&Me.setAttribute(ze,y[ze]);return n.content.appendChild(Me)}n.content.appendChild(H)}}function tk(n,i){if(n.length>1&&!/ /.test(n))return n;for(var a=i,l="",u=0;u<n.length;u++){var m=n.charAt(u);m==" "&&a&&(u==n.length-1||n.charCodeAt(u+1)==32)&&(m=" "),l+=m,a=m==" "}return l}function nk(n,i){return function(a,l,u,m,y,x,S){u=u?u+" cm-force-border":"cm-force-border";for(var T=a.pos,H=T+l.length;;){for(var V=void 0,se=0;se<i.length&&(V=i[se],!(V.to>T&&V.from<=T));se++);if(V.to>=H)return n(a,l,u,m,y,x,S);n(a,l.slice(0,V.to-T),u,m,null,x,S),m=null,l=l.slice(V.to-T),T=V.to}}}function lg(n,i,a,l){var u=!l&&a.widgetNode;u&&n.map.push(n.pos,n.pos+i,u),!l&&n.cm.display.input.needsContentAttribute&&(u||(u=n.content.appendChild(document.createElement("span"))),u.setAttribute("cm-marker",a.id)),u&&(n.cm.display.input.setUneditable(u),n.content.appendChild(u)),n.pos+=i,n.trailingSpace=!1}function rk(n,i,a){var l=n.markedSpans,u=n.text,m=0;if(!l){for(var y=1;y<a.length;y+=2)i.addToken(i,u.slice(m,m=a[y]),og(a[y+1],i.cm.options));return}for(var x=u.length,S=0,T=1,H="",V,se,te=0,pe,we,Te,Le,De;;){if(te==S){pe=we=Te=se="",De=null,Le=null,te=1/0;for(var Me=[],ze=void 0,Ye=0;Ye<l.length;++Ye){var Ue=l[Ye],st=Ue.marker;if(st.type=="bookmark"&&Ue.from==S&&st.widgetNode)Me.push(st);else if(Ue.from<=S&&(Ue.to==null||Ue.to>S||st.collapsed&&Ue.to==S&&Ue.from==S)){if(Ue.to!=null&&Ue.to!=S&&te>Ue.to&&(te=Ue.to,we=""),st.className&&(pe+=" "+st.className),st.css&&(se=(se?se+";":"")+st.css),st.startStyle&&Ue.from==S&&(Te+=" "+st.startStyle),st.endStyle&&Ue.to==te&&(ze||(ze=[])).push(st.endStyle,Ue.to),st.title&&((De||(De={})).title=st.title),st.attributes)for(var St in st.attributes)(De||(De={}))[St]=st.attributes[St];st.collapsed&&(!Le||xf(Le.marker,st)<0)&&(Le=Ue)}else Ue.from>S&&te>Ue.from&&(te=Ue.from)}if(ze)for(var tn=0;tn<ze.length;tn+=2)ze[tn+1]==te&&(we+=" "+ze[tn]);if(!Le||Le.from==S)for(var Ot=0;Ot<Me.length;++Ot)lg(i,0,Me[Ot]);if(Le&&(Le.from||0)==S){if(lg(i,(Le.to==null?x+1:Le.to)-S,Le.marker,Le.from==null),Le.to==null)return;Le.to==S&&(Le=!1)}}if(S>=x)break;for(var qn=Math.min(x,te);;){if(H){var Cn=S+H.length;if(!Le){var Ut=Cn>qn?H.slice(0,qn-S):H;i.addToken(i,Ut,V?V+pe:pe,Te,S+Ut.length==te?we:"",se,De)}if(Cn>=qn){H=H.slice(qn-S),S=qn;break}S=Cn,Te=""}H=u.slice(m,m=a[T++]),V=og(a[T++],i.cm.options)}}}function ag(n,i,a){this.line=i,this.rest=K1(i),this.size=this.rest?A(xe(this.rest))-a+1:1,this.node=this.text=null,this.hidden=Ii(n,i)}function tc(n,i,a){for(var l=[],u,m=i;m<a;m=u){var y=new ag(n.doc,qe(n.doc,m),m);u=m+y.size,l.push(y)}return l}var ss=null;function ik(n){ss?ss.ops.push(n):n.ownsGroup=ss={ops:[n],delayedCallbacks:[]}}function ok(n){var i=n.delayedCallbacks,a=0;do{for(;a<i.length;a++)i[a].call(null);for(var l=0;l<n.ops.length;l++){var u=n.ops[l];if(u.cursorActivityHandlers)for(;u.cursorActivityCalled<u.cursorActivityHandlers.length;)u.cursorActivityHandlers[u.cursorActivityCalled++].call(null,u.cm)}}while(a<i.length)}function sk(n,i){var a=n.ownsGroup;if(a)try{ok(a)}finally{ss=null,i(a)}}var dl=null;function Jt(n,i){var a=ri(n,i);if(a.length){var l=Array.prototype.slice.call(arguments,2),u;ss?u=ss.delayedCallbacks:dl?u=dl:(u=dl=[],setTimeout(lk,0));for(var m=function(x){u.push(function(){return a[x].apply(null,l)})},y=0;y<a.length;++y)m(y)}}function lk(){var n=dl;dl=null;for(var i=0;i<n.length;++i)n[i]()}function cg(n,i,a,l){for(var u=0;u<i.changes.length;u++){var m=i.changes[u];m=="text"?ck(n,i):m=="gutter"?fg(n,i,a,l):m=="class"?Tf(n,i):m=="widget"&&uk(n,i,l)}i.changes=null}function hl(n){return n.node==n.text&&(n.node=k("div",null,null,"position: relative"),n.text.parentNode&&n.text.parentNode.replaceChild(n.node,n.text),n.node.appendChild(n.text),h&&p<8&&(n.node.style.zIndex=2)),n.node}function ak(n,i){var a=i.bgClass?i.bgClass+" "+(i.line.bgClass||""):i.line.bgClass;if(a&&(a+=" CodeMirror-linebackground"),i.background)a?i.background.className=a:(i.background.parentNode.removeChild(i.background),i.background=null);else if(a){var l=hl(i);i.background=l.insertBefore(k("div",null,a),l.firstChild),n.display.input.setUneditable(i.background)}}function ug(n,i){var a=n.display.externalMeasured;return a&&a.line==i.line?(n.display.externalMeasured=null,i.measure=a.measure,a.built):sg(n,i)}function ck(n,i){var a=i.text.className,l=ug(n,i);i.text==i.node&&(i.node=l.pre),i.text.parentNode.replaceChild(l.pre,i.text),i.text=l.pre,l.bgClass!=i.bgClass||l.textClass!=i.textClass?(i.bgClass=l.bgClass,i.textClass=l.textClass,Tf(n,i)):a&&(i.text.className=a)}function Tf(n,i){ak(n,i),i.line.wrapClass?hl(i).className=i.line.wrapClass:i.node!=i.text&&(i.node.className="");var a=i.textClass?i.textClass+" "+(i.line.textClass||""):i.line.textClass;i.text.className=a||""}function fg(n,i,a,l){if(i.gutter&&(i.node.removeChild(i.gutter),i.gutter=null),i.gutterBackground&&(i.node.removeChild(i.gutterBackground),i.gutterBackground=null),i.line.gutterClass){var u=hl(i);i.gutterBackground=k("div",null,"CodeMirror-gutter-background "+i.line.gutterClass,"left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px; width: "+l.gutterTotalWidth+"px"),n.display.input.setUneditable(i.gutterBackground),u.insertBefore(i.gutterBackground,i.text)}var m=i.line.gutterMarkers;if(n.options.lineNumbers||m){var y=hl(i),x=i.gutter=k("div",null,"CodeMirror-gutter-wrapper","left: "+(n.options.fixedGutter?l.fixedPos:-l.gutterTotalWidth)+"px");if(x.setAttribute("aria-hidden","true"),n.display.input.setUneditable(x),y.insertBefore(x,i.text),i.line.gutterClass&&(x.className+=" "+i.line.gutterClass),n.options.lineNumbers&&(!m||!m["CodeMirror-linenumbers"])&&(i.lineNumber=x.appendChild(k("div",_e(n.options,a),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+l.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+n.display.lineNumInnerWidth+"px"))),m)for(var S=0;S<n.display.gutterSpecs.length;++S){var T=n.display.gutterSpecs[S].className,H=m.hasOwnProperty(T)&&m[T];H&&x.appendChild(k("div",[H],"CodeMirror-gutter-elt","left: "+l.gutterLeft[T]+"px; width: "+l.gutterWidth[T]+"px"))}}}function uk(n,i,a){i.alignable&&(i.alignable=null);for(var l=j("CodeMirror-linewidget"),u=i.node.firstChild,m=void 0;u;u=m)m=u.nextSibling,l.test(u.className)&&i.node.removeChild(u);dg(n,i,a)}function fk(n,i,a,l){var u=ug(n,i);return i.text=i.node=u.pre,u.bgClass&&(i.bgClass=u.bgClass),u.textClass&&(i.textClass=u.textClass),Tf(n,i),fg(n,i,a,l),dg(n,i,l),i.node}function dg(n,i,a){if(hg(n,i.line,i,a,!0),i.rest)for(var l=0;l<i.rest.length;l++)hg(n,i.rest[l],i,a,!1)}function hg(n,i,a,l,u){if(i.widgets)for(var m=hl(a),y=0,x=i.widgets;y<x.length;++y){var S=x[y],T=k("div",[S.node],"CodeMirror-linewidget"+(S.className?" "+S.className:""));S.handleMouseEvents||T.setAttribute("cm-ignore-events","true"),dk(S,T,a,l),n.display.input.setUneditable(T),u&&S.above?m.insertBefore(T,a.gutter||a.text):m.appendChild(T),Jt(S,"redraw")}}function dk(n,i,a,l){if(n.noHScroll){(a.alignable||(a.alignable=[])).push(i);var u=l.wrapperWidth;i.style.left=l.fixedPos+"px",n.coverGutter||(u-=l.gutterTotalWidth,i.style.paddingLeft=l.gutterTotalWidth+"px"),i.style.width=u+"px"}n.coverGutter&&(i.style.zIndex=5,i.style.position="relative",n.noHScroll||(i.style.marginLeft=-l.gutterTotalWidth+"px"))}function pl(n){if(n.height!=null)return n.height;var i=n.doc.cm;if(!i)return 0;if(!ce(document.body,n.node)){var a="position: relative;";n.coverGutter&&(a+="margin-left: -"+i.display.gutters.offsetWidth+"px;"),n.noHScroll&&(a+="width: "+i.display.wrapper.clientWidth+"px;"),C(i.display.measure,k("div",[n.node],null,a))}return n.height=n.node.parentNode.offsetHeight}function li(n,i){for(var a=sl(i);a!=n.wrapper;a=a.parentNode)if(!a||a.nodeType==1&&a.getAttribute("cm-ignore-events")=="true"||a.parentNode==n.sizer&&a!=n.mover)return!0}function nc(n){return n.lineSpace.offsetTop}function Cf(n){return n.mover.offsetHeight-n.lineSpace.offsetHeight}function pg(n){if(n.cachedPaddingH)return n.cachedPaddingH;var i=C(n.measure,k("pre","x","CodeMirror-line-like")),a=window.getComputedStyle?window.getComputedStyle(i):i.currentStyle,l={left:parseInt(a.paddingLeft),right:parseInt(a.paddingRight)};return!isNaN(l.left)&&!isNaN(l.right)&&(n.cachedPaddingH=l),l}function qr(n){return D-n.display.nativeBarWidth}function wo(n){return n.display.scroller.clientWidth-qr(n)-n.display.barWidth}function Ef(n){return n.display.scroller.clientHeight-qr(n)-n.display.barHeight}function hk(n,i,a){var l=n.options.lineWrapping,u=l&&wo(n);if(!i.measure.heights||l&&i.measure.width!=u){var m=i.measure.heights=[];if(l){i.measure.width=u;for(var y=i.text.firstChild.getClientRects(),x=0;x<y.length-1;x++){var S=y[x],T=y[x+1];Math.abs(S.bottom-T.bottom)>2&&m.push((S.bottom+T.top)/2-a.top)}}m.push(a.bottom-a.top)}}function gg(n,i,a){if(n.line==i)return{map:n.measure.map,cache:n.measure.cache};if(n.rest){for(var l=0;l<n.rest.length;l++)if(n.rest[l]==i)return{map:n.measure.maps[l],cache:n.measure.caches[l]};for(var u=0;u<n.rest.length;u++)if(A(n.rest[u])>a)return{map:n.measure.maps[u],cache:n.measure.caches[u],before:!0}}}function pk(n,i){i=Sr(i);var a=A(i),l=n.display.externalMeasured=new ag(n.doc,i,a);l.lineN=a;var u=l.built=sg(n,l);return l.text=u.pre,C(n.display.lineMeasure,u.pre),l}function mg(n,i,a,l){return jr(n,ls(n,i),a,l)}function Af(n,i){if(i>=n.display.viewFrom&&i<n.display.viewTo)return n.display.view[So(n,i)];var a=n.display.externalMeasured;if(a&&i>=a.lineN&&i<a.lineN+a.size)return a}function ls(n,i){var a=A(i),l=Af(n,a);l&&!l.text?l=null:l&&l.changes&&(cg(n,l,a,Pf(n)),n.curOp.forceUpdate=!0),l||(l=pk(n,i));var u=gg(l,i,a);return{line:i,view:l,rect:null,map:u.map,cache:u.cache,before:u.before,hasHeights:!1}}function jr(n,i,a,l,u){i.before&&(a=-1);var m=a+(l||""),y;return i.cache.hasOwnProperty(m)?y=i.cache[m]:(i.rect||(i.rect=i.view.text.getBoundingClientRect()),i.hasHeights||(hk(n,i.view,i.rect),i.hasHeights=!0),y=mk(n,i,a,l),y.bogus||(i.cache[m]=y)),{left:y.left,right:y.right,top:u?y.rtop:y.top,bottom:u?y.rbottom:y.bottom}}var vg={left:0,right:0,top:0,bottom:0};function yg(n,i,a){for(var l,u,m,y,x,S,T=0;T<n.length;T+=3)if(x=n[T],S=n[T+1],i<x?(u=0,m=1,y="left"):i<S?(u=i-x,m=u+1):(T==n.length-3||i==S&&n[T+3]>i)&&(m=S-x,u=m-1,i>=S&&(y="right")),u!=null){if(l=n[T+2],x==S&&a==(l.insertLeft?"left":"right")&&(y=a),a=="left"&&u==0)for(;T&&n[T-2]==n[T-3]&&n[T-1].insertLeft;)l=n[(T-=3)+2],y="left";if(a=="right"&&u==S-x)for(;T<n.length-3&&n[T+3]==n[T+4]&&!n[T+5].insertLeft;)l=n[(T+=3)+2],y="right";break}return{node:l,start:u,end:m,collapse:y,coverStart:x,coverEnd:S}}function gk(n,i){var a=vg;if(i=="left")for(var l=0;l<n.length&&(a=n[l]).left==a.right;l++);else for(var u=n.length-1;u>=0&&(a=n[u]).left==a.right;u--);return a}function mk(n,i,a,l){var u=yg(i.map,a,l),m=u.node,y=u.start,x=u.end,S=u.collapse,T;if(m.nodeType==3){for(var H=0;H<4;H++){for(;y&&ut(i.line.text.charAt(u.coverStart+y));)--y;for(;u.coverStart+x<u.coverEnd&&ut(i.line.text.charAt(u.coverStart+x));)++x;if(h&&p<9&&y==0&&x==u.coverEnd-u.coverStart?T=m.parentNode.getBoundingClientRect():T=gk(B(m,y,x).getClientRects(),l),T.left||T.right||y==0)break;x=y,y=y-1,S="right"}h&&p<11&&(T=vk(n.display.measure,T))}else{y>0&&(S=l="right");var V;n.options.lineWrapping&&(V=m.getClientRects()).length>1?T=V[l=="right"?V.length-1:0]:T=m.getBoundingClientRect()}if(h&&p<9&&!y&&(!T||!T.left&&!T.right)){var se=m.parentNode.getClientRects()[0];se?T={left:se.left,right:se.left+cs(n.display),top:se.top,bottom:se.bottom}:T=vg}for(var te=T.top-i.rect.top,pe=T.bottom-i.rect.top,we=(te+pe)/2,Te=i.view.measure.heights,Le=0;Le<Te.length-1&&!(we<Te[Le]);Le++);var De=Le?Te[Le-1]:0,Me=Te[Le],ze={left:(S=="right"?T.right:T.left)-i.rect.left,right:(S=="left"?T.left:T.right)-i.rect.left,top:De,bottom:Me};return!T.left&&!T.right&&(ze.bogus=!0),n.options.singleCursorHeightPerLine||(ze.rtop=te,ze.rbottom=pe),ze}function vk(n,i){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!vf(n))return i;var a=screen.logicalXDPI/screen.deviceXDPI,l=screen.logicalYDPI/screen.deviceYDPI;return{left:i.left*a,right:i.right*a,top:i.top*l,bottom:i.bottom*l}}function bg(n){if(n.measure&&(n.measure.cache={},n.measure.heights=null,n.rest))for(var i=0;i<n.rest.length;i++)n.measure.caches[i]={}}function wg(n){n.display.externalMeasure=null,O(n.display.lineMeasure);for(var i=0;i<n.display.view.length;i++)bg(n.display.view[i])}function gl(n){wg(n),n.display.cachedCharWidth=n.display.cachedTextHeight=n.display.cachedPaddingH=null,n.options.lineWrapping||(n.display.maxLineChanged=!0),n.display.lineNumChars=null}function xg(n){return b&&I?-(n.body.getBoundingClientRect().left-parseInt(getComputedStyle(n.body).marginLeft)):n.defaultView.pageXOffset||(n.documentElement||n.body).scrollLeft}function kg(n){return b&&I?-(n.body.getBoundingClientRect().top-parseInt(getComputedStyle(n.body).marginTop)):n.defaultView.pageYOffset||(n.documentElement||n.body).scrollTop}function Lf(n){var i=Sr(n),a=i.widgets,l=0;if(a)for(var u=0;u<a.length;++u)a[u].above&&(l+=pl(a[u]));return l}function rc(n,i,a,l,u){if(!u){var m=Lf(i);a.top+=m,a.bottom+=m}if(l=="line")return a;l||(l="local");var y=si(i);if(l=="local"?y+=nc(n.display):y-=n.display.viewOffset,l=="page"||l=="window"){var x=n.display.lineSpace.getBoundingClientRect();y+=x.top+(l=="window"?0:kg(Ke(n)));var S=x.left+(l=="window"?0:xg(Ke(n)));a.left+=S,a.right+=S}return a.top+=y,a.bottom+=y,a}function Sg(n,i,a){if(a=="div")return i;var l=i.left,u=i.top;if(a=="page")l-=xg(Ke(n)),u-=kg(Ke(n));else if(a=="local"||!a){var m=n.display.sizer.getBoundingClientRect();l+=m.left,u+=m.top}var y=n.display.lineSpace.getBoundingClientRect();return{left:l-y.left,top:u-y.top}}function ic(n,i,a,l,u){return l||(l=qe(n.doc,i.line)),rc(n,l,mg(n,l,i.ch,u),a)}function _r(n,i,a,l,u,m){l=l||qe(n.doc,i.line),u||(u=ls(n,l));function y(pe,we){var Te=jr(n,u,pe,we?"right":"left",m);return we?Te.left=Te.right:Te.right=Te.left,rc(n,l,Te,a)}var x=lt(l,n.doc.direction),S=i.ch,T=i.sticky;if(S>=l.text.length?(S=l.text.length,T="before"):S<=0&&(S=0,T="after"),!x)return y(T=="before"?S-1:S,T=="before");function H(pe,we,Te){var Le=x[we],De=Le.level==1;return y(Te?pe-1:pe,De!=Te)}var V=Bt(x,S,T),se=Hr,te=H(S,V,T=="before");return se!=null&&(te.other=H(S,se,T!="before")),te}function _g(n,i){var a=0;i=tt(n.doc,i),n.options.lineWrapping||(a=cs(n.display)*i.ch);var l=qe(n.doc,i.line),u=si(l)+nc(n.display);return{left:a,right:a,top:u,bottom:u+l.height}}function Mf(n,i,a,l,u){var m=fe(n,i,a);return m.xRel=u,l&&(m.outside=l),m}function Nf(n,i,a){var l=n.doc;if(a+=n.display.viewOffset,a<0)return Mf(l.first,0,null,-1,-1);var u=U(l,a),m=l.first+l.size-1;if(u>m)return Mf(l.first+l.size-1,qe(l,m).text.length,null,1,1);i<0&&(i=0);for(var y=qe(l,u);;){var x=yk(n,y,u,i,a),S=V1(y,x.ch+(x.xRel>0||x.outside>0?1:0));if(!S)return x;var T=S.find(1);if(T.line==u)return T;y=qe(l,u=T.line)}}function Tg(n,i,a,l){l-=Lf(i);var u=i.text.length,m=jt(function(y){return jr(n,a,y-1).bottom<=l},u,0);return u=jt(function(y){return jr(n,a,y).top>l},m,u),{begin:m,end:u}}function Cg(n,i,a,l){a||(a=ls(n,i));var u=rc(n,i,jr(n,a,l),"line").top;return Tg(n,i,a,u)}function Of(n,i,a,l){return n.bottom<=a?!1:n.top>a?!0:(l?n.left:n.right)>i}function yk(n,i,a,l,u){u-=si(i);var m=ls(n,i),y=Lf(i),x=0,S=i.text.length,T=!0,H=lt(i,n.doc.direction);if(H){var V=(n.options.lineWrapping?wk:bk)(n,i,a,m,H,l,u);T=V.level!=1,x=T?V.from:V.to-1,S=T?V.to:V.from-1}var se=null,te=null,pe=jt(function(Ye){var Ue=jr(n,m,Ye);return Ue.top+=y,Ue.bottom+=y,Of(Ue,l,u,!1)?(Ue.top<=u&&Ue.left<=l&&(se=Ye,te=Ue),!0):!1},x,S),we,Te,Le=!1;if(te){var De=l-te.left<te.right-l,Me=De==T;pe=se+(Me?0:1),Te=Me?"after":"before",we=De?te.left:te.right}else{!T&&(pe==S||pe==x)&&pe++,Te=pe==0?"after":pe==i.text.length?"before":jr(n,m,pe-(T?1:0)).bottom+y<=u==T?"after":"before";var ze=_r(n,fe(a,pe,Te),"line",i,m);we=ze.left,Le=u<ze.top?-1:u>=ze.bottom?1:0}return pe=Yt(i.text,pe,1),Mf(a,pe,Te,Le,l-we)}function bk(n,i,a,l,u,m,y){var x=jt(function(V){var se=u[V],te=se.level!=1;return Of(_r(n,fe(a,te?se.to:se.from,te?"before":"after"),"line",i,l),m,y,!0)},0,u.length-1),S=u[x];if(x>0){var T=S.level!=1,H=_r(n,fe(a,T?S.from:S.to,T?"after":"before"),"line",i,l);Of(H,m,y,!0)&&H.top>y&&(S=u[x-1])}return S}function wk(n,i,a,l,u,m,y){var x=Tg(n,i,l,y),S=x.begin,T=x.end;/\s/.test(i.text.charAt(T-1))&&T--;for(var H=null,V=null,se=0;se<u.length;se++){var te=u[se];if(!(te.from>=T||te.to<=S)){var pe=te.level!=1,we=jr(n,l,pe?Math.min(T,te.to)-1:Math.max(S,te.from)).right,Te=we<m?m-we+1e9:we-m;(!H||V>Te)&&(H=te,V=Te)}}return H||(H=u[u.length-1]),H.from<S&&(H={from:S,to:H.to,level:H.level}),H.to>T&&(H={from:H.from,to:T,level:H.level}),H}var xo;function as(n){if(n.cachedTextHeight!=null)return n.cachedTextHeight;if(xo==null){xo=k("pre",null,"CodeMirror-line-like");for(var i=0;i<49;++i)xo.appendChild(document.createTextNode("x")),xo.appendChild(k("br"));xo.appendChild(document.createTextNode("x"))}C(n.measure,xo);var a=xo.offsetHeight/50;return a>3&&(n.cachedTextHeight=a),O(n.measure),a||1}function cs(n){if(n.cachedCharWidth!=null)return n.cachedCharWidth;var i=k("span","xxxxxxxxxx"),a=k("pre",[i],"CodeMirror-line-like");C(n.measure,a);var l=i.getBoundingClientRect(),u=(l.right-l.left)/10;return u>2&&(n.cachedCharWidth=u),u||10}function Pf(n){for(var i=n.display,a={},l={},u=i.gutters.clientLeft,m=i.gutters.firstChild,y=0;m;m=m.nextSibling,++y){var x=n.display.gutterSpecs[y].className;a[x]=m.offsetLeft+m.clientLeft+u,l[x]=m.clientWidth}return{fixedPos:Rf(i),gutterTotalWidth:i.gutters.offsetWidth,gutterLeft:a,gutterWidth:l,wrapperWidth:i.wrapper.clientWidth}}function Rf(n){return n.scroller.getBoundingClientRect().left-n.sizer.getBoundingClientRect().left}function Eg(n){var i=as(n.display),a=n.options.lineWrapping,l=a&&Math.max(5,n.display.scroller.clientWidth/cs(n.display)-3);return function(u){if(Ii(n.doc,u))return 0;var m=0;if(u.widgets)for(var y=0;y<u.widgets.length;y++)u.widgets[y].height&&(m+=u.widgets[y].height);return a?m+(Math.ceil(u.text.length/l)||1)*i:m+i}}function $f(n){var i=n.doc,a=Eg(n);i.iter(function(l){var u=a(l);u!=l.height&&Qn(l,u)})}function ko(n,i,a,l){var u=n.display;if(!a&&sl(i).getAttribute("cm-not-content")=="true")return null;var m,y,x=u.lineSpace.getBoundingClientRect();try{m=i.clientX-x.left,y=i.clientY-x.top}catch{return null}var S=Nf(n,m,y),T;if(l&&S.xRel>0&&(T=qe(n.doc,S.line).text).length==S.ch){var H=re(T,T.length,n.options.tabSize)-T.length;S=fe(S.line,Math.max(0,Math.round((m-pg(n.display).left)/cs(n.display))-H))}return S}function So(n,i){if(i>=n.display.viewTo||(i-=n.display.viewFrom,i<0))return null;for(var a=n.display.view,l=0;l<a.length;l++)if(i-=a[l].size,i<0)return l}function _n(n,i,a,l){i==null&&(i=n.doc.first),a==null&&(a=n.doc.first+n.doc.size),l||(l=0);var u=n.display;if(l&&a<u.viewTo&&(u.updateLineNumbers==null||u.updateLineNumbers>i)&&(u.updateLineNumbers=i),n.curOp.viewChanged=!0,i>=u.viewTo)oi&&kf(n.doc,i)<u.viewTo&&zi(n);else if(a<=u.viewFrom)oi&&ig(n.doc,a+l)>u.viewFrom?zi(n):(u.viewFrom+=l,u.viewTo+=l);else if(i<=u.viewFrom&&a>=u.viewTo)zi(n);else if(i<=u.viewFrom){var m=oc(n,a,a+l,1);m?(u.view=u.view.slice(m.index),u.viewFrom=m.lineN,u.viewTo+=l):zi(n)}else if(a>=u.viewTo){var y=oc(n,i,i,-1);y?(u.view=u.view.slice(0,y.index),u.viewTo=y.lineN):zi(n)}else{var x=oc(n,i,i,-1),S=oc(n,a,a+l,1);x&&S?(u.view=u.view.slice(0,x.index).concat(tc(n,x.lineN,S.lineN)).concat(u.view.slice(S.index)),u.viewTo+=l):zi(n)}var T=u.externalMeasured;T&&(a<T.lineN?T.lineN+=l:i<T.lineN+T.size&&(u.externalMeasured=null))}function Di(n,i,a){n.curOp.viewChanged=!0;var l=n.display,u=n.display.externalMeasured;if(u&&i>=u.lineN&&i<u.lineN+u.size&&(l.externalMeasured=null),!(i<l.viewFrom||i>=l.viewTo)){var m=l.view[So(n,i)];if(m.node!=null){var y=m.changes||(m.changes=[]);ae(y,a)==-1&&y.push(a)}}}function zi(n){n.display.viewFrom=n.display.viewTo=n.doc.first,n.display.view=[],n.display.viewOffset=0}function oc(n,i,a,l){var u=So(n,i),m,y=n.display.view;if(!oi||a==n.doc.first+n.doc.size)return{index:u,lineN:a};for(var x=n.display.viewFrom,S=0;S<u;S++)x+=y[S].size;if(x!=i){if(l>0){if(u==y.length-1)return null;m=x+y[u].size-i,u++}else m=x-i;i+=m,a+=m}for(;kf(n.doc,a)!=a;){if(u==(l<0?0:y.length-1))return null;a+=l*y[u-(l<0?1:0)].size,u+=l}return{index:u,lineN:a}}function xk(n,i,a){var l=n.display,u=l.view;u.length==0||i>=l.viewTo||a<=l.viewFrom?(l.view=tc(n,i,a),l.viewFrom=i):(l.viewFrom>i?l.view=tc(n,i,l.viewFrom).concat(l.view):l.viewFrom<i&&(l.view=l.view.slice(So(n,i))),l.viewFrom=i,l.viewTo<a?l.view=l.view.concat(tc(n,l.viewTo,a)):l.viewTo>a&&(l.view=l.view.slice(0,So(n,a)))),l.viewTo=a}function Ag(n){for(var i=n.display.view,a=0,l=0;l<i.length;l++){var u=i[l];!u.hidden&&(!u.node||u.changes)&&++a}return a}function ml(n){n.display.input.showSelection(n.display.input.prepareSelection())}function Lg(n,i){i===void 0&&(i=!0);var a=n.doc,l={},u=l.cursors=document.createDocumentFragment(),m=l.selection=document.createDocumentFragment(),y=n.options.$customCursor;y&&(i=!0);for(var x=0;x<a.sel.ranges.length;x++)if(!(!i&&x==a.sel.primIndex)){var S=a.sel.ranges[x];if(!(S.from().line>=n.display.viewTo||S.to().line<n.display.viewFrom)){var T=S.empty();if(y){var H=y(n,S);H&&If(n,H,u)}else(T||n.options.showCursorWhenSelecting)&&If(n,S.head,u);T||kk(n,S,m)}}return l}function If(n,i,a){var l=_r(n,i,"div",null,null,!n.options.singleCursorHeightPerLine),u=a.appendChild(k("div"," ","CodeMirror-cursor"));if(u.style.left=l.left+"px",u.style.top=l.top+"px",u.style.height=Math.max(0,l.bottom-l.top)*n.options.cursorHeight+"px",/\bcm-fat-cursor\b/.test(n.getWrapperElement().className)){var m=ic(n,i,"div",null,null),y=m.right-m.left;u.style.width=(y>0?y:n.defaultCharWidth())+"px"}if(l.other){var x=a.appendChild(k("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));x.style.display="",x.style.left=l.other.left+"px",x.style.top=l.other.top+"px",x.style.height=(l.other.bottom-l.other.top)*.85+"px"}}function sc(n,i){return n.top-i.top||n.left-i.left}function kk(n,i,a){var l=n.display,u=n.doc,m=document.createDocumentFragment(),y=pg(n.display),x=y.left,S=Math.max(l.sizerWidth,wo(n)-l.sizer.offsetLeft)-y.right,T=u.direction=="ltr";function H(Me,ze,Ye,Ue){ze<0&&(ze=0),ze=Math.round(ze),Ue=Math.round(Ue),m.appendChild(k("div",null,"CodeMirror-selected","position: absolute; left: "+Me+`px; |
| 24 | top: `+ze+"px; width: "+(Ye??S-Me)+`px; |
| 25 | height: `+(Ue-ze)+"px"))}function V(Me,ze,Ye){var Ue=qe(u,Me),st=Ue.text.length,St,tn;function Ot(Ut,En){return ic(n,fe(Me,Ut),"div",Ue,En)}function qn(Ut,En,sn){var Kt=Cg(n,Ue,null,Ut),Vt=En=="ltr"==(sn=="after")?"left":"right",It=sn=="after"?Kt.begin:Kt.end-(/\s/.test(Ue.text.charAt(Kt.end-1))?2:1);return Ot(It,Vt)[Vt]}var Cn=lt(Ue,u.direction);return Fn(Cn,ze||0,Ye??st,function(Ut,En,sn,Kt){var Vt=sn=="ltr",It=Ot(Ut,Vt?"left":"right"),An=Ot(En-1,Vt?"right":"left"),ks=ze==null&&Ut==0,ji=Ye==null&&En==st,fn=Kt==0,Ur=!Cn||Kt==Cn.length-1;if(An.top-It.top<=3){var nn=(T?ks:ji)&&fn,cd=(T?ji:ks)&&Ur,ui=nn?x:(Vt?It:An).left,Ao=cd?S:(Vt?An:It).right;H(ui,It.top,Ao-ui,It.bottom)}else{var Lo,yn,Ss,ud;Vt?(Lo=T&&ks&&fn?x:It.left,yn=T?S:qn(Ut,sn,"before"),Ss=T?x:qn(En,sn,"after"),ud=T&&ji&&Ur?S:An.right):(Lo=T?qn(Ut,sn,"before"):x,yn=!T&&ks&&fn?S:It.right,Ss=!T&&ji&&Ur?x:An.left,ud=T?qn(En,sn,"after"):S),H(Lo,It.top,yn-Lo,It.bottom),It.bottom<An.top&&H(x,It.bottom,null,An.top),H(Ss,An.top,ud-Ss,An.bottom)}(!St||sc(It,St)<0)&&(St=It),sc(An,St)<0&&(St=An),(!tn||sc(It,tn)<0)&&(tn=It),sc(An,tn)<0&&(tn=An)}),{start:St,end:tn}}var se=i.from(),te=i.to();if(se.line==te.line)V(se.line,se.ch,te.ch);else{var pe=qe(u,se.line),we=qe(u,te.line),Te=Sr(pe)==Sr(we),Le=V(se.line,se.ch,Te?pe.text.length+1:null).end,De=V(te.line,Te?0:null,te.ch).start;Te&&(Le.top<De.top-2?(H(Le.right,Le.top,null,Le.bottom),H(x,De.top,De.left,De.bottom)):H(Le.right,Le.top,De.left-Le.right,Le.bottom)),Le.bottom<De.top&&H(x,Le.bottom,null,De.top)}a.appendChild(m)}function Df(n){if(n.state.focused){var i=n.display;clearInterval(i.blinker);var a=!0;i.cursorDiv.style.visibility="",n.options.cursorBlinkRate>0?i.blinker=setInterval(function(){n.hasFocus()||us(n),i.cursorDiv.style.visibility=(a=!a)?"":"hidden"},n.options.cursorBlinkRate):n.options.cursorBlinkRate<0&&(i.cursorDiv.style.visibility="hidden")}}function Mg(n){n.hasFocus()||(n.display.input.focus(),n.state.focused||Ff(n))}function zf(n){n.state.delayingBlurEvent=!0,setTimeout(function(){n.state.delayingBlurEvent&&(n.state.delayingBlurEvent=!1,n.state.focused&&us(n))},100)}function Ff(n,i){n.state.delayingBlurEvent&&!n.state.draggingText&&(n.state.delayingBlurEvent=!1),n.options.readOnly!="nocursor"&&(n.state.focused||(Pt(n,"focus",n,i),n.state.focused=!0,Se(n.display.wrapper,"CodeMirror-focused"),!n.curOp&&n.display.selForContextMenu!=n.doc.sel&&(n.display.input.reset(),g&&setTimeout(function(){return n.display.input.reset(!0)},20)),n.display.input.receivedFocus()),Df(n))}function us(n,i){n.state.delayingBlurEvent||(n.state.focused&&(Pt(n,"blur",n,i),n.state.focused=!1,N(n.display.wrapper,"CodeMirror-focused")),clearInterval(n.display.blinker),setTimeout(function(){n.state.focused||(n.display.shift=!1)},150))}function lc(n){for(var i=n.display,a=i.lineDiv.offsetTop,l=Math.max(0,i.scroller.getBoundingClientRect().top),u=i.lineDiv.getBoundingClientRect().top,m=0,y=0;y<i.view.length;y++){var x=i.view[y],S=n.options.lineWrapping,T=void 0,H=0;if(!x.hidden){if(u+=x.line.height,h&&p<8){var V=x.node.offsetTop+x.node.offsetHeight;T=V-a,a=V}else{var se=x.node.getBoundingClientRect();T=se.bottom-se.top,!S&&x.text.firstChild&&(H=x.text.firstChild.getBoundingClientRect().right-se.left-1)}var te=x.line.height-T;if((te>.005||te<-.005)&&(u<l&&(m-=te),Qn(x.line,T),Ng(x.line),x.rest))for(var pe=0;pe<x.rest.length;pe++)Ng(x.rest[pe]);if(H>n.display.sizerWidth){var we=Math.ceil(H/cs(n.display));we>n.display.maxLineLength&&(n.display.maxLineLength=we,n.display.maxLine=x.line,n.display.maxLineChanged=!0)}}}Math.abs(m)>2&&(i.scroller.scrollTop+=m)}function Ng(n){if(n.widgets)for(var i=0;i<n.widgets.length;++i){var a=n.widgets[i],l=a.node.parentNode;l&&(a.height=l.offsetHeight)}}function ac(n,i,a){var l=a&&a.top!=null?Math.max(0,a.top):n.scroller.scrollTop;l=Math.floor(l-nc(n));var u=a&&a.bottom!=null?a.bottom:l+n.wrapper.clientHeight,m=U(i,l),y=U(i,u);if(a&&a.ensure){var x=a.ensure.from.line,S=a.ensure.to.line;x<m?(m=x,y=U(i,si(qe(i,x))+n.wrapper.clientHeight)):Math.min(S,i.lastLine())>=y&&(m=U(i,si(qe(i,S))-n.wrapper.clientHeight),y=S)}return{from:m,to:Math.max(y,m+1)}}function Sk(n,i){if(!Rt(n,"scrollCursorIntoView")){var a=n.display,l=a.sizer.getBoundingClientRect(),u=null,m=a.wrapper.ownerDocument;if(i.top+l.top<0?u=!0:i.bottom+l.top>(m.defaultView.innerHeight||m.documentElement.clientHeight)&&(u=!1),u!=null&&!M){var y=k("div","",null,`position: absolute; |
| 26 | top: `+(i.top-a.viewOffset-nc(n.display))+`px; |
| 27 | height: `+(i.bottom-i.top+qr(n)+a.barHeight)+`px; |
| 28 | left: `+i.left+"px; width: "+Math.max(2,i.right-i.left)+"px;");n.display.lineSpace.appendChild(y),y.scrollIntoView(u),n.display.lineSpace.removeChild(y)}}}function _k(n,i,a,l){l==null&&(l=0);var u;!n.options.lineWrapping&&i==a&&(a=i.sticky=="before"?fe(i.line,i.ch+1,"before"):i,i=i.ch?fe(i.line,i.sticky=="before"?i.ch-1:i.ch,"after"):i);for(var m=0;m<5;m++){var y=!1,x=_r(n,i),S=!a||a==i?x:_r(n,a);u={left:Math.min(x.left,S.left),top:Math.min(x.top,S.top)-l,right:Math.max(x.left,S.left),bottom:Math.max(x.bottom,S.bottom)+l};var T=Hf(n,u),H=n.doc.scrollTop,V=n.doc.scrollLeft;if(T.scrollTop!=null&&(yl(n,T.scrollTop),Math.abs(n.doc.scrollTop-H)>1&&(y=!0)),T.scrollLeft!=null&&(_o(n,T.scrollLeft),Math.abs(n.doc.scrollLeft-V)>1&&(y=!0)),!y)break}return u}function Tk(n,i){var a=Hf(n,i);a.scrollTop!=null&&yl(n,a.scrollTop),a.scrollLeft!=null&&_o(n,a.scrollLeft)}function Hf(n,i){var a=n.display,l=as(n.display);i.top<0&&(i.top=0);var u=n.curOp&&n.curOp.scrollTop!=null?n.curOp.scrollTop:a.scroller.scrollTop,m=Ef(n),y={};i.bottom-i.top>m&&(i.bottom=i.top+m);var x=n.doc.height+Cf(a),S=i.top<l,T=i.bottom>x-l;if(i.top<u)y.scrollTop=S?0:i.top;else if(i.bottom>u+m){var H=Math.min(i.top,(T?x:i.bottom)-m);H!=u&&(y.scrollTop=H)}var V=n.options.fixedGutter?0:a.gutters.offsetWidth,se=n.curOp&&n.curOp.scrollLeft!=null?n.curOp.scrollLeft:a.scroller.scrollLeft-V,te=wo(n)-a.gutters.offsetWidth,pe=i.right-i.left>te;return pe&&(i.right=i.left+te),i.left<10?y.scrollLeft=0:i.left<se?y.scrollLeft=Math.max(0,i.left+V-(pe?0:10)):i.right>te+se-3&&(y.scrollLeft=i.right+(pe?0:10)-te),y}function Bf(n,i){i!=null&&(cc(n),n.curOp.scrollTop=(n.curOp.scrollTop==null?n.doc.scrollTop:n.curOp.scrollTop)+i)}function fs(n){cc(n);var i=n.getCursor();n.curOp.scrollToPos={from:i,to:i,margin:n.options.cursorScrollMargin}}function vl(n,i,a){(i!=null||a!=null)&&cc(n),i!=null&&(n.curOp.scrollLeft=i),a!=null&&(n.curOp.scrollTop=a)}function Ck(n,i){cc(n),n.curOp.scrollToPos=i}function cc(n){var i=n.curOp.scrollToPos;if(i){n.curOp.scrollToPos=null;var a=_g(n,i.from),l=_g(n,i.to);Og(n,a,l,i.margin)}}function Og(n,i,a,l){var u=Hf(n,{left:Math.min(i.left,a.left),top:Math.min(i.top,a.top)-l,right:Math.max(i.right,a.right),bottom:Math.max(i.bottom,a.bottom)+l});vl(n,u.scrollLeft,u.scrollTop)}function yl(n,i){Math.abs(n.doc.scrollTop-i)<2||(s||qf(n,{top:i}),Pg(n,i,!0),s&&qf(n),xl(n,100))}function Pg(n,i,a){i=Math.max(0,Math.min(n.display.scroller.scrollHeight-n.display.scroller.clientHeight,i)),!(n.display.scroller.scrollTop==i&&!a)&&(n.doc.scrollTop=i,n.display.scrollbars.setScrollTop(i),n.display.scroller.scrollTop!=i&&(n.display.scroller.scrollTop=i))}function _o(n,i,a,l){i=Math.max(0,Math.min(i,n.display.scroller.scrollWidth-n.display.scroller.clientWidth)),!((a?i==n.doc.scrollLeft:Math.abs(n.doc.scrollLeft-i)<2)&&!l)&&(n.doc.scrollLeft=i,zg(n),n.display.scroller.scrollLeft!=i&&(n.display.scroller.scrollLeft=i),n.display.scrollbars.setScrollLeft(i))}function bl(n){var i=n.display,a=i.gutters.offsetWidth,l=Math.round(n.doc.height+Cf(n.display));return{clientHeight:i.scroller.clientHeight,viewHeight:i.wrapper.clientHeight,scrollWidth:i.scroller.scrollWidth,clientWidth:i.scroller.clientWidth,viewWidth:i.wrapper.clientWidth,barLeft:n.options.fixedGutter?a:0,docHeight:l,scrollHeight:l+qr(n)+i.barHeight,nativeBarWidth:i.nativeBarWidth,gutterWidth:a}}var To=function(n,i,a){this.cm=a;var l=this.vert=k("div",[k("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),u=this.horiz=k("div",[k("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");l.tabIndex=u.tabIndex=-1,n(l),n(u),Xe(l,"scroll",function(){l.clientHeight&&i(l.scrollTop,"vertical")}),Xe(u,"scroll",function(){u.clientWidth&&i(u.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,h&&p<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};To.prototype.update=function(n){var i=n.scrollWidth>n.clientWidth+1,a=n.scrollHeight>n.clientHeight+1,l=n.nativeBarWidth;if(a){this.vert.style.display="block",this.vert.style.bottom=i?l+"px":"0";var u=n.viewHeight-(i?l:0);this.vert.firstChild.style.height=Math.max(0,n.scrollHeight-n.clientHeight+u)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(i){this.horiz.style.display="block",this.horiz.style.right=a?l+"px":"0",this.horiz.style.left=n.barLeft+"px";var m=n.viewWidth-n.barLeft-(a?l:0);this.horiz.firstChild.style.width=Math.max(0,n.scrollWidth-n.clientWidth+m)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&n.clientHeight>0&&(l==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:a?l:0,bottom:i?l:0}},To.prototype.setScrollLeft=function(n){this.horiz.scrollLeft!=n&&(this.horiz.scrollLeft=n),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},To.prototype.setScrollTop=function(n){this.vert.scrollTop!=n&&(this.vert.scrollTop=n),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},To.prototype.zeroWidthHack=function(){var n=$&&!P?"12px":"18px";this.horiz.style.height=this.vert.style.width=n,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new le,this.disableVert=new le},To.prototype.enableZeroWidthBar=function(n,i,a){n.style.visibility="";function l(){var u=n.getBoundingClientRect(),m=a=="vert"?document.elementFromPoint(u.right-1,(u.top+u.bottom)/2):document.elementFromPoint((u.right+u.left)/2,u.bottom-1);m!=n?n.style.visibility="hidden":i.set(1e3,l)}i.set(1e3,l)},To.prototype.clear=function(){var n=this.horiz.parentNode;n.removeChild(this.horiz),n.removeChild(this.vert)};var wl=function(){};wl.prototype.update=function(){return{bottom:0,right:0}},wl.prototype.setScrollLeft=function(){},wl.prototype.setScrollTop=function(){},wl.prototype.clear=function(){};function ds(n,i){i||(i=bl(n));var a=n.display.barWidth,l=n.display.barHeight;Rg(n,i);for(var u=0;u<4&&a!=n.display.barWidth||l!=n.display.barHeight;u++)a!=n.display.barWidth&&n.options.lineWrapping&&lc(n),Rg(n,bl(n)),a=n.display.barWidth,l=n.display.barHeight}function Rg(n,i){var a=n.display,l=a.scrollbars.update(i);a.sizer.style.paddingRight=(a.barWidth=l.right)+"px",a.sizer.style.paddingBottom=(a.barHeight=l.bottom)+"px",a.heightForcer.style.borderBottom=l.bottom+"px solid transparent",l.right&&l.bottom?(a.scrollbarFiller.style.display="block",a.scrollbarFiller.style.height=l.bottom+"px",a.scrollbarFiller.style.width=l.right+"px"):a.scrollbarFiller.style.display="",l.bottom&&n.options.coverGutterNextToScrollbar&&n.options.fixedGutter?(a.gutterFiller.style.display="block",a.gutterFiller.style.height=l.bottom+"px",a.gutterFiller.style.width=i.gutterWidth+"px"):a.gutterFiller.style.display=""}var $g={native:To,null:wl};function Ig(n){n.display.scrollbars&&(n.display.scrollbars.clear(),n.display.scrollbars.addClass&&N(n.display.wrapper,n.display.scrollbars.addClass)),n.display.scrollbars=new $g[n.options.scrollbarStyle](function(i){n.display.wrapper.insertBefore(i,n.display.scrollbarFiller),Xe(i,"mousedown",function(){n.state.focused&&setTimeout(function(){return n.display.input.focus()},0)}),i.setAttribute("cm-not-content","true")},function(i,a){a=="horizontal"?_o(n,i):yl(n,i)},n),n.display.scrollbars.addClass&&Se(n.display.wrapper,n.display.scrollbars.addClass)}var Ek=0;function Co(n){n.curOp={cm:n,viewChanged:!1,startHeight:n.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Ek,markArrays:null},ik(n.curOp)}function Eo(n){var i=n.curOp;i&&sk(i,function(a){for(var l=0;l<a.ops.length;l++)a.ops[l].cm.curOp=null;Ak(a)})}function Ak(n){for(var i=n.ops,a=0;a<i.length;a++)Lk(i[a]);for(var l=0;l<i.length;l++)Mk(i[l]);for(var u=0;u<i.length;u++)Nk(i[u]);for(var m=0;m<i.length;m++)Ok(i[m]);for(var y=0;y<i.length;y++)Pk(i[y])}function Lk(n){var i=n.cm,a=i.display;$k(i),n.updateMaxLine&&_f(i),n.mustUpdate=n.viewChanged||n.forceUpdate||n.scrollTop!=null||n.scrollToPos&&(n.scrollToPos.from.line<a.viewFrom||n.scrollToPos.to.line>=a.viewTo)||a.maxLineChanged&&i.options.lineWrapping,n.update=n.mustUpdate&&new uc(i,n.mustUpdate&&{top:n.scrollTop,ensure:n.scrollToPos},n.forceUpdate)}function Mk(n){n.updatedDisplay=n.mustUpdate&&Wf(n.cm,n.update)}function Nk(n){var i=n.cm,a=i.display;n.updatedDisplay&&lc(i),n.barMeasure=bl(i),a.maxLineChanged&&!i.options.lineWrapping&&(n.adjustWidthTo=mg(i,a.maxLine,a.maxLine.text.length).left+3,i.display.sizerWidth=n.adjustWidthTo,n.barMeasure.scrollWidth=Math.max(a.scroller.clientWidth,a.sizer.offsetLeft+n.adjustWidthTo+qr(i)+i.display.barWidth),n.maxScrollLeft=Math.max(0,a.sizer.offsetLeft+n.adjustWidthTo-wo(i))),(n.updatedDisplay||n.selectionChanged)&&(n.preparedSelection=a.input.prepareSelection())}function Ok(n){var i=n.cm;n.adjustWidthTo!=null&&(i.display.sizer.style.minWidth=n.adjustWidthTo+"px",n.maxScrollLeft<i.doc.scrollLeft&&_o(i,Math.min(i.display.scroller.scrollLeft,n.maxScrollLeft),!0),i.display.maxLineChanged=!1);var a=n.focus&&n.focus==be(je(i));n.preparedSelection&&i.display.input.showSelection(n.preparedSelection,a),(n.updatedDisplay||n.startHeight!=i.doc.height)&&ds(i,n.barMeasure),n.updatedDisplay&&Uf(i,n.barMeasure),n.selectionChanged&&Df(i),i.state.focused&&n.updateInput&&i.display.input.reset(n.typing),a&&Mg(n.cm)}function Pk(n){var i=n.cm,a=i.display,l=i.doc;if(n.updatedDisplay&&Dg(i,n.update),a.wheelStartX!=null&&(n.scrollTop!=null||n.scrollLeft!=null||n.scrollToPos)&&(a.wheelStartX=a.wheelStartY=null),n.scrollTop!=null&&Pg(i,n.scrollTop,n.forceScroll),n.scrollLeft!=null&&_o(i,n.scrollLeft,!0,!0),n.scrollToPos){var u=_k(i,tt(l,n.scrollToPos.from),tt(l,n.scrollToPos.to),n.scrollToPos.margin);Sk(i,u)}var m=n.maybeHiddenMarkers,y=n.maybeUnhiddenMarkers;if(m)for(var x=0;x<m.length;++x)m[x].lines.length||Pt(m[x],"hide");if(y)for(var S=0;S<y.length;++S)y[S].lines.length&&Pt(y[S],"unhide");a.wrapper.offsetHeight&&(l.scrollTop=i.display.scroller.scrollTop),n.changeObjs&&Pt(i,"changes",i,n.changeObjs),n.update&&n.update.finish()}function Wn(n,i){if(n.curOp)return i();Co(n);try{return i()}finally{Eo(n)}}function Qt(n,i){return function(){if(n.curOp)return i.apply(n,arguments);Co(n);try{return i.apply(n,arguments)}finally{Eo(n)}}}function vn(n){return function(){if(this.curOp)return n.apply(this,arguments);Co(this);try{return n.apply(this,arguments)}finally{Eo(this)}}}function en(n){return function(){var i=this.cm;if(!i||i.curOp)return n.apply(this,arguments);Co(i);try{return n.apply(this,arguments)}finally{Eo(i)}}}function xl(n,i){n.doc.highlightFrontier<n.display.viewTo&&n.state.highlight.set(i,F(Rk,n))}function Rk(n){var i=n.doc;if(!(i.highlightFrontier>=n.display.viewTo)){var a=+new Date+n.options.workTime,l=ul(n,i.highlightFrontier),u=[];i.iter(l.line,Math.min(i.first+i.size,n.display.viewTo+500),function(m){if(l.line>=n.display.viewFrom){var y=m.styles,x=m.text.length>n.options.maxHighlightLength?Br(i.mode,l.state):null,S=jp(n,m,l,!0);x&&(l.state=x),m.styles=S.styles;var T=m.styleClasses,H=S.classes;H?m.styleClasses=H:T&&(m.styleClasses=null);for(var V=!y||y.length!=m.styles.length||T!=H&&(!T||!H||T.bgClass!=H.bgClass||T.textClass!=H.textClass),se=0;!V&&se<y.length;++se)V=y[se]!=m.styles[se];V&&u.push(l.line),m.stateAfter=l.save(),l.nextLine()}else m.text.length<=n.options.maxHighlightLength&&yf(n,m.text,l),m.stateAfter=l.line%5==0?l.save():null,l.nextLine();if(+new Date>a)return xl(n,n.options.workDelay),!0}),i.highlightFrontier=l.line,i.modeFrontier=Math.max(i.modeFrontier,l.line),u.length&&Wn(n,function(){for(var m=0;m<u.length;m++)Di(n,u[m],"text")})}}var uc=function(n,i,a){var l=n.display;this.viewport=i,this.visible=ac(l,n.doc,i),this.editorIsHidden=!l.wrapper.offsetWidth,this.wrapperHeight=l.wrapper.clientHeight,this.wrapperWidth=l.wrapper.clientWidth,this.oldDisplayWidth=wo(n),this.force=a,this.dims=Pf(n),this.events=[]};uc.prototype.signal=function(n,i){Bn(n,i)&&this.events.push(arguments)},uc.prototype.finish=function(){for(var n=0;n<this.events.length;n++)Pt.apply(null,this.events[n])};function $k(n){var i=n.display;!i.scrollbarsClipped&&i.scroller.offsetWidth&&(i.nativeBarWidth=i.scroller.offsetWidth-i.scroller.clientWidth,i.heightForcer.style.height=qr(n)+"px",i.sizer.style.marginBottom=-i.nativeBarWidth+"px",i.sizer.style.borderRightWidth=qr(n)+"px",i.scrollbarsClipped=!0)}function Ik(n){if(n.hasFocus())return null;var i=be(je(n));if(!i||!ce(n.display.lineDiv,i))return null;var a={activeElt:i};if(window.getSelection){var l=Pe(n).getSelection();l.anchorNode&&l.extend&&ce(n.display.lineDiv,l.anchorNode)&&(a.anchorNode=l.anchorNode,a.anchorOffset=l.anchorOffset,a.focusNode=l.focusNode,a.focusOffset=l.focusOffset)}return a}function Dk(n){if(!(!n||!n.activeElt||n.activeElt==be(Fe(n.activeElt)))&&(n.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(n.activeElt.nodeName)&&n.anchorNode&&ce(document.body,n.anchorNode)&&ce(document.body,n.focusNode))){var i=n.activeElt.ownerDocument,a=i.defaultView.getSelection(),l=i.createRange();l.setEnd(n.anchorNode,n.anchorOffset),l.collapse(!1),a.removeAllRanges(),a.addRange(l),a.extend(n.focusNode,n.focusOffset)}}function Wf(n,i){var a=n.display,l=n.doc;if(i.editorIsHidden)return zi(n),!1;if(!i.force&&i.visible.from>=a.viewFrom&&i.visible.to<=a.viewTo&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo)&&a.renderedView==a.view&&Ag(n)==0)return!1;Fg(n)&&(zi(n),i.dims=Pf(n));var u=l.first+l.size,m=Math.max(i.visible.from-n.options.viewportMargin,l.first),y=Math.min(u,i.visible.to+n.options.viewportMargin);a.viewFrom<m&&m-a.viewFrom<20&&(m=Math.max(l.first,a.viewFrom)),a.viewTo>y&&a.viewTo-y<20&&(y=Math.min(u,a.viewTo)),oi&&(m=kf(n.doc,m),y=ig(n.doc,y));var x=m!=a.viewFrom||y!=a.viewTo||a.lastWrapHeight!=i.wrapperHeight||a.lastWrapWidth!=i.wrapperWidth;xk(n,m,y),a.viewOffset=si(qe(n.doc,a.viewFrom)),n.display.mover.style.top=a.viewOffset+"px";var S=Ag(n);if(!x&&S==0&&!i.force&&a.renderedView==a.view&&(a.updateLineNumbers==null||a.updateLineNumbers>=a.viewTo))return!1;var T=Ik(n);return S>4&&(a.lineDiv.style.display="none"),zk(n,a.updateLineNumbers,i.dims),S>4&&(a.lineDiv.style.display=""),a.renderedView=a.view,Dk(T),O(a.cursorDiv),O(a.selectionDiv),a.gutters.style.height=a.sizer.style.minHeight=0,x&&(a.lastWrapHeight=i.wrapperHeight,a.lastWrapWidth=i.wrapperWidth,xl(n,400)),a.updateLineNumbers=null,!0}function Dg(n,i){for(var a=i.viewport,l=!0;;l=!1){if(!l||!n.options.lineWrapping||i.oldDisplayWidth==wo(n)){if(a&&a.top!=null&&(a={top:Math.min(n.doc.height+Cf(n.display)-Ef(n),a.top)}),i.visible=ac(n.display,n.doc,a),i.visible.from>=n.display.viewFrom&&i.visible.to<=n.display.viewTo)break}else l&&(i.visible=ac(n.display,n.doc,a));if(!Wf(n,i))break;lc(n);var u=bl(n);ml(n),ds(n,u),Uf(n,u),i.force=!1}i.signal(n,"update",n),(n.display.viewFrom!=n.display.reportedViewFrom||n.display.viewTo!=n.display.reportedViewTo)&&(i.signal(n,"viewportChange",n,n.display.viewFrom,n.display.viewTo),n.display.reportedViewFrom=n.display.viewFrom,n.display.reportedViewTo=n.display.viewTo)}function qf(n,i){var a=new uc(n,i);if(Wf(n,a)){lc(n),Dg(n,a);var l=bl(n);ml(n),ds(n,l),Uf(n,l),a.finish()}}function zk(n,i,a){var l=n.display,u=n.options.lineNumbers,m=l.lineDiv,y=m.firstChild;function x(pe){var we=pe.nextSibling;return g&&$&&n.display.currentWheelTarget==pe?pe.style.display="none":pe.parentNode.removeChild(pe),we}for(var S=l.view,T=l.viewFrom,H=0;H<S.length;H++){var V=S[H];if(!V.hidden)if(!V.node||V.node.parentNode!=m){var se=fk(n,V,T,a);m.insertBefore(se,y)}else{for(;y!=V.node;)y=x(y);var te=u&&i!=null&&i<=T&&V.lineNumber;V.changes&&(ae(V.changes,"gutter")>-1&&(te=!1),cg(n,V,T,a)),te&&(O(V.lineNumber),V.lineNumber.appendChild(document.createTextNode(_e(n.options,T)))),y=V.node.nextSibling}T+=V.size}for(;y;)y=x(y)}function jf(n){var i=n.gutters.offsetWidth;n.sizer.style.marginLeft=i+"px",Jt(n,"gutterChanged",n)}function Uf(n,i){n.display.sizer.style.minHeight=i.docHeight+"px",n.display.heightForcer.style.top=i.docHeight+"px",n.display.gutters.style.height=i.docHeight+n.display.barHeight+qr(n)+"px"}function zg(n){var i=n.display,a=i.view;if(!(!i.alignWidgets&&(!i.gutters.firstChild||!n.options.fixedGutter))){for(var l=Rf(i)-i.scroller.scrollLeft+n.doc.scrollLeft,u=i.gutters.offsetWidth,m=l+"px",y=0;y<a.length;y++)if(!a[y].hidden){n.options.fixedGutter&&(a[y].gutter&&(a[y].gutter.style.left=m),a[y].gutterBackground&&(a[y].gutterBackground.style.left=m));var x=a[y].alignable;if(x)for(var S=0;S<x.length;S++)x[S].style.left=m}n.options.fixedGutter&&(i.gutters.style.left=l+u+"px")}}function Fg(n){if(!n.options.lineNumbers)return!1;var i=n.doc,a=_e(n.options,i.first+i.size-1),l=n.display;if(a.length!=l.lineNumChars){var u=l.measure.appendChild(k("div",[k("div",a)],"CodeMirror-linenumber CodeMirror-gutter-elt")),m=u.firstChild.offsetWidth,y=u.offsetWidth-m;return l.lineGutter.style.width="",l.lineNumInnerWidth=Math.max(m,l.lineGutter.offsetWidth-y)+1,l.lineNumWidth=l.lineNumInnerWidth+y,l.lineNumChars=l.lineNumInnerWidth?a.length:-1,l.lineGutter.style.width=l.lineNumWidth+"px",jf(n.display),!0}return!1}function Vf(n,i){for(var a=[],l=!1,u=0;u<n.length;u++){var m=n[u],y=null;if(typeof m!="string"&&(y=m.style,m=m.className),m=="CodeMirror-linenumbers")if(i)l=!0;else continue;a.push({className:m,style:y})}return i&&!l&&a.push({className:"CodeMirror-linenumbers",style:null}),a}function Hg(n){var i=n.gutters,a=n.gutterSpecs;O(i),n.lineGutter=null;for(var l=0;l<a.length;++l){var u=a[l],m=u.className,y=u.style,x=i.appendChild(k("div",null,"CodeMirror-gutter "+m));y&&(x.style.cssText=y),m=="CodeMirror-linenumbers"&&(n.lineGutter=x,x.style.width=(n.lineNumWidth||1)+"px")}i.style.display=a.length?"":"none",jf(n)}function kl(n){Hg(n.display),_n(n),zg(n)}function Fk(n,i,a,l){var u=this;this.input=a,u.scrollbarFiller=k("div",null,"CodeMirror-scrollbar-filler"),u.scrollbarFiller.setAttribute("cm-not-content","true"),u.gutterFiller=k("div",null,"CodeMirror-gutter-filler"),u.gutterFiller.setAttribute("cm-not-content","true"),u.lineDiv=z("div",null,"CodeMirror-code"),u.selectionDiv=k("div",null,null,"position: relative; z-index: 1"),u.cursorDiv=k("div",null,"CodeMirror-cursors"),u.measure=k("div",null,"CodeMirror-measure"),u.lineMeasure=k("div",null,"CodeMirror-measure"),u.lineSpace=z("div",[u.measure,u.lineMeasure,u.selectionDiv,u.cursorDiv,u.lineDiv],null,"position: relative; outline: none");var m=z("div",[u.lineSpace],"CodeMirror-lines");u.mover=k("div",[m],null,"position: relative"),u.sizer=k("div",[u.mover],"CodeMirror-sizer"),u.sizerWidth=null,u.heightForcer=k("div",null,null,"position: absolute; height: "+D+"px; width: 1px;"),u.gutters=k("div",null,"CodeMirror-gutters"),u.lineGutter=null,u.scroller=k("div",[u.sizer,u.heightForcer,u.gutters],"CodeMirror-scroll"),u.scroller.setAttribute("tabIndex","-1"),u.wrapper=k("div",[u.scrollbarFiller,u.gutterFiller,u.scroller],"CodeMirror"),b&&w>=105&&(u.wrapper.style.clipPath="inset(0px)"),u.wrapper.setAttribute("translate","no"),h&&p<8&&(u.gutters.style.zIndex=-1,u.scroller.style.paddingRight=0),!g&&!(s&&_)&&(u.scroller.draggable=!0),n&&(n.appendChild?n.appendChild(u.wrapper):n(u.wrapper)),u.viewFrom=u.viewTo=i.first,u.reportedViewFrom=u.reportedViewTo=i.first,u.view=[],u.renderedView=null,u.externalMeasured=null,u.viewOffset=0,u.lastWrapHeight=u.lastWrapWidth=0,u.updateLineNumbers=null,u.nativeBarWidth=u.barHeight=u.barWidth=0,u.scrollbarsClipped=!1,u.lineNumWidth=u.lineNumInnerWidth=u.lineNumChars=null,u.alignWidgets=!1,u.cachedCharWidth=u.cachedTextHeight=u.cachedPaddingH=null,u.maxLine=null,u.maxLineLength=0,u.maxLineChanged=!1,u.wheelDX=u.wheelDY=u.wheelStartX=u.wheelStartY=null,u.shift=!1,u.selForContextMenu=null,u.activeTouch=null,u.gutterSpecs=Vf(l.gutters,l.lineNumbers),Hg(u),a.init(u)}var fc=0,ai=null;h?ai=-.53:s?ai=15:b?ai=-.7:L&&(ai=-1/3);function Bg(n){var i=n.wheelDeltaX,a=n.wheelDeltaY;return i==null&&n.detail&&n.axis==n.HORIZONTAL_AXIS&&(i=n.detail),a==null&&n.detail&&n.axis==n.VERTICAL_AXIS?a=n.detail:a==null&&(a=n.wheelDelta),{x:i,y:a}}function Hk(n){var i=Bg(n);return i.x*=ai,i.y*=ai,i}function Wg(n,i){b&&w==102&&(n.display.chromeScrollHack==null?n.display.sizer.style.pointerEvents="none":clearTimeout(n.display.chromeScrollHack),n.display.chromeScrollHack=setTimeout(function(){n.display.chromeScrollHack=null,n.display.sizer.style.pointerEvents=""},100));var a=Bg(i),l=a.x,u=a.y,m=ai;i.deltaMode===0&&(l=i.deltaX,u=i.deltaY,m=1);var y=n.display,x=y.scroller,S=x.scrollWidth>x.clientWidth,T=x.scrollHeight>x.clientHeight;if(l&&S||u&&T){if(u&&$&&g){e:for(var H=i.target,V=y.view;H!=x;H=H.parentNode)for(var se=0;se<V.length;se++)if(V[se].node==H){n.display.currentWheelTarget=H;break e}}if(l&&!s&&!E&&m!=null){u&&T&&yl(n,Math.max(0,x.scrollTop+u*m)),_o(n,Math.max(0,x.scrollLeft+l*m)),(!u||u&&T)&&cn(i),y.wheelStartX=null;return}if(u&&m!=null){var te=u*m,pe=n.doc.scrollTop,we=pe+y.wrapper.clientHeight;te<0?pe=Math.max(0,pe+te-50):we=Math.min(n.doc.height,we+te+50),qf(n,{top:pe,bottom:we})}fc<20&&i.deltaMode!==0&&(y.wheelStartX==null?(y.wheelStartX=x.scrollLeft,y.wheelStartY=x.scrollTop,y.wheelDX=l,y.wheelDY=u,setTimeout(function(){if(y.wheelStartX!=null){var Te=x.scrollLeft-y.wheelStartX,Le=x.scrollTop-y.wheelStartY,De=Le&&y.wheelDY&&Le/y.wheelDY||Te&&y.wheelDX&&Te/y.wheelDX;y.wheelStartX=y.wheelStartY=null,De&&(ai=(ai*fc+De)/(fc+1),++fc)}},200)):(y.wheelDX+=l,y.wheelDY+=u))}}var er=function(n,i){this.ranges=n,this.primIndex=i};er.prototype.primary=function(){return this.ranges[this.primIndex]},er.prototype.equals=function(n){if(n==this)return!0;if(n.primIndex!=this.primIndex||n.ranges.length!=this.ranges.length)return!1;for(var i=0;i<this.ranges.length;i++){var a=this.ranges[i],l=n.ranges[i];if(!pt(a.anchor,l.anchor)||!pt(a.head,l.head))return!1}return!0},er.prototype.deepCopy=function(){for(var n=[],i=0;i<this.ranges.length;i++)n[i]=new gt(Zt(this.ranges[i].anchor),Zt(this.ranges[i].head));return new er(n,this.primIndex)},er.prototype.somethingSelected=function(){for(var n=0;n<this.ranges.length;n++)if(!this.ranges[n].empty())return!0;return!1},er.prototype.contains=function(n,i){i||(i=n);for(var a=0;a<this.ranges.length;a++){var l=this.ranges[a];if(Ie(i,l.from())>=0&&Ie(n,l.to())<=0)return a}return-1};var gt=function(n,i){this.anchor=n,this.head=i};gt.prototype.from=function(){return is(this.anchor,this.head)},gt.prototype.to=function(){return Sn(this.anchor,this.head)},gt.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Tr(n,i,a){var l=n&&n.options.selectionsMayTouch,u=i[a];i.sort(function(se,te){return Ie(se.from(),te.from())}),a=ae(i,u);for(var m=1;m<i.length;m++){var y=i[m],x=i[m-1],S=Ie(x.to(),y.from());if(l&&!y.empty()?S>0:S>=0){var T=is(x.from(),y.from()),H=Sn(x.to(),y.to()),V=x.empty()?y.from()==y.head:x.from()==x.head;m<=a&&--a,i.splice(--m,2,new gt(V?H:T,V?T:H))}}return new er(i,a)}function Fi(n,i){return new er([new gt(n,i||n)],0)}function Hi(n){return n.text?fe(n.from.line+n.text.length-1,xe(n.text).length+(n.text.length==1?n.from.ch:0)):n.to}function qg(n,i){if(Ie(n,i.from)<0)return n;if(Ie(n,i.to)<=0)return Hi(i);var a=n.line+i.text.length-(i.to.line-i.from.line)-1,l=n.ch;return n.line==i.to.line&&(l+=Hi(i).ch-i.to.ch),fe(a,l)}function Gf(n,i){for(var a=[],l=0;l<n.sel.ranges.length;l++){var u=n.sel.ranges[l];a.push(new gt(qg(u.anchor,i),qg(u.head,i)))}return Tr(n.cm,a,n.sel.primIndex)}function jg(n,i,a){return n.line==i.line?fe(a.line,n.ch-i.ch+a.ch):fe(a.line+(n.line-i.line),n.ch)}function Bk(n,i,a){for(var l=[],u=fe(n.first,0),m=u,y=0;y<i.length;y++){var x=i[y],S=jg(x.from,u,m),T=jg(Hi(x),u,m);if(u=x.to,m=T,a=="around"){var H=n.sel.ranges[y],V=Ie(H.head,H.anchor)<0;l[y]=new gt(V?T:S,V?S:T)}else l[y]=new gt(S,S)}return new er(l,n.sel.primIndex)}function Kf(n){n.doc.mode=ts(n.options,n.doc.modeOption),Sl(n)}function Sl(n){n.doc.iter(function(i){i.stateAfter&&(i.stateAfter=null),i.styles&&(i.styles=null)}),n.doc.modeFrontier=n.doc.highlightFrontier=n.doc.first,xl(n,100),n.state.modeGen++,n.curOp&&_n(n)}function Ug(n,i){return i.from.ch==0&&i.to.ch==0&&xe(i.text)==""&&(!n.cm||n.cm.options.wholeLineUpdateBefore)}function Xf(n,i,a,l){function u(De){return a?a[De]:null}function m(De,Me,ze){X1(De,Me,ze,l),Jt(De,"change",De,i)}function y(De,Me){for(var ze=[],Ye=De;Ye<Me;++Ye)ze.push(new os(T[Ye],u(Ye),l));return ze}var x=i.from,S=i.to,T=i.text,H=qe(n,x.line),V=qe(n,S.line),se=xe(T),te=u(T.length-1),pe=S.line-x.line;if(i.full)n.insert(0,y(0,T.length)),n.remove(T.length,n.size-T.length);else if(Ug(n,i)){var we=y(0,T.length-1);m(V,V.text,te),pe&&n.remove(x.line,pe),we.length&&n.insert(x.line,we)}else if(H==V)if(T.length==1)m(H,H.text.slice(0,x.ch)+se+H.text.slice(S.ch),te);else{var Te=y(1,T.length-1);Te.push(new os(se+H.text.slice(S.ch),te,l)),m(H,H.text.slice(0,x.ch)+T[0],u(0)),n.insert(x.line+1,Te)}else if(T.length==1)m(H,H.text.slice(0,x.ch)+T[0]+V.text.slice(S.ch),u(0)),n.remove(x.line+1,pe);else{m(H,H.text.slice(0,x.ch)+T[0],u(0)),m(V,se+V.text.slice(S.ch),te);var Le=y(1,T.length-1);pe>1&&n.remove(x.line+1,pe-1),n.insert(x.line+1,Le)}Jt(n,"change",n,i)}function Bi(n,i,a){function l(u,m,y){if(u.linked)for(var x=0;x<u.linked.length;++x){var S=u.linked[x];if(S.doc!=m){var T=y&&S.sharedHist;a&&!T||(i(S.doc,T),l(S.doc,u,T))}}}l(n,null,!0)}function Vg(n,i){if(i.cm)throw new Error("This document is already in use.");n.doc=i,i.cm=n,$f(n),Kf(n),Gg(n),n.options.direction=i.direction,n.options.lineWrapping||_f(n),n.options.mode=i.modeOption,_n(n)}function Gg(n){(n.doc.direction=="rtl"?Se:N)(n.display.lineDiv,"CodeMirror-rtl")}function Wk(n){Wn(n,function(){Gg(n),_n(n)})}function dc(n){this.done=[],this.undone=[],this.undoDepth=n?n.undoDepth:1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=n?n.maxGeneration:1}function Yf(n,i){var a={from:Zt(i.from),to:Hi(i),text:ii(n,i.from,i.to)};return Yg(n,a,i.from.line,i.to.line+1),Bi(n,function(l){return Yg(l,a,i.from.line,i.to.line+1)},!0),a}function Kg(n){for(;n.length;){var i=xe(n);if(i.ranges)n.pop();else break}}function qk(n,i){if(i)return Kg(n.done),xe(n.done);if(n.done.length&&!xe(n.done).ranges)return xe(n.done);if(n.done.length>1&&!n.done[n.done.length-2].ranges)return n.done.pop(),xe(n.done)}function Xg(n,i,a,l){var u=n.history;u.undone.length=0;var m=+new Date,y,x;if((u.lastOp==l||u.lastOrigin==i.origin&&i.origin&&(i.origin.charAt(0)=="+"&&u.lastModTime>m-(n.cm?n.cm.options.historyEventDelay:500)||i.origin.charAt(0)=="*"))&&(y=qk(u,u.lastOp==l)))x=xe(y.changes),Ie(i.from,i.to)==0&&Ie(i.from,x.to)==0?x.to=Hi(i):y.changes.push(Yf(n,i));else{var S=xe(u.done);for((!S||!S.ranges)&&hc(n.sel,u.done),y={changes:[Yf(n,i)],generation:u.generation},u.done.push(y);u.done.length>u.undoDepth;)u.done.shift(),u.done[0].ranges||u.done.shift()}u.done.push(a),u.generation=++u.maxGeneration,u.lastModTime=u.lastSelTime=m,u.lastOp=u.lastSelOp=l,u.lastOrigin=u.lastSelOrigin=i.origin,x||Pt(n,"historyAdded")}function jk(n,i,a,l){var u=i.charAt(0);return u=="*"||u=="+"&&a.ranges.length==l.ranges.length&&a.somethingSelected()==l.somethingSelected()&&new Date-n.history.lastSelTime<=(n.cm?n.cm.options.historyEventDelay:500)}function Uk(n,i,a,l){var u=n.history,m=l&&l.origin;a==u.lastSelOp||m&&u.lastSelOrigin==m&&(u.lastModTime==u.lastSelTime&&u.lastOrigin==m||jk(n,m,xe(u.done),i))?u.done[u.done.length-1]=i:hc(i,u.done),u.lastSelTime=+new Date,u.lastSelOrigin=m,u.lastSelOp=a,l&&l.clearRedo!==!1&&Kg(u.undone)}function hc(n,i){var a=xe(i);a&&a.ranges&&a.equals(n)||i.push(n)}function Yg(n,i,a,l){var u=i["spans_"+n.id],m=0;n.iter(Math.max(n.first,a),Math.min(n.first+n.size,l),function(y){y.markedSpans&&((u||(u=i["spans_"+n.id]={}))[m]=y.markedSpans),++m})}function Vk(n){if(!n)return null;for(var i,a=0;a<n.length;++a)n[a].marker.explicitlyCleared?i||(i=n.slice(0,a)):i&&i.push(n[a]);return i?i.length?i:null:n}function Gk(n,i){var a=i["spans_"+n.id];if(!a)return null;for(var l=[],u=0;u<i.text.length;++u)l.push(Vk(a[u]));return l}function Zg(n,i){var a=Gk(n,i),l=wf(n,i);if(!a)return l;if(!l)return a;for(var u=0;u<a.length;++u){var m=a[u],y=l[u];if(m&&y)e:for(var x=0;x<y.length;++x){for(var S=y[x],T=0;T<m.length;++T)if(m[T].marker==S.marker)continue e;m.push(S)}else y&&(a[u]=y)}return a}function hs(n,i,a){for(var l=[],u=0;u<n.length;++u){var m=n[u];if(m.ranges){l.push(a?er.prototype.deepCopy.call(m):m);continue}var y=m.changes,x=[];l.push({changes:x});for(var S=0;S<y.length;++S){var T=y[S],H=void 0;if(x.push({from:T.from,to:T.to,text:T.text}),i)for(var V in T)(H=V.match(/^spans_(\d+)$/))&&ae(i,Number(H[1]))>-1&&(xe(x)[V]=T[V],delete T[V])}}return l}function Zf(n,i,a,l){if(l){var u=n.anchor;if(a){var m=Ie(i,u)<0;m!=Ie(a,u)<0?(u=i,i=a):m!=Ie(i,a)<0&&(i=a)}return new gt(u,i)}else return new gt(a||i,i)}function pc(n,i,a,l,u){u==null&&(u=n.cm&&(n.cm.display.shift||n.extend)),un(n,new er([Zf(n.sel.primary(),i,a,u)],0),l)}function Jg(n,i,a){for(var l=[],u=n.cm&&(n.cm.display.shift||n.extend),m=0;m<n.sel.ranges.length;m++)l[m]=Zf(n.sel.ranges[m],i[m],null,u);var y=Tr(n.cm,l,n.sel.primIndex);un(n,y,a)}function Jf(n,i,a,l){var u=n.sel.ranges.slice(0);u[i]=a,un(n,Tr(n.cm,u,n.sel.primIndex),l)}function Qg(n,i,a,l){un(n,Fi(i,a),l)}function Kk(n,i,a){var l={ranges:i.ranges,update:function(u){this.ranges=[];for(var m=0;m<u.length;m++)this.ranges[m]=new gt(tt(n,u[m].anchor),tt(n,u[m].head))},origin:a&&a.origin};return Pt(n,"beforeSelectionChange",n,l),n.cm&&Pt(n.cm,"beforeSelectionChange",n.cm,l),l.ranges!=i.ranges?Tr(n.cm,l.ranges,l.ranges.length-1):i}function em(n,i,a){var l=n.history.done,u=xe(l);u&&u.ranges?(l[l.length-1]=i,gc(n,i,a)):un(n,i,a)}function un(n,i,a){gc(n,i,a),Uk(n,n.sel,n.cm?n.cm.curOp.id:NaN,a)}function gc(n,i,a){(Bn(n,"beforeSelectionChange")||n.cm&&Bn(n.cm,"beforeSelectionChange"))&&(i=Kk(n,i,a));var l=a&&a.bias||(Ie(i.primary().head,n.sel.primary().head)<0?-1:1);tm(n,rm(n,i,l,!0)),!(a&&a.scroll===!1)&&n.cm&&n.cm.getOption("readOnly")!="nocursor"&&fs(n.cm)}function tm(n,i){i.equals(n.sel)||(n.sel=i,n.cm&&(n.cm.curOp.updateInput=1,n.cm.curOp.selectionChanged=!0,ar(n.cm)),Jt(n,"cursorActivity",n))}function nm(n){tm(n,rm(n,n.sel,null,!1))}function rm(n,i,a,l){for(var u,m=0;m<i.ranges.length;m++){var y=i.ranges[m],x=i.ranges.length==n.sel.ranges.length&&n.sel.ranges[m],S=mc(n,y.anchor,x&&x.anchor,a,l),T=y.head==y.anchor?S:mc(n,y.head,x&&x.head,a,l);(u||S!=y.anchor||T!=y.head)&&(u||(u=i.ranges.slice(0,m)),u[m]=new gt(S,T))}return u?Tr(n.cm,u,i.primIndex):i}function ps(n,i,a,l,u){var m=qe(n,i.line);if(m.markedSpans)for(var y=0;y<m.markedSpans.length;++y){var x=m.markedSpans[y],S=x.marker,T="selectLeft"in S?!S.selectLeft:S.inclusiveLeft,H="selectRight"in S?!S.selectRight:S.inclusiveRight;if((x.from==null||(T?x.from<=i.ch:x.from<i.ch))&&(x.to==null||(H?x.to>=i.ch:x.to>i.ch))){if(u&&(Pt(S,"beforeCursorEnter"),S.explicitlyCleared))if(m.markedSpans){--y;continue}else break;if(!S.atomic)continue;if(a){var V=S.find(l<0?1:-1),se=void 0;if((l<0?H:T)&&(V=im(n,V,-l,V&&V.line==i.line?m:null)),V&&V.line==i.line&&(se=Ie(V,a))&&(l<0?se<0:se>0))return ps(n,V,i,l,u)}var te=S.find(l<0?-1:1);return(l<0?T:H)&&(te=im(n,te,l,te.line==i.line?m:null)),te?ps(n,te,i,l,u):null}}return i}function mc(n,i,a,l,u){var m=l||1,y=ps(n,i,a,m,u)||!u&&ps(n,i,a,m,!0)||ps(n,i,a,-m,u)||!u&&ps(n,i,a,-m,!0);return y||(n.cantEdit=!0,fe(n.first,0))}function im(n,i,a,l){return a<0&&i.ch==0?i.line>n.first?tt(n,fe(i.line-1)):null:a>0&&i.ch==(l||qe(n,i.line)).text.length?i.line<n.first+n.size-1?fe(i.line+1,0):null:new fe(i.line,i.ch+a)}function om(n){n.setSelection(fe(n.firstLine(),0),fe(n.lastLine()),Q)}function sm(n,i,a){var l={canceled:!1,from:i.from,to:i.to,text:i.text,origin:i.origin,cancel:function(){return l.canceled=!0}};return a&&(l.update=function(u,m,y,x){u&&(l.from=tt(n,u)),m&&(l.to=tt(n,m)),y&&(l.text=y),x!==void 0&&(l.origin=x)}),Pt(n,"beforeChange",n,l),n.cm&&Pt(n.cm,"beforeChange",n.cm,l),l.canceled?(n.cm&&(n.cm.curOp.updateInput=2),null):{from:l.from,to:l.to,text:l.text,origin:l.origin}}function gs(n,i,a){if(n.cm){if(!n.cm.curOp)return Qt(n.cm,gs)(n,i,a);if(n.cm.state.suppressEdits)return}if(!((Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"))&&(i=sm(n,i,!0),!i))){var l=Zp&&!a&&U1(n,i.from,i.to);if(l)for(var u=l.length-1;u>=0;--u)lm(n,{from:l[u].from,to:l[u].to,text:u?[""]:i.text,origin:i.origin});else lm(n,i)}}function lm(n,i){if(!(i.text.length==1&&i.text[0]==""&&Ie(i.from,i.to)==0)){var a=Gf(n,i);Xg(n,i,a,n.cm?n.cm.curOp.id:NaN),_l(n,i,a,wf(n,i));var l=[];Bi(n,function(u,m){!m&&ae(l,u.history)==-1&&(fm(u.history,i),l.push(u.history)),_l(u,i,null,wf(u,i))})}}function vc(n,i,a){var l=n.cm&&n.cm.state.suppressEdits;if(!(l&&!a)){for(var u=n.history,m,y=n.sel,x=i=="undo"?u.done:u.undone,S=i=="undo"?u.undone:u.done,T=0;T<x.length&&(m=x[T],!(a?m.ranges&&!m.equals(n.sel):!m.ranges));T++);if(T!=x.length){for(u.lastOrigin=u.lastSelOrigin=null;;)if(m=x.pop(),m.ranges){if(hc(m,S),a&&!m.equals(n.sel)){un(n,m,{clearRedo:!1});return}y=m}else if(l){x.push(m);return}else break;var H=[];hc(y,S),S.push({changes:H,generation:u.generation}),u.generation=m.generation||++u.maxGeneration;for(var V=Bn(n,"beforeChange")||n.cm&&Bn(n.cm,"beforeChange"),se=function(we){var Te=m.changes[we];if(Te.origin=i,V&&!sm(n,Te,!1))return x.length=0,{};H.push(Yf(n,Te));var Le=we?Gf(n,Te):xe(x);_l(n,Te,Le,Zg(n,Te)),!we&&n.cm&&n.cm.scrollIntoView({from:Te.from,to:Hi(Te)});var De=[];Bi(n,function(Me,ze){!ze&&ae(De,Me.history)==-1&&(fm(Me.history,Te),De.push(Me.history)),_l(Me,Te,null,Zg(Me,Te))})},te=m.changes.length-1;te>=0;--te){var pe=se(te);if(pe)return pe.v}}}}function am(n,i){if(i!=0&&(n.first+=i,n.sel=new er(ye(n.sel.ranges,function(u){return new gt(fe(u.anchor.line+i,u.anchor.ch),fe(u.head.line+i,u.head.ch))}),n.sel.primIndex),n.cm)){_n(n.cm,n.first,n.first-i,i);for(var a=n.cm.display,l=a.viewFrom;l<a.viewTo;l++)Di(n.cm,l,"gutter")}}function _l(n,i,a,l){if(n.cm&&!n.cm.curOp)return Qt(n.cm,_l)(n,i,a,l);if(i.to.line<n.first){am(n,i.text.length-1-(i.to.line-i.from.line));return}if(!(i.from.line>n.lastLine())){if(i.from.line<n.first){var u=i.text.length-1-(n.first-i.from.line);am(n,u),i={from:fe(n.first,0),to:fe(i.to.line+u,i.to.ch),text:[xe(i.text)],origin:i.origin}}var m=n.lastLine();i.to.line>m&&(i={from:i.from,to:fe(m,qe(n,m).text.length),text:[i.text[0]],origin:i.origin}),i.removed=ii(n,i.from,i.to),a||(a=Gf(n,i)),n.cm?Xk(n.cm,i,l):Xf(n,i,l),gc(n,a,Q),n.cantEdit&&mc(n,fe(n.firstLine(),0))&&(n.cantEdit=!1)}}function Xk(n,i,a){var l=n.doc,u=n.display,m=i.from,y=i.to,x=!1,S=m.line;n.options.lineWrapping||(S=A(Sr(qe(l,m.line))),l.iter(S,y.line+1,function(te){if(te==u.maxLine)return x=!0,!0})),l.sel.contains(i.from,i.to)>-1&&ar(n),Xf(l,i,a,Eg(n)),n.options.lineWrapping||(l.iter(S,m.line+i.text.length,function(te){var pe=ec(te);pe>u.maxLineLength&&(u.maxLine=te,u.maxLineLength=pe,u.maxLineChanged=!0,x=!1)}),x&&(n.curOp.updateMaxLine=!0)),z1(l,m.line),xl(n,400);var T=i.text.length-(y.line-m.line)-1;i.full?_n(n):m.line==y.line&&i.text.length==1&&!Ug(n.doc,i)?Di(n,m.line,"text"):_n(n,m.line,y.line+1,T);var H=Bn(n,"changes"),V=Bn(n,"change");if(V||H){var se={from:m,to:y,text:i.text,removed:i.removed,origin:i.origin};V&&Jt(n,"change",n,se),H&&(n.curOp.changeObjs||(n.curOp.changeObjs=[])).push(se)}n.display.selForContextMenu=null}function ms(n,i,a,l,u){var m;l||(l=a),Ie(l,a)<0&&(m=[l,a],a=m[0],l=m[1]),typeof i=="string"&&(i=n.splitLines(i)),gs(n,{from:a,to:l,text:i,origin:u})}function cm(n,i,a,l){a<n.line?n.line+=l:i<n.line&&(n.line=i,n.ch=0)}function um(n,i,a,l){for(var u=0;u<n.length;++u){var m=n[u],y=!0;if(m.ranges){m.copied||(m=n[u]=m.deepCopy(),m.copied=!0);for(var x=0;x<m.ranges.length;x++)cm(m.ranges[x].anchor,i,a,l),cm(m.ranges[x].head,i,a,l);continue}for(var S=0;S<m.changes.length;++S){var T=m.changes[S];if(a<T.from.line)T.from=fe(T.from.line+l,T.from.ch),T.to=fe(T.to.line+l,T.to.ch);else if(i<=T.to.line){y=!1;break}}y||(n.splice(0,u+1),u=0)}}function fm(n,i){var a=i.from.line,l=i.to.line,u=i.text.length-(l-a)-1;um(n.done,a,l,u),um(n.undone,a,l,u)}function Tl(n,i,a,l){var u=i,m=i;return typeof i=="number"?m=qe(n,Wp(n,i)):u=A(i),u==null?null:(l(m,u)&&n.cm&&Di(n.cm,u,a),m)}function Cl(n){this.lines=n,this.parent=null;for(var i=0,a=0;a<n.length;++a)n[a].parent=this,i+=n[a].height;this.height=i}Cl.prototype={chunkSize:function(){return this.lines.length},removeInner:function(n,i){for(var a=n,l=n+i;a<l;++a){var u=this.lines[a];this.height-=u.height,Y1(u),Jt(u,"delete")}this.lines.splice(n,i)},collapse:function(n){n.push.apply(n,this.lines)},insertInner:function(n,i,a){this.height+=a,this.lines=this.lines.slice(0,n).concat(i).concat(this.lines.slice(n));for(var l=0;l<i.length;++l)i[l].parent=this},iterN:function(n,i,a){for(var l=n+i;n<l;++n)if(a(this.lines[n]))return!0}};function El(n){this.children=n;for(var i=0,a=0,l=0;l<n.length;++l){var u=n[l];i+=u.chunkSize(),a+=u.height,u.parent=this}this.size=i,this.height=a,this.parent=null}El.prototype={chunkSize:function(){return this.size},removeInner:function(n,i){this.size-=i;for(var a=0;a<this.children.length;++a){var l=this.children[a],u=l.chunkSize();if(n<u){var m=Math.min(i,u-n),y=l.height;if(l.removeInner(n,m),this.height-=y-l.height,u==m&&(this.children.splice(a--,1),l.parent=null),(i-=m)==0)break;n=0}else n-=u}if(this.size-i<25&&(this.children.length>1||!(this.children[0]instanceof Cl))){var x=[];this.collapse(x),this.children=[new Cl(x)],this.children[0].parent=this}},collapse:function(n){for(var i=0;i<this.children.length;++i)this.children[i].collapse(n)},insertInner:function(n,i,a){this.size+=i.length,this.height+=a;for(var l=0;l<this.children.length;++l){var u=this.children[l],m=u.chunkSize();if(n<=m){if(u.insertInner(n,i,a),u.lines&&u.lines.length>50){for(var y=u.lines.length%25+25,x=y;x<u.lines.length;){var S=new Cl(u.lines.slice(x,x+=25));u.height-=S.height,this.children.splice(++l,0,S),S.parent=this}u.lines=u.lines.slice(0,y),this.maybeSpill()}break}n-=m}},maybeSpill:function(){if(!(this.children.length<=10)){var n=this;do{var i=n.children.splice(n.children.length-5,5),a=new El(i);if(n.parent){n.size-=a.size,n.height-=a.height;var u=ae(n.parent.children,n);n.parent.children.splice(u+1,0,a)}else{var l=new El(n.children);l.parent=n,n.children=[l,a],n=l}a.parent=n.parent}while(n.children.length>10);n.parent.maybeSpill()}},iterN:function(n,i,a){for(var l=0;l<this.children.length;++l){var u=this.children[l],m=u.chunkSize();if(n<m){var y=Math.min(i,m-n);if(u.iterN(n,y,a))return!0;if((i-=y)==0)break;n=0}else n-=m}}};var Al=function(n,i,a){if(a)for(var l in a)a.hasOwnProperty(l)&&(this[l]=a[l]);this.doc=n,this.node=i};Al.prototype.clear=function(){var n=this.doc.cm,i=this.line.widgets,a=this.line,l=A(a);if(!(l==null||!i)){for(var u=0;u<i.length;++u)i[u]==this&&i.splice(u--,1);i.length||(a.widgets=null);var m=pl(this);Qn(a,Math.max(0,a.height-m)),n&&(Wn(n,function(){dm(n,a,-m),Di(n,l,"widget")}),Jt(n,"lineWidgetCleared",n,this,l))}},Al.prototype.changed=function(){var n=this,i=this.height,a=this.doc.cm,l=this.line;this.height=null;var u=pl(this)-i;u&&(Ii(this.doc,l)||Qn(l,l.height+u),a&&Wn(a,function(){a.curOp.forceUpdate=!0,dm(a,l,u),Jt(a,"lineWidgetChanged",a,n,A(l))}))},yr(Al);function dm(n,i,a){si(i)<(n.curOp&&n.curOp.scrollTop||n.doc.scrollTop)&&Bf(n,a)}function Yk(n,i,a,l){var u=new Al(n,a,l),m=n.cm;return m&&u.noHScroll&&(m.display.alignWidgets=!0),Tl(n,i,"widget",function(y){var x=y.widgets||(y.widgets=[]);if(u.insertAt==null?x.push(u):x.splice(Math.min(x.length,Math.max(0,u.insertAt)),0,u),u.line=y,m&&!Ii(n,y)){var S=si(y)<n.scrollTop;Qn(y,y.height+pl(u)),S&&Bf(m,u.height),m.curOp.forceUpdate=!0}return!0}),m&&Jt(m,"lineWidgetAdded",m,u,typeof i=="number"?i:A(i)),u}var hm=0,Wi=function(n,i){this.lines=[],this.type=i,this.doc=n,this.id=++hm};Wi.prototype.clear=function(){if(!this.explicitlyCleared){var n=this.doc.cm,i=n&&!n.curOp;if(i&&Co(n),Bn(this,"clear")){var a=this.find();a&&Jt(this,"clear",a.from,a.to)}for(var l=null,u=null,m=0;m<this.lines.length;++m){var y=this.lines[m],x=fl(y.markedSpans,this);n&&!this.collapsed?Di(n,A(y),"text"):n&&(x.to!=null&&(u=A(y)),x.from!=null&&(l=A(y))),y.markedSpans=B1(y.markedSpans,x),x.from==null&&this.collapsed&&!Ii(this.doc,y)&&n&&Qn(y,as(n.display))}if(n&&this.collapsed&&!n.options.lineWrapping)for(var S=0;S<this.lines.length;++S){var T=Sr(this.lines[S]),H=ec(T);H>n.display.maxLineLength&&(n.display.maxLine=T,n.display.maxLineLength=H,n.display.maxLineChanged=!0)}l!=null&&n&&this.collapsed&&_n(n,l,u+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,n&&nm(n.doc)),n&&Jt(n,"markerCleared",n,this,l,u),i&&Eo(n),this.parent&&this.parent.clear()}},Wi.prototype.find=function(n,i){n==null&&this.type=="bookmark"&&(n=1);for(var a,l,u=0;u<this.lines.length;++u){var m=this.lines[u],y=fl(m.markedSpans,this);if(y.from!=null&&(a=fe(i?m:A(m),y.from),n==-1))return a;if(y.to!=null&&(l=fe(i?m:A(m),y.to),n==1))return l}return a&&{from:a,to:l}},Wi.prototype.changed=function(){var n=this,i=this.find(-1,!0),a=this,l=this.doc.cm;!i||!l||Wn(l,function(){var u=i.line,m=A(i.line),y=Af(l,m);if(y&&(bg(y),l.curOp.selectionChanged=l.curOp.forceUpdate=!0),l.curOp.updateMaxLine=!0,!Ii(a.doc,u)&&a.height!=null){var x=a.height;a.height=null;var S=pl(a)-x;S&&Qn(u,u.height+S)}Jt(l,"markerChanged",l,n)})},Wi.prototype.attachLine=function(n){if(!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(!i.maybeHiddenMarkers||ae(i.maybeHiddenMarkers,this)==-1)&&(i.maybeUnhiddenMarkers||(i.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(n)},Wi.prototype.detachLine=function(n){if(this.lines.splice(ae(this.lines,n),1),!this.lines.length&&this.doc.cm){var i=this.doc.cm.curOp;(i.maybeHiddenMarkers||(i.maybeHiddenMarkers=[])).push(this)}},yr(Wi);function vs(n,i,a,l,u){if(l&&l.shared)return Zk(n,i,a,l,u);if(n.cm&&!n.cm.curOp)return Qt(n.cm,vs)(n,i,a,l,u);var m=new Wi(n,u),y=Ie(i,a);if(l&&Y(l,m,!1),y>0||y==0&&m.clearWhenEmpty!==!1)return m;if(m.replacedWith&&(m.collapsed=!0,m.widgetNode=z("span",[m.replacedWith],"CodeMirror-widget"),l.handleMouseEvents||m.widgetNode.setAttribute("cm-ignore-events","true"),l.insertLeft&&(m.widgetNode.insertLeft=!0)),m.collapsed){if(rg(n,i.line,i,a,m)||i.line!=a.line&&rg(n,a.line,i,a,m))throw new Error("Inserting collapsed marker partially overlapping an existing one");H1()}m.addToHistory&&Xg(n,{from:i,to:a,origin:"markText"},n.sel,NaN);var x=i.line,S=n.cm,T;if(n.iter(x,a.line+1,function(V){S&&m.collapsed&&!S.options.lineWrapping&&Sr(V)==S.display.maxLine&&(T=!0),m.collapsed&&x!=i.line&&Qn(V,0),W1(V,new Ya(m,x==i.line?i.ch:null,x==a.line?a.ch:null),n.cm&&n.cm.curOp),++x}),m.collapsed&&n.iter(i.line,a.line+1,function(V){Ii(n,V)&&Qn(V,0)}),m.clearOnEnter&&Xe(m,"beforeCursorEnter",function(){return m.clear()}),m.readOnly&&(F1(),(n.history.done.length||n.history.undone.length)&&n.clearHistory()),m.collapsed&&(m.id=++hm,m.atomic=!0),S){if(T&&(S.curOp.updateMaxLine=!0),m.collapsed)_n(S,i.line,a.line+1);else if(m.className||m.startStyle||m.endStyle||m.css||m.attributes||m.title)for(var H=i.line;H<=a.line;H++)Di(S,H,"text");m.atomic&&nm(S.doc),Jt(S,"markerAdded",S,m)}return m}var Ll=function(n,i){this.markers=n,this.primary=i;for(var a=0;a<n.length;++a)n[a].parent=this};Ll.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var n=0;n<this.markers.length;++n)this.markers[n].clear();Jt(this,"clear")}},Ll.prototype.find=function(n,i){return this.primary.find(n,i)},yr(Ll);function Zk(n,i,a,l,u){l=Y(l),l.shared=!1;var m=[vs(n,i,a,l,u)],y=m[0],x=l.widgetNode;return Bi(n,function(S){x&&(l.widgetNode=x.cloneNode(!0)),m.push(vs(S,tt(S,i),tt(S,a),l,u));for(var T=0;T<S.linked.length;++T)if(S.linked[T].isParent)return;y=xe(m)}),new Ll(m,y)}function pm(n){return n.findMarks(fe(n.first,0),n.clipPos(fe(n.lastLine())),function(i){return i.parent})}function Jk(n,i){for(var a=0;a<i.length;a++){var l=i[a],u=l.find(),m=n.clipPos(u.from),y=n.clipPos(u.to);if(Ie(m,y)){var x=vs(n,m,y,l.primary,l.primary.type);l.markers.push(x),x.parent=l}}}function Qk(n){for(var i=function(l){var u=n[l],m=[u.primary.doc];Bi(u.primary.doc,function(S){return m.push(S)});for(var y=0;y<u.markers.length;y++){var x=u.markers[y];ae(m,x.doc)==-1&&(x.parent=null,u.markers.splice(y--,1))}},a=0;a<n.length;a++)i(a)}var eS=0,Tn=function(n,i,a,l,u){if(!(this instanceof Tn))return new Tn(n,i,a,l,u);a==null&&(a=0),El.call(this,[new Cl([new os("",null)])]),this.first=a,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=a;var m=fe(a,0);this.sel=Fi(m),this.history=new dc(null),this.id=++eS,this.modeOption=i,this.lineSep=l,this.direction=u=="rtl"?"rtl":"ltr",this.extend=!1,typeof n=="string"&&(n=this.splitLines(n)),Xf(this,{from:m,to:m,text:n}),un(this,Fi(m),Q)};Tn.prototype=oe(El.prototype,{constructor:Tn,iter:function(n,i,a){a?this.iterN(n-this.first,i-n,a):this.iterN(this.first,this.first+this.size,n)},insert:function(n,i){for(var a=0,l=0;l<i.length;++l)a+=i[l].height;this.insertInner(n-this.first,i,a)},remove:function(n,i){this.removeInner(n-this.first,i)},getValue:function(n){var i=cl(this,this.first,this.first+this.size);return n===!1?i:i.join(n||this.lineSeparator())},setValue:en(function(n){var i=fe(this.first,0),a=this.first+this.size-1;gs(this,{from:i,to:fe(a,qe(this,a).text.length),text:this.splitLines(n),origin:"setValue",full:!0},!0),this.cm&&vl(this.cm,0,0),un(this,Fi(i),Q)}),replaceRange:function(n,i,a,l){i=tt(this,i),a=a?tt(this,a):i,ms(this,n,i,a,l)},getRange:function(n,i,a){var l=ii(this,tt(this,n),tt(this,i));return a===!1?l:a===""?l.join(""):l.join(a||this.lineSeparator())},getLine:function(n){var i=this.getLineHandle(n);return i&&i.text},getLineHandle:function(n){if(me(this,n))return qe(this,n)},getLineNumber:function(n){return A(n)},getLineHandleVisualStart:function(n){return typeof n=="number"&&(n=qe(this,n)),Sr(n)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(n){return tt(this,n)},getCursor:function(n){var i=this.sel.primary(),a;return n==null||n=="head"?a=i.head:n=="anchor"?a=i.anchor:n=="end"||n=="to"||n===!1?a=i.to():a=i.from(),a},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:en(function(n,i,a){Qg(this,tt(this,typeof n=="number"?fe(n,i||0):n),null,a)}),setSelection:en(function(n,i,a){Qg(this,tt(this,n),tt(this,i||n),a)}),extendSelection:en(function(n,i,a){pc(this,tt(this,n),i&&tt(this,i),a)}),extendSelections:en(function(n,i){Jg(this,qp(this,n),i)}),extendSelectionsBy:en(function(n,i){var a=ye(this.sel.ranges,n);Jg(this,qp(this,a),i)}),setSelections:en(function(n,i,a){if(n.length){for(var l=[],u=0;u<n.length;u++)l[u]=new gt(tt(this,n[u].anchor),tt(this,n[u].head||n[u].anchor));i==null&&(i=Math.min(n.length-1,this.sel.primIndex)),un(this,Tr(this.cm,l,i),a)}}),addSelection:en(function(n,i,a){var l=this.sel.ranges.slice(0);l.push(new gt(tt(this,n),tt(this,i||n))),un(this,Tr(this.cm,l,l.length-1),a)}),getSelection:function(n){for(var i=this.sel.ranges,a,l=0;l<i.length;l++){var u=ii(this,i[l].from(),i[l].to());a=a?a.concat(u):u}return n===!1?a:a.join(n||this.lineSeparator())},getSelections:function(n){for(var i=[],a=this.sel.ranges,l=0;l<a.length;l++){var u=ii(this,a[l].from(),a[l].to());n!==!1&&(u=u.join(n||this.lineSeparator())),i[l]=u}return i},replaceSelection:function(n,i,a){for(var l=[],u=0;u<this.sel.ranges.length;u++)l[u]=n;this.replaceSelections(l,i,a||"+input")},replaceSelections:en(function(n,i,a){for(var l=[],u=this.sel,m=0;m<u.ranges.length;m++){var y=u.ranges[m];l[m]={from:y.from(),to:y.to(),text:this.splitLines(n[m]),origin:a}}for(var x=i&&i!="end"&&Bk(this,l,i),S=l.length-1;S>=0;S--)gs(this,l[S]);x?em(this,x):this.cm&&fs(this.cm)}),undo:en(function(){vc(this,"undo")}),redo:en(function(){vc(this,"redo")}),undoSelection:en(function(){vc(this,"undo",!0)}),redoSelection:en(function(){vc(this,"redo",!0)}),setExtending:function(n){this.extend=n},getExtending:function(){return this.extend},historySize:function(){for(var n=this.history,i=0,a=0,l=0;l<n.done.length;l++)n.done[l].ranges||++i;for(var u=0;u<n.undone.length;u++)n.undone[u].ranges||++a;return{undo:i,redo:a}},clearHistory:function(){var n=this;this.history=new dc(this.history),Bi(this,function(i){return i.history=n.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(n){return n&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(n){return this.history.generation==(n||this.cleanGeneration)},getHistory:function(){return{done:hs(this.history.done),undone:hs(this.history.undone)}},setHistory:function(n){var i=this.history=new dc(this.history);i.done=hs(n.done.slice(0),null,!0),i.undone=hs(n.undone.slice(0),null,!0)},setGutterMarker:en(function(n,i,a){return Tl(this,n,"gutter",function(l){var u=l.gutterMarkers||(l.gutterMarkers={});return u[i]=a,!a&&dt(u)&&(l.gutterMarkers=null),!0})}),clearGutter:en(function(n){var i=this;this.iter(function(a){a.gutterMarkers&&a.gutterMarkers[n]&&Tl(i,a,"gutter",function(){return a.gutterMarkers[n]=null,dt(a.gutterMarkers)&&(a.gutterMarkers=null),!0})})}),lineInfo:function(n){var i;if(typeof n=="number"){if(!me(this,n)||(i=n,n=qe(this,n),!n))return null}else if(i=A(n),i==null)return null;return{line:i,handle:n,text:n.text,gutterMarkers:n.gutterMarkers,textClass:n.textClass,bgClass:n.bgClass,wrapClass:n.wrapClass,widgets:n.widgets}},addLineClass:en(function(n,i,a){return Tl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass";if(!l[u])l[u]=a;else{if(j(a).test(l[u]))return!1;l[u]+=" "+a}return!0})}),removeLineClass:en(function(n,i,a){return Tl(this,n,i=="gutter"?"gutter":"class",function(l){var u=i=="text"?"textClass":i=="background"?"bgClass":i=="gutter"?"gutterClass":"wrapClass",m=l[u];if(m)if(a==null)l[u]=null;else{var y=m.match(j(a));if(!y)return!1;var x=y.index+y[0].length;l[u]=m.slice(0,y.index)+(!y.index||x==m.length?"":" ")+m.slice(x)||null}else return!1;return!0})}),addLineWidget:en(function(n,i,a){return Yk(this,n,i,a)}),removeLineWidget:function(n){n.clear()},markText:function(n,i,a){return vs(this,tt(this,n),tt(this,i),a,a&&a.type||"range")},setBookmark:function(n,i){var a={replacedWith:i&&(i.nodeType==null?i.widget:i),insertLeft:i&&i.insertLeft,clearWhenEmpty:!1,shared:i&&i.shared,handleMouseEvents:i&&i.handleMouseEvents};return n=tt(this,n),vs(this,n,n,a,"bookmark")},findMarksAt:function(n){n=tt(this,n);var i=[],a=qe(this,n.line).markedSpans;if(a)for(var l=0;l<a.length;++l){var u=a[l];(u.from==null||u.from<=n.ch)&&(u.to==null||u.to>=n.ch)&&i.push(u.marker.parent||u.marker)}return i},findMarks:function(n,i,a){n=tt(this,n),i=tt(this,i);var l=[],u=n.line;return this.iter(n.line,i.line+1,function(m){var y=m.markedSpans;if(y)for(var x=0;x<y.length;x++){var S=y[x];!(S.to!=null&&u==n.line&&n.ch>=S.to||S.from==null&&u!=n.line||S.from!=null&&u==i.line&&S.from>=i.ch)&&(!a||a(S.marker))&&l.push(S.marker.parent||S.marker)}++u}),l},getAllMarks:function(){var n=[];return this.iter(function(i){var a=i.markedSpans;if(a)for(var l=0;l<a.length;++l)a[l].from!=null&&n.push(a[l].marker)}),n},posFromIndex:function(n){var i,a=this.first,l=this.lineSeparator().length;return this.iter(function(u){var m=u.text.length+l;if(m>n)return i=n,!0;n-=m,++a}),tt(this,fe(a,i))},indexFromPos:function(n){n=tt(this,n);var i=n.ch;if(n.line<this.first||n.ch<0)return 0;var a=this.lineSeparator().length;return this.iter(this.first,n.line,function(l){i+=l.text.length+a}),i},copy:function(n){var i=new Tn(cl(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return i.scrollTop=this.scrollTop,i.scrollLeft=this.scrollLeft,i.sel=this.sel,i.extend=!1,n&&(i.history.undoDepth=this.history.undoDepth,i.setHistory(this.getHistory())),i},linkedDoc:function(n){n||(n={});var i=this.first,a=this.first+this.size;n.from!=null&&n.from>i&&(i=n.from),n.to!=null&&n.to<a&&(a=n.to);var l=new Tn(cl(this,i,a),n.mode||this.modeOption,i,this.lineSep,this.direction);return n.sharedHist&&(l.history=this.history),(this.linked||(this.linked=[])).push({doc:l,sharedHist:n.sharedHist}),l.linked=[{doc:this,isParent:!0,sharedHist:n.sharedHist}],Jk(l,pm(this)),l},unlinkDoc:function(n){if(n instanceof Ct&&(n=n.doc),this.linked)for(var i=0;i<this.linked.length;++i){var a=this.linked[i];if(a.doc==n){this.linked.splice(i,1),n.unlinkDoc(this),Qk(pm(this));break}}if(n.history==this.history){var l=[n.id];Bi(n,function(u){return l.push(u.id)},!0),n.history=new dc(null),n.history.done=hs(this.history.done,l),n.history.undone=hs(this.history.undone,l)}},iterLinkedDocs:function(n){Bi(this,n)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(n){return this.lineSep?n.split(this.lineSep):cr(n)},lineSeparator:function(){return this.lineSep||` |
| 29 | `},setDirection:en(function(n){n!="rtl"&&(n="ltr"),n!=this.direction&&(this.direction=n,this.iter(function(i){return i.order=null}),this.cm&&Wk(this.cm))})}),Tn.prototype.eachLine=Tn.prototype.iter;var gm=0;function tS(n){var i=this;if(mm(i),!(Rt(i,n)||li(i.display,n))){cn(n),h&&(gm=+new Date);var a=ko(i,n,!0),l=n.dataTransfer.files;if(!(!a||i.isReadOnly()))if(l&&l.length&&window.FileReader&&window.File)for(var u=l.length,m=Array(u),y=0,x=function(){++y==u&&Qt(i,function(){a=tt(i.doc,a);var te={from:a,to:a,text:i.doc.splitLines(m.filter(function(pe){return pe!=null}).join(i.doc.lineSeparator())),origin:"paste"};gs(i.doc,te),em(i.doc,Fi(tt(i.doc,a),tt(i.doc,Hi(te))))})()},S=function(te,pe){if(i.options.allowDropFileTypes&&ae(i.options.allowDropFileTypes,te.type)==-1){x();return}var we=new FileReader;we.onerror=function(){return x()},we.onload=function(){var Te=we.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Te)){x();return}m[pe]=Te,x()},we.readAsText(te)},T=0;T<l.length;T++)S(l[T],T);else{if(i.state.draggingText&&i.doc.sel.contains(a)>-1){i.state.draggingText(n),setTimeout(function(){return i.display.input.focus()},20);return}try{var H=n.dataTransfer.getData("Text");if(H){var V;if(i.state.draggingText&&!i.state.draggingText.copy&&(V=i.listSelections()),gc(i.doc,Fi(a,a)),V)for(var se=0;se<V.length;++se)ms(i.doc,"",V[se].anchor,V[se].head,"drag");i.replaceSelection(H,"around","paste"),i.display.input.focus()}}catch{}}}}function nS(n,i){if(h&&(!n.state.draggingText||+new Date-gm<100)){Oi(i);return}if(!(Rt(n,i)||li(n.display,i))&&(i.dataTransfer.setData("Text",n.getSelection()),i.dataTransfer.effectAllowed="copyMove",i.dataTransfer.setDragImage&&!L)){var a=k("img",null,null,"position: fixed; left: 0; top: 0;");a.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",E&&(a.width=a.height=1,n.display.wrapper.appendChild(a),a._top=a.offsetTop),i.dataTransfer.setDragImage(a,0,0),E&&a.parentNode.removeChild(a)}}function rS(n,i){var a=ko(n,i);if(a){var l=document.createDocumentFragment();If(n,a,l),n.display.dragCursor||(n.display.dragCursor=k("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),n.display.lineSpace.insertBefore(n.display.dragCursor,n.display.cursorDiv)),C(n.display.dragCursor,l)}}function mm(n){n.display.dragCursor&&(n.display.lineSpace.removeChild(n.display.dragCursor),n.display.dragCursor=null)}function vm(n){if(document.getElementsByClassName){for(var i=document.getElementsByClassName("CodeMirror"),a=[],l=0;l<i.length;l++){var u=i[l].CodeMirror;u&&a.push(u)}a.length&&a[0].operation(function(){for(var m=0;m<a.length;m++)n(a[m])})}}var ym=!1;function iS(){ym||(oS(),ym=!0)}function oS(){var n;Xe(window,"resize",function(){n==null&&(n=setTimeout(function(){n=null,vm(sS)},100))}),Xe(window,"blur",function(){return vm(us)})}function sS(n){var i=n.display;i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.scrollbarsClipped=!1,n.setSize()}for(var qi={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ml=0;Ml<10;Ml++)qi[Ml+48]=qi[Ml+96]=String(Ml);for(var yc=65;yc<=90;yc++)qi[yc]=String.fromCharCode(yc);for(var Nl=1;Nl<=12;Nl++)qi[Nl+111]=qi[Nl+63235]="F"+Nl;var ci={};ci.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},ci.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},ci.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},ci.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},ci.default=$?ci.macDefault:ci.pcDefault;function lS(n){var i=n.split(/-(?!$)/);n=i[i.length-1];for(var a,l,u,m,y=0;y<i.length-1;y++){var x=i[y];if(/^(cmd|meta|m)$/i.test(x))m=!0;else if(/^a(lt)?$/i.test(x))a=!0;else if(/^(c|ctrl|control)$/i.test(x))l=!0;else if(/^s(hift)?$/i.test(x))u=!0;else throw new Error("Unrecognized modifier name: "+x)}return a&&(n="Alt-"+n),l&&(n="Ctrl-"+n),m&&(n="Cmd-"+n),u&&(n="Shift-"+n),n}function aS(n){var i={};for(var a in n)if(n.hasOwnProperty(a)){var l=n[a];if(/^(name|fallthrough|(de|at)tach)$/.test(a))continue;if(l=="..."){delete n[a];continue}for(var u=ye(a.split(" "),lS),m=0;m<u.length;m++){var y=void 0,x=void 0;m==u.length-1?(x=u.join(" "),y=l):(x=u.slice(0,m+1).join(" "),y="...");var S=i[x];if(!S)i[x]=y;else if(S!=y)throw new Error("Inconsistent bindings for "+x)}delete n[a]}for(var T in i)n[T]=i[T];return n}function ys(n,i,a,l){i=bc(i);var u=i.call?i.call(n,l):i[n];if(u===!1)return"nothing";if(u==="...")return"multi";if(u!=null&&a(u))return"handled";if(i.fallthrough){if(Object.prototype.toString.call(i.fallthrough)!="[object Array]")return ys(n,i.fallthrough,a,l);for(var m=0;m<i.fallthrough.length;m++){var y=ys(n,i.fallthrough[m],a,l);if(y)return y}}}function bm(n){var i=typeof n=="string"?n:qi[n.keyCode];return i=="Ctrl"||i=="Alt"||i=="Shift"||i=="Mod"}function wm(n,i,a){var l=n;return i.altKey&&l!="Alt"&&(n="Alt-"+n),(Z?i.metaKey:i.ctrlKey)&&l!="Ctrl"&&(n="Ctrl-"+n),(Z?i.ctrlKey:i.metaKey)&&l!="Mod"&&(n="Cmd-"+n),!a&&i.shiftKey&&l!="Shift"&&(n="Shift-"+n),n}function xm(n,i){if(E&&n.keyCode==34&&n.char)return!1;var a=qi[n.keyCode];return a==null||n.altGraphKey?!1:(n.keyCode==3&&n.code&&(a=n.code),wm(a,n,i))}function bc(n){return typeof n=="string"?ci[n]:n}function bs(n,i){for(var a=n.doc.sel.ranges,l=[],u=0;u<a.length;u++){for(var m=i(a[u]);l.length&&Ie(m.from,xe(l).to)<=0;){var y=l.pop();if(Ie(y.from,m.from)<0){m.from=y.from;break}}l.push(m)}Wn(n,function(){for(var x=l.length-1;x>=0;x--)ms(n.doc,"",l[x].from,l[x].to,"+delete");fs(n)})}function Qf(n,i,a){var l=Yt(n.text,i+a,a);return l<0||l>n.text.length?null:l}function ed(n,i,a){var l=Qf(n,i.ch,a);return l==null?null:new fe(i.line,l,a<0?"after":"before")}function td(n,i,a,l,u){if(n){i.doc.direction=="rtl"&&(u=-u);var m=lt(a,i.doc.direction);if(m){var y=u<0?xe(m):m[0],x=u<0==(y.level==1),S=x?"after":"before",T;if(y.level>0||i.doc.direction=="rtl"){var H=ls(i,a);T=u<0?a.text.length-1:0;var V=jr(i,H,T).top;T=jt(function(se){return jr(i,H,se).top==V},u<0==(y.level==1)?y.from:y.to-1,T),S=="before"&&(T=Qf(a,T,1))}else T=u<0?y.to:y.from;return new fe(l,T,S)}}return new fe(l,u<0?a.text.length:0,u<0?"before":"after")}function cS(n,i,a,l){var u=lt(i,n.doc.direction);if(!u)return ed(i,a,l);a.ch>=i.text.length?(a.ch=i.text.length,a.sticky="before"):a.ch<=0&&(a.ch=0,a.sticky="after");var m=Bt(u,a.ch,a.sticky),y=u[m];if(n.doc.direction=="ltr"&&y.level%2==0&&(l>0?y.to>a.ch:y.from<a.ch))return ed(i,a,l);var x=function(Le,De){return Qf(i,Le instanceof fe?Le.ch:Le,De)},S,T=function(Le){return n.options.lineWrapping?(S=S||ls(n,i),Cg(n,i,S,Le)):{begin:0,end:i.text.length}},H=T(a.sticky=="before"?x(a,-1):a.ch);if(n.doc.direction=="rtl"||y.level==1){var V=y.level==1==l<0,se=x(a,V?1:-1);if(se!=null&&(V?se<=y.to&&se<=H.end:se>=y.from&&se>=H.begin)){var te=V?"before":"after";return new fe(a.line,se,te)}}var pe=function(Le,De,Me){for(var ze=function(St,tn){return tn?new fe(a.line,x(St,1),"before"):new fe(a.line,St,"after")};Le>=0&&Le<u.length;Le+=De){var Ye=u[Le],Ue=De>0==(Ye.level!=1),st=Ue?Me.begin:x(Me.end,-1);if(Ye.from<=st&&st<Ye.to||(st=Ue?Ye.from:x(Ye.to,-1),Me.begin<=st&&st<Me.end))return ze(st,Ue)}},we=pe(m+l,l,H);if(we)return we;var Te=l>0?H.end:x(H.begin,-1);return Te!=null&&!(l>0&&Te==i.text.length)&&(we=pe(l>0?0:u.length-1,l,T(Te)),we)?we:null}var Ol={selectAll:om,singleSelection:function(n){return n.setSelection(n.getCursor("anchor"),n.getCursor("head"),Q)},killLine:function(n){return bs(n,function(i){if(i.empty()){var a=qe(n.doc,i.head.line).text.length;return i.head.ch==a&&i.head.line<n.lastLine()?{from:i.head,to:fe(i.head.line+1,0)}:{from:i.head,to:fe(i.head.line,a)}}else return{from:i.from(),to:i.to()}})},deleteLine:function(n){return bs(n,function(i){return{from:fe(i.from().line,0),to:tt(n.doc,fe(i.to().line+1,0))}})},delLineLeft:function(n){return bs(n,function(i){return{from:fe(i.from().line,0),to:i.from()}})},delWrappedLineLeft:function(n){return bs(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return{from:l,to:i.from()}})},delWrappedLineRight:function(n){return bs(n,function(i){var a=n.charCoords(i.head,"div").top+5,l=n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div");return{from:i.from(),to:l}})},undo:function(n){return n.undo()},redo:function(n){return n.redo()},undoSelection:function(n){return n.undoSelection()},redoSelection:function(n){return n.redoSelection()},goDocStart:function(n){return n.extendSelection(fe(n.firstLine(),0))},goDocEnd:function(n){return n.extendSelection(fe(n.lastLine()))},goLineStart:function(n){return n.extendSelectionsBy(function(i){return km(n,i.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(n){return n.extendSelectionsBy(function(i){return Sm(n,i.head)},{origin:"+move",bias:1})},goLineEnd:function(n){return n.extendSelectionsBy(function(i){return uS(n,i.head.line)},{origin:"+move",bias:-1})},goLineRight:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:n.display.lineDiv.offsetWidth+100,top:a},"div")},de)},goLineLeft:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5;return n.coordsChar({left:0,top:a},"div")},de)},goLineLeftSmart:function(n){return n.extendSelectionsBy(function(i){var a=n.cursorCoords(i.head,"div").top+5,l=n.coordsChar({left:0,top:a},"div");return l.ch<n.getLine(l.line).search(/\S/)?Sm(n,i.head):l},de)},goLineUp:function(n){return n.moveV(-1,"line")},goLineDown:function(n){return n.moveV(1,"line")},goPageUp:function(n){return n.moveV(-1,"page")},goPageDown:function(n){return n.moveV(1,"page")},goCharLeft:function(n){return n.moveH(-1,"char")},goCharRight:function(n){return n.moveH(1,"char")},goColumnLeft:function(n){return n.moveH(-1,"column")},goColumnRight:function(n){return n.moveH(1,"column")},goWordLeft:function(n){return n.moveH(-1,"word")},goGroupRight:function(n){return n.moveH(1,"group")},goGroupLeft:function(n){return n.moveH(-1,"group")},goWordRight:function(n){return n.moveH(1,"word")},delCharBefore:function(n){return n.deleteH(-1,"codepoint")},delCharAfter:function(n){return n.deleteH(1,"char")},delWordBefore:function(n){return n.deleteH(-1,"word")},delWordAfter:function(n){return n.deleteH(1,"word")},delGroupBefore:function(n){return n.deleteH(-1,"group")},delGroupAfter:function(n){return n.deleteH(1,"group")},indentAuto:function(n){return n.indentSelection("smart")},indentMore:function(n){return n.indentSelection("add")},indentLess:function(n){return n.indentSelection("subtract")},insertTab:function(n){return n.replaceSelection(" ")},insertSoftTab:function(n){for(var i=[],a=n.listSelections(),l=n.options.tabSize,u=0;u<a.length;u++){var m=a[u].from(),y=re(n.getLine(m.line),m.ch,l);i.push(Ee(l-y%l))}n.replaceSelections(i)},defaultTab:function(n){n.somethingSelected()?n.indentSelection("add"):n.execCommand("insertTab")},transposeChars:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=[],l=0;l<i.length;l++)if(i[l].empty()){var u=i[l].head,m=qe(n.doc,u.line).text;if(m){if(u.ch==m.length&&(u=new fe(u.line,u.ch-1)),u.ch>0)u=new fe(u.line,u.ch+1),n.replaceRange(m.charAt(u.ch-1)+m.charAt(u.ch-2),fe(u.line,u.ch-2),u,"+transpose");else if(u.line>n.doc.first){var y=qe(n.doc,u.line-1).text;y&&(u=new fe(u.line,1),n.replaceRange(m.charAt(0)+n.doc.lineSeparator()+y.charAt(y.length-1),fe(u.line-1,y.length-1),u,"+transpose"))}}a.push(new gt(u,u))}n.setSelections(a)})},newlineAndIndent:function(n){return Wn(n,function(){for(var i=n.listSelections(),a=i.length-1;a>=0;a--)n.replaceRange(n.doc.lineSeparator(),i[a].anchor,i[a].head,"+input");i=n.listSelections();for(var l=0;l<i.length;l++)n.indentLine(i[l].from().line,null,!0);fs(n)})},openLine:function(n){return n.replaceSelection(` |
| 30 | `,"start")},toggleOverwrite:function(n){return n.toggleOverwrite()}};function km(n,i){var a=qe(n.doc,i),l=Sr(a);return l!=a&&(i=A(l)),td(!0,n,l,i,1)}function uS(n,i){var a=qe(n.doc,i),l=G1(a);return l!=a&&(i=A(l)),td(!0,n,a,i,-1)}function Sm(n,i){var a=km(n,i.line),l=qe(n.doc,a.line),u=lt(l,n.doc.direction);if(!u||u[0].level==0){var m=Math.max(a.ch,l.text.search(/\S/)),y=i.line==a.line&&i.ch<=m&&i.ch;return fe(a.line,y?0:m,a.sticky)}return a}function wc(n,i,a){if(typeof i=="string"&&(i=Ol[i],!i))return!1;n.display.input.ensurePolled();var l=n.display.shift,u=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),a&&(n.display.shift=!1),u=i(n)!=q}finally{n.display.shift=l,n.state.suppressEdits=!1}return u}function fS(n,i,a){for(var l=0;l<n.state.keyMaps.length;l++){var u=ys(i,n.state.keyMaps[l],a,n);if(u)return u}return n.options.extraKeys&&ys(i,n.options.extraKeys,a,n)||ys(i,n.options.keyMap,a,n)}var dS=new le;function Pl(n,i,a,l){var u=n.state.keySeq;if(u){if(bm(i))return"handled";if(/\'$/.test(i)?n.state.keySeq=null:dS.set(50,function(){n.state.keySeq==u&&(n.state.keySeq=null,n.display.input.reset())}),_m(n,u+" "+i,a,l))return!0}return _m(n,i,a,l)}function _m(n,i,a,l){var u=fS(n,i,l);return u=="multi"&&(n.state.keySeq=i),u=="handled"&&Jt(n,"keyHandled",n,i,a),(u=="handled"||u=="multi")&&(cn(a),Df(n)),!!u}function Tm(n,i){var a=xm(i,!0);return a?i.shiftKey&&!n.state.keySeq?Pl(n,"Shift-"+a,i,function(l){return wc(n,l,!0)})||Pl(n,a,i,function(l){if(typeof l=="string"?/^go[A-Z]/.test(l):l.motion)return wc(n,l)}):Pl(n,a,i,function(l){return wc(n,l)}):!1}function hS(n,i,a){return Pl(n,"'"+a+"'",i,function(l){return wc(n,l,!0)})}var nd=null;function Cm(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&(i.curOp.focus=be(je(i)),!Rt(i,n))){h&&p<11&&n.keyCode==27&&(n.returnValue=!1);var a=n.keyCode;i.display.shift=a==16||n.shiftKey;var l=Tm(i,n);E&&(nd=l?a:null,!l&&a==88&&!Ka&&($?n.metaKey:n.ctrlKey)&&i.replaceSelection("",null,"cut")),s&&!$&&!l&&a==46&&n.shiftKey&&!n.ctrlKey&&document.execCommand&&document.execCommand("cut"),a==18&&!/\bCodeMirror-crosshair\b/.test(i.display.lineDiv.className)&&pS(i)}}function pS(n){var i=n.display.lineDiv;Se(i,"CodeMirror-crosshair");function a(l){(l.keyCode==18||!l.altKey)&&(N(i,"CodeMirror-crosshair"),an(document,"keyup",a),an(document,"mouseover",a))}Xe(document,"keyup",a),Xe(document,"mouseover",a)}function Em(n){n.keyCode==16&&(this.doc.sel.shift=!1),Rt(this,n)}function Am(n){var i=this;if(!(n.target&&n.target!=i.display.input.getField())&&!(li(i.display,n)||Rt(i,n)||n.ctrlKey&&!n.altKey||$&&n.metaKey)){var a=n.keyCode,l=n.charCode;if(E&&a==nd){nd=null,cn(n);return}if(!(E&&(!n.which||n.which<10)&&Tm(i,n))){var u=String.fromCharCode(l??a);u!="\b"&&(hS(i,n,u)||i.display.input.onKeyPress(n))}}}var gS=400,rd=function(n,i,a){this.time=n,this.pos=i,this.button=a};rd.prototype.compare=function(n,i,a){return this.time+gS>n&&Ie(i,this.pos)==0&&a==this.button};var Rl,$l;function mS(n,i){var a=+new Date;return $l&&$l.compare(a,n,i)?(Rl=$l=null,"triple"):Rl&&Rl.compare(a,n,i)?($l=new rd(a,n,i),Rl=null,"double"):(Rl=new rd(a,n,i),$l=null,"single")}function Lm(n){var i=this,a=i.display;if(!(Rt(i,n)||a.activeTouch&&a.input.supportsTouch())){if(a.input.ensurePolled(),a.shift=n.shiftKey,li(a,n)){g||(a.scroller.draggable=!1,setTimeout(function(){return a.scroller.draggable=!0},100));return}if(!id(i,n)){var l=ko(i,n),u=br(n),m=l?mS(l,u):"single";Pe(i).focus(),u==1&&i.state.selectingText&&i.state.selectingText(n),!(l&&vS(i,u,l,m,n))&&(u==1?l?bS(i,l,m,n):sl(n)==a.scroller&&cn(n):u==2?(l&&pc(i.doc,l),setTimeout(function(){return a.input.focus()},20)):u==3&&(G?i.display.input.onContextMenu(n):zf(i)))}}}function vS(n,i,a,l,u){var m="Click";return l=="double"?m="Double"+m:l=="triple"&&(m="Triple"+m),m=(i==1?"Left":i==2?"Middle":"Right")+m,Pl(n,wm(m,u),u,function(y){if(typeof y=="string"&&(y=Ol[y]),!y)return!1;var x=!1;try{n.isReadOnly()&&(n.state.suppressEdits=!0),x=y(n,a)!=q}finally{n.state.suppressEdits=!1}return x})}function yS(n,i,a){var l=n.getOption("configureMouse"),u=l?l(n,i,a):{};if(u.unit==null){var m=W?a.shiftKey&&a.metaKey:a.altKey;u.unit=m?"rectangle":i=="single"?"char":i=="double"?"word":"line"}return(u.extend==null||n.doc.extend)&&(u.extend=n.doc.extend||a.shiftKey),u.addNew==null&&(u.addNew=$?a.metaKey:a.ctrlKey),u.moveOnDrag==null&&(u.moveOnDrag=!($?a.altKey:a.ctrlKey)),u}function bS(n,i,a,l){h?setTimeout(F(Mg,n),0):n.curOp.focus=be(je(n));var u=yS(n,a,l),m=n.doc.sel,y;n.options.dragDrop&&mf&&!n.isReadOnly()&&a=="single"&&(y=m.contains(i))>-1&&(Ie((y=m.ranges[y]).from(),i)<0||i.xRel>0)&&(Ie(y.to(),i)>0||i.xRel<0)?wS(n,l,i,u):xS(n,l,i,u)}function wS(n,i,a,l){var u=n.display,m=!1,y=Qt(n,function(T){g&&(u.scroller.draggable=!1),n.state.draggingText=!1,n.state.delayingBlurEvent&&(n.hasFocus()?n.state.delayingBlurEvent=!1:zf(n)),an(u.wrapper.ownerDocument,"mouseup",y),an(u.wrapper.ownerDocument,"mousemove",x),an(u.scroller,"dragstart",S),an(u.scroller,"drop",y),m||(cn(T),l.addNew||pc(n.doc,a,null,null,l.extend),g&&!L||h&&p==9?setTimeout(function(){u.wrapper.ownerDocument.body.focus({preventScroll:!0}),u.input.focus()},20):u.input.focus())}),x=function(T){m=m||Math.abs(i.clientX-T.clientX)+Math.abs(i.clientY-T.clientY)>=10},S=function(){return m=!0};g&&(u.scroller.draggable=!0),n.state.draggingText=y,y.copy=!l.moveOnDrag,Xe(u.wrapper.ownerDocument,"mouseup",y),Xe(u.wrapper.ownerDocument,"mousemove",x),Xe(u.scroller,"dragstart",S),Xe(u.scroller,"drop",y),n.state.delayingBlurEvent=!0,setTimeout(function(){return u.input.focus()},20),u.scroller.dragDrop&&u.scroller.dragDrop()}function Mm(n,i,a){if(a=="char")return new gt(i,i);if(a=="word")return n.findWordAt(i);if(a=="line")return new gt(fe(i.line,0),tt(n.doc,fe(i.line+1,0)));var l=a(n,i);return new gt(l.from,l.to)}function xS(n,i,a,l){h&&zf(n);var u=n.display,m=n.doc;cn(i);var y,x,S=m.sel,T=S.ranges;if(l.addNew&&!l.extend?(x=m.sel.contains(a),x>-1?y=T[x]:y=new gt(a,a)):(y=m.sel.primary(),x=m.sel.primIndex),l.unit=="rectangle")l.addNew||(y=new gt(a,a)),a=ko(n,i,!0,!0),x=-1;else{var H=Mm(n,a,l.unit);l.extend?y=Zf(y,H.anchor,H.head,l.extend):y=H}l.addNew?x==-1?(x=T.length,un(m,Tr(n,T.concat([y]),x),{scroll:!1,origin:"*mouse"})):T.length>1&&T[x].empty()&&l.unit=="char"&&!l.extend?(un(m,Tr(n,T.slice(0,x).concat(T.slice(x+1)),0),{scroll:!1,origin:"*mouse"}),S=m.sel):Jf(m,x,y,he):(x=0,un(m,new er([y],0),he),S=m.sel);var V=a;function se(Me){if(Ie(V,Me)!=0)if(V=Me,l.unit=="rectangle"){for(var ze=[],Ye=n.options.tabSize,Ue=re(qe(m,a.line).text,a.ch,Ye),st=re(qe(m,Me.line).text,Me.ch,Ye),St=Math.min(Ue,st),tn=Math.max(Ue,st),Ot=Math.min(a.line,Me.line),qn=Math.min(n.lastLine(),Math.max(a.line,Me.line));Ot<=qn;Ot++){var Cn=qe(m,Ot).text,Ut=ge(Cn,St,Ye);St==tn?ze.push(new gt(fe(Ot,Ut),fe(Ot,Ut))):Cn.length>Ut&&ze.push(new gt(fe(Ot,Ut),fe(Ot,ge(Cn,tn,Ye))))}ze.length||ze.push(new gt(a,a)),un(m,Tr(n,S.ranges.slice(0,x).concat(ze),x),{origin:"*mouse",scroll:!1}),n.scrollIntoView(Me)}else{var En=y,sn=Mm(n,Me,l.unit),Kt=En.anchor,Vt;Ie(sn.anchor,Kt)>0?(Vt=sn.head,Kt=is(En.from(),sn.anchor)):(Vt=sn.anchor,Kt=Sn(En.to(),sn.head));var It=S.ranges.slice(0);It[x]=kS(n,new gt(tt(m,Kt),Vt)),un(m,Tr(n,It,x),he)}}var te=u.wrapper.getBoundingClientRect(),pe=0;function we(Me){var ze=++pe,Ye=ko(n,Me,!0,l.unit=="rectangle");if(Ye)if(Ie(Ye,V)!=0){n.curOp.focus=be(je(n)),se(Ye);var Ue=ac(u,m);(Ye.line>=Ue.to||Ye.line<Ue.from)&&setTimeout(Qt(n,function(){pe==ze&&we(Me)}),150)}else{var st=Me.clientY<te.top?-20:Me.clientY>te.bottom?20:0;st&&setTimeout(Qt(n,function(){pe==ze&&(u.scroller.scrollTop+=st,we(Me))}),50)}}function Te(Me){n.state.selectingText=!1,pe=1/0,Me&&(cn(Me),u.input.focus()),an(u.wrapper.ownerDocument,"mousemove",Le),an(u.wrapper.ownerDocument,"mouseup",De),m.history.lastSelOrigin=null}var Le=Qt(n,function(Me){Me.buttons===0||!br(Me)?Te(Me):we(Me)}),De=Qt(n,Te);n.state.selectingText=De,Xe(u.wrapper.ownerDocument,"mousemove",Le),Xe(u.wrapper.ownerDocument,"mouseup",De)}function kS(n,i){var a=i.anchor,l=i.head,u=qe(n.doc,a.line);if(Ie(a,l)==0&&a.sticky==l.sticky)return i;var m=lt(u);if(!m)return i;var y=Bt(m,a.ch,a.sticky),x=m[y];if(x.from!=a.ch&&x.to!=a.ch)return i;var S=y+(x.from==a.ch==(x.level!=1)?0:1);if(S==0||S==m.length)return i;var T;if(l.line!=a.line)T=(l.line-a.line)*(n.doc.direction=="ltr"?1:-1)>0;else{var H=Bt(m,l.ch,l.sticky),V=H-y||(l.ch-a.ch)*(x.level==1?-1:1);H==S-1||H==S?T=V<0:T=V>0}var se=m[S+(T?-1:0)],te=T==(se.level==1),pe=te?se.from:se.to,we=te?"after":"before";return a.ch==pe&&a.sticky==we?i:new gt(new fe(a.line,pe,we),l)}function Nm(n,i,a,l){var u,m;if(i.touches)u=i.touches[0].clientX,m=i.touches[0].clientY;else try{u=i.clientX,m=i.clientY}catch{return!1}if(u>=Math.floor(n.display.gutters.getBoundingClientRect().right))return!1;l&&cn(i);var y=n.display,x=y.lineDiv.getBoundingClientRect();if(m>x.bottom||!Bn(n,a))return kn(i);m-=x.top-y.viewOffset;for(var S=0;S<n.display.gutterSpecs.length;++S){var T=y.gutters.childNodes[S];if(T&&T.getBoundingClientRect().right>=u){var H=U(n.doc,m),V=n.display.gutterSpecs[S];return Pt(n,a,n,H,V.className,i),kn(i)}}}function id(n,i){return Nm(n,i,"gutterClick",!0)}function Om(n,i){li(n.display,i)||SS(n,i)||Rt(n,i,"contextmenu")||G||n.display.input.onContextMenu(i)}function SS(n,i){return Bn(n,"gutterContextMenu")?Nm(n,i,"gutterContextMenu",!1):!1}function Pm(n){n.display.wrapper.className=n.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+n.options.theme.replace(/(^|\s)\s*/g," cm-s-"),gl(n)}var ws={toString:function(){return"CodeMirror.Init"}},Rm={},xc={};function _S(n){var i=n.optionHandlers;function a(l,u,m,y){n.defaults[l]=u,m&&(i[l]=y?function(x,S,T){T!=ws&&m(x,S,T)}:m)}n.defineOption=a,n.Init=ws,a("value","",function(l,u){return l.setValue(u)},!0),a("mode",null,function(l,u){l.doc.modeOption=u,Kf(l)},!0),a("indentUnit",2,Kf,!0),a("indentWithTabs",!1),a("smartIndent",!0),a("tabSize",4,function(l){Sl(l),gl(l),_n(l)},!0),a("lineSeparator",null,function(l,u){if(l.doc.lineSep=u,!!u){var m=[],y=l.doc.first;l.doc.iter(function(S){for(var T=0;;){var H=S.text.indexOf(u,T);if(H==-1)break;T=H+u.length,m.push(fe(y,H))}y++});for(var x=m.length-1;x>=0;x--)ms(l.doc,u,m[x],fe(m[x].line,m[x].ch+u.length))}}),a("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(l,u,m){l.state.specialChars=new RegExp(u.source+(u.test(" ")?"":"| "),"g"),m!=ws&&l.refresh()}),a("specialCharPlaceholder",Q1,function(l){return l.refresh()},!0),a("electricChars",!0),a("inputStyle",_?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),a("spellcheck",!1,function(l,u){return l.getInputField().spellcheck=u},!0),a("autocorrect",!1,function(l,u){return l.getInputField().autocorrect=u},!0),a("autocapitalize",!1,function(l,u){return l.getInputField().autocapitalize=u},!0),a("rtlMoveVisually",!ne),a("wholeLineUpdateBefore",!0),a("theme","default",function(l){Pm(l),kl(l)},!0),a("keyMap","default",function(l,u,m){var y=bc(u),x=m!=ws&&bc(m);x&&x.detach&&x.detach(l,y),y.attach&&y.attach(l,x||null)}),a("extraKeys",null),a("configureMouse",null),a("lineWrapping",!1,CS,!0),a("gutters",[],function(l,u){l.display.gutterSpecs=Vf(u,l.options.lineNumbers),kl(l)},!0),a("fixedGutter",!0,function(l,u){l.display.gutters.style.left=u?Rf(l.display)+"px":"0",l.refresh()},!0),a("coverGutterNextToScrollbar",!1,function(l){return ds(l)},!0),a("scrollbarStyle","native",function(l){Ig(l),ds(l),l.display.scrollbars.setScrollTop(l.doc.scrollTop),l.display.scrollbars.setScrollLeft(l.doc.scrollLeft)},!0),a("lineNumbers",!1,function(l,u){l.display.gutterSpecs=Vf(l.options.gutters,u),kl(l)},!0),a("firstLineNumber",1,kl,!0),a("lineNumberFormatter",function(l){return l},kl,!0),a("showCursorWhenSelecting",!1,ml,!0),a("resetSelectionOnContextMenu",!0),a("lineWiseCopyCut",!0),a("pasteLinesPerSelection",!0),a("selectionsMayTouch",!1),a("readOnly",!1,function(l,u){u=="nocursor"&&(us(l),l.display.input.blur()),l.display.input.readOnlyChanged(u)}),a("screenReaderLabel",null,function(l,u){u=u===""?null:u,l.display.input.screenReaderLabelChanged(u)}),a("disableInput",!1,function(l,u){u||l.display.input.reset()},!0),a("dragDrop",!0,TS),a("allowDropFileTypes",null),a("cursorBlinkRate",530),a("cursorScrollMargin",0),a("cursorHeight",1,ml,!0),a("singleCursorHeightPerLine",!0,ml,!0),a("workTime",100),a("workDelay",100),a("flattenSpans",!0,Sl,!0),a("addModeClass",!1,Sl,!0),a("pollInterval",100),a("undoDepth",200,function(l,u){return l.doc.history.undoDepth=u}),a("historyEventDelay",1250),a("viewportMargin",10,function(l){return l.refresh()},!0),a("maxHighlightLength",1e4,Sl,!0),a("moveInputWithCursor",!0,function(l,u){u||l.display.input.resetPosition()}),a("tabindex",null,function(l,u){return l.display.input.getField().tabIndex=u||""}),a("autofocus",null),a("direction","ltr",function(l,u){return l.doc.setDirection(u)},!0),a("phrases",null)}function TS(n,i,a){var l=a&&a!=ws;if(!i!=!l){var u=n.display.dragFunctions,m=i?Xe:an;m(n.display.scroller,"dragstart",u.start),m(n.display.scroller,"dragenter",u.enter),m(n.display.scroller,"dragover",u.over),m(n.display.scroller,"dragleave",u.leave),m(n.display.scroller,"drop",u.drop)}}function CS(n){n.options.lineWrapping?(Se(n.display.wrapper,"CodeMirror-wrap"),n.display.sizer.style.minWidth="",n.display.sizerWidth=null):(N(n.display.wrapper,"CodeMirror-wrap"),_f(n)),$f(n),_n(n),gl(n),setTimeout(function(){return ds(n)},100)}function Ct(n,i){var a=this;if(!(this instanceof Ct))return new Ct(n,i);this.options=i=i?Y(i):{},Y(Rm,i,!1);var l=i.value;typeof l=="string"?l=new Tn(l,i.mode,null,i.lineSeparator,i.direction):i.mode&&(l.modeOption=i.mode),this.doc=l;var u=new Ct.inputStyles[i.inputStyle](this),m=this.display=new Fk(n,l,u,i);m.wrapper.CodeMirror=this,Pm(this),i.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Ig(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new le,keySeq:null,specialChars:null},i.autofocus&&!_&&m.input.focus(),h&&p<11&&setTimeout(function(){return a.display.input.reset(!0)},20),ES(this),iS(),Co(this),this.curOp.forceUpdate=!0,Vg(this,l),i.autofocus&&!_||this.hasFocus()?setTimeout(function(){a.hasFocus()&&!a.state.focused&&Ff(a)},20):us(this);for(var y in xc)xc.hasOwnProperty(y)&&xc[y](this,i[y],ws);Fg(this),i.finishInit&&i.finishInit(this);for(var x=0;x<od.length;++x)od[x](this);Eo(this),g&&i.lineWrapping&&getComputedStyle(m.lineDiv).textRendering=="optimizelegibility"&&(m.lineDiv.style.textRendering="auto")}Ct.defaults=Rm,Ct.optionHandlers=xc;function ES(n){var i=n.display;Xe(i.scroller,"mousedown",Qt(n,Lm)),h&&p<11?Xe(i.scroller,"dblclick",Qt(n,function(S){if(!Rt(n,S)){var T=ko(n,S);if(!(!T||id(n,S)||li(n.display,S))){cn(S);var H=n.findWordAt(T);pc(n.doc,H.anchor,H.head)}}})):Xe(i.scroller,"dblclick",function(S){return Rt(n,S)||cn(S)}),Xe(i.scroller,"contextmenu",function(S){return Om(n,S)}),Xe(i.input.getField(),"contextmenu",function(S){i.scroller.contains(S.target)||Om(n,S)});var a,l={end:0};function u(){i.activeTouch&&(a=setTimeout(function(){return i.activeTouch=null},1e3),l=i.activeTouch,l.end=+new Date)}function m(S){if(S.touches.length!=1)return!1;var T=S.touches[0];return T.radiusX<=1&&T.radiusY<=1}function y(S,T){if(T.left==null)return!0;var H=T.left-S.left,V=T.top-S.top;return H*H+V*V>400}Xe(i.scroller,"touchstart",function(S){if(!Rt(n,S)&&!m(S)&&!id(n,S)){i.input.ensurePolled(),clearTimeout(a);var T=+new Date;i.activeTouch={start:T,moved:!1,prev:T-l.end<=300?l:null},S.touches.length==1&&(i.activeTouch.left=S.touches[0].pageX,i.activeTouch.top=S.touches[0].pageY)}}),Xe(i.scroller,"touchmove",function(){i.activeTouch&&(i.activeTouch.moved=!0)}),Xe(i.scroller,"touchend",function(S){var T=i.activeTouch;if(T&&!li(i,S)&&T.left!=null&&!T.moved&&new Date-T.start<300){var H=n.coordsChar(i.activeTouch,"page"),V;!T.prev||y(T,T.prev)?V=new gt(H,H):!T.prev.prev||y(T,T.prev.prev)?V=n.findWordAt(H):V=new gt(fe(H.line,0),tt(n.doc,fe(H.line+1,0))),n.setSelection(V.anchor,V.head),n.focus(),cn(S)}u()}),Xe(i.scroller,"touchcancel",u),Xe(i.scroller,"scroll",function(){i.scroller.clientHeight&&(yl(n,i.scroller.scrollTop),_o(n,i.scroller.scrollLeft,!0),Pt(n,"scroll",n))}),Xe(i.scroller,"mousewheel",function(S){return Wg(n,S)}),Xe(i.scroller,"DOMMouseScroll",function(S){return Wg(n,S)}),Xe(i.wrapper,"scroll",function(){return i.wrapper.scrollTop=i.wrapper.scrollLeft=0}),i.dragFunctions={enter:function(S){Rt(n,S)||Oi(S)},over:function(S){Rt(n,S)||(rS(n,S),Oi(S))},start:function(S){return nS(n,S)},drop:Qt(n,tS),leave:function(S){Rt(n,S)||mm(n)}};var x=i.input.getField();Xe(x,"keyup",function(S){return Em.call(n,S)}),Xe(x,"keydown",Qt(n,Cm)),Xe(x,"keypress",Qt(n,Am)),Xe(x,"focus",function(S){return Ff(n,S)}),Xe(x,"blur",function(S){return us(n,S)})}var od=[];Ct.defineInitHook=function(n){return od.push(n)};function Il(n,i,a,l){var u=n.doc,m;a==null&&(a="add"),a=="smart"&&(u.mode.indent?m=ul(n,i).state:a="prev");var y=n.options.tabSize,x=qe(u,i),S=re(x.text,null,y);x.stateAfter&&(x.stateAfter=null);var T=x.text.match(/^\s*/)[0],H;if(!l&&!/\S/.test(x.text))H=0,a="not";else if(a=="smart"&&(H=u.mode.indent(m,x.text.slice(T.length),x.text),H==q||H>150)){if(!l)return;a="prev"}a=="prev"?i>u.first?H=re(qe(u,i-1).text,null,y):H=0:a=="add"?H=S+n.options.indentUnit:a=="subtract"?H=S-n.options.indentUnit:typeof a=="number"&&(H=S+a),H=Math.max(0,H);var V="",se=0;if(n.options.indentWithTabs)for(var te=Math.floor(H/y);te;--te)se+=y,V+=" ";if(se<H&&(V+=Ee(H-se)),V!=T)return ms(u,V,fe(i,0),fe(i,T.length),"+input"),x.stateAfter=null,!0;for(var pe=0;pe<u.sel.ranges.length;pe++){var we=u.sel.ranges[pe];if(we.head.line==i&&we.head.ch<T.length){var Te=fe(i,T.length);Jf(u,pe,new gt(Te,Te));break}}}var Cr=null;function kc(n){Cr=n}function sd(n,i,a,l,u){var m=n.doc;n.display.shift=!1,l||(l=m.sel);var y=+new Date-200,x=u=="paste"||n.state.pasteIncoming>y,S=cr(i),T=null;if(x&&l.ranges.length>1)if(Cr&&Cr.text.join(` |
| 31 | `)==i){if(l.ranges.length%Cr.text.length==0){T=[];for(var H=0;H<Cr.text.length;H++)T.push(m.splitLines(Cr.text[H]))}}else S.length==l.ranges.length&&n.options.pasteLinesPerSelection&&(T=ye(S,function(Le){return[Le]}));for(var V=n.curOp.updateInput,se=l.ranges.length-1;se>=0;se--){var te=l.ranges[se],pe=te.from(),we=te.to();te.empty()&&(a&&a>0?pe=fe(pe.line,pe.ch-a):n.state.overwrite&&!x?we=fe(we.line,Math.min(qe(m,we.line).text.length,we.ch+xe(S).length)):x&&Cr&&Cr.lineWise&&Cr.text.join(` |
| 32 | `)==S.join(` |
| 33 | `)&&(pe=we=fe(pe.line,0)));var Te={from:pe,to:we,text:T?T[se%T.length]:S,origin:u||(x?"paste":n.state.cutIncoming>y?"cut":"+input")};gs(n.doc,Te),Jt(n,"inputRead",n,Te)}i&&!x&&Im(n,i),fs(n),n.curOp.updateInput<2&&(n.curOp.updateInput=V),n.curOp.typing=!0,n.state.pasteIncoming=n.state.cutIncoming=-1}function $m(n,i){var a=n.clipboardData&&n.clipboardData.getData("Text");if(a)return n.preventDefault(),!i.isReadOnly()&&!i.options.disableInput&&i.hasFocus()&&Wn(i,function(){return sd(i,a,0,null,"paste")}),!0}function Im(n,i){if(!(!n.options.electricChars||!n.options.smartIndent))for(var a=n.doc.sel,l=a.ranges.length-1;l>=0;l--){var u=a.ranges[l];if(!(u.head.ch>100||l&&a.ranges[l-1].head.line==u.head.line)){var m=n.getModeAt(u.head),y=!1;if(m.electricChars){for(var x=0;x<m.electricChars.length;x++)if(i.indexOf(m.electricChars.charAt(x))>-1){y=Il(n,u.head.line,"smart");break}}else m.electricInput&&m.electricInput.test(qe(n.doc,u.head.line).text.slice(0,u.head.ch))&&(y=Il(n,u.head.line,"smart"));y&&Jt(n,"electricInput",n,u.head.line)}}}function Dm(n){for(var i=[],a=[],l=0;l<n.doc.sel.ranges.length;l++){var u=n.doc.sel.ranges[l].head.line,m={anchor:fe(u,0),head:fe(u+1,0)};a.push(m),i.push(n.getRange(m.anchor,m.head))}return{text:i,ranges:a}}function ld(n,i,a,l){n.setAttribute("autocorrect",a?"on":"off"),n.setAttribute("autocapitalize",l?"on":"off"),n.setAttribute("spellcheck",!!i)}function zm(){var n=k("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; min-height: 1em; outline: none"),i=k("div",[n],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return g?n.style.width="1000px":n.setAttribute("wrap","off"),R&&(n.style.border="1px solid black"),i}function AS(n){var i=n.optionHandlers,a=n.helpers={};n.prototype={constructor:n,focus:function(){Pe(this).focus(),this.display.input.focus()},setOption:function(l,u){var m=this.options,y=m[l];m[l]==u&&l!="mode"||(m[l]=u,i.hasOwnProperty(l)&&Qt(this,i[l])(this,u,y),Pt(this,"optionChange",this,l))},getOption:function(l){return this.options[l]},getDoc:function(){return this.doc},addKeyMap:function(l,u){this.state.keyMaps[u?"push":"unshift"](bc(l))},removeKeyMap:function(l){for(var u=this.state.keyMaps,m=0;m<u.length;++m)if(u[m]==l||u[m].name==l)return u.splice(m,1),!0},addOverlay:vn(function(l,u){var m=l.token?l:n.getMode(this.options,l);if(m.startState)throw new Error("Overlays may not be stateful.");J(this.state.overlays,{mode:m,modeSpec:l,opaque:u&&u.opaque,priority:u&&u.priority||0},function(y){return y.priority}),this.state.modeGen++,_n(this)}),removeOverlay:vn(function(l){for(var u=this.state.overlays,m=0;m<u.length;++m){var y=u[m].modeSpec;if(y==l||typeof l=="string"&&y.name==l){u.splice(m,1),this.state.modeGen++,_n(this);return}}}),indentLine:vn(function(l,u,m){typeof u!="string"&&typeof u!="number"&&(u==null?u=this.options.smartIndent?"smart":"prev":u=u?"add":"subtract"),me(this.doc,l)&&Il(this,l,u,m)}),indentSelection:vn(function(l){for(var u=this.doc.sel.ranges,m=-1,y=0;y<u.length;y++){var x=u[y];if(x.empty())x.head.line>m&&(Il(this,x.head.line,l,!0),m=x.head.line,y==this.doc.sel.primIndex&&fs(this));else{var S=x.from(),T=x.to(),H=Math.max(m,S.line);m=Math.min(this.lastLine(),T.line-(T.ch?0:1))+1;for(var V=H;V<m;++V)Il(this,V,l);var se=this.doc.sel.ranges;S.ch==0&&u.length==se.length&&se[y].from().ch>0&&Jf(this.doc,y,new gt(S,se[y].to()),Q)}}}),getTokenAt:function(l,u){return Kp(this,l,u)},getLineTokens:function(l,u){return Kp(this,fe(l),u,!0)},getTokenTypeAt:function(l){l=tt(this.doc,l);var u=Up(this,qe(this.doc,l.line)),m=0,y=(u.length-1)/2,x=l.ch,S;if(x==0)S=u[2];else for(;;){var T=m+y>>1;if((T?u[T*2-1]:0)>=x)y=T;else if(u[T*2+1]<x)m=T+1;else{S=u[T*2+2];break}}var H=S?S.indexOf("overlay "):-1;return H<0?S:H==0?null:S.slice(0,H-1)},getModeAt:function(l){var u=this.doc.mode;return u.innerMode?n.innerMode(u,this.getTokenAt(l).state).mode:u},getHelper:function(l,u){return this.getHelpers(l,u)[0]},getHelpers:function(l,u){var m=[];if(!a.hasOwnProperty(u))return m;var y=a[u],x=this.getModeAt(l);if(typeof x[u]=="string")y[x[u]]&&m.push(y[x[u]]);else if(x[u])for(var S=0;S<x[u].length;S++){var T=y[x[u][S]];T&&m.push(T)}else x.helperType&&y[x.helperType]?m.push(y[x.helperType]):y[x.name]&&m.push(y[x.name]);for(var H=0;H<y._global.length;H++){var V=y._global[H];V.pred(x,this)&&ae(m,V.val)==-1&&m.push(V.val)}return m},getStateAfter:function(l,u){var m=this.doc;return l=Wp(m,l??m.first+m.size-1),ul(this,l+1,u).state},cursorCoords:function(l,u){var m,y=this.doc.sel.primary();return l==null?m=y.head:typeof l=="object"?m=tt(this.doc,l):m=l?y.from():y.to(),_r(this,m,u||"page")},charCoords:function(l,u){return ic(this,tt(this.doc,l),u||"page")},coordsChar:function(l,u){return l=Sg(this,l,u||"page"),Nf(this,l.left,l.top)},lineAtHeight:function(l,u){return l=Sg(this,{top:l,left:0},u||"page").top,U(this.doc,l+this.display.viewOffset)},heightAtLine:function(l,u,m){var y=!1,x;if(typeof l=="number"){var S=this.doc.first+this.doc.size-1;l<this.doc.first?l=this.doc.first:l>S&&(l=S,y=!0),x=qe(this.doc,l)}else x=l;return rc(this,x,{top:0,left:0},u||"page",m||y).top+(y?this.doc.height-si(x):0)},defaultTextHeight:function(){return as(this.display)},defaultCharWidth:function(){return cs(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(l,u,m,y,x){var S=this.display;l=_r(this,tt(this.doc,l));var T=l.bottom,H=l.left;if(u.style.position="absolute",u.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(u),S.sizer.appendChild(u),y=="over")T=l.top;else if(y=="above"||y=="near"){var V=Math.max(S.wrapper.clientHeight,this.doc.height),se=Math.max(S.sizer.clientWidth,S.lineSpace.clientWidth);(y=="above"||l.bottom+u.offsetHeight>V)&&l.top>u.offsetHeight?T=l.top-u.offsetHeight:l.bottom+u.offsetHeight<=V&&(T=l.bottom),H+u.offsetWidth>se&&(H=se-u.offsetWidth)}u.style.top=T+"px",u.style.left=u.style.right="",x=="right"?(H=S.sizer.clientWidth-u.offsetWidth,u.style.right="0px"):(x=="left"?H=0:x=="middle"&&(H=(S.sizer.clientWidth-u.offsetWidth)/2),u.style.left=H+"px"),m&&Tk(this,{left:H,top:T,right:H+u.offsetWidth,bottom:T+u.offsetHeight})},triggerOnKeyDown:vn(Cm),triggerOnKeyPress:vn(Am),triggerOnKeyUp:Em,triggerOnMouseDown:vn(Lm),execCommand:function(l){if(Ol.hasOwnProperty(l))return Ol[l].call(null,this)},triggerElectric:vn(function(l){Im(this,l)}),findPosH:function(l,u,m,y){var x=1;u<0&&(x=-1,u=-u);for(var S=tt(this.doc,l),T=0;T<u&&(S=ad(this.doc,S,x,m,y),!S.hitSide);++T);return S},moveH:vn(function(l,u){var m=this;this.extendSelectionsBy(function(y){return m.display.shift||m.doc.extend||y.empty()?ad(m.doc,y.head,l,u,m.options.rtlMoveVisually):l<0?y.from():y.to()},de)}),deleteH:vn(function(l,u){var m=this.doc.sel,y=this.doc;m.somethingSelected()?y.replaceSelection("",null,"+delete"):bs(this,function(x){var S=ad(y,x.head,l,u,!1);return l<0?{from:S,to:x.head}:{from:x.head,to:S}})}),findPosV:function(l,u,m,y){var x=1,S=y;u<0&&(x=-1,u=-u);for(var T=tt(this.doc,l),H=0;H<u;++H){var V=_r(this,T,"div");if(S==null?S=V.left:V.left=S,T=Fm(this,V,x,m),T.hitSide)break}return T},moveV:vn(function(l,u){var m=this,y=this.doc,x=[],S=!this.display.shift&&!y.extend&&y.sel.somethingSelected();if(y.extendSelectionsBy(function(H){if(S)return l<0?H.from():H.to();var V=_r(m,H.head,"div");H.goalColumn!=null&&(V.left=H.goalColumn),x.push(V.left);var se=Fm(m,V,l,u);return u=="page"&&H==y.sel.primary()&&Bf(m,ic(m,se,"div").top-V.top),se},de),x.length)for(var T=0;T<y.sel.ranges.length;T++)y.sel.ranges[T].goalColumn=x[T]}),findWordAt:function(l){var u=this.doc,m=qe(u,l.line).text,y=l.ch,x=l.ch;if(m){var S=this.getHelper(l,"wordChars");(l.sticky=="before"||x==m.length)&&y?--y:++x;for(var T=m.charAt(y),H=ct(T,S)?function(V){return ct(V,S)}:/\s/.test(T)?function(V){return/\s/.test(V)}:function(V){return!/\s/.test(V)&&!ct(V)};y>0&&H(m.charAt(y-1));)--y;for(;x<m.length&&H(m.charAt(x));)++x}return new gt(fe(l.line,y),fe(l.line,x))},toggleOverwrite:function(l){l!=null&&l==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?Se(this.display.cursorDiv,"CodeMirror-overwrite"):N(this.display.cursorDiv,"CodeMirror-overwrite"),Pt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==be(je(this))},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:vn(function(l,u){vl(this,l,u)}),getScrollInfo:function(){var l=this.display.scroller;return{left:l.scrollLeft,top:l.scrollTop,height:l.scrollHeight-qr(this)-this.display.barHeight,width:l.scrollWidth-qr(this)-this.display.barWidth,clientHeight:Ef(this),clientWidth:wo(this)}},scrollIntoView:vn(function(l,u){l==null?(l={from:this.doc.sel.primary().head,to:null},u==null&&(u=this.options.cursorScrollMargin)):typeof l=="number"?l={from:fe(l,0),to:null}:l.from==null&&(l={from:l,to:null}),l.to||(l.to=l.from),l.margin=u||0,l.from.line!=null?Ck(this,l):Og(this,l.from,l.to,l.margin)}),setSize:vn(function(l,u){var m=this,y=function(S){return typeof S=="number"||/^\d+$/.test(String(S))?S+"px":S};l!=null&&(this.display.wrapper.style.width=y(l)),u!=null&&(this.display.wrapper.style.height=y(u)),this.options.lineWrapping&&wg(this);var x=this.display.viewFrom;this.doc.iter(x,this.display.viewTo,function(S){if(S.widgets){for(var T=0;T<S.widgets.length;T++)if(S.widgets[T].noHScroll){Di(m,x,"widget");break}}++x}),this.curOp.forceUpdate=!0,Pt(this,"refresh",this)}),operation:function(l){return Wn(this,l)},startOperation:function(){return Co(this)},endOperation:function(){return Eo(this)},refresh:vn(function(){var l=this.display.cachedTextHeight;_n(this),this.curOp.forceUpdate=!0,gl(this),vl(this,this.doc.scrollLeft,this.doc.scrollTop),jf(this.display),(l==null||Math.abs(l-as(this.display))>.5||this.options.lineWrapping)&&$f(this),Pt(this,"refresh",this)}),swapDoc:vn(function(l){var u=this.doc;return u.cm=null,this.state.selectingText&&this.state.selectingText(),Vg(this,l),gl(this),this.display.input.reset(),vl(this,l.scrollLeft,l.scrollTop),this.curOp.forceScroll=!0,Jt(this,"swapDoc",this,u),u}),phrase:function(l){var u=this.options.phrases;return u&&Object.prototype.hasOwnProperty.call(u,l)?u[l]:l},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},yr(n),n.registerHelper=function(l,u,m){a.hasOwnProperty(l)||(a[l]=n[l]={_global:[]}),a[l][u]=m},n.registerGlobalHelper=function(l,u,m,y){n.registerHelper(l,u,y),a[l]._global.push({pred:m,val:y})}}function ad(n,i,a,l,u){var m=i,y=a,x=qe(n,i.line),S=u&&n.direction=="rtl"?-a:a;function T(){var De=i.line+S;return De<n.first||De>=n.first+n.size?!1:(i=new fe(De,i.ch,i.sticky),x=qe(n,De))}function H(De){var Me;if(l=="codepoint"){var ze=x.text.charCodeAt(i.ch+(a>0?0:-1));if(isNaN(ze))Me=null;else{var Ye=a>0?ze>=55296&&ze<56320:ze>=56320&&ze<57343;Me=new fe(i.line,Math.max(0,Math.min(x.text.length,i.ch+a*(Ye?2:1))),-a)}}else u?Me=cS(n.cm,x,i,a):Me=ed(x,i,a);if(Me==null)if(!De&&T())i=td(u,n.cm,x,i.line,S);else return!1;else i=Me;return!0}if(l=="char"||l=="codepoint")H();else if(l=="column")H(!0);else if(l=="word"||l=="group")for(var V=null,se=l=="group",te=n.cm&&n.cm.getHelper(i,"wordChars"),pe=!0;!(a<0&&!H(!pe));pe=!1){var we=x.text.charAt(i.ch)||` |
| 34 | `,Te=ct(we,te)?"w":se&&we==` |
| 35 | `?"n":!se||/\s/.test(we)?null:"p";if(se&&!pe&&!Te&&(Te="s"),V&&V!=Te){a<0&&(a=1,H(),i.sticky="after");break}if(Te&&(V=Te),a>0&&!H(!pe))break}var Le=mc(n,i,m,y,!0);return pt(m,Le)&&(Le.hitSide=!0),Le}function Fm(n,i,a,l){var u=n.doc,m=i.left,y;if(l=="page"){var x=Math.min(n.display.wrapper.clientHeight,Pe(n).innerHeight||u(n).documentElement.clientHeight),S=Math.max(x-.5*as(n.display),3);y=(a>0?i.bottom:i.top)+a*S}else l=="line"&&(y=a>0?i.bottom+3:i.top-3);for(var T;T=Nf(n,m,y),!!T.outside;){if(a<0?y<=0:y>=u.height){T.hitSide=!0;break}y+=a*5}return T}var yt=function(n){this.cm=n,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new le,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};yt.prototype.init=function(n){var i=this,a=this,l=a.cm,u=a.div=n.lineDiv;u.contentEditable=!0,ld(u,l.options.spellcheck,l.options.autocorrect,l.options.autocapitalize);function m(x){for(var S=x.target;S;S=S.parentNode){if(S==u)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(S.className))break}return!1}Xe(u,"paste",function(x){!m(x)||Rt(l,x)||$m(x,l)||p<=11&&setTimeout(Qt(l,function(){return i.updateFromDOM()}),20)}),Xe(u,"compositionstart",function(x){i.composing={data:x.data,done:!1}}),Xe(u,"compositionupdate",function(x){i.composing||(i.composing={data:x.data,done:!1})}),Xe(u,"compositionend",function(x){i.composing&&(x.data!=i.composing.data&&i.readFromDOMSoon(),i.composing.done=!0)}),Xe(u,"touchstart",function(){return a.forceCompositionEnd()}),Xe(u,"input",function(){i.composing||i.readFromDOMSoon()});function y(x){if(!(!m(x)||Rt(l,x))){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()}),x.type=="cut"&&l.replaceSelection("",null,"cut");else if(l.options.lineWiseCopyCut){var S=Dm(l);kc({lineWise:!0,text:S.text}),x.type=="cut"&&l.operation(function(){l.setSelections(S.ranges,0,Q),l.replaceSelection("",null,"cut")})}else return;if(x.clipboardData){x.clipboardData.clearData();var T=Cr.text.join(` |
| 36 | `);if(x.clipboardData.setData("Text",T),x.clipboardData.getData("Text")==T){x.preventDefault();return}}var H=zm(),V=H.firstChild;ld(V),l.display.lineSpace.insertBefore(H,l.display.lineSpace.firstChild),V.value=Cr.text.join(` |
| 37 | `);var se=be(Fe(u));Ae(V),setTimeout(function(){l.display.lineSpace.removeChild(H),se.focus(),se==u&&a.showPrimarySelection()},50)}}Xe(u,"copy",y),Xe(u,"cut",y)},yt.prototype.screenReaderLabelChanged=function(n){n?this.div.setAttribute("aria-label",n):this.div.removeAttribute("aria-label")},yt.prototype.prepareSelection=function(){var n=Lg(this.cm,!1);return n.focus=be(Fe(this.div))==this.div,n},yt.prototype.showSelection=function(n,i){!n||!this.cm.display.view.length||((n.focus||i)&&this.showPrimarySelection(),this.showMultipleSelections(n))},yt.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},yt.prototype.showPrimarySelection=function(){var n=this.getSelection(),i=this.cm,a=i.doc.sel.primary(),l=a.from(),u=a.to();if(i.display.viewTo==i.display.viewFrom||l.line>=i.display.viewTo||u.line<i.display.viewFrom){n.removeAllRanges();return}var m=Sc(i,n.anchorNode,n.anchorOffset),y=Sc(i,n.focusNode,n.focusOffset);if(!(m&&!m.bad&&y&&!y.bad&&Ie(is(m,y),l)==0&&Ie(Sn(m,y),u)==0)){var x=i.display.view,S=l.line>=i.display.viewFrom&&Hm(i,l)||{node:x[0].measure.map[2],offset:0},T=u.line<i.display.viewTo&&Hm(i,u);if(!T){var H=x[x.length-1].measure,V=H.maps?H.maps[H.maps.length-1]:H.map;T={node:V[V.length-1],offset:V[V.length-2]-V[V.length-3]}}if(!S||!T){n.removeAllRanges();return}var se=n.rangeCount&&n.getRangeAt(0),te;try{te=B(S.node,S.offset,T.offset,T.node)}catch{}te&&(!s&&i.state.focused?(n.collapse(S.node,S.offset),te.collapsed||(n.removeAllRanges(),n.addRange(te))):(n.removeAllRanges(),n.addRange(te)),se&&n.anchorNode==null?n.addRange(se):s&&this.startGracePeriod()),this.rememberSelection()}},yt.prototype.startGracePeriod=function(){var n=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){n.gracePeriod=!1,n.selectionChanged()&&n.cm.operation(function(){return n.cm.curOp.selectionChanged=!0})},20)},yt.prototype.showMultipleSelections=function(n){C(this.cm.display.cursorDiv,n.cursors),C(this.cm.display.selectionDiv,n.selection)},yt.prototype.rememberSelection=function(){var n=this.getSelection();this.lastAnchorNode=n.anchorNode,this.lastAnchorOffset=n.anchorOffset,this.lastFocusNode=n.focusNode,this.lastFocusOffset=n.focusOffset},yt.prototype.selectionInEditor=function(){var n=this.getSelection();if(!n.rangeCount)return!1;var i=n.getRangeAt(0).commonAncestorContainer;return ce(this.div,i)},yt.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||be(Fe(this.div))!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},yt.prototype.blur=function(){this.div.blur()},yt.prototype.getField=function(){return this.div},yt.prototype.supportsTouch=function(){return!0},yt.prototype.receivedFocus=function(){var n=this,i=this;this.selectionInEditor()?setTimeout(function(){return n.pollSelection()},20):Wn(this.cm,function(){return i.cm.curOp.selectionChanged=!0});function a(){i.cm.state.focused&&(i.pollSelection(),i.polling.set(i.cm.options.pollInterval,a))}this.polling.set(this.cm.options.pollInterval,a)},yt.prototype.selectionChanged=function(){var n=this.getSelection();return n.anchorNode!=this.lastAnchorNode||n.anchorOffset!=this.lastAnchorOffset||n.focusNode!=this.lastFocusNode||n.focusOffset!=this.lastFocusOffset},yt.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var n=this.getSelection(),i=this.cm;if(I&&b&&this.cm.display.gutterSpecs.length&&LS(n.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var a=Sc(i,n.anchorNode,n.anchorOffset),l=Sc(i,n.focusNode,n.focusOffset);a&&l&&Wn(i,function(){un(i.doc,Fi(a,l),Q),(a.bad||l.bad)&&(i.curOp.selectionChanged=!0)})}}},yt.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var n=this.cm,i=n.display,a=n.doc.sel.primary(),l=a.from(),u=a.to();if(l.ch==0&&l.line>n.firstLine()&&(l=fe(l.line-1,qe(n.doc,l.line-1).length)),u.ch==qe(n.doc,u.line).text.length&&u.line<n.lastLine()&&(u=fe(u.line+1,0)),l.line<i.viewFrom||u.line>i.viewTo-1)return!1;var m,y,x;l.line==i.viewFrom||(m=So(n,l.line))==0?(y=A(i.view[0].line),x=i.view[0].node):(y=A(i.view[m].line),x=i.view[m-1].node.nextSibling);var S=So(n,u.line),T,H;if(S==i.view.length-1?(T=i.viewTo-1,H=i.lineDiv.lastChild):(T=A(i.view[S+1].line)-1,H=i.view[S+1].node.previousSibling),!x)return!1;for(var V=n.doc.splitLines(MS(n,x,H,y,T)),se=ii(n.doc,fe(y,0),fe(T,qe(n.doc,T).text.length));V.length>1&&se.length>1;)if(xe(V)==xe(se))V.pop(),se.pop(),T--;else if(V[0]==se[0])V.shift(),se.shift(),y++;else break;for(var te=0,pe=0,we=V[0],Te=se[0],Le=Math.min(we.length,Te.length);te<Le&&we.charCodeAt(te)==Te.charCodeAt(te);)++te;for(var De=xe(V),Me=xe(se),ze=Math.min(De.length-(V.length==1?te:0),Me.length-(se.length==1?te:0));pe<ze&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)++pe;if(V.length==1&&se.length==1&&y==l.line)for(;te&&te>l.ch&&De.charCodeAt(De.length-pe-1)==Me.charCodeAt(Me.length-pe-1);)te--,pe++;V[V.length-1]=De.slice(0,De.length-pe).replace(/^\u200b+/,""),V[0]=V[0].slice(te).replace(/\u200b+$/,"");var Ye=fe(y,te),Ue=fe(T,se.length?xe(se).length-pe:0);if(V.length>1||V[0]||Ie(Ye,Ue))return ms(n.doc,V,Ye,Ue,"+input"),!0},yt.prototype.ensurePolled=function(){this.forceCompositionEnd()},yt.prototype.reset=function(){this.forceCompositionEnd()},yt.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},yt.prototype.readFromDOMSoon=function(){var n=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(n.readDOMTimeout=null,n.composing)if(n.composing.done)n.composing=null;else return;n.updateFromDOM()},80))},yt.prototype.updateFromDOM=function(){var n=this;(this.cm.isReadOnly()||!this.pollContent())&&Wn(this.cm,function(){return _n(n.cm)})},yt.prototype.setUneditable=function(n){n.contentEditable="false"},yt.prototype.onKeyPress=function(n){n.charCode==0||this.composing||(n.preventDefault(),this.cm.isReadOnly()||Qt(this.cm,sd)(this.cm,String.fromCharCode(n.charCode==null?n.keyCode:n.charCode),0))},yt.prototype.readOnlyChanged=function(n){this.div.contentEditable=String(n!="nocursor")},yt.prototype.onContextMenu=function(){},yt.prototype.resetPosition=function(){},yt.prototype.needsContentAttribute=!0;function Hm(n,i){var a=Af(n,i.line);if(!a||a.hidden)return null;var l=qe(n.doc,i.line),u=gg(a,l,i.line),m=lt(l,n.doc.direction),y="left";if(m){var x=Bt(m,i.ch);y=x%2?"right":"left"}var S=yg(u.map,i.ch,y);return S.offset=S.collapse=="right"?S.end:S.start,S}function LS(n){for(var i=n;i;i=i.parentNode)if(/CodeMirror-gutter-wrapper/.test(i.className))return!0;return!1}function xs(n,i){return i&&(n.bad=!0),n}function MS(n,i,a,l,u){var m="",y=!1,x=n.doc.lineSeparator(),S=!1;function T(te){return function(pe){return pe.id==te}}function H(){y&&(m+=x,S&&(m+=x),y=S=!1)}function V(te){te&&(H(),m+=te)}function se(te){if(te.nodeType==1){var pe=te.getAttribute("cm-text");if(pe){V(pe);return}var we=te.getAttribute("cm-marker"),Te;if(we){var Le=n.findMarks(fe(l,0),fe(u+1,0),T(+we));Le.length&&(Te=Le[0].find(0))&&V(ii(n.doc,Te.from,Te.to).join(x));return}if(te.getAttribute("contenteditable")=="false")return;var De=/^(pre|div|p|li|table|br)$/i.test(te.nodeName);if(!/^br$/i.test(te.nodeName)&&te.textContent.length==0)return;De&&H();for(var Me=0;Me<te.childNodes.length;Me++)se(te.childNodes[Me]);/^(pre|p)$/i.test(te.nodeName)&&(S=!0),De&&(y=!0)}else te.nodeType==3&&V(te.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;se(i),i!=a;)i=i.nextSibling,S=!1;return m}function Sc(n,i,a){var l;if(i==n.display.lineDiv){if(l=n.display.lineDiv.childNodes[a],!l)return xs(n.clipPos(fe(n.display.viewTo-1)),!0);i=null,a=0}else for(l=i;;l=l.parentNode){if(!l||l==n.display.lineDiv)return null;if(l.parentNode&&l.parentNode==n.display.lineDiv)break}for(var u=0;u<n.display.view.length;u++){var m=n.display.view[u];if(m.node==l)return NS(m,i,a)}}function NS(n,i,a){var l=n.text.firstChild,u=!1;if(!i||!ce(l,i))return xs(fe(A(n.line),0),!0);if(i==l&&(u=!0,i=l.childNodes[a],a=0,!i)){var m=n.rest?xe(n.rest):n.line;return xs(fe(A(m),m.text.length),u)}var y=i.nodeType==3?i:null,x=i;for(!y&&i.childNodes.length==1&&i.firstChild.nodeType==3&&(y=i.firstChild,a&&(a=y.nodeValue.length));x.parentNode!=l;)x=x.parentNode;var S=n.measure,T=S.maps;function H(Te,Le,De){for(var Me=-1;Me<(T?T.length:0);Me++)for(var ze=Me<0?S.map:T[Me],Ye=0;Ye<ze.length;Ye+=3){var Ue=ze[Ye+2];if(Ue==Te||Ue==Le){var st=A(Me<0?n.line:n.rest[Me]),St=ze[Ye]+De;return(De<0||Ue!=Te)&&(St=ze[Ye+(De?1:0)]),fe(st,St)}}}var V=H(y,x,a);if(V)return xs(V,u);for(var se=x.nextSibling,te=y?y.nodeValue.length-a:0;se;se=se.nextSibling){if(V=H(se,se.firstChild,0),V)return xs(fe(V.line,V.ch-te),u);te+=se.textContent.length}for(var pe=x.previousSibling,we=a;pe;pe=pe.previousSibling){if(V=H(pe,pe.firstChild,-1),V)return xs(fe(V.line,V.ch+we),u);we+=pe.textContent.length}}var Wt=function(n){this.cm=n,this.prevInput="",this.pollingFast=!1,this.polling=new le,this.hasSelection=!1,this.composing=null,this.resetting=!1};Wt.prototype.init=function(n){var i=this,a=this,l=this.cm;this.createField(n);var u=this.textarea;n.wrapper.insertBefore(this.wrapper,n.wrapper.firstChild),R&&(u.style.width="0px"),Xe(u,"input",function(){h&&p>=9&&i.hasSelection&&(i.hasSelection=null),a.poll()}),Xe(u,"paste",function(y){Rt(l,y)||$m(y,l)||(l.state.pasteIncoming=+new Date,a.fastPoll())});function m(y){if(!Rt(l,y)){if(l.somethingSelected())kc({lineWise:!1,text:l.getSelections()});else if(l.options.lineWiseCopyCut){var x=Dm(l);kc({lineWise:!0,text:x.text}),y.type=="cut"?l.setSelections(x.ranges,null,Q):(a.prevInput="",u.value=x.text.join(` |
| 38 | `),Ae(u))}else return;y.type=="cut"&&(l.state.cutIncoming=+new Date)}}Xe(u,"cut",m),Xe(u,"copy",m),Xe(n.scroller,"paste",function(y){if(!(li(n,y)||Rt(l,y))){if(!u.dispatchEvent){l.state.pasteIncoming=+new Date,a.focus();return}var x=new Event("paste");x.clipboardData=y.clipboardData,u.dispatchEvent(x)}}),Xe(n.lineSpace,"selectstart",function(y){li(n,y)||cn(y)}),Xe(u,"compositionstart",function(){var y=l.getCursor("from");a.composing&&a.composing.range.clear(),a.composing={start:y,range:l.markText(y,l.getCursor("to"),{className:"CodeMirror-composing"})}}),Xe(u,"compositionend",function(){a.composing&&(a.poll(),a.composing.range.clear(),a.composing=null)})},Wt.prototype.createField=function(n){this.wrapper=zm(),this.textarea=this.wrapper.firstChild;var i=this.cm.options;ld(this.textarea,i.spellcheck,i.autocorrect,i.autocapitalize)},Wt.prototype.screenReaderLabelChanged=function(n){n?this.textarea.setAttribute("aria-label",n):this.textarea.removeAttribute("aria-label")},Wt.prototype.prepareSelection=function(){var n=this.cm,i=n.display,a=n.doc,l=Lg(n);if(n.options.moveInputWithCursor){var u=_r(n,a.sel.primary().head,"div"),m=i.wrapper.getBoundingClientRect(),y=i.lineDiv.getBoundingClientRect();l.teTop=Math.max(0,Math.min(i.wrapper.clientHeight-10,u.top+y.top-m.top)),l.teLeft=Math.max(0,Math.min(i.wrapper.clientWidth-10,u.left+y.left-m.left))}return l},Wt.prototype.showSelection=function(n){var i=this.cm,a=i.display;C(a.cursorDiv,n.cursors),C(a.selectionDiv,n.selection),n.teTop!=null&&(this.wrapper.style.top=n.teTop+"px",this.wrapper.style.left=n.teLeft+"px")},Wt.prototype.reset=function(n){if(!(this.contextMenuPending||this.composing&&n)){var i=this.cm;if(this.resetting=!0,i.somethingSelected()){this.prevInput="";var a=i.getSelection();this.textarea.value=a,i.state.focused&&Ae(this.textarea),h&&p>=9&&(this.hasSelection=a)}else n||(this.prevInput=this.textarea.value="",h&&p>=9&&(this.hasSelection=null));this.resetting=!1}},Wt.prototype.getField=function(){return this.textarea},Wt.prototype.supportsTouch=function(){return!1},Wt.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!_||be(Fe(this.textarea))!=this.textarea))try{this.textarea.focus()}catch{}},Wt.prototype.blur=function(){this.textarea.blur()},Wt.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Wt.prototype.receivedFocus=function(){this.slowPoll()},Wt.prototype.slowPoll=function(){var n=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){n.poll(),n.cm.state.focused&&n.slowPoll()})},Wt.prototype.fastPoll=function(){var n=!1,i=this;i.pollingFast=!0;function a(){var l=i.poll();!l&&!n?(n=!0,i.polling.set(60,a)):(i.pollingFast=!1,i.slowPoll())}i.polling.set(20,a)},Wt.prototype.poll=function(){var n=this,i=this.cm,a=this.textarea,l=this.prevInput;if(this.contextMenuPending||this.resetting||!i.state.focused||Ri(a)&&!l&&!this.composing||i.isReadOnly()||i.options.disableInput||i.state.keySeq)return!1;var u=a.value;if(u==l&&!i.somethingSelected())return!1;if(h&&p>=9&&this.hasSelection===u||$&&/[\uf700-\uf7ff]/.test(u))return i.display.input.reset(),!1;if(i.doc.sel==i.display.selForContextMenu){var m=u.charCodeAt(0);if(m==8203&&!l&&(l=""),m==8666)return this.reset(),this.cm.execCommand("undo")}for(var y=0,x=Math.min(l.length,u.length);y<x&&l.charCodeAt(y)==u.charCodeAt(y);)++y;return Wn(i,function(){sd(i,u.slice(y),l.length-y,null,n.composing?"*compose":null),u.length>1e3||u.indexOf(` |
| 39 | `)>-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},Wt.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Wt.prototype.onKeyPress=function(){h&&p>=9&&(this.hasSelection=null),this.fastPoll()},Wt.prototype.onContextMenu=function(n){var i=this,a=i.cm,l=a.display,u=i.textarea;i.contextMenuPending&&i.contextMenuPending();var m=ko(a,n),y=l.scroller.scrollTop;if(!m||E)return;var x=a.options.resetSelectionOnContextMenu;x&&a.doc.sel.contains(m)==-1&&Qt(a,un)(a.doc,Fi(m),Q);var S=u.style.cssText,T=i.wrapper.style.cssText,H=i.wrapper.offsetParent.getBoundingClientRect();i.wrapper.style.cssText="position: static",u.style.cssText=`position: absolute; width: 30px; height: 30px; |
| 40 | top: `+(n.clientY-H.top-5)+"px; left: "+(n.clientX-H.left-5)+`px; |
| 41 | z-index: 1000; background: `+(h?"rgba(255, 255, 255, .05)":"transparent")+`; |
| 42 | outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var V;g&&(V=u.ownerDocument.defaultView.scrollY),l.input.focus(),g&&u.ownerDocument.defaultView.scrollTo(null,V),l.input.reset(),a.somethingSelected()||(u.value=i.prevInput=" "),i.contextMenuPending=te,l.selForContextMenu=a.doc.sel,clearTimeout(l.detectingSelectAll);function se(){if(u.selectionStart!=null){var we=a.somethingSelected(),Te=""+(we?u.value:"");u.value="⇚",u.value=Te,i.prevInput=we?"":"",u.selectionStart=1,u.selectionEnd=Te.length,l.selForContextMenu=a.doc.sel}}function te(){if(i.contextMenuPending==te&&(i.contextMenuPending=!1,i.wrapper.style.cssText=T,u.style.cssText=S,h&&p<9&&l.scrollbars.setScrollTop(l.scroller.scrollTop=y),u.selectionStart!=null)){(!h||h&&p<9)&&se();var we=0,Te=function(){l.selForContextMenu==a.doc.sel&&u.selectionStart==0&&u.selectionEnd>0&&i.prevInput==""?Qt(a,om)(a):we++<10?l.detectingSelectAll=setTimeout(Te,500):(l.selForContextMenu=null,l.input.reset())};l.detectingSelectAll=setTimeout(Te,200)}}if(h&&p>=9&&se(),G){Oi(n);var pe=function(){an(window,"mouseup",pe),setTimeout(te,20)};Xe(window,"mouseup",pe)}else setTimeout(te,50)},Wt.prototype.readOnlyChanged=function(n){n||this.reset(),this.textarea.disabled=n=="nocursor",this.textarea.readOnly=!!n},Wt.prototype.setUneditable=function(){},Wt.prototype.needsContentAttribute=!1;function OS(n,i){if(i=i?Y(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=be(Fe(n));i.autofocus=a==n||n.getAttribute("autofocus")!=null&&a==document.body}function l(){n.value=x.getValue()}var u;if(n.form&&(Xe(n.form,"submit",l),!i.leaveSubmitMethodAlone)){var m=n.form;u=m.submit;try{var y=m.submit=function(){l(),m.submit=u,m.submit(),m.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&&(an(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 PS(n){n.off=an,n.on=Xe,n.wheelEventPixels=Hk,n.Doc=Tn,n.splitLines=cr,n.countColumn=re,n.findColumn=ge,n.isWordChar=Je,n.Pass=q,n.signal=Pt,n.Line=os,n.changeEnd=Hi,n.scrollbarModel=$g,n.Pos=fe,n.cmpPos=Ie,n.modes=Qo,n.mimeModes=xr,n.resolveMode=es,n.getMode=ts,n.modeExtensions=$i,n.extendMode=ns,n.copyState=Br,n.startState=rs,n.innerMode=al,n.commands=Ol,n.keyMap=ci,n.keyName=xm,n.isModifierKey=bm,n.lookupKey=ys,n.normalizeKeyMap=aS,n.StringStream=$t,n.SharedTextMarker=Ll,n.TextMarker=Wi,n.LineWidget=Al,n.e_preventDefault=cn,n.e_stopPropagation=Zo,n.e_stop=Oi,n.addClass=Se,n.contains=ce,n.rmClass=N,n.keyNames=qi}_S(Ct),AS(Ct);var RS="iter insert remove copy getEditor constructor".split(" ");for(var _c in Tn.prototype)Tn.prototype.hasOwnProperty(_c)&&ae(RS,_c)<0&&(Ct.prototype[_c]=(function(n){return function(){return n.apply(this.doc,arguments)}})(Tn.prototype[_c]));return yr(Tn),Ct.inputStyles={textarea:Wt,contenteditable:yt},Ct.defineMode=function(n){!Ct.defaults.mode&&n!="null"&&(Ct.defaults.mode=n),kr.apply(this,arguments)},Ct.defineMIME=bo,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){Tn.prototype[n]=i},Ct.fromTextArea=OS,PS(Ct),Ct.version="5.65.18",Ct}))})(Yc)),Yc.exports}var ML=vo();const NL=ax(ML);var Ad={},Er={};const OL="Á",PL="á",RL="Ă",$L="ă",IL="∾",DL="∿",zL="∾̳",FL="Â",HL="â",BL="´",WL="А",qL="а",jL="Æ",UL="æ",VL="",GL="𝔄",KL="𝔞",XL="À",YL="à",ZL="ℵ",JL="ℵ",QL="Α",eM="α",tM="Ā",nM="ā",rM="⨿",iM="&",oM="&",sM="⩕",lM="⩓",aM="∧",cM="⩜",uM="⩘",fM="⩚",dM="∠",hM="⦤",pM="∠",gM="⦨",mM="⦩",vM="⦪",yM="⦫",bM="⦬",wM="⦭",xM="⦮",kM="⦯",SM="∡",_M="∟",TM="⊾",CM="⦝",EM="∢",AM="Å",LM="⍼",MM="Ą",NM="ą",OM="𝔸",PM="𝕒",RM="⩯",$M="≈",IM="⩰",DM="≊",zM="≋",FM="'",HM="",BM="≈",WM="≊",qM="Å",jM="å",UM="𝒜",VM="𝒶",GM="≔",KM="*",XM="≈",YM="≍",ZM="Ã",JM="ã",QM="Ä",eN="ä",tN="∳",nN="⨑",rN="≌",iN="϶",oN="‵",sN="∽",lN="⋍",aN="∖",cN="⫧",uN="⊽",fN="⌅",dN="⌆",hN="⌅",pN="⎵",gN="⎶",mN="≌",vN="Б",yN="б",bN="„",wN="∵",xN="∵",kN="∵",SN="⦰",_N="϶",TN="ℬ",CN="ℬ",EN="Β",AN="β",LN="ℶ",MN="≬",NN="𝔅",ON="𝔟",PN="⋂",RN="◯",$N="⋃",IN="⨀",DN="⨁",zN="⨂",FN="⨆",HN="★",BN="▽",WN="△",qN="⨄",jN="⋁",UN="⋀",VN="⤍",GN="⧫",KN="▪",XN="▴",YN="▾",ZN="◂",JN="▸",QN="␣",e2="▒",t2="░",n2="▓",r2="█",i2="=⃥",o2="≡⃥",s2="⫭",l2="⌐",a2="𝔹",c2="𝕓",u2="⊥",f2="⊥",d2="⋈",h2="⧉",p2="┐",g2="╕",m2="╖",v2="╗",y2="┌",b2="╒",w2="╓",x2="╔",k2="─",S2="═",_2="┬",T2="╤",C2="╥",E2="╦",A2="┴",L2="╧",M2="╨",N2="╩",O2="⊟",P2="⊞",R2="⊠",$2="┘",I2="╛",D2="╜",z2="╝",F2="└",H2="╘",B2="╙",W2="╚",q2="│",j2="║",U2="┼",V2="╪",G2="╫",K2="╬",X2="┤",Y2="╡",Z2="╢",J2="╣",Q2="├",eO="╞",tO="╟",nO="╠",rO="‵",iO="˘",oO="˘",sO="¦",lO="𝒷",aO="ℬ",cO="⁏",uO="∽",fO="⋍",dO="⧅",hO="\\",pO="⟈",gO="•",mO="•",vO="≎",yO="⪮",bO="≏",wO="≎",xO="≏",kO="Ć",SO="ć",_O="⩄",TO="⩉",CO="⩋",EO="∩",AO="⋒",LO="⩇",MO="⩀",NO="ⅅ",OO="∩︀",PO="⁁",RO="ˇ",$O="ℭ",IO="⩍",DO="Č",zO="č",FO="Ç",HO="ç",BO="Ĉ",WO="ĉ",qO="∰",jO="⩌",UO="⩐",VO="Ċ",GO="ċ",KO="¸",XO="¸",YO="⦲",ZO="¢",JO="·",QO="·",eP="𝔠",tP="ℭ",nP="Ч",rP="ч",iP="✓",oP="✓",sP="Χ",lP="χ",aP="ˆ",cP="≗",uP="↺",fP="↻",dP="⊛",hP="⊚",pP="⊝",gP="⊙",mP="®",vP="Ⓢ",yP="⊖",bP="⊕",wP="⊗",xP="○",kP="⧃",SP="≗",_P="⨐",TP="⫯",CP="⧂",EP="∲",AP="”",LP="’",MP="♣",NP="♣",OP=":",PP="∷",RP="⩴",$P="≔",IP="≔",DP=",",zP="@",FP="∁",HP="∘",BP="∁",WP="ℂ",qP="≅",jP="⩭",UP="≡",VP="∮",GP="∯",KP="∮",XP="𝕔",YP="ℂ",ZP="∐",JP="∐",QP="©",eR="©",tR="℗",nR="∳",rR="↵",iR="✗",oR="⨯",sR="𝒞",lR="𝒸",aR="⫏",cR="⫑",uR="⫐",fR="⫒",dR="⋯",hR="⤸",pR="⤵",gR="⋞",mR="⋟",vR="↶",yR="⤽",bR="⩈",wR="⩆",xR="≍",kR="∪",SR="⋓",_R="⩊",TR="⊍",CR="⩅",ER="∪︀",AR="↷",LR="⤼",MR="⋞",NR="⋟",OR="⋎",PR="⋏",RR="¤",$R="↶",IR="↷",DR="⋎",zR="⋏",FR="∲",HR="∱",BR="⌭",WR="†",qR="‡",jR="ℸ",UR="↓",VR="↡",GR="⇓",KR="‐",XR="⫤",YR="⊣",ZR="⤏",JR="˝",QR="Ď",e$="ď",t$="Д",n$="д",r$="‡",i$="⇊",o$="ⅅ",s$="ⅆ",l$="⤑",a$="⩷",c$="°",u$="∇",f$="Δ",d$="δ",h$="⦱",p$="⥿",g$="𝔇",m$="𝔡",v$="⥥",y$="⇃",b$="⇂",w$="´",x$="˙",k$="˝",S$="`",_$="˜",T$="⋄",C$="⋄",E$="⋄",A$="♦",L$="♦",M$="¨",N$="ⅆ",O$="ϝ",P$="⋲",R$="÷",$$="÷",I$="⋇",D$="⋇",z$="Ђ",F$="ђ",H$="⌞",B$="⌍",W$="$",q$="𝔻",j$="𝕕",U$="¨",V$="˙",G$="⃜",K$="≐",X$="≑",Y$="≐",Z$="∸",J$="∔",Q$="⊡",eI="⌆",tI="∯",nI="¨",rI="⇓",iI="⇐",oI="⇔",sI="⫤",lI="⟸",aI="⟺",cI="⟹",uI="⇒",fI="⊨",dI="⇑",hI="⇕",pI="∥",gI="⤓",mI="↓",vI="↓",yI="⇓",bI="⇵",wI="̑",xI="⇊",kI="⇃",SI="⇂",_I="⥐",TI="⥞",CI="⥖",EI="↽",AI="⥟",LI="⥗",MI="⇁",NI="↧",OI="⊤",PI="⤐",RI="⌟",$I="⌌",II="𝒟",DI="𝒹",zI="Ѕ",FI="ѕ",HI="⧶",BI="Đ",WI="đ",qI="⋱",jI="▿",UI="▾",VI="⇵",GI="⥯",KI="⦦",XI="Џ",YI="џ",ZI="⟿",JI="É",QI="é",eD="⩮",tD="Ě",nD="ě",rD="Ê",iD="ê",oD="≖",sD="≕",lD="Э",aD="э",cD="⩷",uD="Ė",fD="ė",dD="≑",hD="ⅇ",pD="≒",gD="𝔈",mD="𝔢",vD="⪚",yD="È",bD="è",wD="⪖",xD="⪘",kD="⪙",SD="∈",_D="⏧",TD="ℓ",CD="⪕",ED="⪗",AD="Ē",LD="ē",MD="∅",ND="∅",OD="◻",PD="∅",RD="▫",$D=" ",ID=" ",DD=" ",zD="Ŋ",FD="ŋ",HD=" ",BD="Ę",WD="ę",qD="𝔼",jD="𝕖",UD="⋕",VD="⧣",GD="⩱",KD="ε",XD="Ε",YD="ε",ZD="ϵ",JD="≖",QD="≕",ez="≂",tz="⪖",nz="⪕",rz="⩵",iz="=",oz="≂",sz="≟",lz="⇌",az="≡",cz="⩸",uz="⧥",fz="⥱",dz="≓",hz="ℯ",pz="ℰ",gz="≐",mz="⩳",vz="≂",yz="Η",bz="η",wz="Ð",xz="ð",kz="Ë",Sz="ë",_z="€",Tz="!",Cz="∃",Ez="∃",Az="ℰ",Lz="ⅇ",Mz="ⅇ",Nz="≒",Oz="Ф",Pz="ф",Rz="♀",$z="ffi",Iz="ff",Dz="ffl",zz="𝔉",Fz="𝔣",Hz="fi",Bz="◼",Wz="▪",qz="fj",jz="♭",Uz="fl",Vz="▱",Gz="ƒ",Kz="𝔽",Xz="𝕗",Yz="∀",Zz="∀",Jz="⋔",Qz="⫙",eF="ℱ",tF="⨍",nF="½",rF="⅓",iF="¼",oF="⅕",sF="⅙",lF="⅛",aF="⅔",cF="⅖",uF="¾",fF="⅗",dF="⅜",hF="⅘",pF="⅚",gF="⅝",mF="⅞",vF="⁄",yF="⌢",bF="𝒻",wF="ℱ",xF="ǵ",kF="Γ",SF="γ",_F="Ϝ",TF="ϝ",CF="⪆",EF="Ğ",AF="ğ",LF="Ģ",MF="Ĝ",NF="ĝ",OF="Г",PF="г",RF="Ġ",$F="ġ",IF="≥",DF="≧",zF="⪌",FF="⋛",HF="≥",BF="≧",WF="⩾",qF="⪩",jF="⩾",UF="⪀",VF="⪂",GF="⪄",KF="⋛︀",XF="⪔",YF="𝔊",ZF="𝔤",JF="≫",QF="⋙",eH="⋙",tH="ℷ",nH="Ѓ",rH="ѓ",iH="⪥",oH="≷",sH="⪒",lH="⪤",aH="⪊",cH="⪊",uH="⪈",fH="≩",dH="⪈",hH="≩",pH="⋧",gH="𝔾",mH="𝕘",vH="`",yH="≥",bH="⋛",wH="≧",xH="⪢",kH="≷",SH="⩾",_H="≳",TH="𝒢",CH="ℊ",EH="≳",AH="⪎",LH="⪐",MH="⪧",NH="⩺",OH=">",PH=">",RH="≫",$H="⋗",IH="⦕",DH="⩼",zH="⪆",FH="⥸",HH="⋗",BH="⋛",WH="⪌",qH="≷",jH="≳",UH="≩︀",VH="≩︀",GH="ˇ",KH=" ",XH="½",YH="ℋ",ZH="Ъ",JH="ъ",QH="⥈",e3="↔",t3="⇔",n3="↭",r3="^",i3="ℏ",o3="Ĥ",s3="ĥ",l3="♥",a3="♥",c3="…",u3="⊹",f3="𝔥",d3="ℌ",h3="ℋ",p3="⤥",g3="⤦",m3="⇿",v3="∻",y3="↩",b3="↪",w3="𝕙",x3="ℍ",k3="―",S3="─",_3="𝒽",T3="ℋ",C3="ℏ",E3="Ħ",A3="ħ",L3="≎",M3="≏",N3="⁃",O3="‐",P3="Í",R3="í",$3="",I3="Î",D3="î",z3="И",F3="и",H3="İ",B3="Е",W3="е",q3="¡",j3="⇔",U3="𝔦",V3="ℑ",G3="Ì",K3="ì",X3="ⅈ",Y3="⨌",Z3="∭",J3="⧜",Q3="℩",eB="IJ",tB="ij",nB="Ī",rB="ī",iB="ℑ",oB="ⅈ",sB="ℐ",lB="ℑ",aB="ı",cB="ℑ",uB="⊷",fB="Ƶ",dB="⇒",hB="℅",pB="∞",gB="⧝",mB="ı",vB="⊺",yB="∫",bB="∬",wB="ℤ",xB="∫",kB="⊺",SB="⋂",_B="⨗",TB="⨼",CB="",EB="",AB="Ё",LB="ё",MB="Į",NB="į",OB="𝕀",PB="𝕚",RB="Ι",$B="ι",IB="⨼",DB="¿",zB="𝒾",FB="ℐ",HB="∈",BB="⋵",WB="⋹",qB="⋴",jB="⋳",UB="∈",VB="",GB="Ĩ",KB="ĩ",XB="І",YB="і",ZB="Ï",JB="ï",QB="Ĵ",e5="ĵ",t5="Й",n5="й",r5="𝔍",i5="𝔧",o5="ȷ",s5="𝕁",l5="𝕛",a5="𝒥",c5="𝒿",u5="Ј",f5="ј",d5="Є",h5="є",p5="Κ",g5="κ",m5="ϰ",v5="Ķ",y5="ķ",b5="К",w5="к",x5="𝔎",k5="𝔨",S5="ĸ",_5="Х",T5="х",C5="Ќ",E5="ќ",A5="𝕂",L5="𝕜",M5="𝒦",N5="𝓀",O5="⇚",P5="Ĺ",R5="ĺ",$5="⦴",I5="ℒ",D5="Λ",z5="λ",F5="⟨",H5="⟪",B5="⦑",W5="⟨",q5="⪅",j5="ℒ",U5="«",V5="⇤",G5="⤟",K5="←",X5="↞",Y5="⇐",Z5="⤝",J5="↩",Q5="↫",e8="⤹",t8="⥳",n8="↢",r8="⤙",i8="⤛",o8="⪫",s8="⪭",l8="⪭︀",a8="⤌",c8="⤎",u8="❲",f8="{",d8="[",h8="⦋",p8="⦏",g8="⦍",m8="Ľ",v8="ľ",y8="Ļ",b8="ļ",w8="⌈",x8="{",k8="Л",S8="л",_8="⤶",T8="“",C8="„",E8="⥧",A8="⥋",L8="↲",M8="≤",N8="≦",O8="⟨",P8="⇤",R8="←",$8="←",I8="⇐",D8="⇆",z8="↢",F8="⌈",H8="⟦",B8="⥡",W8="⥙",q8="⇃",j8="⌊",U8="↽",V8="↼",G8="⇇",K8="↔",X8="↔",Y8="⇔",Z8="⇆",J8="⇋",Q8="↭",eW="⥎",tW="↤",nW="⊣",rW="⥚",iW="⋋",oW="⧏",sW="⊲",lW="⊴",aW="⥑",cW="⥠",uW="⥘",fW="↿",dW="⥒",hW="↼",pW="⪋",gW="⋚",mW="≤",vW="≦",yW="⩽",bW="⪨",wW="⩽",xW="⩿",kW="⪁",SW="⪃",_W="⋚︀",TW="⪓",CW="⪅",EW="⋖",AW="⋚",LW="⪋",MW="⋚",NW="≦",OW="≶",PW="≶",RW="⪡",$W="≲",IW="⩽",DW="≲",zW="⥼",FW="⌊",HW="𝔏",BW="𝔩",WW="≶",qW="⪑",jW="⥢",UW="↽",VW="↼",GW="⥪",KW="▄",XW="Љ",YW="љ",ZW="⇇",JW="≪",QW="⋘",e4="⌞",t4="⇚",n4="⥫",r4="◺",i4="Ŀ",o4="ŀ",s4="⎰",l4="⎰",a4="⪉",c4="⪉",u4="⪇",f4="≨",d4="⪇",h4="≨",p4="⋦",g4="⟬",m4="⇽",v4="⟦",y4="⟵",b4="⟵",w4="⟸",x4="⟷",k4="⟷",S4="⟺",_4="⟼",T4="⟶",C4="⟶",E4="⟹",A4="↫",L4="↬",M4="⦅",N4="𝕃",O4="𝕝",P4="⨭",R4="⨴",$4="∗",I4="_",D4="↙",z4="↘",F4="◊",H4="◊",B4="⧫",W4="(",q4="⦓",j4="⇆",U4="⌟",V4="⇋",G4="⥭",K4="",X4="⊿",Y4="‹",Z4="𝓁",J4="ℒ",Q4="↰",eq="↰",tq="≲",nq="⪍",rq="⪏",iq="[",oq="‘",sq="‚",lq="Ł",aq="ł",cq="⪦",uq="⩹",fq="<",dq="<",hq="≪",pq="⋖",gq="⋋",mq="⋉",vq="⥶",yq="⩻",bq="◃",wq="⊴",xq="◂",kq="⦖",Sq="⥊",_q="⥦",Tq="≨︀",Cq="≨︀",Eq="¯",Aq="♂",Lq="✠",Mq="✠",Nq="↦",Oq="↦",Pq="↧",Rq="↤",$q="↥",Iq="▮",Dq="⨩",zq="М",Fq="м",Hq="—",Bq="∺",Wq="∡",qq=" ",jq="ℳ",Uq="𝔐",Vq="𝔪",Gq="℧",Kq="µ",Xq="*",Yq="⫰",Zq="∣",Jq="·",Qq="⊟",ej="−",tj="∸",nj="⨪",rj="∓",ij="⫛",oj="…",sj="∓",lj="⊧",aj="𝕄",cj="𝕞",uj="∓",fj="𝓂",dj="ℳ",hj="∾",pj="Μ",gj="μ",mj="⊸",vj="⊸",yj="∇",bj="Ń",wj="ń",xj="∠⃒",kj="≉",Sj="⩰̸",_j="≋̸",Tj="ʼn",Cj="≉",Ej="♮",Aj="ℕ",Lj="♮",Mj=" ",Nj="≎̸",Oj="≏̸",Pj="⩃",Rj="Ň",$j="ň",Ij="Ņ",Dj="ņ",zj="≇",Fj="⩭̸",Hj="⩂",Bj="Н",Wj="н",qj="–",jj="⤤",Uj="↗",Vj="⇗",Gj="↗",Kj="≠",Xj="≐̸",Yj="",Zj="",Jj="",Qj="",eU="≢",tU="⤨",nU="≂̸",rU="≫",iU="≪",oU=` |
| 43 | `,sU="∄",lU="∄",aU="𝔑",cU="𝔫",uU="≧̸",fU="≱",dU="≱",hU="≧̸",pU="⩾̸",gU="⩾̸",mU="⋙̸",vU="≵",yU="≫⃒",bU="≯",wU="≯",xU="≫̸",kU="↮",SU="⇎",_U="⫲",TU="∋",CU="⋼",EU="⋺",AU="∋",LU="Њ",MU="њ",NU="↚",OU="⇍",PU="‥",RU="≦̸",$U="≰",IU="↚",DU="⇍",zU="↮",FU="⇎",HU="≰",BU="≦̸",WU="⩽̸",qU="⩽̸",jU="≮",UU="⋘̸",VU="≴",GU="≪⃒",KU="≮",XU="⋪",YU="⋬",ZU="≪̸",JU="∤",QU="",e6=" ",t6="𝕟",n6="ℕ",r6="⫬",i6="¬",o6="≢",s6="≭",l6="∦",a6="∉",c6="≠",u6="≂̸",f6="∄",d6="≯",h6="≱",p6="≧̸",g6="≫̸",m6="≹",v6="⩾̸",y6="≵",b6="≎̸",w6="≏̸",x6="∉",k6="⋵̸",S6="⋹̸",_6="∉",T6="⋷",C6="⋶",E6="⧏̸",A6="⋪",L6="⋬",M6="≮",N6="≰",O6="≸",P6="≪̸",R6="⩽̸",$6="≴",I6="⪢̸",D6="⪡̸",z6="∌",F6="∌",H6="⋾",B6="⋽",W6="⊀",q6="⪯̸",j6="⋠",U6="∌",V6="⧐̸",G6="⋫",K6="⋭",X6="⊏̸",Y6="⋢",Z6="⊐̸",J6="⋣",Q6="⊂⃒",eV="⊈",tV="⊁",nV="⪰̸",rV="⋡",iV="≿̸",oV="⊃⃒",sV="⊉",lV="≁",aV="≄",cV="≇",uV="≉",fV="∤",dV="∦",hV="∦",pV="⫽⃥",gV="∂̸",mV="⨔",vV="⊀",yV="⋠",bV="⊀",wV="⪯̸",xV="⪯̸",kV="⤳̸",SV="↛",_V="⇏",TV="↝̸",CV="↛",EV="⇏",AV="⋫",LV="⋭",MV="⊁",NV="⋡",OV="⪰̸",PV="𝒩",RV="𝓃",$V="∤",IV="∦",DV="≁",zV="≄",FV="≄",HV="∤",BV="∦",WV="⋢",qV="⋣",jV="⊄",UV="⫅̸",VV="⊈",GV="⊂⃒",KV="⊈",XV="⫅̸",YV="⊁",ZV="⪰̸",JV="⊅",QV="⫆̸",eG="⊉",tG="⊃⃒",nG="⊉",rG="⫆̸",iG="≹",oG="Ñ",sG="ñ",lG="≸",aG="⋪",cG="⋬",uG="⋫",fG="⋭",dG="Ν",hG="ν",pG="#",gG="№",mG=" ",vG="≍⃒",yG="⊬",bG="⊭",wG="⊮",xG="⊯",kG="≥⃒",SG=">⃒",_G="⤄",TG="⧞",CG="⤂",EG="≤⃒",AG="<⃒",LG="⊴⃒",MG="⤃",NG="⊵⃒",OG="∼⃒",PG="⤣",RG="↖",$G="⇖",IG="↖",DG="⤧",zG="Ó",FG="ó",HG="⊛",BG="Ô",WG="ô",qG="⊚",jG="О",UG="о",VG="⊝",GG="Ő",KG="ő",XG="⨸",YG="⊙",ZG="⦼",JG="Œ",QG="œ",e9="⦿",t9="𝔒",n9="𝔬",r9="˛",i9="Ò",o9="ò",s9="⧁",l9="⦵",a9="Ω",c9="∮",u9="↺",f9="⦾",d9="⦻",h9="‾",p9="⧀",g9="Ō",m9="ō",v9="Ω",y9="ω",b9="Ο",w9="ο",x9="⦶",k9="⊖",S9="𝕆",_9="𝕠",T9="⦷",C9="“",E9="‘",A9="⦹",L9="⊕",M9="↻",N9="⩔",O9="∨",P9="⩝",R9="ℴ",$9="ℴ",I9="ª",D9="º",z9="⊶",F9="⩖",H9="⩗",B9="⩛",W9="Ⓢ",q9="𝒪",j9="ℴ",U9="Ø",V9="ø",G9="⊘",K9="Õ",X9="õ",Y9="⨶",Z9="⨷",J9="⊗",Q9="Ö",eK="ö",tK="⌽",nK="‾",rK="⏞",iK="⎴",oK="⏜",sK="¶",lK="∥",aK="∥",cK="⫳",uK="⫽",fK="∂",dK="∂",hK="П",pK="п",gK="%",mK=".",vK="‰",yK="⊥",bK="‱",wK="𝔓",xK="𝔭",kK="Φ",SK="φ",_K="ϕ",TK="ℳ",CK="☎",EK="Π",AK="π",LK="⋔",MK="ϖ",NK="ℏ",OK="ℎ",PK="ℏ",RK="⨣",$K="⊞",IK="⨢",DK="+",zK="∔",FK="⨥",HK="⩲",BK="±",WK="±",qK="⨦",jK="⨧",UK="±",VK="ℌ",GK="⨕",KK="𝕡",XK="ℙ",YK="£",ZK="⪷",JK="⪻",QK="≺",e7="≼",t7="⪷",n7="≺",r7="≼",i7="≺",o7="⪯",s7="≼",l7="≾",a7="⪯",c7="⪹",u7="⪵",f7="⋨",d7="⪯",h7="⪳",p7="≾",g7="′",m7="″",v7="ℙ",y7="⪹",b7="⪵",w7="⋨",x7="∏",k7="∏",S7="⌮",_7="⌒",T7="⌓",C7="∝",E7="∝",A7="∷",L7="∝",M7="≾",N7="⊰",O7="𝒫",P7="𝓅",R7="Ψ",$7="ψ",I7=" ",D7="𝔔",z7="𝔮",F7="⨌",H7="𝕢",B7="ℚ",W7="⁗",q7="𝒬",j7="𝓆",U7="ℍ",V7="⨖",G7="?",K7="≟",X7='"',Y7='"',Z7="⇛",J7="∽̱",Q7="Ŕ",eX="ŕ",tX="√",nX="⦳",rX="⟩",iX="⟫",oX="⦒",sX="⦥",lX="⟩",aX="»",cX="⥵",uX="⇥",fX="⤠",dX="⤳",hX="→",pX="↠",gX="⇒",mX="⤞",vX="↪",yX="↬",bX="⥅",wX="⥴",xX="⤖",kX="↣",SX="↝",_X="⤚",TX="⤜",CX="∶",EX="ℚ",AX="⤍",LX="⤏",MX="⤐",NX="❳",OX="}",PX="]",RX="⦌",$X="⦎",IX="⦐",DX="Ř",zX="ř",FX="Ŗ",HX="ŗ",BX="⌉",WX="}",qX="Р",jX="р",UX="⤷",VX="⥩",GX="”",KX="”",XX="↳",YX="ℜ",ZX="ℛ",JX="ℜ",QX="ℝ",eY="ℜ",tY="▭",nY="®",rY="®",iY="∋",oY="⇋",sY="⥯",lY="⥽",aY="⌋",cY="𝔯",uY="ℜ",fY="⥤",dY="⇁",hY="⇀",pY="⥬",gY="Ρ",mY="ρ",vY="ϱ",yY="⟩",bY="⇥",wY="→",xY="→",kY="⇒",SY="⇄",_Y="↣",TY="⌉",CY="⟧",EY="⥝",AY="⥕",LY="⇂",MY="⌋",NY="⇁",OY="⇀",PY="⇄",RY="⇌",$Y="⇉",IY="↝",DY="↦",zY="⊢",FY="⥛",HY="⋌",BY="⧐",WY="⊳",qY="⊵",jY="⥏",UY="⥜",VY="⥔",GY="↾",KY="⥓",XY="⇀",YY="˚",ZY="≓",JY="⇄",QY="⇌",eZ="",tZ="⎱",nZ="⎱",rZ="⫮",iZ="⟭",oZ="⇾",sZ="⟧",lZ="⦆",aZ="𝕣",cZ="ℝ",uZ="⨮",fZ="⨵",dZ="⥰",hZ=")",pZ="⦔",gZ="⨒",mZ="⇉",vZ="⇛",yZ="›",bZ="𝓇",wZ="ℛ",xZ="↱",kZ="↱",SZ="]",_Z="’",TZ="’",CZ="⋌",EZ="⋊",AZ="▹",LZ="⊵",MZ="▸",NZ="⧎",OZ="⧴",PZ="⥨",RZ="℞",$Z="Ś",IZ="ś",DZ="‚",zZ="⪸",FZ="Š",HZ="š",BZ="⪼",WZ="≻",qZ="≽",jZ="⪰",UZ="⪴",VZ="Ş",GZ="ş",KZ="Ŝ",XZ="ŝ",YZ="⪺",ZZ="⪶",JZ="⋩",QZ="⨓",eJ="≿",tJ="С",nJ="с",rJ="⊡",iJ="⋅",oJ="⩦",sJ="⤥",lJ="↘",aJ="⇘",cJ="↘",uJ="§",fJ=";",dJ="⤩",hJ="∖",pJ="∖",gJ="✶",mJ="𝔖",vJ="𝔰",yJ="⌢",bJ="♯",wJ="Щ",xJ="щ",kJ="Ш",SJ="ш",_J="↓",TJ="←",CJ="∣",EJ="∥",AJ="→",LJ="↑",MJ="",NJ="Σ",OJ="σ",PJ="ς",RJ="ς",$J="∼",IJ="⩪",DJ="≃",zJ="≃",FJ="⪞",HJ="⪠",BJ="⪝",WJ="⪟",qJ="≆",jJ="⨤",UJ="⥲",VJ="←",GJ="∘",KJ="∖",XJ="⨳",YJ="⧤",ZJ="∣",JJ="⌣",QJ="⪪",eQ="⪬",tQ="⪬︀",nQ="Ь",rQ="ь",iQ="⌿",oQ="⧄",sQ="/",lQ="𝕊",aQ="𝕤",cQ="♠",uQ="♠",fQ="∥",dQ="⊓",hQ="⊓︀",pQ="⊔",gQ="⊔︀",mQ="√",vQ="⊏",yQ="⊑",bQ="⊏",wQ="⊑",xQ="⊐",kQ="⊒",SQ="⊐",_Q="⊒",TQ="□",CQ="□",EQ="⊓",AQ="⊏",LQ="⊑",MQ="⊐",NQ="⊒",OQ="⊔",PQ="▪",RQ="□",$Q="▪",IQ="→",DQ="𝒮",zQ="𝓈",FQ="∖",HQ="⌣",BQ="⋆",WQ="⋆",qQ="☆",jQ="★",UQ="ϵ",VQ="ϕ",GQ="¯",KQ="⊂",XQ="⋐",YQ="⪽",ZQ="⫅",JQ="⊆",QQ="⫃",eee="⫁",tee="⫋",nee="⊊",ree="⪿",iee="⥹",oee="⊂",see="⋐",lee="⊆",aee="⫅",cee="⊆",uee="⊊",fee="⫋",dee="⫇",hee="⫕",pee="⫓",gee="⪸",mee="≻",vee="≽",yee="≻",bee="⪰",wee="≽",xee="≿",kee="⪰",See="⪺",_ee="⪶",Tee="⋩",Cee="≿",Eee="∋",Aee="∑",Lee="∑",Mee="♪",Nee="¹",Oee="²",Pee="³",Ree="⊃",$ee="⋑",Iee="⪾",Dee="⫘",zee="⫆",Fee="⊇",Hee="⫄",Bee="⊃",Wee="⊇",qee="⟉",jee="⫗",Uee="⥻",Vee="⫂",Gee="⫌",Kee="⊋",Xee="⫀",Yee="⊃",Zee="⋑",Jee="⊇",Qee="⫆",ete="⊋",tte="⫌",nte="⫈",rte="⫔",ite="⫖",ote="⤦",ste="↙",lte="⇙",ate="↙",cte="⤪",ute="ß",fte=" ",dte="⌖",hte="Τ",pte="τ",gte="⎴",mte="Ť",vte="ť",yte="Ţ",bte="ţ",wte="Т",xte="т",kte="⃛",Ste="⌕",_te="𝔗",Tte="𝔱",Cte="∴",Ete="∴",Ate="∴",Lte="Θ",Mte="θ",Nte="ϑ",Ote="ϑ",Pte="≈",Rte="∼",$te=" ",Ite=" ",Dte=" ",zte="≈",Fte="∼",Hte="Þ",Bte="þ",Wte="˜",qte="∼",jte="≃",Ute="≅",Vte="≈",Gte="⨱",Kte="⊠",Xte="×",Yte="⨰",Zte="∭",Jte="⤨",Qte="⌶",ene="⫱",tne="⊤",nne="𝕋",rne="𝕥",ine="⫚",one="⤩",sne="‴",lne="™",ane="™",cne="▵",une="▿",fne="◃",dne="⊴",hne="≜",pne="▹",gne="⊵",mne="◬",vne="≜",yne="⨺",bne="⃛",wne="⨹",xne="⧍",kne="⨻",Sne="⏢",_ne="𝒯",Tne="𝓉",Cne="Ц",Ene="ц",Ane="Ћ",Lne="ћ",Mne="Ŧ",Nne="ŧ",One="≬",Pne="↞",Rne="↠",$ne="Ú",Ine="ú",Dne="↑",zne="↟",Fne="⇑",Hne="⥉",Bne="Ў",Wne="ў",qne="Ŭ",jne="ŭ",Une="Û",Vne="û",Gne="У",Kne="у",Xne="⇅",Yne="Ű",Zne="ű",Jne="⥮",Qne="⥾",ere="𝔘",tre="𝔲",nre="Ù",rre="ù",ire="⥣",ore="↿",sre="↾",lre="▀",are="⌜",cre="⌜",ure="⌏",fre="◸",dre="Ū",hre="ū",pre="¨",gre="_",mre="⏟",vre="⎵",yre="⏝",bre="⋃",wre="⊎",xre="Ų",kre="ų",Sre="𝕌",_re="𝕦",Tre="⤒",Cre="↑",Ere="↑",Are="⇑",Lre="⇅",Mre="↕",Nre="↕",Ore="⇕",Pre="⥮",Rre="↿",$re="↾",Ire="⊎",Dre="↖",zre="↗",Fre="υ",Hre="ϒ",Bre="ϒ",Wre="Υ",qre="υ",jre="↥",Ure="⊥",Vre="⇈",Gre="⌝",Kre="⌝",Xre="⌎",Yre="Ů",Zre="ů",Jre="◹",Qre="𝒰",eie="𝓊",tie="⋰",nie="Ũ",rie="ũ",iie="▵",oie="▴",sie="⇈",lie="Ü",aie="ü",cie="⦧",uie="⦜",fie="ϵ",die="ϰ",hie="∅",pie="ϕ",gie="ϖ",mie="∝",vie="↕",yie="⇕",bie="ϱ",wie="ς",xie="⊊︀",kie="⫋︀",Sie="⊋︀",_ie="⫌︀",Tie="ϑ",Cie="⊲",Eie="⊳",Aie="⫨",Lie="⫫",Mie="⫩",Nie="В",Oie="в",Pie="⊢",Rie="⊨",$ie="⊩",Iie="⊫",Die="⫦",zie="⊻",Fie="∨",Hie="⋁",Bie="≚",Wie="⋮",qie="|",jie="‖",Uie="|",Vie="‖",Gie="∣",Kie="|",Xie="❘",Yie="≀",Zie=" ",Jie="𝔙",Qie="𝔳",eoe="⊲",toe="⊂⃒",noe="⊃⃒",roe="𝕍",ioe="𝕧",ooe="∝",soe="⊳",loe="𝒱",aoe="𝓋",coe="⫋︀",uoe="⊊︀",foe="⫌︀",doe="⊋︀",hoe="⊪",poe="⦚",goe="Ŵ",moe="ŵ",voe="⩟",yoe="∧",boe="⋀",woe="≙",xoe="℘",koe="𝔚",Soe="𝔴",_oe="𝕎",Toe="𝕨",Coe="℘",Eoe="≀",Aoe="≀",Loe="𝒲",Moe="𝓌",Noe="⋂",Ooe="◯",Poe="⋃",Roe="▽",$oe="𝔛",Ioe="𝔵",Doe="⟷",zoe="⟺",Foe="Ξ",Hoe="ξ",Boe="⟵",Woe="⟸",qoe="⟼",joe="⋻",Uoe="⨀",Voe="𝕏",Goe="𝕩",Koe="⨁",Xoe="⨂",Yoe="⟶",Zoe="⟹",Joe="𝒳",Qoe="𝓍",ese="⨆",tse="⨄",nse="△",rse="⋁",ise="⋀",ose="Ý",sse="ý",lse="Я",ase="я",cse="Ŷ",use="ŷ",fse="Ы",dse="ы",hse="¥",pse="𝔜",gse="𝔶",mse="Ї",vse="ї",yse="𝕐",bse="𝕪",wse="𝒴",xse="𝓎",kse="Ю",Sse="ю",_se="ÿ",Tse="Ÿ",Cse="Ź",Ese="ź",Ase="Ž",Lse="ž",Mse="З",Nse="з",Ose="Ż",Pse="ż",Rse="ℨ",$se="",Ise="Ζ",Dse="ζ",zse="𝔷",Fse="ℨ",Hse="Ж",Bse="ж",Wse="⇝",qse="𝕫",jse="ℤ",Use="𝒵",Vse="𝓏",Gse="",Kse="",cx={Aacute:OL,aacute:PL,Abreve:RL,abreve:$L,ac:IL,acd:DL,acE:zL,Acirc:FL,acirc:HL,acute:BL,Acy:WL,acy:qL,AElig:jL,aelig:UL,af:VL,Afr:GL,afr:KL,Agrave:XL,agrave:YL,alefsym:ZL,aleph:JL,Alpha:QL,alpha:eM,Amacr:tM,amacr:nM,amalg:rM,amp:iM,AMP:oM,andand:sM,And:lM,and:aM,andd:cM,andslope:uM,andv:fM,ang:dM,ange:hM,angle:pM,angmsdaa:gM,angmsdab:mM,angmsdac:vM,angmsdad:yM,angmsdae:bM,angmsdaf:wM,angmsdag:xM,angmsdah:kM,angmsd:SM,angrt:_M,angrtvb:TM,angrtvbd:CM,angsph:EM,angst:AM,angzarr:LM,Aogon:MM,aogon:NM,Aopf:OM,aopf:PM,apacir:RM,ap:$M,apE:IM,ape:DM,apid:zM,apos:FM,ApplyFunction:HM,approx:BM,approxeq:WM,Aring:qM,aring:jM,Ascr:UM,ascr:VM,Assign:GM,ast:KM,asymp:XM,asympeq:YM,Atilde:ZM,atilde:JM,Auml:QM,auml:eN,awconint:tN,awint:nN,backcong:rN,backepsilon:iN,backprime:oN,backsim:sN,backsimeq:lN,Backslash:aN,Barv:cN,barvee:uN,barwed:fN,Barwed:dN,barwedge:hN,bbrk:pN,bbrktbrk:gN,bcong:mN,Bcy:vN,bcy:yN,bdquo:bN,becaus:wN,because:xN,Because:kN,bemptyv:SN,bepsi:_N,bernou:TN,Bernoullis:CN,Beta:EN,beta:AN,beth:LN,between:MN,Bfr:NN,bfr:ON,bigcap:PN,bigcirc:RN,bigcup:$N,bigodot:IN,bigoplus:DN,bigotimes:zN,bigsqcup:FN,bigstar:HN,bigtriangledown:BN,bigtriangleup:WN,biguplus:qN,bigvee:jN,bigwedge:UN,bkarow:VN,blacklozenge:GN,blacksquare:KN,blacktriangle:XN,blacktriangledown:YN,blacktriangleleft:ZN,blacktriangleright:JN,blank:QN,blk12:e2,blk14:t2,blk34:n2,block:r2,bne:i2,bnequiv:o2,bNot:s2,bnot:l2,Bopf:a2,bopf:c2,bot:u2,bottom:f2,bowtie:d2,boxbox:h2,boxdl:p2,boxdL:g2,boxDl:m2,boxDL:v2,boxdr:y2,boxdR:b2,boxDr:w2,boxDR:x2,boxh:k2,boxH:S2,boxhd:_2,boxHd:T2,boxhD:C2,boxHD:E2,boxhu:A2,boxHu:L2,boxhU:M2,boxHU:N2,boxminus:O2,boxplus:P2,boxtimes:R2,boxul:$2,boxuL:I2,boxUl:D2,boxUL:z2,boxur:F2,boxuR:H2,boxUr:B2,boxUR:W2,boxv:q2,boxV:j2,boxvh:U2,boxvH:V2,boxVh:G2,boxVH:K2,boxvl:X2,boxvL:Y2,boxVl:Z2,boxVL:J2,boxvr:Q2,boxvR:eO,boxVr:tO,boxVR:nO,bprime:rO,breve:iO,Breve:oO,brvbar:sO,bscr:lO,Bscr:aO,bsemi:cO,bsim:uO,bsime:fO,bsolb:dO,bsol:hO,bsolhsub:pO,bull:gO,bullet:mO,bump:vO,bumpE:yO,bumpe:bO,Bumpeq:wO,bumpeq:xO,Cacute:kO,cacute:SO,capand:_O,capbrcup:TO,capcap:CO,cap:EO,Cap:AO,capcup:LO,capdot:MO,CapitalDifferentialD:NO,caps:OO,caret:PO,caron:RO,Cayleys:$O,ccaps:IO,Ccaron:DO,ccaron:zO,Ccedil:FO,ccedil:HO,Ccirc:BO,ccirc:WO,Cconint:qO,ccups:jO,ccupssm:UO,Cdot:VO,cdot:GO,cedil:KO,Cedilla:XO,cemptyv:YO,cent:ZO,centerdot:JO,CenterDot:QO,cfr:eP,Cfr:tP,CHcy:nP,chcy:rP,check:iP,checkmark:oP,Chi:sP,chi:lP,circ:aP,circeq:cP,circlearrowleft:uP,circlearrowright:fP,circledast:dP,circledcirc:hP,circleddash:pP,CircleDot:gP,circledR:mP,circledS:vP,CircleMinus:yP,CirclePlus:bP,CircleTimes:wP,cir:xP,cirE:kP,cire:SP,cirfnint:_P,cirmid:TP,cirscir:CP,ClockwiseContourIntegral:EP,CloseCurlyDoubleQuote:AP,CloseCurlyQuote:LP,clubs:MP,clubsuit:NP,colon:OP,Colon:PP,Colone:RP,colone:$P,coloneq:IP,comma:DP,commat:zP,comp:FP,compfn:HP,complement:BP,complexes:WP,cong:qP,congdot:jP,Congruent:UP,conint:VP,Conint:GP,ContourIntegral:KP,copf:XP,Copf:YP,coprod:ZP,Coproduct:JP,copy:QP,COPY:eR,copysr:tR,CounterClockwiseContourIntegral:nR,crarr:rR,cross:iR,Cross:oR,Cscr:sR,cscr:lR,csub:aR,csube:cR,csup:uR,csupe:fR,ctdot:dR,cudarrl:hR,cudarrr:pR,cuepr:gR,cuesc:mR,cularr:vR,cularrp:yR,cupbrcap:bR,cupcap:wR,CupCap:xR,cup:kR,Cup:SR,cupcup:_R,cupdot:TR,cupor:CR,cups:ER,curarr:AR,curarrm:LR,curlyeqprec:MR,curlyeqsucc:NR,curlyvee:OR,curlywedge:PR,curren:RR,curvearrowleft:$R,curvearrowright:IR,cuvee:DR,cuwed:zR,cwconint:FR,cwint:HR,cylcty:BR,dagger:WR,Dagger:qR,daleth:jR,darr:UR,Darr:VR,dArr:GR,dash:KR,Dashv:XR,dashv:YR,dbkarow:ZR,dblac:JR,Dcaron:QR,dcaron:e$,Dcy:t$,dcy:n$,ddagger:r$,ddarr:i$,DD:o$,dd:s$,DDotrahd:l$,ddotseq:a$,deg:c$,Del:u$,Delta:f$,delta:d$,demptyv:h$,dfisht:p$,Dfr:g$,dfr:m$,dHar:v$,dharl:y$,dharr:b$,DiacriticalAcute:w$,DiacriticalDot:x$,DiacriticalDoubleAcute:k$,DiacriticalGrave:S$,DiacriticalTilde:_$,diam:T$,diamond:C$,Diamond:E$,diamondsuit:A$,diams:L$,die:M$,DifferentialD:N$,digamma:O$,disin:P$,div:R$,divide:$$,divideontimes:I$,divonx:D$,DJcy:z$,djcy:F$,dlcorn:H$,dlcrop:B$,dollar:W$,Dopf:q$,dopf:j$,Dot:U$,dot:V$,DotDot:G$,doteq:K$,doteqdot:X$,DotEqual:Y$,dotminus:Z$,dotplus:J$,dotsquare:Q$,doublebarwedge:eI,DoubleContourIntegral:tI,DoubleDot:nI,DoubleDownArrow:rI,DoubleLeftArrow:iI,DoubleLeftRightArrow:oI,DoubleLeftTee:sI,DoubleLongLeftArrow:lI,DoubleLongLeftRightArrow:aI,DoubleLongRightArrow:cI,DoubleRightArrow:uI,DoubleRightTee:fI,DoubleUpArrow:dI,DoubleUpDownArrow:hI,DoubleVerticalBar:pI,DownArrowBar:gI,downarrow:mI,DownArrow:vI,Downarrow:yI,DownArrowUpArrow:bI,DownBreve:wI,downdownarrows:xI,downharpoonleft:kI,downharpoonright:SI,DownLeftRightVector:_I,DownLeftTeeVector:TI,DownLeftVectorBar:CI,DownLeftVector:EI,DownRightTeeVector:AI,DownRightVectorBar:LI,DownRightVector:MI,DownTeeArrow:NI,DownTee:OI,drbkarow:PI,drcorn:RI,drcrop:$I,Dscr:II,dscr:DI,DScy:zI,dscy:FI,dsol:HI,Dstrok:BI,dstrok:WI,dtdot:qI,dtri:jI,dtrif:UI,duarr:VI,duhar:GI,dwangle:KI,DZcy:XI,dzcy:YI,dzigrarr:ZI,Eacute:JI,eacute:QI,easter:eD,Ecaron:tD,ecaron:nD,Ecirc:rD,ecirc:iD,ecir:oD,ecolon:sD,Ecy:lD,ecy:aD,eDDot:cD,Edot:uD,edot:fD,eDot:dD,ee:hD,efDot:pD,Efr:gD,efr:mD,eg:vD,Egrave:yD,egrave:bD,egs:wD,egsdot:xD,el:kD,Element:SD,elinters:_D,ell:TD,els:CD,elsdot:ED,Emacr:AD,emacr:LD,empty:MD,emptyset:ND,EmptySmallSquare:OD,emptyv:PD,EmptyVerySmallSquare:RD,emsp13:$D,emsp14:ID,emsp:DD,ENG:zD,eng:FD,ensp:HD,Eogon:BD,eogon:WD,Eopf:qD,eopf:jD,epar:UD,eparsl:VD,eplus:GD,epsi:KD,Epsilon:XD,epsilon:YD,epsiv:ZD,eqcirc:JD,eqcolon:QD,eqsim:ez,eqslantgtr:tz,eqslantless:nz,Equal:rz,equals:iz,EqualTilde:oz,equest:sz,Equilibrium:lz,equiv:az,equivDD:cz,eqvparsl:uz,erarr:fz,erDot:dz,escr:hz,Escr:pz,esdot:gz,Esim:mz,esim:vz,Eta:yz,eta:bz,ETH:wz,eth:xz,Euml:kz,euml:Sz,euro:_z,excl:Tz,exist:Cz,Exists:Ez,expectation:Az,exponentiale:Lz,ExponentialE:Mz,fallingdotseq:Nz,Fcy:Oz,fcy:Pz,female:Rz,ffilig:$z,fflig:Iz,ffllig:Dz,Ffr:zz,ffr:Fz,filig:Hz,FilledSmallSquare:Bz,FilledVerySmallSquare:Wz,fjlig:qz,flat:jz,fllig:Uz,fltns:Vz,fnof:Gz,Fopf:Kz,fopf:Xz,forall:Yz,ForAll:Zz,fork:Jz,forkv:Qz,Fouriertrf:eF,fpartint:tF,frac12:nF,frac13:rF,frac14:iF,frac15:oF,frac16:sF,frac18:lF,frac23:aF,frac25:cF,frac34:uF,frac35:fF,frac38:dF,frac45:hF,frac56:pF,frac58:gF,frac78:mF,frasl:vF,frown:yF,fscr:bF,Fscr:wF,gacute:xF,Gamma:kF,gamma:SF,Gammad:_F,gammad:TF,gap:CF,Gbreve:EF,gbreve:AF,Gcedil:LF,Gcirc:MF,gcirc:NF,Gcy:OF,gcy:PF,Gdot:RF,gdot:$F,ge:IF,gE:DF,gEl:zF,gel:FF,geq:HF,geqq:BF,geqslant:WF,gescc:qF,ges:jF,gesdot:UF,gesdoto:VF,gesdotol:GF,gesl:KF,gesles:XF,Gfr:YF,gfr:ZF,gg:JF,Gg:QF,ggg:eH,gimel:tH,GJcy:nH,gjcy:rH,gla:iH,gl:oH,glE:sH,glj:lH,gnap:aH,gnapprox:cH,gne:uH,gnE:fH,gneq:dH,gneqq:hH,gnsim:pH,Gopf:gH,gopf:mH,grave:vH,GreaterEqual:yH,GreaterEqualLess:bH,GreaterFullEqual:wH,GreaterGreater:xH,GreaterLess:kH,GreaterSlantEqual:SH,GreaterTilde:_H,Gscr:TH,gscr:CH,gsim:EH,gsime:AH,gsiml:LH,gtcc:MH,gtcir:NH,gt:OH,GT:PH,Gt:RH,gtdot:$H,gtlPar:IH,gtquest:DH,gtrapprox:zH,gtrarr:FH,gtrdot:HH,gtreqless:BH,gtreqqless:WH,gtrless:qH,gtrsim:jH,gvertneqq:UH,gvnE:VH,Hacek:GH,hairsp:KH,half:XH,hamilt:YH,HARDcy:ZH,hardcy:JH,harrcir:QH,harr:e3,hArr:t3,harrw:n3,Hat:r3,hbar:i3,Hcirc:o3,hcirc:s3,hearts:l3,heartsuit:a3,hellip:c3,hercon:u3,hfr:f3,Hfr:d3,HilbertSpace:h3,hksearow:p3,hkswarow:g3,hoarr:m3,homtht:v3,hookleftarrow:y3,hookrightarrow:b3,hopf:w3,Hopf:x3,horbar:k3,HorizontalLine:S3,hscr:_3,Hscr:T3,hslash:C3,Hstrok:E3,hstrok:A3,HumpDownHump:L3,HumpEqual:M3,hybull:N3,hyphen:O3,Iacute:P3,iacute:R3,ic:$3,Icirc:I3,icirc:D3,Icy:z3,icy:F3,Idot:H3,IEcy:B3,iecy:W3,iexcl:q3,iff:j3,ifr:U3,Ifr:V3,Igrave:G3,igrave:K3,ii:X3,iiiint:Y3,iiint:Z3,iinfin:J3,iiota:Q3,IJlig:eB,ijlig:tB,Imacr:nB,imacr:rB,image:iB,ImaginaryI:oB,imagline:sB,imagpart:lB,imath:aB,Im:cB,imof:uB,imped:fB,Implies:dB,incare:hB,in:"∈",infin:pB,infintie:gB,inodot:mB,intcal:vB,int:yB,Int:bB,integers:wB,Integral:xB,intercal:kB,Intersection:SB,intlarhk:_B,intprod:TB,InvisibleComma:CB,InvisibleTimes:EB,IOcy:AB,iocy:LB,Iogon:MB,iogon:NB,Iopf:OB,iopf:PB,Iota:RB,iota:$B,iprod:IB,iquest:DB,iscr:zB,Iscr:FB,isin:HB,isindot:BB,isinE:WB,isins:qB,isinsv:jB,isinv:UB,it:VB,Itilde:GB,itilde:KB,Iukcy:XB,iukcy:YB,Iuml:ZB,iuml:JB,Jcirc:QB,jcirc:e5,Jcy:t5,jcy:n5,Jfr:r5,jfr:i5,jmath:o5,Jopf:s5,jopf:l5,Jscr:a5,jscr:c5,Jsercy:u5,jsercy:f5,Jukcy:d5,jukcy:h5,Kappa:p5,kappa:g5,kappav:m5,Kcedil:v5,kcedil:y5,Kcy:b5,kcy:w5,Kfr:x5,kfr:k5,kgreen:S5,KHcy:_5,khcy:T5,KJcy:C5,kjcy:E5,Kopf:A5,kopf:L5,Kscr:M5,kscr:N5,lAarr:O5,Lacute:P5,lacute:R5,laemptyv:$5,lagran:I5,Lambda:D5,lambda:z5,lang:F5,Lang:H5,langd:B5,langle:W5,lap:q5,Laplacetrf:j5,laquo:U5,larrb:V5,larrbfs:G5,larr:K5,Larr:X5,lArr:Y5,larrfs:Z5,larrhk:J5,larrlp:Q5,larrpl:e8,larrsim:t8,larrtl:n8,latail:r8,lAtail:i8,lat:o8,late:s8,lates:l8,lbarr:a8,lBarr:c8,lbbrk:u8,lbrace:f8,lbrack:d8,lbrke:h8,lbrksld:p8,lbrkslu:g8,Lcaron:m8,lcaron:v8,Lcedil:y8,lcedil:b8,lceil:w8,lcub:x8,Lcy:k8,lcy:S8,ldca:_8,ldquo:T8,ldquor:C8,ldrdhar:E8,ldrushar:A8,ldsh:L8,le:M8,lE:N8,LeftAngleBracket:O8,LeftArrowBar:P8,leftarrow:R8,LeftArrow:$8,Leftarrow:I8,LeftArrowRightArrow:D8,leftarrowtail:z8,LeftCeiling:F8,LeftDoubleBracket:H8,LeftDownTeeVector:B8,LeftDownVectorBar:W8,LeftDownVector:q8,LeftFloor:j8,leftharpoondown:U8,leftharpoonup:V8,leftleftarrows:G8,leftrightarrow:K8,LeftRightArrow:X8,Leftrightarrow:Y8,leftrightarrows:Z8,leftrightharpoons:J8,leftrightsquigarrow:Q8,LeftRightVector:eW,LeftTeeArrow:tW,LeftTee:nW,LeftTeeVector:rW,leftthreetimes:iW,LeftTriangleBar:oW,LeftTriangle:sW,LeftTriangleEqual:lW,LeftUpDownVector:aW,LeftUpTeeVector:cW,LeftUpVectorBar:uW,LeftUpVector:fW,LeftVectorBar:dW,LeftVector:hW,lEg:pW,leg:gW,leq:mW,leqq:vW,leqslant:yW,lescc:bW,les:wW,lesdot:xW,lesdoto:kW,lesdotor:SW,lesg:_W,lesges:TW,lessapprox:CW,lessdot:EW,lesseqgtr:AW,lesseqqgtr:LW,LessEqualGreater:MW,LessFullEqual:NW,LessGreater:OW,lessgtr:PW,LessLess:RW,lesssim:$W,LessSlantEqual:IW,LessTilde:DW,lfisht:zW,lfloor:FW,Lfr:HW,lfr:BW,lg:WW,lgE:qW,lHar:jW,lhard:UW,lharu:VW,lharul:GW,lhblk:KW,LJcy:XW,ljcy:YW,llarr:ZW,ll:JW,Ll:QW,llcorner:e4,Lleftarrow:t4,llhard:n4,lltri:r4,Lmidot:i4,lmidot:o4,lmoustache:s4,lmoust:l4,lnap:a4,lnapprox:c4,lne:u4,lnE:f4,lneq:d4,lneqq:h4,lnsim:p4,loang:g4,loarr:m4,lobrk:v4,longleftarrow:y4,LongLeftArrow:b4,Longleftarrow:w4,longleftrightarrow:x4,LongLeftRightArrow:k4,Longleftrightarrow:S4,longmapsto:_4,longrightarrow:T4,LongRightArrow:C4,Longrightarrow:E4,looparrowleft:A4,looparrowright:L4,lopar:M4,Lopf:N4,lopf:O4,loplus:P4,lotimes:R4,lowast:$4,lowbar:I4,LowerLeftArrow:D4,LowerRightArrow:z4,loz:F4,lozenge:H4,lozf:B4,lpar:W4,lparlt:q4,lrarr:j4,lrcorner:U4,lrhar:V4,lrhard:G4,lrm:K4,lrtri:X4,lsaquo:Y4,lscr:Z4,Lscr:J4,lsh:Q4,Lsh:eq,lsim:tq,lsime:nq,lsimg:rq,lsqb:iq,lsquo:oq,lsquor:sq,Lstrok:lq,lstrok:aq,ltcc:cq,ltcir:uq,lt:fq,LT:dq,Lt:hq,ltdot:pq,lthree:gq,ltimes:mq,ltlarr:vq,ltquest:yq,ltri:bq,ltrie:wq,ltrif:xq,ltrPar:kq,lurdshar:Sq,luruhar:_q,lvertneqq:Tq,lvnE:Cq,macr:Eq,male:Aq,malt:Lq,maltese:Mq,Map:"⤅",map:Nq,mapsto:Oq,mapstodown:Pq,mapstoleft:Rq,mapstoup:$q,marker:Iq,mcomma:Dq,Mcy:zq,mcy:Fq,mdash:Hq,mDDot:Bq,measuredangle:Wq,MediumSpace:qq,Mellintrf:jq,Mfr:Uq,mfr:Vq,mho:Gq,micro:Kq,midast:Xq,midcir:Yq,mid:Zq,middot:Jq,minusb:Qq,minus:ej,minusd:tj,minusdu:nj,MinusPlus:rj,mlcp:ij,mldr:oj,mnplus:sj,models:lj,Mopf:aj,mopf:cj,mp:uj,mscr:fj,Mscr:dj,mstpos:hj,Mu:pj,mu:gj,multimap:mj,mumap:vj,nabla:yj,Nacute:bj,nacute:wj,nang:xj,nap:kj,napE:Sj,napid:_j,napos:Tj,napprox:Cj,natural:Ej,naturals:Aj,natur:Lj,nbsp:Mj,nbump:Nj,nbumpe:Oj,ncap:Pj,Ncaron:Rj,ncaron:$j,Ncedil:Ij,ncedil:Dj,ncong:zj,ncongdot:Fj,ncup:Hj,Ncy:Bj,ncy:Wj,ndash:qj,nearhk:jj,nearr:Uj,neArr:Vj,nearrow:Gj,ne:Kj,nedot:Xj,NegativeMediumSpace:Yj,NegativeThickSpace:Zj,NegativeThinSpace:Jj,NegativeVeryThinSpace:Qj,nequiv:eU,nesear:tU,nesim:nU,NestedGreaterGreater:rU,NestedLessLess:iU,NewLine:oU,nexist:sU,nexists:lU,Nfr:aU,nfr:cU,ngE:uU,nge:fU,ngeq:dU,ngeqq:hU,ngeqslant:pU,nges:gU,nGg:mU,ngsim:vU,nGt:yU,ngt:bU,ngtr:wU,nGtv:xU,nharr:kU,nhArr:SU,nhpar:_U,ni:TU,nis:CU,nisd:EU,niv:AU,NJcy:LU,njcy:MU,nlarr:NU,nlArr:OU,nldr:PU,nlE:RU,nle:$U,nleftarrow:IU,nLeftarrow:DU,nleftrightarrow:zU,nLeftrightarrow:FU,nleq:HU,nleqq:BU,nleqslant:WU,nles:qU,nless:jU,nLl:UU,nlsim:VU,nLt:GU,nlt:KU,nltri:XU,nltrie:YU,nLtv:ZU,nmid:JU,NoBreak:QU,NonBreakingSpace:e6,nopf:t6,Nopf:n6,Not:r6,not:i6,NotCongruent:o6,NotCupCap:s6,NotDoubleVerticalBar:l6,NotElement:a6,NotEqual:c6,NotEqualTilde:u6,NotExists:f6,NotGreater:d6,NotGreaterEqual:h6,NotGreaterFullEqual:p6,NotGreaterGreater:g6,NotGreaterLess:m6,NotGreaterSlantEqual:v6,NotGreaterTilde:y6,NotHumpDownHump:b6,NotHumpEqual:w6,notin:x6,notindot:k6,notinE:S6,notinva:_6,notinvb:T6,notinvc:C6,NotLeftTriangleBar:E6,NotLeftTriangle:A6,NotLeftTriangleEqual:L6,NotLess:M6,NotLessEqual:N6,NotLessGreater:O6,NotLessLess:P6,NotLessSlantEqual:R6,NotLessTilde:$6,NotNestedGreaterGreater:I6,NotNestedLessLess:D6,notni:z6,notniva:F6,notnivb:H6,notnivc:B6,NotPrecedes:W6,NotPrecedesEqual:q6,NotPrecedesSlantEqual:j6,NotReverseElement:U6,NotRightTriangleBar:V6,NotRightTriangle:G6,NotRightTriangleEqual:K6,NotSquareSubset:X6,NotSquareSubsetEqual:Y6,NotSquareSuperset:Z6,NotSquareSupersetEqual:J6,NotSubset:Q6,NotSubsetEqual:eV,NotSucceeds:tV,NotSucceedsEqual:nV,NotSucceedsSlantEqual:rV,NotSucceedsTilde:iV,NotSuperset:oV,NotSupersetEqual:sV,NotTilde:lV,NotTildeEqual:aV,NotTildeFullEqual:cV,NotTildeTilde:uV,NotVerticalBar:fV,nparallel:dV,npar:hV,nparsl:pV,npart:gV,npolint:mV,npr:vV,nprcue:yV,nprec:bV,npreceq:wV,npre:xV,nrarrc:kV,nrarr:SV,nrArr:_V,nrarrw:TV,nrightarrow:CV,nRightarrow:EV,nrtri:AV,nrtrie:LV,nsc:MV,nsccue:NV,nsce:OV,Nscr:PV,nscr:RV,nshortmid:$V,nshortparallel:IV,nsim:DV,nsime:zV,nsimeq:FV,nsmid:HV,nspar:BV,nsqsube:WV,nsqsupe:qV,nsub:jV,nsubE:UV,nsube:VV,nsubset:GV,nsubseteq:KV,nsubseteqq:XV,nsucc:YV,nsucceq:ZV,nsup:JV,nsupE:QV,nsupe:eG,nsupset:tG,nsupseteq:nG,nsupseteqq:rG,ntgl:iG,Ntilde:oG,ntilde:sG,ntlg:lG,ntriangleleft:aG,ntrianglelefteq:cG,ntriangleright:uG,ntrianglerighteq:fG,Nu:dG,nu:hG,num:pG,numero:gG,numsp:mG,nvap:vG,nvdash:yG,nvDash:bG,nVdash:wG,nVDash:xG,nvge:kG,nvgt:SG,nvHarr:_G,nvinfin:TG,nvlArr:CG,nvle:EG,nvlt:AG,nvltrie:LG,nvrArr:MG,nvrtrie:NG,nvsim:OG,nwarhk:PG,nwarr:RG,nwArr:$G,nwarrow:IG,nwnear:DG,Oacute:zG,oacute:FG,oast:HG,Ocirc:BG,ocirc:WG,ocir:qG,Ocy:jG,ocy:UG,odash:VG,Odblac:GG,odblac:KG,odiv:XG,odot:YG,odsold:ZG,OElig:JG,oelig:QG,ofcir:e9,Ofr:t9,ofr:n9,ogon:r9,Ograve:i9,ograve:o9,ogt:s9,ohbar:l9,ohm:a9,oint:c9,olarr:u9,olcir:f9,olcross:d9,oline:h9,olt:p9,Omacr:g9,omacr:m9,Omega:v9,omega:y9,Omicron:b9,omicron:w9,omid:x9,ominus:k9,Oopf:S9,oopf:_9,opar:T9,OpenCurlyDoubleQuote:C9,OpenCurlyQuote:E9,operp:A9,oplus:L9,orarr:M9,Or:N9,or:O9,ord:P9,order:R9,orderof:$9,ordf:I9,ordm:D9,origof:z9,oror:F9,orslope:H9,orv:B9,oS:W9,Oscr:q9,oscr:j9,Oslash:U9,oslash:V9,osol:G9,Otilde:K9,otilde:X9,otimesas:Y9,Otimes:Z9,otimes:J9,Ouml:Q9,ouml:eK,ovbar:tK,OverBar:nK,OverBrace:rK,OverBracket:iK,OverParenthesis:oK,para:sK,parallel:lK,par:aK,parsim:cK,parsl:uK,part:fK,PartialD:dK,Pcy:hK,pcy:pK,percnt:gK,period:mK,permil:vK,perp:yK,pertenk:bK,Pfr:wK,pfr:xK,Phi:kK,phi:SK,phiv:_K,phmmat:TK,phone:CK,Pi:EK,pi:AK,pitchfork:LK,piv:MK,planck:NK,planckh:OK,plankv:PK,plusacir:RK,plusb:$K,pluscir:IK,plus:DK,plusdo:zK,plusdu:FK,pluse:HK,PlusMinus:BK,plusmn:WK,plussim:qK,plustwo:jK,pm:UK,Poincareplane:VK,pointint:GK,popf:KK,Popf:XK,pound:YK,prap:ZK,Pr:JK,pr:QK,prcue:e7,precapprox:t7,prec:n7,preccurlyeq:r7,Precedes:i7,PrecedesEqual:o7,PrecedesSlantEqual:s7,PrecedesTilde:l7,preceq:a7,precnapprox:c7,precneqq:u7,precnsim:f7,pre:d7,prE:h7,precsim:p7,prime:g7,Prime:m7,primes:v7,prnap:y7,prnE:b7,prnsim:w7,prod:x7,Product:k7,profalar:S7,profline:_7,profsurf:T7,prop:C7,Proportional:E7,Proportion:A7,propto:L7,prsim:M7,prurel:N7,Pscr:O7,pscr:P7,Psi:R7,psi:$7,puncsp:I7,Qfr:D7,qfr:z7,qint:F7,qopf:H7,Qopf:B7,qprime:W7,Qscr:q7,qscr:j7,quaternions:U7,quatint:V7,quest:G7,questeq:K7,quot:X7,QUOT:Y7,rAarr:Z7,race:J7,Racute:Q7,racute:eX,radic:tX,raemptyv:nX,rang:rX,Rang:iX,rangd:oX,range:sX,rangle:lX,raquo:aX,rarrap:cX,rarrb:uX,rarrbfs:fX,rarrc:dX,rarr:hX,Rarr:pX,rArr:gX,rarrfs:mX,rarrhk:vX,rarrlp:yX,rarrpl:bX,rarrsim:wX,Rarrtl:xX,rarrtl:kX,rarrw:SX,ratail:_X,rAtail:TX,ratio:CX,rationals:EX,rbarr:AX,rBarr:LX,RBarr:MX,rbbrk:NX,rbrace:OX,rbrack:PX,rbrke:RX,rbrksld:$X,rbrkslu:IX,Rcaron:DX,rcaron:zX,Rcedil:FX,rcedil:HX,rceil:BX,rcub:WX,Rcy:qX,rcy:jX,rdca:UX,rdldhar:VX,rdquo:GX,rdquor:KX,rdsh:XX,real:YX,realine:ZX,realpart:JX,reals:QX,Re:eY,rect:tY,reg:nY,REG:rY,ReverseElement:iY,ReverseEquilibrium:oY,ReverseUpEquilibrium:sY,rfisht:lY,rfloor:aY,rfr:cY,Rfr:uY,rHar:fY,rhard:dY,rharu:hY,rharul:pY,Rho:gY,rho:mY,rhov:vY,RightAngleBracket:yY,RightArrowBar:bY,rightarrow:wY,RightArrow:xY,Rightarrow:kY,RightArrowLeftArrow:SY,rightarrowtail:_Y,RightCeiling:TY,RightDoubleBracket:CY,RightDownTeeVector:EY,RightDownVectorBar:AY,RightDownVector:LY,RightFloor:MY,rightharpoondown:NY,rightharpoonup:OY,rightleftarrows:PY,rightleftharpoons:RY,rightrightarrows:$Y,rightsquigarrow:IY,RightTeeArrow:DY,RightTee:zY,RightTeeVector:FY,rightthreetimes:HY,RightTriangleBar:BY,RightTriangle:WY,RightTriangleEqual:qY,RightUpDownVector:jY,RightUpTeeVector:UY,RightUpVectorBar:VY,RightUpVector:GY,RightVectorBar:KY,RightVector:XY,ring:YY,risingdotseq:ZY,rlarr:JY,rlhar:QY,rlm:eZ,rmoustache:tZ,rmoust:nZ,rnmid:rZ,roang:iZ,roarr:oZ,robrk:sZ,ropar:lZ,ropf:aZ,Ropf:cZ,roplus:uZ,rotimes:fZ,RoundImplies:dZ,rpar:hZ,rpargt:pZ,rppolint:gZ,rrarr:mZ,Rrightarrow:vZ,rsaquo:yZ,rscr:bZ,Rscr:wZ,rsh:xZ,Rsh:kZ,rsqb:SZ,rsquo:_Z,rsquor:TZ,rthree:CZ,rtimes:EZ,rtri:AZ,rtrie:LZ,rtrif:MZ,rtriltri:NZ,RuleDelayed:OZ,ruluhar:PZ,rx:RZ,Sacute:$Z,sacute:IZ,sbquo:DZ,scap:zZ,Scaron:FZ,scaron:HZ,Sc:BZ,sc:WZ,sccue:qZ,sce:jZ,scE:UZ,Scedil:VZ,scedil:GZ,Scirc:KZ,scirc:XZ,scnap:YZ,scnE:ZZ,scnsim:JZ,scpolint:QZ,scsim:eJ,Scy:tJ,scy:nJ,sdotb:rJ,sdot:iJ,sdote:oJ,searhk:sJ,searr:lJ,seArr:aJ,searrow:cJ,sect:uJ,semi:fJ,seswar:dJ,setminus:hJ,setmn:pJ,sext:gJ,Sfr:mJ,sfr:vJ,sfrown:yJ,sharp:bJ,SHCHcy:wJ,shchcy:xJ,SHcy:kJ,shcy:SJ,ShortDownArrow:_J,ShortLeftArrow:TJ,shortmid:CJ,shortparallel:EJ,ShortRightArrow:AJ,ShortUpArrow:LJ,shy:MJ,Sigma:NJ,sigma:OJ,sigmaf:PJ,sigmav:RJ,sim:$J,simdot:IJ,sime:DJ,simeq:zJ,simg:FJ,simgE:HJ,siml:BJ,simlE:WJ,simne:qJ,simplus:jJ,simrarr:UJ,slarr:VJ,SmallCircle:GJ,smallsetminus:KJ,smashp:XJ,smeparsl:YJ,smid:ZJ,smile:JJ,smt:QJ,smte:eQ,smtes:tQ,SOFTcy:nQ,softcy:rQ,solbar:iQ,solb:oQ,sol:sQ,Sopf:lQ,sopf:aQ,spades:cQ,spadesuit:uQ,spar:fQ,sqcap:dQ,sqcaps:hQ,sqcup:pQ,sqcups:gQ,Sqrt:mQ,sqsub:vQ,sqsube:yQ,sqsubset:bQ,sqsubseteq:wQ,sqsup:xQ,sqsupe:kQ,sqsupset:SQ,sqsupseteq:_Q,square:TQ,Square:CQ,SquareIntersection:EQ,SquareSubset:AQ,SquareSubsetEqual:LQ,SquareSuperset:MQ,SquareSupersetEqual:NQ,SquareUnion:OQ,squarf:PQ,squ:RQ,squf:$Q,srarr:IQ,Sscr:DQ,sscr:zQ,ssetmn:FQ,ssmile:HQ,sstarf:BQ,Star:WQ,star:qQ,starf:jQ,straightepsilon:UQ,straightphi:VQ,strns:GQ,sub:KQ,Sub:XQ,subdot:YQ,subE:ZQ,sube:JQ,subedot:QQ,submult:eee,subnE:tee,subne:nee,subplus:ree,subrarr:iee,subset:oee,Subset:see,subseteq:lee,subseteqq:aee,SubsetEqual:cee,subsetneq:uee,subsetneqq:fee,subsim:dee,subsub:hee,subsup:pee,succapprox:gee,succ:mee,succcurlyeq:vee,Succeeds:yee,SucceedsEqual:bee,SucceedsSlantEqual:wee,SucceedsTilde:xee,succeq:kee,succnapprox:See,succneqq:_ee,succnsim:Tee,succsim:Cee,SuchThat:Eee,sum:Aee,Sum:Lee,sung:Mee,sup1:Nee,sup2:Oee,sup3:Pee,sup:Ree,Sup:$ee,supdot:Iee,supdsub:Dee,supE:zee,supe:Fee,supedot:Hee,Superset:Bee,SupersetEqual:Wee,suphsol:qee,suphsub:jee,suplarr:Uee,supmult:Vee,supnE:Gee,supne:Kee,supplus:Xee,supset:Yee,Supset:Zee,supseteq:Jee,supseteqq:Qee,supsetneq:ete,supsetneqq:tte,supsim:nte,supsub:rte,supsup:ite,swarhk:ote,swarr:ste,swArr:lte,swarrow:ate,swnwar:cte,szlig:ute,Tab:fte,target:dte,Tau:hte,tau:pte,tbrk:gte,Tcaron:mte,tcaron:vte,Tcedil:yte,tcedil:bte,Tcy:wte,tcy:xte,tdot:kte,telrec:Ste,Tfr:_te,tfr:Tte,there4:Cte,therefore:Ete,Therefore:Ate,Theta:Lte,theta:Mte,thetasym:Nte,thetav:Ote,thickapprox:Pte,thicksim:Rte,ThickSpace:$te,ThinSpace:Ite,thinsp:Dte,thkap:zte,thksim:Fte,THORN:Hte,thorn:Bte,tilde:Wte,Tilde:qte,TildeEqual:jte,TildeFullEqual:Ute,TildeTilde:Vte,timesbar:Gte,timesb:Kte,times:Xte,timesd:Yte,tint:Zte,toea:Jte,topbot:Qte,topcir:ene,top:tne,Topf:nne,topf:rne,topfork:ine,tosa:one,tprime:sne,trade:lne,TRADE:ane,triangle:cne,triangledown:une,triangleleft:fne,trianglelefteq:dne,triangleq:hne,triangleright:pne,trianglerighteq:gne,tridot:mne,trie:vne,triminus:yne,TripleDot:bne,triplus:wne,trisb:xne,tritime:kne,trpezium:Sne,Tscr:_ne,tscr:Tne,TScy:Cne,tscy:Ene,TSHcy:Ane,tshcy:Lne,Tstrok:Mne,tstrok:Nne,twixt:One,twoheadleftarrow:Pne,twoheadrightarrow:Rne,Uacute:$ne,uacute:Ine,uarr:Dne,Uarr:zne,uArr:Fne,Uarrocir:Hne,Ubrcy:Bne,ubrcy:Wne,Ubreve:qne,ubreve:jne,Ucirc:Une,ucirc:Vne,Ucy:Gne,ucy:Kne,udarr:Xne,Udblac:Yne,udblac:Zne,udhar:Jne,ufisht:Qne,Ufr:ere,ufr:tre,Ugrave:nre,ugrave:rre,uHar:ire,uharl:ore,uharr:sre,uhblk:lre,ulcorn:are,ulcorner:cre,ulcrop:ure,ultri:fre,Umacr:dre,umacr:hre,uml:pre,UnderBar:gre,UnderBrace:mre,UnderBracket:vre,UnderParenthesis:yre,Union:bre,UnionPlus:wre,Uogon:xre,uogon:kre,Uopf:Sre,uopf:_re,UpArrowBar:Tre,uparrow:Cre,UpArrow:Ere,Uparrow:Are,UpArrowDownArrow:Lre,updownarrow:Mre,UpDownArrow:Nre,Updownarrow:Ore,UpEquilibrium:Pre,upharpoonleft:Rre,upharpoonright:$re,uplus:Ire,UpperLeftArrow:Dre,UpperRightArrow:zre,upsi:Fre,Upsi:Hre,upsih:Bre,Upsilon:Wre,upsilon:qre,UpTeeArrow:jre,UpTee:Ure,upuparrows:Vre,urcorn:Gre,urcorner:Kre,urcrop:Xre,Uring:Yre,uring:Zre,urtri:Jre,Uscr:Qre,uscr:eie,utdot:tie,Utilde:nie,utilde:rie,utri:iie,utrif:oie,uuarr:sie,Uuml:lie,uuml:aie,uwangle:cie,vangrt:uie,varepsilon:fie,varkappa:die,varnothing:hie,varphi:pie,varpi:gie,varpropto:mie,varr:vie,vArr:yie,varrho:bie,varsigma:wie,varsubsetneq:xie,varsubsetneqq:kie,varsupsetneq:Sie,varsupsetneqq:_ie,vartheta:Tie,vartriangleleft:Cie,vartriangleright:Eie,vBar:Aie,Vbar:Lie,vBarv:Mie,Vcy:Nie,vcy:Oie,vdash:Pie,vDash:Rie,Vdash:$ie,VDash:Iie,Vdashl:Die,veebar:zie,vee:Fie,Vee:Hie,veeeq:Bie,vellip:Wie,verbar:qie,Verbar:jie,vert:Uie,Vert:Vie,VerticalBar:Gie,VerticalLine:Kie,VerticalSeparator:Xie,VerticalTilde:Yie,VeryThinSpace:Zie,Vfr:Jie,vfr:Qie,vltri:eoe,vnsub:toe,vnsup:noe,Vopf:roe,vopf:ioe,vprop:ooe,vrtri:soe,Vscr:loe,vscr:aoe,vsubnE:coe,vsubne:uoe,vsupnE:foe,vsupne:doe,Vvdash:hoe,vzigzag:poe,Wcirc:goe,wcirc:moe,wedbar:voe,wedge:yoe,Wedge:boe,wedgeq:woe,weierp:xoe,Wfr:koe,wfr:Soe,Wopf:_oe,wopf:Toe,wp:Coe,wr:Eoe,wreath:Aoe,Wscr:Loe,wscr:Moe,xcap:Noe,xcirc:Ooe,xcup:Poe,xdtri:Roe,Xfr:$oe,xfr:Ioe,xharr:Doe,xhArr:zoe,Xi:Foe,xi:Hoe,xlarr:Boe,xlArr:Woe,xmap:qoe,xnis:joe,xodot:Uoe,Xopf:Voe,xopf:Goe,xoplus:Koe,xotime:Xoe,xrarr:Yoe,xrArr:Zoe,Xscr:Joe,xscr:Qoe,xsqcup:ese,xuplus:tse,xutri:nse,xvee:rse,xwedge:ise,Yacute:ose,yacute:sse,YAcy:lse,yacy:ase,Ycirc:cse,ycirc:use,Ycy:fse,ycy:dse,yen:hse,Yfr:pse,yfr:gse,YIcy:mse,yicy:vse,Yopf:yse,yopf:bse,Yscr:wse,yscr:xse,YUcy:kse,yucy:Sse,yuml:_se,Yuml:Tse,Zacute:Cse,zacute:Ese,Zcaron:Ase,zcaron:Lse,Zcy:Mse,zcy:Nse,Zdot:Ose,zdot:Pse,zeetrf:Rse,ZeroWidthSpace:$se,Zeta:Ise,zeta:Dse,zfr:zse,Zfr:Fse,ZHcy:Hse,zhcy:Bse,zigrarr:Wse,zopf:qse,Zopf:jse,Zscr:Use,zscr:Vse,zwj:Gse,zwnj:Kse},Xse="Á",Yse="á",Zse="Â",Jse="â",Qse="´",ele="Æ",tle="æ",nle="À",rle="à",ile="&",ole="&",sle="Å",lle="å",ale="Ã",cle="ã",ule="Ä",fle="ä",dle="¦",hle="Ç",ple="ç",gle="¸",mle="¢",vle="©",yle="©",ble="¤",wle="°",xle="÷",kle="É",Sle="é",_le="Ê",Tle="ê",Cle="È",Ele="è",Ale="Ð",Lle="ð",Mle="Ë",Nle="ë",Ole="½",Ple="¼",Rle="¾",$le=">",Ile=">",Dle="Í",zle="í",Fle="Î",Hle="î",Ble="¡",Wle="Ì",qle="ì",jle="¿",Ule="Ï",Vle="ï",Gle="«",Kle="<",Xle="<",Yle="¯",Zle="µ",Jle="·",Qle=" ",eae="¬",tae="Ñ",nae="ñ",rae="Ó",iae="ó",oae="Ô",sae="ô",lae="Ò",aae="ò",cae="ª",uae="º",fae="Ø",dae="ø",hae="Õ",pae="õ",gae="Ö",mae="ö",vae="¶",yae="±",bae="£",wae='"',xae='"',kae="»",Sae="®",_ae="®",Tae="§",Cae="",Eae="¹",Aae="²",Lae="³",Mae="ß",Nae="Þ",Oae="þ",Pae="×",Rae="Ú",$ae="ú",Iae="Û",Dae="û",zae="Ù",Fae="ù",Hae="¨",Bae="Ü",Wae="ü",qae="Ý",jae="ý",Uae="¥",Vae="ÿ",Gae={Aacute:Xse,aacute:Yse,Acirc:Zse,acirc:Jse,acute:Qse,AElig:ele,aelig:tle,Agrave:nle,agrave:rle,amp:ile,AMP:ole,Aring:sle,aring:lle,Atilde:ale,atilde:cle,Auml:ule,auml:fle,brvbar:dle,Ccedil:hle,ccedil:ple,cedil:gle,cent:mle,copy:vle,COPY:yle,curren:ble,deg:wle,divide:xle,Eacute:kle,eacute:Sle,Ecirc:_le,ecirc:Tle,Egrave:Cle,egrave:Ele,ETH:Ale,eth:Lle,Euml:Mle,euml:Nle,frac12:Ole,frac14:Ple,frac34:Rle,gt:$le,GT:Ile,Iacute:Dle,iacute:zle,Icirc:Fle,icirc:Hle,iexcl:Ble,Igrave:Wle,igrave:qle,iquest:jle,Iuml:Ule,iuml:Vle,laquo:Gle,lt:Kle,LT:Xle,macr:Yle,micro:Zle,middot:Jle,nbsp:Qle,not:eae,Ntilde:tae,ntilde:nae,Oacute:rae,oacute:iae,Ocirc:oae,ocirc:sae,Ograve:lae,ograve:aae,ordf:cae,ordm:uae,Oslash:fae,oslash:dae,Otilde:hae,otilde:pae,Ouml:gae,ouml:mae,para:vae,plusmn:yae,pound:bae,quot:wae,QUOT:xae,raquo:kae,reg:Sae,REG:_ae,sect:Tae,shy:Cae,sup1:Eae,sup2:Aae,sup3:Lae,szlig:Mae,THORN:Nae,thorn:Oae,times:Pae,Uacute:Rae,uacute:$ae,Ucirc:Iae,ucirc:Dae,Ugrave:zae,ugrave:Fae,uml:Hae,Uuml:Bae,uuml:Wae,Yacute:qae,yacute:jae,yen:Uae,yuml:Vae},Kae="&",Xae="'",Yae=">",Zae="<",Jae='"',ux={amp:Kae,apos:Xae,gt:Yae,lt:Zae,quot:Jae};var Ts={};const Qae={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 fy;function ece(){if(fy)return Ts;fy=1;var e=Ts&&Ts.__importDefault||function(s){return s&&s.__esModule?s:{default:s}};Object.defineProperty(Ts,"__esModule",{value:!0});var t=e(Qae),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 Ts.default=o,Ts}var dy;function hy(){if(dy)return Er;dy=1;var e=Er&&Er.__importDefault||function(p){return p&&p.__esModule?p:{default:p}};Object.defineProperty(Er,"__esModule",{value:!0}),Er.decodeHTML=Er.decodeHTMLStrict=Er.decodeXML=void 0;var t=e(cx),r=e(Gae),o=e(ux),s=e(ece()),c=/&(?:[a-zA-Z0-9]+|#[xX][\da-fA-F]+|#\d+);/g;Er.decodeXML=f(o.default),Er.decodeHTMLStrict=f(t.default);function f(p){var g=h(p);return function(v){return String(v).replace(c,g)}}var d=function(p,g){return p<g?1:-1};Er.decodeHTML=(function(){for(var p=Object.keys(r.default).sort(d),g=Object.keys(t.default).sort(d),v=0,b=0;v<g.length;v++)p[b]===g[v]?(g[v]+=";?",b++):g[v]+=";";var w=new RegExp("&(?:"+g.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),E=h(t.default);function L(P){return P.substr(-1)!==";"&&(P+=";"),E(P)}return function(P){return String(P).replace(w,L)}})();function h(p){return function(v){if(v.charAt(1)==="#"){var b=v.charAt(2);return b==="X"||b==="x"?s.default(parseInt(v.substr(3),16)):s.default(parseInt(v.substr(2),10))}return p[v.slice(1,-1)]||v}}return Er}var Ln={},py;function gy(){if(py)return Ln;py=1;var e=Ln&&Ln.__importDefault||function(M){return M&&M.__esModule?M:{default:M}};Object.defineProperty(Ln,"__esModule",{value:!0}),Ln.escapeUTF8=Ln.escape=Ln.encodeNonAsciiHTML=Ln.encodeHTML=Ln.encodeXML=void 0;var t=e(ux),r=d(t.default),o=h(r);Ln.encodeXML=P(r);var s=e(cx),c=d(s.default),f=h(c);Ln.encodeHTML=b(c,f),Ln.encodeNonAsciiHTML=P(c);function d(M){return Object.keys(M).sort().reduce(function(R,I){return R[M[I]]="&"+I+";",R},{})}function h(M){for(var R=[],I=[],_=0,$=Object.keys(M);_<$.length;_++){var W=$[_];W.length===1?R.push("\\"+W):I.push(W)}R.sort();for(var ne=0;ne<R.length-1;ne++){for(var ee=ne;ee<R.length-1&&R[ee].charCodeAt(1)+1===R[ee+1].charCodeAt(1);)ee+=1;var Z=1+ee-ne;Z<3||R.splice(ne,Z,R[ne]+"-"+R[ee])}return I.unshift("["+R.join("")+"]"),new RegExp(I.join("|"),"g")}var p=/(?:[\x80-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/g,g=String.prototype.codePointAt!=null?function(M){return M.codePointAt(0)}:function(M){return(M.charCodeAt(0)-55296)*1024+M.charCodeAt(1)-56320+65536};function v(M){return"&#x"+(M.length>1?g(M):M.charCodeAt(0)).toString(16).toUpperCase()+";"}function b(M,R){return function(I){return I.replace(R,function(_){return M[_]}).replace(p,v)}}var w=new RegExp(o.source+"|"+p.source,"g");function E(M){return M.replace(w,v)}Ln.escape=E;function L(M){return M.replace(o,v)}Ln.escapeUTF8=L;function P(M){return function(R){return R.replace(w,function(I){return M[I]||v(I)})}}return Ln}var my;function tce(){return my||(my=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=hy(),r=gy();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=gy();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=hy();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}})})(Ad)),Ad}var Ld,vy;function nce(){if(vy)return Ld;vy=1;function e(N,O){if(!(N instanceof O))throw new TypeError("Cannot call a class as a function")}function t(N,O){for(var C=0;C<O.length;C++){var k=O[C];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(N,k.key,k)}}function r(N,O,C){return O&&t(N.prototype,O),N}function o(N,O){var C=typeof Symbol<"u"&&N[Symbol.iterator]||N["@@iterator"];if(!C){if(Array.isArray(N)||(C=s(N))||O){C&&(N=C);var k=0,z=function(){};return{s:z,n:function(){return k>=N.length?{done:!0}:{done:!1,value:N[k++]}},e:function(Be){throw Be},f:z}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. |
| 44 | In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var B=!0,ce=!1,be;return{s:function(){C=C.call(N)},n:function(){var Be=C.next();return B=Be.done,Be},e:function(Be){ce=!0,be=Be},f:function(){try{!B&&C.return!=null&&C.return()}finally{if(ce)throw be}}}}function s(N,O){if(N){if(typeof N=="string")return c(N,O);var C=Object.prototype.toString.call(N).slice(8,-1);if(C==="Object"&&N.constructor&&(C=N.constructor.name),C==="Map"||C==="Set")return Array.from(N);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return c(N,O)}}function c(N,O){(O==null||O>N.length)&&(O=N.length);for(var C=0,k=new Array(O);C<O;C++)k[C]=N[C];return k}var f=tce(),d={fg:"#FFF",bg:"#000",newline:!1,escapeXML:!1,stream:!1,colors:h()};function h(){var N={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 P(0,5).forEach(function(O){P(0,5).forEach(function(C){P(0,5).forEach(function(k){return p(O,C,k,N)})})}),P(0,23).forEach(function(O){var C=O+232,k=g(O*10+8);N[C]="#"+k+k+k}),N}function p(N,O,C,k){var z=16+N*36+O*6+C,B=N>0?N*40+55:0,ce=O>0?O*40+55:0,be=C>0?C*40+55:0;k[z]=v([B,ce,be])}function g(N){for(var O=N.toString(16);O.length<2;)O="0"+O;return O}function v(N){var O=[],C=o(N),k;try{for(C.s();!(k=C.n()).done;){var z=k.value;O.push(g(z))}}catch(B){C.e(B)}finally{C.f()}return"#"+O.join("")}function b(N,O,C,k){var z;return O==="text"?z=I(C,k):O==="display"?z=E(N,C,k):O==="xterm256Foreground"?z=W(N,k.colors[C]):O==="xterm256Background"?z=ne(N,k.colors[C]):O==="rgb"&&(z=w(N,C)),z}function w(N,O){O=O.substring(2).slice(0,-1);var C=+O.substr(0,2),k=O.substring(5).split(";"),z=k.map(function(B){return("0"+Number(B).toString(16)).substr(-2)}).join("");return $(N,(C===38?"color:#":"background-color:#")+z)}function E(N,O,C){O=parseInt(O,10);var k={"-1":function(){return"<br/>"},0:function(){return N.length&&L(N)},1:function(){return _(N,"b")},3:function(){return _(N,"i")},4:function(){return _(N,"u")},8:function(){return $(N,"display:none")},9:function(){return _(N,"strike")},22:function(){return $(N,"font-weight:normal;text-decoration:none;font-style:normal")},23:function(){return ee(N,"i")},24:function(){return ee(N,"u")},39:function(){return W(N,C.fg)},49:function(){return ne(N,C.bg)},53:function(){return $(N,"text-decoration:overline")}},z;return k[O]?z=k[O]():4<O&&O<7?z=_(N,"blink"):29<O&&O<38?z=W(N,C.colors[O-30]):39<O&&O<48?z=ne(N,C.colors[O-40]):89<O&&O<98?z=W(N,C.colors[8+(O-90)]):99<O&&O<108&&(z=ne(N,C.colors[8+(O-100)])),z}function L(N){var O=N.slice(0);return N.length=0,O.reverse().map(function(C){return"</"+C+">"}).join("")}function P(N,O){for(var C=[],k=N;k<=O;k++)C.push(k);return C}function M(N){return function(O){return(N===null||O.category!==N)&&N!=="all"}}function R(N){N=parseInt(N,10);var O=null;return N===0?O="all":N===1?O="bold":2<N&&N<5?O="underline":4<N&&N<7?O="blink":N===8?O="hide":N===9?O="strike":29<N&&N<38||N===39||89<N&&N<98?O="foreground-color":(39<N&&N<48||N===49||99<N&&N<108)&&(O="background-color"),O}function I(N,O){return O.escapeXML?f.encodeXML(N):N}function _(N,O,C){return C||(C=""),N.push(O),"<".concat(O).concat(C?' style="'.concat(C,'"'):"",">")}function $(N,O){return _(N,"span",O)}function W(N,O){return _(N,"span","color:"+O)}function ne(N,O){return _(N,"span","background-color:"+O)}function ee(N,O){var C;if(N.slice(-1)[0]===O&&(C=N.pop()),C)return"</"+O+">"}function Z(N,O,C){var k=!1,z=3;function B(){return""}function ce(q,Q){return C("xterm256Foreground",Q),""}function be(q,Q){return C("xterm256Background",Q),""}function Se(q){return O.newline?C("display",-1):C("text",q),""}function Be(q,Q){k=!0,Q.trim().length===0&&(Q="0"),Q=Q.trimRight(";").split(";");var he=o(Q),de;try{for(he.s();!(de=he.n()).done;){var ge=de.value;C("display",ge)}}catch(Ce){he.e(Ce)}finally{he.f()}return""}function Ae(q){return C("text",q),""}function Ke(q){return C("rgb",q),""}var je=[{pattern:/^\x08+/,sub:B},{pattern:/^\x1b\[[012]?K/,sub:B},{pattern:/^\x1b\[\(B/,sub:B},{pattern:/^\x1b\[[34]8;2;\d+;\d+;\d+m/,sub:Ke},{pattern:/^\x1b\[38;5;(\d+)m/,sub:ce},{pattern:/^\x1b\[48;5;(\d+)m/,sub:be},{pattern:/^\n/,sub:Se},{pattern:/^\r+\n/,sub:Se},{pattern:/^\r/,sub:Se},{pattern:/^\x1b\[((?:\d{1,3};?)+|)m/,sub:Be},{pattern:/^\x1b\[\d?J/,sub:B},{pattern:/^\x1b\[\d{0,3};\d{0,3}f/,sub:B},{pattern:/^\x1b\[?[\d;]{0,3}/,sub:B},{pattern:/^(([^\x1b\x08\r\n])+)/,sub:Ae}];function Fe(q,Q){Q>z&&k||(k=!1,N=N.replace(q.pattern,q.sub))}var Pe=[],F=N,Y=F.length;e:for(;Y>0;){for(var re=0,le=0,ae=je.length;le<ae;re=++le){var D=je[re];if(Fe(D,re),N.length!==Y){Y=N.length;continue e}}if(N.length===Y)break;Pe.push(0),Y=N.length}return Pe}function G(N,O,C){return O!=="text"&&(N=N.filter(M(R(C))),N.push({token:O,data:C,category:R(C)})),N}var j=(function(){function N(O){e(this,N),O=O||{},O.colors&&(O.colors=Object.assign({},d.colors,O.colors)),this.options=Object.assign({},d,O),this.stack=[],this.stickyStack=[]}return r(N,[{key:"toHtml",value:function(C){var k=this;C=typeof C=="string"?[C]:C;var z=this.stack,B=this.options,ce=[];return this.stickyStack.forEach(function(be){var Se=b(z,be.token,be.data,B);Se&&ce.push(Se)}),Z(C.join(""),B,function(be,Se){var Be=b(z,be,Se,B);Be&&ce.push(Be),B.stream&&(k.stickyStack=G(k.stickyStack,be,Se))}),z.length&&ce.push(L(z)),ce.join("")}}]),N})();return Ld=j,Ld}var rce=nce();const ice=ax(rce);function oa(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function oce(e,t){return t&&e.endsWith(t)}async function bp(e,t,r){const o=encodeURI(`${e}:${t}:${r}`);await fetch(`/__open-in-editor?file=${o}`)}function wp(e){return new ice({fg:e?"#FFF":"#000",bg:e?"#000":"#FFF"})}function sce(e){return e===null||typeof e!="function"&&typeof e!="object"}function fx(e){let t=e;if(sce(e)&&(t={message:String(t).split(/\n/g)[0],stack:String(t),name:"",stacks:[]}),!e){const r=new Error("unknown error");t={message:r.message,stack:r.stack,name:"",stacks:[]}}return t.stacks=wA(t.stack||"",{ignoreStackEntries:[]}),t}function lce(e,t){let r="";return t.message?.includes("\x1B")&&(r=`<b>${t.name}</b>: ${e.toHtml(oa(t.message))}`),t.stack?.includes("\x1B")&&(r.length>0?r+=e.toHtml(oa(t.stack)):r=`<b>${t.name}</b>: ${t.message}${e.toHtml(oa(t.stack))}`),r.length>0?r:null}function dx(e,t){const r=wp(e);return t.map(o=>{const s=o.result;if(!s||s.htmlError)return o;const c=s.errors?.map(f=>lce(r,f)).filter(f=>f!=null).join("<br><br>");return c?.length&&(s.htmlError=c),o})}const Wa=jE("hash",{initialValue:{file:"",view:null,line:null,test:null,column:null}}),po=Yo(Wa,"file"),hn=Yo(Wa,"view"),hx=Yo(Wa,"line"),px=Yo(Wa,"column"),Bs=Yo(Wa,"test");var yy={exports:{}},by;function xp(){return by||(by=1,(function(e,t){(function(r){r(vo())})(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,g=s.typescript,v=s.wordCharacters||/[\w$\xa1-\uffff]/,b=(function(){function A(Zt){return{type:Zt,style:"keyword"}}var U=A("keyword a"),me=A("keyword b"),_e=A("keyword c"),fe=A("keyword d"),Ie=A("operator"),pt={type:"atom",style:"atom"};return{if:A("if"),while:U,with:U,else:me,do:me,try:me,finally:me,return:fe,break:fe,continue:fe,new:A("new"),delete:_e,void:_e,throw:_e,debugger:A("debugger"),var:A("var"),const:A("var"),let:A("var"),function:A("function"),catch:A("catch"),for:A("for"),switch:A("switch"),case:A("case"),default:A("default"),in:Ie,typeof:Ie,instanceof:Ie,true:pt,false:pt,null:pt,undefined:pt,NaN:pt,Infinity:pt,this:A("this"),class:A("class"),super:A("atom"),yield:_e,export:A("export"),import:A("import"),extends:_e,await:_e}})(),w=/[+\-*&%=<>!?|~^@]/,E=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function L(A){for(var U=!1,me,_e=!1;(me=A.next())!=null;){if(!U){if(me=="/"&&!_e)return;me=="["?_e=!0:_e&&me=="]"&&(_e=!1)}U=!U&&me=="\\"}}var P,M;function R(A,U,me){return P=A,M=me,U}function I(A,U){var me=A.next();if(me=='"'||me=="'")return U.tokenize=_(me),U.tokenize(A,U);if(me=="."&&A.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return R("number","number");if(me=="."&&A.match(".."))return R("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(me))return R(me);if(me=="="&&A.eat(">"))return R("=>","operator");if(me=="0"&&A.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return R("number","number");if(/\d/.test(me))return A.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),R("number","number");if(me=="/")return A.eat("*")?(U.tokenize=$,$(A,U)):A.eat("/")?(A.skipToEnd(),R("comment","comment")):Qn(A,U,1)?(L(A),A.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),R("regexp","string-2")):(A.eat("="),R("operator","operator",A.current()));if(me=="`")return U.tokenize=W,W(A,U);if(me=="#"&&A.peek()=="!")return A.skipToEnd(),R("meta","meta");if(me=="#"&&A.eatWhile(v))return R("variable","property");if(me=="<"&&A.match("!--")||me=="-"&&A.match("->")&&!/\S/.test(A.string.slice(0,A.start)))return A.skipToEnd(),R("comment","comment");if(w.test(me))return(me!=">"||!U.lexical||U.lexical.type!=">")&&(A.eat("=")?(me=="!"||me=="=")&&A.eat("="):/[<>*+\-|&?]/.test(me)&&(A.eat(me),me==">"&&A.eat(me))),me=="?"&&A.eat(".")?R("."):R("operator","operator",A.current());if(v.test(me)){A.eatWhile(v);var _e=A.current();if(U.lastType!="."){if(b.propertyIsEnumerable(_e)){var fe=b[_e];return R(fe.type,fe.style,_e)}if(_e=="async"&&A.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return R("async","keyword",_e)}return R("variable","variable",_e)}}function _(A){return function(U,me){var _e=!1,fe;if(d&&U.peek()=="@"&&U.match(E))return me.tokenize=I,R("jsonld-keyword","meta");for(;(fe=U.next())!=null&&!(fe==A&&!_e);)_e=!_e&&fe=="\\";return _e||(me.tokenize=I),R("string","string")}}function $(A,U){for(var me=!1,_e;_e=A.next();){if(_e=="/"&&me){U.tokenize=I;break}me=_e=="*"}return R("comment","comment")}function W(A,U){for(var me=!1,_e;(_e=A.next())!=null;){if(!me&&(_e=="`"||_e=="$"&&A.eat("{"))){U.tokenize=I;break}me=!me&&_e=="\\"}return R("quasi","string-2",A.current())}var ne="([{}])";function ee(A,U){U.fatArrowAt&&(U.fatArrowAt=null);var me=A.string.indexOf("=>",A.start);if(!(me<0)){if(g){var _e=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(A.string.slice(A.start,me));_e&&(me=_e.index)}for(var fe=0,Ie=!1,pt=me-1;pt>=0;--pt){var Zt=A.string.charAt(pt),Sn=ne.indexOf(Zt);if(Sn>=0&&Sn<3){if(!fe){++pt;break}if(--fe==0){Zt=="("&&(Ie=!0);break}}else if(Sn>=3&&Sn<6)++fe;else if(v.test(Zt))Ie=!0;else if(/["'\/`]/.test(Zt))for(;;--pt){if(pt==0)return;var is=A.string.charAt(pt-1);if(is==Zt&&A.string.charAt(pt-2)!="\\"){pt--;break}}else if(Ie&&!fe){++pt;break}}Ie&&!fe&&(U.fatArrowAt=pt)}}var Z={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function G(A,U,me,_e,fe,Ie){this.indented=A,this.column=U,this.type=me,this.prev=fe,this.info=Ie,_e!=null&&(this.align=_e)}function j(A,U){if(!p)return!1;for(var me=A.localVars;me;me=me.next)if(me.name==U)return!0;for(var _e=A.context;_e;_e=_e.prev)for(var me=_e.vars;me;me=me.next)if(me.name==U)return!0}function N(A,U,me,_e,fe){var Ie=A.cc;for(O.state=A,O.stream=fe,O.marked=null,O.cc=Ie,O.style=U,A.lexical.hasOwnProperty("align")||(A.lexical.align=!0);;){var pt=Ie.length?Ie.pop():h?ae:re;if(pt(me,_e)){for(;Ie.length&&Ie[Ie.length-1].lex;)Ie.pop()();return O.marked?O.marked:me=="variable"&&j(A,_e)?"variable-2":U}}}var O={state:null,marked:null,cc:null};function C(){for(var A=arguments.length-1;A>=0;A--)O.cc.push(arguments[A])}function k(){return C.apply(null,arguments),!0}function z(A,U){for(var me=U;me;me=me.next)if(me.name==A)return!0;return!1}function B(A){var U=O.state;if(O.marked="def",!!p){if(U.context){if(U.lexical.info=="var"&&U.context&&U.context.block){var me=ce(A,U.context);if(me!=null){U.context=me;return}}else if(!z(A,U.localVars)){U.localVars=new Be(A,U.localVars);return}}s.globalVars&&!z(A,U.globalVars)&&(U.globalVars=new Be(A,U.globalVars))}}function ce(A,U){if(U)if(U.block){var me=ce(A,U.prev);return me?me==U.prev?U:new Se(me,U.vars,!0):null}else return z(A,U.vars)?U:new Se(U.prev,new Be(A,U.vars),!1);else return null}function be(A){return A=="public"||A=="private"||A=="protected"||A=="abstract"||A=="readonly"}function Se(A,U,me){this.prev=A,this.vars=U,this.block=me}function Be(A,U){this.name=A,this.next=U}var Ae=new Be("this",new Be("arguments",null));function Ke(){O.state.context=new Se(O.state.context,O.state.localVars,!1),O.state.localVars=Ae}function je(){O.state.context=new Se(O.state.context,O.state.localVars,!0),O.state.localVars=null}Ke.lex=je.lex=!0;function Fe(){O.state.localVars=O.state.context.vars,O.state.context=O.state.context.prev}Fe.lex=!0;function Pe(A,U){var me=function(){var _e=O.state,fe=_e.indented;if(_e.lexical.type=="stat")fe=_e.lexical.indented;else for(var Ie=_e.lexical;Ie&&Ie.type==")"&&Ie.align;Ie=Ie.prev)fe=Ie.indented;_e.lexical=new G(fe,O.stream.column(),A,null,_e.lexical,U)};return me.lex=!0,me}function F(){var A=O.state;A.lexical.prev&&(A.lexical.type==")"&&(A.indented=A.lexical.indented),A.lexical=A.lexical.prev)}F.lex=!0;function Y(A){function U(me){return me==A?k():A==";"||me=="}"||me==")"||me=="]"?C():k(U)}return U}function re(A,U){return A=="var"?k(Pe("vardef",U),Zo,Y(";"),F):A=="keyword a"?k(Pe("form"),q,re,F):A=="keyword b"?k(Pe("form"),re,F):A=="keyword d"?O.stream.match(/^\s*$/,!1)?k():k(Pe("stat"),he,Y(";"),F):A=="debugger"?k(Y(";")):A=="{"?k(Pe("}"),je,jt,F,Fe):A==";"?k():A=="if"?(O.state.lexical.info=="else"&&O.state.cc[O.state.cc.length-1]==F&&O.state.cc.pop()(),k(Pe("form"),q,re,F,Jo)):A=="function"?k(cr):A=="for"?k(Pe("form"),je,Ga,re,Fe,F):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Pe("form",A=="class"?A:U),Qo,F)):A=="variable"?g&&U=="declare"?(O.marked="keyword",k(re)):g&&(U=="module"||U=="enum"||U=="type")&&O.stream.match(/^\s*\w/,!1)?(O.marked="keyword",U=="enum"?k(qe):U=="type"?k(Ka,Y("operator"),lt,Y(";")):k(Pe("form"),kn,Y("{"),Pe("}"),jt,F,F)):g&&U=="namespace"?(O.marked="keyword",k(Pe("form"),ae,re,F)):g&&U=="abstract"?(O.marked="keyword",k(re)):k(Pe("stat"),$e):A=="switch"?k(Pe("form"),q,Y("{"),Pe("}","switch"),je,jt,F,F,Fe):A=="case"?k(ae,Y(":")):A=="default"?k(Y(":")):A=="catch"?k(Pe("form"),Ke,le,re,F,Fe):A=="export"?k(Pe("stat"),es,F):A=="import"?k(Pe("stat"),$i,F):A=="async"?k(re):U=="@"?k(ae,re):C(Pe("stat"),ae,Y(";"),F)}function le(A){if(A=="(")return k(wr,Y(")"))}function ae(A,U){return Q(A,U,!1)}function D(A,U){return Q(A,U,!0)}function q(A){return A!="("?C():k(Pe(")"),he,Y(")"),F)}function Q(A,U,me){if(O.state.fatArrowAt==O.stream.start){var _e=me?ye:xe;if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Y("=>"),_e,Fe);if(A=="variable")return C(Ke,kn,Y("=>"),_e,Fe)}var fe=me?ge:de;return Z.hasOwnProperty(A)?k(fe):A=="function"?k(cr,fe):A=="class"||g&&U=="interface"?(O.marked="keyword",k(Pe("form"),vf,F)):A=="keyword c"||A=="async"?k(me?D:ae):A=="("?k(Pe(")"),he,Y(")"),F,fe):A=="operator"||A=="spread"?k(me?D:ae):A=="["?k(Pe("]"),$t,F,fe):A=="{"?Yt(ct,"}",null,fe):A=="quasi"?C(Ce,fe):A=="new"?k(J(me)):k()}function he(A){return A.match(/[;\}\)\],]/)?C():C(ae)}function de(A,U){return A==","?k(he):ge(A,U,!1)}function ge(A,U,me){var _e=me==!1?de:ge,fe=me==!1?ae:D;if(A=="=>")return k(Ke,me?ye:xe,Fe);if(A=="operator")return/\+\+|--/.test(U)||g&&U=="!"?k(_e):g&&U=="<"&&O.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?k(Pe(">"),ut(lt,">"),F,_e):U=="?"?k(ae,Y(":"),fe):k(fe);if(A=="quasi")return C(Ce,_e);if(A!=";"){if(A=="(")return Yt(D,")","call",_e);if(A==".")return k(Je,_e);if(A=="[")return k(Pe("]"),he,Y("]"),F,_e);if(g&&U=="as")return O.marked="keyword",k(lt,_e);if(A=="regexp")return O.state.lastType=O.marked="operator",O.stream.backUp(O.stream.pos-O.stream.start-1),k(fe)}}function Ce(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(Ce):k(he,Ee)}function Ee(A){if(A=="}")return O.marked="string-2",O.state.tokenize=W,k(Ce)}function xe(A){return ee(O.stream,O.state),C(A=="{"?re:ae)}function ye(A){return ee(O.stream,O.state),C(A=="{"?re:D)}function J(A){return function(U){return U=="."?k(A?oe:ue):U=="variable"&&g?k(Bn,A?ge:de):C(A?D:ae)}}function ue(A,U){if(U=="target")return O.marked="keyword",k(de)}function oe(A,U){if(U=="target")return O.marked="keyword",k(ge)}function $e(A){return A==":"?k(F,re):C(de,Y(";"),F)}function Je(A){if(A=="variable")return O.marked="property",k()}function ct(A,U){if(A=="async")return O.marked="property",k(ct);if(A=="variable"||O.style=="keyword"){if(O.marked="property",U=="get"||U=="set")return k(dt);var me;return g&&O.state.fatArrowAt==O.stream.start&&(me=O.stream.match(/^\s*:\s*/,!1))&&(O.state.fatArrowAt=O.stream.pos+me[0].length),k(Nt)}else{if(A=="number"||A=="string")return O.marked=d?"property":O.style+" property",k(Nt);if(A=="jsonld-keyword")return k(Nt);if(g&&be(U))return O.marked="keyword",k(ct);if(A=="[")return k(ae,Fn,Y("]"),Nt);if(A=="spread")return k(D,Nt);if(U=="*")return O.marked="keyword",k(ct);if(A==":")return C(Nt)}}function dt(A){return A!="variable"?C(Nt):(O.marked="property",k(cr))}function Nt(A){if(A==":")return k(D);if(A=="(")return C(cr)}function ut(A,U,me){function _e(fe,Ie){if(me?me.indexOf(fe)>-1:fe==","){var pt=O.state.lexical;return pt.info=="call"&&(pt.pos=(pt.pos||0)+1),k(function(Zt,Sn){return Zt==U||Sn==U?C():C(A)},_e)}return fe==U||Ie==U?k():me&&me.indexOf(";")>-1?C(A):k(Y(U))}return function(fe,Ie){return fe==U||Ie==U?k():C(A,_e)}}function Yt(A,U,me){for(var _e=3;_e<arguments.length;_e++)O.cc.push(arguments[_e]);return k(Pe(U,me),ut(A,U),F)}function jt(A){return A=="}"?k():C(re,jt)}function Fn(A,U){if(g){if(A==":")return k(lt);if(U=="?")return k(Fn)}}function Hr(A,U){if(g&&(A==":"||U=="in"))return k(lt)}function Bt(A){if(g&&A==":")return O.stream.match(/^\s*\w+\s+is\b/,!1)?k(ae,Hn,lt):k(lt)}function Hn(A,U){if(U=="is")return O.marked="keyword",k()}function lt(A,U){if(U=="keyof"||U=="typeof"||U=="infer"||U=="readonly")return O.marked="keyword",k(U=="typeof"?D:lt);if(A=="variable"||U=="void")return O.marked="type",k(ar);if(U=="|"||U=="&")return k(lt);if(A=="string"||A=="number"||A=="atom")return k(ar);if(A=="[")return k(Pe("]"),ut(lt,"]",","),F,ar);if(A=="{")return k(Pe("}"),Xe,F,ar);if(A=="(")return k(ut(Rt,")"),yo,ar);if(A=="<")return k(ut(lt,">"),lt);if(A=="quasi")return C(an,ar)}function yo(A){if(A=="=>")return k(lt)}function Xe(A){return A.match(/[\}\)\]]/)?k():A==","||A==";"?k(Xe):C(ri,Xe)}function ri(A,U){if(A=="variable"||O.style=="keyword")return O.marked="property",k(ri);if(U=="?"||A=="number"||A=="string")return k(ri);if(A==":")return k(lt);if(A=="[")return k(Y("variable"),Hr,Y("]"),ri);if(A=="(")return C(Ri,ri);if(!A.match(/[;\}\)\],]/))return k()}function an(A,U){return A!="quasi"?C():U.slice(U.length-2)!="${"?k(an):k(lt,Pt)}function Pt(A){if(A=="}")return O.marked="string-2",O.state.tokenize=W,k(an)}function Rt(A,U){return A=="variable"&&O.stream.match(/^\s*[?:]/,!1)||U=="?"?k(Rt):A==":"?k(lt):A=="spread"?k(Rt):C(lt)}function ar(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar);if(U=="|"||A=="."||U=="&")return k(lt);if(A=="[")return k(lt,Y("]"),ar);if(U=="extends"||U=="implements")return O.marked="keyword",k(lt);if(U=="?")return k(lt,Y(":"),lt)}function Bn(A,U){if(U=="<")return k(Pe(">"),ut(lt,">"),F,ar)}function yr(){return C(lt,cn)}function cn(A,U){if(U=="=")return k(lt)}function Zo(A,U){return U=="enum"?(O.marked="keyword",k(qe)):C(kn,Fn,br,mf)}function kn(A,U){if(g&&be(U))return O.marked="keyword",k(kn);if(A=="variable")return B(U),k();if(A=="spread")return k(kn);if(A=="[")return Yt(sl,"]");if(A=="{")return Yt(Oi,"}")}function Oi(A,U){return A=="variable"&&!O.stream.match(/^\s*:/,!1)?(B(U),k(br)):(A=="variable"&&(O.marked="property"),A=="spread"?k(kn):A=="}"?C():A=="["?k(ae,Y("]"),Y(":"),Oi):k(Y(":"),kn,br))}function sl(){return C(kn,br)}function br(A,U){if(U=="=")return k(D)}function mf(A){if(A==",")return k(Zo)}function Jo(A,U){if(A=="keyword b"&&U=="else")return k(Pe("form","else"),re,F)}function Ga(A,U){if(U=="await")return k(Ga);if(A=="(")return k(Pe(")"),ll,F)}function ll(A){return A=="var"?k(Zo,Pi):A=="variable"?k(Pi):C(Pi)}function Pi(A,U){return A==")"?k():A==";"?k(Pi):U=="in"||U=="of"?(O.marked="keyword",k(ae,Pi)):C(ae,Pi)}function cr(A,U){if(U=="*")return O.marked="keyword",k(cr);if(A=="variable")return B(U),k(cr);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,re,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,cr)}function Ri(A,U){if(U=="*")return O.marked="keyword",k(Ri);if(A=="variable")return B(U),k(Ri);if(A=="(")return k(Ke,Pe(")"),ut(wr,")"),F,Bt,Fe);if(g&&U=="<")return k(Pe(">"),ut(yr,">"),F,Ri)}function Ka(A,U){if(A=="keyword"||A=="variable")return O.marked="type",k(Ka);if(U=="<")return k(Pe(">"),ut(yr,">"),F)}function wr(A,U){return U=="@"&&k(ae,wr),A=="spread"?k(wr):g&&be(U)?(O.marked="keyword",k(wr)):g&&A=="this"?k(Fn,br):C(kn,Fn,br)}function vf(A,U){return A=="variable"?Qo(A,U):xr(A,U)}function Qo(A,U){if(A=="variable")return B(U),k(xr)}function xr(A,U){if(U=="<")return k(Pe(">"),ut(yr,">"),F,xr);if(U=="extends"||U=="implements"||g&&A==",")return U=="implements"&&(O.marked="keyword"),k(g?lt:ae,xr);if(A=="{")return k(Pe("}"),kr,F)}function kr(A,U){if(A=="async"||A=="variable"&&(U=="static"||U=="get"||U=="set"||g&&be(U))&&O.stream.match(/^\s+#?[\w$\xa1-\uffff]/,!1))return O.marked="keyword",k(kr);if(A=="variable"||O.style=="keyword")return O.marked="property",k(bo,kr);if(A=="number"||A=="string")return k(bo,kr);if(A=="[")return k(ae,Fn,Y("]"),bo,kr);if(U=="*")return O.marked="keyword",k(kr);if(g&&A=="(")return C(Ri,kr);if(A==";"||A==",")return k(kr);if(A=="}")return k();if(U=="@")return k(ae,kr)}function bo(A,U){if(U=="!"||U=="?")return k(bo);if(A==":")return k(lt,br);if(U=="=")return k(D);var me=O.state.lexical.prev,_e=me&&me.info=="interface";return C(_e?Ri:cr)}function es(A,U){return U=="*"?(O.marked="keyword",k(rs,Y(";"))):U=="default"?(O.marked="keyword",k(ae,Y(";"))):A=="{"?k(ut(ts,"}"),rs,Y(";")):C(re)}function ts(A,U){if(U=="as")return O.marked="keyword",k(Y("variable"));if(A=="variable")return C(D,ts)}function $i(A){return A=="string"?k():A=="("?C(ae):A=="."?C(de):C(ns,Br,rs)}function ns(A,U){return A=="{"?Yt(ns,"}"):(A=="variable"&&B(U),U=="*"&&(O.marked="keyword"),k(al))}function Br(A){if(A==",")return k(ns,Br)}function al(A,U){if(U=="as")return O.marked="keyword",k(ns)}function rs(A,U){if(U=="from")return O.marked="keyword",k(ae)}function $t(A){return A=="]"?k():C(ut(D,"]"))}function qe(){return C(Pe("form"),kn,Y("{"),Pe("}"),ut(ii,"}"),F,F)}function ii(){return C(kn,br)}function cl(A,U){return A.lastType=="operator"||A.lastType==","||w.test(U.charAt(0))||/[,.]/.test(U.charAt(0))}function Qn(A,U,me){return U.tokenize==I&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(U.lastType)||U.lastType=="quasi"&&/\{\s*$/.test(A.string.slice(0,A.pos-(me||0)))}return{startState:function(A){var U={tokenize:I,lastType:"sof",cc:[],lexical:new G((A||0)-c,0,"block",!1),localVars:s.localVars,context:s.localVars&&new Se(null,null,!1),indented:A||0};return s.globalVars&&typeof s.globalVars=="object"&&(U.globalVars=s.globalVars),U},token:function(A,U){if(A.sol()&&(U.lexical.hasOwnProperty("align")||(U.lexical.align=!1),U.indented=A.indentation(),ee(A,U)),U.tokenize!=$&&A.eatSpace())return null;var me=U.tokenize(A,U);return P=="comment"?me:(U.lastType=P=="operator"&&(M=="++"||M=="--")?"incdec":P,N(U,me,P,M,A))},indent:function(A,U){if(A.tokenize==$||A.tokenize==W)return r.Pass;if(A.tokenize!=I)return 0;var me=U&&U.charAt(0),_e=A.lexical,fe;if(!/^\s*else\b/.test(U))for(var Ie=A.cc.length-1;Ie>=0;--Ie){var pt=A.cc[Ie];if(pt==F)_e=_e.prev;else if(pt!=Jo&&pt!=Fe)break}for(;(_e.type=="stat"||_e.type=="form")&&(me=="}"||(fe=A.cc[A.cc.length-1])&&(fe==de||fe==ge)&&!/^[,\.=+\-*:?[\(]/.test(U));)_e=_e.prev;f&&_e.type==")"&&_e.prev.type=="stat"&&(_e=_e.prev);var Zt=_e.type,Sn=me==Zt;return Zt=="vardef"?_e.indented+(A.lastType=="operator"||A.lastType==","?_e.info.length+1:0):Zt=="form"&&me=="{"?_e.indented:Zt=="form"?_e.indented+c:Zt=="stat"?_e.indented+(cl(A,U)?f||c:0):_e.info=="switch"&&!Sn&&s.doubleIndentSwitch!=!1?_e.indented+(/^(?:case|default)\b/.test(U)?c:2*c):_e.align?_e.column+(Sn?0:1):_e.indented+(Sn?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:Qn,skipExpression:function(A){N(A,"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})})})()),yy.exports}xp();var wy={exports:{}},xy;function kp(){return xy||(xy=1,(function(e,t){(function(r){r(vo())})(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 g in p)h[g]=p[g];for(var g in f)h[g]=f[g];var v,b;function w(k,z){function B(Se){return z.tokenize=Se,Se(k,z)}var ce=k.next();if(ce=="<")return k.eat("!")?k.eat("[")?k.match("CDATA[")?B(P("atom","]]>")):null:k.match("--")?B(P("comment","-->")):k.match("DOCTYPE",!0,!0)?(k.eatWhile(/[\w\._\-]/),B(M(1))):null:k.eat("?")?(k.eatWhile(/[\w\._\-]/),z.tokenize=P("meta","?>"),"meta"):(v=k.eat("/")?"closeTag":"openTag",z.tokenize=E,"tag bracket");if(ce=="&"){var be;return k.eat("#")?k.eat("x")?be=k.eatWhile(/[a-fA-F\d]/)&&k.eat(";"):be=k.eatWhile(/[\d]/)&&k.eat(";"):be=k.eatWhile(/[\w\.\-:]/)&&k.eat(";"),be?"atom":"error"}else return k.eatWhile(/[^&<]/),null}w.isInText=!0;function E(k,z){var B=k.next();if(B==">"||B=="/"&&k.eat(">"))return z.tokenize=w,v=B==">"?"endTag":"selfcloseTag","tag bracket";if(B=="=")return v="equals",null;if(B=="<"){z.tokenize=w,z.state=W,z.tagName=z.tagStart=null;var ce=z.tokenize(k,z);return ce?ce+" tag error":"tag error"}else return/[\'\"]/.test(B)?(z.tokenize=L(B),z.stringStartCol=k.column(),z.tokenize(k,z)):(k.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function L(k){var z=function(B,ce){for(;!B.eol();)if(B.next()==k){ce.tokenize=E;break}return"string"};return z.isInAttribute=!0,z}function P(k,z){return function(B,ce){for(;!B.eol();){if(B.match(z)){ce.tokenize=w;break}B.next()}return k}}function M(k){return function(z,B){for(var ce;(ce=z.next())!=null;){if(ce=="<")return B.tokenize=M(k+1),B.tokenize(z,B);if(ce==">")if(k==1){B.tokenize=w;break}else return B.tokenize=M(k-1),B.tokenize(z,B)}return"meta"}}function R(k){return k&&k.toLowerCase()}function I(k,z,B){this.prev=k.context,this.tagName=z||"",this.indent=k.indented,this.startOfLine=B,(h.doNotIndent.hasOwnProperty(z)||k.context&&k.context.noIndent)&&(this.noIndent=!0)}function _(k){k.context&&(k.context=k.context.prev)}function $(k,z){for(var B;;){if(!k.context||(B=k.context.tagName,!h.contextGrabbers.hasOwnProperty(R(B))||!h.contextGrabbers[R(B)].hasOwnProperty(R(z))))return;_(k)}}function W(k,z,B){return k=="openTag"?(B.tagStart=z.column(),ne):k=="closeTag"?ee:W}function ne(k,z,B){return k=="word"?(B.tagName=z.current(),b="tag",j):h.allowMissingTagName&&k=="endTag"?(b="tag bracket",j(k,z,B)):(b="error",ne)}function ee(k,z,B){if(k=="word"){var ce=z.current();return B.context&&B.context.tagName!=ce&&h.implicitlyClosed.hasOwnProperty(R(B.context.tagName))&&_(B),B.context&&B.context.tagName==ce||h.matchClosing===!1?(b="tag",Z):(b="tag error",G)}else return h.allowMissingTagName&&k=="endTag"?(b="tag bracket",Z(k,z,B)):(b="error",G)}function Z(k,z,B){return k!="endTag"?(b="error",Z):(_(B),W)}function G(k,z,B){return b="error",Z(k,z,B)}function j(k,z,B){if(k=="word")return b="attribute",N;if(k=="endTag"||k=="selfcloseTag"){var ce=B.tagName,be=B.tagStart;return B.tagName=B.tagStart=null,k=="selfcloseTag"||h.autoSelfClosers.hasOwnProperty(R(ce))?$(B,ce):($(B,ce),B.context=new I(B,ce,be==B.indented)),W}return b="error",j}function N(k,z,B){return k=="equals"?O:(h.allowMissing||(b="error"),j(k,z,B))}function O(k,z,B){return k=="string"?C:k=="word"&&h.allowUnquoted?(b="string",j):(b="error",j(k,z,B))}function C(k,z,B){return k=="string"?C:j(k,z,B)}return{startState:function(k){var z={tokenize:w,state:W,indented:k||0,tagName:null,tagStart:null,context:null};return k!=null&&(z.baseIndent=k),z},token:function(k,z){if(!z.tagName&&k.sol()&&(z.indented=k.indentation()),k.eatSpace())return null;v=null;var B=z.tokenize(k,z);return(B||v)&&B!="comment"&&(b=null,z.state=z.state(v||B,k,z),b&&(B=b=="error"?B+" error":b)),B},indent:function(k,z,B){var ce=k.context;if(k.tokenize.isInAttribute)return k.tagStart==k.indented?k.stringStartCol+1:k.indented+d;if(ce&&ce.noIndent)return r.Pass;if(k.tokenize!=E&&k.tokenize!=w)return B?B.match(/^(\s*)/)[0].length:0;if(k.tagName)return h.multilineTagIndentPastTag!==!1?k.tagStart+k.tagName.length+2:k.tagStart+d*(h.multilineTagIndentFactor||1);if(h.alignCDATA&&/<!\[CDATA\[/.test(z))return 0;var be=z&&/^<(\/)?([\w_:\.-]*)/.exec(z);if(be&&be[1])for(;ce;)if(ce.tagName==be[2]){ce=ce.prev;break}else if(h.implicitlyClosed.hasOwnProperty(R(ce.tagName)))ce=ce.prev;else break;else if(be)for(;ce;){var Se=h.contextGrabbers[R(ce.tagName)];if(Se&&Se.hasOwnProperty(R(be[2])))ce=ce.prev;else break}for(;ce&&ce.prev&&!ce.startOfLine;)ce=ce.prev;return ce?ce.indent+d:k.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:h.htmlMode?"html":"xml",helperType:h.htmlMode?"html":"xml",skipAttribute:function(k){k.state==O&&(k.state=j)},xmlCurrentTag:function(k){return k.tagName?{name:k.tagName,close:k.type=="closeTag"}:null},xmlCurrentContext:function(k){for(var z=[],B=k.context;B;B=B.prev)z.push(B.tagName);return z.reverse()}}}),r.defineMIME("text/xml","xml"),r.defineMIME("application/xml","xml"),r.mimeModes.hasOwnProperty("text/html")||r.defineMIME("text/html",{name:"xml",htmlMode:!0})})})()),wy.exports}kp();var ky={exports:{}},Sy={exports:{}},_y;function ace(){return _y||(_y=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineMode("css",function(G,j){var N=j.inline;j.propertyKeywords||(j=r.resolveMode("text/css"));var O=G.indentUnit,C=j.tokenHooks,k=j.documentTypes||{},z=j.mediaTypes||{},B=j.mediaFeatures||{},ce=j.mediaValueKeywords||{},be=j.propertyKeywords||{},Se=j.nonStandardPropertyKeywords||{},Be=j.fontProperties||{},Ae=j.counterDescriptors||{},Ke=j.colorKeywords||{},je=j.valueKeywords||{},Fe=j.allowNested,Pe=j.lineComment,F=j.supportsAtComponent===!0,Y=G.highlightNonStandardPropertyKeywords!==!1,re,le;function ae(J,ue){return re=ue,J}function D(J,ue){var oe=J.next();if(C[oe]){var $e=C[oe](J,ue);if($e!==!1)return $e}if(oe=="@")return J.eatWhile(/[\w\\\-]/),ae("def",J.current());if(oe=="="||(oe=="~"||oe=="|")&&J.eat("="))return ae(null,"compare");if(oe=='"'||oe=="'")return ue.tokenize=q(oe),ue.tokenize(J,ue);if(oe=="#")return J.eatWhile(/[\w\\\-]/),ae("atom","hash");if(oe=="!")return J.match(/^\s*\w*/),ae("keyword","important");if(/\d/.test(oe)||oe=="."&&J.eat(/\d/))return J.eatWhile(/[\w.%]/),ae("number","unit");if(oe==="-"){if(/[\d.]/.test(J.peek()))return J.eatWhile(/[\w.%]/),ae("number","unit");if(J.match(/^-[\w\\\-]*/))return J.eatWhile(/[\w\\\-]/),J.match(/^\s*:/,!1)?ae("variable-2","variable-definition"):ae("variable-2","variable");if(J.match(/^\w+-/))return ae("meta","meta")}else return/[,+>*\/]/.test(oe)?ae(null,"select-op"):oe=="."&&J.match(/^-?[_a-z][_a-z0-9-]*/i)?ae("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(oe)?ae(null,oe):J.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(J.current())&&(ue.tokenize=Q),ae("variable callee","variable")):/[\w\\\-]/.test(oe)?(J.eatWhile(/[\w\\\-]/),ae("property","word")):ae(null,null)}function q(J){return function(ue,oe){for(var $e=!1,Je;(Je=ue.next())!=null;){if(Je==J&&!$e){J==")"&&ue.backUp(1);break}$e=!$e&&Je=="\\"}return(Je==J||!$e&&J!=")")&&(oe.tokenize=null),ae("string","string")}}function Q(J,ue){return J.next(),J.match(/^\s*[\"\')]/,!1)?ue.tokenize=null:ue.tokenize=q(")"),ae(null,"(")}function he(J,ue,oe){this.type=J,this.indent=ue,this.prev=oe}function de(J,ue,oe,$e){return J.context=new he(oe,ue.indentation()+($e===!1?0:O),J.context),oe}function ge(J){return J.context.prev&&(J.context=J.context.prev),J.context.type}function Ce(J,ue,oe){return ye[oe.context.type](J,ue,oe)}function Ee(J,ue,oe,$e){for(var Je=$e||1;Je>0;Je--)oe.context=oe.context.prev;return Ce(J,ue,oe)}function xe(J){var ue=J.current().toLowerCase();je.hasOwnProperty(ue)?le="atom":Ke.hasOwnProperty(ue)?le="keyword":le="variable"}var ye={};return ye.top=function(J,ue,oe){if(J=="{")return de(oe,ue,"block");if(J=="}"&&oe.context.prev)return ge(oe);if(F&&/@component/i.test(J))return de(oe,ue,"atComponentBlock");if(/^@(-moz-)?document$/i.test(J))return de(oe,ue,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(J))return de(oe,ue,"atBlock");if(/^@(font-face|counter-style)/i.test(J))return oe.stateArg=J,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(J))return"keyframes";if(J&&J.charAt(0)=="@")return de(oe,ue,"at");if(J=="hash")le="builtin";else if(J=="word")le="tag";else{if(J=="variable-definition")return"maybeprop";if(J=="interpolation")return de(oe,ue,"interpolation");if(J==":")return"pseudo";if(Fe&&J=="(")return de(oe,ue,"parens")}return oe.context.type},ye.block=function(J,ue,oe){if(J=="word"){var $e=ue.current().toLowerCase();return be.hasOwnProperty($e)?(le="property","maybeprop"):Se.hasOwnProperty($e)?(le=Y?"string-2":"property","maybeprop"):Fe?(le=ue.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(le+=" error","maybeprop")}else return J=="meta"?"block":!Fe&&(J=="hash"||J=="qualifier")?(le="error","block"):ye.top(J,ue,oe)},ye.maybeprop=function(J,ue,oe){return J==":"?de(oe,ue,"prop"):Ce(J,ue,oe)},ye.prop=function(J,ue,oe){if(J==";")return ge(oe);if(J=="{"&&Fe)return de(oe,ue,"propBlock");if(J=="}"||J=="{")return Ee(J,ue,oe);if(J=="(")return de(oe,ue,"parens");if(J=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(ue.current()))le+=" error";else if(J=="word")xe(ue);else if(J=="interpolation")return de(oe,ue,"interpolation");return"prop"},ye.propBlock=function(J,ue,oe){return J=="}"?ge(oe):J=="word"?(le="property","maybeprop"):oe.context.type},ye.parens=function(J,ue,oe){return J=="{"||J=="}"?Ee(J,ue,oe):J==")"?ge(oe):J=="("?de(oe,ue,"parens"):J=="interpolation"?de(oe,ue,"interpolation"):(J=="word"&&xe(ue),"parens")},ye.pseudo=function(J,ue,oe){return J=="meta"?"pseudo":J=="word"?(le="variable-3",oe.context.type):Ce(J,ue,oe)},ye.documentTypes=function(J,ue,oe){return J=="word"&&k.hasOwnProperty(ue.current())?(le="tag",oe.context.type):ye.atBlock(J,ue,oe)},ye.atBlock=function(J,ue,oe){if(J=="(")return de(oe,ue,"atBlock_parens");if(J=="}"||J==";")return Ee(J,ue,oe);if(J=="{")return ge(oe)&&de(oe,ue,Fe?"block":"top");if(J=="interpolation")return de(oe,ue,"interpolation");if(J=="word"){var $e=ue.current().toLowerCase();$e=="only"||$e=="not"||$e=="and"||$e=="or"?le="keyword":z.hasOwnProperty($e)?le="attribute":B.hasOwnProperty($e)?le="property":ce.hasOwnProperty($e)?le="keyword":be.hasOwnProperty($e)?le="property":Se.hasOwnProperty($e)?le=Y?"string-2":"property":je.hasOwnProperty($e)?le="atom":Ke.hasOwnProperty($e)?le="keyword":le="error"}return oe.context.type},ye.atComponentBlock=function(J,ue,oe){return J=="}"?Ee(J,ue,oe):J=="{"?ge(oe)&&de(oe,ue,Fe?"block":"top",!1):(J=="word"&&(le="error"),oe.context.type)},ye.atBlock_parens=function(J,ue,oe){return J==")"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe,2):ye.atBlock(J,ue,oe)},ye.restricted_atBlock_before=function(J,ue,oe){return J=="{"?de(oe,ue,"restricted_atBlock"):J=="word"&&oe.stateArg=="@counter-style"?(le="variable","restricted_atBlock_before"):Ce(J,ue,oe)},ye.restricted_atBlock=function(J,ue,oe){return J=="}"?(oe.stateArg=null,ge(oe)):J=="word"?(oe.stateArg=="@font-face"&&!Be.hasOwnProperty(ue.current().toLowerCase())||oe.stateArg=="@counter-style"&&!Ae.hasOwnProperty(ue.current().toLowerCase())?le="error":le="property","maybeprop"):"restricted_atBlock"},ye.keyframes=function(J,ue,oe){return J=="word"?(le="variable","keyframes"):J=="{"?de(oe,ue,"top"):Ce(J,ue,oe)},ye.at=function(J,ue,oe){return J==";"?ge(oe):J=="{"||J=="}"?Ee(J,ue,oe):(J=="word"?le="tag":J=="hash"&&(le="builtin"),"at")},ye.interpolation=function(J,ue,oe){return J=="}"?ge(oe):J=="{"||J==";"?Ee(J,ue,oe):(J=="word"?le="variable":J!="variable"&&J!="("&&J!=")"&&(le="error"),"interpolation")},{startState:function(J){return{tokenize:null,state:N?"block":"top",stateArg:null,context:new he(N?"block":"top",J||0,null)}},token:function(J,ue){if(!ue.tokenize&&J.eatSpace())return null;var oe=(ue.tokenize||D)(J,ue);return oe&&typeof oe=="object"&&(re=oe[1],oe=oe[0]),le=oe,re!="comment"&&(ue.state=ye[ue.state](re,J,ue)),le},indent:function(J,ue){var oe=J.context,$e=ue&&ue.charAt(0),Je=oe.indent;return oe.type=="prop"&&($e=="}"||$e==")")&&(oe=oe.prev),oe.prev&&($e=="}"&&(oe.type=="block"||oe.type=="top"||oe.type=="interpolation"||oe.type=="restricted_atBlock")?(oe=oe.prev,Je=oe.indent):($e==")"&&(oe.type=="parens"||oe.type=="atBlock_parens")||$e=="{"&&(oe.type=="at"||oe.type=="atBlock"))&&(Je=Math.max(0,oe.indent-O))),Je},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:Pe,fold:"brace"}});function o(G){for(var j={},N=0;N<G.length;++N)j[G[N].toLowerCase()]=!0;return j}var s=["domain","regexp","url","url-prefix"],c=o(s),f=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],d=o(f),h=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],p=o(h),g=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],v=o(g),b=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],w=o(b),E=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],L=o(E),P=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],M=o(P),R=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],I=o(R),_=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],$=o(_),W=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ne=o(W),ee=s.concat(f).concat(h).concat(g).concat(b).concat(E).concat(_).concat(W);r.registerHelper("hintWords","css",ee);function Z(G,j){for(var N=!1,O;(O=G.next())!=null;){if(N&&O=="/"){j.tokenize=null;break}N=O=="*"}return["comment","comment"]}r.defineMIME("text/css",{documentTypes:c,mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:I,colorKeywords:$,valueKeywords:ne,tokenHooks:{"/":function(G,j){return G.eat("*")?(j.tokenize=Z,Z(G,j)):!1}},name:"css"}),r.defineMIME("text/x-scss",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,colorKeywords:$,valueKeywords:ne,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,j){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(j.tokenize=Z,Z(G,j)):["operator","operator"]},":":function(G){return G.match(/^\s*\{/,!1)?[null,null]:!1},$:function(G){return G.match(/^[\w-]+/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function(G){return G.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),r.defineMIME("text/x-less",{mediaTypes:d,mediaFeatures:p,mediaValueKeywords:v,propertyKeywords:w,nonStandardPropertyKeywords:L,colorKeywords:$,valueKeywords:ne,fontProperties:M,allowNested:!0,lineComment:"//",tokenHooks:{"/":function(G,j){return G.eat("/")?(G.skipToEnd(),["comment","comment"]):G.eat("*")?(j.tokenize=Z,Z(G,j)):["operator","operator"]},"@":function(G){return G.eat("{")?[null,"interpolation"]:G.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:(G.eatWhile(/[\w\\\-]/),G.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),r.defineMIME("text/x-gss",{documentTypes:c,mediaTypes:d,mediaFeatures:p,propertyKeywords:w,nonStandardPropertyKeywords:L,fontProperties:M,counterDescriptors:I,colorKeywords:$,valueKeywords:ne,supportsAtComponent:!0,tokenHooks:{"/":function(G,j){return G.eat("*")?(j.tokenize=Z,Z(G,j)):!1}},name:"css",helperType:"gss"})})})()),Sy.exports}var Ty;function cce(){return Ty||(Ty=1,(function(e,t){(function(r){r(vo(),kp(),xp(),ace())})(function(r){var o={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function s(v,b,w){var E=v.current(),L=E.search(b);return L>-1?v.backUp(E.length-L):E.match(/<\/?$/)&&(v.backUp(E.length),v.match(b,!1)||v.match(E)),w}var c={};function f(v){var b=c[v];return b||(c[v]=new RegExp("\\s+"+v+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function d(v,b){var w=v.match(f(b));return w?/^\s*(.*?)\s*$/.exec(w[2])[1]:""}function h(v,b){return new RegExp((b?"^":"")+"</\\s*"+v+"\\s*>","i")}function p(v,b){for(var w in v)for(var E=b[w]||(b[w]=[]),L=v[w],P=L.length-1;P>=0;P--)E.unshift(L[P])}function g(v,b){for(var w=0;w<v.length;w++){var E=v[w];if(!E[0]||E[1].test(d(b,E[0])))return E[2]}}r.defineMode("htmlmixed",function(v,b){var w=r.getMode(v,{name:"xml",htmlMode:!0,multilineTagIndentFactor:b.multilineTagIndentFactor,multilineTagIndentPastTag:b.multilineTagIndentPastTag,allowMissingTagName:b.allowMissingTagName}),E={},L=b&&b.tags,P=b&&b.scriptTypes;if(p(o,E),L&&p(L,E),P)for(var M=P.length-1;M>=0;M--)E.script.unshift(["type",P[M].matches,P[M].mode]);function R(I,_){var $=w.token(I,_.htmlState),W=/\btag\b/.test($),ne;if(W&&!/[<>\s\/]/.test(I.current())&&(ne=_.htmlState.tagName&&_.htmlState.tagName.toLowerCase())&&E.hasOwnProperty(ne))_.inTag=ne+" ";else if(_.inTag&&W&&/>$/.test(I.current())){var ee=/^([\S]+) (.*)/.exec(_.inTag);_.inTag=null;var Z=I.current()==">"&&g(E[ee[1]],ee[2]),G=r.getMode(v,Z),j=h(ee[1],!0),N=h(ee[1],!1);_.token=function(O,C){return O.match(j,!1)?(C.token=R,C.localState=C.localMode=null,null):s(O,N,C.localMode.token(O,C.localState))},_.localMode=G,_.localState=r.startState(G,w.indent(_.htmlState,"",""))}else _.inTag&&(_.inTag+=I.current(),I.eol()&&(_.inTag+=" "));return $}return{startState:function(){var I=r.startState(w);return{token:R,inTag:null,localMode:null,localState:null,htmlState:I}},copyState:function(I){var _;return I.localState&&(_=r.copyState(I.localMode,I.localState)),{token:I.token,inTag:I.inTag,localMode:I.localMode,localState:_,htmlState:r.copyState(w,I.htmlState)}},token:function(I,_){return _.token(I,_)},indent:function(I,_,$){return!I.localMode||/^\s*<\//.test(_)?w.indent(I.htmlState,_,$):I.localMode.indent?I.localMode.indent(I.localState,_,$):r.Pass},innerMode:function(I){return{state:I.localState||I.htmlState,mode:I.localMode||w}}}},"xml","javascript","css"),r.defineMIME("text/html","htmlmixed")})})()),ky.exports}cce();var Cy={exports:{}},Ey;function uce(){return Ey||(Ey=1,(function(e,t){(function(r){r(vo(),kp(),xp())})(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 L=d.indent(w,"","");return w.tagName=E,L}function g(w,E){return E.context.mode==d?v(w,E,E.context):b(w,E,E.context)}function v(w,E,L){if(L.depth==2)return w.match(/^.*?\*\//)?L.depth=1:w.skipToEnd(),"comment";if(w.peek()=="{"){d.skipAttribute(L.state);var P=p(L.state),M=L.state.context;if(M&&w.match(/^[^>]*>\s*$/,!1)){for(;M.prev&&!M.startOfLine;)M=M.prev;M.startOfLine?P-=c.indentUnit:L.prev.state.lexical&&(P=L.prev.state.lexical.indented)}else L.depth==1&&(P+=c.indentUnit);return E.context=new o(r.startState(h,P),h,0,E.context),null}if(L.depth==1){if(w.peek()=="<")return d.skipAttribute(L.state),E.context=new o(r.startState(d,p(L.state)),d,0,E.context),null;if(w.match("//"))return w.skipToEnd(),"comment";if(w.match("/*"))return L.depth=2,g(w,E)}var R=d.token(w,L.state),I=w.current(),_;return/\btag\b/.test(R)?/>$/.test(I)?L.state.context?L.depth=0:E.context=E.context.prev:/^</.test(I)&&(L.depth=1):!R&&(_=I.indexOf("{"))>-1&&w.backUp(I.length-_),R}function b(w,E,L){if(w.peek()=="<"&&!w.match(/^<([^<>]|<[^>]*>)+,\s*>/,!1)&&h.expressionAllowed(w,L.state))return E.context=new o(r.startState(d,h.indent(L.state,"","")),d,0,E.context),h.skipExpression(L.state),null;var P=h.token(w,L.state);if(!P&&L.depth!=null){var M=w.current();M=="{"?L.depth++:M=="}"&&--L.depth==0&&(E.context=E.context.prev)}return P}return{startState:function(){return{context:new o(r.startState(h),h)}},copyState:function(w){return{context:s(w.context)}},token:g,indent:function(w,E,L){return w.context.mode.indent(w.context.state,E,L)},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}})})})()),Cy.exports}uce();var Ay={exports:{}},Ly;function fce(){return Ly||(Ly=1,(function(e,t){(function(r){r(vo())})(function(r){r.defineOption("placeholder","",function(p,g,v){var b=v&&v!=r.Init;if(g&&!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(!g&&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","")}g&&!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 g=p.state.placeholder=document.createElement("pre");g.style.cssText="height: 0; overflow: visible",g.style.direction=p.getOption("direction"),g.className="CodeMirror-placeholder CodeMirror-line-like";var v=p.getOption("placeholder");typeof v=="string"&&(v=document.createTextNode(v)),g.appendChild(v),p.display.lineSpace.insertBefore(g,p.display.lineSpace.firstChild)}function c(p){setTimeout(function(){var g=!1;if(p.lineCount()==1){var v=p.getInputField();g=v.nodeName=="TEXTAREA"?!p.getLine(0).length:!/[^\u200b]/.test(v.querySelector(".CodeMirror-line").textContent)}g?s(p):o(p)},20)}function f(p){h(p)&&s(p)}function d(p){var g=p.getWrapperElement(),v=h(p);g.className=g.className.replace(" CodeMirror-empty","")+(v?" CodeMirror-empty":""),v?s(p):o(p)}function h(p){return p.lineCount()===1&&p.getLine(0)===""}})})()),Ay.exports}fce();var My={exports:{}},Ny;function dce(){return Ny||(Ny=1,(function(e,t){(function(r){r(vo())})(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(v){if(v.which!=1)return;r.e_preventDefault(v);var b=p.orientation=="horizontal"?"pageX":"pageY",w=v[b],E=p.pos;function L(){r.off(document,"mousemove",P),r.off(document,"mouseup",L)}function P(M){if(M.which!=1)return L();p.moveTo(E+(M[b]-w)*(p.total/p.size))}r.on(document,"mousemove",P),r.on(document,"mouseup",L)}),r.on(this.node,"click",function(v){r.e_preventDefault(v);var b=p.inner.getBoundingClientRect(),w;p.orientation=="horizontal"?w=v.clientX<b.left?-1:v.clientX>b.right?1:0:w=v.clientY<b.top?-1:v.clientY>b.bottom?1:0,p.moveTo(p.pos+w*p.screen)});function g(v){var b=r.wheelEventPixels(v)[p.orientation=="horizontal"?"x":"y"],w=p.pos;p.moveTo(p.pos+b),p.pos!=w&&r.e_preventDefault(v)}r.on(this.node,"mousewheel",g),r.on(this.node,"DOMMouseScroll",g)}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 g=this.screen*(this.size/this.total);g<s&&(this.size-=s-g,g=s),this.inner.style[this.orientation=="horizontal"?"width":"height"]=g+"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,g=f.scrollHeight>f.clientHeight+1;return this.vert.node.style.display=g?"block":"none",this.horiz.node.style.display=p?"block":"none",g&&(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-(g?h:0)-f.barLeft),this.horiz.node.style.right=g?h+"px":"0",this.horiz.node.style.left=f.barLeft+"px"),{right:g?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)}})})()),My.exports}dce();const Nn=Ft();function hce(e,t,r={}){const o=NL.fromTextArea(e.value,{theme:"vars",...r,scrollbarStyle:"simple"});let s=!1;return o.on("change",()=>{if(s){s=!1;return}t.value=o.getValue()}),xt(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}),Ia(()=>{Nn.value=void 0}),Uu(o)}async function gx(e){_a({file:e.file.id,line:e.location?.line??1,view:"editor",test:e.id,column:null})}function pce(e,t){_a({file:e,column:t.column-1,line:t.line,view:"editor",test:Bs.value})}function gce(e,t){if(!t)return;const{line:r,column:o,file:s}=t;if(e.file.filepath!==s)return bp(s,r,o);_a({file:e.file.id,column:o-1,line:r,view:"editor",test:Bs.value})}const pr=Ge(),Ws=Ge(!0),go=Ge(!1),Cu=Ge(!0),Ns=ke(()=>ei.value?.coverage),mh=ke(()=>Ns.value?.enabled),Os=ke(()=>mh.value&&!!Ns.value.htmlReporter),qs=sf("vitest-ui_splitpanes-mainSizes",[33,67]),co=sf("vitest-ui_splitpanes-detailSizes",[window.__vitest_browser_runner__?.provider==="webdriverio"?tr.value[0]/window.outerWidth*100:33,67]),At=ir({navigation:qs.value[0],details:{size:qs.value[1],browser:co.value[0],main:co.value[1]}}),Oy=ke(()=>{if(Os.value){const e=Ns.value.reportsDirectory.lastIndexOf("/"),t=Ns.value.htmlReporter?.subdir;return t?`/${Ns.value.reportsDirectory.slice(e+1)}/${t}/index.html`:`/${Ns.value.reportsDirectory.slice(e+1)}/index.html`}});xt(uf,e=>{Cu.value=e==="running"},{immediate:!0});function mce(){const e=po.value;if(e&&e.length>0){const t=mr(e);t?(pr.value=t,Ws.value=!1,go.value=!1):_E(()=>ft.state.getFiles(),()=>{pr.value=mr(e),Ws.value=!1,go.value=!1})}return Ws}function Eu(e){Ws.value=e,go.value=!1,e&&(pr.value=void 0,po.value="")}function _a({file:e,line:t,view:r,test:o,column:s}){po.value=e,hx.value=t,px.value=s,hn.value=r,Bs.value=o,pr.value=mr(e),Eu(!1)}function vce(e){e.type==="test"?hn.value==="editor"?gx(e):_a({file:e.file.id,line:null,column:null,view:hn.value,test:e.id}):_a({file:e.file.id,test:null,line:null,view:hn.value,column:null})}function yce(){go.value=!0,Ws.value=!1,pr.value=void 0,po.value=""}function bce(){At.details.browser=100,At.details.main=0,co.value=[100,0]}function mx(){if(Zn?.provider==="webdriverio"){const e=window.outerWidth*(At.details.size/100);return(tr.value[0]+20)/e*100}return 33}function wce(){At.details.browser=mx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main]}function xce(){At.navigation=33,At.details.size=67,qs.value=[33,67]}function vx(){At.details.main!==0&&(At.details.browser=mx(),At.details.main=100-At.details.browser,co.value=[At.details.browser,At.details.main])}const kce={setCurrentFileId(e){po.value=e,pr.value=mr(e),Eu(!1)},async setIframeViewport(e,t){tr.value=[e,t],Zn?.provider==="webdriverio"&&vx(),await new Promise(r=>requestAnimationFrame(r))}},Sce=location.port,_ce=[location.hostname,Sce].filter(Boolean).join(":"),Tce=`${location.protocol==="https:"?"wss:":"ws:"}//${_ce}/__vitest_api__?token=${window.VITEST_API_TOKEN||"0"}`,gr=!!window.METADATA_PATH;var rr=Uint8Array,Ps=Uint16Array,Cce=Int32Array,yx=new rr([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]),bx=new rr([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]),Ece=new rr([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),wx=function(e,t){for(var r=new Ps(31),o=0;o<31;++o)r[o]=t+=1<<e[o-1];for(var s=new Cce(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}},xx=wx(yx,2),kx=xx.b,Ace=xx.r;kx[28]=258,Ace[258]=28;var Lce=wx(bx,0),Mce=Lce.b,vh=new Ps(32768);for(var Lt=0;Lt<32768;++Lt){var Vi=(Lt&43690)>>1|(Lt&21845)<<1;Vi=(Vi&52428)>>2|(Vi&13107)<<2,Vi=(Vi&61680)>>4|(Vi&3855)<<4,vh[Lt]=((Vi&65280)>>8|(Vi&255)<<8)>>1}var sa=(function(e,t,r){for(var o=e.length,s=0,c=new Ps(t);s<o;++s)e[s]&&++c[e[s]-1];var f=new Ps(t);for(s=1;s<t;++s)f[s]=f[s-1]+c[s-1]<<1;var d;if(r){d=new Ps(1<<t);var h=15-t;for(s=0;s<o;++s)if(e[s])for(var p=s<<4|e[s],g=t-e[s],v=f[e[s]-1]++<<g,b=v|(1<<g)-1;v<=b;++v)d[vh[v]>>h]=p}else for(d=new Ps(o),s=0;s<o;++s)e[s]&&(d[s]=vh[f[e[s]-1]++]>>15-e[s]);return d}),qa=new rr(288);for(var Lt=0;Lt<144;++Lt)qa[Lt]=8;for(var Lt=144;Lt<256;++Lt)qa[Lt]=9;for(var Lt=256;Lt<280;++Lt)qa[Lt]=7;for(var Lt=280;Lt<288;++Lt)qa[Lt]=8;var Sx=new rr(32);for(var Lt=0;Lt<32;++Lt)Sx[Lt]=5;var Nce=sa(qa,9,1),Oce=sa(Sx,5,1),Md=function(e){for(var t=e[0],r=1;r<e.length;++r)e[r]>t&&(t=e[r]);return t},Ar=function(e,t,r){var o=t/8|0;return(e[o]|e[o+1]<<8)>>(t&7)&r},Nd=function(e,t){var r=t/8|0;return(e[r]|e[r+1]<<8|e[r+2]<<16)>>(t&7)},Pce=function(e){return(e+7)/8|0},_x=function(e,t,r){return(t==null||t<0)&&(t=0),(r==null||r>e.length)&&(r=e.length),new rr(e.subarray(t,r))},Rce=["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"],Un=function(e,t,r){var o=new Error(t||Rce[e]);if(o.code=e,Error.captureStackTrace&&Error.captureStackTrace(o,Un),!r)throw o;return o},Sp=function(e,t,r,o){var s=e.length,c=0;if(!s||t.f&&!t.l)return r||new rr(0);var f=!r,d=f||t.i!=2,h=t.i;f&&(r=new rr(s*3));var p=function(ae){var D=r.length;if(ae>D){var q=new rr(Math.max(D*2,ae));q.set(r),r=q}},g=t.f||0,v=t.p||0,b=t.b||0,w=t.l,E=t.d,L=t.m,P=t.n,M=s*8;do{if(!w){g=Ar(e,v,1);var R=Ar(e,v+1,3);if(v+=3,R)if(R==1)w=Nce,E=Oce,L=9,P=5;else if(R==2){var W=Ar(e,v,31)+257,ne=Ar(e,v+10,15)+4,ee=W+Ar(e,v+5,31)+1;v+=14;for(var Z=new rr(ee),G=new rr(19),j=0;j<ne;++j)G[Ece[j]]=Ar(e,v+j*3,7);v+=ne*3;for(var N=Md(G),O=(1<<N)-1,C=sa(G,N,1),j=0;j<ee;){var k=C[Ar(e,v,O)];v+=k&15;var I=k>>4;if(I<16)Z[j++]=I;else{var z=0,B=0;for(I==16?(B=3+Ar(e,v,3),v+=2,z=Z[j-1]):I==17?(B=3+Ar(e,v,7),v+=3):I==18&&(B=11+Ar(e,v,127),v+=7);B--;)Z[j++]=z}}var ce=Z.subarray(0,W),be=Z.subarray(W);L=Md(ce),P=Md(be),w=sa(ce,L,1),E=sa(be,P,1)}else Un(1);else{var I=Pce(v)+4,_=e[I-4]|e[I-3]<<8,$=I+_;if($>s){h&&Un(0);break}d&&p(b+_),r.set(e.subarray(I,$),b),t.b=b+=_,t.p=v=$*8,t.f=g;continue}if(v>M){h&&Un(0);break}}d&&p(b+131072);for(var Se=(1<<L)-1,Be=(1<<P)-1,Ae=v;;Ae=v){var z=w[Nd(e,v)&Se],Ke=z>>4;if(v+=z&15,v>M){h&&Un(0);break}if(z||Un(2),Ke<256)r[b++]=Ke;else if(Ke==256){Ae=v,w=null;break}else{var je=Ke-254;if(Ke>264){var j=Ke-257,Fe=yx[j];je=Ar(e,v,(1<<Fe)-1)+kx[j],v+=Fe}var Pe=E[Nd(e,v)&Be],F=Pe>>4;Pe||Un(3),v+=Pe&15;var be=Mce[F];if(F>3){var Fe=bx[F];be+=Nd(e,v)&(1<<Fe)-1,v+=Fe}if(v>M){h&&Un(0);break}d&&p(b+131072);var Y=b+je;if(b<be){var re=c-be,le=Math.min(be,Y);for(re+b<0&&Un(3);b<le;++b)r[b]=o[re+b]}for(;b<Y;++b)r[b]=r[b-be]}}t.l=w,t.p=Ae,t.b=b,t.f=g,w&&(g=1,t.m=L,t.d=E,t.n=P)}while(!g);return b!=r.length&&f?_x(r,0,b):r.subarray(0,b)},$ce=new rr(0),Ice=function(e){(e[0]!=31||e[1]!=139||e[2]!=8)&&Un(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)},Dce=function(e){var t=e.length;return(e[t-4]|e[t-3]<<8|e[t-2]<<16|e[t-1]<<24)>>>0},zce=function(e,t){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Un(6,"invalid zlib data"),(e[1]>>5&1)==1&&Un(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function Fce(e,t){return Sp(e,{i:2},t,t)}function Hce(e,t){var r=Ice(e);return r+8>e.length&&Un(6,"invalid gzip data"),Sp(e.subarray(r,-8),{i:2},new rr(Dce(e)),t)}function Bce(e,t){return Sp(e.subarray(zce(e),-4),{i:2},t,t)}function Wce(e,t){return e[0]==31&&e[1]==139&&e[2]==8?Hce(e,t):(e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31?Fce(e,t):Bce(e,t)}var yh=typeof TextDecoder<"u"&&new TextDecoder,qce=0;try{yh.decode($ce,{stream:!0}),qce=1}catch{}var jce=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:_x(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 Py(e,t){var r;if(yh)return yh.decode(e);var o=jce(e),s=o.s,r=o.r;return r.length&&Un(8),s}const Od=()=>{},dn=()=>Promise.resolve();function Uce(){const e=ir({state:new Xw,waitForConnection:f,reconnect:s,ws:new EventTarget});e.state.filesMap=ir(e.state.filesMap),e.state.idMap=ir(e.state.idMap);let t;const r={getFiles:()=>t.files,getPaths:()=>t.paths,getConfig:()=>t.config,getResolvedProjectNames:()=>t.projects,getResolvedProjectLabels:()=>[],getModuleGraph:async(d,h)=>t.moduleGraph[d]?.[h],getUnhandledErrors:()=>t.unhandledErrors,getExternalResult:dn,getTransformResult:dn,onDone:Od,onTaskUpdate:Od,writeFile:dn,rerun:dn,rerunTask:dn,updateSnapshot:dn,resolveSnapshotPath:dn,snapshotSaved:dn,onAfterSuiteRun:dn,onCancel:dn,getCountOfFailedTests:()=>0,sendLog:dn,resolveSnapshotRawPath:dn,readSnapshotFile:dn,saveSnapshotFile:dn,readTestFile:async d=>t.sources[d],removeSnapshotFile:dn,onUnhandledError:Od,saveTestFile:dn,getProvidedContext:()=>({}),getTestFiles:dn};e.rpc=r;const o=Promise.resolve();function s(){c()}async function c(){const d=await fetch(window.METADATA_PATH),h=new Uint8Array(await d.arrayBuffer());if(h.length>=2&&h[0]===31&&h[1]===139){const g=Py(Wce(h));t=fh(g)}else t=fh(Py(h));const p=new Event("open");e.ws.dispatchEvent(p)}c();function f(){return o}return e}const ft=(function(){return gr?Uce():XA(Tce,{reactive:(t,r)=>r==="state"?ir(t):Ft(t),handlers:{onTestAnnotate(t,r){Oe.recordTestArtifact(t,{type:"internal:annotation",annotation:r,location:r.location})},onTestArtifactRecord(t,r){Oe.recordTestArtifact(t,r)},onTaskUpdate(t,r){Oe.resumeRun(t,r),uf.value="running"},onSpecsCollected(t,r){Oe.startTime=r||performance.now()},onFinished(t,r,o,s){Oe.endRun(s),eo.value=(r||[]).map(fx)},onFinishedReportCoverage(){const t=document.querySelector("iframe#vitest-ui-coverage");t instanceof HTMLIFrameElement&&t.contentWindow&&t.contentWindow.location.reload()}}})})(),ei=Ft({}),Ho=Ge("CONNECTING"),Gt=ke(()=>{const e=po.value;return e?mr(e):void 0}),Tx=ke(()=>gp(Gt.value).map(e=>e?.logs||[]).flat()||[]);function mr(e){const t=ft.state.idMap.get(e);return t||void 0}const Vce=ke(()=>Ho.value==="OPEN"),Pd=ke(()=>Ho.value==="CONNECTING");ke(()=>Ho.value==="CLOSED");function Gce(){return _p(ft.state.getFiles())}function Cx(e){delete e.result;const t=Oe.nodes.get(e.id);if(t&&(t.state=void 0,t.duration=void 0,Ha(e)))for(const r of e.tasks)Cx(r)}function Kce(e){const t=Oe.nodes;e.forEach(r=>{delete r.result,gp(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,In(o)&&(o.collectDuration=void 0))})}function _p(e){return Kce(e),Oe.startRun(),ft.rpc.rerun(e.map(t=>t.filepath),!0)}function Xce(e){return Cx(e),Oe.startRun(),ft.rpc.rerunTask(e.id)}const Zn=window.__vitest_browser_runner__;window.__vitest_ui_api__=kce;xt(()=>ft.ws,e=>{Ho.value=gr?"OPEN":"CONNECTING",e.addEventListener("open",async()=>{Ho.value="OPEN",ft.state.filesMap.clear();let[t,r,o,s]=await Promise.all([ft.rpc.getFiles(),ft.rpc.getConfig(),ft.rpc.getUnhandledErrors(),ft.rpc.getResolvedProjectLabels()]);r.standalone&&(t=(await ft.rpc.getTestFiles()).map(([{name:f,root:d},h])=>{const p=Bw(h,d,f);return p.mode="skip",p})),Oe.loadFiles(t,s),ft.state.collectFiles(t),Oe.startRun(),eo.value=(o||[]).map(fx),ei.value=r}),e.addEventListener("close",()=>{setTimeout(()=>{Ho.value==="CONNECTING"&&(Ho.value="CLOSED")},1e3)})},{immediate:!0});const Yce=["aria-label","opacity","disabled","hover"],_t=rt({__name:"IconButton",props:{icon:{},title:{},disabled:{type:Boolean},active:{type:Boolean}},setup(e){return(t,r)=>(ie(),ve("button",{"aria-label":e.title,role:"button",opacity:e.disabled?10:70,rounded:"",disabled:e.disabled,hover:e.disabled||e.active?"":"bg-active op100",class:ot(["w-1.4em h-1.4em flex",[{"bg-gray-500:35 op100":e.active}]])},[Dt(t.$slots,"default",{},()=>[X("span",{class:ot(e.icon),ma:"",block:""},null,2)])],10,Yce))}}),Zce={h:"full",flex:"~ col"},Jce={p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},Qce={p:"l3 y2 r2",flex:"~ gap-2","items-center":"","bg-header":"",border:"b-2 base"},eue={class:"pointer-events-none","text-sm":""},tue={key:0},nue={id:"tester-container",relative:""},rue=["data-scale"],Ry=20,iue=100,oue=rt({__name:"BrowserIframe",setup(e){const t={"small-mobile":[320,568],"large-mobile":[414,896],tablet:[834,1112]};function r(p){const g=t[p];return tr.value[0]===g[0]&&tr.value[1]===g[1]}const{width:o,height:s}=Pw();async function c(p){tr.value=t[p],Zn?.provider==="webdriverio"&&vx()}const f=ke(()=>{if(Zn?.provider==="webdriverio"){const[w,E]=tr.value;return{width:w,height:E}}const v=o.value*(At.details.size/100)*(At.details.browser/100)-Ry,b=s.value-iue;return{width:v,height:b}}),d=ke(()=>{if(Zn?.provider==="webdriverio")return 1;const[p,g]=tr.value,{width:v,height:b}=f.value,w=v>p?1:v/p,E=b>g?1:b/g;return Math.min(1,w,E)}),h=ke(()=>{const p=f.value.width,g=tr.value[0];return`${Math.trunc((p+Ry-g)/2)}px`});return(p,g)=>{const v=vr("tooltip");return ie(),ve("div",Zce,[X("div",Jce,[at(Ne(_t,{title:"Show Navigation Panel","rotate-180":"",icon:"i-carbon:side-panel-close",onClick:g[0]||(g[0]=b=>K(xce)())},null,512),[[ro,K(At).navigation<=15],[v,"Show Navigation Panel",void 0,{bottom:!0}]]),g[6]||(g[6]=X("div",{class:"i-carbon-content-delivery-network"},null,-1)),g[7]||(g[7]=X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Browser UI",-1)),at(Ne(_t,{title:"Hide Right Panel",icon:"i-carbon:side-panel-close","rotate-180":"",onClick:g[1]||(g[1]=b=>K(bce)())},null,512),[[ro,K(At).details.main>0],[v,"Hide Right Panel",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Show Right Panel",icon:"i-carbon:side-panel-close",onClick:g[2]||(g[2]=b=>K(wce)())},null,512),[[ro,K(At).details.main===0],[v,"Show Right Panel",void 0,{bottom:!0}]])]),X("div",Qce,[at(Ne(_t,{title:"Small mobile",icon:"i-carbon:mobile",active:r("small-mobile"),onClick:g[3]||(g[3]=b=>c("small-mobile"))},null,8,["active"]),[[v,"Small mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Large mobile",icon:"i-carbon:mobile-add",active:r("large-mobile"),onClick:g[4]||(g[4]=b=>c("large-mobile"))},null,8,["active"]),[[v,"Large mobile",void 0,{bottom:!0}]]),at(Ne(_t,{title:"Tablet",icon:"i-carbon:tablet",active:r("tablet"),onClick:g[5]||(g[5]=b=>c("tablet"))},null,8,["active"]),[[v,"Tablet",void 0,{bottom:!0}]]),X("span",eue,[Qe(Re(K(tr)[0])+"x"+Re(K(tr)[1])+"px ",1),d.value<1?(ie(),ve("span",tue,"("+Re((d.value*100).toFixed(0))+"%)",1)):He("",!0)])]),X("div",nue,[X("div",{id:"tester-ui",class:"flex h-full justify-center items-center font-light op70","data-scale":d.value,style:zt({"--viewport-width":`${K(tr)[0]}px`,"--viewport-height":`${K(tr)[1]}px`,"--tester-transform":`scale(${d.value})`,"--tester-margin-left":h.value})}," Select a test to run ",12,rue)])])}}}),sue=Ni(oue,[["__scopeId","data-v-2e86b8c3"]]),lue={"text-2xl":""},aue={"text-lg":"",op50:""},cue=rt({__name:"ConnectionOverlay",setup(e){return(t,r)=>K(Vce)?He("",!0):(ie(),ve("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)=>K(ft).reconnect&&K(ft).reconnect(...o))},[X("div",{"h-full":"",flex:"~ col gap-2","items-center":"","justify-center":"",class:ot(K(Pd)?"animate-pulse":"")},[X("div",{text:"5xl",class:ot(K(Pd)?"i-carbon:renew animate-spin animate-reverse":"i-carbon-wifi-off")},null,2),X("div",lue,Re(K(Pd)?"Connecting...":"Disconnected"),1),X("div",aue," Check your terminal or start a new server with `"+Re(K(Zn)?`vitest --browser=${K(Zn).config.browser.name}`:"vitest --ui")+"` ",1)],2)]))}}),uue={h:"full",flex:"~ col"},fue={"flex-auto":"","py-1":"","bg-white":""},due=["src"],$y=rt({__name:"Coverage",props:{src:{}},setup(e){return(t,r)=>(ie(),ve("div",uue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon:folder-details-reference"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Coverage")],-1)),X("div",fue,[X("iframe",{id:"vitest-ui-coverage",src:e.src},null,8,due)])]))}}),hue={bg:"red500/10","p-1":"","mb-1":"","mt-2":"",rounded:""},pue={"font-bold":""},gue={key:0,class:"scrolls",text:"xs","font-mono":"","mx-1":"","my-2":"","pb-2":"","overflow-auto":""},mue=["font-bold"],vue={text:"red500/70"},yue={key:1,text:"sm","mb-2":""},bue={"font-bold":""},wue={key:2,text:"sm","mb-2":""},xue={"font-bold":""},kue=rt({__name:"ErrorEntry",props:{error:{}},setup(e){return(t,r)=>(ie(),ve(nt,null,[X("h4",hue,[X("span",pue,[Qe(Re(e.error.name||e.error.nameStr||"Unknown Error"),1),e.error.message?(ie(),ve(nt,{key:0},[Qe(":")],64)):He("",!0)]),Qe(" "+Re(e.error.message),1)]),e.error.stacks?.length?(ie(),ve("p",gue,[(ie(!0),ve(nt,null,$n(e.error.stacks,(o,s)=>(ie(),ve("span",{key:s,"whitespace-pre":"","font-bold":s===0?"":null},[Qe("❯ "+Re(o.method)+" "+Re(o.file)+":",1),X("span",vue,Re(o.line)+":"+Re(o.column),1),r[0]||(r[0]=X("br",null,null,-1))],8,mue))),128))])):He("",!0),e.error.VITEST_TEST_PATH?(ie(),ve("p",yue,[r[1]||(r[1]=Qe(" This error originated in ",-1)),X("span",bue,Re(e.error.VITEST_TEST_PATH),1),r[2]||(r[2]=Qe(" test file. It doesn't mean the error was thrown inside the file itself, but while it was running. ",-1))])):He("",!0),e.error.VITEST_TEST_NAME?(ie(),ve("div",wue,[r[3]||(r[3]=Qe(" The latest test that might've caused the error is ",-1)),X("span",xue,Re(e.error.VITEST_TEST_NAME),1),r[4]||(r[4]=Qe(". It might mean one of the following:",-1)),r[5]||(r[5]=X("br",null,null,-1)),r[6]||(r[6]=X("ul",null,[X("li",null," The error was thrown, while Vitest was running this test. "),X("li",null," If the error occurred after the test had been completed, this was the last documented test before it was thrown. ")],-1))])):He("",!0)],64))}}),Sue={"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:""},_ue={class:"number","data-testid":"num-files"},Tue={class:"number"},Cue={class:"number","text-red5":""},Eue={class:"number","text-red5":""},Aue={class:"number","text-red5":""},Lue={class:"number","data-testid":"run-time"},Mue={key:0,bg:"red500/10",text:"red500",p:"x3 y2","max-w-xl":"","m-2":"",rounded:""},Nue={text:"sm","font-thin":"","mb-2":"","data-testid":"unhandled-errors"},Oue={"data-testid":"unhandled-errors-details",class:"scrolls unhandled-errors",text:"sm","font-thin":"","pe-2.5":"","open:max-h-52":"","overflow-auto":""},Pue=rt({__name:"TestFilesEntry",setup(e){return(t,r)=>(ie(),ve(nt,null,[X("div",Sue,[r[8]||(r[8]=X("div",{"i-carbon-document":""},null,-1)),r[9]||(r[9]=X("div",null,"Files",-1)),X("div",_ue,Re(K(Oe).summary.files),1),K(Oe).summary.filesSuccess?(ie(),ve(nt,{key:0},[r[0]||(r[0]=X("div",{"i-carbon-checkmark":""},null,-1)),r[1]||(r[1]=X("div",null,"Pass",-1)),X("div",Tue,Re(K(Oe).summary.filesSuccess),1)],64)):He("",!0),K(Oe).summary.filesFailed?(ie(),ve(nt,{key:1},[r[2]||(r[2]=X("div",{"i-carbon-close":""},null,-1)),r[3]||(r[3]=X("div",null," Fail ",-1)),X("div",Cue,Re(K(Oe).summary.filesFailed),1)],64)):He("",!0),K(Oe).summary.filesSnapshotFailed?(ie(),ve(nt,{key:2},[r[4]||(r[4]=X("div",{"i-carbon-compare":""},null,-1)),r[5]||(r[5]=X("div",null," Snapshot Fail ",-1)),X("div",Eue,Re(K(Oe).summary.filesSnapshotFailed),1)],64)):He("",!0),K(eo).length?(ie(),ve(nt,{key:3},[r[6]||(r[6]=X("div",{"i-carbon-checkmark-outline-error":""},null,-1)),r[7]||(r[7]=X("div",null," Errors ",-1)),X("div",Aue,Re(K(eo).length),1)],64)):He("",!0),r[10]||(r[10]=X("div",{"i-carbon-timer":""},null,-1)),r[11]||(r[11]=X("div",null,"Time",-1)),X("div",Lue,Re(K(Oe).summary.time),1)]),K(eo).length?(ie(),ve("div",Mue,[r[15]||(r[15]=X("h3",{"text-center":"","mb-2":""}," Unhandled Errors ",-1)),X("p",Nue,[Qe(" Vitest caught "+Re(K(eo).length)+" error"+Re(K(eo).length>1?"s":"")+" during the test run.",1),r[12]||(r[12]=X("br",null,null,-1)),r[13]||(r[13]=Qe(" This might cause false positive tests. Resolve unhandled errors to make sure your tests are not affected. ",-1))]),X("details",Oue,[r[14]||(r[14]=X("summary",{"font-bold":"","cursor-pointer":""}," Errors ",-1)),(ie(!0),ve(nt,null,$n(K(eo),(o,s)=>(ie(),Ve(kue,{key:s,error:o},null,8,["error"]))),128))])])):He("",!0)],64))}}),Rue=Ni(Pue,[["__scopeId","data-v-1bd0f2ea"]]),$ue={"p-2":"","text-center":"",flex:""},Iue={"text-4xl":"","min-w-2em":""},Due={"text-md":""},Bl=rt({__name:"DashboardEntry",setup(e){return(t,r)=>(ie(),ve("div",$ue,[X("div",null,[X("div",Iue,[Dt(t.$slots,"body")]),X("div",Due,[Dt(t.$slots,"header")])])]))}}),zue={flex:"~ wrap","justify-evenly":"","gap-2":"",p:"x-4",relative:""},Fue=rt({__name:"TestsEntry",setup(e){function t(r){it.success=!1,it.failed=!1,it.skipped=!1,r!=="total"&&(it[r]=!0)}return(r,o)=>(ie(),ve("div",zue,[Ne(Bl,{"text-green5":"","data-testid":"pass-entry","cursor-pointer":"",hover:"op80",onClick:o[0]||(o[0]=s=>t("success"))},{header:We(()=>[...o[4]||(o[4]=[Qe(" Pass ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSuccess),1)]),_:1}),Ne(Bl,{class:ot({"text-red5":K(Oe).summary.testsFailed,op50:!K(Oe).summary.testsFailed}),"data-testid":"fail-entry","cursor-pointer":"",hover:"op80",onClick:o[1]||(o[1]=s=>t("failed"))},{header:We(()=>[...o[5]||(o[5]=[Qe(" Fail ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsFailed),1)]),_:1},8,["class"]),K(Oe).summary.testsSkipped?(ie(),Ve(Bl,{key:0,op50:"","data-testid":"skipped-entry","cursor-pointer":"",hover:"op80",onClick:o[2]||(o[2]=s=>t("skipped"))},{header:We(()=>[...o[6]||(o[6]=[Qe(" Skip ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsSkipped),1)]),_:1})):He("",!0),K(Oe).summary.testsTodo?(ie(),Ve(Bl,{key:1,op50:"","data-testid":"todo-entry"},{header:We(()=>[...o[7]||(o[7]=[Qe(" Todo ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.testsTodo),1)]),_:1})):He("",!0),Ne(Bl,{tail:!0,"data-testid":"total-entry","cursor-pointer":"",hover:"op80",onClick:o[3]||(o[3]=s=>t("total"))},{header:We(()=>[...o[8]||(o[8]=[Qe(" Total ",-1)])]),body:We(()=>[Qe(Re(K(Oe).summary.totalTests),1)]),_:1})]))}}),Hue={"gap-0":"",flex:"~ col gap-4","h-full":"","justify-center":"","items-center":""},Bue={key:0,class:"text-gray-5"},Wue={"aria-labelledby":"tests",m:"y-4 x-2"},que=rt({__name:"TestsFilesContainer",setup(e){return(t,r)=>(ie(),ve("div",Hue,[K(Oe).summary.files===0&&K(Ms)?(ie(),ve("div",Bue," No tests found ")):He("",!0),X("section",Wue,[Ne(Fue)]),Ne(Rue)]))}}),jue={h:"full",flex:"~ col"},Uue={class:"scrolls","flex-auto":"","py-1":""},Iy=rt({__name:"Dashboard",setup(e){return(t,r)=>(ie(),ve("div",jue,[r[0]||(r[0]=X("div",{p:"3","h-10":"",flex:"~ gap-2","items-center":"","bg-header":"",border:"b base"},[X("div",{class:"i-carbon-dashboard"}),X("span",{"pl-1":"","font-bold":"","text-sm":"","flex-auto":"","ws-nowrap":"","overflow-hidden":"",truncate:""},"Dashboard")],-1)),X("div",Uue,[Ne(que)])]))}});function Vue(e,t){let r;return(...o)=>{r!==void 0&&clearTimeout(r),r=setTimeout(()=>e(...o),t)}}var bh="http://www.w3.org/1999/xhtml";const Dy={svg:"http://www.w3.org/2000/svg",xhtml:bh,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function ff(e){var t=e+="",r=t.indexOf(":");return r>=0&&(t=e.slice(0,r))!=="xmlns"&&(e=e.slice(r+1)),Dy.hasOwnProperty(t)?{space:Dy[t],local:e}:e}function Gue(e){return function(){var t=this.ownerDocument,r=this.namespaceURI;return r===bh&&t.documentElement.namespaceURI===bh?t.createElement(e):t.createElementNS(r,e)}}function Kue(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Ex(e){var t=ff(e);return(t.local?Kue:Gue)(t)}function Xue(){}function Tp(e){return e==null?Xue:function(){return this.querySelector(e)}}function Yue(e){typeof e!="function"&&(e=Tp(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,g=0;g<f;++g)(h=c[g])&&(p=e.call(h,h.__data__,g,c))&&("__data__"in h&&(p.__data__=h.__data__),d[g]=p);return new lr(o,this._parents)}function Zue(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function Jue(){return[]}function Ax(e){return e==null?Jue:function(){return this.querySelectorAll(e)}}function Que(e){return function(){return Zue(e.apply(this,arguments))}}function efe(e){typeof e=="function"?e=Que(e):e=Ax(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 lr(o,s)}function Lx(e){return function(){return this.matches(e)}}function Mx(e){return function(t){return t.matches(e)}}var tfe=Array.prototype.find;function nfe(e){return function(){return tfe.call(this.children,e)}}function rfe(){return this.firstElementChild}function ife(e){return this.select(e==null?rfe:nfe(typeof e=="function"?e:Mx(e)))}var ofe=Array.prototype.filter;function sfe(){return Array.from(this.children)}function lfe(e){return function(){return ofe.call(this.children,e)}}function afe(e){return this.selectAll(e==null?sfe:lfe(typeof e=="function"?e:Mx(e)))}function cfe(e){typeof e!="function"&&(e=Lx(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 lr(o,this._parents)}function Nx(e){return new Array(e.length)}function ufe(){return new lr(this._enter||this._groups.map(Nx),this._parents)}function Au(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}Au.prototype={constructor:Au,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 ffe(e){return function(){return e}}function dfe(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 Au(e,c[f]);for(;f<h;++f)(d=t[f])&&(s[f]=d)}function hfe(e,t,r,o,s,c,f){var d,h,p=new Map,g=t.length,v=c.length,b=new Array(g),w;for(d=0;d<g;++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<v;++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 Au(e,c[d]);for(d=0;d<g;++d)(h=t[d])&&p.get(b[d])===h&&(s[d]=h)}function pfe(e){return e.__data__}function gfe(e,t){if(!arguments.length)return Array.from(this,pfe);var r=t?hfe:dfe,o=this._parents,s=this._groups;typeof e!="function"&&(e=ffe(e));for(var c=s.length,f=new Array(c),d=new Array(c),h=new Array(c),p=0;p<c;++p){var g=o[p],v=s[p],b=v.length,w=mfe(e.call(g,g&&g.__data__,p,o)),E=w.length,L=d[p]=new Array(E),P=f[p]=new Array(E),M=h[p]=new Array(b);r(g,v,L,P,M,w,t);for(var R=0,I=0,_,$;R<E;++R)if(_=L[R]){for(R>=I&&(I=R+1);!($=P[I])&&++I<E;);_._next=$||null}}return f=new lr(f,o),f._enter=d,f._exit=h,f}function mfe(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function vfe(){return new lr(this._exit||this._groups.map(Nx),this._parents)}function yfe(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 bfe(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],g=o[h],v=p.length,b=d[h]=new Array(v),w,E=0;E<v;++E)(w=p[E]||g[E])&&(b[E]=w);for(;h<s;++h)d[h]=r[h];return new lr(d,this._parents)}function wfe(){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 xfe(e){e||(e=kfe);function t(v,b){return v&&b?e(v.__data__,b.__data__):!v-!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,g=0;g<d;++g)(p=f[g])&&(h[g]=p);h.sort(t)}return new lr(s,this._parents).order()}function kfe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function Sfe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function _fe(){return Array.from(this)}function Tfe(){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 Cfe(){let e=0;for(const t of this)++e;return e}function Efe(){return!this.node()}function Afe(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 Lfe(e){return function(){this.removeAttribute(e)}}function Mfe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function Nfe(e,t){return function(){this.setAttribute(e,t)}}function Ofe(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function Pfe(e,t){return function(){var r=t.apply(this,arguments);r==null?this.removeAttribute(e):this.setAttribute(e,r)}}function Rfe(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 $fe(e,t){var r=ff(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?Mfe:Lfe:typeof t=="function"?r.local?Rfe:Pfe:r.local?Ofe:Nfe)(r,t))}function Ox(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function Ife(e){return function(){this.style.removeProperty(e)}}function Dfe(e,t,r){return function(){this.style.setProperty(e,t,r)}}function zfe(e,t,r){return function(){var o=t.apply(this,arguments);o==null?this.style.removeProperty(e):this.style.setProperty(e,o,r)}}function Ffe(e,t,r){return arguments.length>1?this.each((t==null?Ife:typeof t=="function"?zfe:Dfe)(e,t,r??"")):el(this.node(),e)}function el(e,t){return e.style.getPropertyValue(t)||Ox(e).getComputedStyle(e,null).getPropertyValue(t)}function Hfe(e){return function(){delete this[e]}}function Bfe(e,t){return function(){this[e]=t}}function Wfe(e,t){return function(){var r=t.apply(this,arguments);r==null?delete this[e]:this[e]=r}}function qfe(e,t){return arguments.length>1?this.each((t==null?Hfe:typeof t=="function"?Wfe:Bfe)(e,t)):this.node()[e]}function Px(e){return e.trim().split(/^|\s+/)}function Cp(e){return e.classList||new Rx(e)}function Rx(e){this._node=e,this._names=Px(e.getAttribute("class")||"")}Rx.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 $x(e,t){for(var r=Cp(e),o=-1,s=t.length;++o<s;)r.add(t[o])}function Ix(e,t){for(var r=Cp(e),o=-1,s=t.length;++o<s;)r.remove(t[o])}function jfe(e){return function(){$x(this,e)}}function Ufe(e){return function(){Ix(this,e)}}function Vfe(e,t){return function(){(t.apply(this,arguments)?$x:Ix)(this,e)}}function Gfe(e,t){var r=Px(e+"");if(arguments.length<2){for(var o=Cp(this.node()),s=-1,c=r.length;++s<c;)if(!o.contains(r[s]))return!1;return!0}return this.each((typeof t=="function"?Vfe:t?jfe:Ufe)(r,t))}function Kfe(){this.textContent=""}function Xfe(e){return function(){this.textContent=e}}function Yfe(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}function Zfe(e){return arguments.length?this.each(e==null?Kfe:(typeof e=="function"?Yfe:Xfe)(e)):this.node().textContent}function Jfe(){this.innerHTML=""}function Qfe(e){return function(){this.innerHTML=e}}function ede(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}function tde(e){return arguments.length?this.each(e==null?Jfe:(typeof e=="function"?ede:Qfe)(e)):this.node().innerHTML}function nde(){this.nextSibling&&this.parentNode.appendChild(this)}function rde(){return this.each(nde)}function ide(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function ode(){return this.each(ide)}function sde(e){var t=typeof e=="function"?e:Ex(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function lde(){return null}function ade(e,t){var r=typeof e=="function"?e:Ex(e),o=t==null?lde:typeof t=="function"?t:Tp(t);return this.select(function(){return this.insertBefore(r.apply(this,arguments),o.apply(this,arguments)||null)})}function cde(){var e=this.parentNode;e&&e.removeChild(this)}function ude(){return this.each(cde)}function fde(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function dde(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function hde(e){return this.select(e?dde:fde)}function pde(e){return arguments.length?this.property("__data__",e):this.node().__data__}function gde(e){return function(t){e.call(this,t,this.__data__)}}function mde(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 vde(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 yde(e,t,r){return function(){var o=this.__on,s,c=gde(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 bde(e,t,r){var o=mde(e+""),s,c=o.length,f;if(arguments.length<2){var d=this.node().__on;if(d){for(var h=0,p=d.length,g;h<p;++h)for(s=0,g=d[h];s<c;++s)if((f=o[s]).type===g.type&&f.name===g.name)return g.value}return}for(d=t?yde:vde,s=0;s<c;++s)this.each(d(o[s],t,r));return this}function Dx(e,t,r){var o=Ox(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 wde(e,t){return function(){return Dx(this,e,t)}}function xde(e,t){return function(){return Dx(this,e,t.apply(this,arguments))}}function kde(e,t){return this.each((typeof t=="function"?xde:wde)(e,t))}function*Sde(){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 zx=[null];function lr(e,t){this._groups=e,this._parents=t}function ja(){return new lr([[document.documentElement]],zx)}function _de(){return this}lr.prototype=ja.prototype={constructor:lr,select:Yue,selectAll:efe,selectChild:ife,selectChildren:afe,filter:cfe,data:gfe,enter:ufe,exit:vfe,join:yfe,merge:bfe,selection:_de,order:wfe,sort:xfe,call:Sfe,nodes:_fe,node:Tfe,size:Cfe,empty:Efe,each:Afe,attr:$fe,style:Ffe,property:qfe,classed:Gfe,text:Zfe,html:tde,raise:rde,lower:ode,append:sde,insert:ade,remove:ude,clone:hde,datum:pde,on:bde,dispatch:kde,[Symbol.iterator]:Sde};function Kn(e){return typeof e=="string"?new lr([[document.querySelector(e)]],[document.documentElement]):new lr([[e]],zx)}function Tde(e){let t;for(;t=e.sourceEvent;)e=t;return e}function vi(e,t){if(e=Tde(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]}var tl=class gi{x;y;static of([t,r]){return new gi(t,r)}constructor(t,r){this.x=t,this.y=r}add(t){return new gi(this.x+t.x,this.y+t.y)}subtract(t){return new gi(this.x-t.x,this.y-t.y)}multiply(t){return new gi(this.x*t,this.y*t)}divide(t){return new gi(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 gi(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 gi(this.x/t,this.y/t)}rotateByRadians(t){const r=Math.cos(t),o=Math.sin(t);return new gi(this.x*r-this.y*o,this.x*o+this.y*r)}rotateByDegrees(t){return this.rotateByRadians(t*Math.PI/180)}},Cde={value:()=>{}};function Ua(){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 Zc(r)}function Zc(e){this._=e}function Ede(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}})}Zc.prototype=Ua.prototype={constructor:Zc,on:function(e,t){var r=this._,o=Ede(e+"",r),s,c=-1,f=o.length;if(arguments.length<2){for(;++c<f;)if((s=(e=o[c]).type)&&(s=Ade(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]=zy(r[s],e.name,t);else if(t==null)for(s in r)r[s]=zy(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 Zc(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 Ade(e,t){for(var r=0,o=e.length,s;r<o;++r)if((s=e[r]).name===t)return s.value}function zy(e,t,r){for(var o=0,s=e.length;o<s;++o)if(e[o].name===t){e[o]=Cde,e=e.slice(0,o).concat(e.slice(o+1));break}return r!=null&&e.push({name:t,value:r}),e}const Lde={passive:!1},Ta={capture:!0,passive:!1};function Rd(e){e.stopImmediatePropagation()}function js(e){e.preventDefault(),e.stopImmediatePropagation()}function Fx(e){var t=e.document.documentElement,r=Kn(e).on("dragstart.drag",js,Ta);"onselectstart"in t?r.on("selectstart.drag",js,Ta):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function Hx(e,t){var r=e.document.documentElement,o=Kn(e).on("dragstart.drag",null);t&&(o.on("click.drag",js,Ta),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 Ic=e=>()=>e;function wh(e,{sourceEvent:t,subject:r,target:o,identifier:s,active:c,x:f,y:d,dx:h,dy:p,dispatch:g}){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:g}})}wh.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function Mde(e){return!e.ctrlKey&&!e.button}function Nde(){return this.parentNode}function Ode(e,t){return t??{x:e.x,y:e.y}}function Pde(){return navigator.maxTouchPoints||"ontouchstart"in this}function Rde(){var e=Mde,t=Nde,r=Ode,o=Pde,s={},c=Ua("start","drag","end"),f=0,d,h,p,g,v=0;function b(_){_.on("mousedown.drag",w).filter(o).on("touchstart.drag",P).on("touchmove.drag",M,Lde).on("touchend.drag touchcancel.drag",R).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function w(_,$){if(!(g||!e.call(this,_,$))){var W=I(this,t.call(this,_,$),_,$,"mouse");W&&(Kn(_.view).on("mousemove.drag",E,Ta).on("mouseup.drag",L,Ta),Fx(_.view),Rd(_),p=!1,d=_.clientX,h=_.clientY,W("start",_))}}function E(_){if(js(_),!p){var $=_.clientX-d,W=_.clientY-h;p=$*$+W*W>v}s.mouse("drag",_)}function L(_){Kn(_.view).on("mousemove.drag mouseup.drag",null),Hx(_.view,p),js(_),s.mouse("end",_)}function P(_,$){if(e.call(this,_,$)){var W=_.changedTouches,ne=t.call(this,_,$),ee=W.length,Z,G;for(Z=0;Z<ee;++Z)(G=I(this,ne,_,$,W[Z].identifier,W[Z]))&&(Rd(_),G("start",_,W[Z]))}}function M(_){var $=_.changedTouches,W=$.length,ne,ee;for(ne=0;ne<W;++ne)(ee=s[$[ne].identifier])&&(js(_),ee("drag",_,$[ne]))}function R(_){var $=_.changedTouches,W=$.length,ne,ee;for(g&&clearTimeout(g),g=setTimeout(function(){g=null},500),ne=0;ne<W;++ne)(ee=s[$[ne].identifier])&&(Rd(_),ee("end",_,$[ne]))}function I(_,$,W,ne,ee,Z){var G=c.copy(),j=vi(Z||W,$),N,O,C;if((C=r.call(_,new wh("beforestart",{sourceEvent:W,target:b,identifier:ee,active:f,x:j[0],y:j[1],dx:0,dy:0,dispatch:G}),ne))!=null)return N=C.x-j[0]||0,O=C.y-j[1]||0,function k(z,B,ce){var be=j,Se;switch(z){case"start":s[ee]=k,Se=f++;break;case"end":delete s[ee],--f;case"drag":j=vi(ce||B,$),Se=f;break}G.call(z,_,new wh(z,{sourceEvent:B,subject:C,target:b,identifier:ee,active:Se,x:j[0]+N,y:j[1]+O,dx:j[0]-be[0],dy:j[1]-be[1],dispatch:G}),ne)}}return b.filter=function(_){return arguments.length?(e=typeof _=="function"?_:Ic(!!_),b):e},b.container=function(_){return arguments.length?(t=typeof _=="function"?_:Ic(_),b):t},b.subject=function(_){return arguments.length?(r=typeof _=="function"?_:Ic(_),b):r},b.touchable=function(_){return arguments.length?(o=typeof _=="function"?_:Ic(!!_),b):o},b.on=function(){var _=c.on.apply(c,arguments);return _===c?b:_},b.clickDistance=function(_){return arguments.length?(v=(_=+_)*_,b):Math.sqrt(v)},b}function Ep(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function Bx(e,t){var r=Object.create(e.prototype);for(var o in t)r[o]=t[o];return r}function Va(){}var Ca=.7,Lu=1/Ca,Us="\\s*([+-]?\\d+)\\s*",Ea="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",Jr="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",$de=/^#([0-9a-f]{3,8})$/,Ide=new RegExp(`^rgb\\(${Us},${Us},${Us}\\)$`),Dde=new RegExp(`^rgb\\(${Jr},${Jr},${Jr}\\)$`),zde=new RegExp(`^rgba\\(${Us},${Us},${Us},${Ea}\\)$`),Fde=new RegExp(`^rgba\\(${Jr},${Jr},${Jr},${Ea}\\)$`),Hde=new RegExp(`^hsl\\(${Ea},${Jr},${Jr}\\)$`),Bde=new RegExp(`^hsla\\(${Ea},${Jr},${Jr},${Ea}\\)$`),Fy={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};Ep(Va,Aa,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Hy,formatHex:Hy,formatHex8:Wde,formatHsl:qde,formatRgb:By,toString:By});function Hy(){return this.rgb().formatHex()}function Wde(){return this.rgb().formatHex8()}function qde(){return Wx(this).formatHsl()}function By(){return this.rgb().formatRgb()}function Aa(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=$de.exec(e))?(r=t[1].length,t=parseInt(t[1],16),r===6?Wy(t):r===3?new Yn(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):r===8?Dc(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):r===4?Dc(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=Ide.exec(e))?new Yn(t[1],t[2],t[3],1):(t=Dde.exec(e))?new Yn(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=zde.exec(e))?Dc(t[1],t[2],t[3],t[4]):(t=Fde.exec(e))?Dc(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hde.exec(e))?Uy(t[1],t[2]/100,t[3]/100,1):(t=Bde.exec(e))?Uy(t[1],t[2]/100,t[3]/100,t[4]):Fy.hasOwnProperty(e)?Wy(Fy[e]):e==="transparent"?new Yn(NaN,NaN,NaN,0):null}function Wy(e){return new Yn(e>>16&255,e>>8&255,e&255,1)}function Dc(e,t,r,o){return o<=0&&(e=t=r=NaN),new Yn(e,t,r,o)}function jde(e){return e instanceof Va||(e=Aa(e)),e?(e=e.rgb(),new Yn(e.r,e.g,e.b,e.opacity)):new Yn}function xh(e,t,r,o){return arguments.length===1?jde(e):new Yn(e,t,r,o??1)}function Yn(e,t,r,o){this.r=+e,this.g=+t,this.b=+r,this.opacity=+o}Ep(Yn,xh,Bx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Yn(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Yn(Vo(this.r),Vo(this.g),Vo(this.b),Mu(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:qy,formatHex:qy,formatHex8:Ude,formatRgb:jy,toString:jy}));function qy(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}`}function Ude(){return`#${Bo(this.r)}${Bo(this.g)}${Bo(this.b)}${Bo((isNaN(this.opacity)?1:this.opacity)*255)}`}function jy(){const e=Mu(this.opacity);return`${e===1?"rgb(":"rgba("}${Vo(this.r)}, ${Vo(this.g)}, ${Vo(this.b)}${e===1?")":`, ${e})`}`}function Mu(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Vo(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Bo(e){return e=Vo(e),(e<16?"0":"")+e.toString(16)}function Uy(e,t,r,o){return o<=0?e=t=r=NaN:r<=0||r>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,r,o)}function Wx(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof Va||(e=Aa(e)),!e)return new Mr;if(e instanceof Mr)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 Mr(f,d,h,e.opacity)}function Vde(e,t,r,o){return arguments.length===1?Wx(e):new Mr(e,t,r,o??1)}function Mr(e,t,r,o){this.h=+e,this.s=+t,this.l=+r,this.opacity=+o}Ep(Mr,Vde,Bx(Va,{brighter(e){return e=e==null?Lu:Math.pow(Lu,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ca:Math.pow(Ca,e),new Mr(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 Yn($d(e>=240?e-240:e+120,s,o),$d(e,s,o),$d(e<120?e+240:e-120,s,o),this.opacity)},clamp(){return new Mr(Vy(this.h),zc(this.s),zc(this.l),Mu(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=Mu(this.opacity);return`${e===1?"hsl(":"hsla("}${Vy(this.h)}, ${zc(this.s)*100}%, ${zc(this.l)*100}%${e===1?")":`, ${e})`}`}}));function Vy(e){return e=(e||0)%360,e<0?e+360:e}function zc(e){return Math.max(0,Math.min(1,e||0))}function $d(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 qx=e=>()=>e;function Gde(e,t){return function(r){return e+r*t}}function Kde(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 Xde(e){return(e=+e)==1?jx:function(t,r){return r-t?Kde(t,r,e):qx(isNaN(t)?r:t)}}function jx(e,t){var r=t-e;return r?Gde(e,r):qx(isNaN(e)?t:e)}const Gy=(function e(t){var r=Xde(t);function o(s,c){var f=r((s=xh(s)).r,(c=xh(c)).r),d=r(s.g,c.g),h=r(s.b,c.b),p=jx(s.opacity,c.opacity);return function(g){return s.r=f(g),s.g=d(g),s.b=h(g),s.opacity=p(g),s+""}}return o.gamma=e,o})(1);function to(e,t){return e=+e,t=+t,function(r){return e*(1-r)+t*r}}var kh=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Id=new RegExp(kh.source,"g");function Yde(e){return function(){return e}}function Zde(e){return function(t){return e(t)+""}}function Jde(e,t){var r=kh.lastIndex=Id.lastIndex=0,o,s,c,f=-1,d=[],h=[];for(e=e+"",t=t+"";(o=kh.exec(e))&&(s=Id.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:to(o,s)})),r=Id.lastIndex;return r<t.length&&(c=t.slice(r),d[f]?d[f]+=c:d[++f]=c),d.length<2?h[0]?Zde(h[0].x):Yde(t):(t=h.length,function(p){for(var g=0,v;g<t;++g)d[(v=h[g]).i]=v.x(p);return d.join("")})}var Ky=180/Math.PI,Sh={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Ux(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)*Ky,skewX:Math.atan(h)*Ky,scaleX:f,scaleY:d}}var Fc;function Qde(e){const t=new(typeof DOMMatrix=="function"?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Sh:Ux(t.a,t.b,t.c,t.d,t.e,t.f)}function ehe(e){return e==null||(Fc||(Fc=document.createElementNS("http://www.w3.org/2000/svg","g")),Fc.setAttribute("transform",e),!(e=Fc.transform.baseVal.consolidate()))?Sh:(e=e.matrix,Ux(e.a,e.b,e.c,e.d,e.e,e.f))}function Vx(e,t,r,o){function s(p){return p.length?p.pop()+" ":""}function c(p,g,v,b,w,E){if(p!==v||g!==b){var L=w.push("translate(",null,t,null,r);E.push({i:L-4,x:to(p,v)},{i:L-2,x:to(g,b)})}else(v||b)&&w.push("translate("+v+t+b+r)}function f(p,g,v,b){p!==g?(p-g>180?g+=360:g-p>180&&(p+=360),b.push({i:v.push(s(v)+"rotate(",null,o)-2,x:to(p,g)})):g&&v.push(s(v)+"rotate("+g+o)}function d(p,g,v,b){p!==g?b.push({i:v.push(s(v)+"skewX(",null,o)-2,x:to(p,g)}):g&&v.push(s(v)+"skewX("+g+o)}function h(p,g,v,b,w,E){if(p!==v||g!==b){var L=w.push(s(w)+"scale(",null,",",null,")");E.push({i:L-4,x:to(p,v)},{i:L-2,x:to(g,b)})}else(v!==1||b!==1)&&w.push(s(w)+"scale("+v+","+b+")")}return function(p,g){var v=[],b=[];return p=e(p),g=e(g),c(p.translateX,p.translateY,g.translateX,g.translateY,v,b),f(p.rotate,g.rotate,v,b),d(p.skewX,g.skewX,v,b),h(p.scaleX,p.scaleY,g.scaleX,g.scaleY,v,b),p=g=null,function(w){for(var E=-1,L=b.length,P;++E<L;)v[(P=b[E]).i]=P.x(w);return v.join("")}}}var the=Vx(Qde,"px, ","px)","deg)"),nhe=Vx(ehe,", ",")",")"),rhe=1e-12;function Xy(e){return((e=Math.exp(e))+1/e)/2}function ihe(e){return((e=Math.exp(e))-1/e)/2}function ohe(e){return((e=Math.exp(2*e))-1)/(e+1)}const she=(function e(t,r,o){function s(c,f){var d=c[0],h=c[1],p=c[2],g=f[0],v=f[1],b=f[2],w=g-d,E=v-h,L=w*w+E*E,P,M;if(L<rhe)M=Math.log(b/p)/t,P=function(ne){return[d+ne*w,h+ne*E,p*Math.exp(t*ne*M)]};else{var R=Math.sqrt(L),I=(b*b-p*p+o*L)/(2*p*r*R),_=(b*b-p*p-o*L)/(2*b*r*R),$=Math.log(Math.sqrt(I*I+1)-I),W=Math.log(Math.sqrt(_*_+1)-_);M=(W-$)/t,P=function(ne){var ee=ne*M,Z=Xy($),G=p/(r*R)*(Z*ohe(t*ee+$)-ihe($));return[d+G*w,h+G*E,p*Z/Xy(t*ee+$)]}}return P.duration=M*1e3*t/Math.SQRT2,P}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 nl=0,Vl=0,Wl=0,Gx=1e3,Nu,Gl,Ou=0,Ko=0,df=0,La=typeof performance=="object"&&performance.now?performance:Date,Kx=typeof window=="object"&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function Ap(){return Ko||(Kx(lhe),Ko=La.now()+df)}function lhe(){Ko=0}function Pu(){this._call=this._time=this._next=null}Pu.prototype=Lp.prototype={constructor:Pu,restart:function(e,t,r){if(typeof e!="function")throw new TypeError("callback is not a function");r=(r==null?Ap():+r)+(t==null?0:+t),!this._next&&Gl!==this&&(Gl?Gl._next=this:Nu=this,Gl=this),this._call=e,this._time=r,_h()},stop:function(){this._call&&(this._call=null,this._time=1/0,_h())}};function Lp(e,t,r){var o=new Pu;return o.restart(e,t,r),o}function ahe(){Ap(),++nl;for(var e=Nu,t;e;)(t=Ko-e._time)>=0&&e._call.call(void 0,t),e=e._next;--nl}function Yy(){Ko=(Ou=La.now())+df,nl=Vl=0;try{ahe()}finally{nl=0,uhe(),Ko=0}}function che(){var e=La.now(),t=e-Ou;t>Gx&&(df-=t,Ou=e)}function uhe(){for(var e,t=Nu,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:Nu=r);Gl=e,_h(o)}function _h(e){if(!nl){Vl&&(Vl=clearTimeout(Vl));var t=e-Ko;t>24?(e<1/0&&(Vl=setTimeout(Yy,e-La.now()-df)),Wl&&(Wl=clearInterval(Wl))):(Wl||(Ou=La.now(),Wl=setInterval(che,Gx)),nl=1,Kx(Yy))}}function Zy(e,t,r){var o=new Pu;return t=t==null?0:+t,o.restart(s=>{o.stop(),e(s+t)},t,r),o}var fhe=Ua("start","end","cancel","interrupt"),dhe=[],Xx=0,Jy=1,Th=2,Jc=3,Qy=4,Ch=5,Qc=6;function hf(e,t,r,o,s,c){var f=e.__transition;if(!f)e.__transition={};else if(r in f)return;hhe(e,r,{name:t,index:o,group:s,on:fhe,tween:dhe,time:c.time,delay:c.delay,duration:c.duration,ease:c.ease,timer:null,state:Xx})}function Mp(e,t){var r=Fr(e,t);if(r.state>Xx)throw new Error("too late; already scheduled");return r}function ni(e,t){var r=Fr(e,t);if(r.state>Jc)throw new Error("too late; already running");return r}function Fr(e,t){var r=e.__transition;if(!r||!(r=r[t]))throw new Error("transition not found");return r}function hhe(e,t,r){var o=e.__transition,s;o[t]=r,r.timer=Lp(c,0,r.time);function c(p){r.state=Jy,r.timer.restart(f,r.delay,r.time),r.delay<=p&&f(p-r.delay)}function f(p){var g,v,b,w;if(r.state!==Jy)return h();for(g in o)if(w=o[g],w.name===r.name){if(w.state===Jc)return Zy(f);w.state===Qy?(w.state=Qc,w.timer.stop(),w.on.call("interrupt",e,e.__data__,w.index,w.group),delete o[g]):+g<t&&(w.state=Qc,w.timer.stop(),w.on.call("cancel",e,e.__data__,w.index,w.group),delete o[g])}if(Zy(function(){r.state===Jc&&(r.state=Qy,r.timer.restart(d,r.delay,r.time),d(p))}),r.state=Th,r.on.call("start",e,e.__data__,r.index,r.group),r.state===Th){for(r.state=Jc,s=new Array(b=r.tween.length),g=0,v=-1;g<b;++g)(w=r.tween[g].value.call(e,e.__data__,r.index,r.group))&&(s[++v]=w);s.length=v+1}}function d(p){for(var g=p<r.duration?r.ease.call(null,p/r.duration):(r.timer.restart(h),r.state=Ch,1),v=-1,b=s.length;++v<b;)s[v].call(e,g);r.state===Ch&&(r.on.call("end",e,e.__data__,r.index,r.group),h())}function h(){r.state=Qc,r.timer.stop(),delete o[t];for(var p in o)return;delete e.__transition}}function eu(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>Th&&o.state<Ch,o.state=Qc,o.timer.stop(),o.on.call(s?"interrupt":"cancel",e,e.__data__,o.index,o.group),delete r[f]}c&&delete e.__transition}}function phe(e){return this.each(function(){eu(this,e)})}function ghe(e,t){var r,o;return function(){var s=ni(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 mhe(e,t,r){var o,s;if(typeof r!="function")throw new Error;return function(){var c=ni(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 vhe(e,t){var r=this._id;if(e+="",arguments.length<2){for(var o=Fr(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?ghe:mhe)(r,e,t))}function Np(e,t,r){var o=e._id;return e.each(function(){var s=ni(this,o);(s.value||(s.value={}))[t]=r.apply(this,arguments)}),function(s){return Fr(s,o).value[t]}}function Yx(e,t){var r;return(typeof t=="number"?to:t instanceof Aa?Gy:(r=Aa(t))?(t=r,Gy):Jde)(e,t)}function yhe(e){return function(){this.removeAttribute(e)}}function bhe(e){return function(){this.removeAttributeNS(e.space,e.local)}}function whe(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 xhe(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 khe(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 She(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 _he(e,t){var r=ff(e),o=r==="transform"?nhe:Yx;return this.attrTween(e,typeof t=="function"?(r.local?She:khe)(r,o,Np(this,"attr."+e,t)):t==null?(r.local?bhe:yhe)(r):(r.local?xhe:whe)(r,o,t))}function The(e,t){return function(r){this.setAttribute(e,t.call(this,r))}}function Che(e,t){return function(r){this.setAttributeNS(e.space,e.local,t.call(this,r))}}function Ehe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&Che(e,c)),r}return s._value=t,s}function Ahe(e,t){var r,o;function s(){var c=t.apply(this,arguments);return c!==o&&(r=(o=c)&&The(e,c)),r}return s._value=t,s}function Lhe(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=ff(e);return this.tween(r,(o.local?Ehe:Ahe)(o,t))}function Mhe(e,t){return function(){Mp(this,e).delay=+t.apply(this,arguments)}}function Nhe(e,t){return t=+t,function(){Mp(this,e).delay=t}}function Ohe(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Mhe:Nhe)(t,e)):Fr(this.node(),t).delay}function Phe(e,t){return function(){ni(this,e).duration=+t.apply(this,arguments)}}function Rhe(e,t){return t=+t,function(){ni(this,e).duration=t}}function $he(e){var t=this._id;return arguments.length?this.each((typeof e=="function"?Phe:Rhe)(t,e)):Fr(this.node(),t).duration}function Ihe(e,t){if(typeof t!="function")throw new Error;return function(){ni(this,e).ease=t}}function Dhe(e){var t=this._id;return arguments.length?this.each(Ihe(t,e)):Fr(this.node(),t).ease}function zhe(e,t){return function(){var r=t.apply(this,arguments);if(typeof r!="function")throw new Error;ni(this,e).ease=r}}function Fhe(e){if(typeof e!="function")throw new Error;return this.each(zhe(this._id,e))}function Hhe(e){typeof e!="function"&&(e=Lx(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 Ei(o,this._parents,this._name,this._id)}function Bhe(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],g=h.length,v=f[d]=new Array(g),b,w=0;w<g;++w)(b=h[w]||p[w])&&(v[w]=b);for(;d<o;++d)f[d]=t[d];return new Ei(f,this._parents,this._name,this._id)}function Whe(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 qhe(e,t,r){var o,s,c=Whe(t)?Mp:ni;return function(){var f=c(this,e),d=f.on;d!==o&&(s=(o=d).copy()).on(t,r),f.on=s}}function jhe(e,t){var r=this._id;return arguments.length<2?Fr(this.node(),r).on.on(e):this.each(qhe(r,e,t))}function Uhe(e){return function(){var t=this.parentNode;for(var r in this.__transition)if(+r!==e)return;t&&t.removeChild(this)}}function Vhe(){return this.on("end.remove",Uhe(this._id))}function Ghe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Tp(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),g,v,b=0;b<h;++b)(g=d[b])&&(v=e.call(g,g.__data__,b,d))&&("__data__"in g&&(v.__data__=g.__data__),p[b]=v,hf(p[b],t,r,b,p,Fr(g,r)));return new Ei(c,this._parents,t,r)}function Khe(e){var t=this._name,r=this._id;typeof e!="function"&&(e=Ax(e));for(var o=this._groups,s=o.length,c=[],f=[],d=0;d<s;++d)for(var h=o[d],p=h.length,g,v=0;v<p;++v)if(g=h[v]){for(var b=e.call(g,g.__data__,v,h),w,E=Fr(g,r),L=0,P=b.length;L<P;++L)(w=b[L])&&hf(w,t,r,L,b,E);c.push(b),f.push(g)}return new Ei(c,f,t,r)}var Xhe=ja.prototype.constructor;function Yhe(){return new Xhe(this._groups,this._parents)}function Zhe(e,t){var r,o,s;return function(){var c=el(this,e),f=(this.style.removeProperty(e),el(this,e));return c===f?null:c===r&&f===o?s:s=t(r=c,o=f)}}function Zx(e){return function(){this.style.removeProperty(e)}}function Jhe(e,t,r){var o,s=r+"",c;return function(){var f=el(this,e);return f===s?null:f===o?c:c=t(o=f,r)}}function Qhe(e,t,r){var o,s,c;return function(){var f=el(this,e),d=r(this),h=d+"";return d==null&&(h=d=(this.style.removeProperty(e),el(this,e))),f===h?null:f===o&&h===s?c:(s=h,c=t(o=f,d))}}function epe(e,t){var r,o,s,c="style."+t,f="end."+c,d;return function(){var h=ni(this,e),p=h.on,g=h.value[c]==null?d||(d=Zx(t)):void 0;(p!==r||s!==g)&&(o=(r=p).copy()).on(f,s=g),h.on=o}}function tpe(e,t,r){var o=(e+="")=="transform"?the:Yx;return t==null?this.styleTween(e,Zhe(e,o)).on("end.style."+e,Zx(e)):typeof t=="function"?this.styleTween(e,Qhe(e,o,Np(this,"style."+e,t))).each(epe(this._id,e)):this.styleTween(e,Jhe(e,o,t),r).on("end.style."+e,null)}function npe(e,t,r){return function(o){this.style.setProperty(e,t.call(this,o),r)}}function rpe(e,t,r){var o,s;function c(){var f=t.apply(this,arguments);return f!==s&&(o=(s=f)&&npe(e,f,r)),o}return c._value=t,c}function ipe(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,rpe(e,t,r??""))}function ope(e){return function(){this.textContent=e}}function spe(e){return function(){var t=e(this);this.textContent=t??""}}function lpe(e){return this.tween("text",typeof e=="function"?spe(Np(this,"text",e)):ope(e==null?"":e+""))}function ape(e){return function(t){this.textContent=e.call(this,t)}}function cpe(e){var t,r;function o(){var s=e.apply(this,arguments);return s!==r&&(t=(r=s)&&ape(s)),t}return o._value=e,o}function upe(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,cpe(e))}function fpe(){for(var e=this._name,t=this._id,r=Jx(),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 g=Fr(h,t);hf(h,e,r,p,f,{time:g.time+g.delay+g.duration,delay:0,duration:g.duration,ease:g.ease})}return new Ei(o,this._parents,e,r)}function dpe(){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=ni(this,o),g=p.on;g!==e&&(t=(e=g).copy(),t._.cancel.push(d),t._.interrupt.push(d),t._.end.push(h)),p.on=t}),s===0&&c()})}var hpe=0;function Ei(e,t,r,o){this._groups=e,this._parents=t,this._name=r,this._id=o}function Jx(){return++hpe}var hi=ja.prototype;Ei.prototype={constructor:Ei,select:Ghe,selectAll:Khe,selectChild:hi.selectChild,selectChildren:hi.selectChildren,filter:Hhe,merge:Bhe,selection:Yhe,transition:fpe,call:hi.call,nodes:hi.nodes,node:hi.node,size:hi.size,empty:hi.empty,each:hi.each,on:jhe,attr:_he,attrTween:Lhe,style:tpe,styleTween:ipe,text:lpe,textTween:upe,remove:Vhe,tween:vhe,delay:Ohe,duration:$he,ease:Dhe,easeVarying:Fhe,end:dpe,[Symbol.iterator]:hi[Symbol.iterator]};function ppe(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var gpe={time:null,delay:0,duration:250,ease:ppe};function mpe(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 vpe(e){var t,r;e instanceof Ei?(t=e._id,e=e._name):(t=Jx(),(r=gpe).time=Ap(),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])&&hf(h,e,t,p,f,r||mpe(h,t));return new Ei(o,this._parents,e,t)}ja.prototype.interrupt=phe;ja.prototype.transition=vpe;const Hc=e=>()=>e;function ype(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 xi(e,t,r){this.k=e,this.x=t,this.y=r}xi.prototype={constructor:xi,scale:function(e){return e===1?this:new xi(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new xi(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 Op=new xi(1,0,0);xi.prototype;function Dd(e){e.stopImmediatePropagation()}function ql(e){e.preventDefault(),e.stopImmediatePropagation()}function bpe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function wpe(){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 e0(){return this.__zoom||Op}function xpe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function kpe(){return navigator.maxTouchPoints||"ontouchstart"in this}function Spe(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 _pe(){var e=bpe,t=wpe,r=Spe,o=xpe,s=kpe,c=[0,1/0],f=[[-1/0,-1/0],[1/0,1/0]],d=250,h=she,p=Ua("start","zoom","end"),g,v,b,w=500,E=150,L=0,P=10;function M(C){C.property("__zoom",e0).on("wheel.zoom",ee,{passive:!1}).on("mousedown.zoom",Z).on("dblclick.zoom",G).filter(s).on("touchstart.zoom",j).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",O).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}M.transform=function(C,k,z,B){var ce=C.selection?C.selection():C;ce.property("__zoom",e0),C!==ce?$(C,k,z,B):ce.interrupt().each(function(){W(this,arguments).event(B).start().zoom(null,typeof k=="function"?k.apply(this,arguments):k).end()})},M.scaleBy=function(C,k,z,B){M.scaleTo(C,function(){var ce=this.__zoom.k,be=typeof k=="function"?k.apply(this,arguments):k;return ce*be},z,B)},M.scaleTo=function(C,k,z,B){M.transform(C,function(){var ce=t.apply(this,arguments),be=this.__zoom,Se=z==null?_(ce):typeof z=="function"?z.apply(this,arguments):z,Be=be.invert(Se),Ae=typeof k=="function"?k.apply(this,arguments):k;return r(I(R(be,Ae),Se,Be),ce,f)},z,B)},M.translateBy=function(C,k,z,B){M.transform(C,function(){return r(this.__zoom.translate(typeof k=="function"?k.apply(this,arguments):k,typeof z=="function"?z.apply(this,arguments):z),t.apply(this,arguments),f)},null,B)},M.translateTo=function(C,k,z,B,ce){M.transform(C,function(){var be=t.apply(this,arguments),Se=this.__zoom,Be=B==null?_(be):typeof B=="function"?B.apply(this,arguments):B;return r(Op.translate(Be[0],Be[1]).scale(Se.k).translate(typeof k=="function"?-k.apply(this,arguments):-k,typeof z=="function"?-z.apply(this,arguments):-z),be,f)},B,ce)};function R(C,k){return k=Math.max(c[0],Math.min(c[1],k)),k===C.k?C:new xi(k,C.x,C.y)}function I(C,k,z){var B=k[0]-z[0]*C.k,ce=k[1]-z[1]*C.k;return B===C.x&&ce===C.y?C:new xi(C.k,B,ce)}function _(C){return[(+C[0][0]+ +C[1][0])/2,(+C[0][1]+ +C[1][1])/2]}function $(C,k,z,B){C.on("start.zoom",function(){W(this,arguments).event(B).start()}).on("interrupt.zoom end.zoom",function(){W(this,arguments).event(B).end()}).tween("zoom",function(){var ce=this,be=arguments,Se=W(ce,be).event(B),Be=t.apply(ce,be),Ae=z==null?_(Be):typeof z=="function"?z.apply(ce,be):z,Ke=Math.max(Be[1][0]-Be[0][0],Be[1][1]-Be[0][1]),je=ce.__zoom,Fe=typeof k=="function"?k.apply(ce,be):k,Pe=h(je.invert(Ae).concat(Ke/je.k),Fe.invert(Ae).concat(Ke/Fe.k));return function(F){if(F===1)F=Fe;else{var Y=Pe(F),re=Ke/Y[2];F=new xi(re,Ae[0]-Y[0]*re,Ae[1]-Y[1]*re)}Se.zoom(null,F)}})}function W(C,k,z){return!z&&C.__zooming||new ne(C,k)}function ne(C,k){this.that=C,this.args=k,this.active=0,this.sourceEvent=null,this.extent=t.apply(C,k),this.taps=0}ne.prototype={event:function(C){return C&&(this.sourceEvent=C),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(C,k){return this.mouse&&C!=="mouse"&&(this.mouse[1]=k.invert(this.mouse[0])),this.touch0&&C!=="touch"&&(this.touch0[1]=k.invert(this.touch0[0])),this.touch1&&C!=="touch"&&(this.touch1[1]=k.invert(this.touch1[0])),this.that.__zoom=k,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(C){var k=Kn(this.that).datum();p.call(C,this.that,new ype(C,{sourceEvent:this.sourceEvent,target:M,transform:this.that.__zoom,dispatch:p}),k)}};function ee(C,...k){if(!e.apply(this,arguments))return;var z=W(this,k).event(C),B=this.__zoom,ce=Math.max(c[0],Math.min(c[1],B.k*Math.pow(2,o.apply(this,arguments)))),be=vi(C);if(z.wheel)(z.mouse[0][0]!==be[0]||z.mouse[0][1]!==be[1])&&(z.mouse[1]=B.invert(z.mouse[0]=be)),clearTimeout(z.wheel);else{if(B.k===ce)return;z.mouse=[be,B.invert(be)],eu(this),z.start()}ql(C),z.wheel=setTimeout(Se,E),z.zoom("mouse",r(I(R(B,ce),z.mouse[0],z.mouse[1]),z.extent,f));function Se(){z.wheel=null,z.end()}}function Z(C,...k){if(b||!e.apply(this,arguments))return;var z=C.currentTarget,B=W(this,k,!0).event(C),ce=Kn(C.view).on("mousemove.zoom",Ae,!0).on("mouseup.zoom",Ke,!0),be=vi(C,z),Se=C.clientX,Be=C.clientY;Fx(C.view),Dd(C),B.mouse=[be,this.__zoom.invert(be)],eu(this),B.start();function Ae(je){if(ql(je),!B.moved){var Fe=je.clientX-Se,Pe=je.clientY-Be;B.moved=Fe*Fe+Pe*Pe>L}B.event(je).zoom("mouse",r(I(B.that.__zoom,B.mouse[0]=vi(je,z),B.mouse[1]),B.extent,f))}function Ke(je){ce.on("mousemove.zoom mouseup.zoom",null),Hx(je.view,B.moved),ql(je),B.event(je).end()}}function G(C,...k){if(e.apply(this,arguments)){var z=this.__zoom,B=vi(C.changedTouches?C.changedTouches[0]:C,this),ce=z.invert(B),be=z.k*(C.shiftKey?.5:2),Se=r(I(R(z,be),B,ce),t.apply(this,k),f);ql(C),d>0?Kn(this).transition().duration(d).call($,Se,B,C):Kn(this).call(M.transform,Se,B,C)}}function j(C,...k){if(e.apply(this,arguments)){var z=C.touches,B=z.length,ce=W(this,k,C.changedTouches.length===B).event(C),be,Se,Be,Ae;for(Dd(C),Se=0;Se<B;++Se)Be=z[Se],Ae=vi(Be,this),Ae=[Ae,this.__zoom.invert(Ae),Be.identifier],ce.touch0?!ce.touch1&&ce.touch0[2]!==Ae[2]&&(ce.touch1=Ae,ce.taps=0):(ce.touch0=Ae,be=!0,ce.taps=1+!!g);g&&(g=clearTimeout(g)),be&&(ce.taps<2&&(v=Ae[0],g=setTimeout(function(){g=null},w)),eu(this),ce.start())}}function N(C,...k){if(this.__zooming){var z=W(this,k).event(C),B=C.changedTouches,ce=B.length,be,Se,Be,Ae;for(ql(C),be=0;be<ce;++be)Se=B[be],Be=vi(Se,this),z.touch0&&z.touch0[2]===Se.identifier?z.touch0[0]=Be:z.touch1&&z.touch1[2]===Se.identifier&&(z.touch1[0]=Be);if(Se=z.that.__zoom,z.touch1){var Ke=z.touch0[0],je=z.touch0[1],Fe=z.touch1[0],Pe=z.touch1[1],F=(F=Fe[0]-Ke[0])*F+(F=Fe[1]-Ke[1])*F,Y=(Y=Pe[0]-je[0])*Y+(Y=Pe[1]-je[1])*Y;Se=R(Se,Math.sqrt(F/Y)),Be=[(Ke[0]+Fe[0])/2,(Ke[1]+Fe[1])/2],Ae=[(je[0]+Pe[0])/2,(je[1]+Pe[1])/2]}else if(z.touch0)Be=z.touch0[0],Ae=z.touch0[1];else return;z.zoom("touch",r(I(Se,Be,Ae),z.extent,f))}}function O(C,...k){if(this.__zooming){var z=W(this,k).event(C),B=C.changedTouches,ce=B.length,be,Se;for(Dd(C),b&&clearTimeout(b),b=setTimeout(function(){b=null},w),be=0;be<ce;++be)Se=B[be],z.touch0&&z.touch0[2]===Se.identifier?delete z.touch0:z.touch1&&z.touch1[2]===Se.identifier&&delete z.touch1;if(z.touch1&&!z.touch0&&(z.touch0=z.touch1,delete z.touch1),z.touch0)z.touch0[1]=this.__zoom.invert(z.touch0[0]);else if(z.end(),z.taps===2&&(Se=vi(Se,this),Math.hypot(v[0]-Se[0],v[1]-Se[1])<P)){var Be=Kn(this).on("dblclick.zoom");Be&&Be.apply(this,arguments)}}}return M.wheelDelta=function(C){return arguments.length?(o=typeof C=="function"?C:Hc(+C),M):o},M.filter=function(C){return arguments.length?(e=typeof C=="function"?C:Hc(!!C),M):e},M.touchable=function(C){return arguments.length?(s=typeof C=="function"?C:Hc(!!C),M):s},M.extent=function(C){return arguments.length?(t=typeof C=="function"?C:Hc([[+C[0][0],+C[0][1]],[+C[1][0],+C[1][1]]]),M):t},M.scaleExtent=function(C){return arguments.length?(c[0]=+C[0],c[1]=+C[1],M):[c[0],c[1]]},M.translateExtent=function(C){return arguments.length?(f[0][0]=+C[0][0],f[1][0]=+C[1][0],f[0][1]=+C[0][1],f[1][1]=+C[1][1],M):[[f[0][0],f[0][1]],[f[1][0],f[1][1]]]},M.constrain=function(C){return arguments.length?(r=C,M):r},M.duration=function(C){return arguments.length?(d=+C,M):d},M.interpolate=function(C){return arguments.length?(h=C,M):h},M.on=function(){var C=p.on.apply(p,arguments);return C===p?M:C},M.clickDistance=function(C){return arguments.length?(L=(C=+C)*C,M):Math.sqrt(L)},M.tapDistance=function(C){return arguments.length?(P=+C,M):P},M}function Tpe(e){const t=+this._x.call(null,e),r=+this._y.call(null,e);return Qx(this.cover(t,r),t,r,e)}function Qx(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,g=e._y1,v,b,w,E,L,P,M,R;if(!c)return e._root=f,e;for(;c.length;)if((L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b,s=c,!(c=c[M=P<<1|L]))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),(L=t>=(v=(d+p)/2))?d=v:p=v,(P=r>=(b=(h+g)/2))?h=b:g=b;while((M=P<<1|L)===(R=(E>=b)<<1|w>=v));return s[R]=c,s[M]=f,e}function Cpe(e){var t,r,o=e.length,s,c,f=new Array(o),d=new Array(o),h=1/0,p=1/0,g=-1/0,v=-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>g&&(g=s),c<p&&(p=c),c>v&&(v=c));if(h>g||p>v)return this;for(this.cover(h,p).cover(g,v),r=0;r<o;++r)Qx(this,f[r],d[r],e[r]);return this}function Epe(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 Ape(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e}function Lpe(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 Rn(e,t,r,o,s){this.node=e,this.x0=t,this.y0=r,this.x1=o,this.y1=s}function Mpe(e,t,r){var o,s=this._x0,c=this._y0,f,d,h,p,g=this._x1,v=this._y1,b=[],w=this._root,E,L;for(w&&b.push(new Rn(w,s,c,g,v)),r==null?r=1/0:(s=e-r,c=t-r,g=e+r,v=t+r,r*=r);E=b.pop();)if(!(!(w=E.node)||(f=E.x0)>g||(d=E.y0)>v||(h=E.x1)<s||(p=E.y1)<c))if(w.length){var P=(f+h)/2,M=(d+p)/2;b.push(new Rn(w[3],P,M,h,p),new Rn(w[2],f,M,P,p),new Rn(w[1],P,d,h,M),new Rn(w[0],f,d,P,M)),(L=(t>=M)<<1|e>=P)&&(E=b[b.length-1],b[b.length-1]=b[b.length-1-L],b[b.length-1-L]=E)}else{var R=e-+this._x.call(null,w.data),I=t-+this._y.call(null,w.data),_=R*R+I*I;if(_<r){var $=Math.sqrt(r=_);s=e-$,c=t-$,g=e+$,v=t+$,o=w.data}}return o}function Npe(e){if(isNaN(g=+this._x.call(null,e))||isNaN(v=+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,g,v,b,w,E,L,P,M;if(!r)return this;if(r.length)for(;;){if((E=g>=(b=(f+h)/2))?f=b:h=b,(L=v>=(w=(d+p)/2))?d=w:p=w,t=r,!(r=r[P=L<<1|E]))return this;if(!r.length)break;(t[P+1&3]||t[P+2&3]||t[P+3&3])&&(o=t,M=P)}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[P]=c:delete t[P],(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 Ope(e){for(var t=0,r=e.length;t<r;++t)this.remove(e[t]);return this}function Ppe(){return this._root}function Rpe(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e}function $pe(e){var t=[],r,o=this._root,s,c,f,d,h;for(o&&t.push(new Rn(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,g=(f+h)/2;(s=o[3])&&t.push(new Rn(s,p,g,d,h)),(s=o[2])&&t.push(new Rn(s,c,g,p,h)),(s=o[1])&&t.push(new Rn(s,p,f,d,g)),(s=o[0])&&t.push(new Rn(s,c,f,p,g))}return this}function Ipe(e){var t=[],r=[],o;for(this._root&&t.push(new Rn(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,g=(f+h)/2,v=(d+p)/2;(c=s[0])&&t.push(new Rn(c,f,d,g,v)),(c=s[1])&&t.push(new Rn(c,g,d,h,v)),(c=s[2])&&t.push(new Rn(c,f,v,g,p)),(c=s[3])&&t.push(new Rn(c,g,v,h,p))}r.push(o)}for(;o=r.pop();)e(o.node,o.x0,o.y0,o.x1,o.y1);return this}function Dpe(e){return e[0]}function zpe(e){return arguments.length?(this._x=e,this):this._x}function Fpe(e){return e[1]}function Hpe(e){return arguments.length?(this._y=e,this):this._y}function Pp(e,t,r){var o=new Rp(t??Dpe,r??Fpe,NaN,NaN,NaN,NaN);return e==null?o:o.addAll(e)}function Rp(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 t0(e){for(var t={data:e.data},r=t;e=e.next;)r=r.next={data:e.data};return t}var zn=Pp.prototype=Rp.prototype;zn.copy=function(){var e=new Rp(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=t0(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]=t0(o));return e};zn.add=Tpe;zn.addAll=Cpe;zn.cover=Epe;zn.data=Ape;zn.extent=Lpe;zn.find=Mpe;zn.remove=Npe;zn.removeAll=Ope;zn.root=Ppe;zn.size=Rpe;zn.visit=$pe;zn.visitAfter=Ipe;zn.x=zpe;zn.y=Hpe;function Dn(e){return function(){return e}}function io(e){return(e()-.5)*1e-6}function Bpe(e){return e.x+e.vx}function Wpe(e){return e.y+e.vy}function qpe(e){var t,r,o,s=1,c=1;typeof e!="function"&&(e=Dn(e==null?1:+e));function f(){for(var p,g=t.length,v,b,w,E,L,P,M=0;M<c;++M)for(v=Pp(t,Bpe,Wpe).visitAfter(d),p=0;p<g;++p)b=t[p],L=r[b.index],P=L*L,w=b.x+b.vx,E=b.y+b.vy,v.visit(R);function R(I,_,$,W,ne){var ee=I.data,Z=I.r,G=L+Z;if(ee){if(ee.index>b.index){var j=w-ee.x-ee.vx,N=E-ee.y-ee.vy,O=j*j+N*N;O<G*G&&(j===0&&(j=io(o),O+=j*j),N===0&&(N=io(o),O+=N*N),O=(G-(O=Math.sqrt(O)))/O*s,b.vx+=(j*=O)*(G=(Z*=Z)/(P+Z)),b.vy+=(N*=O)*G,ee.vx-=j*(G=1-G),ee.vy-=N*G)}return}return _>w+G||W<w-G||$>E+G||ne<E-G}}function d(p){if(p.data)return p.r=r[p.data.index];for(var g=p.r=0;g<4;++g)p[g]&&p[g].r>p.r&&(p.r=p[g].r)}function h(){if(t){var p,g=t.length,v;for(r=new Array(g),p=0;p<g;++p)v=t[p],r[v.index]=+e(v,p,t)}}return f.initialize=function(p,g){t=p,o=g,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:Dn(+p),h(),f):e},f}function jpe(e){return e.index}function n0(e,t){var r=e.get(t);if(!r)throw new Error("node not found: "+t);return r}function Upe(e){var t=jpe,r=v,o,s=Dn(30),c,f,d,h,p,g=1;e==null&&(e=[]);function v(P){return 1/Math.min(d[P.source.index],d[P.target.index])}function b(P){for(var M=0,R=e.length;M<g;++M)for(var I=0,_,$,W,ne,ee,Z,G;I<R;++I)_=e[I],$=_.source,W=_.target,ne=W.x+W.vx-$.x-$.vx||io(p),ee=W.y+W.vy-$.y-$.vy||io(p),Z=Math.sqrt(ne*ne+ee*ee),Z=(Z-c[I])/Z*P*o[I],ne*=Z,ee*=Z,W.vx-=ne*(G=h[I]),W.vy-=ee*G,$.vx+=ne*(G=1-G),$.vy+=ee*G}function w(){if(f){var P,M=f.length,R=e.length,I=new Map(f.map(($,W)=>[t($,W,f),$])),_;for(P=0,d=new Array(M);P<R;++P)_=e[P],_.index=P,typeof _.source!="object"&&(_.source=n0(I,_.source)),typeof _.target!="object"&&(_.target=n0(I,_.target)),d[_.source.index]=(d[_.source.index]||0)+1,d[_.target.index]=(d[_.target.index]||0)+1;for(P=0,h=new Array(R);P<R;++P)_=e[P],h[P]=d[_.source.index]/(d[_.source.index]+d[_.target.index]);o=new Array(R),E(),c=new Array(R),L()}}function E(){if(f)for(var P=0,M=e.length;P<M;++P)o[P]=+r(e[P],P,e)}function L(){if(f)for(var P=0,M=e.length;P<M;++P)c[P]=+s(e[P],P,e)}return b.initialize=function(P,M){f=P,p=M,w()},b.links=function(P){return arguments.length?(e=P,w(),b):e},b.id=function(P){return arguments.length?(t=P,b):t},b.iterations=function(P){return arguments.length?(g=+P,b):g},b.strength=function(P){return arguments.length?(r=typeof P=="function"?P:Dn(+P),E(),b):r},b.distance=function(P){return arguments.length?(s=typeof P=="function"?P:Dn(+P),L(),b):s},b}const Vpe=1664525,Gpe=1013904223,r0=4294967296;function Kpe(){let e=1;return()=>(e=(Vpe*e+Gpe)%r0)/r0}function Xpe(e){return e.x}function Ype(e){return e.y}var Zpe=10,Jpe=Math.PI*(3-Math.sqrt(5));function Qpe(e){var t,r=1,o=.001,s=1-Math.pow(o,1/300),c=0,f=.6,d=new Map,h=Lp(v),p=Ua("tick","end"),g=Kpe();e==null&&(e=[]);function v(){b(),p.call("tick",t),r<o&&(h.stop(),p.call("end",t))}function b(L){var P,M=e.length,R;L===void 0&&(L=1);for(var I=0;I<L;++I)for(r+=(c-r)*s,d.forEach(function(_){_(r)}),P=0;P<M;++P)R=e[P],R.fx==null?R.x+=R.vx*=f:(R.x=R.fx,R.vx=0),R.fy==null?R.y+=R.vy*=f:(R.y=R.fy,R.vy=0);return t}function w(){for(var L=0,P=e.length,M;L<P;++L){if(M=e[L],M.index=L,M.fx!=null&&(M.x=M.fx),M.fy!=null&&(M.y=M.fy),isNaN(M.x)||isNaN(M.y)){var R=Zpe*Math.sqrt(.5+L),I=L*Jpe;M.x=R*Math.cos(I),M.y=R*Math.sin(I)}(isNaN(M.vx)||isNaN(M.vy))&&(M.vx=M.vy=0)}}function E(L){return L.initialize&&L.initialize(e,g),L}return w(),t={tick:b,restart:function(){return h.restart(v),t},stop:function(){return h.stop(),t},nodes:function(L){return arguments.length?(e=L,w(),d.forEach(E),t):e},alpha:function(L){return arguments.length?(r=+L,t):r},alphaMin:function(L){return arguments.length?(o=+L,t):o},alphaDecay:function(L){return arguments.length?(s=+L,t):+s},alphaTarget:function(L){return arguments.length?(c=+L,t):c},velocityDecay:function(L){return arguments.length?(f=1-L,t):1-f},randomSource:function(L){return arguments.length?(g=L,d.forEach(E),t):g},force:function(L,P){return arguments.length>1?(P==null?d.delete(L):d.set(L,E(P)),t):d.get(L)},find:function(L,P,M){var R=0,I=e.length,_,$,W,ne,ee;for(M==null?M=1/0:M*=M,R=0;R<I;++R)ne=e[R],_=L-ne.x,$=P-ne.y,W=_*_+$*$,W<M&&(ee=ne,M=W);return ee},on:function(L,P){return arguments.length>1?(p.on(L,P),t):p.on(L)}}}function ege(){var e,t,r,o,s=Dn(-30),c,f=1,d=1/0,h=.81;function p(w){var E,L=e.length,P=Pp(e,Xpe,Ype).visitAfter(v);for(o=w,E=0;E<L;++E)t=e[E],P.visit(b)}function g(){if(e){var w,E=e.length,L;for(c=new Array(E),w=0;w<E;++w)L=e[w],c[L.index]=+s(L,w,e)}}function v(w){var E=0,L,P,M=0,R,I,_;if(w.length){for(R=I=_=0;_<4;++_)(L=w[_])&&(P=Math.abs(L.value))&&(E+=L.value,M+=P,R+=P*L.x,I+=P*L.y);w.x=R/M,w.y=I/M}else{L=w,L.x=L.data.x,L.y=L.data.y;do E+=c[L.data.index];while(L=L.next)}w.value=E}function b(w,E,L,P){if(!w.value)return!0;var M=w.x-t.x,R=w.y-t.y,I=P-E,_=M*M+R*R;if(I*I/h<_)return _<d&&(M===0&&(M=io(r),_+=M*M),R===0&&(R=io(r),_+=R*R),_<f&&(_=Math.sqrt(f*_)),t.vx+=M*w.value*o/_,t.vy+=R*w.value*o/_),!0;if(w.length||_>=d)return;(w.data!==t||w.next)&&(M===0&&(M=io(r),_+=M*M),R===0&&(R=io(r),_+=R*R),_<f&&(_=Math.sqrt(f*_)));do w.data!==t&&(I=c[w.data.index]*o/_,t.vx+=M*I,t.vy+=R*I);while(w=w.next)}return p.initialize=function(w,E){e=w,r=E,g()},p.strength=function(w){return arguments.length?(s=typeof w=="function"?w:Dn(+w),g(),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 tge(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vx+=(s[h]-g.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:Dn(+d),f(),c):t},c.x=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function nge(e){var t=Dn(.1),r,o,s;typeof e!="function"&&(e=Dn(e==null?0:+e));function c(d){for(var h=0,p=r.length,g;h<p;++h)g=r[h],g.vy+=(s[h]-g.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:Dn(+d),f(),c):t},c.y=function(d){return arguments.length?(e=typeof d=="function"?d:Dn(+d),f(),c):e},c}function rge(){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 i0(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 oo(...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]=oo.options.mergeArrays?Array.from(new Set(t[o].concat(r[o]))):r[o]:i0(t[o])&&i0(r[o])?t[o]=oo(t[o],r[o]):t[o]=r[o])}),t},{})}const e1={mergeArrays:!0};oo.options=e1;oo.withOptions=(e,...t)=>{oo.options={mergeArrays:!0,...e};const r=oo(...t);return oo.options=e1,r};var ige=oo;function oge(){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 sge(){return{includeUnlinked:!0,linkFilter:()=>!0,nodeTypeFilter:void 0,showLinkLabels:!0,showNodeLabels:!0}}function t1(e){e.preventDefault(),e.stopPropagation()}function n1(e){return typeof e=="number"}function mo(e,t){return n1(e.nodeRadius)?e.nodeRadius:e.nodeRadius(t)}function lge(e){return`${e.source.id}-${e.target.id}`}function r1(e){return`link-arrow-${e}`.replace(/[()]/g,"~")}function age(e){return`url(#${r1(e.color)})`}function cge(e){return{size:e,padding:(t,r)=>mo(r,t)+2*e,ref:[e/2,e/2],path:[[0,0],[0,e],[e,e/2]],viewBox:[0,0,e,e].join(",")}}const i1={Arrow:e=>cge(e)},uge=(e,t,r)=>[t/2,r/2],fge=(e,t,r)=>[o0(0,t),o0(0,r)];function o0(e,t){return Math.random()*(t-e)+e}const Eh={Centered:uge,Randomized:fge};function dge(){return{autoResize:!1,callbacks:{},hooks:{},initial:sge(),nodeRadius:16,marker:i1.Arrow(4),modifiers:{},positionInitializer:Eh.Centered,simulation:{alphas:rge(),forces:oge()},zoom:{initial:1,min:.1,max:2}}}function hge(e={}){return ige.withOptions({mergeArrays:!1},dge(),e)}function pge({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",g=>t1(g)).on("dblclick",g=>r?.(g)).on("dblclick.zoom",null).on("pointermove",g=>o?.(g)).on("pointerup",g=>s?.(g)).style("cursor","grab");return e&&p.call(h.transform,Op.translate(c,f).scale(d)),p.append("g")}function gge({canvas:e,scale:t,xOffset:r,yOffset:o}){e?.attr("transform",`translate(${r},${o})scale(${t})`)}function mge({config:e,onDragStart:t,onDragEnd:r}){const o=Rde().filter(s=>s.type==="mousedown"?s.button===0:s.type==="touchstart"?s.touches.length===1:!1).on("start",(s,c)=>{s.active===0&&t(s,c),Kn(s.sourceEvent.target).classed("grabbed",!0),c.fx=c.x,c.fy=c.y}).on("drag",(s,c)=>{c.fx=s.x,c.fy=s.y}).on("end",(s,c)=>{s.active===0&&r(s,c),Kn(s.sourceEvent.target).classed("grabbed",!1),c.fx=void 0,c.fy=void 0});return e.modifiers.drag?.(o),o}function vge({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}:yge({links:c},r)}function yge(e,t){const r=[...bge(e,t),...wge(e,t)],o=r.flatMap(s=>[s.source,s.target]);return{nodes:[...new Set([...o,t])],links:[...new Set(r)]}}function bge(e,t){return o1(e,t,(r,o)=>r.target.id===o.id)}function wge(e,t){return o1(e,t,(r,o)=>r.source.id===o.id)}function o1(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 Ah(e){return e.x??0}function Lh(e){return e.y??0}function $p({source:e,target:t}){const r=new tl(Ah(e),Lh(e)),o=new tl(Ah(t),Lh(t)),s=o.subtract(r),c=s.length(),f=s.normalize();return{s:r,t:o,dist:c,norm:f,endNorm:f.multiply(-1)}}function s1({center:e,node:t}){const r=new tl(Ah(t),Lh(t));let o=e;return r.x===o.x&&r.y===o.y&&(o=o.add(new tl(0,1))),{n:r,c:o}}function l1({config:e,source:t,target:r}){const{s:o,t:s,norm:c}=$p({source:t,target:r});return{start:o.add(c.multiply(mo(e,t)-1)),end:s.subtract(c.multiply(e.marker.padding(r,e)))}}function xge(e){const{start:t,end:r}=l1(e);return`M${t.x},${t.y} |
| 45 | L${r.x},${r.y}`}function kge(e){const{start:t,end:r}=l1(e),o=r.subtract(t).multiply(.5),s=t.add(o);return`translate(${s.x-8},${s.y-4})`}function Sge({config:e,source:t,target:r}){const{s:o,t:s,dist:c,norm:f,endNorm:d}=$p({source:t,target:r}),h=10,p=f.rotateByDegrees(-h).multiply(mo(e,t)-1).add(o),g=d.rotateByDegrees(h).multiply(mo(e,r)).add(s).add(d.rotateByDegrees(h).multiply(2*e.marker.size)),v=1.2*c;return`M${p.x},${p.y} |
no test coverage detected