@deslop/workbench 0.0.300 → 0.0.302

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/client/assets/{agent-CcHomDRK.js → agent-CUtT0LEY.js} +1 -1
  2. package/dist/client/assets/agent-DTPZf-YX.js +2 -0
  3. package/dist/client/assets/browser-CUUn0AHR.js +2 -0
  4. package/dist/client/assets/{browser-B8fkyBtE.js → browser-Dw04YNrj.js} +1 -1
  5. package/dist/client/assets/composite-fb6R8ReV.js +1 -0
  6. package/dist/client/assets/{dialog-PAzkmCTH.js → dialog-C8oDbe5L.js} +1 -1
  7. package/dist/client/assets/diff-CQTMrBFJ.js +113 -0
  8. package/dist/client/assets/diff-CXqhtElY.js +2 -0
  9. package/dist/client/assets/fallbacks-C5pf0-4z.js +1 -0
  10. package/dist/client/assets/index-Btb80mKI.css +2 -0
  11. package/dist/client/assets/{index-B8GNfTc7.js → index-C6Z4obLz.js} +1 -1
  12. package/dist/client/assets/route-C3Ef_5wU.js +45 -0
  13. package/dist/client/assets/{route-DGc1kMxd.js → route-DCY3zhD4.js} +2 -2
  14. package/dist/client/assets/run-DrpOX8D_.js +2 -0
  15. package/dist/client/assets/{run-DNgqimzY.js → run-fctUUzCf.js} +1 -1
  16. package/dist/client/assets/state-C9Tv9T9Z.js +2 -0
  17. package/dist/client/assets/terminal-BCKOITUk.js +2 -0
  18. package/dist/client/assets/{terminal-BDNA0nGZ.js → terminal-BU19EPvo.js} +1 -1
  19. package/dist/client/assets/{terminal-Dn-2EhdC.js → terminal-CwEzAjQe.js} +1 -1
  20. package/dist/client/index.html +9 -10
  21. package/dist/server.js +1065 -599
  22. package/package.json +1 -1
  23. package/dist/client/assets/agent-DhIB78HL.js +0 -2
  24. package/dist/client/assets/browser-ClOwyJJZ.js +0 -2
  25. package/dist/client/assets/check-DpJM7J4T.js +0 -1
  26. package/dist/client/assets/composite-DXpCs7eA.js +0 -1
  27. package/dist/client/assets/diff-Wdd9xz8g.js +0 -113
  28. package/dist/client/assets/diff-gY3qhzPv.js +0 -2
  29. package/dist/client/assets/fallbacks-BUiFDlyX.js +0 -1
  30. package/dist/client/assets/index-CB7nvBDM.css +0 -2
  31. package/dist/client/assets/info-NaVIP-PS.js +0 -1
  32. package/dist/client/assets/route-dsd1lleB.js +0 -45
  33. package/dist/client/assets/run-CSGyvcrt.js +0 -2
  34. package/dist/client/assets/state-nIOT1NpG.js +0 -2
  35. package/dist/client/assets/terminal-D8j15kd-.js +0 -2
@@ -0,0 +1 @@
1
+ import{n as e,o as t,r as n,t as r}from"./compiler-runtime-CUwoe8mk.js";import{A as i,C as a,D as o,E as s,L as c,N as l,O as u,P as d,S as f,T as p,a as m,d as h,ds as g,f as _,h as v,i as y,k as b,l as x,m as S,n as C,o as w,os as T,p as E,s as ee,t as te,ts as D,us as O,y as k}from"./button-Bqawukg7.js";var A=D(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),j=D(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),M=t(n()),N=function(e){return e.disabled=`data-disabled`,e.valid=`data-valid`,e.invalid=`data-invalid`,e.touched=`data-touched`,e.dirty=`data-dirty`,e.filled=`data-filled`,e.focused=`data-focused`,e}({}),P={badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valid:null,valueMissing:!1},F={valid:null,touched:!1,dirty:!1,filled:!1,focused:!1},I={disabled:!1,...F},ne={valid(e){return e===null?null:e?{[N.valid]:``}:{[N.invalid]:``}}},L={invalid:void 0,name:void 0,validityData:{state:P,errors:[],error:``,value:``,initialValue:null},setValidityData:m,disabled:void 0,touched:F.touched,setTouched:m,dirty:F.dirty,setDirty:m,filled:F.filled,setFilled:m,focused:F.focused,setFocused:m,validate:()=>null,validationMode:`onSubmit`,validationDebounceTime:0,shouldValidateOnChange:()=>!1,state:I,markedDirtyRef:{current:!1},registerFieldControl:m,validation:{getValidationProps:(e=y)=>e,getInputValidationProps:(e=y)=>e,inputRef:{current:null},commit:async()=>{}}},R=M.createContext(L);function z(e=!0){let t=M.useContext(R);if(t.setValidityData===m&&!e)throw Error(x(28));return t}var B=0;function re(e,t=`mui`){let[n,r]=M.useState(e),i=e||n;return M.useEffect(()=>{n??(B+=1,r(`${t}-${B}`))},[n,t]),i}var V=S.useId;function H(e,t){if(V!==void 0){let n=V();return e??(t?`${t}-${n}`:n)}return re(e,t)}function ie(e){return H(e,`base-ui`)}var ae=M.createContext({controlId:void 0,registerControlId:m,labelId:void 0,setLabelId:m,messageIds:[],setMessageIds:m,getDescriptionProps:e=>e});function U(){return M.useContext(ae)}var W=g(),oe=O(),G=e(),se=r(),ce=[];function le(e){M.useEffect(e,ce)}var ue=0,de=class e{static create(){return new e}currentId=ue;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=ue,t()},e)}isStarted(){return this.currentId!==ue}clear=()=>{this.currentId!==ue&&(clearTimeout(this.currentId),this.currentId=ue)};disposeEffect=()=>this.clear};function fe(){let e=E(de.create).current;return le(e.disposeEffect),e}function K(e){return e?.ownerDocument||document}var pe=typeof navigator<`u`,me=Se(),he=we(),ge=Ce(),_e=typeof CSS>`u`||!CSS.supports?!1:CSS.supports(`-webkit-backdrop-filter:none`),ve=me.platform===`MacIntel`&&me.maxTouchPoints>1?!0:/iP(hone|ad|od)|iOS/.test(me.platform);pe&&/firefox/i.test(ge);var ye=pe&&/apple/i.test(navigator.vendor);pe&&/Edg/i.test(ge);var be=pe&&/android/i.test(he)||/android/i.test(ge);pe&&he.toLowerCase().startsWith(`mac`)&&navigator.maxTouchPoints;var xe=ge.includes(`jsdom/`);function Se(){if(!pe)return{platform:``,maxTouchPoints:-1};let e=navigator.userAgentData;return e?.platform?{platform:e.platform,maxTouchPoints:navigator.maxTouchPoints}:{platform:navigator.platform??``,maxTouchPoints:navigator.maxTouchPoints??-1}}function Ce(){if(!pe)return``;let e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map(({brand:e,version:t})=>`${e}/${t}`).join(` `):navigator.userAgent}function we(){if(!pe)return``;let e=navigator.userAgentData;return e?.platform?e.platform:navigator.platform??``}var Te=`data-base-ui-focusable`,Ee=`ArrowLeft`,De=`ArrowRight`,Oe=`ArrowUp`,ke=`ArrowDown`;function q(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}function J(e,t){if(!e||!t)return!1;let n=t.getRootNode?.();if(e.contains(t))return!0;if(n&&i(n)){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode||n.host}}return!1}function Ae(e){return`composedPath`in e?e.composedPath()[0]:e.target}function je(e,t){if(t==null)return!1;if(`composedPath`in e)return e.composedPath().includes(t);let n=e;return n.target!=null&&t.contains(n.target)}function Me(e){return e.matches(`html,body`)}function Ne(e){return s(e)&&e.matches(`input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])`)}function Pe(e){return e?e.getAttribute(`role`)===`combobox`&&Ne(e):!1}function Fe(e){return e?e.hasAttribute(`data-base-ui-focusable`)?e:e.querySelector(`[data-base-ui-focusable]`)||e:null}function Ie(e,t,n=!0){return e.filter(e=>e.parentId===t).flatMap(t=>[...!n||t.context?.open?[t]:[],...Ie(e,t.id,n)])}function Le(e,t){let n=[],r=e.find(e=>e.id===t)?.parentId;for(;r;){let t=e.find(e=>e.id===r);r=t?.parentId,t&&(n=n.concat(t))}return n}function Re(e){e.preventDefault(),e.stopPropagation()}function ze(e){return`nativeEvent`in e}function Be(e){return e.pointerType===``&&e.isTrusted?!0:be&&e.pointerType?e.type===`click`&&e.buttons===1:e.detail===0&&!e.pointerType}function Ve(e){return xe?!1:!be&&e.width===0&&e.height===0||be&&e.width===1&&e.height===1&&e.pressure===0&&e.detail===0&&e.pointerType===`mouse`||e.width<1&&e.height<1&&e.pressure===0&&e.detail===0&&e.pointerType===`touch`}function He(e,t){let n=[`mouse`,`pen`];return t||n.push(``,void 0),n.includes(e)}function Ue(e){let t=e.type;return t===`click`||t===`mousedown`||t===`keydown`||t===`keyup`}var We=[`top`,`right`,`bottom`,`left`],Ge=Math.min,Ke=Math.max,qe=Math.round,Je=Math.floor,Ye=e=>({x:e,y:e}),Xe={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Ze(e,t,n){return Ke(e,Ge(t,n))}function Qe(e,t){return typeof e==`function`?e(t):e}function $e(e){return e.split(`-`)[0]}function et(e){return e.split(`-`)[1]}function tt(e){return e===`x`?`y`:`x`}function nt(e){return e===`y`?`height`:`width`}function rt(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function it(e){return tt(rt(e))}function at(e,t,n){n===void 0&&(n=!1);let r=et(e),i=it(e),a=nt(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=mt(o)),[o,mt(o)]}function ot(e){let t=mt(e);return[st(e),t,st(t)]}function st(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ct=[`left`,`right`],lt=[`right`,`left`],ut=[`top`,`bottom`],dt=[`bottom`,`top`];function ft(e,t,n){switch(e){case`top`:case`bottom`:return n?t?lt:ct:t?ct:lt;case`left`:case`right`:return t?ut:dt;default:return[]}}function pt(e,t,n,r){let i=et(e),a=ft($e(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(st)))),a}function mt(e){let t=$e(e);return Xe[t]+e.slice(t.length)}function ht(e){return{top:0,right:0,bottom:0,left:0,...e}}function gt(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:ht(e)}function _t(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function vt(e,t,n){return Math.floor(e/t)!==n}function yt(e,t){return t<0||t>=e.length}function bt(e,t){return Y(e.current,{disabledIndices:t})}function xt(e,t){return Y(e.current,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function Y(e,{startingIndex:t=-1,decrement:n=!1,disabledIndices:r,amount:i=1}={}){let a=t;do a+=n?-i:i;while(a>=0&&a<=e.length-1&&Et(e,a,r));return a}function St(e,{event:t,orientation:n,loopFocus:r,onLoop:i,rtl:a,cols:o,disabledIndices:s,minIndex:c,maxIndex:l,prevIndex:u,stopEvent:d=!1}){let f=u,p;if(t.key===`ArrowUp`?p=`up`:t.key===`ArrowDown`&&(p=`down`),p){let n=[],a=[],m=!1,h=0;{let t=null,r=-1;e.forEach((e,i)=>{if(e==null)return;h+=1;let o=e.closest(`[role="row"]`);o&&(m=!0),(o!==t||r===-1)&&(t=o,r+=1,n[r]=[]),n[r].push(i),a[i]=r})}let g=!1,_=0;if(m)for(let e of n){let t=e.length;t>_&&(_=t),t!==o&&(g=!0)}let v=g&&h<e.length,y=_||o,b=o=>{if(!g||u===-1)return;let c=a[u];if(c==null)return;let l=n[c].indexOf(u),d=o===`up`?-1:1;for(let o=c+d,f=0;f<n.length;f+=1,o+=d){if(o<0||o>=n.length){if(!r||v)return;if(o=o<0?n.length-1:0,i){let e=Math.min(l,n[o].length-1);o=a[i(t,u,n[o][e]??n[o][0])]??o}}let c=n[o];for(let t=Math.min(l,c.length-1);t>=0;--t){let n=c[t];if(!Et(e,n,s))return n}}},x=t=>{if(!v||u===-1)return;let n=u%y,i=t===`up`?-y:y,a=l-l%y,o=Je(l/y)+1;for(let t=u-n+i,c=0;c<o;c+=1,t+=i){if(t<0||t>l){if(!r)return;t=t<0?a:0}let i=Math.min(t+y-1,l);for(let r=Math.min(t+n,i);r>=t;--r)if(!Et(e,r,s))return r}};d&&Re(t);let S=b(p)??x(p);if(S!==void 0)f=S;else if(u===-1)f=p===`up`?l:c;else if(f=Y(e,{startingIndex:u,amount:y,decrement:p===`up`,disabledIndices:s}),r){if(p===`up`&&(u-y<c||f<0)){let e=u%y,n=l%y,r=l-(n-e);f=n===e?l:n>e?r:r-y,i&&(f=i(t,u,f))}p===`down`&&u+y>l&&(f=Y(e,{startingIndex:u%y-y,amount:y,disabledIndices:s}),i&&(f=i(t,u,f)))}yt(e,f)&&(f=u)}if(n===`both`){let n=Je(u/o);t.key===(a?`ArrowLeft`:`ArrowRight`)&&(d&&Re(t),u%o===o-1?r&&(f=Y(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Y(e,{startingIndex:u,disabledIndices:s}),r&&vt(f,o,n)&&(f=Y(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f)))),vt(f,o,n)&&(f=u)),t.key===(a?`ArrowRight`:`ArrowLeft`)&&(d&&Re(t),u%o===0?r&&(f=Y(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f))):(f=Y(e,{startingIndex:u,decrement:!0,disabledIndices:s}),r&&vt(f,o,n)&&(f=Y(e,{startingIndex:u+(o-u%o),decrement:!0,disabledIndices:s}),i&&(f=i(t,u,f)))),vt(f,o,n)&&(f=u));let c=Je(l/o)===n;yt(e,f)&&(r&&c?(f=t.key===(a?`ArrowRight`:`ArrowLeft`)?l:Y(e,{startingIndex:u-u%o-1,disabledIndices:s}),i&&(f=i(t,u,f))):f=u)}return f}function Ct(e,t,n){let r=[],i=0;return e.forEach(({width:e,height:a},o)=>{let s=!1;for(n&&(i=0);!s;){let n=[];for(let r=0;r<e;r+=1)for(let e=0;e<a;e+=1)n.push(i+r+e*t);i%t+e<=t&&n.every(e=>r[e]==null)?(n.forEach(e=>{r[e]=o}),s=!0):i+=1}}),[...r]}function wt(e,t,n,r,i){if(e===-1)return-1;let a=n.indexOf(e),o=t[e];switch(i){case`tl`:return a;case`tr`:return o?a+o.width-1:a;case`bl`:return o?a+(o.height-1)*r:a;case`br`:return n.lastIndexOf(e);default:return-1}}function Tt(e,t){return t.flatMap((t,n)=>e.includes(t)?[n]:[])}function Et(e,t,n){if(typeof n==`function`?n(t):n?.includes(t)??!1)return!0;let r=e[t];return r?Ot(r)?!n&&(r.hasAttribute(`disabled`)||r.getAttribute(`aria-disabled`)===`true`):!0:!1}function Dt(e){return e.visibility===`hidden`||e.visibility===`collapse`}function Ot(e,t=e?v(e):null){return!e||!e.isConnected||!t||Dt(t)?!1:typeof e.checkVisibility==`function`?e.checkVisibility():t.display!==`none`&&t.display!==`contents`}var kt=`a[href],button,input,select,textarea,summary,details,iframe,object,embed,[tabindex],[contenteditable]:not([contenteditable="false"]),audio[controls],video[controls]`;function At(e){let t=e.assignedSlot;if(t)return t;if(e.parentElement)return e.parentElement;let n=e.getRootNode();return i(n)?n.host:null}function jt(e){for(let t of Array.from(e.children))if(k(t)===`summary`)return t;return null}function Mt(e,t){let n=jt(t);return!!n&&(e===n||J(n,e))}function Nt(e){let t=e?k(e):``;return e!=null&&e.matches(kt)&&(t!==`summary`||e.parentElement!=null&&k(e.parentElement)===`details`&&jt(e.parentElement)===e)&&(t!==`details`||jt(e)==null)&&(t!==`input`||e.type!==`hidden`)}function Pt(e){if(!Nt(e)||!e.isConnected||e.matches(`:disabled`))return!1;for(let t=e;t;t=At(t)){let n=t!==e,r=k(t)===`slot`;if(t.hasAttribute(`inert`)||n&&k(t)===`details`&&!t.open&&!Mt(e,t)||t.hasAttribute(`hidden`)||!r&&!Ft(t,n))return!1}return!0}function Ft(e,t){let n=v(e);return t?n.display!==`none`:Ot(e,n)}function It(e){let t=e.tabIndex;if(t<0){let t=k(e);if(t===`details`||t===`audio`||t===`video`||s(e)&&e.isContentEditable)return 0}return t}function Lt(e){if(k(e)!==`input`)return null;let t=e;return t.type===`radio`&&t.name!==``?t:null}function Rt(e,t){let n=Lt(e);if(!n)return!0;let r=t.find(e=>{let t=Lt(e);return t?.name===n.name&&t.form===n.form&&t.checked});return r?r===n:t.find(e=>{let t=Lt(e);return t?.name===n.name&&t.form===n.form})===n}function zt(e){if(s(e)&&k(e)===`slot`){let t=e.assignedElements({flatten:!0});if(t.length>0)return t}return s(e)&&e.shadowRoot?Array.from(e.shadowRoot.children):Array.from(e.children)}function Bt(e,t){zt(e).forEach(e=>{Nt(e)&&t.push(e),Bt(e,t)})}function Vt(e,t,n){zt(e).forEach(e=>{s(e)&&e.matches(t)&&n.push(e),Vt(e,t,n)})}function Ht(e){return Pt(e)&&It(e)>=0}function Ut(e){let t=[];return Bt(e,t),t.filter(Pt)}function Wt(e){let t=Ut(e);return t.filter(e=>It(e)>=0&&Rt(e,t))}function Gt(e,t){let n=Wt(e),r=n.length;if(r===0)return;let i=q(K(e)),a=n.indexOf(i);return n[a===-1?t===1?0:r-1:a+t]}function Kt(e){return Gt(K(e).body,1)||e}function qt(e){return Gt(K(e).body,-1)||e}function Jt(e,t){let n=t||e.currentTarget,r=e.relatedTarget;return!r||!J(n,r)}function Yt(e){Wt(e).forEach(e=>{e.dataset.tabindex=e.getAttribute(`tabindex`)||``,e.setAttribute(`tabindex`,`-1`)})}function Xt(e){let t=[];Vt(e,`[data-tabindex]`,t),t.forEach(e=>{let t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute(`tabindex`,t):e.removeAttribute(`tabindex`)})}var Zt=null;globalThis.requestAnimationFrame;var Qt=new class{callbacks=[];callbacksCount=0;nextId=1;startId=1;isScheduled=!1;tick=e=>{this.isScheduled=!1;let t=this.callbacks,n=this.callbacksCount;if(this.callbacks=[],this.callbacksCount=0,this.startId=this.nextId,n>0)for(let n=0;n<t.length;n+=1)t[n]?.(e)};request(e){let t=this.nextId;return this.nextId+=1,this.callbacks.push(e),this.callbacksCount+=1,this.isScheduled||=(requestAnimationFrame(this.tick),!0),t}cancel(e){let t=e-this.startId;t<0||t>=this.callbacks.length||(this.callbacks[t]=null,--this.callbacksCount)}},$t=class e{static create(){return new e}static request(e){return Qt.request(e)}static cancel(e){return Qt.cancel(e)}currentId=Zt;request(e){this.cancel(),this.currentId=Qt.request(()=>{this.currentId=Zt,e()})}cancel=()=>{this.currentId!==Zt&&(Qt.cancel(this.currentId),this.currentId=Zt)};disposeEffect=()=>this.cancel};function en(){let e=E($t.create).current;return le(e.disposeEffect),e}var tn=t(T());function nn(e){return e==null?e:`current`in e?e.current:e}var rn=function(e){return e.startingStyle=`data-starting-style`,e.endingStyle=`data-ending-style`,e}({}),an={[rn.startingStyle]:``},on={[rn.endingStyle]:``},sn={transitionStatus(e){return e===`starting`?an:e===`ending`?on:null}};function cn(e,t=!1,n=!0){let r=en();return _((i,a=null)=>{r.cancel();let o=nn(e);if(o==null)return;let s=o,c=()=>{tn.flushSync(i)};if(typeof s.getAnimations!=`function`||globalThis.BASE_UI_ANIMATIONS_DISABLED){i();return}function l(){Promise.all(s.getAnimations().map(e=>e.finished)).then(()=>{a?.aborted||c()}).catch(()=>{if(n){a?.aborted||c();return}let e=s.getAnimations();!a?.aborted&&e.length>0&&e.some(e=>e.pending||e.playState!==`finished`)&&l()})}if(t){let e=rn.startingStyle;if(!s.hasAttribute(e)){r.request(l);return}let t=new MutationObserver(()=>{s.hasAttribute(e)||(t.disconnect(),l())});t.observe(s,{attributes:!0,attributeFilter:[e]}),a?.addEventListener(`abort`,()=>t.disconnect(),{once:!0});return}r.request(l)})}function ln(e){let{enabled:t=!0,open:n,ref:r,onComplete:i}=e,a=_(i),o=cn(r,n,!1);M.useEffect(()=>{if(!t)return;let e=new AbortController;return o(a,e.signal),()=>{e.abort()}},[t,n,a,o])}function un(e,t=!1,n=!1){let[r,i]=M.useState(e&&t?`idle`:void 0),[a,o]=M.useState(e);return e&&!a&&(o(!0),i(`starting`)),!e&&a&&r!==`ending`&&!n&&i(`ending`),!e&&!a&&r===`ending`&&i(void 0),h(()=>{if(!e&&a&&r!==`ending`&&n){let e=$t.request(()=>{i(`ending`)});return()=>{$t.cancel(e)}}},[e,a,r,n]),h(()=>{if(!e||t)return;let n=$t.request(()=>{i(void 0)});return()=>{$t.cancel(n)}},[t,e]),h(()=>{if(!e||!t)return;e&&a&&r!==`idle`&&i(`starting`);let n=$t.request(()=>{i(`idle`)});return()=>{$t.cancel(n)}},[t,e,a,r]),{mounted:a,setMounted:o,transitionStatus:r}}function dn({controlled:e,default:t,name:n,state:r=`value`}){let{current:i}=M.useRef(e!==void 0),[a,o]=M.useState(t);return[i?e:a,M.useCallback(e=>{i||o(e)},[])]}function fn(e,t,n,r,i=!0){let{registerFieldControl:a}=z(),o=M.useRef(null);o.current||=Symbol(),h(()=>{let s=o.current;if(!(!s||!i))return a(s,{controlRef:e,getValue:r,id:t,value:n}),()=>{a(s,void 0)}},[e,i,r,t,a,n])}function pn(e={}){let{id:t,implicit:n=!1,controlRef:r}=e,{controlId:i,registerControlId:a}=U(),o=ie(t),s=n?i:void 0,c=E(()=>Symbol(`labelable-control`)),l=M.useRef(!1),u=M.useRef(t!=null),d=_(()=>{!l.current||a===m||(l.current=!1,a(c.current,void 0))});return h(()=>{if(a===m)return;let e;if(n){let n=r?.current;e=p(n)&&n.closest(`label`)!=null?t??null:s??o}else if(t!=null)u.current=!0,e=t;else if(u.current)e=o;else{d();return}if(e===void 0){d();return}l.current=!0,a(c.current,e)},[t,r,s,a,n,o,c,d]),M.useEffect(()=>d,[d]),i??o}var mn=`none`,hn=`trigger-press`,gn=`outside-press`,_n=`item-press`,vn=`close-press`,yn=`focus-out`,bn=`escape-key`,xn=`list-navigation`,Sn=`cancel-open`,Cn=`imperative-action`,wn=`window-resize`;function Tn(e,t,n,r){let i=!1,a=!1,o=r??y;return{reason:e,event:t??new Event(`base-ui`),cancel(){i=!0},allowPropagation(){a=!0},get isCanceled(){return i},get isPropagationAllowed(){return a},trigger:n,...o}}var En=M.forwardRef(function(e,t){let{render:n,className:r,id:i,name:a,value:o,disabled:s=!1,onValueChange:c,defaultValue:l,autoFocus:u=!1,style:d,...f}=e,{state:p,name:m,disabled:g,setTouched:v,setDirty:y,validityData:b,setFocused:x,setFilled:S,validationMode:w,validation:T}=z(),E=g||s,ee=m??a,te={...p,disabled:E},{labelId:D}=U(),O=pn({id:i});h(()=>{let e=o!=null;T.inputRef.current?.value||e&&o!==``?S(!0):e&&o===``&&S(!1)},[T.inputRef,S,o]);let k=M.useRef(null);h(()=>{u&&k.current===q(K(k.current))&&x(!0)},[u,x]);let[A]=dn({controlled:o,default:l,name:`FieldControl`,state:`value`}),j=o!==void 0,N=j?A:void 0,P=_(()=>T.inputRef.current?.value);return fn(T.inputRef,O,N,P),C(`input`,e,{ref:[t,k],state:te,props:[{id:O,disabled:E,name:ee,ref:T.inputRef,"aria-labelledby":D,autoFocus:u,...j?{value:N}:{defaultValue:l},onChange(e){let t=e.currentTarget.value;c?.(t,Tn(mn,e.nativeEvent)),y(t!==b.initialValue),S(t!==``)},onFocus(){x(!0)},onBlur(e){v(!0),x(!1),w===`onBlur`&&T.commit(e.currentTarget.value)},onKeyDown(e){e.currentTarget.tagName===`INPUT`&&e.key===`Enter`&&(v(!0),T.commit(e.currentTarget.value))}},T.getInputValidationProps(),f],stateAttributesMapping:ne})}),Dn=M.forwardRef(function(e,t){return(0,G.jsx)(En,{ref:t,...e})});function On(e){let t=(0,se.c)(10),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,type:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=d(`border-input file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 disabled:bg-input/50 aria-invalid:border-destructive aria-invalid:ring-destructive/20 dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 dark:disabled:bg-input/80 h-8 w-full min-w-0 rounded-none border bg-transparent px-2.5 py-1 font-normal transition-colors outline-none file:inline-flex file:h-6 file:border-0 file:bg-transparent file:font-normal focus-visible:ring-1 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:ring-1`,n),t[4]=n,t[5]=a);let o;return t[6]!==r||t[7]!==a||t[8]!==i?(o=(0,G.jsx)(Dn,{type:i,"data-slot":`input`,className:a,...r}),t[6]=r,t[7]=a,t[8]=i,t[9]=o):o=t[9],o}function kn(e){let t=(0,se.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`group/input-group border-input has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot][aria-invalid=true]]:border-destructive has-disabled:bg-input/50 has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot][aria-invalid=true]]:ring-destructive/20 dark:bg-input/30 dark:has-disabled:bg-input/80 dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40 relative flex h-8 w-full min-w-0 items-center rounded-none border transition-colors outline-none in-data-[slot=combobox-content]:focus-within:border-inherit in-data-[slot=combobox-content]:focus-within:ring-0 has-disabled:opacity-50 has-[[data-slot=input-group-control]:focus-visible]:ring-1 has-[[data-slot][aria-invalid=true]]:ring-1 has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>textarea]:h-auto has-[>[data-align=block-end]]:[&>input]:pt-3 has-[>[data-align=block-start]]:[&>input]:pb-3 has-[>[data-align=inline-end]]:[&>input]:pr-1.5 has-[>[data-align=inline-start]]:[&>input]:pl-1.5`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(`div`,{"data-slot":`input-group`,role:`group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}var An=c(`text-muted-foreground h-auto gap-2 py-1.5 font-normal group-data-[disabled=true]/input-group:opacity-50 [&>kbd]:rounded-none [&>svg:not([class*='size-'])]:size-3 flex cursor-text items-center justify-center select-none`,{variants:{align:{"inline-start":`pl-2 has-[>button]:ml-[-0.3rem] has-[>kbd]:ml-[-0.15rem] order-first`,"inline-end":`pr-2 has-[>button]:mr-[-0.3rem] has-[>kbd]:mr-[-0.15rem] order-last`,"block-start":`px-2.5 pt-2 group-has-[>input]/input-group:pt-2 [.border-b]:pb-2 order-first w-full justify-start`,"block-end":`px-2.5 pb-2 group-has-[>input]/input-group:pb-2 [.border-t]:pt-2 order-last w-full justify-start`}},defaultVariants:{align:`inline-start`}});function jn(e){let t=(0,se.c)(11),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({className:n,align:i,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a=i===void 0?`inline-start`:i,o;t[4]!==a||t[5]!==n?(o=d(An({align:a}),n),t[4]=a,t[5]=n,t[6]=o):o=t[6];let s;return t[7]!==a||t[8]!==r||t[9]!==o?(s=(0,G.jsx)(`div`,{role:`group`,"data-slot":`input-group-addon`,"data-align":a,className:o,onClick:Mn,...r}),t[7]=a,t[8]=r,t[9]=o,t[10]=s):s=t[10],s}function Mn(e){e.target.closest(`button`)||e.currentTarget.parentElement?.querySelector(`input`)?.focus()}var Nn=c(`gap-2 font-normal shadow-none flex items-center`,{variants:{size:{xs:`h-6 gap-1 rounded-none px-1.5 [&>svg:not([class*='size-'])]:size-3`,sm:``,"icon-xs":`size-6 rounded-none p-0 has-[>svg]:p-0`,"icon-sm":`size-8 p-0 has-[>svg]:p-0`}},defaultVariants:{size:`xs`}});function Pn(e){let t=(0,se.c)(15),n,r,i,a,o;t[0]===e?(n=t[1],r=t[2],i=t[3],a=t[4],o=t[5]):({className:n,type:i,variant:a,size:o,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i,t[4]=a,t[5]=o);let s=i===void 0?`button`:i,c=a===void 0?`ghost`:a,l=o===void 0?`xs`:o,u;t[6]!==n||t[7]!==l?(u=d(Nn({size:l}),n),t[6]=n,t[7]=l,t[8]=u):u=t[8];let f;return t[9]!==r||t[10]!==l||t[11]!==u||t[12]!==s||t[13]!==c?(f=(0,G.jsx)(te,{type:s,"data-size":l,variant:c,className:u,...r}),t[9]=r,t[10]=l,t[11]=u,t[12]=s,t[13]=c,t[14]=f):f=t[14],f}function Fn(e){let t=(0,se.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`flex-1 rounded-none border-0 bg-transparent shadow-none ring-0 focus-visible:ring-0 disabled:bg-transparent aria-invalid:ring-0 dark:bg-transparent dark:disabled:bg-transparent`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(On,{"data-slot":`input-group-control`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function In(e,t){let n=getComputedStyle(e);return t*parseFloat(n.fontSize)}function Ln(e,t){let n=getComputedStyle(e.ownerDocument.documentElement);return t*parseFloat(n.fontSize)}function Rn(e){return e/100*window.innerHeight}function zn(e){return e/100*window.innerWidth}function Bn(e){switch(typeof e){case`number`:return[e,`px`];case`string`:{let t=parseFloat(e);return e.endsWith(`%`)?[t,`%`]:e.endsWith(`px`)?[t,`px`]:e.endsWith(`rem`)?[t,`rem`]:e.endsWith(`em`)?[t,`em`]:e.endsWith(`vh`)?[t,`vh`]:e.endsWith(`vw`)?[t,`vw`]:[t,`%`]}}}function Vn({groupSize:e,panelElement:t,styleProp:n}){let r,[i,a]=Bn(n);switch(a){case`%`:r=i/100*e;break;case`px`:r=i;break;case`rem`:r=Ln(t,i);break;case`em`:r=In(t,i);break;case`vh`:r=Rn(i);break;case`vw`:r=zn(i);break}return r}function X(e){return parseFloat(e.toFixed(3))}function Hn({group:e}){let{orientation:t,panels:n}=e;return n.reduce((e,n)=>(e+=t===`horizontal`?n.element.offsetWidth:n.element.offsetHeight,e),0)}function Un(e){let{panels:t}=e,n=Hn({group:e});return n===0?t.map(e=>({groupResizeBehavior:e.panelConstraints.groupResizeBehavior,collapsedSize:0,collapsible:e.panelConstraints.collapsible===!0,defaultSize:void 0,disabled:e.panelConstraints.disabled,minSize:0,maxSize:100,panelId:e.id})):t.map(e=>{let{element:t,panelConstraints:r}=e,i=0;r.collapsedSize!==void 0&&(i=X(Vn({groupSize:n,panelElement:t,styleProp:r.collapsedSize})/n*100));let a;r.defaultSize!==void 0&&(a=X(Vn({groupSize:n,panelElement:t,styleProp:r.defaultSize})/n*100));let o=0;r.minSize!==void 0&&(o=X(Vn({groupSize:n,panelElement:t,styleProp:r.minSize})/n*100));let s=100;return r.maxSize!==void 0&&(s=X(Vn({groupSize:n,panelElement:t,styleProp:r.maxSize})/n*100)),{groupResizeBehavior:r.groupResizeBehavior,collapsedSize:i,collapsible:r.collapsible===!0,defaultSize:a,disabled:r.disabled,minSize:o,maxSize:s,panelId:e.id}})}function Z(e,t=`Assertion error`){if(!e)throw Error(t)}function Wn(e,t){return Array.from(t).sort(e===`horizontal`?Gn:Kn)}function Gn(e,t){let n=e.element.offsetLeft-t.element.offsetLeft;return n===0?e.element.offsetWidth-t.element.offsetWidth:n}function Kn(e,t){let n=e.element.offsetTop-t.element.offsetTop;return n===0?e.element.offsetHeight-t.element.offsetHeight:n}function qn(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.ELEMENT_NODE}function Jn(e,t){return{x:e.x>=t.left&&e.x<=t.right?0:Math.min(Math.abs(e.x-t.left),Math.abs(e.x-t.right)),y:e.y>=t.top&&e.y<=t.bottom?0:Math.min(Math.abs(e.y-t.top),Math.abs(e.y-t.bottom))}}function Yn({orientation:e,rects:t,targetRect:n}){let r={x:n.x+n.width/2,y:n.y+n.height/2},i,a=Number.MAX_VALUE;for(let n of t){let{x:t,y:o}=Jn(r,n),s=e===`horizontal`?t:o;s<a&&(a=s,i=n)}return Z(i,`No rect found`),i}var Xn;function Zn(){return Xn===void 0&&(Xn=typeof matchMedia==`function`?!!matchMedia(`(pointer:coarse)`).matches:!1),Xn}function Qn(e){let{element:t,orientation:n,panels:r,separators:i}=e,a=Wn(n,Array.from(t.children).filter(qn).map(e=>({element:e}))).map(({element:e})=>e),o=[],s=!1,c=!1,l=-1,u=-1,d=0,f,p=[];{let e=-1;for(let t of a)t.hasAttribute(`data-panel`)&&(e++,t.hasAttribute(`data-disabled`)||(d++,l===-1&&(l=e),u=e))}if(d>1){let t=-1;for(let d of a)if(d.hasAttribute(`data-panel`)){t++;let i=r.find(e=>e.element===d);if(i){if(f){let r=f.element.getBoundingClientRect(),a=d.getBoundingClientRect(),m;if(c){let e=n===`horizontal`?new DOMRect(r.right,r.top,0,r.height):new DOMRect(r.left,r.bottom,r.width,0),t=n===`horizontal`?new DOMRect(a.left,a.top,0,a.height):new DOMRect(a.left,a.top,a.width,0);switch(p.length){case 0:m=[e,t];break;case 1:{let i=p[0];m=[i,Yn({orientation:n,rects:[r,a],targetRect:i.element.getBoundingClientRect()})===r?t:e];break}default:m=p;break}}else m=p.length?p:[n===`horizontal`?new DOMRect(r.right,a.top,a.left-r.right,a.height):new DOMRect(a.left,r.bottom,a.width,a.top-r.bottom)];for(let n of m){let r=`width`in n?n:n.element.getBoundingClientRect(),a=Zn()?e.resizeTargetMinimumSize.coarse:e.resizeTargetMinimumSize.fine;if(r.width<a){let e=a-r.width;r=new DOMRect(r.x-e/2,r.y,r.width+e,r.height)}if(r.height<a){let e=a-r.height;r=new DOMRect(r.x,r.y-e/2,r.width,r.height+e)}!s&&!(t<=l||t>u)&&o.push({group:e,groupSize:Hn({group:e}),panels:[f,i],separator:`width`in n?void 0:n,rect:r}),s=!1}}c=!1,f=i,p=[]}}else if(d.hasAttribute(`data-separator`)){d.ariaDisabled!==null&&(s=!0);let e=i.find(e=>e.element===d);e?p.push(e):(f=void 0,p=[])}else c=!0}return o}var $n=class{#e={};addListener(e,t){let n=this.#e[e];return n===void 0?this.#e[e]=[t]:n.includes(t)||n.push(t),()=>{this.removeListener(e,t)}}emit(e,t){let n=this.#e[e];if(n!==void 0)if(n.length===1)n[0].call(null,t);else{let e=!1,r=null,i=Array.from(n);for(let n=0;n<i.length;n++){let a=i[n];try{a.call(null,t)}catch(t){r===null&&(e=!0,r=t)}}if(e)throw r}}removeAllListeners(){this.#e={}}removeListener(e,t){let n=this.#e[e];if(n!==void 0){let e=n.indexOf(t);e>=0&&n.splice(e,1)}}},er=new Map,tr=new $n;function nr(e){er=new Map(er),er.delete(e)}function rr(e,t){for(let[t]of er)if(t.id===e)return t}function ir(e,t){for(let[t,n]of er)if(t.id===e)return n;if(t)throw Error(`Could not find data for Group with id ${e}`)}function ar(){return er}function or(e,t){return tr.addListener(`groupChange`,n=>{n.group.id===e&&t(n)})}function sr(e,t){let n=er.get(e);er=new Map(er),er.set(e,t),tr.emit(`groupChange`,{group:e,prev:n,next:t})}function cr(e,t,n){let r,i={x:1/0,y:1/0};for(let a of t){let t=Jn(n,a.rect);switch(e){case`horizontal`:t.x<=i.x&&(r=a,i=t);break;case`vertical`:t.y<=i.y&&(r=a,i=t);break}}return r?{distance:i,hitRegion:r}:void 0}function lr(e){return typeof e==`object`&&!!e&&`nodeType`in e&&e.nodeType===Node.DOCUMENT_FRAGMENT_NODE}function ur(e,t){if(e===t)throw Error(`Cannot compare node with itself`);let n={a:gr(e),b:gr(t)},r;for(;n.a.at(-1)===n.b.at(-1);)r=n.a.pop(),n.b.pop();Z(r,`Stacking order can only be calculated for elements with a common ancestor`);let i={a:hr(mr(n.a)),b:hr(mr(n.b))};if(i.a===i.b){let e=r.childNodes,t={a:n.a.at(-1),b:n.b.at(-1)},i=e.length;for(;i--;){let n=e[i];if(n===t.a)return 1;if(n===t.b)return-1}}return Math.sign(i.a-i.b)}var dr=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function fr(e){let t=getComputedStyle(_r(e)??e).display;return t===`flex`||t===`inline-flex`}function pr(e){let t=getComputedStyle(e);return!!(t.position===`fixed`||t.zIndex!==`auto`&&(t.position!==`static`||fr(e))||+t.opacity<1||`transform`in t&&t.transform!==`none`||`webkitTransform`in t&&t.webkitTransform!==`none`||`mixBlendMode`in t&&t.mixBlendMode!==`normal`||`filter`in t&&t.filter!==`none`||`webkitFilter`in t&&t.webkitFilter!==`none`||`isolation`in t&&t.isolation===`isolate`||dr.test(t.willChange)||t.webkitOverflowScrolling===`touch`)}function mr(e){let t=e.length;for(;t--;){let n=e[t];if(Z(n,`Missing node`),pr(n))return n}return null}function hr(e){return e&&Number(getComputedStyle(e).zIndex)||0}function gr(e){let t=[];for(;e;)t.push(e),e=_r(e);return t}function _r(e){let{parentNode:t}=e;return lr(t)?t.host:t}function vr(e,t){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}function yr({groupElement:e,hitRegion:t,pointerEventTarget:n}){if(!qn(n)||n.contains(e)||e.contains(n))return!0;if(ur(n,e)>0){let r=n;for(;r;){if(r.contains(e))return!0;if(vr(r.getBoundingClientRect(),t))return!1;r=r.parentElement}}return!0}function br(e,t){let n=[];return t.forEach((t,r)=>{if(r.disabled)return;let i=Qn(r),a=cr(r.orientation,i,{x:e.clientX,y:e.clientY});a&&a.distance.x<=0&&a.distance.y<=0&&yr({groupElement:r.element,hitRegion:a.hitRegion.rect,pointerEventTarget:e.target})&&n.push(a.hitRegion)}),n}function xr(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function Q(e,t,n=0){return Math.abs(X(e)-X(t))<=n}function Sr(e,t){return Q(e,t)?0:e>t?1:-1}function Cr({overrideDisabledPanels:e,panelConstraints:t,prevSize:n,size:r}){let{collapsedSize:i=0,collapsible:a,disabled:o,maxSize:s=100,minSize:c=0}=t;if(o&&!e)return n;if(Sr(r,c)<0)if(a){let e=(i+c)/2;r=Sr(r,e)<0?i:c}else r=c;return r=Math.min(s,r),r=X(r),r}function wr({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:i,trigger:a}){if(Q(e,0))return t;let o=a===`imperative-api`,s=Object.values(t),c=Object.values(i),l=[...s],[u,d]=r;Z(u!=null,`Invalid first pivot index`),Z(d!=null,`Invalid second pivot index`);let f=0;switch(a){case`keyboard`:{let t=e<0?d:u,r=n[t];Z(r,`Panel constraints not found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(Z(n!=null,`Previous layout not found for panel index ${t}`),Q(n,i)){let t=o-n;Sr(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let t=e<0?u:d,r=n[t];Z(r,`No panel constraints found for index ${t}`);let{collapsedSize:i=0,collapsible:a,minSize:o=0}=r;if(a){let n=s[t];if(Z(n!=null,`Previous layout not found for panel index ${t}`),Q(n,o)){let t=n-i;Sr(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}break;default:{let t=e<0?d:u,r=n[t];Z(r,`Panel constraints not found for index ${t}`);let i=s[t],{collapsible:a,collapsedSize:o,minSize:c}=r;if(a&&Sr(i,c)<0)if(e>0){let t=c-o,n=t/2;Sr(i+e,c)<0&&(e=Sr(e,n)<=0?0:t)}else{let t=c-o,n=100-t/2;Sr(i-e,c)<0&&(e=Sr(100+e,n)>0?0:-t)}break}}{let t=e<0?1:-1,r=e<0?d:u,i=0;for(;;){let e=s[r];Z(e!=null,`Previous layout not found for panel index ${r}`);let a=Cr({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:e,size:100})-e;if(i+=a,r+=t,r<0||r>=n.length)break}let a=Math.min(Math.abs(e),Math.abs(i));e=e<0?0-a:a}{let t=e<0?u:d;for(;t>=0&&t<n.length;){let r=Math.abs(e)-Math.abs(f),i=s[t];Z(i!=null,`Previous layout not found for panel index ${t}`);let a=i-r,c=Cr({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:i,size:a});if(!Q(i,c)&&(f+=i-c,l[t]=c,f.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?t--:t++}}if(xr(c,l))return i;{let t=e<0?d:u,r=s[t];Z(r!=null,`Previous layout not found for panel index ${t}`);let i=r+f,a=Cr({overrideDisabledPanels:o,panelConstraints:n[t],prevSize:r,size:i});if(l[t]=a,!Q(a,i)){let t=i-a,r=e<0?d:u;for(;r>=0&&r<n.length;){let i=l[r];Z(i!=null,`Previous layout not found for panel index ${r}`);let a=i+t,s=Cr({overrideDisabledPanels:o,panelConstraints:n[r],prevSize:i,size:a});if(Q(i,s)||(t-=s-i,l[r]=s),Q(t,0))break;e>0?r--:r++}}}if(!Q(Object.values(l).reduce((e,t)=>t+e,0),100,.1))return i;let p=Object.keys(i);return l.reduce((e,t,n)=>(e[p[n]]=t,e),{})}function Tr(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(t[n]===void 0||Sr(e[n],t[n])!==0)return!1;return!0}function Er({layout:e,panelConstraints:t}){let n=Object.values(e),r=[...n],i=r.reduce((e,t)=>e+t,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(e=>`${e}%`).join(`, `)}`);if(!Q(i,100)&&r.length>0)for(let e=0;e<t.length;e++){let t=r[e];Z(t!=null,`No layout data found for index ${e}`),r[e]=100/i*t}let a=0;for(let e=0;e<t.length;e++){let i=n[e];Z(i!=null,`No layout data found for index ${e}`);let o=r[e];Z(o!=null,`No layout data found for index ${e}`);let s=Cr({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:i,size:o});o!=s&&(a+=o-s,r[e]=s)}if(!Q(a,0))for(let e=0;e<t.length;e++){let n=r[e];Z(n!=null,`No layout data found for index ${e}`);let i=n+a,o=Cr({overrideDisabledPanels:!0,panelConstraints:t[e],prevSize:n,size:i});if(n!==o&&(a-=o-n,r[e]=o,Q(a,0)))break}let o=Object.keys(e);return r.reduce((e,t,n)=>(e[o[n]]=t,e),{})}function Dr({groupId:e,panelId:t}){let n=()=>{let t=ar();for(let[n,{defaultLayoutDeferred:r,derivedPanelConstraints:i,layout:a,groupSize:o,separatorToPanels:s}]of t)if(n.id===e)return{defaultLayoutDeferred:r,derivedPanelConstraints:i,group:n,groupSize:o,layout:a,separatorToPanels:s};throw Error(`Group ${e} not found`)},r=()=>{let e=n().derivedPanelConstraints.find(e=>e.panelId===t);if(e!==void 0)return e;throw Error(`Panel constraints not found for Panel ${t}`)},i=()=>{let e=n().group.panels.find(e=>e.id===t);if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},a=()=>{let e=n().layout[t];if(e!==void 0)return e;throw Error(`Layout not found for Panel ${t}`)},o=({nextSize:e,panels:n,prevLayout:r,derivedPanelConstraints:i})=>{let o=a(),s=n.findIndex(e=>e.id===t),c=s===0,l=s===n.length-1;if(l&&e<o&&(c||n.slice(0,s).every((e,t)=>{let n=i[t];return n?.collapsible&&Q(n.collapsedSize,r[n.panelId])}))){let e=n.slice(0,s).reduce((e,t)=>e+r[t.id],0);return{...r,[t]:X(100-e)}}return wr({delta:l?o-e:e-o,initialLayout:r,panelConstraints:i,pivotIndices:l?[s-1,s]:[s,s+1],prevLayout:r,trigger:`imperative-api`})},s=e=>{if(e===a())return;let{defaultLayoutDeferred:t,derivedPanelConstraints:r,group:i,groupSize:s,layout:c,separatorToPanels:l}=n(),u=Er({layout:o({nextSize:e,panels:i.panels,prevLayout:c,derivedPanelConstraints:r}),panelConstraints:r});Tr(c,u)||sr(i,{defaultLayoutDeferred:t,derivedPanelConstraints:r,groupSize:s,layout:u,separatorToPanels:l})};return{collapse:()=>{let{collapsible:e,collapsedSize:t}=r(),{mutableValues:n}=i(),o=a();e&&o!==t&&(n.expandToSize=o,s(t))},expand:()=>{let{collapsible:e,collapsedSize:t,minSize:n}=r(),{mutableValues:o}=i(),c=a();if(e&&c===t){let e=o.expandToSize??n;e===0&&(e=1),s(e)}},getSize:()=>{let{group:e}=n(),t=a(),{element:r}=i();return{asPercentage:t,inPixels:e.orientation===`horizontal`?r.offsetWidth:r.offsetHeight}},isCollapsed:()=>{let{collapsible:e,collapsedSize:t}=r(),n=a();return e&&Q(t,n)},resize:e=>{let{group:t}=n(),{element:r}=i(),a=Hn({group:t});s(X(Vn({groupSize:a,panelElement:r,styleProp:e})/a*100))}}}function Or(e){e.defaultPrevented||br(e,ar()).forEach(t=>{if(t.separator&&!t.separator.disableDoubleClick){let n=t.panels.find(e=>e.panelConstraints.defaultSize!==void 0);if(n){let r=n.panelConstraints.defaultSize,i=Dr({groupId:t.group.id,panelId:n.id});i&&r!==void 0&&(i.resize(r),e.preventDefault())}}})}function kr(e){let t=ar();for(let[n]of t)if(n.separators.some(t=>t.element===e))return n;throw Error(`Could not find parent Group for separator element`)}function Ar({groupId:e}){let t=()=>{let t=ar();for(let[n,r]of t)if(n.id===e)return{group:n,...r};throw Error(`Could not find Group with id "${e}"`)};return{getLayout(){let{defaultLayoutDeferred:e,layout:n}=t();return e?{}:n},setLayout(e){let{defaultLayoutDeferred:n,derivedPanelConstraints:r,group:i,groupSize:a,layout:o,separatorToPanels:s}=t(),c=Er({layout:e,panelConstraints:r});return n?o:(Tr(o,c)||sr(i,{defaultLayoutDeferred:n,derivedPanelConstraints:r,groupSize:a,layout:c,separatorToPanels:s}),c)}}}function jr(e,t){let n=kr(e),r=ir(n.id,!0),i=n.separators.find(t=>t.element===e);Z(i,`Matching separator not found`);let a=r.separatorToPanels.get(i);Z(a,`Matching panels not found`);let o=a.map(e=>n.panels.indexOf(e)),s=Ar({groupId:n.id}).getLayout(),c=Er({layout:wr({delta:t,initialLayout:s,panelConstraints:r.derivedPanelConstraints,pivotIndices:o,prevLayout:s,trigger:`keyboard`}),panelConstraints:r.derivedPanelConstraints});Tr(s,c)||sr(n,{defaultLayoutDeferred:r.defaultLayoutDeferred,derivedPanelConstraints:r.derivedPanelConstraints,groupSize:r.groupSize,layout:c,separatorToPanels:r.separatorToPanels})}function Mr(e){if(e.defaultPrevented)return;let t=e.currentTarget,n=kr(t);if(!n.disabled)switch(e.key){case`ArrowDown`:e.preventDefault(),n.orientation===`vertical`&&jr(t,5);break;case`ArrowLeft`:e.preventDefault(),n.orientation===`horizontal`&&jr(t,-5);break;case`ArrowRight`:e.preventDefault(),n.orientation===`horizontal`&&jr(t,5);break;case`ArrowUp`:e.preventDefault(),n.orientation===`vertical`&&jr(t,-5);break;case`End`:e.preventDefault(),jr(t,100);break;case`Enter`:{e.preventDefault();let n=kr(t),{derivedPanelConstraints:r,layout:i,separatorToPanels:a}=ir(n.id,!0),o=n.separators.find(e=>e.element===t);Z(o,`Matching separator not found`);let s=a.get(o);Z(s,`Matching panels not found`);let c=s[0],l=r.find(e=>e.panelId===c.id);if(Z(l,`Panel metadata not found`),l.collapsible){let e=i[c.id];jr(t,(l.collapsedSize===e?n.mutableState.expandedPanelSizes[c.id]??l.minSize:l.collapsedSize)-e)}break}case`F6`:{e.preventDefault();let n=kr(t).separators.map(e=>e.element),r=Array.from(n).findIndex(t=>t===e.currentTarget);Z(r!==null,`Index not found`),n[e.shiftKey?r>0?r-1:n.length-1:r+1<n.length?r+1:0].focus({preventScroll:!0});break}case`Home`:e.preventDefault(),jr(t,-100);break}}var Nr={cursorFlags:0,state:`inactive`},Pr=new $n;function Fr(){return Nr}function Ir(e){return Pr.addListener(`change`,e)}function Lr(e){let t=Nr,n={...Nr};n.cursorFlags=e,Nr=n,Pr.emit(`change`,{prev:t,next:n})}function Rr(e){let t=Nr;Nr=e,Pr.emit(`change`,{prev:t,next:e})}function zr(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=ar(),n=br(e,t),r=new Map,i=!1;n.forEach(e=>{e.separator&&(i||(i=!0,e.separator.element.focus({focusVisible:!1,preventScroll:!0})));let n=t.get(e.group);n&&r.set(e.group,n.layout)}),Rr({cursorFlags:0,hitRegions:n,initialLayoutMap:r,pointerDownAtPoint:{x:e.clientX,y:e.clientY},state:`active`}),n.length&&e.preventDefault()}var Br=e=>e,Vr=()=>{},Hr=1,Ur=2,Wr=4,Gr=8,Kr=3,qr=12,Jr;function Yr(){return Jr===void 0&&(Jr=!1,typeof window<`u`&&(window.navigator.userAgent.includes(`Chrome`)||window.navigator.userAgent.includes(`Firefox`))&&(Jr=!0)),Jr}function Xr({cursorFlags:e,groups:t,state:n}){let r=0,i=0;switch(n){case`active`:case`hover`:t.forEach(e=>{if(!e.mutableState.disableCursor)switch(e.orientation){case`horizontal`:r++;break;case`vertical`:i++;break}})}if(!(r===0&&i===0)){switch(n){case`active`:if(e&&Yr()){let t=(e&Hr)!==0,n=(e&Ur)!==0,r=(e&Wr)!==0,i=(e&Gr)!==0;if(t)return r?`se-resize`:i?`ne-resize`:`e-resize`;if(n)return r?`sw-resize`:i?`nw-resize`:`w-resize`;if(r)return`s-resize`;if(i)return`n-resize`}break}return Yr()?r>0&&i>0?`move`:r>0?`ew-resize`:`ns-resize`:r>0&&i>0?`grab`:r>0?`col-resize`:`row-resize`}}var Zr=new WeakMap;function Qr(e){if(e.defaultView===null||e.defaultView===void 0)return;let{prevStyle:t,styleSheet:n}=Zr.get(e)??{};n===void 0&&(n=new e.defaultView.CSSStyleSheet,e.adoptedStyleSheets&&(Object.isExtensible(e.adoptedStyleSheets)?e.adoptedStyleSheets.push(n):e.adoptedStyleSheets=[...e.adoptedStyleSheets,n]));let r=Fr();switch(r.state){case`active`:case`hover`:{let e=Xr({cursorFlags:r.cursorFlags,groups:r.hitRegions.map(e=>e.group),state:r.state}),i=`*, *:hover {cursor: ${e} !important; }`;if(t===i)return;t=i,e?n.cssRules.length===0?n.insertRule(i):n.replaceSync(i):n.cssRules.length===1&&n.deleteRule(0);break}case`inactive`:t=void 0,n.cssRules.length===1&&n.deleteRule(0);break}Zr.set(e,{prevStyle:t,styleSheet:n})}function $r({document:e,event:t,hitRegions:n,initialLayoutMap:r,mountedGroups:i,pointerDownAtPoint:a,prevCursorFlags:o}){let s=0;n.forEach(e=>{let{group:n,groupSize:o}=e,{orientation:c,panels:l}=n,{disableCursor:u}=n.mutableState,d=0;d=a?c===`horizontal`?(t.clientX-a.x)/o*100:(t.clientY-a.y)/o*100:c===`horizontal`?t.clientX<0?-100:100:t.clientY<0?-100:100;let f=r.get(n),p=i.get(n);if(!f||!p)return;let{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:_,separatorToPanels:v}=p;if(h&&_&&v){let t=wr({delta:d,initialLayout:f,panelConstraints:h,pivotIndices:e.panels.map(e=>l.indexOf(e)),prevLayout:_,trigger:`mouse-or-touch`});if(Tr(t,_)){if(d!==0&&!u)switch(c){case`horizontal`:s|=d<0?Hr:Ur;break;case`vertical`:s|=d<0?Wr:Gr;break}}else sr(e.group,{defaultLayoutDeferred:m,derivedPanelConstraints:h,groupSize:g,layout:t,separatorToPanels:v})}});let c=0;t.movementX===0?c|=o&Kr:c|=s&Kr,t.movementY===0?c|=o&qr:c|=s&qr,Lr(c),Qr(e)}function ei(e){let t=ar(),n=Fr();switch(n.state){case`active`:$r({document:e.currentTarget,event:e,hitRegions:n.hitRegions,initialLayoutMap:n.initialLayoutMap,mountedGroups:t,prevCursorFlags:n.cursorFlags})}}function ti(e){if(e.defaultPrevented)return;let t=Fr(),n=ar();switch(t.state){case`active`:if(e.buttons===0){Rr({cursorFlags:0,state:`inactive`}),t.hitRegions.forEach(e=>{let t=ir(e.group.id,!0);sr(e.group,t)});return}for(let n of t.hitRegions)if(n.separator){let{element:t}=n.separator;t.hasPointerCapture?.(e.pointerId)||t.setPointerCapture?.(e.pointerId)}$r({document:e.currentTarget,event:e,hitRegions:t.hitRegions,initialLayoutMap:t.initialLayoutMap,mountedGroups:n,pointerDownAtPoint:t.pointerDownAtPoint,prevCursorFlags:t.cursorFlags});break;default:{let r=br(e,n);r.length===0?t.state!==`inactive`&&Rr({cursorFlags:0,state:`inactive`}):Rr({cursorFlags:0,hitRegions:r,state:`hover`}),Qr(e.currentTarget);break}}}function ni(e){if(e.relatedTarget instanceof HTMLIFrameElement)switch(Fr().state){case`hover`:Rr({cursorFlags:0,state:`inactive`})}}function ri(e){if(e.defaultPrevented||e.pointerType===`mouse`&&e.button>0)return;let t=Fr();switch(t.state){case`active`:Rr({cursorFlags:0,state:`inactive`}),t.hitRegions.length>0&&(Qr(e.currentTarget),t.hitRegions.forEach(e=>{let t=ir(e.group.id,!0);sr(e.group,t)}),e.preventDefault())}}function ii(e){let t=0,n=0,r={};for(let i of e)if(i.defaultSize!==void 0){t++;let e=X(i.defaultSize);n+=e,r[i.panelId]=e}else r[i.panelId]=void 0;let i=e.length-t;if(i!==0){let t=X((100-n)/i);for(let n of e)n.defaultSize===void 0&&(r[n.panelId]=t)}return r}function ai(e,t,n){if(!n[0])return;let r=e.panels.find(e=>e.element===t);if(!r||!r.onResize)return;let i=Hn({group:e}),a=e.orientation===`horizontal`?r.element.offsetWidth:r.element.offsetHeight,o=r.mutableValues.prevSize,s={asPercentage:X(a/i*100),inPixels:a};r.mutableValues.prevSize=s,r.onResize(s,r.id,o)}function oi(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function si({group:e,nextGroupSize:t,prevGroupSize:n,prevLayout:r}){if(n<=0||t<=0||n===t)return r;let i=0,a=0,o=!1,s=new Map,c=[];for(let l of e.panels){let e=r[l.id]??0;switch(l.panelConstraints.groupResizeBehavior){case`preserve-pixel-size`:{o=!0;let r=X(e/100*n/t*100);s.set(l.id,r),i+=r;break}default:c.push(l.id),a+=e;break}}if(!o||c.length===0)return r;let l=100-i,u={...r};if(s.forEach((e,t)=>{u[t]=e}),a>0)for(let e of c)u[e]=X((r[e]??0)/a*l);else{let e=X(l/c.length);for(let t of c)u[t]=e}return u}function ci(e,t){let n=e.map(e=>e.id),r=Object.keys(t);if(n.length!==r.length)return!1;for(let e of n)if(!r.includes(e))return!1;return!0}var li=new Map;function ui(e){let t=!0;Z(e.element.ownerDocument.defaultView,`Cannot register an unmounted Group`);let n=e.element.ownerDocument.defaultView.ResizeObserver,r=new Set,i=new Set,a=new n(n=>{for(let r of n){let{borderBoxSize:n,target:i}=r;if(i===e.element){if(t){let t=Hn({group:e});if(t===0)return;let n=ir(e.id);if(!n)return;let r=Un(e),i=n.defaultLayoutDeferred?ii(r):n.layout,a=Er({layout:si({group:e,nextGroupSize:t,prevGroupSize:n.groupSize,prevLayout:i}),panelConstraints:r});if(!n.defaultLayoutDeferred&&Tr(n.layout,a)&&oi(n.derivedPanelConstraints,r)&&n.groupSize===t)return;sr(e,{defaultLayoutDeferred:!1,derivedPanelConstraints:r,groupSize:t,layout:a,separatorToPanels:n.separatorToPanels})}}else ai(e,i,n)}});a.observe(e.element),e.panels.forEach(e=>{Z(!r.has(e.id),`Panel ids must be unique; id "${e.id}" was used more than once`),r.add(e.id),e.onResize&&a.observe(e.element)});let o=Hn({group:e}),s=Un(e),c=e.panels.map(({id:e})=>e).join(`,`),l=e.mutableState.defaultLayout;l&&(ci(e.panels,l)||(l=void 0));let u=Er({layout:e.mutableState.layouts[c]??l??ii(s),panelConstraints:s}),d=e.element.ownerDocument;li.set(d,(li.get(d)??0)+1);let f=new Map;return Qn(e).forEach(e=>{e.separator&&f.set(e.separator,e.panels)}),sr(e,{defaultLayoutDeferred:o===0,derivedPanelConstraints:s,groupSize:o,layout:u,separatorToPanels:f}),e.separators.forEach(e=>{Z(!i.has(e.id),`Separator ids must be unique; id "${e.id}" was used more than once`),i.add(e.id),e.element.addEventListener(`keydown`,Mr)}),li.get(d)===1&&(d.addEventListener(`dblclick`,Or,!0),d.addEventListener(`pointerdown`,zr,!0),d.addEventListener(`pointerleave`,ei),d.addEventListener(`pointermove`,ti),d.addEventListener(`pointerout`,ni),d.addEventListener(`pointerup`,ri,!0)),function(){t=!1,li.set(d,Math.max(0,(li.get(d)??0)-1)),nr(e),e.separators.forEach(e=>{e.element.removeEventListener(`keydown`,Mr)}),li.get(d)||(d.removeEventListener(`dblclick`,Or,!0),d.removeEventListener(`pointerdown`,zr,!0),d.removeEventListener(`pointerleave`,ei),d.removeEventListener(`pointermove`,ti),d.removeEventListener(`pointerout`,ni),d.removeEventListener(`pointerup`,ri,!0)),a.disconnect()}}function di(){let[e,t]=(0,M.useState)({});return[e,(0,M.useCallback)(()=>t({}),[])]}function fi(e){let t=(0,M.useId)();return`${e??t}`}var pi=typeof window<`u`?M.useLayoutEffect:M.useEffect;function mi(e){let t=(0,M.useRef)(e);return pi(()=>{t.current=e},[e]),(0,M.useCallback)((...e)=>t.current?.(...e),[t])}function hi(...e){return mi(t=>{e.forEach(e=>{if(e)switch(typeof e){case`function`:e(t);break;case`object`:e.current=t;break}})})}function gi(e){let t=(0,M.useRef)({...e});return pi(()=>{for(let n in e)t.current[n]=e[n]},[e]),t.current}var _i=(0,M.createContext)(null);function vi(e,t){let n=(0,M.useRef)({getLayout:()=>({}),setLayout:Br});(0,M.useImperativeHandle)(t,()=>n.current,[]),pi(()=>{Object.assign(n.current,Ar({groupId:e}))})}function yi({children:e,className:t,defaultLayout:n,disableCursor:r,disabled:i,elementRef:a,groupRef:o,id:s,onLayoutChange:c,onLayoutChanged:l,orientation:u=`horizontal`,resizeTargetMinimumSize:d={coarse:20,fine:10},style:f,...p}){let m=(0,M.useRef)({onLayoutChange:{},onLayoutChanged:{}}),h=mi(e=>{Tr(m.current.onLayoutChange,e)||(m.current.onLayoutChange=e,c?.(e))}),g=mi(e=>{Tr(m.current.onLayoutChanged,e)||(m.current.onLayoutChanged=e,l?.(e))}),_=fi(s),v=(0,M.useRef)(null),[y,b]=di(),x=(0,M.useRef)({lastExpandedPanelSizes:{},layouts:{},panels:[],resizeTargetMinimumSize:d,separators:[]}),S=hi(v,a);vi(_,o);let C=mi((e,t)=>{let r=Fr(),i=rr(e),a=ir(e);if(a){let e=!1;switch(r.state){case`active`:e=r.hitRegions.some(e=>e.group===i);break}return{flexGrow:a.layout[t]??1,pointerEvents:e?`none`:void 0}}if(n?.[t])return{flexGrow:n?.[t]}}),w=gi({defaultLayout:n,disableCursor:r}),T=(0,M.useMemo)(()=>({get disableCursor(){return!!w.disableCursor},getPanelStyles:C,id:_,orientation:u,registerPanel:e=>{let t=x.current;return t.panels=Wn(u,[...t.panels,e]),b(),()=>{t.panels=t.panels.filter(t=>t!==e),b()}},registerSeparator:e=>{let t=x.current;return t.separators=Wn(u,[...t.separators,e]),b(),()=>{t.separators=t.separators.filter(t=>t!==e),b()}},updatePanelProps:(e,{disabled:t})=>{let n=x.current.panels.find(t=>t.id===e);n&&(n.panelConstraints.disabled=t);let r=rr(_),i=ir(_);r&&i&&sr(r,{...i,derivedPanelConstraints:Un(r)})},updateSeparatorProps:(e,{disabled:t,disableDoubleClick:n})=>{let r=x.current.separators.find(t=>t.id===e);r&&(r.disabled=t,r.disableDoubleClick=n)}}),[C,_,b,u,w]),E=(0,M.useRef)(null);return pi(()=>{let e=v.current;if(e===null)return;let t=x.current,n;if(w.defaultLayout!==void 0&&Object.keys(w.defaultLayout).length===t.panels.length){n={};for(let e of t.panels){let t=w.defaultLayout[e.id];t!==void 0&&(n[e.id]=t)}}let r={disabled:!!i,element:e,id:_,mutableState:{defaultLayout:n,disableCursor:!!w.disableCursor,expandedPanelSizes:x.current.lastExpandedPanelSizes,layouts:x.current.layouts},orientation:u,panels:t.panels,resizeTargetMinimumSize:t.resizeTargetMinimumSize,separators:t.separators};E.current=r;let a=ui(r),{defaultLayoutDeferred:o,derivedPanelConstraints:s,layout:c}=ir(r.id,!0);!o&&s.length>0&&(h(c),g(c));let l=or(_,e=>{let{defaultLayoutDeferred:t,derivedPanelConstraints:n,layout:i}=e.next;if(t||n.length===0)return;let a=r.panels.map(({id:e})=>e).join(`,`);r.mutableState.layouts[a]=i,n.forEach(t=>{if(t.collapsible){let{layout:n}=e.prev??{};if(n){let e=Q(t.collapsedSize,i[t.panelId]),a=Q(t.collapsedSize,n[t.panelId]);e&&!a&&(r.mutableState.expandedPanelSizes[t.panelId]=n[t.panelId])}}});let o=Fr().state!==`active`;h(i),o&&g(i)});return()=>{E.current=null,a(),l()}},[i,_,g,h,u,y,w]),(0,M.useEffect)(()=>{let e=E.current;e&&(e.mutableState.defaultLayout=n,e.mutableState.disableCursor=!!r)}),(0,G.jsx)(_i.Provider,{value:T,children:(0,G.jsx)(`div`,{...p,className:t,"data-group":!0,"data-testid":_,id:_,ref:S,style:{height:`100%`,width:`100%`,overflow:`hidden`,...f,display:`flex`,flexDirection:u===`horizontal`?`row`:`column`,flexWrap:`nowrap`,touchAction:u===`horizontal`?`pan-y`:`pan-x`},children:e})})}yi.displayName=`Group`;function bi(){let e=(0,M.useContext)(_i);return Z(e,`Group Context not found; did you render a Panel or Separator outside of a Group?`),e}function xi(e,t){let{id:n}=bi(),r=(0,M.useRef)({collapse:Vr,expand:Vr,getSize:()=>({asPercentage:0,inPixels:0}),isCollapsed:()=>!1,resize:Vr});(0,M.useImperativeHandle)(t,()=>r.current,[]),pi(()=>{Object.assign(r.current,Dr({groupId:n,panelId:e}))})}function Si({children:e,className:t,collapsedSize:n=`0%`,collapsible:r=!1,defaultSize:i,disabled:a,elementRef:o,groupResizeBehavior:s=`preserve-relative-size`,id:c,maxSize:l=`100%`,minSize:u=`0%`,onResize:d,panelRef:f,style:p,...m}){let h=!!c,g=fi(c),_=gi({disabled:a}),v=(0,M.useRef)(null),y=hi(v,o),{getPanelStyles:b,id:x,orientation:S,registerPanel:C,updatePanelProps:w}=bi(),T=d!==null,E=mi((e,t,n)=>{d?.(e,c,n)});pi(()=>{let e=v.current;if(e!==null)return C({element:e,id:g,idIsStable:h,mutableValues:{expandToSize:void 0,prevSize:void 0},onResize:T?E:void 0,panelConstraints:{groupResizeBehavior:s,collapsedSize:n,collapsible:r,defaultSize:i,disabled:_.disabled,maxSize:l,minSize:u}})},[s,n,r,i,T,g,h,l,u,E,C,_]),(0,M.useEffect)(()=>{w(g,{disabled:a})},[a,g,w]),xi(g,f);let ee=()=>{let e=b(x,g);if(e)return JSON.stringify(e)},te=(0,M.useSyncExternalStore)(e=>or(x,e),ee,ee),D;return D=te?JSON.parse(te):i===void 0?{flexGrow:1}:{flexGrow:void 0,flexShrink:void 0,flexBasis:i},(0,G.jsx)(`div`,{...m,"data-disabled":a||void 0,"data-panel":!0,"data-testid":g,id:g,ref:y,style:{...Ci,display:`flex`,flexBasis:0,flexShrink:1,overflow:`visible`,...D},children:(0,G.jsx)(`div`,{className:t,style:{maxHeight:`100%`,maxWidth:`100%`,flexGrow:1,overflow:`auto`,...p,touchAction:S===`horizontal`?`pan-y`:`pan-x`},children:e})})}Si.displayName=`Panel`;var Ci={minHeight:0,maxHeight:`100%`,height:`auto`,minWidth:0,maxWidth:`100%`,width:`auto`,border:`none`,borderWidth:0,padding:0,margin:0};function wi({layout:e,panelConstraints:t,panelId:n,panelIndex:r}){let i,a,o=e[n],s=t.find(e=>e.panelId===n);if(s){let c=s.maxSize,l=s.collapsible?s.collapsedSize:s.minSize,u=[r,r+1];a=Er({layout:wr({delta:l-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n],i=Er({layout:wr({delta:c-o,initialLayout:e,panelConstraints:t,pivotIndices:u,prevLayout:e}),panelConstraints:t})[n]}return{valueControls:n,valueMax:i,valueMin:a,valueNow:o}}function Ti({children:e,className:t,disabled:n,disableDoubleClick:r,elementRef:i,id:a,style:o,...s}){let c=fi(a),l=gi({disabled:n,disableDoubleClick:r}),[u,d]=(0,M.useState)({}),[f,p]=(0,M.useState)(`inactive`),[m,h]=(0,M.useState)(!1),g=(0,M.useRef)(null),_=hi(g,i),{disableCursor:v,id:y,orientation:b,registerSeparator:x,updateSeparatorProps:S}=bi(),C=b===`horizontal`?`vertical`:`horizontal`;pi(()=>{let e=g.current;if(e!==null){let t={disabled:l.disabled,disableDoubleClick:l.disableDoubleClick,element:e,id:c},n=x(t),r=Ir(e=>{p(e.next.state!==`inactive`&&e.next.hitRegions.some(e=>e.separator===t)?e.next.state:`inactive`)}),i=or(y,e=>{let{derivedPanelConstraints:n,layout:r,separatorToPanels:i}=e.next,a=i.get(t);if(a){let e=a[0],t=a.indexOf(e);d(wi({layout:r,panelConstraints:n,panelId:e.id,panelIndex:t}))}});return()=>{r(),i(),n()}}},[y,c,x,l]),(0,M.useEffect)(()=>{S(c,{disabled:n,disableDoubleClick:r})},[n,r,c,S]);let w;n&&!v&&(w=`not-allowed`);let T;if(n)T=`disabled`;else switch(f){case`active`:T=`active`;break;default:T=m?`focus`:f}return(0,G.jsx)(`div`,{...s,"aria-controls":u.valueControls,"aria-disabled":n||void 0,"aria-orientation":C,"aria-valuemax":u.valueMax,"aria-valuemin":u.valueMin,"aria-valuenow":u.valueNow,children:e,className:t,"data-separator":T,"data-testid":c,id:c,onBlur:()=>h(!1),onFocus:()=>h(!0),ref:_,role:`separator`,style:{flexBasis:`auto`,cursor:w,...o,flexGrow:0,flexShrink:0,touchAction:`none`},tabIndex:n?void 0:0})}Ti.displayName=`Separator`;function Ei(e){let t=(0,se.c)(8),n,r;t[0]===e?(n=t[1],r=t[2]):({className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r);let i;t[3]===n?i=t[4]:(i=d(`flex h-full w-full aria-[orientation=vertical]:flex-col`,n),t[3]=n,t[4]=i);let a;return t[5]!==r||t[6]!==i?(a=(0,G.jsx)(yi,{"data-slot":`resizable-panel-group`,className:i,...r}),t[5]=r,t[6]=i,t[7]=a):a=t[7],a}function Di(e){let t=(0,se.c)(4),n;t[0]===e?n=t[1]:({...n}=e,t[0]=e,t[1]=n);let r;return t[2]===n?r=t[3]:(r=(0,G.jsx)(Si,{"data-slot":`resizable-panel`,...n}),t[2]=n,t[3]=r),r}function Oi(e){let t=(0,se.c)(12),n,r,i;t[0]===e?(n=t[1],r=t[2],i=t[3]):({withHandle:i,className:n,...r}=e,t[0]=e,t[1]=n,t[2]=r,t[3]=i);let a;t[4]===n?a=t[5]:(a=d(`bg-border ring-offset-background focus-visible:ring-ring relative flex w-px items-center justify-center after:absolute after:inset-y-0 after:left-1/2 after:w-1 after:-translate-x-1/2 focus-visible:ring-1 focus-visible:outline-hidden aria-[orientation=horizontal]:h-px aria-[orientation=horizontal]:w-full aria-[orientation=horizontal]:after:left-0 aria-[orientation=horizontal]:after:h-1 aria-[orientation=horizontal]:after:w-full aria-[orientation=horizontal]:after:translate-x-0 aria-[orientation=horizontal]:after:-translate-y-1/2 [&[aria-orientation=horizontal]>div]:rotate-90`,n),t[4]=n,t[5]=a);let o;t[6]===i?o=t[7]:(o=i&&(0,G.jsx)(`div`,{className:`bg-border z-10 flex h-6 w-1 shrink-0 rounded-none`}),t[6]=i,t[7]=o);let s;return t[8]!==r||t[9]!==a||t[10]!==o?(s=(0,G.jsx)(Ti,{"data-slot":`resizable-handle`,className:a,...r,children:o}),t[8]=r,t[9]=a,t[10]=o,t[11]=s):s=t[11],s}var ki={clipPath:`inset(50%)`,overflow:`hidden`,whiteSpace:`nowrap`,border:0,padding:0,width:1,height:1,margin:-1},Ai={...ki,position:`fixed`,top:0,left:0},ji={...ki,position:`absolute`};function Mi(e){let t=M.useRef(!0);t.current&&(t.current=!1,e())}function Ni(e){let t=E(Pi,e).current;return t.next=e,h(t.effect),t}function Pi(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Fi=(e,t,n,r,i,a,...o)=>{if(o.length>0)throw Error(x(1));let s;if(e&&t&&n&&r&&i&&a)s=(o,s,c,l)=>a(e(o,s,c,l),t(o,s,c,l),n(o,s,c,l),r(o,s,c,l),i(o,s,c,l),s,c,l);else if(e&&t&&n&&r&&i)s=(a,o,s,c)=>i(e(a,o,s,c),t(a,o,s,c),n(a,o,s,c),r(a,o,s,c),o,s,c);else if(e&&t&&n&&r)s=(i,a,o,s)=>r(e(i,a,o,s),t(i,a,o,s),n(i,a,o,s),a,o,s);else if(e&&t&&n)s=(r,i,a,o)=>n(e(r,i,a,o),t(r,i,a,o),i,a,o);else if(e&&t)s=(n,r,i,a)=>t(e(n,r,i,a),r,i,a);else if(e)s=e;else throw Error(`Missing arguments`);return s},Ii=[],Li=void 0;function Ri(){return Li}function zi(e){Ii.push(e)}var Bi=w(19)?Ui:Wi;function Vi(e,t,n,r,i){return Bi(e,t,n,r,i)}function Hi(e,t,n,r,i){let a=M.useCallback(()=>t(e.getSnapshot(),n,r,i),[e,t,n,r,i]);return(0,W.useSyncExternalStore)(e.subscribe,a,a)}zi({before(e){e.syncIndex=0,e.didInitialize||(e.syncTick=1,e.syncHooks=[],e.didChangeStore=!0,e.getSnapshot=()=>{let t=!1;for(let n=0;n<e.syncHooks.length;n+=1){let r=e.syncHooks[n],i=r.selector(r.store.state,r.a1,r.a2,r.a3);(r.didChange||!Object.is(r.value,i))&&(t=!0,r.value=i,r.didChange=!1)}return t&&(e.syncTick+=1),e.syncTick})},after(e){e.syncHooks.length>0&&(e.didChangeStore&&(e.didChangeStore=!1,e.subscribe=t=>{let n=new Set;for(let t of e.syncHooks)n.add(t.store);let r=[];for(let e of n)r.push(e.subscribe(t));return()=>{for(let e of r)e()}}),(0,W.useSyncExternalStore)(e.subscribe,e.getSnapshot,e.getSnapshot))}});function Ui(e,t,n,r,i){let a=Ri();if(!a)return Hi(e,t,n,r,i);let o=a.syncIndex;a.syncIndex+=1;let s;return a.didInitialize?(s=a.syncHooks[o],(s.store!==e||s.selector!==t||!Object.is(s.a1,n)||!Object.is(s.a2,r)||!Object.is(s.a3,i))&&(s.store!==e&&(a.didChangeStore=!0),s.store=e,s.selector=t,s.a1=n,s.a2=r,s.a3=i,s.didChange=!0)):(s={store:e,selector:t,a1:n,a2:r,a3:i,value:t(e.getSnapshot(),n,r,i),didChange:!1},a.syncHooks.push(s)),s.value}function Wi(e,t,n,r,i){return(0,oe.useSyncExternalStoreWithSelector)(e.subscribe,e.getSnapshot,e.getSnapshot,e=>t(e,n,r,i))}var Gi=class{constructor(e){this.state=e,this.listeners=new Set,this.updateTick=0}subscribe=e=>(this.listeners.add(e),()=>{this.listeners.delete(e)});getSnapshot=()=>this.state;setState(e){if(this.state===e)return;this.state=e,this.updateTick+=1;let t=this.updateTick;for(let n of this.listeners){if(t!==this.updateTick)return;n(e)}}update(e){for(let t in e)if(!Object.is(this.state[t],e[t])){this.setState({...this.state,...e});return}}set(e,t){Object.is(this.state[e],t)||this.setState({...this.state,[e]:t})}notifyAll(){let e={...this.state};this.setState(e)}use(e,t,n,r){return Vi(this,e,t,n,r)}},Ki=class extends Gi{constructor(e,t={},n){super(e),this.context=t,this.selectors=n}useSyncedValue(e,t){M.useDebugValue(e);let n=this;h(()=>{n.state[e]!==t&&n.set(e,t)},[n,e,t])}useSyncedValueWithCleanup(e,t){let n=this;h(()=>(n.state[e]!==t&&n.set(e,t),()=>{n.set(e,void 0)}),[n,e,t])}useSyncedValues(e){let t=this;h(()=>{t.update(e)},[t,...Object.values(e)])}useControlledProp(e,t){M.useDebugValue(e);let n=this,r=t!==void 0;h(()=>{r&&!Object.is(n.state[e],t)&&n.setState({...n.state,[e]:t})},[n,e,t,r])}select(e,t,n,r){let i=this.selectors[e];return i(this.state,t,n,r)}useState(e,t,n,r){return M.useDebugValue(e),Vi(this,this.selectors[e],t,n,r)}useContextCallback(e,t){M.useDebugValue(e);let n=_(t??m);this.context[e]=n}useStateSetter(e){let t=M.useRef(void 0);return t.current===void 0&&(t.current=t=>{this.set(e,t)}),t.current}observe(e,t){let n;n=typeof e==`function`?e:this.selectors[e];let r=n(this.state);return t(r,r,this),this.subscribe(e=>{let i=n(e);if(!Object.is(r,i)){let e=r;r=i,t(i,e,this)}})}};function $(e,t,n,r){return e.addEventListener(t,n,r),()=>{e.removeEventListener(t,n,r)}}function qi(...e){return()=>{for(let t=0;t<e.length;t+=1){let n=e[t];n&&n()}}}var Ji=M.forwardRef(function(e,t){let[n,r]=M.useState();h(()=>{ye&&r(`button`)},[]);let i={tabIndex:0,role:n};return(0,G.jsx)(`span`,{...e,ref:t,style:Ai,"aria-hidden":n?void 0:!0,...i,"data-base-ui-focus-guard":``})});function Yi(e){return`data-base-ui-${e}`}var Xi=0;function Zi(e,t={}){let{preventScroll:n=!1,sync:r=!1,shouldFocus:i}=t;cancelAnimationFrame(Xi);function a(){i&&!i()||e?.focus({preventScroll:n})}if(r)return a(),m;let o=requestAnimationFrame(a);return Xi=o,()=>{Xi===o&&(cancelAnimationFrame(o),Xi=0)}}var Qi={inert:new WeakMap,"aria-hidden":new WeakMap},$i=`data-base-ui-inert`,ea={inert:new WeakSet,"aria-hidden":new WeakSet},ta=new WeakMap,na=0;function ra(e){return ea[e]}function ia(e){return e?i(e)?e.host:ia(e.parentNode):null}var aa=(e,t)=>t.map(t=>{if(e.contains(t))return t;let n=ia(t);return e.contains(n)?n:null}).filter(e=>e!=null),oa=e=>{let t=new Set;return e.forEach(e=>{let n=e;for(;n&&!t.has(n);)t.add(n),n=n.parentNode}),t},sa=(e,t,n)=>{let r=[],i=e=>{!e||n.has(e)||Array.from(e.children).forEach(e=>{k(e)!==`script`&&(t.has(e)?i(e):r.push(e))})};return i(e),r};function ca(e,t,n,r,{mark:i=!0,markerIgnoreElements:a=[]}){let o=r?`inert`:n?`aria-hidden`:null,s=null,c=null,l=aa(t,e),u=i?aa(t,a):[],d=new Set(u),f=i?sa(t,oa(l),new Set(l)).filter(e=>!d.has(e)):[],p=[],m=[];if(o){let e=Qi[o],n=ra(o);c=n,s=e;let r=aa(t,Array.from(t.querySelectorAll(`[aria-live]`))),i=l.concat(r);sa(t,oa(i),new Set(i)).forEach(t=>{let r=t.getAttribute(o),i=r!==null&&r!==`false`,a=(e.get(t)||0)+1;e.set(t,a),p.push(t),a===1&&i&&n.add(t),i||t.setAttribute(o,o===`inert`?``:`true`)})}return i&&f.forEach(e=>{let t=(ta.get(e)||0)+1;ta.set(e,t),m.push(e),t===1&&e.setAttribute($i,``)}),na+=1,()=>{s&&p.forEach(e=>{let t=(s.get(e)||0)-1;s.set(e,t),t||(!c?.has(e)&&o&&e.removeAttribute(o),c?.delete(e))}),i&&m.forEach(e=>{let t=(ta.get(e)||0)-1;ta.set(e,t),t||e.removeAttribute($i)}),--na,na||(Qi.inert=new WeakMap,Qi[`aria-hidden`]=new WeakMap,ea.inert=new WeakSet,ea[`aria-hidden`]=new WeakSet,ta=new WeakMap)}}function la(e,t={}){let{ariaHidden:n=!1,inert:r=!1,mark:i=!0,markerIgnoreElements:a=[]}=t,o=K(e[0]).body;return ca(e,o,n,r,{mark:i,markerIgnoreElements:a})}var ua={style:{transition:`none`}},da={fallbackAxisSide:`none`},fa={clipPath:`inset(50%)`,position:`fixed`,top:0,left:0},pa=M.createContext(null),ma=()=>M.useContext(pa),ha=Yi(`portal`);function ga(e={}){let{ref:t,container:n,componentProps:r=y,elementProps:i}=e,a=H(),o=ma()?.portalNode,[s,c]=M.useState(null),[l,d]=M.useState(null),f=_(e=>{e!==null&&d(e)}),p=M.useRef(null);h(()=>{if(n===null){p.current&&(p.current=null,d(null),c(null));return}if(a==null)return;let e=(n&&(u(n)?n:n.current))??o??document.body;if(e==null){p.current&&(p.current=null,d(null),c(null));return}p.current!==e&&(p.current=e,d(null),c(e))},[n,o,a]);let m=C(`div`,r,{ref:[t,f],props:[{id:a,[ha]:``},i]});return{portalNode:l,portalSubtree:s&&m?tn.createPortal(m,s):null}}var _a=M.forwardRef(function(e,t){let{render:n,className:r,style:i,children:a,container:o,renderGuards:s,...c}=e,{portalNode:l,portalSubtree:u}=ga({container:o,ref:t,componentProps:e,elementProps:c}),d=M.useRef(null),f=M.useRef(null),p=M.useRef(null),m=M.useRef(null),[h,g]=M.useState(null),_=M.useRef(!1),v=h?.modal,y=h?.open,b=typeof s==`boolean`?s:!!h&&!h.modal&&h.open&&!!l;M.useEffect(()=>{if(!l||v)return;function e(e){l&&e.relatedTarget&&Jt(e)&&(e.type===`focusin`?_.current&&=(Xt(l),!1):(Yt(l),_.current=!0))}return qi($(l,`focusin`,e,!0),$(l,`focusout`,e,!0))},[l,v]),M.useEffect(()=>{!l||y!==!1||(Xt(l),_.current=!1)},[y,l]);let x=M.useMemo(()=>({beforeOutsideRef:d,afterOutsideRef:f,beforeInsideRef:p,afterInsideRef:m,portalNode:l,setFocusManagerState:g}),[l]);return(0,G.jsxs)(M.Fragment,{children:[u,(0,G.jsxs)(pa.Provider,{value:x,children:[b&&l&&(0,G.jsx)(Ji,{"data-type":`outside`,ref:d,onFocus:e=>{Jt(e,l)?p.current?.focus():qt(h?h.domReference:null)?.focus()}}),b&&l&&(0,G.jsx)(`span`,{"aria-owns":l.id,style:fa}),l&&tn.createPortal(a,l),b&&l&&(0,G.jsx)(Ji,{"data-type":`outside`,ref:f,onFocus:e=>{Jt(e,l)?m.current?.focus():(Kt(h?h.domReference:null)?.focus(),h?.closeOnFocusOut&&h?.onOpenChange(!1,Tn(`focus-out`,e.nativeEvent)))}})]})]})});function va(){let e=new Map;return{emit(t,n){e.get(t)?.forEach(e=>e(n))},on(t,n){e.has(t)||e.set(t,new Set),e.get(t).add(n)},off(t,n){e.get(t)?.delete(n)}}}var ya=M.createContext(null),ba=M.createContext(null),xa=()=>M.useContext(ya)?.id||null,Sa=e=>{let t=M.useContext(ba);return e??t};function Ca(e,t){let n=a(Ae(e));return e instanceof n.KeyboardEvent?`keyboard`:e instanceof n.FocusEvent?t||`keyboard`:`pointerType`in e?e.pointerType||`keyboard`:`touches`in e?`touch`:e instanceof n.MouseEvent?t||(e.detail===0?`keyboard`:`mouse`):``}var wa=20,Ta=[];function Ea(){Ta=Ta.filter(e=>e.deref()?.isConnected)}function Da(e){Ea(),e&&k(e)!==`body`&&(Ta.push(new WeakRef(e)),Ta.length>wa&&(Ta=Ta.slice(-20)))}function Oa(){return Ea(),Ta[Ta.length-1]?.deref()}function ka(e){return e?Ht(e)?e:Wt(e)[0]||e:null}function Aa(e,t){if(e.hasAttribute(`tabindex`)&&!e.hasAttribute(`data-tabindex`)||!t.current.includes(`floating`)&&!e.getAttribute(`role`)?.includes(`dialog`))return;let n=Ut(e).filter(e=>{let t=e.getAttribute(`data-tabindex`)||``;return Ht(e)||e.hasAttribute(`data-tabindex`)&&!t.startsWith(`-`)}),r=e.getAttribute(`tabindex`);t.current.includes(`floating`)||n.length===0?r!==`0`&&e.setAttribute(`tabindex`,`0`):(r!==`-1`||e.hasAttribute(`data-tabindex`)&&e.getAttribute(`data-tabindex`)!==`-1`)&&(e.setAttribute(`tabindex`,`-1`),e.setAttribute(`data-tabindex`,`-1`))}function ja(e){let{context:t,children:n,disabled:r=!1,initialFocus:i=!0,returnFocus:a=!0,restoreFocus:o=!1,modal:c=!0,closeOnFocusOut:l=!0,openInteractionType:u=``,nextFocusableElement:d,previousFocusableElement:f,beforeContentFocusGuardRef:p,externalTree:m,getInsideElements:g}=e,v=`rootStore`in t?t.rootStore:t,y=v.useState(`open`),b=v.useState(`domReferenceElement`),x=v.useState(`floatingElement`),{events:S,dataRef:C}=v.context,w=_(()=>C.current.floatingContext?.nodeId),T=i===!1,E=Pe(b)&&T,te=M.useRef([`content`]),D=Ni(i),O=Ni(a),k=Ni(u),A=Sa(m),j=ma(),N=M.useRef(!1),P=M.useRef(!1),F=M.useRef(!1),I=M.useRef(null),ne=M.useRef(``),L=M.useRef(``),R=M.useRef(null),z=M.useRef(null),B=ee(R,p,j?.beforeInsideRef),re=ee(z,j?.afterInsideRef),V=fe(),H=fe(),ie=en(),ae=j!=null,U=Fe(x),W=_((e=U)=>e?Wt(e):[]),oe=_(()=>g?.().filter(e=>e!=null)??[]);M.useEffect(()=>{if(r||!c)return;function e(e){e.key===`Tab`&&J(U,q(K(U)))&&W().length===0&&!E&&Re(e)}return $(K(U),`keydown`,e)},[r,U,c,E,W]),M.useEffect(()=>{if(r||!y)return;let e=K(U);function t(){F.current=!1}function n(e){let t=Ae(e),n=oe();F.current=!(J(x,t)||J(b,t)||J(j?.portalNode,t)||n.some(e=>e===t||J(e,t))),L.current=e.pointerType||`keyboard`,t?.closest(`[data-base-ui-click-trigger]`)&&(P.current=!0)}function i(){L.current=`keyboard`}return qi($(e,`pointerdown`,n,!0),$(e,`pointerup`,t,!0),$(e,`pointercancel`,t,!0),$(e,`keydown`,i,!0))},[r,x,b,U,y,j,oe]),M.useEffect(()=>{if(r||!l)return;let e=K(U);function t(){P.current=!0,H.start(0,()=>{P.current=!1})}function n(e){let t=Ae(e);Ht(t)&&(I.current=t)}function i(t){let n=t.relatedTarget,r=t.currentTarget,i=Ae(t);queueMicrotask(()=>{let a=w(),l=v.context.triggerElements,u=oe(),p=n?.hasAttribute(Yi(`focus-guard`))&&[R.current,z.current,j?.beforeInsideRef.current,j?.afterInsideRef.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,nn(f),nn(d)].includes(n),m=!(J(b,n)||J(x,n)||J(n,x)||J(j?.portalNode,n)||u.some(e=>e===n||J(e,n))||n!=null&&l.hasElement(n)||l.hasMatchingElement(e=>J(e,n))||p||A&&(Ie(A.nodesRef.current,a).find(e=>J(e.context?.elements.floating,n)||J(e.context?.elements.domReference,n))||Le(A.nodesRef.current,a).find(e=>[e.context?.elements.floating,Fe(e.context?.elements.floating)].includes(n)||e.context?.elements.domReference===n)));if(r===b&&U&&Aa(U,te),o&&r!==b&&!Ot(i)&&q(e)===e.body){if(s(U)&&(U.focus(),o===`popup`)){ie.request(()=>{U.focus()});return}let e=W(),t=I.current,n=(t&&e.includes(t)?t:null)||e[e.length-1]||U;s(n)&&n.focus()}if(C.current.insideReactTree){C.current.insideReactTree=!1;return}(E||!c)&&n&&m&&!P.current&&(E||n!==Oa())&&(N.current=!0,v.setOpen(!1,Tn(yn,t)))})}function a(){F.current||(C.current.insideReactTree=!0,V.start(0,()=>{C.current.insideReactTree=!1}))}let u=s(b)?b:null;if(!(!x&&!u))return qi(u&&$(u,`focusout`,i),u&&$(u,`pointerdown`,t),x&&$(x,`focusin`,n),x&&$(x,`focusout`,i),x&&j&&$(x,`focusout`,a,!0))},[r,b,x,U,c,A,j,v,l,o,W,E,w,te,C,V,H,ie,d,f,oe]),M.useEffect(()=>{if(r||!x||!y)return;let e=Array.from(j?.portalNode?.querySelectorAll(`[${Yi(`portal`)}]`)||[]),t=(A?Le(A.nodesRef.current,w()):[]).find(e=>Pe(e.context?.elements.domReference||null))?.context?.elements.domReference,n=la([x,...e,R.current,z.current,j?.beforeOutsideRef.current,j?.afterOutsideRef.current,...oe(),t,nn(f),nn(d),E?b:null].filter(e=>e!=null),{ariaHidden:c||E,mark:!1}),i=la([x,...e].filter(e=>e!=null));return()=>{i(),n()}},[y,r,b,x,c,j,E,A,w,d,f,oe]),h(()=>{if(!y||r||!s(U))return;let e=K(U),t=q(e);queueMicrotask(()=>{let n=D.current,r=typeof n==`function`?n(k.current||``):n;if(r===void 0||r===!1||J(U,t))return;let i=null,a=()=>(i??=W(U),i[0]||U),o;o=r===!0||r===null?a():nn(r),o||=a();let s=J(U,q(e));Zi(o,{preventScroll:o===U,shouldFocus(){if(s)return!0;let t=q(e);return!(t!==o&&J(U,t))}})})},[r,y,U,W,D,k]),h(()=>{if(r||!U)return;let e=K(U);Da(q(e));function t(e){if(e.open||(ne.current=Ca(e.nativeEvent,L.current)),e.reason===`trigger-hover`&&e.nativeEvent.type===`mouseleave`&&(N.current=!0),e.reason===`outside-press`)if(e.nested)N.current=!1;else if(Be(e.nativeEvent)||Ve(e.nativeEvent))N.current=!1;else{let e=!1;K(U).createElement(`div`).focus({get preventScroll(){return e=!0,!1}}),e?N.current=!1:N.current=!0}}S.on(`openchange`,t);function n(){let e=O.current,t=typeof e==`function`?e(ne.current):e;if(t===void 0||t===!1)return null;if(t===null&&(t=!0),typeof t==`boolean`)return b?.isConnected?b:Oa()||null;let n=b?.isConnected?b:Oa();return nn(t)||n||null}return()=>{S.off(`openchange`,t);let r=q(e),i=oe(),a=J(x,r)||i.some(e=>e===r||J(e,r))||A&&Ie(A.nodesRef.current,w(),!1).some(e=>J(e.context?.elements.floating,r)),o=O.current,c=n();queueMicrotask(()=>{let t=ka(c),n=typeof o!=`boolean`;o&&!N.current&&s(t)&&(!(!n&&t!==r&&r!==e.body)||a)&&t.focus({preventScroll:!0}),N.current=!1})}},[r,x,U,O,S,A,b,w,oe]),h(()=>{if(!_e||y||!x)return;let e=q(K(x));!s(e)||!Ne(e)||J(x,e)&&e.blur()},[y,x]),h(()=>{if(!(r||!j))return j.setFocusManagerState({modal:c,closeOnFocusOut:l,open:y,onOpenChange:v.setOpen,domReference:b}),()=>{j.setFocusManagerState(null)}},[r,j,c,y,v,l,b]),h(()=>{if(!(r||!U))return Aa(U,te),()=>{queueMicrotask(Ea)}},[r,U,te]);let se=!r&&(c?!E:!0)&&(ae||c);return(0,G.jsxs)(M.Fragment,{children:[se&&(0,G.jsx)(Ji,{"data-type":`inside`,ref:B,onFocus:e=>{if(c){let e=W();Zi(e[e.length-1])}else j?.portalNode&&(N.current=!1,Jt(e,j.portalNode)?Kt(b)?.focus():nn(f??j.beforeOutsideRef)?.focus())}}),n,se&&(0,G.jsx)(Ji,{"data-type":`inside`,ref:re,onFocus:e=>{c?Zi(W()[0]):j?.portalNode&&(l&&(N.current=!0),Jt(e,j.portalNode)?qt(b)?.focus():nn(d??j.afterOutsideRef)?.focus())}})]})}var Ma={intentional:`onClick`,sloppy:`onPointerDown`};function Na(){return!1}function Pa(e){return{escapeKey:typeof e==`boolean`?e:e?.escapeKey??!1,outsidePress:typeof e==`boolean`?e:e?.outsidePress??!0}}function Fa(e,t={}){let{enabled:n=!0,escapeKey:r=!0,outsidePress:a=!0,outsidePressEvent:c=`sloppy`,referencePress:u=Na,referencePressEvent:d=`sloppy`,bubbles:m,externalTree:h}=t,g=`rootStore`in e?e.rootStore:e,y=g.useState(`open`),b=g.useState(`floatingElement`),{dataRef:x}=g.context,S=Sa(h),C=_(typeof a==`function`?a:()=>!1),w=typeof a==`function`?C:a,T=w!==!1,E=_(()=>c),{escapeKey:ee,outsidePress:te}=Pa(m),D=M.useRef(!1),O=M.useRef(!1),k=M.useRef(!1),A=M.useRef(!1),j=M.useRef(``),N=M.useRef(null),P=fe(),F=fe(),I=_(()=>{F.clear(),x.current.insideReactTree=!1}),ne=_(e=>{let t=x.current.floatingContext?.nodeId;return(S?Ie(S.nodesRef.current,t):[]).some(t=>t.context?.open&&!t.context.dataRef.current[e])}),L=_(e=>je(e,g.select(`floatingElement`))||je(e,g.select(`domReferenceElement`))),R=_(e=>{u()&&g.setOpen(!1,Tn(hn,e.nativeEvent))}),z=_(e=>{if(!y||!n||!r||e.key!==`Escape`||A.current||!ee&&ne(`__escapeKeyBubbles`))return;let t=Tn(bn,ze(e)?e.nativeEvent:e);g.setOpen(!1,t),t.isCanceled||e.preventDefault(),!ee&&!t.isPropagationAllowed&&e.stopPropagation()}),B=_(()=>{x.current.insideReactTree=!0,F.start(0,I)}),re=_(e=>{if(!y||!n||e.button!==0)return;let t=Ae(e.nativeEvent);J(g.select(`floatingElement`),t)&&(D.current||(D.current=!0,O.current=!1))}),V=_(e=>{!y||!n||(e.defaultPrevented||e.nativeEvent.defaultPrevented)&&D.current&&(O.current=!0)});M.useEffect(()=>{if(!y||!n)return;x.current.__escapeKeyBubbles=ee,x.current.__outsidePressBubbles=te;let e=new de,t=new de;function a(){e.clear(),A.current=!0}function c(){e.start(l()?5:0,()=>{A.current=!1})}function u(){k.current=!0,t.start(0,()=>{k.current=!1})}function d(){D.current=!1,O.current=!1}function m(){let e=j.current,t=e===`pen`||!e?`mouse`:e,n=E(),r=typeof n==`function`?n():n;return typeof r==`string`?r:r[t]}function h(e){let t=m();return t===`intentional`&&e.type!==`click`||t===`sloppy`&&e.type===`click`}function _(e){let t=x.current.floatingContext?.nodeId,n=S&&Ie(S.nodesRef.current,t).some(t=>je(e,t.context?.elements.floating));return L(e)||n}function C(e){if(h(e)){e.type!==`click`&&!L(e)&&(t.clear(),k.current=!1),I();return}if(x.current.insideReactTree){I();return}let n=Ae(e),r=`[${Yi(`inert`)}]`,a=p(n)?n.getRootNode():null,c=Array.from((i(a)?a:K(g.select(`floatingElement`))).querySelectorAll(r)),l=g.context.triggerElements;if(n&&(l.hasElement(n)||l.hasMatchingElement(e=>J(e,n))))return;let u=p(n)?n:null;for(;u&&!o(u);){let e=f(u);if(o(e)||!p(e))break;u=e}if(!(c.length&&p(n)&&!Me(n)&&!J(n,g.select(`floatingElement`))&&c.every(e=>!J(u,e)))){if(s(n)&&!(`touches`in e)){let t=o(n),r=v(n),i=/auto|scroll/,a=t||i.test(r.overflowX),s=t||i.test(r.overflowY),c=a&&n.clientWidth>0&&n.scrollWidth>n.clientWidth,l=s&&n.clientHeight>0&&n.scrollHeight>n.clientHeight,u=r.direction===`rtl`,d=l&&(u?e.offsetX<=n.offsetWidth-n.clientWidth:e.offsetX>n.clientWidth),f=c&&e.offsetY>n.clientHeight;if(d||f)return}if(!_(e)){if(m()===`intentional`&&k.current){t.clear(),k.current=!1;return}typeof w==`function`&&!w(e)||ne(`__outsidePressBubbles`)||(g.setOpen(!1,Tn(gn,e)),I())}}}function M(e){m()!==`sloppy`||e.pointerType===`touch`||!g.select(`open`)||!n||L(e)||C(e)}function F(e){if(m()!==`sloppy`||!g.select(`open`)||!n||L(e))return;let t=e.touches[0];t&&(N.current={startTime:Date.now(),startX:t.clientX,startY:t.clientY,dismissOnTouchEnd:!1,dismissOnMouseDown:!0},P.start(1e3,()=>{N.current&&(N.current.dismissOnTouchEnd=!1,N.current.dismissOnMouseDown=!1)}))}function R(e,t){let n=Ae(e);if(!n)return;let r=$(n,e.type,()=>{t(e),r()})}function B(e){j.current=`touch`,R(e,F)}function re(e){P.clear(),e.type===`pointerdown`&&(j.current=e.pointerType),!(e.type===`mousedown`&&N.current&&!N.current.dismissOnMouseDown)&&R(e,e=>{e.type===`pointerdown`?M(e):C(e)})}function V(e){if(!D.current)return;let n=O.current;if(d(),m()===`intentional`){if(e.type===`pointercancel`){n&&u();return}if(!_(e)){if(n){u();return}typeof w==`function`&&!w(e)||(t.clear(),k.current=!0,I())}}}function H(e){if(m()!==`sloppy`||!N.current||L(e))return;let t=e.touches[0];if(!t)return;let n=Math.abs(t.clientX-N.current.startX),r=Math.abs(t.clientY-N.current.startY),i=Math.sqrt(n*n+r*r);i>5&&(N.current.dismissOnTouchEnd=!0),i>10&&(C(e),P.clear(),N.current=null)}function ie(e){R(e,H)}function ae(e){m()!==`sloppy`||!N.current||L(e)||(N.current.dismissOnTouchEnd&&C(e),P.clear(),N.current=null)}function U(e){R(e,ae)}let W=K(b),oe=qi(r&&qi($(W,`keydown`,z),$(W,`compositionstart`,a),$(W,`compositionend`,c)),T&&qi($(W,`click`,re,!0),$(W,`pointerdown`,re,!0),$(W,`pointerup`,V,!0),$(W,`pointercancel`,V,!0),$(W,`mousedown`,re,!0),$(W,`mouseup`,V,!0),$(W,`touchstart`,B,!0),$(W,`touchmove`,ie,!0),$(W,`touchend`,U,!0)));return()=>{oe(),e.clear(),t.clear(),d(),k.current=!1}},[x,b,r,T,w,y,n,ee,te,z,I,E,ne,L,S,g,P]),M.useEffect(I,[w,I]);let H=M.useMemo(()=>({onKeyDown:z,[Ma[d]]:R,...d!==`intentional`&&{onClick:R}}),[z,R,d]),ie=M.useMemo(()=>({onKeyDown:z,onPointerDown:V,onMouseDown:V,onClickCapture:B,onMouseDownCapture(e){B(),re(e)},onPointerDownCapture(e){B(),re(e)},onMouseUpCapture:B,onTouchEndCapture:B,onTouchMoveCapture:B}),[z,B,re,V]);return M.useMemo(()=>n?{reference:H,floating:ie,trigger:H}:{},[n,H,ie])}var Ia={open:Fi(e=>e.open),transitionStatus:Fi(e=>e.transitionStatus),domReferenceElement:Fi(e=>e.domReferenceElement),referenceElement:Fi(e=>e.positionReference??e.referenceElement),floatingElement:Fi(e=>e.floatingElement),floatingId:Fi(e=>e.floatingId)},La=class extends Ki{constructor(e){let{syncOnly:t,nested:n,onOpenChange:r,triggerElements:i,...a}=e;super({...a,positionReference:a.referenceElement,domReferenceElement:a.referenceElement},{onOpenChange:r,dataRef:{current:{}},events:va(),nested:n,triggerElements:i},Ia),this.syncOnly=t}syncOpenEvent=(e,t)=>{(!e||!this.state.open||t!=null&&Ue(t))&&(this.context.dataRef.current.openEvent=e?t:void 0)};dispatchOpenChange=(e,t)=>{this.syncOpenEvent(e,t.event);let n={open:e,reason:t.reason,nativeEvent:t.event,nested:this.context.nested,triggerElement:t.trigger};this.context.events.emit(`openchange`,n)};setOpen=(e,t)=>{if(this.syncOnly){this.context.onOpenChange?.(e,t);return}this.dispatchOpenChange(e,t),this.context.onOpenChange?.(e,t)}};function Ra(e){let{popupStore:t,treatPopupAsFloatingElement:n=!1,floatingRootContext:r,floatingId:i,nested:a,onOpenChange:o}=e,s=t.useState(`open`),c=t.useState(`activeTriggerElement`),l=t.useState(n?`popupElement`:`positionerElement`),u=t.context.triggerElements,d=o,f=M.useRef(null);r===void 0&&f.current===null&&(f.current=new La({open:s,transitionStatus:void 0,referenceElement:c,floatingElement:l,triggerElements:u,onOpenChange:d,floatingId:i,syncOnly:!0,nested:a}));let m=r??f.current;return t.useSyncedValue(`floatingId`,i),h(()=>{let e={open:s,floatingId:i,referenceElement:c,floatingElement:l};p(c)&&(e.domReferenceElement=c),m.state.positionReference===m.state.referenceElement&&(e.positionReference=c),m.update(e)},[s,i,c,l,m]),m.context.onOpenChange=d,m.context.nested=a,m}var za={tabIndex:-1,[Te]:``};function Ba(e,t,n=!1){let r=H(),i=xa()!=null,a=M.useRef(null);e===void 0&&a.current===null&&(a.current=t(r,i));let o=e??a.current;return Ra({popupStore:o,treatPopupAsFloatingElement:n,floatingRootContext:o.state.floatingRootContext,floatingId:r,nested:i,onOpenChange:o.setOpen}),{store:o,internalStore:a.current}}function Va(e,t,n){let r=n?.id??null;(r||t)&&(e.activeTriggerId=r,e.activeTriggerElement=n??null)}function Ha(e){let t=e.useState(`open`);h(()=>{if(!t){e.state.triggerCount!==0&&e.set(`triggerCount`,0);return}let n=e.context.triggerElements.size,r={};if(e.state.triggerCount!==n&&(r.triggerCount=n),!e.select(`activeTriggerId`)&&n===1){let t=e.context.triggerElements.entries().next();if(!t.done){let[e,n]=t.value;r.activeTriggerId=e,r.activeTriggerElement=n}}(r.triggerCount!==void 0||r.activeTriggerId!==void 0)&&e.update(r)},[t,e,e.useState(`triggerCount`)])}function Ua(e,t,n){let{mounted:r,setMounted:i,transitionStatus:a}=un(e);t.useSyncedValues({mounted:r,transitionStatus:a});let o=_(()=>{i(!1),t.update({activeTriggerId:null,activeTriggerElement:null,mounted:!1,preventUnmountingOnClose:!1}),n?.(),t.context.onOpenChangeComplete?.(!1)}),s=t.useState(`preventUnmountingOnClose`);return ln({enabled:r&&!e&&!s,open:e,ref:t.context.popupRef,onComplete(){e||o()}}),{forceUnmount:o,transitionStatus:a}}function Wa(e,t){e.useSyncedValues(t),h(()=>()=>{e.update({activeTriggerProps:y,inactiveTriggerProps:y,popupProps:y})},[e])}function Ga(e,t){h(()=>{!t&&e.state.openMethod!==null&&e.set(`openMethod`,null)},[t,e]),h(()=>()=>{e.state.openMethod!==null&&e.set(`openMethod`,null)},[e])}var Ka=class{constructor(){this.elementsSet=new Set,this.idMap=new Map}add(e,t){let n=this.idMap.get(e);n!==t&&(n!==void 0&&this.elementsSet.delete(n),this.elementsSet.add(t),this.idMap.set(e,t))}delete(e){let t=this.idMap.get(e);t&&(this.elementsSet.delete(t),this.idMap.delete(e))}hasElement(e){return this.elementsSet.has(e)}hasMatchingElement(e){for(let t of this.elementsSet)if(e(t))return!0;return!1}getById(e){return this.idMap.get(e)}entries(){return this.idMap.entries()}elements(){return this.elementsSet.values()}get size(){return this.idMap.size}},qa=function(e){return e.open=`data-open`,e.closed=`data-closed`,e[e.startingStyle=rn.startingStyle]=`startingStyle`,e[e.endingStyle=rn.endingStyle]=`endingStyle`,e.anchorHidden=`data-anchor-hidden`,e.side=`data-side`,e.align=`data-align`,e}({}),Ja=function(e){return e.popupOpen=`data-popup-open`,e.pressed=`data-pressed`,e}({}),Ya={[Ja.popupOpen]:``},Xa={[Ja.popupOpen]:``,[Ja.pressed]:``},Za={[qa.open]:``},Qa={[qa.closed]:``},$a={[qa.anchorHidden]:``},eo={open(e){return e?Ya:null}},to={open(e){return e?Xa:null}},no={open(e){return e?Za:Qa},anchorHidden(e){return e?$a:null}};function ro(e){return w(19)?e:e?`true`:void 0}var io=M.forwardRef(function(e,t){let{cutout:n,...r}=e,i;if(n){let e=n.getBoundingClientRect();i=`polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`}return(0,G.jsx)(`div`,{ref:t,role:`presentation`,"data-base-ui-inert":``,...r,style:{position:`fixed`,inset:0,userSelect:`none`,WebkitUserSelect:`none`,clipPath:i}})}),ao={},oo={},so=``;function co(e){if(typeof document>`u`)return!1;let t=K(e);return a(t).innerWidth-t.documentElement.clientWidth>0}function lo(e){if(!(typeof CSS<`u`&&CSS.supports&&CSS.supports(`scrollbar-gutter`,`stable`))||typeof document>`u`)return!1;let t=K(e),n=t.documentElement,r=t.body,i=b(n)?n:r,a=i.style.overflowY,o=n.style.scrollbarGutter;n.style.scrollbarGutter=`stable`,i.style.overflowY=`scroll`;let s=i.offsetWidth;i.style.overflowY=`hidden`;let c=i.offsetWidth;return i.style.overflowY=a,n.style.scrollbarGutter=o,s===c}function uo(e){let t=K(e),n=t.documentElement,r=t.body,i=b(n)?n:r,a={overflowY:i.style.overflowY,overflowX:i.style.overflowX};return Object.assign(i.style,{overflowY:`hidden`,overflowX:`hidden`}),()=>{Object.assign(i.style,a)}}function fo(e){let t=K(e),n=t.documentElement,r=t.body,i=a(n),o=0,s=0,c=!1,l=$t.create();if(_e&&(i.visualViewport?.scale??1)!==1)return()=>{};function u(){let t=i.getComputedStyle(n),a=i.getComputedStyle(r),l=(t.scrollbarGutter||``).includes(`both-edges`)?`stable both-edges`:`stable`;o=n.scrollTop,s=n.scrollLeft,ao={scrollbarGutter:n.style.scrollbarGutter,overflowY:n.style.overflowY,overflowX:n.style.overflowX},so=n.style.scrollBehavior,oo={position:r.style.position,height:r.style.height,width:r.style.width,boxSizing:r.style.boxSizing,overflowY:r.style.overflowY,overflowX:r.style.overflowX,scrollBehavior:r.style.scrollBehavior};let u=n.scrollHeight>n.clientHeight,d=n.scrollWidth>n.clientWidth,f=t.overflowY===`scroll`||a.overflowY===`scroll`,p=t.overflowX===`scroll`||a.overflowX===`scroll`,m=Math.max(0,i.innerWidth-r.clientWidth),h=Math.max(0,i.innerHeight-r.clientHeight),g=parseFloat(a.marginTop)+parseFloat(a.marginBottom),_=parseFloat(a.marginLeft)+parseFloat(a.marginRight),v=b(n)?n:r;if(c=lo(e),c){n.style.scrollbarGutter=l,v.style.overflowY=`hidden`,v.style.overflowX=`hidden`;return}Object.assign(n.style,{scrollbarGutter:l,overflowY:`hidden`,overflowX:`hidden`}),(u||f)&&(n.style.overflowY=`scroll`),(d||p)&&(n.style.overflowX=`scroll`),Object.assign(r.style,{position:`relative`,height:g||h?`calc(100dvh - ${g+h}px)`:`100dvh`,width:_||m?`calc(100vw - ${_+m}px)`:`100vw`,boxSizing:`border-box`,overflow:`hidden`,scrollBehavior:`unset`}),r.scrollTop=o,r.scrollLeft=s,n.setAttribute(`data-base-ui-scroll-locked`,``),n.style.scrollBehavior=`unset`}function d(){Object.assign(n.style,ao),Object.assign(r.style,oo),c||(n.scrollTop=o,n.scrollLeft=s,n.removeAttribute(`data-base-ui-scroll-locked`),n.style.scrollBehavior=so)}function f(){d(),l.request(u)}u();let p=$(i,`resize`,f);return()=>{l.cancel(),d(),typeof i.removeEventListener==`function`&&p()}}var po=new class{lockCount=0;restore=null;timeoutLock=de.create();timeoutUnlock=de.create();acquire(e){return this.lockCount+=1,this.lockCount===1&&this.restore===null&&this.timeoutLock.start(0,()=>this.lock(e)),this.release}release=()=>{--this.lockCount,this.lockCount===0&&this.restore&&this.timeoutUnlock.start(0,this.unlock)};unlock=()=>{this.lockCount===0&&this.restore&&(this.restore?.(),this.restore=null)};lock(e){if(this.lockCount===0||this.restore!==null)return;let t=K(e).documentElement,n=a(t).getComputedStyle(t).overflowY;if(n===`hidden`||n===`clip`){this.restore=m;return}let r=ve||!co(e);this.restore=r?uo(e):fo(e)}};function mo(e=!0,t=null){h(()=>{if(e)return po.acquire(t)},[e,t])}var ho=`ArrowUp`,go=`ArrowDown`,_o=`ArrowLeft`,vo=`ArrowRight`,yo=`Home`,bo=new Set([_o,vo]),xo=new Set([ho,go]),So=new Set([...bo,...xo]),Co=new Set([...So,yo,`End`]);export{pn as $,fe as $t,Fi as A,rt as At,Pn as B,Fe as Bt,ua as C,nt as Ct,Ki as D,mt as Dt,$ as E,pt as Et,Oi as F,We as Ft,yn as G,Ae as Gt,Tn as H,Ne as Ht,Di as I,He as It,xn as J,De as Jt,Cn as K,ke as Kt,Ei as L,Be as Lt,Mi as M,Ge as Mt,Ai as N,_t as Nt,Gi as O,gt as Ot,ji as P,qe as Pt,wn as Q,K as Qt,kn as R,Ve as Rt,_a as S,at as St,Zi as T,tt as Tt,Sn as U,q as Ut,Fn as V,Pe as Vt,vn as W,J as Wt,gn as X,ve as Xt,mn as Y,Oe as Yt,hn as Z,_e as Zt,La as _,Ye as _t,qa as a,j as an,en as at,xa as b,et as bt,eo as c,wt as ct,Va as d,xt as dt,U as en,fn as et,Ha as f,bt as ft,Ba as g,Ze as gt,Ga as h,Et as ht,ro as i,ne as in,sn as it,Ni as j,Ke as jt,Vi as k,$e as kt,Ka as l,Tt as lt,Wa as m,yt as mt,mo as n,H as nn,un as nt,no as o,A as on,Ct as ot,Ua as p,Ot as pt,_n as q,Ee as qt,io as r,z as rn,ln as rt,to as s,Y as st,Co as t,ie as tn,dn as tt,za as u,St as ut,Fa as v,Qe as vt,da as w,ot as wt,Sa as x,it as xt,ja as y,Je as yt,jn as z,Re as zt};
@@ -1,5 +1,5 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/angular-html-DOI3kiIS.js","assets/angular-html-BKvrIgo0.js","assets/html-Bum0gFUC.js","assets/css-8QJvnqUH.js","assets/javascript-BzbQS41l.js","assets/angular-ts-CFl4OBGF.js","assets/scss-BjEPxvGF.js","assets/apl-CLg-4YuW.js","assets/json-B88Oqtu5.js","assets/xml-WY0zc4PG.js","assets/java-BtIQNnN0.js","assets/astro-CNzVrsRb.js","assets/postcss-D_Wz94rJ.js","assets/tsx-BOvsFOI6.js","assets/typescript-j_1H8WHN.js","assets/blade-ClWDCSrz.js","assets/html-derivative-DKNfUygN.js","assets/sql-CMBQCf7k.js","assets/bsl-D5oUCVdh.js","assets/sdbl-CpzYUp7e.js","assets/c-DWGmR78Y.js","assets/c-SSSlmE39.js","assets/cairo-D66nqRlU.js","assets/python-CzFU0dpx.js","assets/cmake-BRht3inD.js","assets/cmake-T_kMSWuN.js","assets/cobol-Baj6cXt8.js","assets/coffee-C19NseY8.js","assets/cpp-BqCxx5K1.js","assets/cpp-D9Km65fR.js","assets/glsl-CaPTrB3a.js","assets/regexp-BWpGejPw.js","assets/crystal-CVtDsYgu.js","assets/shellscript-CqHdAlCp.js","assets/csharp-D3LXfyC4.js","assets/csharp-b7x6yWkQ.js","assets/css-CaJ9TzKE.js","assets/csv-D6mwZ2PH.js","assets/csv-B_R7vXwK.js","assets/diff-B0S3HUPm.js","assets/diff-CR4ZX0DC.js","assets/edge-Czqae7B7.js","assets/elixir-DTiUBnpr.js","assets/elm-CC1TmzeR.js","assets/erb-Cp41DPjj.js","assets/ruby-FP2agzWe.js","assets/graphql-DEIChqxY.js","assets/jsx-D3KKoC5L.js","assets/haml-DA2J0dTq.js","assets/lua-DjuecEsk.js","assets/yaml-DijMHRDA.js","assets/erlang-D0CaQ5Pl.js","assets/markdown-CboqBxpY.js","assets/fortran-fixed-form-1cK5gXa1.js","assets/fortran-free-form-uHOymLAb.js","assets/fortran-free-form-9zh5t3u2.js","assets/fsharp-PZeu-6rm.js","assets/gdresource-C-87SodR.js","assets/gdscript-HuAKigly.js","assets/gdshader-kiBtQlv1.js","assets/gdscript-CbgekpG5.js","assets/gdshader-BpaOOKdG.js","assets/git-commit-D2IoWZ43.js","assets/git-rebase-4cZrnyqc.js","assets/glimmer-js-D52zqEfj.js","assets/glimmer-ts-AD7flZ2w.js","assets/glsl-ThNHWs2E.js","assets/go-ie9aF6TM.js","assets/go-BvY2Tjnb.js","assets/graphql-DAzSVzvB.js","assets/hack-D7vDW7tS.js","assets/haml-D9e9WJnO.js","assets/handlebars-vIs8pEU-.js","assets/haxe-COWeUEnW.js","assets/haxe-HtXScVNh.js","assets/hlsl-C3sg_olF.js","assets/hlsl-ajL2FB-w.js","assets/html-CzjWbsgI.js","assets/html-derivative-V1uUBYLr.js","assets/http-BjrBtiM6.js","assets/hurl-B4P9s9G3.js","assets/hxml-C9UUAMq4.js","assets/java-DxlWrXwe.js","assets/javascript-Yelw-5ZN.js","assets/jinja-DuhZpu2m.js","assets/jison-D3aJooqo.js","assets/json-CaljABEy.js","assets/jsx-hEbJ82HF.js","assets/julia-f_XNiKMR.js","assets/r-xhMMgMz3.js","assets/just-CEvsES0K.js","assets/perl-DcC5ceVN.js","assets/latex-CQKG1i9K.js","assets/tex-CWHOmQVq.js","assets/less-GWsDhusf.js","assets/less-B64L-FWb.js","assets/liquid-BDWrvX4a.js","assets/lua-BJObVtAx.js","assets/markdown-Cla8Gbs6.js","assets/marko-DNghC4TN.js","assets/mdc-DTTEu0rx.js","assets/nextflow-BIPZpIhb.js","assets/nextflow-groovy-BqA-b2Wg.js","assets/nextflow-groovy-BzLgeEem.js","assets/nginx-BxRBJ-Af.js","assets/nim-epeViOP2.js","assets/perl-BufbN_xy.js","assets/php-BPllPy0q.js","assets/php-2FKhqoVi.js","assets/postcss-e3XvZOFQ.js","assets/pug-BwAiAuNR.js","assets/python-ORI17Sev.js","assets/qml-BxleM7bJ.js","assets/r-C-mqvRIx.js","assets/razor-DxyMK7ov.js","assets/regexp-B4pBNbU3.js","assets/rst-CSglpNoD.js","assets/ruby-BivKE_jJ.js","assets/sas-5Ze9E6m7.js","assets/scss-CaGHA5Di.js","assets/sdbl-DFPhMlBm.js","assets/shaderlab-DY7g_Ava.js","assets/shellscript-BiGZg9Om.js","assets/shellsession-DDrivR0a.js","assets/soy-BCL09qqU.js","assets/sparql-Dy5Sx-zJ.js","assets/turtle-CcN57yC0.js","assets/sql-BHvM5T9A.js","assets/stata-DmV9NEuE.js","assets/stylus-BOYZFyl7.js","assets/stylus-LiTfbrWi.js","assets/surrealql-DsHDbpAY.js","assets/svelte-06jlbTuz.js","assets/templ-V_mboUAx.js","assets/tex-BhUTfFUY.js","assets/ts-tags-DSigneEU.js","assets/tsx-5f3ulCja.js","assets/turtle-B2uMLKuz.js","assets/twig-D6ytZM8T.js","assets/typescript-Utq2Cl8c.js","assets/vue-Lb60O_AJ.js","assets/vue-html-CGMs_6qn.js","assets/vue-vine-hb-uzFkY.js","assets/xml-CoDIzWF0.js","assets/xsl-BehRGS6_.js","assets/yaml-CxbubiML.js"])))=>i.map(i=>d[i]);
2
- import{a as e,n as t,o as n,r,t as i}from"./compiler-runtime-CUwoe8mk.js";import{$o as a,B as o,Cr as s,H as c,Ho as l,Ia as u,P as d,R as f,U as p,V as m,c as h,i as g,io as _,l as v,n as y,t as b,ts as x,u as ee,xr as te,z as ne}from"./button-Bqawukg7.js";import{t as re}from"./loader-circle-DCgJgOPt.js";import{A as S,D as ie,Gt as ae,H as oe,K as se,M as ce,S as le,W as ue,Wt as de,_ as fe,a as pe,an as me,d as he,f as ge,g as _e,h as ve,i as ye,it as be,l as xe,m as Se,n as Ce,o as we,p as Te,r as Ee,rt as De,t as Oe,tn as ke,u as Ae,v as je,y as Me}from"./composite-DXpCs7eA.js";var Ne=x(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Pe=x(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),Fe=x(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ie=x(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),Le=x(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Re=x(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function ze(){return new fe({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new xe,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Be(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:ze(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:g,inactiveTriggerProps:g,popupProps:g}}function Ve(e,t,n=!1){return new fe({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var He=S(e=>e.triggerIdProp??e.activeTriggerId),Ue=S(e=>e.openProp??e.open),We=S(e=>(e.popupElement?.id??e.floatingId)||void 0);function Ge(e,t){return t!==void 0&&Ue(e)&&He(e)===t}function Ke(e,t){return Ge(e,t)?!0:t!==void 0&&Ue(e)&&He(e)==null&&e.triggerCount===1}var qe={open:Ue,mounted:S(e=>e.mounted),transitionStatus:S(e=>e.transitionStatus),floatingRootContext:S(e=>e.floatingRootContext),triggerCount:S(e=>e.triggerCount),preventUnmountingOnClose:S(e=>e.preventUnmountingOnClose),payload:S(e=>e.payload),activeTriggerId:He,activeTriggerElement:S(e=>e.mounted?e.activeTriggerElement:null),popupId:We,isTriggerActive:S((e,t)=>t!==void 0&&He(e)===t),isOpenedByTrigger:S((e,t)=>Ge(e,t)),isMountedByTrigger:S((e,t)=>t!==void 0&&He(e)===t&&e.mounted),triggerProps:S((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:S((e,t)=>Ke(e,t)?We(e):void 0),popupProps:S(e=>e.popupProps),popupElement:S(e=>e.popupElement),positionerElement:S(e=>e.positionerElement)},C=i(),w=t(),Je=e=>{let t=(0,C.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M28.057 6.53 17.952.532a3.8 3.8 0 0 0-3.88 0L3.965 6.53A4.03 4.03 0 0 0 2 10.002v11.996a4.03 4.03 0 0 0 1.948 3.472l10.105 5.998a3.8 3.8 0 0 0 3.88 0L28.04 25.47a4.03 4.03 0 0 0 1.948-3.472V10.002a4.03 4.03 0 0 0-1.93-3.472zM20.23 25.262v.86a.318.318 0 0 1-.148.265l-.512.293c-.08.042-.148 0-.148-.113v-.847a1.66 1.66 0 0 1-1.164.113c-.062-.042-.086-.122-.056-.2l.183-.78a.322.322 0 0 1 .102-.17.18.18 0 0 1 .05-.035.11.11 0 0 1 .08 0 1.41 1.41 0 0 0 1.059-.134 1.41 1.41 0 0 0 .79-1.21c0-.438-.24-.62-.82-.625-.734 0-1.4-.14-1.43-1.224a3.137 3.137 0 0 1 1.186-2.4v-.872a.34.34 0 0 1 .148-.268l.494-.314c.08-.042.148 0 .148.116v.872a1.61 1.61 0 0 1 .967-.116c.07.04.098.128.064.2l-.173.773a.325.325 0 0 1-.138.195c-.02.012-.05.008-.074 0a1.28 1.28 0 0 0-.931.152 1.17 1.17 0 0 0-.706 1.037c0 .395.208.515.907.53.935 0 1.337.423 1.348 1.362a3.346 3.346 0 0 1-1.228 2.53zm5.293-1.45a.201.201 0 0 1-.078.194L22.9 25.558c-.024.02-.06.023-.087.007s-.04-.05-.033-.08v-.66a.184.184 0 0 1 .116-.162l2.516-1.507c.024-.02.06-.023.087-.007s.04.05.033.08v.582zM27.288 9.06l-9.562 5.906c-1.193.706-2.07 1.478-2.07 2.914v11.778c0 .86.353 1.4.882 1.58a3.14 3.14 0 0 1-.53.053 3.13 3.13 0 0 1-1.595-.441L4.308 24.853A3.3 3.3 0 0 1 2.706 22V10.002a3.304 3.304 0 0 1 1.602-2.858l10.105-5.998c.98-.58 2.196-.58 3.176 0l10.105 5.998c.833.504 1.4 1.35 1.552 2.3-.328-.713-1.083-.9-1.962-.395h.003z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,w.jsx)(`svg`,{...e,viewBox:`0 0 32 32`,children:n}),t[1]=e,t[2]=r),r},Ye=e=>{let t=(0,C.c)(5),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={flex:`none`,lineHeight:`1`},t[0]=n):n=t[0];let r,i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,w.jsx)(`title`,{children:`Codex`}),i=(0,w.jsx)(`path`,{clipRule:`evenodd`,d:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;return t[3]===e?a=t[4]:(a=(0,w.jsxs)(`svg`,{...e,fill:`#fff`,fillRule:`evenodd`,style:n,viewBox:`0 0 24 24`,children:[r,i]}),t[3]=e,t[4]=a),a},Xe=e=>{let t=(0,C.c)(7),n,r,i,a,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M205.593 167.181c3.26-1.836 4.373-5.904 2.493-9.087-1.88-3.18-6.045-4.271-9.304-2.435l-88.946 50.154-88.619-49.968c-3.256-1.836-7.42-.748-9.304 2.435-1.88 3.183-.763 7.251 2.493 9.087l91.766 51.74a6.932 6.932 0 0 0 5.295.632 6.967 6.967 0 0 0 2.364-.815l91.762-51.743Z`,clipRule:`evenodd`}),r=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M214.739 114.135c.468-2.808-.852-5.733-3.532-7.236l-97.01-54.436a7.326 7.326 0 0 0-2.463-.85 7.342 7.342 0 0 0-5.599.66L9.122 106.71c-2.821 1.584-4.134 4.746-3.439 7.685-.305 2.421.645 4.954 3.472 6.548l97.01 54.699a7.338 7.338 0 0 0 5.602.665 7.27 7.27 0 0 0 2.495-.858l97.014-54.703c2.851-1.608 3.793-4.17 3.463-6.61Zm-20.026-.291-84.718-47.537-84.67 47.512 84.718 47.767 84.67-47.742Z`,clipRule:`evenodd`}),i=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M216.215 72.942c3.62-2.04 4.86-6.557 2.769-10.092-2.088-3.531-6.714-4.743-10.333-2.704l-98.782 55.7-98.414-55.493c-3.62-2.043-8.245-.83-10.333 2.704C-.97 66.588.27 71.11 3.89 73.15L105.8 130.61a7.707 7.707 0 0 0 5.885.698 7.654 7.654 0 0 0 2.621-.901l101.909-57.465Z`,clipRule:`evenodd`}),a=(0,w.jsx)(`path`,{fill:`#fff`,d:`m18.906 66.546 90.775-55.407 90.774 55.404-90.774 51.717-90.775-51.714Z`}),o=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M216.095 58.37c3.627 2.036 4.883 6.55 2.807 10.085-2.081 3.531-6.706 4.746-10.333 2.711L109.772 15.73 11.335 70.967c-3.627 2.035-8.253.82-10.333-2.712-2.077-3.535-.82-8.048 2.802-10.084L105.718.987a7.712 7.712 0 0 1 5.881-.694 7.7 7.7 0 0 1 2.587.893l101.909 57.185Z`,clipRule:`evenodd`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o):(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4]);let s;return t[5]===e?s=t[6]:(s=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 220 220`,fill:`none`,children:[n,r,i,a,o]}),t[5]=e,t[6]=s),s},Ze=e=>{let t=(0,C.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`none`,stroke:`#FFF`,strokeWidth:`10`,d:`M15 5h178a10 10 0 0 1 10 10v98a10 10 0 0 1-10 10H15a10 10 0 0 1-10-10V15A10 10 0 0 1 15 5z`}),r=(0,w.jsx)(`path`,{fill:`#FFF`,d:`M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39H30zm125 0-30-33h20V30h20v35h20l-30 33z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 208 128`,xmlSpace:`preserve`,children:[n,r]}),t[2]=e,t[3]=i),i},Qe=e=>{let t=(0,C.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsxs)(`svg`,{viewBox:`0 0 512 512`,fill:`none`,children:[(0,w.jsx)(`rect`,{width:`512`,height:`512`,fill:`#131010`}),(0,w.jsx)(`path`,{d:`M320 224V352H192V224H320Z`,fill:`#5A5858`}),(0,w.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M384 416H128V96H384V416ZM320 160H192V352H320V160Z`,fill:`white`})]}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,w.jsx)(`svg`,{...e,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 512 512`,children:n}),t[1]=e,t[2]=r),r};function $e(e){let t=(0,C.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z`}),r=(0,w.jsx)(`path`,{fill:`currentColor`,d:`M517.36 400H634.72V634.72H517.36Z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 800 800`,"aria-hidden":`true`,focusable:`false`,children:[n,r]}),t[2]=e,t[3]=i),i}var et=e=>{let t=(0,C.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`g`,{fill:`none`,fillRule:`evenodd`,children:(0,w.jsx)(`g`,{transform:`translate(-227, -256)`,fill:`#58C4DC`,fillRule:`nonzero`,children:(0,w.jsxs)(`g`,{transform:`translate(227, 256)`,children:[(0,w.jsx)(`path`,{d:`M285.5,201 C255.400481,201 231,225.400481 231,255.5 C231,285.599519 255.400481,310 285.5,310 C315.599519,310 340,285.599519 340,255.5 C340,225.400481 315.599519,201 285.5,201`,id:`Path`}),(0,w.jsx)(`path`,{d:`M568.959856,255.99437 C568.959856,213.207656 529.337802,175.68144 466.251623,150.985214 C467.094645,145.423543 467.85738,139.922107 468.399323,134.521063 C474.621631,73.0415145 459.808523,28.6686204 426.709856,9.5541429 C389.677085,-11.8291748 337.36955,3.69129898 284.479928,46.0162134 C231.590306,3.69129898 179.282771,-11.8291748 142.25,9.5541429 C109.151333,28.6686204 94.3382249,73.0415145 100.560533,134.521063 C101.102476,139.922107 101.845139,145.443621 102.708233,151.02537 C97.4493791,153.033193 92.2908847,155.161486 87.3331099,157.39017 C31.0111824,182.708821 0,217.765415 0,255.99437 C0,298.781084 39.6220545,336.307301 102.708233,361.003527 C101.845139,366.565197 101.102476,372.066633 100.560533,377.467678 C94.3382249,438.947226 109.151333,483.32012 142.25,502.434597 C153.629683,508.887578 166.52439,512.186771 179.603923,511.991836 C210.956328,511.991836 247.567589,495.487529 284.479928,465.972527 C321.372196,495.487529 358.003528,511.991836 389.396077,511.991836 C402.475265,512.183856 415.36922,508.884856 426.75,502.434597 C459.848667,483.32012 474.661775,438.947226 468.439467,377.467678 C467.897524,372.066633 467.134789,366.565197 466.291767,361.003527 C529.377946,336.347457 569,298.761006 569,255.99437 M389.155214,27.1025182 C397.565154,26.899606 405.877839,28.9368502 413.241569,33.0055186 C436.223966,46.2772304 446.540955,82.2775015 441.522965,131.770345 C441.181741,135.143488 440.780302,138.556788 440.298575,141.990165 C414.066922,134.08804 387.205771,128.452154 360.010724,125.144528 C343.525021,103.224055 325.192524,82.7564475 305.214266,63.9661533 C336.586743,39.7116483 366.032313,27.1025182 389.135142,27.1025182 M378.356498,310.205598 C368.204912,327.830733 357.150626,344.919965 345.237759,361.405091 C325.045049,363.479997 304.758818,364.51205 284.459856,364.497299 C264.167589,364.51136 243.888075,363.479308 223.702025,361.405091 C211.820914,344.919381 200.80007,327.83006 190.683646,310.205598 C180.532593,292.629285 171.306974,274.534187 163.044553,255.99437 C171.306974,237.454554 180.532593,219.359455 190.683646,201.783142 C200.784121,184.229367 211.770999,167.201087 223.601665,150.764353 C243.824636,148.63809 264.145559,147.579168 284.479928,147.591877 C304.772146,147.579725 325.051559,148.611772 345.237759,150.68404 C357.109048,167.14607 368.136094,184.201112 378.27621,201.783142 C388.419418,219.363718 397.644825,237.458403 405.915303,255.99437 C397.644825,274.530337 388.419418,292.625022 378.27621,310.205598 M419.724813,290.127366 C426.09516,307.503536 431.324985,325.277083 435.380944,343.334682 C417.779633,348.823635 399.836793,353.149774 381.668372,356.285142 C388.573127,345.871232 395.263781,335.035679 401.740334,323.778483 C408.143291,312.655143 414.144807,301.431411 419.805101,290.207679 M246.363271,390.377981 C258.848032,391.140954 271.593728,391.582675 284.5,391.582675 C297.406272,391.582675 310.232256,391.140954 322.737089,390.377981 C310.880643,404.583418 298.10766,417.997563 284.5,430.534446 C270.921643,417.999548 258.18192,404.585125 246.363271,390.377981 Z M187.311556,356.244986 C169.137286,353.123646 151.187726,348.810918 133.578912,343.334682 C137.618549,325.305649 142.828222,307.559058 149.174827,290.207679 C154.754833,301.431411 160.736278,312.655143 167.239594,323.778483 C173.74291,334.901824 180.467017,345.864539 187.311556,356.285142 M149.174827,221.760984 C142.850954,204.473938 137.654787,186.794745 133.619056,168.834762 C151.18418,163.352378 169.085653,159.013101 187.211197,155.844146 C180.346585,166.224592 173.622478,176.986525 167.139234,188.210257 C160.65599,199.433989 154.734761,210.517173 149.074467,221.760984 M322.616657,121.590681 C310.131896,120.827708 297.3862,120.385987 284.379568,120.385987 C271.479987,120.385987 258.767744,120.787552 246.242839,121.590681 C258.061488,107.383537 270.801211,93.9691137 284.379568,81.4342157 C297.99241,93.9658277 310.765727,107.380324 322.616657,121.590681 Z M401.70019,188.210257 C395.196875,176.939676 388.472767,166.09743 381.527868,155.68352 C399.744224,158.819049 417.734224,163.151949 435.380944,168.654058 C431.331963,186.680673 426.122466,204.426664 419.785029,221.781062 C414.205023,210.55733 408.203506,199.333598 401.720262,188.230335 M127.517179,131.790423 C122.438973,82.3176579 132.816178,46.2973086 155.778503,33.0255968 C163.144699,28.9632474 171.455651,26.9264282 179.864858,27.1225964 C202.967687,27.1225964 232.413257,39.7317265 263.785734,63.9862316 C243.794133,82.7898734 225.448298,103.270812 208.949132,125.204763 C181.761691,128.528025 154.90355,134.14313 128.661281,141.990165 C128.199626,138.556788 127.778115,135.163566 127.456963,131.790423 M98.4529773,182.106474 C101.54406,180.767925 104.695358,179.429376 107.906872,178.090828 C114.220532,204.735668 122.781793,230.7969 133.498624,255.99437 C122.761529,281.241316 114.193296,307.357063 107.8868,334.058539 C56.7434387,313.076786 27.0971497,284.003505 27.0971497,255.99437 C27.0971497,229.450947 53.1907013,202.526037 98.4529773,182.106474 Z M155.778503,478.963143 C132.816178,465.691432 122.438973,429.671082 127.517179,380.198317 C127.838331,376.825174 128.259842,373.431953 128.721497,369.978497 C154.953686,377.878517 181.814655,383.514365 209.009348,386.824134 C225.500295,408.752719 243.832321,429.233234 263.805806,448.042665 C220.069,481.834331 180.105722,492.97775 155.838719,478.963143 M441.502893,380.198317 C446.520883,429.691161 436.203894,465.691432 413.221497,478.963143 C388.974566,493.017906 348.991216,481.834331 305.274481,448.042665 C325.241364,429.232737 343.566681,408.752215 360.050868,386.824134 C387.245915,383.516508 414.107066,377.880622 440.338719,369.978497 C440.820446,373.431953 441.221885,376.825174 441.563109,380.198317 M461.193488,334.018382 C454.869166,307.332523 446.294494,281.231049 435.561592,255.99437 C446.289797,230.744081 454.857778,204.629101 461.173416,177.930202 C512.216417,198.911955 541.942994,227.985236 541.942994,255.99437 C541.942994,284.003505 512.296705,313.076786 461.153344,334.058539`,id:`Shape`})]})})}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,w.jsx)(`svg`,{...e,viewBox:`0 0 569 512`,xmlnsXlink:`http://www.w3.org/1999/xlink`,children:n}),t[1]=e,t[2]=r),r},tt=new Map,nt=new Map,rt=new Map,it=new Set;function at(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(it.has(n.name))continue;let e=tt.get(n.name);e??(e=n,tt.set(n.name,e)),it.add(e.name),t.loadLanguageSync(e.data)}}function ot(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var T=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function st(e){return ct(e)}function ct(e){return Array.isArray(e)?lt(e):e instanceof RegExp?e:typeof e==`object`?ut(e):e}function lt(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ct(e[n]);return t}function ut(e){let t={};for(let n in e)t[n]=ct(e[n]);return t}function dt(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ft(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ft(e.substring(0,e.length-1)):e.substr(~t+1)}var pt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,mt=class{static hasCaptures(e){return e===null?!1:(pt.lastIndex=0,pt.test(e))}static replaceCaptures(e,t,n){return e.replace(pt,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function ht(e,t){return e<t?-1:+(e>t)}function gt(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=ht(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function _t(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function vt(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var yt=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},bt=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Tt(e),t)}static createFromParsedTheme(e,t){return Dt(e,t)}_cachedMatchRoot=new yt(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>St(e.parent,t.parentScopes));return n?new wt(n.fontStyle,n.foreground,n.background):null}},xt=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function St(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Ct(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ct(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var wt=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Tt(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&_t(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&_t(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Et(l,u,e,o,s,c)}}return n}var Et=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},E=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(E||{});function Dt(e,t){e.sort((e,t)=>{let n=ht(e.scope,t.scope);return n!==0||(n=gt(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Ot(t),o=new wt(n,a.getId(r),a.getId(i)),s=new jt(new At(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new bt(a,o,s)}var Ot=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},kt=Object.freeze([]),At=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||kt,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},jt=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),At.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(gt(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new At(e,t,n,r,i))}},Mt=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=Pt(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Nt(e){return e}function Pt(e){return e}function Ft(e,t){let n=[],r=Lt(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(It(i)){let e=[];do e.push(i),i=r.next();while(It(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function It(e){return!!e&&!!e.match(/[\w\.:]+/)}function Lt(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Rt(e){typeof e.dispose==`function`&&e.dispose()}var zt=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Bt=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Vt=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Ht=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new zt(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Vt;for(let n of e)Ut(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof zt){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Ut(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof zt?Gt({baseGrammar:a,selfGrammar:i},r):Wt(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new zt(e))}function Wt(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Kt([r],t,n)}}function Gt(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Kt(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Kt(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Kt(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?dt({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Kt(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Qt(i);switch(a.kind){case 0:Gt({...t,selfGrammar:t.baseGrammar},n);break;case 1:Gt(t,n);break;case 2:Wt(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Wt(a.ruleName,i,n):Gt(i,n)}else a.kind===4?n.add(new Bt(a.scopeName,a.ruleName)):n.add(new zt(a.scopeName));break}}}var qt=class{kind=0},Jt=class{kind=1},Yt=class{constructor(e){this.ruleName=e}kind=2},Xt=class{constructor(e){this.scopeName=e}kind=3},Zt=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Qt(e){if(e===`$base`)return new qt;if(e===`$self`)return new Jt;let t=e.indexOf(`#`);return t===-1?new Xt(e):t===0?new Yt(e.substring(1)):new Zt(e.substring(0,t),e.substring(t+1))}var $t=/\\(\d+)/,en=/\\(\d+)/g,tn=-1,nn=-2;function rn(e){return e}function an(e){return e}var on=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=mt.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=mt.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ft(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:mt.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:mt.replaceCaptures(this._contentName,e,t)}},sn=class extends on{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},cn=class extends on{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new pn(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ln=class extends on{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},un=class extends on{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new pn(i,this.id),this.beginCaptures=a,this._end=new pn(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},dn=class extends on{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new pn(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new pn(o,nn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new mn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},fn=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new sn(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new cn(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=dt({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new ln(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new dn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new un(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Qt(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof ln||e instanceof un||e instanceof dn)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},pn=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=$t.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return en.lastIndex=0,this.source.replace(en,(e,t)=>vt(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},mn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new hn(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new hn(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},hn=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
2
+ import{a as e,n as t,o as n,r,t as i}from"./compiler-runtime-CUwoe8mk.js";import{$o as a,B as o,Cr as s,H as c,Ho as l,Ia as u,P as d,R as f,U as p,V as m,c as h,i as g,io as _,l as v,n as y,t as b,ts as x,u as ee,xr as te,z as ne}from"./button-Bqawukg7.js";import{t as re}from"./loader-circle-DCgJgOPt.js";import{A as S,D as ie,Gt as ae,H as oe,K as se,M as ce,S as le,W as ue,Wt as de,_ as fe,a as pe,an as me,d as he,f as ge,g as _e,h as ve,i as ye,it as be,l as xe,m as Se,n as Ce,o as we,p as Te,r as Ee,rt as De,t as Oe,tn as ke,u as Ae,v as je,y as Me}from"./composite-fb6R8ReV.js";var Ne=x(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Pe=x(`circle-pause`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`10`,x2:`10`,y1:`15`,y2:`9`,key:`c1nkhi`}],[`line`,{x1:`14`,x2:`14`,y1:`15`,y2:`9`,key:`h65svq`}]]),Fe=x(`message-circle-question-mark`,[[`path`,{d:`M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719`,key:`1sd12s`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Ie=x(`file`,[[`path`,{d:`M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z`,key:`1oefj6`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}]]),Le=x(`trash`,[[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]]),Re=x(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]);function ze(){return new fe({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:new xe,floatingId:void 0,syncOnly:!1,nested:!1,onOpenChange:void 0})}function Be(){return{open:!1,openProp:void 0,mounted:!1,transitionStatus:void 0,floatingRootContext:ze(),floatingId:void 0,triggerCount:0,preventUnmountingOnClose:!1,payload:void 0,activeTriggerId:null,activeTriggerElement:null,triggerIdProp:void 0,popupElement:null,positionerElement:null,activeTriggerProps:g,inactiveTriggerProps:g,popupProps:g}}function Ve(e,t,n=!1){return new fe({open:!1,transitionStatus:void 0,floatingElement:null,referenceElement:null,triggerElements:e,floatingId:t,syncOnly:!0,nested:n,onOpenChange:void 0})}var He=S(e=>e.triggerIdProp??e.activeTriggerId),Ue=S(e=>e.openProp??e.open),We=S(e=>(e.popupElement?.id??e.floatingId)||void 0);function Ge(e,t){return t!==void 0&&Ue(e)&&He(e)===t}function Ke(e,t){return Ge(e,t)?!0:t!==void 0&&Ue(e)&&He(e)==null&&e.triggerCount===1}var qe={open:Ue,mounted:S(e=>e.mounted),transitionStatus:S(e=>e.transitionStatus),floatingRootContext:S(e=>e.floatingRootContext),triggerCount:S(e=>e.triggerCount),preventUnmountingOnClose:S(e=>e.preventUnmountingOnClose),payload:S(e=>e.payload),activeTriggerId:He,activeTriggerElement:S(e=>e.mounted?e.activeTriggerElement:null),popupId:We,isTriggerActive:S((e,t)=>t!==void 0&&He(e)===t),isOpenedByTrigger:S((e,t)=>Ge(e,t)),isMountedByTrigger:S((e,t)=>t!==void 0&&He(e)===t&&e.mounted),triggerProps:S((e,t)=>t?e.activeTriggerProps:e.inactiveTriggerProps),triggerPopupId:S((e,t)=>Ke(e,t)?We(e):void 0),popupProps:S(e=>e.popupProps),popupElement:S(e=>e.popupElement),positionerElement:S(e=>e.positionerElement)},C=i(),w=t(),Je=e=>{let t=(0,C.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M28.057 6.53 17.952.532a3.8 3.8 0 0 0-3.88 0L3.965 6.53A4.03 4.03 0 0 0 2 10.002v11.996a4.03 4.03 0 0 0 1.948 3.472l10.105 5.998a3.8 3.8 0 0 0 3.88 0L28.04 25.47a4.03 4.03 0 0 0 1.948-3.472V10.002a4.03 4.03 0 0 0-1.93-3.472zM20.23 25.262v.86a.318.318 0 0 1-.148.265l-.512.293c-.08.042-.148 0-.148-.113v-.847a1.66 1.66 0 0 1-1.164.113c-.062-.042-.086-.122-.056-.2l.183-.78a.322.322 0 0 1 .102-.17.18.18 0 0 1 .05-.035.11.11 0 0 1 .08 0 1.41 1.41 0 0 0 1.059-.134 1.41 1.41 0 0 0 .79-1.21c0-.438-.24-.62-.82-.625-.734 0-1.4-.14-1.43-1.224a3.137 3.137 0 0 1 1.186-2.4v-.872a.34.34 0 0 1 .148-.268l.494-.314c.08-.042.148 0 .148.116v.872a1.61 1.61 0 0 1 .967-.116c.07.04.098.128.064.2l-.173.773a.325.325 0 0 1-.138.195c-.02.012-.05.008-.074 0a1.28 1.28 0 0 0-.931.152 1.17 1.17 0 0 0-.706 1.037c0 .395.208.515.907.53.935 0 1.337.423 1.348 1.362a3.346 3.346 0 0 1-1.228 2.53zm5.293-1.45a.201.201 0 0 1-.078.194L22.9 25.558c-.024.02-.06.023-.087.007s-.04-.05-.033-.08v-.66a.184.184 0 0 1 .116-.162l2.516-1.507c.024-.02.06-.023.087-.007s.04.05.033.08v.582zM27.288 9.06l-9.562 5.906c-1.193.706-2.07 1.478-2.07 2.914v11.778c0 .86.353 1.4.882 1.58a3.14 3.14 0 0 1-.53.053 3.13 3.13 0 0 1-1.595-.441L4.308 24.853A3.3 3.3 0 0 1 2.706 22V10.002a3.304 3.304 0 0 1 1.602-2.858l10.105-5.998c.98-.58 2.196-.58 3.176 0l10.105 5.998c.833.504 1.4 1.35 1.552 2.3-.328-.713-1.083-.9-1.962-.395h.003z`}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,w.jsx)(`svg`,{...e,viewBox:`0 0 32 32`,children:n}),t[1]=e,t[2]=r),r},Ye=e=>{let t=(0,C.c)(5),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n={flex:`none`,lineHeight:`1`},t[0]=n):n=t[0];let r,i;t[1]===Symbol.for(`react.memo_cache_sentinel`)?(r=(0,w.jsx)(`title`,{children:`Codex`}),i=(0,w.jsx)(`path`,{clipRule:`evenodd`,d:`M8.086.457a6.105 6.105 0 013.046-.415c1.333.153 2.521.72 3.564 1.7a.117.117 0 00.107.029c1.408-.346 2.762-.224 4.061.366l.063.03.154.076c1.357.703 2.33 1.77 2.918 3.198.278.679.418 1.388.421 2.126a5.655 5.655 0 01-.18 1.631.167.167 0 00.04.155 5.982 5.982 0 011.578 2.891c.385 1.901-.01 3.615-1.183 5.14l-.182.22a6.063 6.063 0 01-2.934 1.851.162.162 0 00-.108.102c-.255.736-.511 1.364-.987 1.992-1.199 1.582-2.962 2.462-4.948 2.451-1.583-.008-2.986-.587-4.21-1.736a.145.145 0 00-.14-.032c-.518.167-1.04.191-1.604.185a5.924 5.924 0 01-2.595-.622 6.058 6.058 0 01-2.146-1.781c-.203-.269-.404-.522-.551-.821a7.74 7.74 0 01-.495-1.283 6.11 6.11 0 01-.017-3.064.166.166 0 00.008-.074.115.115 0 00-.037-.064 5.958 5.958 0 01-1.38-2.202 5.196 5.196 0 01-.333-1.589 6.915 6.915 0 01.188-2.132c.45-1.484 1.309-2.648 2.577-3.493.282-.188.55-.334.802-.438.286-.12.573-.22.861-.304a.129.129 0 00.087-.087A6.016 6.016 0 015.635 2.31C6.315 1.464 7.132.846 8.086.457zm-.804 7.85a.848.848 0 00-1.473.842l1.694 2.965-1.688 2.848a.849.849 0 001.46.864l1.94-3.272a.849.849 0 00.007-.854l-1.94-3.393zm5.446 6.24a.849.849 0 000 1.695h4.848a.849.849 0 000-1.696h-4.848z`}),t[1]=r,t[2]=i):(r=t[1],i=t[2]);let a;return t[3]===e?a=t[4]:(a=(0,w.jsxs)(`svg`,{...e,fill:`#fff`,fillRule:`evenodd`,style:n,viewBox:`0 0 24 24`,children:[r,i]}),t[3]=e,t[4]=a),a},Xe=e=>{let t=(0,C.c)(7),n,r,i,a,o;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M205.593 167.181c3.26-1.836 4.373-5.904 2.493-9.087-1.88-3.18-6.045-4.271-9.304-2.435l-88.946 50.154-88.619-49.968c-3.256-1.836-7.42-.748-9.304 2.435-1.88 3.183-.763 7.251 2.493 9.087l91.766 51.74a6.932 6.932 0 0 0 5.295.632 6.967 6.967 0 0 0 2.364-.815l91.762-51.743Z`,clipRule:`evenodd`}),r=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M214.739 114.135c.468-2.808-.852-5.733-3.532-7.236l-97.01-54.436a7.326 7.326 0 0 0-2.463-.85 7.342 7.342 0 0 0-5.599.66L9.122 106.71c-2.821 1.584-4.134 4.746-3.439 7.685-.305 2.421.645 4.954 3.472 6.548l97.01 54.699a7.338 7.338 0 0 0 5.602.665 7.27 7.27 0 0 0 2.495-.858l97.014-54.703c2.851-1.608 3.793-4.17 3.463-6.61Zm-20.026-.291-84.718-47.537-84.67 47.512 84.718 47.767 84.67-47.742Z`,clipRule:`evenodd`}),i=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M216.215 72.942c3.62-2.04 4.86-6.557 2.769-10.092-2.088-3.531-6.714-4.743-10.333-2.704l-98.782 55.7-98.414-55.493c-3.62-2.043-8.245-.83-10.333 2.704C-.97 66.588.27 71.11 3.89 73.15L105.8 130.61a7.707 7.707 0 0 0 5.885.698 7.654 7.654 0 0 0 2.621-.901l101.909-57.465Z`,clipRule:`evenodd`}),a=(0,w.jsx)(`path`,{fill:`#fff`,d:`m18.906 66.546 90.775-55.407 90.774 55.404-90.774 51.717-90.775-51.714Z`}),o=(0,w.jsx)(`path`,{fill:`#fff`,fillRule:`evenodd`,d:`M216.095 58.37c3.627 2.036 4.883 6.55 2.807 10.085-2.081 3.531-6.706 4.746-10.333 2.711L109.772 15.73 11.335 70.967c-3.627 2.035-8.253.82-10.333-2.712-2.077-3.535-.82-8.048 2.802-10.084L105.718.987a7.712 7.712 0 0 1 5.881-.694 7.7 7.7 0 0 1 2.587.893l101.909 57.185Z`,clipRule:`evenodd`}),t[0]=n,t[1]=r,t[2]=i,t[3]=a,t[4]=o):(n=t[0],r=t[1],i=t[2],a=t[3],o=t[4]);let s;return t[5]===e?s=t[6]:(s=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 220 220`,fill:`none`,children:[n,r,i,a,o]}),t[5]=e,t[6]=s),s},Ze=e=>{let t=(0,C.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`none`,stroke:`#FFF`,strokeWidth:`10`,d:`M15 5h178a10 10 0 0 1 10 10v98a10 10 0 0 1-10 10H15a10 10 0 0 1-10-10V15A10 10 0 0 1 15 5z`}),r=(0,w.jsx)(`path`,{fill:`#FFF`,d:`M30 98V30h20l20 25 20-25h20v68H90V59L70 84 50 59v39H30zm125 0-30-33h20V30h20v35h20l-30 33z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 208 128`,xmlSpace:`preserve`,children:[n,r]}),t[2]=e,t[3]=i),i},Qe=e=>{let t=(0,C.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsxs)(`svg`,{viewBox:`0 0 512 512`,fill:`none`,children:[(0,w.jsx)(`rect`,{width:`512`,height:`512`,fill:`#131010`}),(0,w.jsx)(`path`,{d:`M320 224V352H192V224H320Z`,fill:`#5A5858`}),(0,w.jsx)(`path`,{fillRule:`evenodd`,clipRule:`evenodd`,d:`M384 416H128V96H384V416ZM320 160H192V352H320V160Z`,fill:`white`})]}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,w.jsx)(`svg`,{...e,xmlnsXlink:`http://www.w3.org/1999/xlink`,viewBox:`0 0 512 512`,children:n}),t[1]=e,t[2]=r),r};function $e(e){let t=(0,C.c)(4),n,r;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`path`,{fill:`currentColor`,fillRule:`evenodd`,d:`M165.29 165.29H517.36V400H400V517.36H282.65V634.72H165.29ZM282.65 282.65V400H400V282.65Z`}),r=(0,w.jsx)(`path`,{fill:`currentColor`,d:`M517.36 400H634.72V634.72H517.36Z`}),t[0]=n,t[1]=r):(n=t[0],r=t[1]);let i;return t[2]===e?i=t[3]:(i=(0,w.jsxs)(`svg`,{...e,viewBox:`0 0 800 800`,"aria-hidden":`true`,focusable:`false`,children:[n,r]}),t[2]=e,t[3]=i),i}var et=e=>{let t=(0,C.c)(3),n;t[0]===Symbol.for(`react.memo_cache_sentinel`)?(n=(0,w.jsx)(`g`,{fill:`none`,fillRule:`evenodd`,children:(0,w.jsx)(`g`,{transform:`translate(-227, -256)`,fill:`#58C4DC`,fillRule:`nonzero`,children:(0,w.jsxs)(`g`,{transform:`translate(227, 256)`,children:[(0,w.jsx)(`path`,{d:`M285.5,201 C255.400481,201 231,225.400481 231,255.5 C231,285.599519 255.400481,310 285.5,310 C315.599519,310 340,285.599519 340,255.5 C340,225.400481 315.599519,201 285.5,201`,id:`Path`}),(0,w.jsx)(`path`,{d:`M568.959856,255.99437 C568.959856,213.207656 529.337802,175.68144 466.251623,150.985214 C467.094645,145.423543 467.85738,139.922107 468.399323,134.521063 C474.621631,73.0415145 459.808523,28.6686204 426.709856,9.5541429 C389.677085,-11.8291748 337.36955,3.69129898 284.479928,46.0162134 C231.590306,3.69129898 179.282771,-11.8291748 142.25,9.5541429 C109.151333,28.6686204 94.3382249,73.0415145 100.560533,134.521063 C101.102476,139.922107 101.845139,145.443621 102.708233,151.02537 C97.4493791,153.033193 92.2908847,155.161486 87.3331099,157.39017 C31.0111824,182.708821 0,217.765415 0,255.99437 C0,298.781084 39.6220545,336.307301 102.708233,361.003527 C101.845139,366.565197 101.102476,372.066633 100.560533,377.467678 C94.3382249,438.947226 109.151333,483.32012 142.25,502.434597 C153.629683,508.887578 166.52439,512.186771 179.603923,511.991836 C210.956328,511.991836 247.567589,495.487529 284.479928,465.972527 C321.372196,495.487529 358.003528,511.991836 389.396077,511.991836 C402.475265,512.183856 415.36922,508.884856 426.75,502.434597 C459.848667,483.32012 474.661775,438.947226 468.439467,377.467678 C467.897524,372.066633 467.134789,366.565197 466.291767,361.003527 C529.377946,336.347457 569,298.761006 569,255.99437 M389.155214,27.1025182 C397.565154,26.899606 405.877839,28.9368502 413.241569,33.0055186 C436.223966,46.2772304 446.540955,82.2775015 441.522965,131.770345 C441.181741,135.143488 440.780302,138.556788 440.298575,141.990165 C414.066922,134.08804 387.205771,128.452154 360.010724,125.144528 C343.525021,103.224055 325.192524,82.7564475 305.214266,63.9661533 C336.586743,39.7116483 366.032313,27.1025182 389.135142,27.1025182 M378.356498,310.205598 C368.204912,327.830733 357.150626,344.919965 345.237759,361.405091 C325.045049,363.479997 304.758818,364.51205 284.459856,364.497299 C264.167589,364.51136 243.888075,363.479308 223.702025,361.405091 C211.820914,344.919381 200.80007,327.83006 190.683646,310.205598 C180.532593,292.629285 171.306974,274.534187 163.044553,255.99437 C171.306974,237.454554 180.532593,219.359455 190.683646,201.783142 C200.784121,184.229367 211.770999,167.201087 223.601665,150.764353 C243.824636,148.63809 264.145559,147.579168 284.479928,147.591877 C304.772146,147.579725 325.051559,148.611772 345.237759,150.68404 C357.109048,167.14607 368.136094,184.201112 378.27621,201.783142 C388.419418,219.363718 397.644825,237.458403 405.915303,255.99437 C397.644825,274.530337 388.419418,292.625022 378.27621,310.205598 M419.724813,290.127366 C426.09516,307.503536 431.324985,325.277083 435.380944,343.334682 C417.779633,348.823635 399.836793,353.149774 381.668372,356.285142 C388.573127,345.871232 395.263781,335.035679 401.740334,323.778483 C408.143291,312.655143 414.144807,301.431411 419.805101,290.207679 M246.363271,390.377981 C258.848032,391.140954 271.593728,391.582675 284.5,391.582675 C297.406272,391.582675 310.232256,391.140954 322.737089,390.377981 C310.880643,404.583418 298.10766,417.997563 284.5,430.534446 C270.921643,417.999548 258.18192,404.585125 246.363271,390.377981 Z M187.311556,356.244986 C169.137286,353.123646 151.187726,348.810918 133.578912,343.334682 C137.618549,325.305649 142.828222,307.559058 149.174827,290.207679 C154.754833,301.431411 160.736278,312.655143 167.239594,323.778483 C173.74291,334.901824 180.467017,345.864539 187.311556,356.285142 M149.174827,221.760984 C142.850954,204.473938 137.654787,186.794745 133.619056,168.834762 C151.18418,163.352378 169.085653,159.013101 187.211197,155.844146 C180.346585,166.224592 173.622478,176.986525 167.139234,188.210257 C160.65599,199.433989 154.734761,210.517173 149.074467,221.760984 M322.616657,121.590681 C310.131896,120.827708 297.3862,120.385987 284.379568,120.385987 C271.479987,120.385987 258.767744,120.787552 246.242839,121.590681 C258.061488,107.383537 270.801211,93.9691137 284.379568,81.4342157 C297.99241,93.9658277 310.765727,107.380324 322.616657,121.590681 Z M401.70019,188.210257 C395.196875,176.939676 388.472767,166.09743 381.527868,155.68352 C399.744224,158.819049 417.734224,163.151949 435.380944,168.654058 C431.331963,186.680673 426.122466,204.426664 419.785029,221.781062 C414.205023,210.55733 408.203506,199.333598 401.720262,188.230335 M127.517179,131.790423 C122.438973,82.3176579 132.816178,46.2973086 155.778503,33.0255968 C163.144699,28.9632474 171.455651,26.9264282 179.864858,27.1225964 C202.967687,27.1225964 232.413257,39.7317265 263.785734,63.9862316 C243.794133,82.7898734 225.448298,103.270812 208.949132,125.204763 C181.761691,128.528025 154.90355,134.14313 128.661281,141.990165 C128.199626,138.556788 127.778115,135.163566 127.456963,131.790423 M98.4529773,182.106474 C101.54406,180.767925 104.695358,179.429376 107.906872,178.090828 C114.220532,204.735668 122.781793,230.7969 133.498624,255.99437 C122.761529,281.241316 114.193296,307.357063 107.8868,334.058539 C56.7434387,313.076786 27.0971497,284.003505 27.0971497,255.99437 C27.0971497,229.450947 53.1907013,202.526037 98.4529773,182.106474 Z M155.778503,478.963143 C132.816178,465.691432 122.438973,429.671082 127.517179,380.198317 C127.838331,376.825174 128.259842,373.431953 128.721497,369.978497 C154.953686,377.878517 181.814655,383.514365 209.009348,386.824134 C225.500295,408.752719 243.832321,429.233234 263.805806,448.042665 C220.069,481.834331 180.105722,492.97775 155.838719,478.963143 M441.502893,380.198317 C446.520883,429.691161 436.203894,465.691432 413.221497,478.963143 C388.974566,493.017906 348.991216,481.834331 305.274481,448.042665 C325.241364,429.232737 343.566681,408.752215 360.050868,386.824134 C387.245915,383.516508 414.107066,377.880622 440.338719,369.978497 C440.820446,373.431953 441.221885,376.825174 441.563109,380.198317 M461.193488,334.018382 C454.869166,307.332523 446.294494,281.231049 435.561592,255.99437 C446.289797,230.744081 454.857778,204.629101 461.173416,177.930202 C512.216417,198.911955 541.942994,227.985236 541.942994,255.99437 C541.942994,284.003505 512.296705,313.076786 461.153344,334.058539`,id:`Shape`})]})})}),t[0]=n):n=t[0];let r;return t[1]===e?r=t[2]:(r=(0,w.jsx)(`svg`,{...e,viewBox:`0 0 569 512`,xmlnsXlink:`http://www.w3.org/1999/xlink`,children:n}),t[1]=e,t[2]=r),r},tt=new Map,nt=new Map,rt=new Map,it=new Set;function at(e,t){e=Array.isArray(e)?e:[e];for(let n of e){if(it.has(n.name))continue;let e=tt.get(n.name);e??(e=n,tt.set(n.name,e)),it.add(e.name),t.loadLanguageSync(e.data)}}function ot(){return typeof WorkerGlobalScope<`u`&&typeof self<`u`&&self instanceof WorkerGlobalScope}var T=class extends Error{constructor(e){super(e),this.name=`ShikiError`}};function st(e){return ct(e)}function ct(e){return Array.isArray(e)?lt(e):e instanceof RegExp?e:typeof e==`object`?ut(e):e}function lt(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=ct(e[n]);return t}function ut(e){let t={};for(let n in e)t[n]=ct(e[n]);return t}function dt(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}function ft(e){let t=~e.lastIndexOf(`/`)||~e.lastIndexOf(`\\`);return t===0?e:~t===e.length-1?ft(e.substring(0,e.length-1)):e.substr(~t+1)}var pt=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,mt=class{static hasCaptures(e){return e===null?!1:(pt.lastIndex=0,pt.test(e))}static replaceCaptures(e,t,n){return e.replace(pt,(e,r,i,a)=>{let o=n[parseInt(r||i,10)];if(o){let e=t.substring(o.start,o.end);for(;e[0]===`.`;)e=e.substring(1);switch(a){case`downcase`:return e.toLowerCase();case`upcase`:return e.toUpperCase();default:return e}}else return e})}};function ht(e,t){return e<t?-1:+(e>t)}function gt(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let r=0;r<n;r++){let n=ht(e[r],t[r]);if(n!==0)return n}return 0}return n-r}function _t(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function vt(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,`\\$&`)}var yt=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},bt=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(Tt(e),t)}static createFromParsedTheme(e,t){return Dt(e,t)}_cachedMatchRoot=new yt(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>St(e.parent,t.parentScopes));return n?new wt(n.fontStyle,n.foreground,n.background):null}},xt=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let r of n)t=new e(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new e(n,t[r]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(` `)}extends(e){return this===e?!0:this.parent===null?!1:this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}};function St(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],i=!1;if(r===`>`){if(n===t.length-1)return!1;r=t[++n],i=!0}for(;e&&!Ct(e.scopeName,r);){if(i)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function Ct(e,t){return t===e||e.startsWith(t)&&e[t.length]===`.`}var wt=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function Tt(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let e=0,i=t.length;e<i;e++){let i=t[e];if(!i.settings)continue;let a;if(typeof i.scope==`string`){let e=i.scope;e=e.replace(/^[,]+/,``),e=e.replace(/[,]+$/,``),a=e.split(`,`)}else a=Array.isArray(i.scope)?i.scope:[``];let o=-1;if(typeof i.settings.fontStyle==`string`){o=0;let e=i.settings.fontStyle.split(` `);for(let t=0,n=e.length;t<n;t++)switch(e[t]){case`italic`:o|=1;break;case`bold`:o|=2;break;case`underline`:o|=4;break;case`strikethrough`:o|=8;break}}let s=null;typeof i.settings.foreground==`string`&&_t(i.settings.foreground)&&(s=i.settings.foreground);let c=null;typeof i.settings.background==`string`&&_t(i.settings.background)&&(c=i.settings.background);for(let t=0,i=a.length;t<i;t++){let i=a[t].trim().split(` `),l=i[i.length-1],u=null;i.length>1&&(u=i.slice(0,i.length-1),u.reverse()),n[r++]=new Et(l,u,e,o,s,c)}}return n}var Et=class{constructor(e,t,n,r,i,a){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=i,this.background=a}},E=(e=>(e[e.NotSet=-1]=`NotSet`,e[e.None=0]=`None`,e[e.Italic=1]=`Italic`,e[e.Bold=2]=`Bold`,e[e.Underline=4]=`Underline`,e[e.Strikethrough=8]=`Strikethrough`,e))(E||{});function Dt(e,t){e.sort((e,t)=>{let n=ht(e.scope,t.scope);return n!==0||(n=gt(e.parentScopes,t.parentScopes),n!==0)?n:e.index-t.index});let n=0,r=`#000000`,i=`#ffffff`;for(;e.length>=1&&e[0].scope===``;){let t=e.shift();t.fontStyle!==-1&&(n=t.fontStyle),t.foreground!==null&&(r=t.foreground),t.background!==null&&(i=t.background)}let a=new Ot(t),o=new wt(n,a.getId(r),a.getId(i)),s=new jt(new At(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];s.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new bt(a,o,s)}var Ot=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},kt=Object.freeze([]),At=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||kt,this.fontStyle=n,this.foreground=r,this.background=i}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,r){this.scopeDepth>e?console.log(`how did this happen?`):this.scopeDepth=e,t!==-1&&(this.fontStyle=t),n!==0&&(this.foreground=n),r!==0&&(this.background=r)}},jt=class e{constructor(e,t=[],n={}){this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}_rulesWithParentScopes;static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,r=0;for(;e.parentScopes[n]===`>`&&n++,t.parentScopes[r]===`>`&&r++,!(n>=e.parentScopes.length||r>=t.parentScopes.length);){let i=t.parentScopes[r].length-e.parentScopes[n].length;if(i!==0)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(t!==``){let e=t.indexOf(`.`),n,r;if(e===-1?(n=t,r=``):(n=t.substring(0,e),r=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(r)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,o){if(n===``){this._doInsertHere(t,r,i,a,o);return}let s=n.indexOf(`.`),c,l;s===-1?(c=n,l=``):(c=n.substring(0,s),l=n.substring(s+1));let u;this._children.hasOwnProperty(c)?u=this._children[c]:(u=new e(this._mainRule.clone(),At.cloneArr(this._rulesWithParentScopes)),this._children[c]=u),u.insert(t+1,l,r,i,a,o)}_doInsertHere(e,t,n,r,i){if(t===null){this._mainRule.acceptOverwrite(e,n,r,i);return}for(let a=0,o=this._rulesWithParentScopes.length;a<o;a++){let o=this._rulesWithParentScopes[a];if(gt(o.parentScopes,t)===0){o.acceptOverwrite(e,n,r,i);return}}n===-1&&(n=this._mainRule.fontStyle),r===0&&(r=this._mainRule.foreground),i===0&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new At(e,t,n,r,i))}},Mt=class e{static toBinaryStr(e){return e.toString(2).padStart(32,`0`)}static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t),a=e.getForeground(t),o=e.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:a,background:o})}static getLanguageId(e){return(e&255)>>>0}static getTokenType(e){return(e&768)>>>8}static containsBalancedBrackets(e){return(e&1024)!=0}static getFontStyle(e){return(e&30720)>>>11}static getForeground(e){return(e&16744448)>>>15}static getBackground(e){return(e&4278190080)>>>24}static set(t,n,r,i,a,o,s){let c=e.getLanguageId(t),l=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),d=e.getFontStyle(t),f=e.getForeground(t),p=e.getBackground(t);return n!==0&&(c=n),r!==8&&(l=Pt(r)),i!==null&&(u=+!!i),a!==-1&&(d=a),o!==0&&(f=o),s!==0&&(p=s),(c<<0|l<<8|u<<10|d<<11|f<<15|p<<24)>>>0}};function Nt(e){return e}function Pt(e){return e}function Ft(e,t){let n=[],r=Lt(e),i=r.next();for(;i!==null;){let e=0;if(i.length===2&&i.charAt(1)===`:`){switch(i.charAt(0)){case`R`:e=1;break;case`L`:e=-1;break;default:console.log(`Unknown priority ${i} in scope selector`)}i=r.next()}let t=o();if(n.push({matcher:t,priority:e}),i!==`,`)break;i=r.next()}return n;function a(){if(i===`-`){i=r.next();let e=a();return t=>!!e&&!e(t)}if(i===`(`){i=r.next();let e=s();return i===`)`&&(i=r.next()),e}if(It(i)){let e=[];do e.push(i),i=r.next();while(It(i));return n=>t(e,n)}return null}function o(){let e=[],t=a();for(;t;)e.push(t),t=a();return t=>e.every(e=>e(t))}function s(){let e=[],t=o();for(;t&&(e.push(t),i===`|`||i===`,`);){do i=r.next();while(i===`|`||i===`,`);t=o()}return t=>e.some(e=>e(t))}}function It(e){return!!e&&!!e.match(/[\w\.:]+/)}function Lt(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;let r=n[0];return n=t.exec(e),r}}}function Rt(e){typeof e.dispose==`function`&&e.dispose()}var zt=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Bt=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Vt=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Ht=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new zt(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new Vt;for(let n of e)Ut(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof zt){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Ut(e,t,n,r){let i=n.lookup(e.scopeName);if(!i){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let a=n.lookup(t);e instanceof zt?Gt({baseGrammar:a,selfGrammar:i},r):Wt(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let o=n.injections(e.scopeName);if(o)for(let e of o)r.add(new zt(e))}function Wt(e,t,n){if(t.repository&&t.repository[e]){let r=t.repository[e];Kt([r],t,n)}}function Gt(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Kt(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Kt(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Kt(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?dt({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Kt(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=Qt(i);switch(a.kind){case 0:Gt({...t,selfGrammar:t.baseGrammar},n);break;case 1:Gt(t,n);break;case 2:Wt(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let r=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(r){let i={baseGrammar:t.baseGrammar,selfGrammar:r,repository:e};a.kind===4?Wt(a.ruleName,i,n):Gt(i,n)}else a.kind===4?n.add(new Bt(a.scopeName,a.ruleName)):n.add(new zt(a.scopeName));break}}}var qt=class{kind=0},Jt=class{kind=1},Yt=class{constructor(e){this.ruleName=e}kind=2},Xt=class{constructor(e){this.scopeName=e}kind=3},Zt=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function Qt(e){if(e===`$base`)return new qt;if(e===`$self`)return new Jt;let t=e.indexOf(`#`);return t===-1?new Xt(e):t===0?new Yt(e.substring(1)):new Zt(e.substring(0,t),e.substring(t+1))}var $t=/\\(\d+)/,en=/\\(\d+)/g,tn=-1,nn=-2;function rn(e){return e}function an(e){return e}var on=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=mt.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=mt.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${ft(this.$location.filename)}:${this.$location.line}`:`unknown`;return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:mt.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:mt.replaceCaptures(this._contentName,e,t)}},sn=class extends on{retokenizeCapturedWithRuleId;constructor(e,t,n,r,i){super(e,t,n,r),this.retokenizeCapturedWithRuleId=i}dispose(){}collectPatterns(e,t){throw Error(`Not supported!`)}compile(e,t){throw Error(`Not supported!`)}compileAG(e,t,n,r){throw Error(`Not supported!`)}},cn=class extends on{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new pn(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ln=class extends on{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,r),this.patterns=i.patterns,this.hasMissingPatterns=i.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new mn,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},un=class extends on{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,o,s,c,l){super(e,t,n,r),this._begin=new pn(i,this.id),this.beginCaptures=a,this._end=new pn(o||`￿`,-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=s,this.applyEndPatternLast=c||!1,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},dn=class extends on{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,o,s,c){super(e,t,n,r),this._begin=new pn(i,this.id),this.beginCaptures=a,this.whileCaptures=s,this._while=new pn(o,nn),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&=(this._cachedCompiledPatterns.dispose(),null),this._cachedCompiledWhilePatterns&&=(this._cachedCompiledWhilePatterns.dispose(),null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new mn;for(let t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new mn,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||`￿`),this._cachedCompiledWhilePatterns}},fn=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new sn(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new cn(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(t.begin===void 0){t.repository&&(r=dt({},r,t.repository));let i=t.patterns;return i===void 0&&t.include&&(i=[{include:t.include}]),new ln(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new dn(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,r),e._compilePatterns(t.patterns,n,r)):new un(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,e._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let i=[];if(t){let a=0;for(let e in t){if(e===`$vscodeTextmateLocation`)continue;let t=parseInt(e,10);t>a&&(a=t)}for(let e=0;e<=a;e++)i[e]=null;for(let a in t){if(a===`$vscodeTextmateLocation`)continue;let o=parseInt(a,10),s=0;t[a].patterns&&(s=e.getCompiledRuleId(t[a],n,r)),i[o]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,s)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,o=t.length;a<o;a++){let o=t[a],s=-1;if(o.include){let t=Qt(o.include);switch(t.kind){case 0:case 1:s=e.getCompiledRuleId(r[o.include],n,r);break;case 2:let i=r[t.ruleName];i&&(s=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,c=t.kind===4?t.ruleName:null,l=n.getExternalGrammar(a,r);if(l)if(c){let t=l.repository[c];t&&(s=e.getCompiledRuleId(t,n,l.repository))}else s=e.getCompiledRuleId(l.repository.$self,n,l.repository);break}}else s=e.getCompiledRuleId(o,n,r);if(s!==-1){let e=n.getRule(s),t=!1;if((e instanceof ln||e instanceof un||e instanceof dn)&&e.hasMissingPatterns&&e.patterns.length===0&&(t=!0),t)continue;i.push(s)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},pn=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&typeof e==`string`){let t=e.length,n=0,r=[],i=!1;for(let a=0;a<t;a++)if(e.charAt(a)===`\\`&&a+1<t){let t=e.charAt(a+1);t===`z`?(r.push(e.substring(n,a)),r.push(`$(?!\\n)(?<!\\n)`),n=a+2):(t===`A`||t===`G`)&&(i=!0),a++}this.hasAnchor=i,n===0?this.source=e:(r.push(e.substring(n,t)),this.source=r.join(``))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,typeof this.source==`string`?this.hasBackReferences=$t.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let n=t.map(t=>e.substring(t.start,t.end));return en.lastIndex=0,this.source.replace(en,(e,t)=>vt(n[parseInt(t,10)]||``))}_buildAnchorCache(){if(typeof this.source!=`string`)throw Error(`This method should only be called if the source is a string`);let e=[],t=[],n=[],r=[],i,a,o,s;for(i=0,a=this.source.length;i<a;i++)o=this.source.charAt(i),e[i]=o,t[i]=o,n[i]=o,r[i]=o,o===`\\`&&i+1<a&&(s=this.source.charAt(i+1),s===`A`?(e[i+1]=`￿`,t[i+1]=`￿`,n[i+1]=`A`,r[i+1]=`A`):s===`G`?(e[i+1]=`￿`,t[i+1]=`G`,n[i+1]=`￿`,r[i+1]=`G`):(e[i+1]=s,t[i+1]=s,n[i+1]=s,r[i+1]=s),i++);return{A0_G0:e.join(``),A0_G1:t.join(``),A1_G0:n.join(``),A1_G1:r.join(``)}}resolveAnchors(e,t){return!this.hasAnchor||!this._anchorCache||typeof this.source!=`string`?this.source:e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},mn=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&=(this._cached.dispose(),null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new hn(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new hn(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},hn=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose==`function`&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(` - `+this.rules[t]+`: `+this.regExps[t]);return e.join(`
3
3
  `)}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},gn=class{constructor(e,t){this.languageId=e,this.tokenType=t}},_n=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new gn(e,8),this._embeddedLanguagesMatcher=new vn(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new gn(0,0);_getBasicScopeAttributes=new yt(e=>new gn(this._scopeToLanguage(e),this._toStandardTokenType(e)));_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(t){let n=t.match(e.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case`comment`:return 1;case`string`:return 2;case`regex`:return 3;case`meta.embedded`:return 0}throw Error(`Unexpected match for standard token type!`)}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},vn=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>vt(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(`)|(`)}))($|\\.)`,``)}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<`u`&&{}.VSCODE_TEXTMATE_DEBUG;var yn=!1,bn=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function xn(e,t,n,r,i,a,o,s){let c=t.content.length,l=!1,u=-1;if(o){let o=Sn(e,t,n,r,i,a);i=o.stack,r=o.linePos,n=o.isFirstLine,u=o.anchorPosition}let d=Date.now();for(;!l;){if(s!==0&&Date.now()-d>s)return new bn(i,!0);f()}return new bn(i,!1);function f(){let o=Cn(e,t,n,r,i,u);if(!o){a.produce(i,c),l=!0;return}let s=o.captureIndices,d=o.matchedRuleId,f=s&&s.length>0?s[0].end>r:!1;if(d===tn){let o=i.getRule(e);a.produce(i,s[0].start),i=i.withContentNameScopesList(i.nameScopesList),kn(e,t,n,i,a,o.endCaptures,s),a.produce(i,s[0].end);let d=i;if(i=i.parent,u=d.getAnchorPos(),!f&&d.getEnterPos()===r){i=d,a.produce(i,c),l=!0;return}}else{let o=e.getRule(d);a.produce(i,s[0].start);let p=i,m=o.getName(t.content,s),h=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(d,r,u,s[0].end===c,null,h,h),o instanceof un){let r=o;kn(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.endHasBackReferences&&(i=i.withEndRule(r.getEndWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(o instanceof dn){let r=o;kn(e,t,n,i,a,r.beginCaptures,s),a.produce(i,s[0].end),u=s[0].end;let d=r.getContentName(t.content,s),m=h.pushAttributed(d,e);if(i=i.withContentNameScopesList(m),r.whileHasBackReferences&&(i=i.withEndRule(r.getWhileWithResolvedBackReferences(t.content,s))),!f&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,c),l=!0;return}}else if(kn(e,t,n,i,a,o.captures,s),a.produce(i,s[0].end),i=i.pop(),!f){i=i.safePop(),a.produce(i,c),l=!0;return}}s[0].end>r&&(r=s[0].end,n=!1)}}function Sn(e,t,n,r,i,a){let o=i.beginRuleCapturedEOL?0:-1,s=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof dn&&s.push({rule:n,stack:t})}for(let c=s.pop();c;c=s.pop()){let{ruleScanner:s,findOptions:l}=Dn(c.rule,e,c.stack.endRule,n,r===o),u=s.findNextMatchSync(t,r,l);if(u){if(u.ruleId!==nn){i=c.stack.pop();break}u.captureIndices&&u.captureIndices.length&&(a.produce(c.stack,u.captureIndices[0].start),kn(e,t,n,c.stack,a,c.rule.whileCaptures,u.captureIndices),a.produce(c.stack,u.captureIndices[0].end),o=u.captureIndices[0].end,u.captureIndices[0].end>r&&(r=u.captureIndices[0].end,n=!1))}else{i=c.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:o,isFirstLine:n}}function Cn(e,t,n,r,i,a){let o=wn(e,t,n,r,i,a),s=e.getInjections();if(s.length===0)return o;let c=Tn(s,e,t,n,r,i,a);if(!c)return o;if(!o)return c;let l=o.captureIndices[0].start,u=c.captureIndices[0].start;return u<l||c.priorityMatch&&u===l?c:o}function wn(e,t,n,r,i,a){let{ruleScanner:o,findOptions:s}=En(i.getRule(e),e,i.endRule,n,r===a),c=o.findNextMatchSync(t,r,s);return c?{captureIndices:c.captureIndices,matchedRuleId:c.ruleId}:null}function Tn(e,t,n,r,i,a,o){let s=Number.MAX_VALUE,c=null,l,u=0,d=a.contentNameScopesList.getScopeNames();for(let a=0,f=e.length;a<f;a++){let f=e[a];if(!f.matcher(d))continue;let{ruleScanner:p,findOptions:m}=En(t.getRule(f.ruleId),t,null,r,i===o),h=p.findNextMatchSync(n,i,m);if(!h)continue;let g=h.captureIndices[0].start;if(!(g>=s)&&(s=g,c=h.captureIndices,l=h.ruleId,u=f.priority,s===i))break}return c?{priorityMatch:u===-1,captureIndices:c,matchedRuleId:l}:null}function En(e,t,n,r,i){return yn?{ruleScanner:e.compile(t,n),findOptions:On(r,i)}:{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function Dn(e,t,n,r,i){return yn?{ruleScanner:e.compileWhile(t,n),findOptions:On(r,i)}:{ruleScanner:e.compileWhileAG(t,n,r,i),findOptions:0}}function On(e,t){let n=0;return e||(n|=1),t||(n|=4),n}function kn(e,t,n,r,i,a,o){if(a.length===0)return;let s=t.content,c=Math.min(a.length,o.length),l=[],u=o[0].end;for(let t=0;t<c;t++){let c=a[t];if(c===null)continue;let d=o[t];if(d.length===0)continue;if(d.start>u)break;for(;l.length>0&&l[l.length-1].endPos<=d.start;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop();if(l.length>0?i.produceFromScopes(l[l.length-1].scopes,d.start):i.produce(r,d.start),c.retokenizeCapturedWithRuleId){let t=c.getName(s,o),a=r.contentNameScopesList.pushAttributed(t,e),l=c.getContentName(s,o),u=a.pushAttributed(l,e),f=r.push(c.retokenizeCapturedWithRuleId,d.start,-1,!1,null,a,u),p=e.createOnigString(s.substring(0,d.end));xn(e,p,n&&d.start===0,d.start,f,i,!1,0),Rt(p);continue}let f=c.getName(s,o);if(f!==null){let t=(l.length>0?l[l.length-1].scopes:r.contentNameScopesList).pushAttributed(f,e);l.push(new An(t,d.end))}}for(;l.length>0;)i.produceFromScopes(l[l.length-1].scopes,l[l.length-1].endPos),l.pop()}var An=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function jn(e,t,n,r,i,a,o,s){return new Fn(e,t,n,r,i,a,o,s)}function Mn(e,t,n,r,i){let a=Ft(t,Nn),o=fn.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:o,grammar:i,priority:n.priority})}function Nn(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let r=n;r<t.length;r++)if(Pn(t[r],e))return n=r+1,!0;return!1})}function Pn(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]===`.`}var Fn=class{constructor(e,t,n,r,i,a,o,s){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=s,this._basicScopeAttributesProvider=new _n(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=o,this._grammar=In(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i)){let t=Ft(e,Nn);for(let n of t)this._tokenTypeMatchers.push({matcher:n.matcher,type:i[e]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e={lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){let e=r.injections;if(e)for(let n in e)Mn(t,n,e[n],this,r);let i=this._grammarRepository.injections(n);i&&i.forEach(e=>{let n=this.getExternalGrammar(e);if(n){let e=n.injectionSelector;e&&Mn(t,e,n,this,n)}})}return t.sort((e,t)=>e.priority-t.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(rn(t));return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[an(e)]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=In(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){let r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=fn.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let i;if(!t||t===Rn.NULL){i=!0;let e=this._basicScopeAttributesProvider.getDefaultAttributes(),n=this.themeProvider.getDefaults(),r=Mt.set(0,e.languageId,e.tokenType,null,n.fontStyle,n.foregroundId,n.backgroundId),a=this.getRule(this._rootId).getName(null,null),o;o=a?Ln.createRootAndLookUpScopeName(a,r,this):Ln.createRoot(`unknown`,r),t=new Rn(null,this._rootId,-1,-1,!1,null,o,o)}else i=!1,t.reset();e+=`
4
4
  `;let a=this.createOnigString(e),o=a.content.length,s=new Bn(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),c=xn(this,a,i,0,t,s,!0,r);return Rt(a),{lineLength:o,lineTokens:s,ruleStack:c.stack,stoppedEarly:c.stoppedEarly}}};function In(e,t){return e=st(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Ln=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let r=t,i=t?.scopePath??null;for(let t of n)i=xt.push(i,t.scopeNames),r=new e(r,i,t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new xt(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new xt(null,t),o=r.themeProvider.themeMatch(a);return new e(null,a,e.mergeAttributes(n,i,o))}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(` `)}equals(t){return e.equals(this,t)}static equals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}while(!0)}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return n!==null&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),Mt.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(` `)===-1)return e._pushAttributed(this,t,n);let r=t.split(/ /g),i=this;for(let t of r)i=e._pushAttributed(i,t,n);return i}static _pushAttributed(t,n,r){let i=r.getMetadataForScope(n),a=t.scopePath.push(n),o=r.themeProvider.themeMatch(a);return new e(t,a,e.mergeAttributes(t.tokenAttributes,i,o))}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push({encodedTokenAttributes:n.tokenAttributes,scopeNames:n.scopePath.getExtensionIfDefined(n.parent?.scopePath??null)}),n=n.parent;return n===e?t.reverse():void 0}},Rn=class e{constructor(e,t,n,r,i,a,o,s){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=o,this.contentNameScopesList=s,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=r}_stackElementBrand=void 0;static NULL=new e(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:e._equals(this,t)}static _equals(e,t){return e===t?!0:this._structuralEquals(e,t)?Ln.equals(e.contentNameScopesList,t.contentNameScopesList):!1}static _structuralEquals(e,t){do{if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}while(!0)}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){e._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,i,a,o,s){return new e(this,t,n,r,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),`[`+e.join(`,`)+`]`}_writeString(e,t){return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(t){return this.endRule===t?this:new e(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){return{ruleId:an(this.ruleId),beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){let r=Ln.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,rn(n.ruleId),n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Ln.fromExtension(r,n.contentNameScopesList))}},zn=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>e===`*`?(this.allowAny=!0,[]):Ft(e,Nn).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>Ft(e,Nn).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},Bn=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let n=e?.tokenAttributes??0,r=!1;if(this.balancedBracketSelectors?.matchesAlways&&(r=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=Mt.set(n,0,Nt(e.type),null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=Mt.set(n,0,8,r,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===n){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(n),this._lastTokenEndIndex=t;return}let n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},Vn=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,i){if(!this._grammars.has(e)){let a=this._rawGrammars.get(e);if(!a)return null;this._grammars.set(e,jn(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},Hn=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new Vn(bt.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(bt.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new zn(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new Ht(this._syncRegistry,e);for(;a.Q.length>0;)a.Q.map(e=>this._loadSingleGrammar(e.scopeName)),a.processQueue();return this._grammarForScopeName(e,t,n,r,i)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n=typeof this._options.getInjections==`function`?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,r=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,r)}_grammarForScopeName(e,t=0,n=null,r=null,i=null){return this._syncRegistry.grammarForScopeName(e,t,n,r,i)}},Un=Rn.NULL,Wn=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`keygen`,`link`,`meta`,`param`,`source`,`track`,`wbr`],Gn=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Gn.prototype.normal={},Gn.prototype.property={},Gn.prototype.space=void 0;function Kn(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Gn(n,r,t)}function qn(e){return e.toLowerCase()}var D=class{constructor(e,t){this.attribute=t,this.property=e}};D.prototype.attribute=``,D.prototype.booleanish=!1,D.prototype.boolean=!1,D.prototype.commaOrSpaceSeparated=!1,D.prototype.commaSeparated=!1,D.prototype.defined=!1,D.prototype.mustUseProperty=!1,D.prototype.number=!1,D.prototype.overloadedBoolean=!1,D.prototype.property=``,D.prototype.spaceSeparated=!1,D.prototype.space=void 0;var Jn=e({boolean:()=>O,booleanish:()=>k,commaOrSpaceSeparated:()=>M,commaSeparated:()=>Zn,number:()=>A,overloadedBoolean:()=>Xn,spaceSeparated:()=>j}),Yn=0,O=Qn(),k=Qn(),Xn=Qn(),A=Qn(),j=Qn(),Zn=Qn(),M=Qn();function Qn(){return 2**++Yn}var $n=Object.keys(Jn),er=class extends D{constructor(e,t,n,r){let i=-1;if(super(e,t),tr(this,`space`,r),typeof n==`number`)for(;++i<$n.length;){let e=$n[i];tr(this,$n[i],(n&Jn[e])===Jn[e])}}};er.prototype.defined=!0;function tr(e,t,n){n&&(e[t]=n)}function nr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new er(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[qn(r)]=r,n[qn(a.attribute)]=r}return new Gn(t,n,e.space)}var rr=nr({properties:{ariaActiveDescendant:null,ariaAtomic:k,ariaAutoComplete:null,ariaBusy:k,ariaChecked:k,ariaColCount:A,ariaColIndex:A,ariaColSpan:A,ariaControls:j,ariaCurrent:null,ariaDescribedBy:j,ariaDetails:null,ariaDisabled:k,ariaDropEffect:j,ariaErrorMessage:null,ariaExpanded:k,ariaFlowTo:j,ariaGrabbed:k,ariaHasPopup:null,ariaHidden:k,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:j,ariaLevel:A,ariaLive:null,ariaModal:k,ariaMultiLine:k,ariaMultiSelectable:k,ariaOrientation:null,ariaOwns:j,ariaPlaceholder:null,ariaPosInSet:A,ariaPressed:k,ariaReadOnly:k,ariaRelevant:null,ariaRequired:k,ariaRoleDescription:j,ariaRowCount:A,ariaRowIndex:A,ariaRowSpan:A,ariaSelected:k,ariaSetSize:A,ariaSort:null,ariaValueMax:A,ariaValueMin:A,ariaValueNow:A,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function ir(e,t){return t in e?e[t]:t}function ar(e,t){return ir(e,t.toLowerCase())}var or=nr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Zn,acceptCharset:j,accessKey:j,action:null,allow:null,allowFullScreen:O,allowPaymentRequest:O,allowUserMedia:O,alt:null,as:null,async:O,autoCapitalize:null,autoComplete:j,autoFocus:O,autoPlay:O,blocking:j,capture:null,charSet:null,checked:O,cite:null,className:j,cols:A,colSpan:null,content:null,contentEditable:k,controls:O,controlsList:j,coords:A|Zn,crossOrigin:null,data:null,dateTime:null,decoding:null,default:O,defer:O,dir:null,dirName:null,disabled:O,download:Xn,draggable:k,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:O,formTarget:null,headers:j,height:A,hidden:Xn,high:A,href:null,hrefLang:null,htmlFor:j,httpEquiv:j,id:null,imageSizes:null,imageSrcSet:null,inert:O,inputMode:null,integrity:null,is:null,isMap:O,itemId:null,itemProp:j,itemRef:j,itemScope:O,itemType:j,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:O,low:A,manifest:null,max:null,maxLength:A,media:null,method:null,min:null,minLength:A,multiple:O,muted:O,name:null,nonce:null,noModule:O,noValidate:O,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:O,optimum:A,pattern:null,ping:j,placeholder:null,playsInline:O,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:O,referrerPolicy:null,rel:j,required:O,reversed:O,rows:A,rowSpan:A,sandbox:j,scope:null,scoped:O,seamless:O,selected:O,shadowRootClonable:O,shadowRootDelegatesFocus:O,shadowRootMode:null,shape:null,size:A,sizes:null,slot:null,span:A,spellCheck:k,src:null,srcDoc:null,srcLang:null,srcSet:null,start:A,step:null,style:null,tabIndex:A,target:null,title:null,translate:null,type:null,typeMustMatch:O,useMap:null,value:k,width:A,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:j,axis:null,background:null,bgColor:null,border:A,borderColor:null,bottomMargin:A,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:O,declare:O,event:null,face:null,frame:null,frameBorder:null,hSpace:A,leftMargin:A,link:null,longDesc:null,lowSrc:null,marginHeight:A,marginWidth:A,noResize:O,noHref:O,noShade:O,noWrap:O,object:null,profile:null,prompt:null,rev:null,rightMargin:A,rules:null,scheme:null,scrolling:k,standby:null,summary:null,text:null,topMargin:A,valueType:null,version:null,vAlign:null,vLink:null,vSpace:A,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:O,disableRemotePlayback:O,prefix:null,property:null,results:A,security:null,unselectable:null},space:`html`,transform:ar}),sr=nr({attributes:{accentHeight:`accent-height`,alignmentBaseline:`alignment-baseline`,arabicForm:`arabic-form`,baselineShift:`baseline-shift`,capHeight:`cap-height`,className:`class`,clipPath:`clip-path`,clipRule:`clip-rule`,colorInterpolation:`color-interpolation`,colorInterpolationFilters:`color-interpolation-filters`,colorProfile:`color-profile`,colorRendering:`color-rendering`,crossOrigin:`crossorigin`,dataType:`datatype`,dominantBaseline:`dominant-baseline`,enableBackground:`enable-background`,fillOpacity:`fill-opacity`,fillRule:`fill-rule`,floodColor:`flood-color`,floodOpacity:`flood-opacity`,fontFamily:`font-family`,fontSize:`font-size`,fontSizeAdjust:`font-size-adjust`,fontStretch:`font-stretch`,fontStyle:`font-style`,fontVariant:`font-variant`,fontWeight:`font-weight`,glyphName:`glyph-name`,glyphOrientationHorizontal:`glyph-orientation-horizontal`,glyphOrientationVertical:`glyph-orientation-vertical`,hrefLang:`hreflang`,horizAdvX:`horiz-adv-x`,horizOriginX:`horiz-origin-x`,horizOriginY:`horiz-origin-y`,imageRendering:`image-rendering`,letterSpacing:`letter-spacing`,lightingColor:`lighting-color`,markerEnd:`marker-end`,markerMid:`marker-mid`,markerStart:`marker-start`,navDown:`nav-down`,navDownLeft:`nav-down-left`,navDownRight:`nav-down-right`,navLeft:`nav-left`,navNext:`nav-next`,navPrev:`nav-prev`,navRight:`nav-right`,navUp:`nav-up`,navUpLeft:`nav-up-left`,navUpRight:`nav-up-right`,onAbort:`onabort`,onActivate:`onactivate`,onAfterPrint:`onafterprint`,onBeforePrint:`onbeforeprint`,onBegin:`onbegin`,onCancel:`oncancel`,onCanPlay:`oncanplay`,onCanPlayThrough:`oncanplaythrough`,onChange:`onchange`,onClick:`onclick`,onClose:`onclose`,onCopy:`oncopy`,onCueChange:`oncuechange`,onCut:`oncut`,onDblClick:`ondblclick`,onDrag:`ondrag`,onDragEnd:`ondragend`,onDragEnter:`ondragenter`,onDragExit:`ondragexit`,onDragLeave:`ondragleave`,onDragOver:`ondragover`,onDragStart:`ondragstart`,onDrop:`ondrop`,onDurationChange:`ondurationchange`,onEmptied:`onemptied`,onEnd:`onend`,onEnded:`onended`,onError:`onerror`,onFocus:`onfocus`,onFocusIn:`onfocusin`,onFocusOut:`onfocusout`,onHashChange:`onhashchange`,onInput:`oninput`,onInvalid:`oninvalid`,onKeyDown:`onkeydown`,onKeyPress:`onkeypress`,onKeyUp:`onkeyup`,onLoad:`onload`,onLoadedData:`onloadeddata`,onLoadedMetadata:`onloadedmetadata`,onLoadStart:`onloadstart`,onMessage:`onmessage`,onMouseDown:`onmousedown`,onMouseEnter:`onmouseenter`,onMouseLeave:`onmouseleave`,onMouseMove:`onmousemove`,onMouseOut:`onmouseout`,onMouseOver:`onmouseover`,onMouseUp:`onmouseup`,onMouseWheel:`onmousewheel`,onOffline:`onoffline`,onOnline:`ononline`,onPageHide:`onpagehide`,onPageShow:`onpageshow`,onPaste:`onpaste`,onPause:`onpause`,onPlay:`onplay`,onPlaying:`onplaying`,onPopState:`onpopstate`,onProgress:`onprogress`,onRateChange:`onratechange`,onRepeat:`onrepeat`,onReset:`onreset`,onResize:`onresize`,onScroll:`onscroll`,onSeeked:`onseeked`,onSeeking:`onseeking`,onSelect:`onselect`,onShow:`onshow`,onStalled:`onstalled`,onStorage:`onstorage`,onSubmit:`onsubmit`,onSuspend:`onsuspend`,onTimeUpdate:`ontimeupdate`,onToggle:`ontoggle`,onUnload:`onunload`,onVolumeChange:`onvolumechange`,onWaiting:`onwaiting`,onZoom:`onzoom`,overlinePosition:`overline-position`,overlineThickness:`overline-thickness`,paintOrder:`paint-order`,panose1:`panose-1`,pointerEvents:`pointer-events`,referrerPolicy:`referrerpolicy`,renderingIntent:`rendering-intent`,shapeRendering:`shape-rendering`,stopColor:`stop-color`,stopOpacity:`stop-opacity`,strikethroughPosition:`strikethrough-position`,strikethroughThickness:`strikethrough-thickness`,strokeDashArray:`stroke-dasharray`,strokeDashOffset:`stroke-dashoffset`,strokeLineCap:`stroke-linecap`,strokeLineJoin:`stroke-linejoin`,strokeMiterLimit:`stroke-miterlimit`,strokeOpacity:`stroke-opacity`,strokeWidth:`stroke-width`,tabIndex:`tabindex`,textAnchor:`text-anchor`,textDecoration:`text-decoration`,textRendering:`text-rendering`,transformOrigin:`transform-origin`,typeOf:`typeof`,underlinePosition:`underline-position`,underlineThickness:`underline-thickness`,unicodeBidi:`unicode-bidi`,unicodeRange:`unicode-range`,unitsPerEm:`units-per-em`,vAlphabetic:`v-alphabetic`,vHanging:`v-hanging`,vIdeographic:`v-ideographic`,vMathematical:`v-mathematical`,vectorEffect:`vector-effect`,vertAdvY:`vert-adv-y`,vertOriginX:`vert-origin-x`,vertOriginY:`vert-origin-y`,wordSpacing:`word-spacing`,writingMode:`writing-mode`,xHeight:`x-height`,playbackOrder:`playbackorder`,timelineBegin:`timelinebegin`},properties:{about:M,accentHeight:A,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:A,amplitude:A,arabicForm:null,ascent:A,attributeName:null,attributeType:null,azimuth:A,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:A,by:null,calcMode:null,capHeight:A,className:j,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:A,diffuseConstant:A,direction:null,display:null,dur:null,divisor:A,dominantBaseline:null,download:O,dx:null,dy:null,edgeMode:null,editable:null,elevation:A,enableBackground:null,end:null,event:null,exponent:A,externalResourcesRequired:null,fill:null,fillOpacity:A,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:Zn,g2:Zn,glyphName:Zn,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:A,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:A,horizOriginX:A,horizOriginY:A,id:null,ideographic:A,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:A,k:A,k1:A,k2:A,k3:A,k4:A,kernelMatrix:M,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:A,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:A,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:A,overlineThickness:A,paintOrder:null,panose1:null,path:null,pathLength:A,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:j,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:A,pointsAtY:A,pointsAtZ:A,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:M,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:M,rev:M,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:M,requiredFeatures:M,requiredFonts:M,requiredFormats:M,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:A,specularExponent:A,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:A,strikethroughThickness:A,string:null,stroke:null,strokeDashArray:M,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:A,strokeOpacity:A,strokeWidth:null,style:null,surfaceScale:A,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:M,tabIndex:A,tableValues:null,target:null,targetX:A,targetY:A,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:M,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:A,underlineThickness:A,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:A,values:null,vAlphabetic:A,vMathematical:A,vectorEffect:null,vHanging:A,vIdeographic:A,version:null,vertAdvY:A,vertOriginX:A,vertOriginY:A,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:A,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:ir}),cr=nr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),lr=nr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:ar}),ur=nr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),dr=/[A-Z]/g,fr=/-[a-z]/g,pr=/^data[-\w.:]+$/i;function mr(e,t){let n=qn(t),r=t,i=D;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&pr.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(fr,gr);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!fr.test(e)){let n=e.replace(dr,hr);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=er}return new i(r,t)}function hr(e){return`-`+e.toLowerCase()}function gr(e){return e.charAt(1).toUpperCase()}var _r=Kn([rr,or,cr,lr,ur],`html`),vr=Kn([rr,sr,cr,lr,ur],`svg`),yr={}.hasOwnProperty;function br(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&yr.call(t,e)){let n=String(t[e]);i=yr.call(a,n)?a[n]:r.unknown}if(i)return i.call(this,t,...n)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}var xr=/["&'<>`]/g,Sr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Cr=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,wr=/[|\\{}()[\]^$+*?.]/g,Tr=new WeakMap;function Er(e,t){if(e=e.replace(t.subset?Dr(t.subset):xr,r),t.subset||t.escapeOnly)return e;return e.replace(Sr,n).replace(Cr,r);function n(e,n,r){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,r.charCodeAt(n+2),t)}function r(e,n,r){return t.format(e.charCodeAt(0),r.charCodeAt(n+1),t)}}function Dr(e){let t=Tr.get(e);return t||(t=Or(e),Tr.set(e,t)),t}function Or(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(wr,`\\$&`));return RegExp(`(?:`+t.join(`|`)+`)`,`g`)}var kr=/[\dA-Fa-f]/;function Ar(e,t,n){let r=`&#x`+e.toString(16).toUpperCase();return n&&t&&!kr.test(String.fromCharCode(t))?r:r+`;`}var jr=/\d/;function Mr(e,t,n){let r=`&#`+String(e);return n&&t&&!jr.test(String.fromCharCode(t))?r:r+`;`}var Nr=`AElig.AMP.Aacute.Acirc.Agrave.Aring.Atilde.Auml.COPY.Ccedil.ETH.Eacute.Ecirc.Egrave.Euml.GT.Iacute.Icirc.Igrave.Iuml.LT.Ntilde.Oacute.Ocirc.Ograve.Oslash.Otilde.Ouml.QUOT.REG.THORN.Uacute.Ucirc.Ugrave.Uuml.Yacute.aacute.acirc.acute.aelig.agrave.amp.aring.atilde.auml.brvbar.ccedil.cedil.cent.copy.curren.deg.divide.eacute.ecirc.egrave.eth.euml.frac12.frac14.frac34.gt.iacute.icirc.iexcl.igrave.iquest.iuml.laquo.lt.macr.micro.middot.nbsp.not.ntilde.oacute.ocirc.ograve.ordf.ordm.oslash.otilde.ouml.para.plusmn.pound.quot.raquo.reg.sect.shy.sup1.sup2.sup3.szlig.thorn.times.uacute.ucirc.ugrave.uml.uuml.yacute.yen.yuml`.split(`.`),Pr={nbsp:`\xA0`,iexcl:`¡`,cent:`¢`,pound:`£`,curren:`¤`,yen:`¥`,brvbar:`¦`,sect:`§`,uml:`¨`,copy:`©`,ordf:`ª`,laquo:`«`,not:`¬`,shy:`­`,reg:`®`,macr:`¯`,deg:`°`,plusmn:`±`,sup2:`²`,sup3:`³`,acute:`´`,micro:`µ`,para:`¶`,middot:`·`,cedil:`¸`,sup1:`¹`,ordm:`º`,raquo:`»`,frac14:`¼`,frac12:`½`,frac34:`¾`,iquest:`¿`,Agrave:`À`,Aacute:`Á`,Acirc:`Â`,Atilde:`Ã`,Auml:`Ä`,Aring:`Å`,AElig:`Æ`,Ccedil:`Ç`,Egrave:`È`,Eacute:`É`,Ecirc:`Ê`,Euml:`Ë`,Igrave:`Ì`,Iacute:`Í`,Icirc:`Î`,Iuml:`Ï`,ETH:`Ð`,Ntilde:`Ñ`,Ograve:`Ò`,Oacute:`Ó`,Ocirc:`Ô`,Otilde:`Õ`,Ouml:`Ö`,times:`×`,Oslash:`Ø`,Ugrave:`Ù`,Uacute:`Ú`,Ucirc:`Û`,Uuml:`Ü`,Yacute:`Ý`,THORN:`Þ`,szlig:`ß`,agrave:`à`,aacute:`á`,acirc:`â`,atilde:`ã`,auml:`ä`,aring:`å`,aelig:`æ`,ccedil:`ç`,egrave:`è`,eacute:`é`,ecirc:`ê`,euml:`ë`,igrave:`ì`,iacute:`í`,icirc:`î`,iuml:`ï`,eth:`ð`,ntilde:`ñ`,ograve:`ò`,oacute:`ó`,ocirc:`ô`,otilde:`õ`,ouml:`ö`,divide:`÷`,oslash:`ø`,ugrave:`ù`,uacute:`ú`,ucirc:`û`,uuml:`ü`,yacute:`ý`,thorn:`þ`,yuml:`ÿ`,fnof:`ƒ`,Alpha:`Α`,Beta:`Β`,Gamma:`Γ`,Delta:`Δ`,Epsilon:`Ε`,Zeta:`Ζ`,Eta:`Η`,Theta:`Θ`,Iota:`Ι`,Kappa:`Κ`,Lambda:`Λ`,Mu:`Μ`,Nu:`Ν`,Xi:`Ξ`,Omicron:`Ο`,Pi:`Π`,Rho:`Ρ`,Sigma:`Σ`,Tau:`Τ`,Upsilon:`Υ`,Phi:`Φ`,Chi:`Χ`,Psi:`Ψ`,Omega:`Ω`,alpha:`α`,beta:`β`,gamma:`γ`,delta:`δ`,epsilon:`ε`,zeta:`ζ`,eta:`η`,theta:`θ`,iota:`ι`,kappa:`κ`,lambda:`λ`,mu:`μ`,nu:`ν`,xi:`ξ`,omicron:`ο`,pi:`π`,rho:`ρ`,sigmaf:`ς`,sigma:`σ`,tau:`τ`,upsilon:`υ`,phi:`φ`,chi:`χ`,psi:`ψ`,omega:`ω`,thetasym:`ϑ`,upsih:`ϒ`,piv:`ϖ`,bull:`•`,hellip:`…`,prime:`′`,Prime:`″`,oline:`‾`,frasl:`⁄`,weierp:`℘`,image:`ℑ`,real:`ℜ`,trade:`™`,alefsym:`ℵ`,larr:`←`,uarr:`↑`,rarr:`→`,darr:`↓`,harr:`↔`,crarr:`↵`,lArr:`⇐`,uArr:`⇑`,rArr:`⇒`,dArr:`⇓`,hArr:`⇔`,forall:`∀`,part:`∂`,exist:`∃`,empty:`∅`,nabla:`∇`,isin:`∈`,notin:`∉`,ni:`∋`,prod:`∏`,sum:`∑`,minus:`−`,lowast:`∗`,radic:`√`,prop:`∝`,infin:`∞`,ang:`∠`,and:`∧`,or:`∨`,cap:`∩`,cup:`∪`,int:`∫`,there4:`∴`,sim:`∼`,cong:`≅`,asymp:`≈`,ne:`≠`,equiv:`≡`,le:`≤`,ge:`≥`,sub:`⊂`,sup:`⊃`,nsub:`⊄`,sube:`⊆`,supe:`⊇`,oplus:`⊕`,otimes:`⊗`,perp:`⊥`,sdot:`⋅`,lceil:`⌈`,rceil:`⌉`,lfloor:`⌊`,rfloor:`⌋`,lang:`〈`,rang:`〉`,loz:`◊`,spades:`♠`,clubs:`♣`,hearts:`♥`,diams:`♦`,quot:`"`,amp:`&`,lt:`<`,gt:`>`,OElig:`Œ`,oelig:`œ`,Scaron:`Š`,scaron:`š`,Yuml:`Ÿ`,circ:`ˆ`,tilde:`˜`,ensp:` `,emsp:` `,thinsp:` `,zwnj:`‌`,zwj:`‍`,lrm:`‎`,rlm:`‏`,ndash:`–`,mdash:`—`,lsquo:`‘`,rsquo:`’`,sbquo:`‚`,ldquo:`“`,rdquo:`”`,bdquo:`„`,dagger:`†`,Dagger:`‡`,permil:`‰`,lsaquo:`‹`,rsaquo:`›`,euro:`€`},Fr=[`cent`,`copy`,`divide`,`gt`,`lt`,`not`,`para`,`times`],Ir={}.hasOwnProperty,Lr={},Rr;for(Rr in Pr)Ir.call(Pr,Rr)&&(Lr[Pr[Rr]]=Rr);var zr=/[^\dA-Za-z]/;function Br(e,t,n,r){let i=String.fromCharCode(e);if(Ir.call(Lr,i)){let e=Lr[i],a=`&`+e;return n&&Nr.includes(e)&&!Fr.includes(e)&&(!r||t&&t!==61&&zr.test(String.fromCharCode(t)))?a:a+`;`}return``}function Vr(e,t,n){let r=Ar(e,t,n.omitOptionalSemicolons),i;if((n.useNamedReferences||n.useShortestReferences)&&(i=Br(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!i)&&n.useShortestReferences){let i=Mr(e,t,n.omitOptionalSemicolons);i.length<r.length&&(r=i)}return i&&(!n.useShortestReferences||i.length<r.length)?i:r}function Hr(e,t){return Er(e,Object.assign({format:Vr},t))}var Ur=/^>|^->|<!--|-->|--!>|<!-$/g,Wr=[`>`],Gr=[`<`,`>`];function Kr(e,t,n,r){return r.settings.bogusComments?`<?`+Hr(e.value,Object.assign({},r.settings.characterReferences,{subset:Wr}))+`>`:`<!--`+e.value.replace(Ur,i)+`-->`;function i(e){return Hr(e,Object.assign({},r.settings.characterReferences,{subset:Gr}))}}function qr(e,t,n,r){return`<!`+(r.settings.upperDoctype?`DOCTYPE`:`doctype`)+(r.settings.tightDoctype?``:` `)+`html>`}function Jr(e,t){let n=String(e);if(typeof t!=`string`)throw TypeError(`Expected character`);let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}function Yr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}function Xr(e){return e.join(` `).trim()}var Zr=/[ \t\n\f\r]/g;function Qr(e){return typeof e==`object`?e.type===`text`?$r(e.value):!1:$r(e)}function $r(e){return e.replace(Zr,``)===``}var N=ni(1),ei=ni(-1),ti=[];function ni(e){return t;function t(t,n,r){let i=t?t.children:ti,a=(n||0)+e,o=i[a];if(!r)for(;o&&Qr(o);)a+=e,o=i[a];return o}}var ri={}.hasOwnProperty;function ii(e){return t;function t(t,n,r){return ri.call(e,t.tagName)&&e[t.tagName](t,n,r)}}var ai=ii({body:ci,caption:oi,colgroup:oi,dd:fi,dt:di,head:oi,html:si,li:ui,optgroup:mi,option:hi,p:li,rp:pi,rt:pi,tbody:_i,td:bi,tfoot:vi,th:bi,thead:gi,tr:yi});function oi(e,t,n){let r=N(n,t,!0);return!r||r.type!==`comment`&&!(r.type===`text`&&Qr(r.value.charAt(0)))}function si(e,t,n){let r=N(n,t);return!r||r.type!==`comment`}function ci(e,t,n){let r=N(n,t);return!r||r.type!==`comment`}function li(e,t,n){let r=N(n,t);return r?r.type===`element`&&(r.tagName===`address`||r.tagName===`article`||r.tagName===`aside`||r.tagName===`blockquote`||r.tagName===`details`||r.tagName===`div`||r.tagName===`dl`||r.tagName===`fieldset`||r.tagName===`figcaption`||r.tagName===`figure`||r.tagName===`footer`||r.tagName===`form`||r.tagName===`h1`||r.tagName===`h2`||r.tagName===`h3`||r.tagName===`h4`||r.tagName===`h5`||r.tagName===`h6`||r.tagName===`header`||r.tagName===`hgroup`||r.tagName===`hr`||r.tagName===`main`||r.tagName===`menu`||r.tagName===`nav`||r.tagName===`ol`||r.tagName===`p`||r.tagName===`pre`||r.tagName===`section`||r.tagName===`table`||r.tagName===`ul`):!n||!(n.type===`element`&&(n.tagName===`a`||n.tagName===`audio`||n.tagName===`del`||n.tagName===`ins`||n.tagName===`map`||n.tagName===`noscript`||n.tagName===`video`))}function ui(e,t,n){let r=N(n,t);return!r||r.type===`element`&&r.tagName===`li`}function di(e,t,n){let r=N(n,t);return!!(r&&r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`))}function fi(e,t,n){let r=N(n,t);return!r||r.type===`element`&&(r.tagName===`dt`||r.tagName===`dd`)}function pi(e,t,n){let r=N(n,t);return!r||r.type===`element`&&(r.tagName===`rp`||r.tagName===`rt`)}function mi(e,t,n){let r=N(n,t);return!r||r.type===`element`&&r.tagName===`optgroup`}function hi(e,t,n){let r=N(n,t);return!r||r.type===`element`&&(r.tagName===`option`||r.tagName===`optgroup`)}function gi(e,t,n){let r=N(n,t);return!!(r&&r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`))}function _i(e,t,n){let r=N(n,t);return!r||r.type===`element`&&(r.tagName===`tbody`||r.tagName===`tfoot`)}function vi(e,t,n){return!N(n,t)}function yi(e,t,n){let r=N(n,t);return!r||r.type===`element`&&r.tagName===`tr`}function bi(e,t,n){let r=N(n,t);return!r||r.type===`element`&&(r.tagName===`td`||r.tagName===`th`)}var xi=ii({body:wi,colgroup:Ti,head:Ci,html:Si,tbody:Ei});function Si(e){let t=N(e,-1);return!t||t.type!==`comment`}function Ci(e){let t=new Set;for(let n of e.children)if(n.type===`element`&&(n.tagName===`base`||n.tagName===`title`)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||n.type===`element`}function wi(e){let t=N(e,-1,!0);return!t||t.type!==`comment`&&!(t.type===`text`&&Qr(t.value.charAt(0)))&&!(t.type===`element`&&(t.tagName===`meta`||t.tagName===`link`||t.tagName===`script`||t.tagName===`style`||t.tagName===`template`))}function Ti(e,t,n){let r=ei(n,t),i=N(e,-1,!0);return n&&r&&r.type===`element`&&r.tagName===`colgroup`&&ai(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`col`)}function Ei(e,t,n){let r=ei(n,t),i=N(e,-1);return n&&r&&r.type===`element`&&(r.tagName===`thead`||r.tagName===`tbody`)&&ai(r,n.children.indexOf(r),n)?!1:!!(i&&i.type===`element`&&i.tagName===`tr`)}var Di={name:[[`
5
5
  \f\r &/=>`.split(``),`