1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92409],{4655:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.alpha=function(e,t){return u(e,Math.round(255*t))},t.darken=function(e,t){let n=s(e),r=o(e),i=l(e),a=c(e),u=1-t;return h(n*u,r*u,i*u,a)},t.lighten=function(e,t){let n=s(e),r=o(e),i=l(e);return h(n+(255-n)*t,r+(255-r)*t,i+(255-i)*t,c(e))},t.blend=function(e,t,n,r=1){let i=(e,t)=>Math.round((e**(1/r)*(1-n)+t**(1/r)*n)**r),a=i(s(e),s(t));return h(a,i(o(e),o(t)),i(l(e),l(t)),255)},t.getLuminance=function(e){let t=s(e)/255,n=o(e)/255,r=l(e)/255,i=e=>e<=.03928?e/12.92:((e+.055)/1.055)**2.4,a=i(t);return Math.round((.2126*a+.7152*i(n)+.0722*i(r))*1e3)/1e3};let{getRed:s,getGreen:o,getBlue:l,getAlpha:c,setAlpha:u,newColor:h}=a(n(17225))},5774:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),i(n(17225),t),i(n(14553),t),i(n(35733),t),i(n(4655),t)},11688:(e,t,n)=>{"use strict";n.d(t,{d:()=>o});var r=n(68865),i=n(12115),a=n(38237),s=n(3030);function o(e){let t=(0,s.M)(()=>(0,r.OQ)(e)),{isStatic:n}=(0,i.useContext)(a.Q);if(n){let[,n]=(0,i.useState)(e);(0,i.useEffect)(()=>t.on("change",n),[])}return t}},12781:(e,t,n)=>{"use strict";n.d(t,{Ay:()=>z});var r,i=n(12115);String.raw;let a=String.raw,s=(()=>{try{document.createElement("div").animate({opacity:0}
1,{easing:"linear(0, 1)"})}catch{return!1}return!0})(),o="u">typeof CSS&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),l="u">typeof matchMedia?matchMedia("(prefers-reduced-motion: reduce)"):null,c="--_number-flow-d-opacity",u="--_number-flow-d-width",h="--_number-flow-dx",d="--_number-flow-d",p=(()=>{try{return CSS.registerProperty({name:c,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:h,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:u,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:d,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),m="round(nearest, calc(var(--number-flow-mask-height, 0.25em) / 2), 1px)",f=`calc(${m} * 2)`,g="var(--number-flow-mask-width, 0.5em)",b=`calc(${g} / var(--scale-x))`,y="#000 0, transparent 71%",k=a`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:1}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${u}) / var(--width));transform:translateX(var(${h})) scaleX(var(--scale-x));margin:0 calc(-1 * ${g});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${b},#000 calc(100% - ${b}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${f},#000 calc(100% - ${f}),transparent 100% ),radial-gradient(at bottom right,${y}),radial-gradient(at bottom left,${y}),radial-gradient(at top left,${y}),radial-gradient(at top right,${y});-webkit-mask-size:100% calc(100% - ${f} * 2),calc(100% - ${b} * 2) 100%,${b} ${f},${b} ${f},${b} ${f},${b} ${f};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${m} ${g};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${h})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${d})}.digit__num,.number .section::after{padding:${m} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${c}))}`,_=HTMLElement,v=(a`:host{display:inline-block;direction:ltr;white-space:nowrap;line-height:1}span{display:inline-block}:host([data-will-change]) span{will-change:transform}.number,.digit{padding:${m} 0}.symbol{white-space:pre}`,(e,t,n)=>{let r=document.createElement(e),[i,a]=Array.isArray(t)?[void 0,t]:[t,n];return i&&Object.assign(r,i),null==a||a.forEach(e=>r.appendChild(e)),r}),w=o&&s&&p;class S extends _{constructor(){super(),this.created=!1,this.batched=!1;let{animated:e,...t}=this.constructor.defaultProps;this._animated=this.computedAnimated=e,Object.assign(this,t)}get animated(){return this._animated}set animated(e){var t;this.animated!==e&&(this._animated=e,null==(t=this.shadowRoot)||t.getAnimations().forEach(e=>e.finish()))}set data(e){var t;if(null==e)return;let{pre:n,integer:r,fraction:i,post:a,value:s}=e;if(this.created){let o=this._data;this._data=e,this.computedTrend="function"==typeof this.trend?this.trend(o.value,s):this.trend,this.computedAnimated=w&&this._animated&&(!this.respectMotionPreference||!(null!=l&&l.matches))&&this.offsetWidth>0&&this.offsetHeight>0&&"visible"===this.ownerDocument.visibilityState,null==(t=this.plugins)||t.forEach(t=>{var n;return null==(n=t.onUpdate)?void 0:n.call(t,e,o,this)}),this.batched||this.willUpdate(),this._pre.update(n),this._num.update({integer:r,fraction:i}),this._post.update(a),this.batched||this.didUpdate()}else{this._data=e,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}let t=document.createElement("style");this.nonce&&(t.nonce=this.nonce),t.textContent=k,this.shadowRoot.appendChild(t),this._pre=new R(this,n,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new x(this,r,i),this.shadowRoot.appendChild(this._num.el),this._post=new R(this,a,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=e.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.
1willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();let e=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(e=>e.finished)).then(()=>{e.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=e}}S.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class x{constructor(e,t,n,{className:r,...i}={}){this.flow=e,this._integer=new A(e,t,{justify:"right",part:"integer"}),this._fraction=new A(e,n,{justify:"left",part:"fraction"}),this._inner=v("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=v("span",{...i,part:"number",className:`number ${r??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:e,fraction:t}){this._integer.update(e),this._fraction.update(t)}didUpdate(){let e=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();let t=this._prevLeft-e.left,n=this.el.offsetWidth,r=this._prevWidth-n;this.el.style.setProperty("--width",String(n)),this.el.animate({[h]:[`${t}px`,"0px"],[u]:[r,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class C{constructor(e,t,{justify:n,className:r,...i},a){this.flow=e,this.children=new Map,this.onCharRemove=e=>()=>{this.children.delete(e)},this.justify=n;let s=t.map(e=>this.addChar(e).el);this.el=v("span",{...i,className:`section section--justify-${n} ${r??""}`},a?a(s):s)}addChar(e,{startDigitsAtZero:t=!1,...n}={}){let r="integer"===e.type||"fraction"===e.type?new N(this,e.type,t?0:e.value,e.pos,{...n,onRemove:this.onCharRemove(e.key)}):new E(this,e.type,e.value,{...n,onRemove:this.onCharRemove(e.key)});return this.children.set(e.key,r),r}unpop(e){e.el.removeAttribute("inert"),e.el.style.top="",e.el.style[this.justify]=""}pop(e){e.forEach(e=>{var t,n;e.el.style.top=`${e.el.offsetTop}px`,e.el.style[this.justify]=`${t=e.el,"left"===this.justify?t.offsetLeft:((null==(n=t.offsetParent instanceof HTMLElement?t.offsetParent:null)?void 0:n.offsetWidth)??0)-t.offsetWidth-t.offsetLeft}px`}),e.forEach(e=>{e.el.setAttribute("inert",""),e.present=!1})}addNewAndUpdateExisting(e){let t=new Map,n=new Map,r="left"===this.justify,i=r?"prepend":"append";if(function(e,t,{reverse:n=!1}={}){let r=e.length;for(let i=n?r-1:0;n?i>=0:i<r;n?i--:i++)t(e[i],i)}(e,e=>{let r;this.children.has(e.key)?(r=this.children.get(e.key),n.set(e,r),this.unpop(r),r.present=!0):(r=this.addChar(e,{startDigitsAtZero:!0,animateIn:!0}),t.set(e,r)),this.el[i](r.el)},{reverse:r}),this.flow.computedAnimated){let e=this.el.getBoundingClientRect();t.forEach(t=>{t.willUpdate(e)})}t.forEach((e,t)=>{e.update(t.value)}),n.forEach((e,t)=>{e.update(t.value)})}willUpdate(){let e=this.el.getBoundingClientRect();this._prevOffset=e[this.justify],this.children.forEach(t=>t.willUpdate(e))}didUpdate(){let e=this.el.getBoundingClientRect();this.children.forEach(t=>t.didUpdate(e));let t=e[this.justify],n=this._prevOffset-t;n&&this.children.size&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class A extends C{update(e){let t=new Map;this.children.forEach((n,r)=>{e.find(e=>e.key===r)||t.set(r,n),this.unpop(n)}
1),this.addNewAndUpdateExisting(e),t.forEach(e=>{e instanceof N&&e.update(0)}),this.pop(t)}}class R extends C{update(e){let t=new Map;this.children.forEach((n,r)=>{e.find(e=>e.key===r)||t.set(r,n)}),this.pop(t),this.addNewAndUpdateExisting(e)}}class P{constructor(e,t,{onRemove:n,animateIn:r=!1}={}){this.flow=e,this.el=t,this._present=!0,this._remove=()=>{var e;this.el.remove(),null==(e=this._onRemove)||e.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&r&&this.el.animate({[c]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=n}get present(){return this._present}set present(e){if(this._present!==e){if(this._present=e,e?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){e||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",e?"0":"-.999"),this.el.animate({[c]:e?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),e?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class T extends P{constructor(e,t,n,r){super(e.flow,n,r),this.section=e,this.value=t,this.el=n}}class N extends T{constructor(e,t,n,r,i){var a,s;let o=((null==(s=null==(a=e.flow.digits)?void 0:a[r])?void 0:s.max)??9)+1,l=Array.from({length:o}).map((e,t)=>{let r=v("span",{className:"digit__num"},[document.createTextNode(String(t))]);return t!==n&&r.setAttribute("inert",""),r.style.setProperty("--n",String(t)),r}),c=v("span",{part:`digit ${t}-digit`,className:"digit"},l);c.style.setProperty("--current",String(n)),c.style.setProperty("--length",String(o)),super(e,n,c,i),this.pos=r,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=l,this.length=o}willUpdate(e){let t=this.el.getBoundingClientRect();this._prevValue=this.value;let n=t[this.section.justify]-e[this.section.justify],r=t.width/2;this._prevCenter="left"===this.section.justify?n+r:n-r}update(e){this.el.style.setProperty("--current",String(e)),this._numbers.forEach((t,n)=>n===e?t.removeAttribute("inert"):t.setAttribute("inert","")),this.value=e}didUpdate(e){let t=this.el.getBoundingClientRect(),n=t[this.section.justify]-e[this.section.justify],r=t.width/2,i="left"===this.section.justify?n+r:n-r,a=this._prevCenter-i;a&&this.el.animate({transform:[`translateX(${a}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});let s=this.getDelta();s&&(this.el.classList.add("is-spinning"),this.el.animate({[d]:[-s,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var e;if(this.flow.plugins)for(let t of this.flow.plugins){let n=null==(e=t.getDelta)?void 0:e.call(t,this.value,this._prevValue,this);if(null!=n)return n}let t=this.value-this._prevValue,n=this.flow.computedTrend||Math.sign(t);return n<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:n>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:t}}class E extends T{constructor(e,t,n,r){let i=v("span",{className:"symbol__value",textContent:n});super(e,n,v("span",{part:`symbol ${t}`,className:"symbol"},[i]),r),this.type=t,this._children=new Map,this._onChildRemove=e=>()=>{this._children.delete(e)},this._children.set(n,new P(this.flow,i,{onRemove:this._onChildRemove(n)}))}willUpdate(e){if("decimal"===this.type)return;let t=this.el.getBoundingClientRect();this._prevOffset=t[this.section.justify]-e[this.section.justify]}update(e){if(this.value!==e){let t=this._children.get(this.value);t&&(t.present=!1);let n=this._children.get(e);if(n)n.present=!0;else{let t=v("span",{className:"symbol__value",textContent:e});this.el.appendChild(t),this._children.set(e,new P(this.flow,t,{animateIn:!0,onRemove:this._onChildRemove(e)}))}}this.value=e}didUpdate(e){if("decimal"===this.type)return;let t=this.el.getBoundingClientRect()[this.section.justify]-e[this.section.justify],n=this._prevOffset-t;n&&this.el.animate({transform:[`translateX(${n}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}let L=parseInt(null==(r=i.version.match(/^(\d+)\./))?void 0:r[1])>=19;class M extends S{attributeChangedCallback(e,t,n){this[e]=JSON.parse(n)}}M.observedAttributes=L?[]:["data","digits"],((e,t)=>{customElements.get(e)||customElements.define(e,t)})("number-flow-react",M);let O={},I=L?function(e){return e}:JSON.stringify;function $(e){let{transformTiming:t,spinTiming:n,opacityTiming:r,animated:i,respectMotionPreference:a,trend:s,plugins:o,...l}=e;return[{transformTiming:t,spinTiming:n,opacityTiming:r,animated:i,respectMotionPreference:a,trend:s,plugins:o},l]}class B extends i.Component{updateProperties(e){if(!this.el)return;this.el.batched=!this.props.isolate;let[t]=$(this.props);
1Object.entries(t).forEach(e=>{let[t,n]=e;this.el[t]=null!=n?n:M.defaultProps[t]}),(null==e?void 0:e.onAnimationsStart)&&this.el.removeEventListener("animationsstart",e.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),(null==e?void 0:e.onAnimationsFinish)&&this.el.removeEventListener("animationsfinish",e.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),L&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(e){if(this.updateProperties(e),e.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>{var e;return null==(e=this.props.group)?void 0:e.didUpdate()};if(!this.props.isolate){var t;return null==(t=this.el)||t.willUpdate(),()=>{var e;return null==(e=this.el)?void 0:e.didUpdate()}}}return null}componentDidUpdate(e,t,n){null==n||n()}handleRef(e){this.props.innerRef&&(this.props.innerRef.current=e),this.el=e}render(){let[e,{innerRef:t,className:n,data:r,nonce:a,willChange:s,isolate:o,group:l,digits:c,onAnimationsStart:u,onAnimationsFinish:h,...d}]=$(this.props);return i.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":s?"":void 0,class:n,nonce:a,...d,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:I(c),data:I(r)})}constructor(e){super(e),this.handleRef=this.handleRef.bind(this)}}let z=i.forwardRef(function(e,t){let{value:n,locales:r,format:a,prefix:s,suffix:o,...l}=e;i.useImperativeHandle(t,()=>c.current,[]);let c=i.useRef(),u=i.useContext(j);null==u||u.useRegister(c);let h=i.useMemo(()=>r?JSON.stringify(r):"",[r]),d=i.useMemo(()=>a?JSON.stringify(a):"",[a]),p=i.useMemo(()=>{var e,t;return function(e,t,n,r){let i=t.formatToParts(e);n&&i.unshift({type:"prefix",value:n}),r&&i.push({type:"suffix",value:r});let a=[],s=[],o=[],l=[],c={},u=e=>`${e}:${c[e]=(c[e]??-1)+1}`,h="",d=!1,p=!1;for(let e of i){h+=e.value;let t="minusSign"===e.type||"plusSign"===e.type?"sign":e.type;"integer"===t?(d=!0,s.push(...e.value.split("").map(e=>({type:t,value:parseInt(e)})))):"group"===t?s.push({type:t,value:e.value}):"decimal"===t?(p=!0,o.push({type:t,value:e.value,key:u(t)})):"fraction"===t?o.push(...e.value.split("").map(e=>({type:t,value:parseInt(e),key:u(t),pos:-1-c[t]}))):(d||p?l:a).push({type:t,value:e.value,key:u(t)})}let m=[];for(let e=s.length-1;e>=0;e--){let t=s[e];m.unshift("integer"===t.type?{...t,key:u(t.type),pos:c[t.type]}:{...t,key:u(t.type)})}return{pre:a,integer:m,fraction:o,post:l,valueAsString:h,value:"string"==typeof e?parseFloat(e):e}}(n,null!=(t=O[e="".concat(h,":").concat(d)])?t:O[e]=new Intl.NumberFormat(r,a),s,o)},[n,h,d,s,o]);return i.createElement(B,{...l,group:u,data:p,innerRef:c})}),j=i.createContext(void 0);((e="")=>a`:where(number-flow${e}){line-height:1}number-flow${e} > span{font-kerning:none;display:inline-block;padding:${f} 0}`)("-react")},14553:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.parse=function(e){return 35===e.charCodeAt(0)?c(e):h(e)},t.parseHex=c,t.parseColor=h;let s=n(17225),o=a(n(79961)),l=(()=>{let e="[\\s,\\/]",t="([^\\s,\\/]+)",n=`(?:${e}+${t})`;return new RegExp(`(\\w+)\\( 2 ${e}* 3 ${t} 4 ${n} 5 ${n} 6 ${n}? 7 ${n}? 8 ${e}* 9 \\)`.replace(/\s/g,""))})();function c(e){let t=0,n=0,r=0,i=255;switch(e.length){case 4:t=(u(e.charCodeAt(1))<<4)+u(e.charCodeAt(1)),n=(u(e.charCodeAt(2))<<4)+u(e.charCodeAt(2)),r=(u(e.charCodeAt(3))<<4)+u(e.charCodeAt(3));break;case 7:t=(u(e.charCodeAt(1))<<4)+u(e.charCodeAt(2)),n=(u(e.charCodeAt(3))<<4)+u(e.charCodeAt(4)),r=(u(e.charCodeAt(5))<<4)+u(e.charCodeAt(6));break;case 9:t=(u(e.charCodeAt(1))<<4)+u(e.charCodeAt(2)),n=(u(e.charCodeAt(3))<<4)+u(e.charCodeAt(4)),r=(u(e.charCodeAt(5))<<4)+u(e.charCodeAt(6)),i=(u(e.charCodeAt(7))<<4)+u(e.charCodeAt(8))}return(0,s.newColor)(t,n,r,i)}function u(e){return(15&e)+9*(e>>6)}function h(e){let t=l.exec(e);
9if(null===t)throw Error(`Color.parse(): invalid CSS color: "${e}"`);let n=t[1],r=t[2],i=t[3],a=t[4],c=t[5],u=t[6];switch(n){case"rgb":case"rgba":{let e=d(r),t=d(i),n=d(a),o=c?p(c):255;return(0,s.newColor)(e,t,n,o)}case"hsl":case"hsla":{let e,t,n,o=m(r),l=f(i),u=f(a),h=c?p(c):255;if(0===l)e=t=n=Math.round(255*u);else{let r=u<.5?u*(1+l):u+l-u*l,i=2*u-r;e=Math.round(255*y(i,r,o+1/3)),t=Math.round(255*y(i,r,o)),n=Math.round(255*y(i,r,o-1/3))}return(0,s.newColor)(e,t,n,h)}case"hwb":{let e=m(r),t=f(i),n=f(a),o=c?p(c):255,l=0,u=Math.round(255*y(0,1,e+1/3)),h=Math.round(255*y(l,1,e)),d=Math.round(255*y(l,1,e-1/3));return u=k(u,t,n),h=k(h,t,n),d=k(d,t,n),(0,s.newColor)(u,h,d,o)}case"lab":{let e=b(r,100),t=b(i,125),n=b(a,125);return v(c?p(c):255,o.xyzd50ToSrgb(...o.labToXyzd50(e,t,n)))}case"lch":{let e=b(r,100),t=b(i,150),n=360*m(a);return v(c?p(c):255,o.xyzd50ToSrgb(...o.labToXyzd50(...o.lchToLab(e,t,n))))}case"oklab":{let e=b(r,1),t=b(i,.4),n=b(a,.4);return v(c?p(c):255,o.xyzd50ToSrgb(...o.xyzd65ToD50(...o.oklabToXyzd65(e,t,n))))}case"oklch":{let e=g(r),t=g(i),n=g(a);return v(c?p(c):255,o.xyzd50ToSrgb(...o.oklchToXyzd50(e,t,n)))}case"color":{let e=g(i),t=g(a),n=g(c),s=u?p(u):255;switch(r){case"srgb":return v(s,[e,t,n]);case"srgb-linear":return v(s,o.xyzd50ToSrgb(...o.srgbLinearToXyzd50(e,t,n)));case"display-p3":return v(s,o.xyzd50ToSrgb(...o.displayP3ToXyzd50(e,t,n)));case"a98-rgb":return v(s,o.xyzd50ToSrgb(...o.adobeRGBToXyzd50(e,t,n)));case"prophoto-rgb":return v(s,o.xyzd50ToSrgb(...o.proPhotoToXyzd50(e,t,n)));case"rec2020":return v(s,o.xyzd50ToSrgb(...o.rec2020ToXyzd50(e,t,n)));case"xyz":case"xyz-d65":return v(s,o.xyzd50ToSrgb(...o.xyzd65ToD50(e,t,n)));case"xyz-d50":return v(s,o.xyzd50ToSrgb(e,t,n))}}}throw Error(`Color.parse(): invalid CSS color: "${e}"`)}function d(e){return 37===e.charCodeAt(e.length-1)?Math.round(parseFloat(e)/100*255):Math.round(parseFloat(e))}function p(e){var t;return Math.round(255*(110===(t=e).charCodeAt(0)?0:37===t.charCodeAt(t.length-1)?parseFloat(t)/100:parseFloat(t)))}function m(e){let t=1;switch(e.charCodeAt(e.length-1)){case 101:return 0;case 100:t=103===e.charCodeAt(Math.max(0,e.length-4))?400:2*Math.PI;break;case 110:t=1;break;default:t=360}return parseFloat(e)/t}function f(e){return 110===e.charCodeAt(0)?0:parseFloat(e)/100}function g(e){return 110===e.charCodeAt(0)?0:37===e.charCodeAt(e.length-1)?parseFloat(e)/100:parseFloat(e)}function b(e,t){return 110===e.charCodeAt(0)?0:37===e.charCodeAt(e.length-1)?parseFloat(e)/100*t:parseFloat(e)}function y(e,t,n){return(n<0&&(n+=1),n>1&&(n-=1),n<1/6)?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function k(e,t,n){let r=e/255;return r*=1-t-n,Math.round(255*(r+=t))}function _(e){return Math.max(0,Math.min(255,e))}function v(e,t){let n=_(Math.round(255*t[0])),r=_(Math.round(255*t[1])),i=_(Math.round(255*t[2]));return(0,s.newColor)(n,r,i,e)}}
vendor: 4,511 bytes, line 9
9,15239:(e,t,n)=>{"use strict";n.d(t,{default:()=>i.a});var r=n(54652),i=n.n(r)},15605:(e,t,n)=>{"use strict";n.d(t,{A:()=>E});var r=["x","y","z"],i=function(e){Object.assign(this,{uniforms:{},geometry:{vertices:[{x:0,y:0,z:0}]},mode:0,modifiers:{},attributes:[],multiplier:1,buffers:[]}),Object.assign(this,e),this.prepareProgram(),this.prepareUniforms(),this.prepareAttributes()};i.prototype.compileShader=function(e,t){var n=this.gl.createShader(e);return this.gl.shaderSource(n,t),this.gl.compileShader(n),n},i.prototype.prepareProgram=function(){var e=this.gl,t=this.vertex,n=this.fragment,r=e.createProgram();e.attachShader(r,this.compileShader(35633,t)),e.attachShader(r,this.compileShader(35632,n)),e.linkProgram(r),e.useProgram(r),this.program=r},i.prototype.prepareUniforms=function(){for(var e=Object.keys(this.uniforms),t=0;t<e.length;t+=1){var n=this.gl.getUniformLocation(this.program,e[t]);this.uniforms[e[t]].location=n}},i.prototype.prepareAttributes=function(){void 0!==this.geometry.vertices&&this.attributes.push({name:"aPosition",size:3}),void 0!==this.geometry.normal&&this.attributes.push({name:"aNormal",size:3}),this.attributeKeys=[];for(var e=0;e<this.attributes.length;e+=1)this.attributeKeys.push(this.attributes[e].name),this.prepareAttribute(this.attributes[e])},i.prototype.prepareAttribute=function(e){for(var t=this.geometry,n=this.multiplier,i=t.vertices,a=t.normal,s=new Float32Array(n*i.length*e.size),o=0;o<n;o+=1)for(var l=e.data&&e.data(o,n),c=o*i.length*e.size,u=0;u<i.length;u+=1)for(var h=0;h<e.size;h+=1){var d=this.modifiers[e.name];s[c]=void 0!==d?d(l,u,h,this):"aPosition"===e.name?i[u][r[h]]:"aNormal"===e.name?a[u][r[h]]:l[h],c+=1}this.attributes[this.attributeKeys.indexOf(e.name)].data=s,this.prepareBuffer(this.attributes[this.attributeKeys.indexOf(e.name)])},i.prototype.prepareBuffer=function(e){var t=e.data,n=e.name,r=e.size,i=this.gl.createBuffer();this.gl.bindBuffer(34962,i),this.gl.bufferData(34962,t,35044);var a=this.gl.getAttribLocation(this.program,n);this.gl.enableVertexAttribArray(a),this.gl.vertexAttribPointer(a,r,5126,!1,0,0),this.buffers[this.attributeKeys.indexOf(e.name)]={buffer:i,location:a,size:r}},i.prototype.render=function(e){var t=this,n=this.uniforms,r=this.multiplier,i=this.gl;i.useProgram(this.program);for(var a=0;a<this.buffers.length;a+=1){var s=this.buffers[a],o=s.location,l=s.buffer,c=s.size;i.enableVertexAttribArray(o),i.bindBuffer(34962,l),i.vertexAttribPointer(o,c,5126,!1,0,0)}Object.keys(e).forEach(function(t){n[t].value=e[t].value}),Object.keys(n).forEach(function(e){var r=n[e];t.uniformMap[r.type](r.location,r.value)}),i.drawArrays(this.mode,0,r*this.geometry.vertices.length),this.onRender&&this.onRender(this)},i.prototype.destroy=function(){for(var e=0;e<this.buffers.length;e+=1)this.gl.deleteBuffer(this.buffers[e].buffer);this.gl.deleteProgram(this.program),this.gl=null};var a=function(e){var t=this,n=e||{},r=n.canvas;void 0===r&&(r=document.querySelector("canvas"));var i=n.context;void 0===i&&(i={});var a=n.contextType;void 0===a&&(a="experimental-webgl");var s=n.settings;void 0===s&&(s={});var o=r.getContext(a,Object.assign({alpha:!1,antialias:!1},i));Object.assign(this,{gl:o,canvas:r,uniforms:{},instances:new Map,shouldRender:!0}),Object.assign(this,{devicePixelRatio:1,clearColor:[1,1,1,1],position:{x:0,y:0,z:2},clip:[.001,100]}),Object.assign(this,s),this.uniformMap={float:function(e,t){return o.uniform1f(e,t)},vec2:function(e,t){return o.uniform2fv(e,t)},vec3:function(e,t){return o.uniform3fv(e,t)},vec4:function(e,t){return o.uniform4fv(e,t)},mat2:function(e,t){return o.uniformMatrix2fv(e,!1,t)},mat3:function(e,t){return o.uniformMatrix3fv(e,!1,t)},mat4:function(e,t){return o.uniformMatrix4fv(e,!1,t)}},o.enable(o.DEPTH_TEST),o.depthFunc(o.LEQUAL),!1===o.getContextAttributes().alpha&&(o.clearColor.apply(o,this.clearColor),o.clearDepth(1)),this.onSetup&&this.onSetup(o),window.addEventListener("resize",function(){return t.resize()}),this.resize(),this.render()};a.prototype.resize=function(){var e=this.gl,t=this.canvas,n=this.devicePixelRatio,r=this.position;t.width=t.clientWidth*n,t.height=t.clientHeight*n;var i=e.drawingBufferWidth,a=e.drawingBufferHeight,s=i/a;e.viewport(0,0,i,a);var o=Math.tan(Math.PI/180*22.5),l=[1,0,0,0,0,1,0,0,0,0,1,0,r.x,r.y,-((s<1?1:s)*r.z),1];this.uniforms.uProjectionMatrix={type:"mat4",value:[.5/o,0,0,0,0,s/o*.5,0,0,0,0,-(this.clip[1]+this.clip[0])/(this.clip[1]-this.clip[0]),-1,0,0,-2*this.clip[1]*(this.clip[0]/(this.clip[1]-this.clip[0])),0]}
9,this.uniforms.uViewMatrix={type:"mat4",value:[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]},this.uniforms.uModelMatrix={type:"mat4",value:l}},a.prototype.toggle=function(e){e!==this.shouldRender&&(this.shouldRender=void 0!==e?e:!this.shouldRender,this.shouldRender&&this.render())},a.prototype.render=function(){var e=this;this.gl.clear(16640),this.instances.forEach(function(t){t.render(e.uniforms)}),this.onRender&&this.onRender(this),this.shouldRender&&requestAnimationFrame(function(){return e.render()})},a.prototype.add=function(e,t){void 0===t&&(t={uniforms:{}}),void 0===t.uniforms&&(t.uniforms={}),Object.assign(t.uniforms,JSON.parse(JSON.stringify(this.uniforms))),Object.assign(t,{gl:this.gl,uniformMap:this.uniformMap});var n=new i(t);return this.instances.set(e,n),n},a.prototype.remove=function(e){var t=this.instances.get(e);void 0!==t&&(t.destroy(),this.instances.delete(e))},a.prototype.destroy=function(){var e=this;this.instances.forEach(function(t,n){t.destroy(),e.instances.delete(n)}),this.toggle(!1)};var s="theta",o="mapSamples",l="mapBrightness",c="baseColor",u="markerColor",h="glowColor",d="markers",p="diffuse",m="devicePixelRatio",f="dark",g="offset",b="scale",y="opacity",k="mapBaseBrightness",_={phi:"z",[s]:"A",[o]:"k",[l]:"D",[c]:"S",[u]:"T",[h]:"y",[p]:"E",[f]:"F",[g]:"x",[b]:"B",[y]:"U",[k]:"G"},{PI:v,sin:w,cos:S,sqrt:x,atan2:C,floor:A,max:R,pow:P,log2:T}=Math,N=(e,t)=>[].concat(...e.map(e=>{let[n,r]=e.location;n=n*v/180,r=r*v/180-v;let i=S(n);return[...((e,t)=>{let n=[e[0],e[2],e[1]],r=1/t,i=P(1.618033988749895,R(2,A(.7202100452062783*T(2.23606797749979*t*v*(1-n[2]*n[2])))))/2.23606797749979,a=[A(i+.5),A(1.618033988749895*i+.5)],s=[(a[0]+1)*.618033988749895%1*6.283185307179586-3.8832220774509327,(a[1]+1)*.618033988749895%1*6.283185307179586-3.8832220774509327],o=[-2*a[0],-2*a[1]],l=[C(n[1],n[0]),n[2]-1],c=s[0]*o[1]-o[0]*s[1],u=[A((o[1]*l[0]-s[1]*(l[1]*t+1))/c),A((-o[0]*l[0]+s[0]*(l[1]*t+1))/c)],h=v,d=[0,0,0];for(let e=0;e<4;e++){let i=a[0]*(u[0]+e%2)+a[1]*(u[1]+A(.5*e));if(i>t)continue;let s=.618033988749895*i%1*6.283185307179586,o=1-2*i*r,l=x(1-o*o),c=[S(s)*l,w(s)*l,o],p=x((n[0]-c[0])**2+(n[1]-c[1])**2+(n[2]-c[2])**2);p<h&&(h=p,d=c)}return[d[0],d[2],d[1]]})([-i*S(r),w(n),i*w(r)],t),e.size,...e.color?[...e.color,1]:[0,0,0,0]]}),[0,0,0,0,0,0,0,0]),E=(e,t)=>{let n=(e,n,r)=>({type:e,value:void 0===t[n]?r:t[n]}),r=e.getContext("webgl2")?"webgl2":e.getContext("webgl")?"webgl":"experimental-webgl",i=new a({canvas:e,contextType:r,context:{alpha:!0,stencil:!1,antialias:!0,depth:!1,preserveDrawingBuffer:!1,...t.context},settings:{[m]:t[m]||1,onSetup:e=>{let t=e.RGB,n=e.UNSIGNED_BYTE,r=e.TEXTURE_2D,i=e.createTexture();e.bindTexture(r,i),e.texImage2D(r,0,t,1,1,0,t,n,new Uint8Array([0,0,0,0]));let a=new Image;a.onload=()=>{e.bindTexture(r,i),e.texImage2D(r,0,t,t,n,a),e.generateMipmap(r);let s=e.getParameter(e.CURRENT_PROGRAM),o=e.getUniformLocation(s,"H");e.texParameteri(r,e.TEXTURE_MIN_FILTER,e.NEAREST),e.texParameteri(r,e.TEXTURE_MAG_FILTER,e.NEAREST),e.uniform1i(o,0)},a.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAACAAQAAAADMzoqnAAAAAXNSR0IArs4c6QAABA5JREFUeNrV179uHEUAx/Hf3JpbF+E2VASBsmVKTBcpKJs3SMEDcDwBiVJAAewYEBUivIHT0uUBIt0YCovKD0CRjUC4QfHYh8hYXu+P25vZ2Zm9c66gMd/GJ/tz82d3bk8GN4SrByYF2366FNTACIAkivVAAazQdnf3MvAlbNUQfOPAdQDvSAimMWhwy4I2g4SU+Kp04ISLpPBAKLxPyic3O/CCi+Y7rUJbio
9dcpDOFY7CgxCEXmdYD2EYK2s5lApOx5pEDDYCUwM1XdJUwBV11QQMg59kePSCaPAASQMEL2hwo6TJFgxpg+TgC2ymXPbuvc40awr3D1QCFfbH9kcoqAOkZozpQo0aqAGQRKCog/+tjkgbNFEtg2FffBvBGlSxHoAaAa1u6X4PBAwDiR8FFsrQgeUhfJTSALaB9jy5NCybJPn1SVFiWk7ywN+KzhH1aKAuydhGkbEF4lWohLXDXavlyFgHY7LBnLRdlAP6BS5Cc8RfVDXbkwN/oIvmY+6obbNeBP0JwTuMGu9gTzy1Q4RS/cWpfzszeYwd+CAFrtBW/Hur0gLbJGlD+/OjVwe/drfBxkbbg63dndEDfiEBlAd7ac0BPe1D6Jd8dfbLH+RI0OzseFB5s01/M+gMdAeluLOCAuaUA9Lezo/vSgXoCX9rtEiXnp7Q1W/CNyWcd8DXoS6jH/YZ5vAJEWY2dXFQe2TUgaFaNejCzJ98g6HnlVrsE58sDcYqg+9XY75fPqdoh/kRQWiXKg8MWlJQxUFMPjqnyujhFBE7UxIMjyszk0QwQlFsezImsyvUYYYVED2pk6m0Tg8T04Fwjk2kdAwSACqlM6gRRt3vQYAFGX0Ah7Ebx1H+MDRI5ui0QldH4j7FGcm90XdxD2Jg1AOEAVAKhEFXSn4cKUELurIAKwJ3MArypPscQaLhJFICJ0ohjDySAdH8AhDtCiTuMycH8CXzhH9jUACAO5uMhoAwA5i+T6WAKmmAqnLy80wxHqIPFYpqCwxGaYLt4Dyievg5kEoVEUAhs6pqKgFtDQYOuaXypaWKQfIuwwoGSZgfLsu/XAtI8cGN+h7Cc1A5oLOMhwlIPXuhu48AIvsSBkvtV9wsJRKCyYLfq5lTrQMFd1a262oqBck9K1V0YjQg0iEYYgpS1A9GlXQV5cykwm4A7BzVsxQqo7E+zCegO7Ma7yKgsuOcfKbMBwLC8wvVNYDsANYalEpOAa6zpWjTeMKGwEwC1CiQewJc5EKfgy7GmRAZA4vUVGwE2dPM/g0xuAInE/yG5aZ8ISxWGfYigUVbdyBElTHh2uCwGdfCkOLGgQVBh3Ewp+/QK4CDlR5Ws/Zf7yhCf8pH7vinWAvoVCQ6zz0NX5V/6GkAVV+2/5qsJ/gU8bsxpM8IeAQAAAABJRU5ErkJggg=="}}});return i.add("",{vertex:"attribute vec3 aPosition;uniform mat4 uProjectionMatrix;uniform mat4 uModelMatrix;uniform mat4 uViewMatrix;void main(){gl_Position=uProjectionMatrix*uModelMatrix*uViewMatrix*vec4(aPosition,1.);}",fragment:"precision highp float;uniform vec2 w,x;uniform vec3 S,T,y;uniform vec4 u[64*2];uniform float z,A,k,B,C,D,E,F,U,G;uniform sampler2D H;float I=1./k;mat3 J(float a,float b){float c=cos(a),d=cos(b),e=sin(a),f=sin(b);return mat3(d,f*e,-f*c,0.,c,e,f,d*-e,d*c);}vec3 K(vec3 c,out float v){c=c.xzy;float p=max(2.,floor(log2(2.236068*k*3.141593*(1.-c.z*c.z))*.72021));vec2 g=floor(pow(1.618034,p)/2.236068*vec2(1,1.618034)+.5),d=fract((g+1.)*.618034)*6.283185-3.883222,e=-2.*g,f=vec2(atan(c.y,c.x),c.z-1.),q=floor(vec2(e.y*f.x-d.y*(f.y*k+1.),-e.x*f.x+d.x*(f.y*k+1.))/(d.x*e.y-e.x*d.y));float n=3.141593;vec3 r;for(float h=0.;h<4.;h+=1.){vec2 s=vec2(mod(h,2.),floor(h*.5));float j=dot(g,q+s);if(j>k)continue;float a=j,b=0.;if(a>=524288.)a-=524288.,b+=.803894;if(a>=262144.)a-=262144.,b+=.901947;if(a>=131072.)a-=131072.,b+=.950973;if(a>=65536.)a-=65536.,b+=.475487;if(a>=32768.)a-=32768.,b+=.737743;if(a>=16384.)a-=16384.,b+=.868872;if(a>=8192.)a-=8192.,b+=.934436;if(a>=4096.)a-=4096.,b+=.467218;if(a>=2048.)a-=2048.,b+=.733609;if(a>=1024.)a-=1024.,b+=.866804;if(a>=512.)a-=512.,b+=.433402;if(a>=256.)a-=256.,b+=.216701;if(a>=128.)a-=128.,b+=.108351;if(a>=64.)a-=64.,b+=.554175;if(a>=32.)a-=32.,b+=.777088;if(a>=16.)a-=16.,b+=.888544;if(a>=8.)a-=8.,b+=.944272;if(a>=4.)a-=4.,b+=.472136;if(a>=2.)a-=2.,b+=.236068;if(a>=1.)a-=1.,b+=.618034;float l=fract(b)*6.283185,i=1.-2.*j*I,m=sqrt(1.-i*i);vec3 o=vec3(cos(l)*m,sin(l)*m,i);float t=length(c-o);if(t<n)n=t,r=o;}v=n;return r.xzy;}void main(){vec2 f=1./w,a=(gl_FragCoord.xy*f*2.-1.)/B-x*vec2(1,-1)*f;a.x*=w.x*f.y;float c=dot(a,a);vec4 t=vec4(0);float j=0.;int V=int(C);if(c<=.64){float b;vec4 e=vec4(0);vec3 v=vec3(0,0,1),l=normalize(vec3(a,sqrt(.64-c)));mat3 L=J(A,z);float g=dot(l,v);vec3 m=l*L,h=K(m,b);float n=asin(h.y),i=acos(-h.x/cos(n));i=h.z<0.?-i:i;float M=max(texture2D(H,vec2(i*.5/3.141593,-(n/3.141593+.5))).x,G),N=smoothstep(8e-3,0.,b),o=pow(g,E)*D,p=M*N*o,W=mix((1.-p)*pow(g,.4),p,F)+.1;e+=vec4(S*W,1.);float X=0.;for(int d=0;d<128;d+=2){if(d>=V)break;vec4 q=u[d],O=u[d+1];vec3 P=q.xyz;float r=q.w;vec3 Y=P-m;b=length(Y);if(b<r){float Q=r*.5,s=smoothstep(Q,0.,b);X+=s,e.xyz=O.w>.5?mix(e.xyz,O.xyz,s*o):mix(e.xyz,T,s*o);}}e.xyz+=pow(1.-g,4.)*y,t+=e*(1.+U)*.5,j=pow(dot(normalize(vec3(-a,sqrt(1.-c))),vec3(0,0,1)),4.)*smoothstep(0.,1.,.2/(c-.64));}else{float R=sqrt(.2/(c-.64));j=smoothstep(.5,1.,R/(R+1.));}gl_FragColor=t+vec4(j*y,j);}",uniforms:{w:{type:"vec2",value:[t.width,t.height]},z:n("float","phi"),A:n("float",s),k:n("float",o),D:n("float",l),G:n("float",k),S:n("vec3",c),T:n("vec3",u),E:n("float",p),y:n("vec3",h),F:n("float",f),u:{type:"vec4",value:N(t[d],t[o])},C:{type:"float",value:2*t[d].length}
9,x:n("vec2",g,[0,0]),B:n("float",b,1),U:n("float",y,1)},mode:4,geometry:{vertices:[{x:-100,y:100,z:0},{x:-100,y:-100,z:0},{x:100,y:100,z:0},{x:100,y:-100,z:0},{x:-100,y:-100,z:0},{x:100,y:100,z:0}]},onRender:({uniforms:e})=>{let n={};if(t.onRender){for(let r in n=t.onRender(n)||n,_)void 0!==n[r]&&(e[_[r]].value=n[r]);if(void 0!==n[d]){let t=void 0!==n[o]?n[o]:e.k.value;e.u.value=N(n[d],t),e.C.value=n[d].length}n.width&&n.height&&(e.w.value=[n.width,n.height]),void 0!==n[o]&&(e.u.value=N(n[d]||t[d],n[o]))}}}),i}},17225:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.OFFSET_A=t.OFFSET_B=t.OFFSET_G=t.OFFSET_R=void 0,t.newColor=c,t.from=function(e){return c(o(e,t.OFFSET_R),o(e,t.OFFSET_G),o(e,t.OFFSET_B),o(e,t.OFFSET_A))},t.toNumber=function(e){return s(e)},t.getRed=function(e){return o(e,t.OFFSET_R)},t.getGreen=function(e){return o(e,t.OFFSET_G)},t.getBlue=function(e){return o(e,t.OFFSET_B)},t.getAlpha=function(e){return o(e,t.OFFSET_A)},t.setRed=function(e,n){return l(e,t.OFFSET_R,n)},t.setGreen=function(e,n){return l(e,t.OFFSET_G,n)},t.setBlue=function(e,n){return l(e,t.OFFSET_B,n)},t.setAlpha=function(e,n){return l(e,t.OFFSET_A,n)};let{cast:s,get:o,set:l}=a(n(86157));function c(e,n,r,i){return(e<<t.OFFSET_R)+(n<<t.OFFSET_G)+(r<<t.OFFSET_B)+(i<<t.OFFSET_A)}t.OFFSET_R=24,t.OFFSET_G=16,t.OFFSET_B=8,t.OFFSET_A=0},18955:(e,t,n)=>{"use strict";n.d(t,{c3:()=>a});var r=n(72888);function i(e,t){return(...e)=>{try{return t(...e)}catch{throw Error(void 0)}}}let a=i(0,r.c3);i(0,r.kc)},35733:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.format=void 0,t.formatHEXA=d,t.formatHEX=function(e){return"#"+h[s(e)]+h[o(e)]+h[l(e)]},t.formatRGBA=function(e){return`rgba(${s(e)} ${o(e)} ${l(e)} / ${c(e)/255})`},t.toRGBA=function(e){return{r:s(e),g:o(e),b:l(e),a:c(e)}},t.formatHSLA=function(e){p(s(e),o(e),l(e));let t=u[0],n=u[1],r=u[2],i=c(e)/255;return`hsla(${t} ${n}% ${r}% / ${i})`},t.toHSLA=function(e){p(s(e),o(e),l(e));let t=u[0],n=u[1];return{h:t,s:n,l:u[2],a:c(e)/255}},t.formatHWBA=function(e){m(s(e),o(e),l(e));let t=u[0],n=u[1],r=u[2],i=c(e)/255;return`hsla(${t} ${n}% ${r}% / ${i})`},t.toHWBA=function(e){m(s(e),o(e),l(e));let t=u[0],n=u[1];return{h:t,w:n,b:u[2],a:c(e)/255}};let{getRed:s,getGreen:o,getBlue:l,getAlpha:c}=a(n(17225)),u=[0,0,0],h=Array.from({length:256}).map((e,t)=>t.toString(16).padStart(2,"0"));function d(e){return"#"+h[s(e)]+h[o(e)]+h[l(e)]+h[c(e)]}function p(e,t,n){let r=Math.max(e/=255,t/=255,n/=255),i=r-Math.min(e,t,n),a=i?r===e?(t-n)/i:r===t?2+(n-e)/i:4+(e-t)/i:0;u[0]=60*a<0?60*a+360:60*a,u[1]=100*(i?r<=.5?i/(2*r-i):i/(2-(2*r-i)):0),u[2]=100*(2*r-i)/2}function m(e,t,n){let r=Math.min(e/=255,t/=255,n/=255),i=Math.max(e,t,n),a=1-i;if(i===r){u[0]=0,u[1]=r,u[2]=a;return}let s=e===r?t-n:t===r?n-e:e-t,o=e===r?3:t===r?5:1;u[0]=(o-s/(i-r))/6,u[1]=r,u[2]=a}t.format=d},39347:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("Star",[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]])}
9,42529:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]])},45688:(e,t,n)=>{"use strict";var r=n(87358);n(86340);var i=n(12115),a=function(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}(i),s=void 0!==r&&r.env&&!0,o=function(e){return"[object String]"===Object.prototype.toString.call(e)},l=function(){function e(e){var t=void 0===e?{}:e,n=t.name,r=void 0===n?"stylesheet":n,i=t.optimizeForSpeed,a=void 0===i?s:i;c(o(r),"`name` must be a string"),this._name=r,this._deletedRulePlaceholder="#"+r+"-deleted-rule____{}",c("boolean"==typeof a,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=a,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var l="undefined"!=typeof window&&document.querySelector('meta[property="csp-nonce"]');this._nonce=l?l.getAttribute("content"):null}var t,n=e.prototype;return n.setOptimizeForSpeed=function(e){c("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),c(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},n.isOptimizeForSpeed=function(){return this._optimizeForSpeed},n.inject=function(){var e=this;if(c(!this._injected,"sheet already injected"),this._injected=!0,"undefined"!=typeof window&&this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(s||console.warn("StyleSheet: optimizeForSpeed mode not supported falling back to standard mode."),this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,n){return"number"==typeof n?e._serverSheet.cssRules[n]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),n},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},n.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},n.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},n.insertRule=function(e,t){if(c(o(e),"`insertRule` accepts only strings"),"undefined"==typeof window)return"number"!=typeof t&&(t=this._serverSheet.cssRules.length),this._serverSheet.insertRule(e,t),this._rulesCount++;if(this._optimizeForSpeed){var n=this.getSheet();"number"!=typeof t&&(t=n.cssRules.length);try{n.insertRule(e,t)}catch(t){return s||console.warn("StyleSheet: illegal rule: \n\n"+e+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),-1}}else{var r=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,r))}return this._rulesCount++},n.replaceRule=function(e,t){if(this._optimizeForSpeed||"undefined"==typeof window){var n="undefined"!=typeof window?this.getSheet():this._serverSheet;if(t.trim()||(t=this._deletedRulePlaceholder),!n.cssRules[e])return e;n.deleteRule(e);try{n.insertRule(t,e)}catch(r){s||console.warn("StyleSheet: illegal rule: \n\n"+t+"\n\nSee https://stackoverflow.com/q/20007992 for more info"),n.insertRule(this._deletedRulePlaceholder,e)}}else{var r=this._tags[e];c(r,"old rule at index `"+e+"` not found"),r.textContent=t}return e},n.deleteRule=function(e){if("undefined"==typeof window)return void this._serverSheet.deleteRule(e);if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];c(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},n.flush=function(){this._injected=!1,this._rulesCount=0,"undefined"!=typeof window?(this._tags.forEac
9h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]):this._serverSheet.cssRules=[]},n.cssRules=function(){var e=this;return"undefined"==typeof window?this._serverSheet.cssRules:this._tags.reduce(function(t,n){return n?t=t.concat(Array.prototype.map.call(e.getSheetForTag(n).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},n.makeStyleTag=function(e,t,n){t&&c(o(t),"makeStyleTag accepts only strings as second parameter");var r=document.createElement("style");this._nonce&&r.setAttribute("nonce",this._nonce),r.type="text/css",r.setAttribute("data-"+e,""),t&&r.appendChild(document.createTextNode(t));var i=document.head||document.getElementsByTagName("head")[0];return n?i.insertBefore(r,n):i.appendChild(r),r},t=[{key:"length",get:function(){return this._rulesCount}}],function(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}(e.prototype,t),e}();function c(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,n=e.length;n;)t=33*t^e.charCodeAt(--n);return t>>>0},h={};function d(e,t){if(!t)return"jsx-"+e;var n=String(t),r=e+n;return h[r]||(h[r]="jsx-"+u(e+"-"+n)),h[r]}function p(e,t){"undefined"==typeof window&&(t=t.replace(/\/style/gi,"\\/style"));var n=e+t;return h[n]||(h[n]=t.replace(/__jsx-style-dynamic-selector/g,e)),h[n]}var m=function(){function e(e){var t=void 0===e?{}:e,n=t.styleSheet,r=void 0===n?null:n,i=t.optimizeForSpeed,a=void 0!==i&&i;this._sheet=r||new l({name:"styled-jsx",optimizeForSpeed:a}),this._sheet.inject(),r&&"boolean"==typeof a&&(this._sheet.setOptimizeForSpeed(a),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),"undefined"==typeof window||this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var n=this.getIdAndRules(e),r=n.styleId,i=n.rules;if(r in this._instancesCounts){this._instancesCounts[r]+=1;return}var a=i.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[r]=a,this._instancesCounts[r]=1},t.remove=function(e){var t=this,n=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(n in this._instancesCounts,"styleId: `"+n+"` not found"),this._instancesCounts[n]-=1,this._instancesCounts[n]<1){var r=this._fromServer&&this._fromServer[n];r?(r.parentNode.removeChild(r),delete this._fromServer[n]):(this._indices[n].forEach(function(e){return t._sheet.deleteRule(e)}),delete this._indices[n]),delete this._instancesCounts[n]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],n=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return n[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,n;return t=this.cssRules(),void 0===(n=e)&&(n={}),t.map(function(e){var t=e[0],r=e[1];return a.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:n.nonce?n.nonce:void 0,dangerouslySetInnerHTML:{__html:r}})})},t.getIdAndRules=function(e){var t=e.children,n=e.dynamic,r=e.id;if(n){var i=d(r,n);return{styleId:i,rules:Array.isArray(t)?t.map(function(e){return p(i,e)}):[p(i,t)]}}return{styleId:d(r),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=i.createContext(null);f.displayName="StyleSheetContext";var g=a.default.useInsertionEffect||a.default.useLayoutEffect,b="undefined"!=typeof window?new m:void 0;function y(e){var t=b||i.useContext(f);return t&&("undefined"==typeof window?t.add(e):g(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)])),null}y.dynamic=function(e){return e.map(function(e){return d(e[0],e[1])}).join(" ")},t.style=y},47937:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("BookOpen",[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]])},53113:(e,t,n)=>{"use strict";let r,i,a;n.d(t,{Yz:()=>nj});var s={};n.r(s),n.d(s,{createOnigurumaEngine:()=>P,getDefaultWasmLoader:()=>R,loadWasm:()=>x,setDefaultWasmLoader:()=>A});var o={};n.r(o),n.d(o,{boolean:()=>tg,booleanish:()=>tb,commaOrSpaceSeparated:()=>tw,commaSeparated:()=>tv,number:()=>tk,overloadedBoolean:()=>ty,spaceSeparated:()=>t_});var l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,u=Object.getOwnPropertyNames,h=Object.prototype.hasOwnProperty,d=(e,t,n,r)=>{if(t&&"object"==typeof t||"function"==typeof t)for(var i,a=u(t),s=0,o=a.length;s<o;s++)i=a[s],h.call(e,i)||i===n||l(e,i,{get:(e=>t[e]).bind(null,i),enumerable:!(r=c(t,i))||r.enumerable});return e}
9,p=n(81029).hp,m=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function f(){return"undefined"!=typeof performance?performance.now():Date.now()}let g=(e,t)=>e+(t-e%t)%t;async function b(e){let t,n,r={};function i(e){n=e,r.HEAPU8=new Uint8Array(e),r.HEAPU32=new Uint32Array(e)}let a="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,n=1024){let r=t+n,i=t;for(;e[i]&&!(i>=r);)++i;if(i-t>16&&e.buffer&&a)return a.decode(e.subarray(t,i));let s="";for(;t<i;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}let r=63&e[t++];if((224&n)==192){s+=String.fromCharCode((31&n)<<6|r);continue}let i=63&e[t++];if((n=(240&n)==224?(15&n)<<12|r<<6|i:(7&n)<<18|r<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(n);else{let e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(r.HEAPU8,e,t):""}let o={emscripten_get_now:f,emscripten_memcpy_big:function(e,t,n){r.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let a=r.HEAPU8.length;if((e>>>=0)>0x80000000)return!1;for(let r=1;r<=4;r*=2){let s=a*(1+.2/r);if(s=Math.min(s,e+0x6000000),function(e){try{return t.grow(e-n.byteLength+65535>>>16),i(t.buffer),1}catch{}}(Math.min(0x80000000,g(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function l(){let n=await e({env:o,wasi_snapshot_preview1:o});i((t=n.memory).buffer),Object.assign(r,n),r.UTF8ToString=s}return await l(),r}var y=Object.defineProperty,k=(e,t,n)=>((e,t,n)=>t in e?y(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n)(e,"symbol"!=typeof t?t+"":t,n);let _=null;class v{constructor(e){k(this,"utf16Length"),k(this,"utf8Length"),k(this,"utf16Value"),k(this,"utf8Value"),k(this,"utf16OffsetToUtf8"),k(this,"utf8OffsetToUtf16");let t=e.length,n=v._utf8ByteLength(e),r=n!==t,i=r?new Uint32Array(t+1):null;r&&(i[t]=n);let a=r?new Uint32Array(n+1):null;r&&(a[n]=t);let s=new Uint8Array(n),o=0;for(let n=0;n<t;n++){let l=e.charCodeAt(n),c=l,u=!1;if(l>=55296&&l<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(l-55296<<10)+65536|t-56320,u=!0)}r&&(i[n]=o,u&&(i[n+1]=o),c<=127?a[o+0]=n:c<=2047?(a[o+0]=n,a[o+1]=n):c<=65535?(a[o+0]=n,a[o+1]=n,a[o+2]=n):(a[o+0]=n,a[o+1]=n,a[o+2]=n,a[o+3]=n)),c<=127?s[o++]=c:(c<=2047?s[o++]=192|(1984&c)>>>6:(c<=65535?s[o++]=224|(61440&c)>>>12:(s[o++]=240|(1835008&c)>>>18,s[o++]=128|(258048&c)>>>12),s[o++]=128|(4032&c)>>>6),s[o++]=128|(63&c)>>>0),u&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=i,this.utf8OffsetToUtf16=a}static _utf8ByteLength(e){let t=0;for(let n=0,r=e.length;n<r;n++){let i=e.charCodeAt(n),a=i,s=!1;if(i>=55296&&i<=56319&&n+1<r){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(a=(i-55296<<10)+65536|t-56320,s=!0)}a<=127?t+=1:a<=2047?t+=2:a<=65535?t+=3:t+=4,s&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let w=class e{constructor(t){if(k(this,"id",++e.LAST_ID),k(this,"_onigBinding"),k(this,"content"),k(this,"utf16Length"),k(this,"utf8Length"),k(this,"utf16OffsetToUtf8"),k(this,"utf8OffsetToUtf16"),k(this,"ptr"),!_)throw new m("Must invoke loadWasm first.");this._onigBinding=_,this.content=t;let n=new v(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=_.omalloc(1e4)),e._sharedPtrInUse=!0,_.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(_)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};k(w,"LAST_ID",0),k(w,"_sharedPtr",0),k(w,"_sharedPtrInUse",!1);class S{constructor(e){if(k(this,"_onigBinding"),k(this,"_ptr"),!_)throw new m("Must invoke loadWasm first.");let t=[],n=[];for(let r=0,i=e.length;r<i;r++){let i=new v(e[r]);t[r]=i.createString(_),n[r]=i.utf8Length}let r=_.omalloc(4*e.length);_.HEAPU32.set(t,r/4);let i=_.omalloc(4*e.length);_.HEAPU32.set(n,i/4);let a=_.createOnigScanner(r,i,e.length);for(let n=0,r=e.length;n<r;n++)_.ofree(t[n]);
9_.ofree(i),_.ofree(r),0===a&&function(e){throw new m(e.UTF8ToString(e.getLastOnigError()))}(_),this._onigBinding=_,this._ptr=a}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let r=0;if("number"==typeof n&&(r=n),"string"==typeof e){e=new w(e);let n=this._findNextMatchSync(e,t,!1,r);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,r)}_findNextMatchSync(e,t,n,r){let i=this._onigBinding,a=i.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),r);if(0===a)return null;let s=i.HEAPU32,o=a/4,l=s[o++],c=s[o++],u=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(s[o++]),r=e.convertUtf8OffsetToUtf16(s[o++]);u[t]={start:n,end:r,length:r-n}}return{index:l,captureIndices:u}}}function x(e){return r||(r=async function(){_=await b(async t=>{let n=e;if("function"==typeof(n=await n)&&(n=await n(t)),"function"==typeof n&&(n=await n(t)),"function"==typeof n.instantiator)n=await n.instantiator(t);else if("function"==typeof n.default)n=await n.default(t);else{var r,i,a,s;if(void 0!==n.data&&(n=n.data),r=n,"undefined"!=typeof Response&&r instanceof Response){n="function"==typeof WebAssembly.instantiateStreaming?await (a=n,e=>WebAssembly.instantiateStreaming(a,e))(t):await (s=n,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t)}else(i=n,"undefined"!=typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||void 0!==p&&p.isBuffer?.(i)||"undefined"!=typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"undefined"!=typeof Uint32Array&&i instanceof Uint32Array||n instanceof WebAssembly.Module)?n=await C(n)(t):"default"in n&&n.default instanceof WebAssembly.Module&&(n=await C(n.default)(t))}return"instance"in n&&(n=n.instance),"exports"in n&&(n=n.exports),n})}())}function C(e){return t=>WebAssembly.instantiate(e,t)}function A(e){i=e}function R(){return i}async function P(e){return e&&await x(e),{createScanner:e=>new S(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new w(e)}}var T=((e,t)=>{let n={};for(var r in e)l(n,r,{get:e[r],enumerable:!0});return t||l(n,Symbol.toStringTag,{value:"Module"}),n})({});((e,t,n)=>(d(e,t,"default"),n&&d(n,t,"default")))(T,s);let N=[{id:"abap",name:"ABAP",import:()=>n.e(65978).then(n.bind(n,65978))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(47039).then(n.bind(n,47039))},{id:"ada",name:"Ada",import:()=>n.e(48130).then(n.bind(n,48130))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(24560)]).then(n.bind(n,24560))},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(52577),n.e(41630),n.e(40803),n.e(72179),n.e(64720),n.e(48110)]).then(n.bind(n,40040))},{id:"apache",name:"Apache Conf",import:()=>n.e(91994).then(n.bind(n,91994))},{id:"apex",name:"Apex",import:()=>n.e(26760).then(n.bind(n,26760))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(33492),n.e(33355)]).then(n.bind(n,33355))},{id:"applescript",name:"AppleScript",import:()=>n.e(2347).then(n.bind(n,2347))},{id:"ara",name:"Ara",import:()=>n.e(7400).then(n.bind(n,7400))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(79465).then(n.bind(n,79465))},{id:"asm",name:"Assembly",import:()=>n.e(65475).then(n.bind(n,65475))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(40803),n.e(60391)]).then(n.bind(n,60391))},{id:"awk",name:"AWK",import:()=>n.e(13865).then(n.bind(n,13865))},{id:"ballerina",name:"Ballerina",import:()=>n.e(87066).then(n.bind(n,64685))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(37579).then(n.bind(n,37579))},{id:"beancount",name:"Beancount",import:()=>n.e(26377).then(n.bind(n,26377))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(41246).then(n.bind(n,41246))},{id:"bibtex",name:"BibTeX",import:()=>n.e(87718).then(n.bind(n,87718))},{id:"bicep",name:"Bicep",import:()=>n.e(71475).then(n.bind(n,71475))},{id:"bird2",name:"BIRD2 Configuration",aliases:["bird"],import:()=>n.e(64227).then(n.bind(n,64227))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(39288)]
9).then(n.bind(n,39288))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(78541).then(n.bind(n,78541))},{id:"c",name:"C",import:()=>n.e(661).then(n.bind(n,661))},{id:"c3",name:"C3",import:()=>n.e(7770).then(n.bind(n,7770))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(85559).then(n.bind(n,85559))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(76870),n.e(6242)]).then(n.bind(n,6242))},{id:"clarity",name:"Clarity",import:()=>n.e(54190).then(n.bind(n,54190))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(48154).then(n.bind(n,48154))},{id:"cmake",name:"CMake",import:()=>n.e(66475).then(n.bind(n,66475))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(33492),n.e(97615)]).then(n.bind(n,97615))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(7203).then(n.bind(n,7203))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(18320).then(n.bind(n,18320))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(52577),n.e(70152)]).then(n.bind(n,70152))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(43390).then(n.bind(n,43390))},{id:"coq",name:"Coq",import:()=>n.e(34341).then(n.bind(n,34341))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(86666),n.e(88835),n.e(37550),n.e(661),n.e(34174)]).then(n.bind(n,35365))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(37550),n.e(661),n.e(24313),n.e(43888)]).then(n.bind(n,43888))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(4533).then(n.bind(n,4533))},{id:"css",name:"CSS",import:()=>n.e(40803).then(n.bind(n,40803))},{id:"csv",name:"CSV",import:()=>n.e(10286).then(n.bind(n,10286))},{id:"cue",name:"CUE",import:()=>n.e(80227).then(n.bind(n,80227))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(40829).then(n.bind(n,40829))},{id:"d",name:"D",import:()=>n.e(78874).then(n.bind(n,78874))},{id:"dart",name:"Dart",import:()=>n.e(26667).then(n.bind(n,49048))},{id:"dax",name:"DAX",import:()=>n.e(83053).then(n.bind(n,83053))},{id:"desktop",name:"Desktop",import:()=>n.e(78202).then(n.bind(n,78202))},{id:"diff",name:"Diff",import:()=>n.e(50077).then(n.bind(n,50077))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(2140).then(n.bind(n,2140))},{id:"dotenv",name:"dotEnv",import:()=>n.e(19742).then(n.bind(n,19742))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(60576).then(n.bind(n,60576))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(40803),n.e(72179),n.e(38999)]).then(n.bind(n,38999))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(9645)]).then(n.bind(n,9645))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(661),n.e(5362)]).then(n.bind(n,5362))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(73879).then(n.bind(n,57434))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(661),n.e(24313),n.e(91213),n.e(52351),n.e(7319)]).then(n.bind(n,7319))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(86983),n.e(16397)]).then(n.bind(n,16397))},{id:"fennel",name:"Fennel",import:()=>n.e(11600).then(n.bind(n,11600))},{id:"fish",name:"Fish",import:()=>n.e(89130).then(n.bind(n,89130))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(20770).then(n.bind(n,20770))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(73914),n.e(7094)]).then(n.bind(n,7094))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(73914).then(n.bind(n,73914))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(86983),n.e(78714)]).then(n.bind(n,78714))},{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(16713).then(n.bind(n,16713))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(98932).then(n.bind(n,98932))},{id:"gdshader",name:"GDShader",import:()=>n.e(97662).then(n.bind(n,97662))},{id:"genie",name:"Genie",import:()=>n.e(28650).then(n.bind(n,28650))},{id:"gherkin",name:"Gherkin",import:()=>n.e(88508).then(n.bind(n,88508))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(42110).then(n.bind(n,42110))}
9,{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(24313),n.e(41381)]).then(n.bind(n,41381))},{id:"gleam",name:"Gleam",import:()=>n.e(16134).then(n.bind(n,16134))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(40803),n.e(72179),n.e(22899)]).then(n.bind(n,22899))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(40803),n.e(72179),n.e(87053)]).then(n.bind(n,87053))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(661),n.e(7336)]).then(n.bind(n,7336))},{id:"gn",name:"GN",import:()=>n.e(55803).then(n.bind(n,55803))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(24459).then(n.bind(n,24459))},{id:"go",name:"Go",import:()=>n.e(5106).then(n.bind(n,82725))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(91213)]).then(n.bind(n,91213))},{id:"groovy",name:"Groovy",import:()=>n.e(42558).then(n.bind(n,42558))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(37550),n.e(90155)]).then(n.bind(n,90155))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(96778)]).then(n.bind(n,96778))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(46188)]).then(n.bind(n,46188))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(92310).then(n.bind(n,92310))},{id:"haxe",name:"Haxe",import:()=>n.e(99544).then(n.bind(n,99544))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(41043).then(n.bind(n,41043))},{id:"hjson",name:"Hjson",import:()=>n.e(23252).then(n.bind(n,23252))},{id:"hlsl",name:"HLSL",import:()=>n.e(26905).then(n.bind(n,26905))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179)]).then(n.bind(n,72179))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(57737)]).then(n.bind(n,57737))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(33492),n.e(24313),n.e(91213),n.e(12212)]).then(n.bind(n,12212))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(33492),n.e(91213),n.e(52595)]).then(n.bind(n,52595))},{id:"hxml",name:"HXML",import:()=>n.e(9263).then(n.bind(n,9263))},{id:"hy",name:"Hy",import:()=>n.e(28397).then(n.bind(n,28397))},{id:"imba",name:"Imba",import:()=>n.e(39369).then(n.bind(n,39369))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(90244).then(n.bind(n,90244))},{id:"java",name:"Java",import:()=>n.e(33492).then(n.bind(n,33492))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(52577).then(n.bind(n,877))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(19642)]).then(n.bind(n,19642))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(52577),n.e(1003)]).then(n.bind(n,1003))},{id:"json",name:"JSON",import:()=>n.e(12010).then(n.bind(n,12010))},{id:"json5",name:"JSON5",import:()=>n.e(16741).then(n.bind(n,16741))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(62787).then(n.bind(n,62787))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(31564).then(n.bind(n,31564))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(8913).then(n.bind(n,8913))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(63205).then(n.bind(n,63205))},{id:"jsx",name:"JSX",import:()=>n.e(69312).then(n.bind(n,86433))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(52577),n.e(86666),n.e(88835),n.e(37550),n.e(661),n.e(76870),n.e(74180)]).then(n.bind(n,21037))},{id:"just",name:"Just",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(661),n.e(24313),n.e(91213),n.e(76870),n.e(52351),n.e(22363),n.e(34542)]).then(n.bind(n,34542))},{id:"kdl",name:"KDL",import:()=>n.e(26645).then(n.bind(n,26645))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(59911).then(n.bind(n,59911))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(24142).then(n.bind(n,24142))},{id:"latex",name:"LaTeX",import:()=>n.e(43554).then(n.bind(n,43554))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(20220).then(n.bind(n,20220))},{id:"less",name:"Less",import:()=>n.e(52987).then(n.bind(n,75368))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(38828)]).then(n.bind(n,38828))},{id:"llvm",name:"LLVM IR",import:()=>n.e(37255).then(n.bind(n,37255))},{id:"log",name:"Log file",import:()=>n.e(42168).then(n.bind(n,42168))},{id:"logo",name:"Logo",import:()=>n.e(81373).then(n.bind(n,81373))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(661),n.e(24904)]).then(n.bind(n,24904))}
9,{id:"luau",name:"Luau",import:()=>n.e(72727).then(n.bind(n,72727))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(61950).then(n.bind(n,61950))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(86983).then(n.bind(n,86983))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(60535),n.e(40803),n.e(64720),n.e(52987),n.e(59212)]).then(n.bind(n,59212))},{id:"matlab",name:"MATLAB",import:()=>n.e(86279).then(n.bind(n,86279))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(86983),n.e(76612)]).then(n.bind(n,76612))},{id:"mdx",name:"MDX",import:()=>n.e(67231).then(n.bind(n,67231))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(80131).then(n.bind(n,80131))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(33556).then(n.bind(n,33556))},{id:"mojo",name:"Mojo",import:()=>n.e(58097).then(n.bind(n,58097))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(1298).then(n.bind(n,1298))},{id:"move",name:"Move",import:()=>n.e(80623).then(n.bind(n,80623))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(95344).then(n.bind(n,95344))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(89235).then(n.bind(n,89235))},{id:"nextflow-groovy",name:"Nextflow Groovy",import:()=>n.e(49460).then(n.bind(n,49460))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(661),n.e(56254)]).then(n.bind(n,56254))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(33492),n.e(661),n.e(86983),n.e(45486)]).then(n.bind(n,45486))},{id:"nix",name:"Nix",import:()=>n.e(24862).then(n.bind(n,24862))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(9993).then(n.bind(n,9993))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(84575).then(n.bind(n,84575))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(14763).then(n.bind(n,88095))},{id:"ocaml",name:"OCaml",import:()=>n.e(82362).then(n.bind(n,82362))},{id:"odin",name:"Odin",import:()=>n.e(98616).then(n.bind(n,98616))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(40789).then(n.bind(n,40789))},{id:"pascal",name:"Pascal",import:()=>n.e(13332).then(n.bind(n,13332))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(22363),n.e(55361)]).then(n.bind(n,22363))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(1342),n.e(77742)]).then(n.bind(n,1342))},{id:"pkl",name:"Pkl",import:()=>n.e(4003).then(n.bind(n,4003))},{id:"plsql",name:"PL/SQL",import:()=>n.e(54730).then(n.bind(n,54730))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(67363).then(n.bind(n,67363))},{id:"polar",name:"Polar",import:()=>n.e(92102).then(n.bind(n,92102))},{id:"postcss",name:"PostCSS",import:()=>n.e(70749).then(n.bind(n,70749))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(40365).then(n.bind(n,40365))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(86363).then(n.bind(n,86363))},{id:"prisma",name:"Prisma",import:()=>n.e(27104).then(n.bind(n,27104))},{id:"prolog",name:"Prolog",import:()=>n.e(79661).then(n.bind(n,79661))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(35576).then(n.bind(n,35576))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(51250)]).then(n.bind(n,51250))},{id:"puppet",name:"Puppet",import:()=>n.e(17182).then(n.bind(n,17182))},{id:"purescript",name:"PureScript",import:()=>n.e(22239).then(n.bind(n,22239))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(76870).then(n.bind(n,76870))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(52577),n.e(51788)]).then(n.bind(n,51788))},{id:"qmldir",name:"QML Directory",import:()=>n.e(3527).then(n.bind(n,3527))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(70669).then(n.bind(n,70669))},{id:"r",name:"R",import:()=>n.e(90628).then(n.bind(n,90628))},{id:"racket",name:"Racket",import:()=>n.e(85178).then(n.bind(n,85178))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(66691).then(n.bind(n,66691))},{id:"razor",name:"ASP.NET Razor",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(4533),n.e(98558)]).then(n.bind(n,98558))},{id:"reg",name:"Windows Registry Script",import:()=>
9n.e(46180).then(n.bind(n,46180))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(99611).then(n.bind(n,99611))},{id:"rel",name:"Rel",import:()=>n.e(57039).then(n.bind(n,57039))},{id:"riscv",name:"RISC-V",import:()=>n.e(47783).then(n.bind(n,47783))},{id:"ron",name:"RON",import:()=>n.e(57923).then(n.bind(n,57923))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(86131).then(n.bind(n,86131))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(661),n.e(24313),n.e(91213),n.e(76870),n.e(52351),n.e(70773)]).then(n.bind(n,70773))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(661),n.e(24313),n.e(91213),n.e(52351)]).then(n.bind(n,45308))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(78806).then(n.bind(n,78806))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(37550),n.e(18121)]).then(n.bind(n,18121))},{id:"sass",name:"Sass",import:()=>n.e(56358).then(n.bind(n,56358))},{id:"scala",name:"Scala",import:()=>n.e(98508).then(n.bind(n,98508))},{id:"scheme",name:"Scheme",import:()=>n.e(63173).then(n.bind(n,63173))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(40803),n.e(64720)]).then(n.bind(n,64720))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(11919).then(n.bind(n,11919))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(55710).then(n.bind(n,55710))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(24313).then(n.bind(n,24313))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(24313),n.e(35818)]).then(n.bind(n,35818))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(47213).then(n.bind(n,47213))},{id:"solidity",name:"Solidity",import:()=>n.e(86707).then(n.bind(n,86707))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(52577),n.e(40803),n.e(72179),n.e(685)]).then(n.bind(n,685))},{id:"sparql",name:"SPARQL",import:()=>n.e(36147).then(n.bind(n,36147))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(19269).then(n.bind(n,19269))},{id:"sql",name:"SQL",import:()=>n.e(37550).then(n.bind(n,37550))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(92309).then(n.bind(n,92309))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(37550),n.e(28933)]).then(n.bind(n,28933))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(75998).then(n.bind(n,75998))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(52577),n.e(68603)]).then(n.bind(n,68603))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(40803),n.e(45733)]).then(n.bind(n,45733))},{id:"swift",name:"Swift",import:()=>n.e(4123).then(n.bind(n,4123))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(4966).then(n.bind(n,4966))},{id:"systemd",name:"Systemd Units",import:()=>n.e(81675).then(n.bind(n,81675))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(12851).then(n.bind(n,12851))},{id:"tasl",name:"Tasl",import:()=>n.e(16256).then(n.bind(n,16256))},{id:"tcl",name:"Tcl",import:()=>n.e(53151).then(n.bind(n,53151))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(52577),n.e(40803),n.e(5106),n.e(89528)]).then(n.bind(n,89528))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(61478).then(n.bind(n,61478))}
9,{id:"tex",name:"TeX",import:()=>n.e(85449).then(n.bind(n,85449))},{id:"toml",name:"TOML",import:()=>n.e(62772).then(n.bind(n,62772))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(52577),n.e(60535),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(661),n.e(58129)]).then(n.bind(n,58129))},{id:"tsv",name:"TSV",import:()=>n.e(84053).then(n.bind(n,84053))},{id:"tsx",name:"TSX",import:()=>n.e(26814).then(n.bind(n,94651))},{id:"turtle",name:"Turtle",import:()=>n.e(93486).then(n.bind(n,93486))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(26814),n.e(69312),n.e(86666),n.e(88835),n.e(40803),n.e(72179),n.e(33492),n.e(37550),n.e(661),n.e(24313),n.e(91213),n.e(76870),n.e(52351),n.e(64720),n.e(1342),n.e(64827)]).then(n.bind(n,64827))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(60535).then(n.bind(n,63941))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(10321).then(n.bind(n,10321))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(83068).then(n.bind(n,83068))}
9,{id:"v",name:"V",import:()=>n.e(10064).then(n.bind(n,10064))},{id:"vala",name:"Vala",import:()=>n.e(19126).then(n.bind(n,19126))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(38584).then(n.bind(n,38584))},{id:"verilog",name:"Verilog",import:()=>n.e(36572).then(n.bind(n,36572))},{id:"vhdl",name:"VHDL",import:()=>n.e(81730).then(n.bind(n,81730))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(89416).then(n.bind(n,67035))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(52577),n.e(60535),n.e(40803),n.e(72179),n.e(45095)]).then(n.bind(n,45095))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(52577),n.e(78758)]).then(n.bind(n,78758))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(52577),n.e(31290),n.e(40803),n.e(64720),n.e(52987),n.e(43794)]).then(n.bind(n,7693))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(26310).then(n.bind(n,26310))},{id:"wasm",name:"WebAssembly",import:()=>n.e(65052).then(n.bind(n,65052))},{id:"wenyan",name:"Wenyan",aliases:["æè¨"],import:()=>n.e(59770).then(n.bind(n,59770))},{id:"wgsl",name:"WGSL",import:()=>n.e(67919).then(n.bind(n,67919))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(5781).then(n.bind(n,5781))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(49730).then(n.bind(n,49730))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(17442).then(n.bind(n,21030))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(33492),n.e(123)]).then(n.bind(n,55361))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(33492),n.e(14131)]).then(n.bind(n,14131))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(20681).then(n.bind(n,20681))},{id:"zenscript",name:"ZenScript",import:()=>n.e(96400).then(n.bind(n,96400))},{id:"zig",name:"Zig",import:()=>n.e(78360).then(n.bind(n,78360))}],E=Object.fromEntries(N.map(e=>[e.id,e.import])),L=Object.fromEntries(N.flatMap(e=>e.aliases?.map(t=>[t,e.import])||[])),M={...E,...L},O=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(71969).then(n.bind(n,71969))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(27886).then(n.bind(n,27886))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(94117).then(n.bind(n,94117))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(61093).then(n.bind(n,61093))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(40944).then(n.bind(n,40944))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(34556).then(n.bind(n,34556))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(61274).then(n.bind(n,61274))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(39461).then(n.bind(n,39461))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(84374).then(n.bind(n,84374))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(55432).then(n.bind(n,55432))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(45555).then(n.bind(n,45555))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(58418).then(n.bind(n,58418))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(55409).then(n.bind(n,55409))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(95017).then(n.bind(n,17398))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(40971).then(n.bind(n,40971))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(73899).then(n.bind(n,73899))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(19830).then(n.bind(n,19830))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(44635).then(n.bind(n,44635))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(59467).then(n.bind(n,59467))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(29035).then(n.bind(n,29035))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(64891).then(n.bind(n,64891))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(45101).then(n.bind(n,45101))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(51).then(n.bind(n,51))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(92506).then(n.bind(n,92506))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(86797).then(n.bind(n,86797))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(68819).then(n.bind(n,68819))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(50554).then(n.bind(n,50554))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(31852).then(n.bind(n,31852))},{id:"horizon-bright",displayName:"Horizon Bright",type:"light",import:()=>n.e(50103).then(n.bind(n,50103))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(9771).then(n.bind(n,9771))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(83972).then(n.bind(n,83972))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(18444).then(n.bind(n,18444))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(79002).then(n.bind(n,79002))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(77779).then(n.bind(n,77779))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(28336).then(n.bind(n,28336))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(64222).then(n.bind(n,64222))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(85276).then(n.bind(n,85276))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(19372).then(n.bind(n,19372))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(33167).then(n.bind(n,33167))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>
9n.e(22307).then(n.bind(n,22307))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(91288).then(n.bind(n,91288))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(2346).then(n.bind(n,2346))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(67475).then(n.bind(n,67475))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(82750).then(n.bind(n,82750))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(46509).then(n.bind(n,46509))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(36974).then(n.bind(n,36974))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(946).then(n.bind(n,946))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(96662).then(n.bind(n,96662))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(48817).then(n.bind(n,48817))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(1087).then(n.bind(n,1087))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(15776).then(n.bind(n,15776))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(50001).then(n.bind(n,50001))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(61394).then(n.bind(n,61394))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(72807).then(n.bind(n,72807))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(33916).then(n.bind(n,33916))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(11593).then(n.bind(n,11593))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(54135).then(n.bind(n,54135))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(20791).then(n.bind(n,20791))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(58671).then(n.bind(n,58671))},{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(99407).then(n.bind(n,99407))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(8702).then(n.bind(n,8702))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(90614).then(n.bind(n,90614))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(38210).then(n.bind(n,38210))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(25503).then(n.bind(n,25503))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(36967).then(n.bind(n,36967))}].map(e=>[e.id,e.import]));var I=class extends Error{constructor(e){super(e),this.name="ShikiError"}},$=n(87358);function B(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var z=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,j=class{static hasCaptures(e){return null!==e&&(z.lastIndex=0,z.test(e))}static replaceCaptures(e,t,n){return e.replace(z,(e,r,i,a)=>{let s=n[parseInt(r||i,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(a){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function D(e,t){if(null===e&&null===t)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++){var i,a;let n=(i=e[r],i<(a=t[r])?-1:+(i>a));if(0!==n)return n}return 0}return n-r}function F(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 G(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var U=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}},q=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(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,a=t[e];if(!a.settings)continue;if("string"==typeof a.scope){let e=a.scope;i=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else i=Array.isArray(a.scope)?a.scope:[""];let s=-1;if("string"==typeof a.settings.fontStyle){s=0;let e=a.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let o=null;"string"==typeof a.settings.foreground&&F(a.settings.foreground)&&
9(o=a.settings.foreground);let l=null;"string"==typeof a.settings.background&&F(a.settings.background)&&(l=a.settings.background);for(let t=0,a=i.length;t<a;t++){let a=i[t].trim().split(" "),c=a[a.length-1],u=null;a.length>1&&(u=a.slice(0,a.length-1)).reverse(),n[r++]=new V(c,u,e,s,o,l)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,r;let i=(n=e.scope,n<(r=t.scope)?-1:+(n>r));return 0!==i||0!==(i=D(e.parentScopes,t.parentScopes))?i:e.index-t.index});let n=0,r="#000000",i="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(r=t.foreground),null!==t.background&&(i=t.background)}let a=new Q(t),s=new W(n,a.getId(r),a.getId(i)),o=new Y(new J(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];o.insert(0,n.scope,n.parentScopes,n.fontStyle,a.getId(n.foreground),a.getId(n.background))}return new q(a,s,o)}(e,t)}_cachedMatchRoot=new U(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let i=0;i<t.length;i++){var n,r;let a=t[i],s=!1;if(">"===a){if(i===t.length-1)return!1;a=t[++i],s=!0}for(;e&&(n=e.scopeName,!((r=a)===n||n.startsWith(r)&&"."===n[r.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new W(n.fontStyle,n.foreground,n.background):null}},H=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||null!==this.parent&&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}},W=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},V=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}},X=(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))(X||{}),Q=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(null===e)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)}},K=Object.freeze([]),J=class e{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(e,t,n,r,i){this.scopeDepth=e,this.parentScopes=t||K,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,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==r&&(this.background=r)}},Y=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(0!==i)return i;n++,r++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e,n,r=t.indexOf(".");if(-1===r?(e=t,n=""):(e=t.substring(0,r),n=t.substring(r+1)),this._children.hasOwnProperty(e))return this._children[e].match(n)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,r,i,a,s){let o,l,c;if(""===n)return void this._doInsertHere(t,r,i,a,s);let u=n.indexOf(".");-1===u?(o=n,l=""):(o=n.substring(0,u),l=n.substring(u+1)),this._children.hasOwnProperty(o)?c=this._children[o]:(c=new e(this._mainRule.clone(),J.cloneArr(this._rulesWithParentScopes)),this._children[o]=c),c.insert(t+1,l,r,i,a,s)}_doInsertHere(e,t,n,r,i){if(null===t)return void this._mainRule.acceptOverwrite(e,n,r,i);for(let a=0,s=this._rulesWithParentScopes.length;a<s;a++){let s=this._rulesWithParentScopes[a];if(0===D(s.parentScopes,t))return void s.acceptOverwrite(e,n,r,i)}-1===n&&(n=this._mainRule.fontStyle),0===r&&(r=this._mainRule.foreground),0===i&&(i=this._mainRule.background),this._rulesWithParentScopes.push(new J(e,t,n,r,i))}},Z=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}
9static print(t){let n=e.getLanguageId(t),r=e.getTokenType(t),i=e.getFontStyle(t);console.log({languageId:n,tokenType:r,fontStyle:i,foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(0xff8000&e)>>>15}static getBackground(e){return(0xff000000&e)>>>24}static set(t,n,r,i,a,s,o){let l=e.getLanguageId(t),c=e.getTokenType(t),u=+!!e.containsBalancedBrackets(t),h=e.getFontStyle(t),d=e.getForeground(t),p=e.getBackground(t);return 0!==n&&(l=n),8!==r&&(c=r),null!==i&&(u=+!!i),-1!==a&&(h=a),0!==s&&(d=s),0!==o&&(p=o),(0|l|c<<8|u<<10|h<<11|d<<15|p<<24)>>>0}};function ee(e,t){var n;let r,i,a=[],s=(n=e,i=(r=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(n),{next:()=>{if(!i)return null;let e=i[0];return i=r.exec(n),e}}),o=s.next();for(;null!==o;){let e=0;if(2===o.length&&":"===o.charAt(1)){switch(o.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${o} in scope selector`)}o=s.next()}let t=c();if(a.push({matcher:t,priority:e}),","!==o)break;o=s.next()}return a;function l(){if("-"===o){o=s.next();let e=l();return t=>!!e&&!e(t)}if("("===o){o=s.next();let e=function(){let e=[],t=c();for(;t&&(e.push(t),"|"===o||","===o);){do o=s.next();while("|"===o||","===o);t=c()}return t=>e.some(e=>e(t))}();return")"===o&&(o=s.next()),e}if(et(o)){let e=[];do e.push(o),o=s.next();while(et(o));return n=>t(e,n)}return null}function c(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function et(e){return!!e&&!!e.match(/[\w\.:]+/)}var en=(e=>(e[e.None=0]="None",e[e.NotBeginString=1]="NotBeginString",e[e.NotEndString=2]="NotEndString",e[e.NotBeginPosition=4]="NotBeginPosition",e[e.DebugCall=8]="DebugCall",e))(en||{});function er(e){"function"==typeof e.dispose&&e.dispose()}var ei=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},ea=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},es=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))}},eo=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new ei(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){let e=this.Q;this.Q=[];let t=new es;for(let n of e)!function(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 ei?ec({baseGrammar:a,selfGrammar:i},r):el(e.ruleName,{baseGrammar:a,selfGrammar:i,repository:i.repository},r);let s=n.injections(e.scopeName);if(s)for(let e of s)r.add(new ei(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof ei){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 el(e,t,n){t.repository&&t.repository[e]&&eu([t.repository[e]],t,n)}function ec(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&eu(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&eu(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function eu(e,t,n){for(let r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);let e=r.repository?B({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&eu(r.patterns,{...t,repository:e},n);let i=r.include;if(!i)continue;let a=eg(i);switch(a.kind){case 0:ec({...t,selfGrammar:t.baseGrammar},n);break;case 1:ec(t,n);break;case 2:el(a.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=a.scopeName===t.selfGrammar.scopeName?t.selfGrammar:a.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let r={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===a.kind?el(a.ruleName,r,n):ec(r,n)}else 4===a.kind?n.add(new ea(a.scopeName,a.ruleName)):n.add(new ei(a.scopeName))}}}var eh=class{kind=0},ed=class{kind=1},ep=class{constructor(e){this.ruleName=e}kind=2},em=class{constructor(e){this.scopeName=e}kind=3},ef=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};
9function eg(e){if("$base"===e)return new eh;if("$self"===e)return new ed;let t=e.indexOf("#");return -1===t?new em(e):0===t?new ep(e.substring(1)):new ef(e.substring(0,t),e.substring(t+1))}var eb=/\\(\d+)/,ey=/\\(\d+)/g;Symbol("RuleId");var ek=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=j.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=j.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?j.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?j.replaceCaptures(this._contentName,e,t):this._contentName}},e_=class extends ek{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!")}},ev=class extends ek{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,i){super(e,t,n,null),this._match=new eA(r,this.id),this.captures=i,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=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 eR,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},ew=class extends ek{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(),this._cachedCompiledPatterns=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 eR,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},eS=class extends ek{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,i,a,s,o,l,c){super(e,t,n,r),this._begin=new eA(i,this.id),this.beginCaptures=a,this._end=new eA(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=o,this.applyEndPatternLast=l||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=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){for(let t of(this._cachedCompiledPatterns=new eR,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}},ex=class extends ek{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,i,a,s,o,l){super(e,t,n,r),this._begin=new eA(i,this.id),this.beginCaptures=a,this.whileCaptures=o,this._while=ne
9w eA(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=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)for(let t of(this._cachedCompiledPatterns=new eR,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 eR,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
9},eC=class e{static createCaptureRule(e,t,n,r,i){return e.registerRule(e=>new e_(t,e,n,r,i))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(i=>{if(t.id=i,t.match)return new ev(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,r));if(void 0===t.begin){t.repository&&(r=B({},r,t.repository));let i=t.patterns;return void 0===i&&t.include&&(i=[{include:t.include}]),new ew(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(i,n,r))}return t.while?new ex(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 eS(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("$vscodeTextmateLocation"===e)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("$vscodeTextmateLocation"===a)continue;let s=parseInt(a,10),o=0;t[a].patterns&&(o=e.getCompiledRuleId(t[a],n,r)),i[s]=e.createCaptureRule(n,t[a].$vscodeTextmateLocation,t[a].name,t[a].contentName,o)}}return i}static _compilePatterns(t,n,r){let i=[];if(t)for(let a=0,s=t.length;a<s;a++){let s=t[a],o=-1;if(s.include){let t=eg(s.include);switch(t.kind){case 0:case 1:o=e.getCompiledRuleId(r[s.include],n,r);break;case 2:let i=r[t.ruleName];i&&(o=e.getCompiledRuleId(i,n,r));break;case 3:case 4:let a=t.scopeName,l=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(a,r);if(c)if(l){let t=c.repository[l];t&&(o=e.getCompiledRuleId(t,n,c.repository))}else o=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}else o=e.getCompiledRuleId(s,n,r);if(-1!==o){let e=n.getRule(o),t=!1;if((e instanceof ew||e instanceof eS||e instanceof ex)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;i.push(o)}}return{patterns:i,hasMissingPatterns:(t?t.length:0)!==i.length}}},eA=class e{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(e,t){if(e&&"string"==typeof e){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);"z"===t?(r.push(e.substring(n,a)),r.push("$(?!\\n)(?<!\\n)"),n=a+2):("A"===t||"G"===t)&&(i=!0),a++}this.hasAnchor=i,0===n?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,"string"==typeof this.source?this.hasBackReferences=eb.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("string"!=typeof this.source)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 ey.lastIndex=0,this.source.replace(ey,(e,t)=>G(n[parseInt(t,10)]||""))}_buildAnchorCache(){let e,t,n,r;if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let i=[],a=[],s=[],o=[];for(e=0,t=this.source.length;e<t;e++)n=this.source.charAt(e),i[e]=n,a[e]=n,s[e]=n,o[e]=n,"\\"===n&&e+1<t&&("A"===(r=this.source.charAt(e+1))?(i[e+1]="ï¿¿",a[e+1]="ï¿¿",s[e+1]="A",o[e+1]="A"):"G"===r?(i[e+1]="ï¿¿",a[e+1]="G",s[e+1]="ï¿¿",o[e+1]="G"):(i[e+1]=r,a[e+1]=r,s[e+1]=r,o[e+1]=r),e++);return{A0_G0:i.join(""),A0_G1:a.join(""),A1_G0:s.join(""),A1_G1:o.join("")}}resolveAnchors(e,t){if(!this.hasAnchor||!this._anchorCache||"string"!=typeof this.source)return this.source;if(e)if(t)return this._anchorCache.A1_G1;else return this._anchorCache.A1_G0;return t?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},eR=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(),this._cached=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)}
9push(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 eP(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){if(!this._hasAnchors)return this.compile(e);if(t)if(n)return this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1;else return this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0;return 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)}_resolveAnchors(e,t,n){return new eP(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},eP=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){"function"==typeof this.scanner.dispose&&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("\n")}findNextMatchSync(e,t,n){let r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},eT=class{constructor(e,t){this.languageId=e,this.tokenType=t}},eN=class e{_defaultAttributes;_embeddedLanguagesMatcher;constructor(e,t){this._defaultAttributes=new eT(e,8),this._embeddedLanguagesMatcher=new eE(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return null===t?e._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new eT(0,0);_getBasicScopeAttributes=new U(e=>new eT(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/},eE=class{values;scopesRegExp;constructor(e){if(0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>G(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])}};void 0!==$&&$.env.VSCODE_TEXTMATE_DEBUG;var eL=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function eM(e,t,n,r,i,a,s,o){let l=t.content.length,c=!1,u=-1;if(s){let s=function(e,t,n,r,i,a){let s=i.beginRuleCapturedEOL?0:-1,o=[];for(let t=i;t;t=t.pop()){let n=t.getRule(e);n instanceof ex&&o.push({rule:n,stack:t})}for(let p=o.pop();p;p=o.pop()){var l,c,u,h,d;let{ruleScanner:o,findOptions:m}=(l=p.rule,c=e,u=p.stack.endRule,h=n,d=r===s,{ruleScanner:l.compileWhileAG(c,u,h,d),findOptions:0}),f=o.findNextMatchSync(t,r,m);if(f){if(-2!==f.ruleId){i=p.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(a.produce(p.stack,f.captureIndices[0].start),eI(e,t,n,p.stack,a,p.rule.whileCaptures,f.captureIndices),a.produce(p.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>r&&(r=f.captureIndices[0].end,n=!1))}else{i=p.stack.pop();break}}return{stack:i,linePos:r,anchorPosition:s,isFirstLine:n}}(e,t,n,r,i,a);i=s.stack,r=s.linePos,n=s.isFirstLine,u=s.anchorPosition}let h=Date.now();for(;!c;){if(0!==o&&Date.now()-h>o)return new eL(i,!0);!function(){let s=function(e,t,n,r,i,a){let s=function(e,t,n,r,i,a){let{ruleScanner:s,findOptions:o}=eO(i.getRule(e),e,i.endRule,n,r===a),l=s.findNextMatchSync(t,r,o);return l?{captureIndices:l.captureIndices,matchedRuleId:l.ruleId}:null}(e,t,n,r,i,a),o=e.getInjections();if(0===o.length)return s;let l=function(e,t,n,r,i,a,s){let o,l=Number.MAX_VALUE,c=null,u=0,h=a.contentNameScopesList.getScopeNames();for(let a=0,d=e.length;a<d;a++){let d=e[a];if(!d.matcher(h))continue;let{ruleScanner:p,findOptions:m}=eO(t.getRule(d.ruleId),t,null,r,i===s),f=p.findNextMatchSync(n,i,m);if(!f)continue;let g=f.captureIndices[0].start;if(!(g>=l)&&(l=g,c=f.captureIndices,o=f.ruleId,u=d.priority,l===i))break}return c?{priorityMatch:-1===u,captureIndices:c,matchedRuleId:o}:null}(o,e,t,n,r,i,a);if(!l)return s;if(!s)return l;
9let c=s.captureIndices[0].start,u=l.captureIndices[0].start;return u<c||l.priorityMatch&&u===c?l:s}(e,t,n,r,i,u);if(!s){a.produce(i,l),c=!0;return}let o=s.captureIndices,h=s.matchedRuleId,d=!!o&&o.length>0&&o[0].end>r;if(-1===h){let s=i.getRule(e);a.produce(i,o[0].start),i=i.withContentNameScopesList(i.nameScopesList),eI(e,t,n,i,a,s.endCaptures,o),a.produce(i,o[0].end);let h=i;if(i=i.parent,u=h.getAnchorPos(),!d&&h.getEnterPos()===r){i=h,a.produce(i,l),c=!0;return}}else{let s=e.getRule(h);a.produce(i,o[0].start);let p=i,m=s.getName(t.content,o),f=i.contentNameScopesList.pushAttributed(m,e);if(i=i.push(h,r,u,o[0].end===l,null,f,f),s instanceof eS){eI(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),h=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),s.endHasBackReferences&&(i=i.withEndRule(s.getEndWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(s instanceof ex){eI(e,t,n,i,a,s.beginCaptures,o),a.produce(i,o[0].end),u=o[0].end;let r=s.getContentName(t.content,o),h=f.pushAttributed(r,e);if(i=i.withContentNameScopesList(h),s.whileHasBackReferences&&(i=i.withEndRule(s.getWhileWithResolvedBackReferences(t.content,o))),!d&&p.hasSameRuleAs(i)){i=i.pop(),a.produce(i,l),c=!0;return}}else if(eI(e,t,n,i,a,s.captures,o),a.produce(i,o[0].end),i=i.pop(),!d){i=i.safePop(),a.produce(i,l),c=!0;return}}o[0].end>r&&(r=o[0].end,n=!1)}()}return new eL(i,!1)}function eO(e,t,n,r,i){return{ruleScanner:e.compileAG(t,n,r,i),findOptions:0}}function eI(e,t,n,r,i,a,s){if(0===a.length)return;let o=t.content,l=Math.min(a.length,s.length),c=[],u=s[0].end;for(let t=0;t<l;t++){let l=a[t];if(null===l)continue;let h=s[t];if(0===h.length)continue;if(h.start>u)break;for(;c.length>0&&c[c.length-1].endPos<=h.start;
9)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?i.produceFromScopes(c[c.length-1].scopes,h.start):i.produce(r,h.start),l.retokenizeCapturedWithRuleId){let t=l.getName(o,s),a=r.contentNameScopesList.pushAttributed(t,e),c=l.getContentName(o,s),u=a.pushAttributed(c,e),d=r.push(l.retokenizeCapturedWithRuleId,h.start,-1,!1,null,a,u),p=e.createOnigString(o.substring(0,h.end));eM(e,p,n&&0===h.start,h.start,d,i,!1,0),er(p);continue}let d=l.getName(o,s);if(null!==d){let t=(c.length>0?c[c.length-1].scopes:r.contentNameScopesList).pushAttributed(d,e);c.push(new e$(t,h.end))}}for(;c.length>0;)i.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var e$=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function eB(e,t,n,r,i){let a=ee(t,ez),s=eC.getCompiledRuleId(n,r,i.repository);for(let n of a)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:i,priority:n.priority})}function ez(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(function(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]}(t[r],e))return n=r+1,!0;return!1})}var ej=class{constructor(e,t,n,r,i,a,s,o){if(this._rootScopeName=e,this.balancedBracketSelectors=a,this._onigLib=o,this._basicScopeAttributesProvider=new eN(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=eD(t,null),this._injections=null,this._tokenTypeMatchers=[],i)for(let e of Object.keys(i))for(let t of ee(e,ez))this._tokenTypeMatchers.push({matcher:t.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=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let r=n.injections;if(r)for(let t in r)eB(e,t,r[t],this,n);let i=this._grammarRepository.injections(t);i&&i.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&eB(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[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]=eD(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){let i;if(-1===this._rootId&&(this._rootId=eC.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==eG.NULL)i=!1,t.reset();else{let e;i=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),r=this.themeProvider.getDefaults(),a=Z.set(0,n.languageId,n.tokenType,null,r.fontStyle,r.foregroundId,r.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?eF.createRootAndLookUpScopeName(s,a,this):eF.createRoot("unknown",a),t=new eG(null,this._rootId,-1,-1,!1,null,e,e)}e+="\n";let a=this.createOnigString(e),s=a.content.length,o=new eq(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=eM(this,a,i,0,t,o,!0,r);return er(a),{lineLength:s,lineTokens:o,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function eD(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let r=0,i=t.length;r<i;r++)n[r]=e(t[r]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let r in t)n[r]=e(t[r]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
9,e.repository.$base=t||e.repository.$self,e}var eF=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)r=new e(r,i=H.push(i,t.scopeNames),t.encodedTokenAttributes);return r}static createRoot(t,n){return new e(null,new H(null,t),n)}static createRootAndLookUpScopeName(t,n,r){let i=r.getMetadataForScope(t),a=new H(null,t),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(n,i,s);return new e(null,a,o)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){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}}static mergeAttributes(e,t,n){let r=-1,i=0,a=0;return null!==n&&(r=n.fontStyle,i=n.foregroundId,a=n.backgroundId),Z.set(e,t.languageId,t.tokenType,null,r,i,a)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))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),s=r.themeProvider.themeMatch(a),o=e.mergeAttributes(t.tokenAttributes,i,s);return new e(t,a,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}},eG=class e{constructor(e,t,n,r,i,a,s,o){this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=i,this.endRule=a,this.nameScopesList=s,this.contentNameScopesList=o,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 null!==t&&e._equals(this,t)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&eF.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){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}}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,s,o){return new e(this,t,n,r,i,a,s,o)}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: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=eF.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new e(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,eF.fromExtension(r,n.contentNameScopesList))}},eU=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):ee(e,ez).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>ee(e,ez).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!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}},eq=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>
90||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=e?.getScopeNames()??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(n=Z.set(n,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(r=this.balancedBracketSelectors.match(t))}if(r&&(n=Z.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(),0===this._tokens.length&&(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()),0===this._binaryTokens.length&&(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}},eH=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,new ej(e,a,t,n,r,i,this,this._onigLib))}return this._grammars.get(e)}},eW=class{_options;_syncRegistry;_ensureGrammarCache;constructor(e){this._options=e,this._syncRegistry=new eH(q.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(q.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 eU(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,r,i){let a=new eo(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="function"==typeof this._options.getInjections?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)}},eV=eG.NULL;function eX(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},r="string"==typeof e?e:e.name;for(let[e,i]of Object.entries(t?.colorReplacements||{}))"string"==typeof i?n[e]=i:e===r&&Object.assign(n,i);return n}function eQ(e,t){return e&&t?.[e?.toLowerCase()]||e}async function eK(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function eJ(e){return!e||["plaintext","txt","text","plain"].includes(e)}function eY(e){return"ansi"===e||eJ(e)}function eZ(e){return"none"===e}function e0(e,t=!1){if(0===e.length)return[["",0]];let n=e.split(/(\r?\n)/g),r=0,i=[];for(let e=0;e<n.length;e+=2){let a=t?n[e]+(n[e+1]||""):n[e];i.push([a,r]),r+=n[e].length,r+=n[e+1]?.length||0}return i}let e1={light:"#333333",dark:"#bbbbbb"},e2={light:"#fffffe",dark:"#1e1e1e"},e5="__shiki_resolved";function e3(e){if(e?.[e5])return e;let t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){let e=t.settings?t.settings.find(e=>!e.name&&!e.scope):void 0;e?.settings?.foreground&&(r=e.settings.foreground),e?.settings?.background&&(n=e.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r="light"===t.type?e1.light:e1.dark),n||(n="light"===t.type?e2.light:e2.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let i=0,a=new Map;function s(e){if(a.has(e))return a.get(e);i+=1;let n=`#${i.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${n}`]?s(e):(a.set(e,n),n)}for(let e of(t.settings=t.settings.map(e=>{let n=e.settings?.foreground&&!e.settings.foreground.startsWith("#"),r=e.settings?.background&&!e.settings.background.startsWith("#");if(!n&&!r)return e;let i={...e,settings:{...e.settings}};if(n){let n=s(e.settings.foreground);t.colorReplacements[n]=e.settings.foreground,i.settings.foreground=n}if(r){let n=s(e.settings.background);t.colorReplacements[n]=e.settings.background,i.settings.background=n}return i}),Object.keys(t.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!t.colors[e]?.startsWith("#")){let n=s(t.colors[e]);t.colorReplacements[n]=t.colors[e],t.colors[e]=n}return Object.defineProperty(t,e5,{enumerable:!1,writable:!1,value:!0}),t}async function e6(e){return Array.from(new Set((await Promise.all(e.filter(e=>!eY(e)).map(async e=>await eK(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function e7(e){return(await Promise.all(e.map(async e=>eZ(e)?null:e3(await eK(e))))).filter(e=>!!e)}function e8(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new I(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}var e4=class extends eW{_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;constructor(e,t,n,r={}){super(e),this._resolver=e,this._themes=t,this._langs=n,this._alias=r,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=e3(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=q.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=e8(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){if(this.getGrammar(e.name))return;let t=new Set([...this._langMap.values()].filter(t=>t.embeddedLangsLazy?.includes(e.name)));this._resolver.addLanguage(e);let n={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let r=this.loadGrammarWithConfiguration(e.scopeName,1,n);if(r.name=e.name,this._resolvedGrammars.set(e.name,r),e.aliases&&e.aliases.forEac
9h(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,t.size)for(let e of t)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(e.scopeName),this._syncRegistry?._grammars?.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>!!t&&(t.embeddedLanguages||t.embeddedLangs)?.some(e=>n.map(([e])=>e).includes(e))).filter(e=>!n.includes(e));throw new I(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}},e9=class{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(e,t){this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let r=t.slice(0,e).join(".");n=[...n,...this._injections.get(r)||[]]}return n}};let te=0;async function tt(e){e.engine||console.warn("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,r]=await Promise.all([e7(e.themes||[]),e6(e.langs||[]),e.engine]);return function(e){let t;te+=1,!1!==e.warnings&&te>=10&&te%10==0&&console.warn(`[Shiki] ${te} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new I("`engine` option is required for synchronous mode");let r=(e.langs||[]).flat(1),i=(e.themes||[]).flat(1).map(e3),a=new e4(new e9(e.engine,r),i,r,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=a.getTheme(e);if(!t)throw new I(`Theme \`${e}\` not found, you may need to load it first`);return t}function o(...e){c(),a.loadLanguages(e.flat(1))}function l(...e){for(let t of(c(),e.flat(1)))a.loadTheme(t)}function c(){if(n)throw new I("Shiki instance has been disposed")}function u(){n||(n=!0,a.dispose(),te-=1)}return{setTheme:function(e){c();let n=s(e);return t!==e&&(a.setTheme(n),t=e),{theme:n,colorMap:a.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=a.getGrammar("string"==typeof e?e:e.name);if(!t)throw new I(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),a.getLoadedThemes()},getLoadedLanguages:function(){return c(),a.getLoadedLanguages()},resolveLangAlias:function(t){return e8(t,e.langAlias)},loadLanguage:async function(...e){return o(await e6(e))},loadLanguageSync:o,loadTheme:async function(...e){return c(),l(await e7(e))},loadThemeSync:l,dispose:u,[Symbol.dispose]:u}}({...e,themes:t,langs:n,engine:r})}let tn=new WeakMap;function tr(e,t){tn.set(e,t)}function ti(e){return tn.get(e)}var ta=class e{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new e(Object.fromEntries((Array.isArray(n)?n:[n]).map(e=>[e,eV])),t)}constructor(...e){if(2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,r]=e;this.lang=n,this._stacks={[r]:t}}}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){var t=this._stacks[e];let n=[],r=new Set;return!function e(t){if(r.has(t))return;r.add(t);let i=t?.nameScopesList?.scopeName;i&&n.push(i),t.parent&&e(t.parent)}(t),n}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}};function ts(e,t,n={}){let{theme:r=e.getLoadedThemes()[0]}=n;if(eJ(e.resolveLangAlias(n.lang||"text"))||eZ(r))return e0(t).map(e=>[{content:e[0],offset:e[1]}]);let{theme:i,colorMap:a}=e.setTheme(r),s=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==s.name)throw new I(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${s.name}"`);if(!n.grammarState.themes.includes(i.name))throw new I(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${i.name}"`)}var o=t,l=s,c=i,u=a,h=n;let d=to(o,l,c,u,h),p=new ta(d.stateStack,l.name,c.name);return tr(d.tokens,p),d.tokens}function to(e,t,n,r,i){let a=eX(n,i),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:o=500}=i,l=e0(e),c=i.grammarState?function(e,t){if(!(e instanceof ta))throw new I("Invalid grammar state");return e.getInternalStack(t)}(i.grammarState,n.name)??eV:null!=i.grammarContextCode?to(i.grammarContextCode,t,n,r,{...i,grammarState:void 0,grammarContextCode:void 0}).stateStack:eV,u=[],h=[];for(let e=0,d=l.length;e<d;e++){let d,p,[m,f]=l[e];
9if(""===m){u=[],h.push([]);continue}if(s>0&&m.length>=s){u=[],h.push([{content:m,offset:f,color:"",fontStyle:0}]);continue}i.includeExplanation&&(d=t.tokenizeLine(m,c,o).tokens,p=0);let g=t.tokenizeLine2(m,c,o),b=g.tokens.length/2;for(let e=0;e<b;e++){let t=g.tokens[2*e],s=e+1<b?g.tokens[2*e+2]:m.length;if(t===s)continue;let o=g.tokens[2*e+1],l=eQ(r[Z.getForeground(o)],a),c=Z.getFontStyle(o),h={content:m.substring(t,s),offset:f+t,color:l,fontStyle:c};if(i.includeExplanation){let e=[];if("scopeName"!==i.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}h.explanation=[];let r=0;for(;t+r<s;){let t=d[p],n=m.substring(t.startIndex,t.endIndex);r+=n.length,h.explanation.push({content:n,scopes:"scopeName"===i.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let r=0,i=t.length;r<i;r++){let i=t[r];n[r]={scopeName:i,themeMatches:function(e,t,n){let r=[];for(let{selectors:i,settings:a}of e)for(let e of i)if(function(e,t,n){if(!tl(e[e.length-1],t))return!1;let r=e.length-2,i=n.length-1;for(;r>=0&&i>=0;)tl(e[r],n[i])&&(r-=1),i-=1;return -1===r}(e,t,n)){r.push(a);break}return r}(e,i,t.slice(0,r))}}return n}(e,t.scopes)}),p+=1}}u.push(h)}h.push(u),u=[],c=g.ruleStack}return{tokens:h,stateStack:c}}function tl(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function tc(e,t,n,r=ts){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=r(e,t,{...n,theme:i.theme});return{tokens:a,state:ti(a),theme:"string"==typeof i.theme?i.theme:i.theme.name}}),s=function(...e){let t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){let i=e.map(e=>e[r]),a=t.map(()=>[]);t.forEach((e,t)=>e.push(a[t]));let s=i.map(()=>0),o=i.map(e=>e[0]);for(;o.every(e=>e);){let e=Math.min(...o.map(e=>e.content.length));for(let t=0;t<n;t++){let n=o[t];n.content.length===e?(a[t].push(n),s[t]+=1,o[t]=i[t][s[t]]):(a[t].push({...n,content:n.content.slice(0,e)}),o[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...a.map(e=>e.tokens)),o=s[0].map((e,t)=>e.map((e,r)=>{let a={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(a.explanation=e.explanation),s.forEach((e,n)=>{let{content:s,explanation:o,offset:l,...c}=e[t][r];a.variants[i[n].color]=c}),a})),l=a[0].state?new ta(Object.fromEntries(a.map(e=>[e.theme,e.state?.getInternalStack(e.theme)])),a[0].state.lang):void 0;return l&&tr(o,l),o}let tu=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"];class th{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function td(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new th(n,r,t)}function tp(e){return e.toLowerCase()}th.prototype.normal={},th.prototype.property={},th.prototype.space=void 0;class tm{constructor(e,t){this.attribute=t,this.property=e}}tm.prototype.attribute="",tm.prototype.booleanish=!1,tm.prototype.boolean=!1,tm.prototype.commaOrSpaceSeparated=!1,tm.prototype.commaSeparated=!1,tm.prototype.defined=!1,tm.prototype.mustUseProperty=!1,tm.prototype.number=!1,tm.prototype.overloadedBoolean=!1,tm.prototype.property="",tm.prototype.spaceSeparated=!1,tm.prototype.space=void 0;let tf=0,tg=tS(),tb=tS(),ty=tS(),tk=tS(),t_=tS(),tv=tS(),tw=tS();function tS(){return 2**++tf}let tx=Object.keys(o);class tC extends tm{constructor(e,t,n,r){let i=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",r),"number"==typeof n)for(;++i<tx.length;){let e=tx[i];!function(e,t,n){n&&(e[t]=n)}(this,tx[i],(n&o[e])===o[e])}}}function tA(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new tC(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[tp(r)]=r,n[tp(a.attribute)]=r}return new th(t,n,e.space)}tC.prototype.defined=!0;let tR=tA({properties:{ariaActiveDescendant:null,ariaAtomic:tb,ariaAutoComplete:null,ariaBusy:tb,ariaChecked:tb,ariaColCount:tk,ariaColIndex:tk,ariaColSpan:tk,ariaControl
9s:t_,ariaCurrent:null,ariaDescribedBy:t_,ariaDetails:null,ariaDisabled:tb,ariaDropEffect:t_,ariaErrorMessage:null,ariaExpanded:tb,ariaFlowTo:t_,ariaGrabbed:tb,ariaHasPopup:null,ariaHidden:tb,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:t_,ariaLevel:tk,ariaLive:null,ariaModal:tb,ariaMultiLine:tb,ariaMultiSelectable:tb,ariaOrientation:null,ariaOwns:t_,ariaPlaceholder:null,ariaPosInSet:tk,ariaPressed:tb,ariaReadOnly:tb,ariaRelevant:null,ariaRequired:tb,ariaRoleDescription:t_,ariaRowCount:tk,ariaRowIndex:tk,ariaRowSpan:tk,ariaSelected:tb,ariaSetSize:tk,ariaSort:null,ariaValueMax:tk,ariaValueMin:tk,ariaValueNow:tk,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function tP(e,t){return t in e?e[t]:t}function tT(e,t){return tP(e,t.toLowerCase())}let tN=tA({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:tv,acceptCharset:t_,accessKey:t_,action:null,allow:null,allowFullScreen:tg,allowPaymentRequest:tg,allowUserMedia:tg,alt:null,as:null,async:tg,autoCapitalize:null,autoComplete:t_,autoFocus:tg,autoPlay:tg,blocking:t_,capture:null,charSet:null,checked:tg,cite:null,className:t_,cols:tk,colSpan:null,content:null,contentEditable:tb,controls:tg,controlsList:t_,coords:tk|tv,crossOrigin:null,data:null,dateTime:null,decoding:null,default:tg,defer:tg,dir:null,dirName:null,disabled:tg,download:ty,draggable:tb,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:tg,formTarget:null,headers:t_,height:tk,hidden:ty,high:tk,href:null,hrefLang:null,htmlFor:t_,httpEquiv:t_,id:null,imageSizes:null,imageSrcSet:null,inert:tg,inputMode:null,integrity:null,is:null,isMap:tg,itemId:null,itemProp:t_,itemRef:t_,itemScope:tg,itemType:t_,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:tg,low:tk,manifest:null,max:null,maxLength:tk,media:null,method:null,min:null,minLength:tk,multiple:tg,muted:tg,name:null,nonce:null,noModule:tg,noValidate:tg,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:tg,optimum:tk,pattern:null,ping:t_,placeholder:null,playsInline:tg,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:tg,referrerPolicy:null,rel:t_,required:tg,reversed:tg,rows:tk,rowSpan:tk,sandbox:t_,scope:null,scoped:tg,seamless:tg,selected:tg,shadowRootClonable:tg,shadowRootDelegatesFocus:tg,shadowRootMode:null,shape:null,size:tk,sizes:null,slot:null,span:tk,spellCheck:tb,src:null,srcDoc:null,srcLang:null,srcSet:null,start:tk,step:null,style:null,tabIndex:tk,target:null,title:null,translate:null,type:null,typeMustMatch:tg,useMap:null,value:tb,width:tk,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:t_,axis:null,background:null,bgColor:null,border:tk,borderColor:null,bottomMargin:tk,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:tg,declare:tg,event:null,face:null,frame:null,frameBorder:null,hSpace:tk,leftMargin:tk,link:null,longDesc:null,lowSrc:null,marginHeight:tk,marginWidth:tk,noResize:tg,noHref:tg,noShade:tg,noWrap:tg,object:null,profile:null,prompt:null,rev:null,rightMargin:tk,rules:null,scheme:null,scrolling:tb,standby:null,summary:null,text:null,topMargin:tk,valueType:null,version:null,vAlign:null,vLink:null,vSpace:tk,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:tg,disableRemotePlayback:tg,prefix:null,property:null,results:tk,security:null,unselectable:null},space:"html",transform:tT}),tE=tA({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",colorRen
9dering:"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:tw,accentHeight:tk,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:tk,amplitude:tk,arabicForm:null,ascent:tk,attributeName:null,attributeType:null,azimuth:tk,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:tk,by:null,calcMode:null,capHeight:tk,className:t_,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRen
9dering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:tk,diffuseConstant:tk,direction:null,display:null,dur:null,divisor:tk,dominantBaseline:null,download:tg,dx:null,dy:null,edgeMode:null,editable:null,elevation:tk,enableBackground:null,end:null,event:null,exponent:tk,externalResourcesRequired:null,fill:null,fillOpacity:tk,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:tv,g2:tv,glyphName:tv,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:tk,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:tk,horizOriginX:tk,horizOriginY:tk,id:null,ideographic:tk,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:tk,k:tk,k1:tk,k2:tk,k3:tk,k4:tk,kernelMatrix:tw,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:tk,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:tk,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:tk,overlineThickness:tk,paintOrder:null,panose1:null,path:null,pathLength:tk,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:t_,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:tk,pointsAtY:tk,pointsAtZ:tk,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:tw,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:tw,rev:tw,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:tw,requiredFeatures:tw,requiredFonts:tw,requiredFormats:tw,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:tk,specularExponent:tk,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:tk,strikethroughThickness:tk,string:null,stroke:null,strokeDashArray:tw,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:tk,strokeOpacity:tk,strokeWidth:null,style:null,surfaceScale:tk,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:tw,tabIndex:tk,tableValues:null,target:null,targetX:tk,targetY:tk,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:tw,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:tk,underlineThickness:tk,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:tk,values:null,vAlphabetic:tk,vMathematical:tk,vectorEffect:null,vHanging:tk,vIdeographic:tk,version:null,vertAdvY:tk,vertOriginX:tk,vertOriginY:tk,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:tk,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:tP}),tL=tA({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>
9"xlink:"+t.slice(5).toLowerCase()}),tM=tA({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:tT}),tO=tA({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),tI=td([tR,tN,tL,tM,tO],"html"),t$=td([tR,tE,tL,tM,tO],"svg"),tB={}.hasOwnProperty,tz=/["&'<>`]/g,tj=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,tD=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,tF=/[|\\{}()[\]^$+*?.]/g,tG=new WeakMap,tU=/[\dA-Fa-f]/,tq=/\d/,tH=["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","
9sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],tW={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",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
9:"â",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:"â¬"},tV=["cent","copy","divide","gt","lt","not","para","times"],tX={}.hasOwnProperty,tQ={};for(a in tW)tX.call(tW,a)&&(tQ[tW[a]]=a);let tK=/[^\dA-Za-z]/;function tJ(e,t,n){let r,i=function(e,t,n){let r="&#x"+e.toString(16).toUpperCase();return n&&t&&!tU.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);if((n.useNamedReferences||n.useShortestReferences)&&(r=function(e,t,n,r){let i=String.fromCharCode(e);if(tX.call(tQ,i)){let e=tQ[i],a="&"+e;return n&&tH.includes(e)&&!tV.includes(e)&&(!r||t&&61!==t&&tK.test(String.fromCharCode(t)))?a:a+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!r)&&n.useShortestReferences){let r=function(e,t,n){let r="&#"+String(e);return n&&t&&!tq.test(String.fromCharCode(t))?r:r+";"}(e,t,n.omitOptionalSemicolons);r.length<i.length&&(i=r)}return r&&(!n.useShortestReferences||r.length<i.length)?r:i}function tY(e,t){let n;var r,i=e,a=Object.assign({format:tJ},t);if(i=i.replace(a.subset?(r=a.subset,(n=tG.get(r))||(n=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(tF,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(r),tG.set(r,n)),n):tz,s),a.subset||a.escapeOnly)return i;return i.replace(tj,function(e,t,n){return a.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,n.charCodeAt(t+2),a)}).replace(tD,s);function s(e,t,n){return a.format(e.charCodeAt(0),n.charCodeAt(t+1),a)}}let tZ=/^>|^->|<!--|-->|--!>|<!-$/g,t0=[">"],t1=["<",">"];var t2=n(5009),t5=n(52371);let t3=/[A-Z]/g,t6=/-[a-z]/g,t7=/^data[-\w.:]+$/i;function t8(e){return"-"+e.toLowerCase()}function t4(e){return e.charAt(1).toUpperCase()}var t9=n(59292),ne=n(39754);let nt=ni(1),nn=ni(-1),nr=[];function ni(e){return function(t,n,r){let i=t?t.children:nr,a=(n||0)+e,s=i[a];if(!r)for(;s&&(0,ne.m)(s);)a+=e,s=i[a];return s}}let na={}.hasOwnProperty;function ns(e){return function(t,n,r){return na.call(e,t.tagName)&&e[t.tagName](t,n,r)}}let no=ns({body:function(e,t,n){let r=nt(n,t);return!r||"comment"!==r.type},caption:nl,colgroup:nl,dd:function(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName)},dt:function(e,t,n){let r=nt(n,t);return!!(r&&"element"===r.type&&("dt"===r.tagName||"dd"===r.tagName))},head:nl,html:function(e,t,n){let r=nt(n,t);return!r||"comment"!==r.type},li:function(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&"li"===r.tagName},optgroup:function(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&"optgroup"===r.tagName},option:function(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&("option"===r.tagName||"optgroup"===r.tagName)},p:function(e,t,n){let r=nt(n,t);return r?"element"===r.type&&("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"===r.tagName):!n||"element"!==n.type||"a"!==n.tagName&&"audio"!==n.tagName&&"del"!==n.tagName&&"ins"!==n.tagName&&"map"!==n.tagName&&"noscript"!==n.tagName&&"video"!==n.tagName},rp:nc,rt:nc,tbody:function(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName)},td:nu,tfoot:function(e,t,n){return!nt(n,t)},th:nu,thead:function(e,t,n){let r=nt(n,t);return!!(r&&"element"===r.type&&("tbody"===r.tagName||"tfoot"===r.tagName))},tr:function(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&"tr"===r.tagName}});function nl(e,t,n){let r=nt(n,t,!0);return!r||"comment"!==r.type&&!("text"===r.type&&(0,ne.m)(r.value.charAt(0)))}function nc(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&("rp"===r.tagName||"rt"===r.tagName)}function nu(e,t,n){let r=nt(n,t);return!r||"element"===r.type&&("td"===r.tagName||"th"===r.tagName)}let nh=ns({body:function(e){let t=nt(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&(0,ne.m)(t.value.charAt(0)))&&("element"!==t.type||"meta"!==t.tagName&&"link"!==t.tagName&&"script"!==t.tagName&&"style"!==t.tagName&&"template"!==t.tagName)},colgroup:function(e,t,n){let r=nn(n,t),i=nt(e,-1,!0);return!(n&&r&&"element"===r.type&&"colgroup"===r.tagName&&no(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"col"===i.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=nt(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let r=nn(n,t),i=nt(e,-1);return!(n&&r&&"element"===r.type&&("thead"===r.tagName||"tbody"===r.tagName)&&no(r,n.children.indexOf(r),n))&&!!(i&&"element"===i.type&&"tr"===i.tagName)}}),nd={name:[[" \n\f\r &/=>".split("")," \n\f\r \"&'/=>
9`".split("")],["\0 \n\f\r \"&'/<=>".split(""),"\0 \n\f\r \"&'/<=>`".split("")]],unquoted:[[" \n\f\r &>".split(""),"\0 \n\f\r \"&'<=>`".split("")],["\0 \n\f\r \"&'<=>`".split(""),"\0 \n\f\r \"&'<=>`".split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},np=["<","&"];function nm(e,t,n,r){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:tY(e.value,Object.assign({},r.settings.characterReferences,{subset:np}))}let nf=function(e,t){let n=t||{};function r(t,...n){let i=r.invalid,a=r.handlers;if(t&&tB.call(t,e)){let n=String(t[e]);i=tB.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}("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,r){return r.settings.bogusComments?"<?"+tY(e.value,Object.assign({},r.settings.characterReferences,{subset:t0}))+">":"\x3c!--"+e.value.replace(tZ,function(e){return tY(e,Object.assign({},r.settings.characterReferences,{subset:t1}))})+"--\x3e"},doctype:function(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,r){let i,a=r.schema,s="svg"!==a.space&&r.settings.omitOptionalTags,o="svg"===a.space?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase()),l=[];"html"===a.space&&"svg"===e.tagName&&(r.schema=t$);let c=function(e,t){let n,r=[],i=-1;if(t){for(n in t)if(null!==t[n]&&void 0!==t[n]){let i=function(e,t,n){let r,i=function(e,t){let n=tp(t),r=t,i=tm;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&t7.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(t6,t4);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!t6.test(e)){let n=e.replace(t3,t8);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=tC}return new i(r,t)}(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,s=+!e.settings.allowDangerousCharacters,o=e.quote;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let l=tY(i.attribute,Object.assign({},e.settings.characterReferences,{subset:nd.name[a][s]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?t5.A:t9.A)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(r=tY(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:nd.unquoted[a][s]}))),r!==n&&(e.settings.quoteSmart&&(0,t2.D)(n,o)>(0,t2.D)(n,e.alternative)&&(o=e.alternative),r=o+tY(n,Object.assign({},e.settings.characterReferences,{subset:("'"===o?nd.single:nd.double)[a][s],attribute:!0}))+o),l+(r?"="+r:r))}(e,n,t[n]);i&&r.push(i)}}for(;++i<r.length;){let t=e.settings.tightAttributes?r[i].charAt(r[i].length-1):void 0;i!==r.length-1&&'"'!==t&&"'"!==t&&(r[i]+=" ")}return r.join("")}(r,e.properties),u=r.all("html"===a.space&&"template"===e.tagName?e.content:e);return r.schema=a,u&&(o=!1),!c&&s&&nh(e,t,n)||(l.push("<",e.tagName,c?" "+c:""),o&&("svg"===a.space||r.settings.closeSelfClosing)&&(i=c.charAt(c.length-1),(!r.settings.tightSelfClosing||"/"===i||i&&'"'!==i&&"'"!==i)&&l.push(" "),l.push("/")),l.push(">")),l.push(u),o||s&&no(e,t,n)||l.push("</"+e.tagName+">"),l.join("")},raw:function(e,t,n,r){return r.settings.allowDangerousHtml?e.value:nm(e,t,n,r)},root:function(e,t,n,r){return r.all(e)},text:nm}}),ng={},nb={},ny=[];function nk(e,t,n){return nf(e,t,n,this)}function n_(e){let t=[],n=e&&e.children||ny,r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function nv(e,t){if(!t)return e;for(let n of(e.properties||={},e.properties.class||=[],"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))n&&!e.properties.class.includes(n)&&e.properties.class.push(n);return e}let nw="light-dark()",nS=["color","background-color"];function nx(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&X.Ital
9ic&&(t["font-style"]="italic"),e.fontStyle&X.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&X.Underline&&n.push("underline"),e.fontStyle&X.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function nC(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let nA=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let r=function(e){let t=e0(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let r=n,i=0;for(let e of t){if(r<e.length)break;r-=e.length,i++}return{line:i,character:r}},posToIndex:function(e,n){let r=0;for(let n=0;n<e;n++)r+=t[n].length;return r+n}}}(t.source);function n(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new I(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...r.indexToPos(e),offset:e}}{let t=r.lines[e.line];if(void 0===t)throw new I(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${r.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new I(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:r.posToIndex(e.line,n)}}}let i=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new I(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){let t=e[r],i=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,a=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,s=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,o=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(i||a||s||o){if(i&&a||s&&o||s&&n.start.offset===n.end.offset||a&&t.start.offset===t.end.offset)continue;throw new I(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(i),e.set(t.meta,{decorations:i,converter:r,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){if(this.options.decorations?.length){var n=t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]);let r=Array.from(n instanceof Set?n:new Set(n)).sort((e,t)=>e-t);return r.length?e.map(e=>e.flatMap(e=>{let t=r.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);if(!t.length)return e;let n=0,i=[];for(let r of t)r>n&&i.push({...e,content:e.content.slice(n,r),offset:e.offset+n}),n=r;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i})):e}},code(e){if(!this.options.decorations?.length)return;let n=t(this),r=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(r.length!==n.converter.lines.length)throw new I(`Number of lines in code element (${r.length}) does not match the number of lines in the source (${n.converter.lines.length}). Failed to apply decorations.`);function i(e,t,n,i){let s=r[e],o="",l=-1,c=-1;if(0===t&&(l=0),0===n&&(c=0),n===1/0&&(c=s.children.length),-1===l||-1===c)for(let e=0;e<s.children.length;e++)o+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(s.children[e]),-1===l&&o.length===t&&(l=e+1),-1===c&&o.length===n&&(c=e+1);if(-1===l)throw new I(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new I(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let u=s.children.slice(l,c);if(i.alwaysWrap||u.length!==s.children.length)if(i.alwaysWrap||1!==u.length||"element"!==u[0].type){let e={type:"element",tagName:"span",properties:{},children:u};a(e,i,"wrapper"),s.children.splice(l,u.length,e)}else a(u[0],i,"token");else a(s,i,"line")}function a(e,t,n){let r=t.properties||{},i=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...r,class:e.properties.class},t.properties?.class&&nv(e,t.properties.class),e=i(e,n)||e}let s=[];for(let e of n.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)i(t.line,t.character,n.character,e);else if(t.line<n.line){i(t.line,t.character,1/0,e);for(let i=t.line+1;i<n.line;i++)s.unshift(()=>{var t;r[t=i]=a(r[t],e,"line")});i(n.line,0,n.character,e)}}
9s.forEach(e=>e())}}}()];function nR(e){let t=function(e){let t=[],n=[],r=[];for(let i of e)switch(i.enforce){case"pre":t.push(i);break;case"post":n.push(i);break;default:r.push(i)}return{pre:t,post:n,normal:r}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...nA]}var nP=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],nT={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function nN(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));if(3!==t.length||t.some(e=>Number.isNaN(e)))return;return{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var nE={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let nL={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function nM(e,t,n={}){let r=e.resolveLangAlias(n.lang||"text"),{theme:i=e.getLoadedThemes()[0]}=n;if(!eJ(r)&&!eZ(i)&&"ansi"===r){let{theme:r}=e.setTheme(i);return function(e,t,n){let r,i,a,s=eX(e,n),o=e0(t),l=function(e=nE){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(r){switch(r.type){case"named":return e[r.name];case"rgb":return n(r.rgb);case"table":var i;return i=r.index,function(){if(t)return t;t=[];for(let n=0;n<nP.length;n++)t.push(e[nP[n]]);let r=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let i=0;i<6;i++)for(let a=0;a<6;a++)t.push(n([r[e],r[i],r[a]]));let i=8;for(let e=0;e<24;e++,i+=10)t.push(n([i,i,i]));return t}()[i]}}}}(Object.fromEntries(nP.map(t=>{let n=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,e.colors?.[n]||nL[t]]}))),c=(r=null,i=null,a=new Set,{parse(e){let t=[],n=0;do{let s=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),o=s.sequence?e.substring(n,s.startPosition):e.substring(n);if(o.length>0&&t.push({value:o,foreground:r,background:i,decorations:new Set(a)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let r=Number.parseInt(n);if(!Number.isNaN(r))if(0===r)t.push({type:"resetAll"});else if(r<=9)nT[r]&&t.push({type:"setDecoration",value:nT[r]});else if(r<=29){let e=nT[r-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(r<=37)t.push({type:"setForegroundColor",value:{type:"named",name:nP[r-30]}});else if(38===r){let n=nN(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===r)t.push({type:"resetForegroundColor"});else if(r<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:nP[r-40]}});else if(48===r){let n=nN(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===r?t.push({type:"resetBackgroundColor"}):53===r?t.push({type:"setDecoration",value:"overline"}):55===r?t.push({type:"resetDecoration",value:"overline"}):r>=90&&r<=97?t.push({type:"setForegroundColor",value:{type:"named",name:nP[r-90+8]}}):r>=100&&r<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:nP[r-100+8]}})}return t}(s.sequence);for(let t of e)"resetAll"===t.type?(r=null,i=null,a.clear()):"resetForegroundColor"===t.type?r=null:"resetBackgroundColor"===t.type?i=null:"resetDecoration"===t.type&&a.delete(t.value);for(let t of e)"setForegroundColor"===t.type?r=t.value:"setBackgroundColor"===t.type?i=t.value:"setDecoration"===t.type&&a.add(t.value)}n=s.position}while(n<e.length);return t}});return o.map(t=>c.parse(t[0]).map(n=>{let r,i;n.decorations.has("reverse")?(r=n.background?l.value(n.background):e.bg,i=n.foreground?l.value(n.foreground):e.fg):(r=n.foreground?l.value(n.foreground):e.fg,i=n.background?l.value(n.background):void 0),r=eQ(r,s),i=eQ(i,s),n.decorations.has("dim")&&(r=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],r=e[2],i=e[3];return`#${t}${t}${n}${n}${r}${r}${Math.round(Number.parseInt(`${i}${i}`,16)/2).toString(16).padStart(2,"0")}`}else if(3===e.length){let t=e[0],n=e[1],r=e[2];return`#${t}${t}${n}${n}${r}${r}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(r));let a=X.None;return n.decorations.has("bold")&&(a|=X.Bold),n.decorations.has("italic")&&(a|=X.Italic),n.decorations.has("underline")&&(a|=X.Underline),n.decorations.has("strikethrough")&&(a|=X.Strikethrough),{content:n.value,offset:t[1],color:r,bgColor:i,fontStyle:a}}))}(r,t,n)}return ts(e,t,n)}function nO(e,t,n){let r,i,a,s,o,l;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:u="--shiki-",colorsRendering:h="css-vars"}=n,d=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>
9e.color===c?-1:+(t.color===c));if(0===d.length)throw new I("`themes` option must not be empty");let p=tc(e,t,n,nM);if(l=ti(p),c&&nw!==c&&!d.find(e=>e.color===c))throw new I(`\`themes\` option must contain the defaultColor key \`${c}\``);let m=d.map(t=>e.getTheme(t.theme)),f=d.map(e=>e.color);a=p.map(e=>e.map(e=>(function(e,t,n,r,i="css-vars"){let a={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>nx(e.variants[t])),o=new Set(s.flatMap(e=>Object.keys(e))),l={},c=(e,r)=>{let i="color"===r?"":"background-color"===r?"-bg":`-${r}`;return n+t[e]+("color"===r?"":i)};return s.forEach((e,n)=>{for(let a of o){let o=e[a]||"inherit";if(0===n&&r&&nS.includes(a))if(r===nw&&s.length>1){let e=t.findIndex(e=>"light"===e),r=t.findIndex(e=>"dark"===e);if(-1===e||-1===r)throw new I('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');l[a]=`light-dark(${s[e][a]||"inherit"}, ${s[r][a]||"inherit"})`,"css-vars"===i&&(l[c(n,a)]=o)}else l[a]=o;else"css-vars"===i&&(l[c(n,a)]=o)}}),a.htmlStyle=l,a})(e,f,u,c,h))),l&&tr(a,l);let g=d.map(e=>eX(e.theme,n));i=nI(d,m,g,u,c,"fg",h),r=nI(d,m,g,u,c,"bg",h),s=`shiki-themes ${m.map(e=>e.name).join(" ")}`,o=c?void 0:[i,r].join(";")}else if("theme"in n){let o=eX(n.theme,n);
9a=nM(e,t,n);let c=e.getTheme(n.theme);r=eQ(c.bg,o),i=eQ(c.fg,o),s=c.name,l=ti(a)}else throw new I("Invalid options, either `theme` or `themes` must be provided");return{tokens:a,fg:i,bg:r,themeName:s,rootStyle:o,grammarState:l}}function nI(e,t,n,r,i,a,s){return e.map((o,l)=>{let c=eQ(t[l][a],n[l])||"inherit",u=`${r+o.color}${"bg"===a?"-bg":""}:${c}`;if(0===l&&i){if(i===nw&&e.length>1){let r=e.findIndex(e=>"light"===e.color),i=e.findIndex(e=>"dark"===e.color);if(-1===r||-1===i)throw new I('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');return`light-dark(${eQ(t[r][a],n[r])||"inherit"}, ${eQ(t[i][a],n[i])||"inherit"});${u}`}return c}return"css-vars"===s?u:null}).filter(e=>!!e).join(";")}function n$(e,t,n,r={meta:{},options:n,codeToHast:(t,n)=>n$(e,t,n),codeToTokens:(t,n)=>nO(e,t,n)}){let i=t;for(let e of nR(n))i=e.preprocess?.call(r,i,n)||i;let{tokens:a,fg:s,bg:o,themeName:l,rootStyle:c,grammarState:u}=nO(e,i,n),{mergeWhitespaces:h=!0,mergeSameStyleTokens:d=!1}=n;!0===h?a=a.map(e=>{let t,n=[],r="";return e.forEach((i,a)=>{let s=!(i.fontStyle&&(i.fontStyle&X.Underline||i.fontStyle&X.Strikethrough));s&&i.content.match(/^\s+$/)&&e[a+1]?(void 0===t&&(t=i.offset),r+=i.content):r?(s?n.push({...i,offset:t,content:r+i.content}):n.push({content:r,offset:t},i),t=void 0,r=""):n.push(i)}),n}):"never"===h&&(a=a.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,r,i]=t;if(!n&&!i)return e;let a=[{...e,offset:e.offset+n.length,content:r}];return n&&a.unshift({content:n,offset:e.offset}),i&&a.push({content:i,offset:e.offset+n.length+r.length}),a}))),d&&(a=a.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],r=nC(e.htmlStyle||nx(e)),i=nC(n.htmlStyle||nx(n)),a=e.fontStyle&&(e.fontStyle&X.Underline||e.fontStyle&X.Strikethrough),s=n.fontStyle&&(n.fontStyle&X.Underline||n.fontStyle&X.Strikethrough);a||s||r!==i?t.push({...n}):e.content+=n.content}return t}));let p={...r,get source(){return i}};for(let e of nR(n))a=e.tokens?.call(p,a)||a;return function(e,t,n,r=ti(e)){let i=nR(t),a=[],s={type:"root",children:[]},{structure:o="classic",tabindex:l="0"}=t,c={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?c.style=t.rootStyle:c.style=`background-color:${t.bg};color:${t.fg}`),!1!==l&&null!=l&&(c.tabindex=l.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(c[e]=n);let u={type:"element",tagName:"pre",properties:c,children:[],data:t.data},h={type:"element",tagName:"code",properties:{},children:a},d=[],p={...n,structure:o,addClassToHast:nv,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return h},get lines(){return d}};if(e.forEach((e,t)=>{t&&("inline"===o?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===o&&a.push({type:"text",value:"\n"}));let n={type:"element",tagName:"span",properties:{class:"line"},children:[]},r=0;for(let a of e){let e={type:"element",tagName:"span",properties:{...a.htmlAttrs},children:[{type:"text",value:a.content}]},l=nC(a.htmlStyle||nx(a));for(let s of(l&&(e.properties.style=l),i))e=s?.span?.call(p,e,t+1,r,n,a)||e;"inline"===o?s.children.push(e):"classic"===o&&n.children.push(e),r+=a.content.length}if("classic"===o){for(let e of i)n=e?.line?.call(p,n,t+1)||n;d.push(n),a.push(n)}else"inline"===o&&d.push(n)}),"classic"===o){for(let e of i)h=e?.code?.call(p,h)||h;for(let e of(u.children.push(h),i))u=e?.pre?.call(p,u)||u;s.children.push(u)}else if("inline"===o){let e=[],t={type:"element",tagName:"span",properties:{class:"line"},children:[]};for(let n of s.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of i)n=e?.code?.call(p,n)||n;s.children=[];for(let e=0;e<n.children.length;e++){e>0&&s.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&s.children.push(...t.children)}}let m=s;for(let e of i)m=e?.root?.call(p,m)||m;return r&&tr(m,r),m}(a,{...n,fg:s,bg:o,themeName:l,rootStyle:!1!==n.rootStyle&&(n.rootStyle??c)},p,u)}let nB=function(e,t){let n=t||ng,r=n.quote||'"';if('"'!==r&&"'"!==r)throw Error("Invalid quote `"+r+"`, expected `'` or `\"`");return({one:nk,all:n_,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||tu,characterReferences:n.characterReferences||nb,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?t$:tI,quote:r,alternative:'"'===r?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)};async function nz(e){let t=await tt(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return ti(e[1]);let[t,n,r={}]=e,{lang:i="text",theme:a=t.getLoadedThemes()[0]}=r;if(eJ(i)||eZ(a))throw new I("Plain language does not have grammar state");if("ansi"===i)throw new I("ANSI language does not have grammar state");let{theme:s,colorMap:o}=t.setTheme(a),l=t.getLanguage(i);return new ta(to(n,l,s,o,r).stateStack,l.name,s.name)}
9)(t,...e),codeToTokensBase:(e,n)=>nM(t,e,n),codeToTokensWithThemes:(e,n)=>tc(t,e,n),codeToTokens:(e,n)=>nO(t,e,n),codeToHast:(e,n)=>n$(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){let r={meta:{},options:n,codeToHast:(t,n)=>n$(e,t,n),codeToTokens:(t,n)=>nO(e,t,n)},i=nB(n$(e,t,n,r));for(let e of nR(n))i=e.postprocess?.call(r,i,n)||i;return i})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let{codeToHtml:nj}=function(e,t){let n,r=async function(t={}){if(n){let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{n=e({...t,themes:[],langs:[]});let r=await n;return await Promise.all([r.loadTheme(...t.themes||[]),r.loadLanguage(...t.langs||[])]),r}};async function i(e,n){let i=await r({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),a=await t?.guessEmbeddedLanguages?.(e,n.lang,i);return a&&await i.loadLanguage(...a),i}return{getSingletonHighlighter:e=>r(e),codeToHtml:async(e,t)=>(await i(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await i(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await i(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await i(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await i(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await r({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(function(e){let t=e.langs,n=e.themes,r=e.engine;return async function(e){function i(n){if("string"==typeof n){if(eY(n=e.langAlias?.[n]||n))return[];let r=t[n];if(!r)throw new I(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return r}return n}function a(e){if(eZ(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new I(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let s=(e.themes??[]).map(e=>a(e)),o=(e.langs??[]).map(e=>i(e)),l=await nz({engine:e.engine??r(),...e,themes:s,langs:o});return{...l,loadLanguage:(...e)=>l.loadLanguage(...e.map(i)),loadTheme:(...e)=>l.loadTheme(...e.map(a)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:M,themes:O,engine:()=>(0,T.createOnigurumaEngine)(Promise.all([n.e(44814),n.e(54595)]).then(n.bind(n,54595)))}),{guessEmbeddedLanguages:function(e,t,n){let r=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&r.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&r.add(n)}if(!n)return Array.from(r);let i=n.getBundledLanguages();return Array.from(r).filter(e=>e&&i[e])}})},54652:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),!function(e,t){for(var n in t)Object.defineProperty(e,n,{enumerable:!0,get:t[n]})}(t,{default:function(){return l},getImageProps:function(){return o}});let r=n(28140),i=n(75040),a=n(81356),s=r._(n(71124));function o(e){let{props:t}=(0,i.getImgProps)(e,{defaultLoader:s.default,imgConf:{deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[16,32,48,64,96,128,256,384],path:"/_next/image",loader:"default",dangerouslyAllowSVG:!1,unoptimized:!1}});for(let[e,n]of Object.entries(t))void 0===n&&delete t[e];return{props:t}}let l=a.Image},64558:(e,t,n)=>{"use strict";function r(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}n.d(t,{xI:()=>ek});var i=r(),a={exec:()=>null};function s(e,t=""){let n="string"==typeof e?e:e.source,r={replace:(e,t)=>{let i="string"==typeof t?t:t.source;return i=i.replace(l.caret,"$1"),n=n.replace(e,i),r},getRegex:()=>new RegExp(n,t)};return r}var o=(()=>{try{return!!RegExp("(?<=1)(?<!1)")}catch{return!1}})(),l={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] +\S/,listReplaceTask:/^\[[ xX]\] +/,listTaskCheckbox:/\[[ xX]\]/,anyLine
vendor: 4,141 bytes, line 9
9:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i"),blockquoteBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}>`)},c=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,u=/ {0,3}(?:[*+-]|\d{1,9}[.)])/,h=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,d=s(h).replace(/bull/g,u).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),p=s(h).replace(/bull/g,u).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),m=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,g=s(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",f).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),b=s(/^(bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,u).getRegex(),y="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",k=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,_=s("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",k).replace("tag",y).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),v=s(m).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),w={blockquote:s(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",v).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:g,fences:/^ {0,3}(`{3,}
vendor: 7,899 bytes, lines 9-10
9(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:c,html:_,lheading:d,list:b,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:v,table:a,text:/^[^\n]+/},S=s("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex(),x={...w,lheading:p,table:S,paragraph:s(m).replace("hr",c).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",S).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)])[ \\t]").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",y).getRegex()},C={...w,html:s(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",k).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:a,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:s(m).replace("hr",c).replace("heading",` *#{1,6} *[^ 10]`).replace("lheading",d).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},A=/^( {2,}|\\)\n(?!\s*$)/,R=/[\p{P}\p{S}]/u,P=/[\s\p{P}\p{S}]/u,T=/[^\s\p{P}\p{S}]/u,N=s(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,P).getRegex(),E=/(?!~)[\p{P}\p{S}]/u,L=/(?![*_])[\p{P}\p{S}]/u,M=s(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",o?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),O=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,I=s(O,"u").replace(/punct/g,R).getRegex(),$=s(O,"u").replace(/punct/g,E).getRegex(),B="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",z=s(B,"gu").replace(/notPunctSpace/g,T).replace(/punctSpace/g,P).replace(/punct/g,R).getRegex(),j=s(B,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,E).getRegex(),D=s("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,T).replace(/punctSpace/g,P).replace(/punct/g,R).getRegex(),F=s(/^~~?(?:((?!~)punct)|[^\s~])/,"u").replace(/punct/g,L).getRegex(),G=s("^[^~]+(?=[^~])|(?!~)punct(~~?)(?=[\\s]|$)|notPunctSpace(~~?)(?!~)(?=punctSpace|$)|(?!~)punctSpace(~~?)(?=notPunctSpace)|[\\s](~~?)(?!~)(?=punct)|(?!~)punct(~~?)(?!~)(?=punct)|notPunctSpace(~~?)(?=notPunctSpace)","gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|[*_])/u).replace(/punctSpace/g,/(?![*_])[\s\p{P}\p{S}]/u).replace(/punct/g,L).getRegex(),U=s(/\\(punct)/,"gu").replace(/punct/g,R).getRegex(),q=s(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),H=s(k).replace("(?:--\x3e|$)","--\x3e").getRegex(),W=s("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",H).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),V=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,X=s(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]+(?:\n[ \t]*)?|\n[ \t]*)(title))?\s*\)/).replace("label",V).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Q=s(/^!?\[(label)\]\[(ref)\]/).replace("label",V).replace("ref",f).getRegex(),K=s(/^!?\[(ref)\](?:\[\])?/).replace("ref",f).getRegex(),J=s("reflink|nolink(?!\\()","g").replace("reflink",Q).replace("nolink",K).getRegex(),Y=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Z={_backpedal:a,anyPunctuation:U,autolink:q,blockSkip:M,br:A,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:a,delLDelim:a,delRDelim:a,emStrongLDelim:I,emStrongRDelimAst:z,emStrongRDelimUnd:D,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:X,nolink:K,punctuation:N,reflink:Q,reflinkSearch:J,tag:W,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:a},ee={...Z,link:s(/^!?\[(label)\]\((.*?)\)/).replace("label",V).getRegex(),reflink:s(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",V).getRegex()},et={...Z,emStrongRDelimAst:j,emStrongLDelim:$,delLDelim:F,delRDelim:G,url:s(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Y).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:s(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Y).getRegex()},en={...et,br:s(A).replace("{2,}","*").getRegex(),text:s(et.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},er={normal:w,gfm:x,pedantic:C},ei={normal:Z,gfm:et,breaks:en,pedantic:ee},ea={"&":"&","<":"<",">":">",'"':""","'":"'"},es=e=>ea[e];function eo(e,t){if(t){if(l.escapeTest.test(e))return e.replace(l.escapeReplace,es)}else if(l.escapeTestNoEncode.test(e))return e.replace(l.escapeReplaceNoEncode,es);return e}function el(e){try{e=encodeURI(e).replace(l.percentDecode,"%")}catch{return null}return e}function ec(e,t){let n=e.replace(l.findPipe,(e,t,n)=>{let r=!1,i=t;for(;--i>=0&&"\\"===n[i];)r=!r;return r?"|":" |"}).split(l.splitPipe),r=0;if(n[0].trim()||n.shift(),n.length>0&&!n.at(-1)?.trim()&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;r<n.length;r++)n[r]=n[r].trim().replace(l.slashPipe,"|");return n}function eu(e,t,n){let r=e.length;if(0===r)return"";let i=0;for(;i<r;){let a=e.charAt(r-i-1);if(a!==t||n)if(a!==t&&n)i++;else break;else i++}return e.slice(0,r-i)}function eh(e,t,n,r,i){let a=t.href,s=t.title||null,o=e[1].replace(i.other.outputLinkReplace,"$1");r.state.inLink=!0;let l={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:a,title:s,text:o,tokens:r.inlineTokens(o)};return r.state.inLink=!1,l}var ed=class{options;rules;lexer;constructor(e){this.options=e||i}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:eu
10(e,` 11`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let r=e.match(n.other.indentCodeCompensation);if(null===r)return t;let i=r[1];return t.split(` 12`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[r]=t;return r.length>=i.length?e.slice(i.length):e}).join(` 13`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=eu(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:eu(t[0],` 14`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=eu(t[0],` 15`).split(` 16`),n="",r="",i=[];for(;e.length>0;){let t=!1,a=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))a.push(e[s]),t=!0;else if(t)break;else a.push(e[s]);e=e.slice(s);let o=a.join(` 17`),l=o.replace(this.rules.other.blockquoteSetextReplace,` 18 $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n} 19${o}`:o,r=r?`${r} 20${l}`:l;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(l,i,!0),this.lexer.state.top=c,0===e.length)break;let u=i.at(-1);if(u?.type==="code")break;if(u?.type==="blockquote"){let t=u.raw+` 21`+e.join(` 22`),a=this.blockquote(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.text.length)+a.text;break}if(u?.type==="list"){let t=u.raw+` 23`+e.join(` 24`),a=this.list(t);i[i.length-1]=a,n=n.substring(0,n.length-u.raw.length)+a.raw,r=r.substring(0,r.length-u.raw.length)+a.raw,e=t.substring(i.at(-1).raw.length).split(` 25`);continue}}return{type:"blockquote",raw:n,tokens:i,text:r}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),r=n.length>1,i={type:"list",raw:"",ordered:r,start:r?+n.slice(0,-1):"",loose:!1,items:[]};n=r?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=r?n:"[*+-]");let a=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,r="",o="";if(!(t=a.exec(e))||this.rules.block.hr.test(e))break;r=t[0],e=e.substring(r.length);let l=function(e,t=0){let n=t,r="";for(let t of e)if(" "===t){let e=4-n%4;r+=" ".repeat(e),n+=e}else r+=t,n++;return r}(t[2].split(` 26`,1)[0],t[1].length),c=e.split(` 27`,1)[0],u=!l.trim(),h=0;if(this.options.pedantic?(h=2,o=l.trimStart()):u?h=t[1].length+1:(h=(h=l.search(this.rules.other.nonSpaceChar))>4?1:h,o=l.slice(h),h+=t[1].length),u&&this.rules.other.blankLine.test(c)&&(r+=c+` 28`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(h),n=this.rules.other.hrRegex(h),i=this.rules.other.fencesBeginRegex(h),a=this.rules.other.headingBeginRegex(h),s=this.rules.other.htmlBeginRegex(h),d=this.rules.other.blockquoteBeginRegex(h);for(;e;){let p=e.split(` 29`,1)[0],m;if(c=p,m=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting," "):c.replace(this.rules.other.tabCharGlobal," "),i.test(c)||a.test(c)||s.test(c)||d.test(c)||t.test(c)||n.test(c))break;if(m.search(this.rules.other.nonSpaceChar)>=h||!c.trim())o+=` 30`+m.slice(h);else{if(u||l.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||i.test(l)||a.test(l)||n.test(l))break;o+=` 31`+c}u=!c.trim(),r+=p+` 32`,e=e.substring(p.length+1),l=m.slice(h)}}i.loose||(s?i.loose=!0:this.rules.other.doubleBlankLine.test(r)&&(s=!0)),i.items.push({type:"list_item",raw:r,task:!!this.options.gfm&&this.rules.other.listIsTask.test(o),loose:!1,text:o,tokens:[]}),i.raw+=r}let o=i.items.at(-1);if(!o)return;for(let e of(o.raw=o.raw.trimEnd(),o.text=o.text.trimEnd(),i.raw=i.raw.trimEnd(),i.items)){if(this.lexer.state.top=!1,e.tokens=this.lexer.blockTokens(e.text,[]),e.task){if(e.text=e.text.replace(this.rules.other.listReplaceTask,""),e.tokens[0]?.type==="text"||e.tokens[0]?.type==="paragraph"){e.tokens[0].raw=e.tokens[0].raw.replace(this.rules.other.listReplaceTask,""),e.tokens[0].text=e.tokens[0].text.replace(this.rules.other.listReplaceTask,"");for(let e=this.lexer.inlineQueue.length-1;e>=0;e--)if(this.rules.other.listIsTask.test(this.lexer.inlineQueue[e].src)){this.lexer.inlineQueue[e].src=this.lexer.inlineQueue[e].src.replace(this.rules.other.listReplaceTask,"");break}}let t=this.rules.other.listTaskCheckbox.exec(e.raw);if(t){let n={type:"checkbox",raw:t[0]+" ",checked:"[ ]"!==t[0]};e.checked=n.checked,i.loose?e.tokens[0]&&["paragraph","text"].includes(e.tokens[0].type)&&"tokens"in e.tokens[0]&&e.tokens[0].tokens?(e.tokens[0].raw=n.raw+e.tokens[0].raw,e.tokens[0].text=n.raw+e.tokens[0].text,e.tokens[0].tokens.unshift(n)):e.tokens.unshift({type:"paragraph",raw:n.raw,text:n.raw,tokens:[n]}):e.tokens.unshift(n)}}if(!i.loose){let t=e.tokens.filter(e=>
32"space"===e.type);i.loose=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw))}}if(i.loose)for(let e of i.items)for(let t of(e.loose=!0,e.tokens))"text"===t.type&&(t.type="paragraph");return i}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",r=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:r}}}table(e){let t=this.rules.block.table.exec(e);if(!t||!this.rules.other.tableDelimiter.test(t[2]))return;let n=ec(t[1]),r=t[2].replace(this.rules.other.tableAlignChars,"").split("|"),i=t[3]?.trim()?t[3].replace(this.rules.other.tableRowBlankLine,"").split(` 33`):[],a={type:"table",raw:t[0],header:[],align:[],rows:[]};if(n.length===r.length){for(let e of r)this.rules.other.tableAlignRight.test(e)?a.align.push("right"):this.rules.other.tableAlignCenter.test(e)?a.align.push("center"):this.rules.other.tableAlignLeft.test(e)?a.align.push("left"):a.align.push(null);for(let e=0;e<n.length;e++)a.header.push({text:n[e],tokens:this.lexer.inline(n[e]),header:!0,align:a.align[e]});for(let e of i)a.rows.push(ec(e,a.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:a.align[t]})));return a}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===` 34`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=eu(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let r=0;r<e.length;r++)if("\\"===e[r])r++;else if("("===e[r])n++;else if(e[r]===t[1]&&--n<0)return r;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],r="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],r=e[3])}else r=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),eh(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:r&&r.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return eh(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let r=this.rules.inline.emStrongLDelim.exec(e);if(!(!r||r[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(r[1]||r[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=0,l="*"===r[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(l.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=l.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6]))continue;if(a=[...i].length,r[3]||r[4]){s+=a;continue}if((r[5]||r[6])&&n%3&&!((n+a)%3)){o+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s+o);let t=[...r[0]][0].length,l=e.slice(0,n+r.index+t+a);if(Math.min(n,a)%2){let e=l.slice(1,-1);return{type:"em",raw:l,text:e,tokens:this.lexer.inlineTokens(e)}}let c=l.slice(2,-2);return{type:"strong",raw:l,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),r=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&r&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e,t,n=""){let r=this.rules.inline.delLDelim.exec(e);
34if(r&&(!r[1]||!n||this.rules.inline.punctuation.exec(n))){let n=[...r[0]].length-1,i,a,s=n,o=this.rules.inline.delRDelim;for(o.lastIndex=0,t=t.slice(-1*e.length+n);null!=(r=o.exec(t));){if(!(i=r[1]||r[2]||r[3]||r[4]||r[5]||r[6])||(a=[...i].length)!==n)continue;if(r[3]||r[4]){s+=a;continue}if((s-=a)>0)continue;a=Math.min(a,a+s);let t=[...r[0]][0].length,o=e.slice(0,n+r.index+t+a),l=o.slice(n,-n);return{type:"del",raw:o,text:l,tokens:this.lexer.inlineTokens(l)}}}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){let t;if(t=this.rules.inline.url.exec(e)){let e,n;if("@"===t[2])n="mailto:"+(e=t[0]);else{let r;do r=t[0],t[0]=this.rules.inline._backpedal.exec(t[0])?.[0]??"";while(r!==t[0]);e=t[0],n="www."===t[1]?"http://"+t[0]:t[0]}return{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},ep=class e{tokens;options;state;inlineQueue;tokenizer;constructor(e){this.tokens=[],this.tokens.links=Object.create(null),this.options=e||i,this.options.tokenizer=this.options.tokenizer||new ed,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:l,block:er.normal,inline:ei.normal};this.options.pedantic?(t.block=er.pedantic,t.inline=ei.pedantic):this.options.gfm&&(t.block=er.gfm,this.options.breaks?t.inline=ei.breaks:t.inline=ei.gfm),this.tokenizer.rules=t}static get rules(){return{block:er,inline:ei}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(l.carriageReturn,` 35`),this.blockTokens(e,this.tokens);for(let e=0;e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){for(this.options.pedantic&&(e=e.replace(l.tabCharGlobal," ").replace(l.spaceLine,""));e;){let r;if(this.options.extensions?.block?.some(n=>!!(r=n.call({lexer:this},e,t))&&(e=e.substring(r.raw.length),t.push(r),!0)))continue;if(r=this.tokenizer.space(e)){e=e.substring(r.raw.length);let n=t.at(-1);1===r.raw.length&&void 0!==n?n.raw+=` 36`:t.push(r);continue}if(r=this.tokenizer.code(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 37`)?"":` 38`)+r.raw,n.text+=` 39`+r.text,this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if((r=this.tokenizer.fences(e))||(r=this.tokenizer.heading(e))||(r=this.tokenizer.hr(e))||(r=this.tokenizer.blockquote(e))||(r=this.tokenizer.list(e))||(r=this.tokenizer.html(e))){e=e.substring(r.raw.length),t.push(r);continue}if(r=this.tokenizer.def(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="paragraph"||n?.type==="text"?(n.raw+=(n.raw.endsWith(` 40`)?"":` 41`)+r.raw,n.text+=` 42`+r.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[r.tag]||(this.tokens.links[r.tag]={href:r.href,title:r.title},t.push(r));continue}if((r=this.tokenizer.table(e))||(r=this.tokenizer.lheading(e))){e=e.substring(r.raw.length),t.push(r);continue}let i=e;if(this.options.extensions?.startBlock){let t=1/0,n=e.slice(1),r;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(this.state.top&&(r=this.tokenizer.paragraph(i))){let a=t.at(-1);n&&a?.type==="paragraph"?(a.raw+=(a.raw.endsWith(` 43`)?"":` 44`)+r.raw,a.text+=` 45`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=a.text):t.push(r),n=i.length!==e.length,e=e.substring(r.raw.length);continue}if(r=this.tokenizer.text(e)){e=e.substring(r.raw.length);let n=t.at(-1);n?.type==="text"?(n.raw+=(n.raw.endsWith(` 46`)?"":` 47`)+r.raw,n.text+=` 48`+r.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(r);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){let n,r=e,i=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(i=this.tokenizer.rules.inline.reflinkSearch.exec(r));)e.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(r=r.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+r.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(i=this.tokenizer.rules.inline.anyPunctuation.exec(r));)r=r.slice(0,i.index)+"++"+r.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(i=this.tokenizer.rules.inline.blockSkip.exec(r));)n=i[2]?i[2].length:0,r=r.slice(0,i.index+n)+"["+"a".repeat(i[0].length-n-2)+"]"+r.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);r=this.options.hooks?.emStrongMask?.call({lexer:this},r)??r;let a=!1,s="";for(;e;){let n;if(a||(s=""),a=!1,this.options.extensions?.inline?.some(r=>!!(n=r.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let r=t.at(-1);"text"===n.type&&r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,r,s))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e,r,s))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(this.options.extensions?.startInline){let t=1/0,n=e.slice(1),r;
48this.options.extensions.startInline.forEach(e=>{"number"==typeof(r=e.call({lexer:this},n))&&r>=0&&(t=Math.min(t,r))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(s=n.raw.slice(-1)),a=!0;let r=t.at(-1);r?.type==="text"?(r.raw+=n.raw,r.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},em=class{options;parser;constructor(e){this.options=e||i}space(e){return""}code({text:e,lang:t,escaped:n}){let r=(t||"").match(l.notSpaceStart)?.[0],i=e.replace(l.endingNewline,"")+` 49`;return r?'<pre><code class="language-'+eo(r)+'">'+(n?i:eo(i,!0))+`</code></pre> 50`:"<pre><code>"+(n?i:eo(i,!0))+`</code></pre> 51`}blockquote({tokens:e}){return`<blockquote> 52${this.parser.parse(e)}</blockquote> 53`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}> 54`}hr(e){return`<hr> 55`}list(e){let t=e.ordered,n=e.start,r="";for(let t=0;t<e.items.length;t++){let n=e.items[t];r+=this.listitem(n)}let i=t?"ol":"ul";return"<"+i+(t&&1!==n?' start="'+n+'"':"")+`> 56`+r+"</"+i+`> 57`}listitem(e){return`<li>${this.parser.parse(e.tokens)}</li> 58`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox"> '}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p> 59`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let r="";for(let t=0;t<e.rows.length;t++){let i=e.rows[t];n="";for(let e=0;e<i.length;e++)n+=this.tablecell(i[e]);r+=this.tablerow({text:n})}return r&&(r=`<tbody>${r}</tbody>`),`<table> 60<thead> 61`+t+`</thead> 62`+r+`</table> 63`}tablerow({text:e}){return`<tr> 64${e}</tr> 65`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}> 66`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${eo(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let r=this.parser.parseInline(n),i=el(e);if(null===i)return r;let a='<a href="'+(e=i)+'"';return t&&(a+=' title="'+eo(t)+'"'),a+=">"+r+"</a>"}image({href:e,title:t,text:n,tokens:r}){r&&(n=this.parser.parseInline(r,this.parser.textRenderer));let i=el(e);
66if(null===i)return eo(n);e=i;let a=`<img src="${e}" alt="${eo(n)}"`;return t&&(a+=` title="${eo(t)}"`),a+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:eo(e.text)}},ef=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}checkbox({raw:e}){return e}},eg=class e{options;renderer;textRenderer;constructor(e){this.options=e||i,this.options.renderer=this.options.renderer||new em,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new ef}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e){let t="";for(let n=0;n<e.length;n++){let r=e[n];if(this.options.extensions?.renderers?.[r.type]){let e=this.options.extensions.renderers[r.type].call({parser:this},r);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(r.type)){t+=e||"";continue}}switch(r.type){case"space":t+=this.renderer.space(r);break;case"hr":t+=this.renderer.hr(r);break;case"heading":t+=this.renderer.heading(r);break;case"code":t+=this.renderer.code(r);break;case"table":t+=this.renderer.table(r);break;case"blockquote":t+=this.renderer.blockquote(r);break;case"list":t+=this.renderer.list(r);break;case"checkbox":t+=this.renderer.checkbox(r);break;case"html":t+=this.renderer.html(r);break;case"def":t+=this.renderer.def(r);break;case"paragraph":t+=this.renderer.paragraph(r);break;case"text":t+=this.renderer.text(r);break;default:{let e='Token with "'+r.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return t}parseInline(e,t=this.renderer){let n="";for(let r=0;r<e.length;r++){let i=e[r];if(this.options.extensions?.renderers?.[i.type]){let e=this.options.extensions.renderers[i.type].call({parser:this},i);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(i.type)){n+=e||"";continue}}switch(i.type){case"escape":case"text":n+=t.text(i);break;case"html":n+=t.html(i);break;case"link":n+=t.link(i);break;case"image":n+=t.image(i);break;case"checkbox":n+=t.checkbox(i);break;case"strong":n+=t.strong(i);break;case"em":n+=t.em(i);break;case"codespan":n+=t.codespan(i);break;case"br":n+=t.br(i);break;case"del":n+=t.del(i);break;default:{let e='Token with "'+i.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return n}},eb=class{options;block;constructor(e){this.options=e||i}static passThroughHooks=new Set(["preprocess","postprocess","processAllTokens","emStrongMask"]);static passThroughHooksRespectAsync=new Set(["preprocess","postprocess","processAllTokens"]);preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?ep.lex:ep.lexInline}provideParser(){return this.block?eg.parse:eg.parseInline}},ey=new class{defaults=r();options=this.setOptions;parse=this.parseMarkdown(!0);parseInline=this.parseMarkdown(!1);Parser=eg;Renderer=em;TextRenderer=ef;Lexer=ep;Tokenizer=ed;Hooks=eb;constructor(...e){this.use(...e)}walkTokens(e,t){let n=[];for(let r of e)switch(n=n.concat(t.call(this,r)),r.type){case"table":for(let e of r.header)n=n.concat(this.walkTokens(e.tokens,t));for(let e of r.rows)for(let r of e)n=n.concat(this.walkTokens(r.tokens,t));break;case"list":n=n.concat(this.walkTokens(r.items,t));break;default:{let e=r;this.defaults.extensions?.childTokens?.[e.type]?this.defaults.extensions.childTokens[e.type].forEach(r=>{let i=e[r].flat(1/0);n=n.concat(this.walkTokens(i,t))}):e.tokens&&(n=n.concat(this.walkTokens(e.tokens,t)))}}return n}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let r=e.renderer.apply(this,t);return!1===r&&(r=n.apply(this,t)),r}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new em(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let r=e.renderer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new ed(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let r=e.tokenizer[n],i=t[n];t[n]=(...e)=>{let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new eb;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let r=e.hooks[n],i=t[n];eb.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&eb.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await r.call(t,e);return i.call(t,n)})();let a=r.call(t,e);return i.call(t,a)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await r.apply(t,e);return!1===n&&(n=await i.apply(t,e)),n})();let n=r.apply(t,e);return!1===n&&(n=i.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,r=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(r.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return ep.lex(e,t??this.defaults)}parser(e,t){return eg.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let r={...n},i={...this.defaults,...r},a=this.onError(!!i.silent,!!i.async);if(!0===this.defaults.async&&!1===r.async)return a(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return a(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return a(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(i.hooks&&(i.hooks.options=i,i.hooks.block=e),i.async)return(async()=>{let n=i.hooks?await i.hooks.preprocess(t):t,r=await (i.hooks?await i.hooks.provideLexer():e?ep.lex:ep.lexInline)(n,i),a=i.hooks?await i.hooks.processAllTokens(r):r;i.walkTokens&&await Promise.all(this.walkTokens(a,i.walkTokens));let s=await (i.hooks?await i.hooks.provideParser():e?eg.parse:eg.parseInline)(a,i);return i.hooks?await i.hooks.postprocess(s):s})().catch(a);try{i.hooks&&(t=i.hooks.preprocess(t));let n=(i.hooks?i.hooks.provideLexer():e?ep.lex:ep.lexInline)(t,i);i.hooks&&(n=i.hooks.processAllTokens(n)),i.walkTokens&&this.walkTokens(n,i.walkTokens);let r=(i.hooks?i.hooks.provideParser():e?eg.parse:eg.parseInline)(n,i);return i.hooks&&(r=i.hooks.postprocess(r)),r}catch(e){return a(e)}}}onError(e,t){return n=>{if(n.message+=` 67Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+eo(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function ek(e,t){return ey.parse(e,t)}ek.options=ek.setOptions=function(e){return ey.setOptions(e),ek.defaults=ey.defaults,i=ek.defaults,ek},ek.getDefaults=r,ek.defaults=i,ek.use=function(...e){return ey.use(...e),ek.defaults=ey.defaults,i=ek.defaults,ek},ek.walkTokens=function(e,t){return ey.walkTokens(e,t)},ek.parseInline=ey.parseInline,ek.Parser=eg,ek.parser=eg.parse,ek.Renderer=em,ek.TextRenderer=ef,ek.Lexer=ep,ek.lexer=ep.lex,ek.Tokenizer=ed,ek.Hooks=eb,ek.parse=ek,ek.options,ek.setOptions,ek.use,ek.walkTokens,ek.parseInline,eg.parse,ep.lex},71847:(e,t,n)=>{"use strict";n.d(t,{A:()=>
67o});var r=n(12115);let i=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim()};var a={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let s=(0,r.forwardRef)((e,t)=>{let{color:n="currentColor",size:s=24,strokeWidth:o=2,absoluteStrokeWidth:l,className:c="",children:u,iconNode:h,...d}=e;return(0,r.createElement)("svg",{ref:t,...a,width:s,height:s,stroke:n,strokeWidth:l?24*Number(o)/Number(s):o,className:i("lucide",c),...d},[...h.map(e=>{let[t,n]=e;return(0,r.createElement)(t,n)}),...Array.isArray(u)?u:[u]])}),o=(e,t)=>{let n=(0,r.forwardRef)((n,a)=>{let{className:o,...l}=n;return(0,r.createElement)(s,{ref:a,iconNode:t,className:i("lucide-".concat(e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()),o),...l})});return n.displayName="".concat(e),n}},79961:(e,t)=>{"use strict";function n(e,t){let n=[0,0,0];for(let r=0;r<3;++r)n[r]=e[r][0]*t[0]+e[r][1]*t[1]+e[r][2]*t[2];return n}Object.defineProperty(t,"__esModule",{value:!0}),t.labToXyzd50=function(e,t,n){let r=(e+16)/116,i=r+t/500,a=r-n/200;function s(e){return e<=24/116?108/841*(e-16/116):e*e*e}return i=.9642*s(i),[i,r=+s(r),a=.8251*s(a)]},t.xyzd50ToLab=function(e,t,n){function r(e){return e<=24/116*(24/116)*(24/116)?841/108*e+16/116:Math.pow(e,1/3)}return e=r(e/.9642),t=r(t/1),[116*t-16,500*(e-t),200*(t-(n=r(n/.8251)))]},t.oklabToXyzd65=b,t.xyzd65ToOklab=y,t.lchToLab=k,t.labToLch=_,t.displayP3ToXyzd50=function(e,t,r){let[s,l,c]=o(i.sRGB,e,t,r);return n(a.displayP3,[s,l,c])},t.xyzd50ToDisplayP3=function(e,t,r){let s=n(a.displayP3_INVERSE,[e,t,r]);return o(i.sRGB_INVERSE,s[0],s[1],s[2])},t.proPhotoToXyzd50=function(e,t,r){let[a,s,l]=o(i.proPhotoRGB,e,t,r);return n(d,[a,s,l])},t.xyzd50ToProPhoto=function(e,t,r){let a=n(p,[e,t,r]);return o(i.proPhotoRGB_INVERSE,a[0],a[1],a[2])},t.adobeRGBToXyzd50=function(e,t,r){let[s,l,c]=o(i.k2Dot2,e,t,r);return n(a.adobeRGB,[s,l,c])},t.xyzd50ToAdobeRGB=function(e,t,r){let s=n(a.adobeRGB_INVERSE,[e,t,r]);return o(i.k2Dot2_INVERSE,s[0],s[1],s[2])},t.rec2020ToXyzd50=function(e,t,r){let[s,l,c]=o(i.rec2020,e,t,r);return n(a.rec2020,[s,l,c])},t.xyzd50ToRec2020=function(e,t,r){let s=n(a.rec2020_INVERSE,[e,t,r]);return o(i.rec2020_INVERSE,s[0],s[1],s[2])},t.xyzd50ToD65=v,t.xyzd65ToD50=w,t.xyzd65TosRGBLinear=function(e,t,r){return n(g,[e,t,r])},t.xyzd50TosRGBLinear=function(e,t,r){return n(a.sRGB_INVERSE,[e,t,r])},t.srgbLinearToXyzd50=function(e,t,r){return n(a.sRGB,[e,t,r])},t.srgbToXyzd50=function(e,t,r){let[s,l,c]=o(i.sRGB,e,t,r);return n(a.sRGB,[s,l,c])},t.xyzd50ToSrgb=function(e,t,r){let s=n(a.sRGB_INVERSE,[e,t,r]);return o(i.sRGB_INVERSE,s[0],s[1],s[2])},t.oklchToXyzd50=function(e,t,n){let[r,i,a]=k(e,t,n),[s,o,l]=b(r,i,a);return w(s,o,l)},t.xyzd50ToOklch=function(e,t,n){let[r,i,a]=v(e,t,n),[s,o,l]=y(r,i,a);return _(s,o,l)};class r{g;a;b;c;d;e;f;constructor(e,t,n=0,r=0,i=0,a=0,s=0){this.g=e,this.a=t,this.b=n,this.c=r,this.d=i,this.e=a,this.f=s}eval(e){let t=e<0?-1:1,n=e*t;return n<this.d?t*(this.c*n+this.f):t*(Math.pow(this.a*n+this.b,this.g)+this.e)}}let i={sRGB:new r(2.4,1/1.055,.055/1.055,1/12.92,.04045,0,0),sRGB_INVERSE:new r(.416667,1.13728,-0,12.92,.0031308,-.0549698,-0),proPhotoRGB:new r(1.8,1),proPhotoRGB_INVERSE:new r(.555556,1,-0,0,0,0,0),k2Dot2:new r(2.2,1),k2Dot2_INVERSE:new r(.454545,1),rec2020:new r(2.22222,.909672,.0903276,.222222,.0812429,0,0),rec2020_INVERSE:new r(.45,1.23439,-0,4.5,.018054,-.0993195,-0)},a={sRGB:[[.436065674,.385147095,.143066406],[.222488403,.716873169,.06060791],[.013916016,.097076416,.714096069]],sRGB_INVERSE:[[3.134112151374599,-1.6173924597114966,-.4906334036481285],[-.9787872938826594,1.9162795854799963,.0334547139520088],[.07198304248352326,-.2289858493321844,1.4053851325241447]],displayP3:[[.515102,.291965,.157153],[.241182,.692236,.0665819],[-.00104941,.0418818,.784378]],displayP3_INVERSE:[[2.404045155982687,-.9898986932663839,-.3976317191366333],[-.8422283799266768,1.7988505115115485,.016048170293157416],[.04818705979712955,-.09737385156228891,1.2735066448052303]],adobeRGB:[[.60974,.20528,.14919],[.31111,.62567,.06322],[.01947,.06087,.74457]],adobeRGB_INVERSE:[[1.9625385510109137,-.6106892546501431,-.3413827467482388],[-.9787580455521,1.9161624707082339,.03341676594241408],[.028696263137883395,-.1406807819331586,1.349252109991369]],rec2020:[[.673459,.165661,.1251],[.279033,.675338,.0456288],[-.00193139,.0299794,.797162]],rec2020_INVERSE:[[1.647275201661012,-.3936024771460771,-.23598028884792507],[-.6826176165196962,1.647617775014935,.01281626807852422],[.029662725298529837,-.06291668721366285,1.2533964313435522]]};function s(e){return Math.PI/180*e}function o(e,t,n,r){return[e.eval(t),e.eval(n),e.eval(r)]}let l=[[.9999999984505198,.39633779217376786,.2158037580607588],[1.0000000088817609,-.10556134232365635,-.06385417477170591],[1.0000000546724108,-.08948418209496575,-1.2914855378640917]],c=[[.2104542553,.7936177849999999,-.0040720468],[1.9779984951000003,-2.4285922049999997,.4505937099000001],[.025904037099999982,.782771
677662,-.8086757660000001]],u=[[.8190224432164319,.3619062562801221,-.12887378261216414],[.0329836671980271,.9292868468965546,.03614466816999844],[.048177199566046255,.26423952494422764,.6335478258136937]],h=[[1.226879873374156,-.5578149965554814,.2813910501772159],[-.040575762624313734,1.1122868293970596,-.07171106666151703],[-.07637294974672144,-.4214933239627915,1.586924024427242]],d=[[.7976700747153241,.13519395152800417,.03135596341127167],[.28803902352472205,.7118744007923554,8661179538844252e-20],[2739876695467402e-22,-14405226518969991e-22,.825211112593861]],p=[[1.3459533710138858,-.25561367037652133,-.051116041522131374],[-.544600415668951,1.5081687311475767,.020535163968720935],[-13975622054109725e-22,2717590904589903e-21,1.2118111696814942]],m=[[1.0478573189120088,.022907374491829943,-.050162247377152525],[.029570500050499514,.9904755577034089,-.017061518194840468],[-.00924047197558879,.015052921526981566,.7519708530777581]],f=[[.9555366447632887,-.02306009252137888,.06321844147263304],[-.028315378228764922,1.009951351591575,.021026001591792402],[.012308773293784308,-.02050053471777469,1.3301947294775631]],g=[[3.2408089365140573,-1.5375788839307314,-.4985609572551541],[-.9692732213205414,1.876110235238969,.041560501141251774],[.05567030990267439,-.2040007921971802,1.0571046720577026]];function b(e,t,r){let i=n(l,[e,t,r]);return i[0]=i[0]*i[0]*i[0],i[1]=i[1]*i[1]*i[1],i[2]=i[2]*i[2]*i[2],n(h,i)}function y(e,t,r){let i=n(u,[e,t,r]);i[0]=Math.pow(i[0],1/3),i[1]=Math.pow(i[1],1/3),i[2]=Math.pow(i[2],1/3);let a=n(c,i);return[a[0],a[1],a[2]]}function k(e,t,n){return void 0===n?[e,0,0]:[e,t*Math.cos(s(n)),t*Math.sin(s(n))]}function _(e,t,n){return[e,Math.sqrt(t*t+n*n),180/Math.PI*Math.atan2(n,t)]}function v(e,t,r){return n(f,[e,t,r])}function w(e,t,r){return n(m,[e,t,r])}},81922:(e,t,n)=>{"use strict";n.d(t,{W:()=>s});var r=n(12115),i=n(41659);let a={some:0,all:1};function s(e){let{root:t,margin:n,amount:s,once:o=!1,initial:l=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},[c,u]=(0,r.useState)(l);return(0,r.useEffect)(()=>{if(!e.current||o&&c)return;let r={root:t&&t.current||void 0,margin:n,amount:s};return function(e,t,{root:n,margin:r,amount:s="some"}={}){let o=(0,i.K)(e),l=new WeakMap,c=new IntersectionObserver(e=>{e.forEach(e=>{let n=l.get(e.target);if(!!n!==e.isIntersecting)if(e.isIntersecting){let n=t(e.target,e);"function"==typeof n?l.set(e.target,n):c.unobserve(e.target)}else"function"==typeof n&&(n(e),l.delete(e.target))})},{root:n,rootMargin:r,threshold:"number"==typeof s?s:a[s]});return o.forEach(e=>c.observe(e)),()=>c.disconnect()}(e.current,()=>(u(!0),o?void 0:()=>u(!1)),r)},[t,e,n,o,s]),c}},82214:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("ChartLine",[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"m19 9-5 5-4-4-3 3",key:"2osh9i"}]])},82692:(e,t,n)=>{"use strict";n.d(t,{z:()=>g});var r=n(92368),i=n(44816),a=n(11712);function s(e){return"number"==typeof e?e:parseFloat(e)}var o=n(12115),l=n(38237),c=n(11688),u=n(71452),h=n(3030),d=n(81497);function p(e,t){let n=(0,c.d)(t()),r=()=>n.set(t());return r(),(0,d.E)(()=>{let t=()=>a.Gt.preRender(r,!1,!0),n=e.map(e=>e.on("change",t));return()=>{n.forEach(e=>e()),(0,a.WG)(r)}}),n}var m=n(68865);function f(e,t){let n=(0,h.M)(()=>[]);return p(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function g(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{isStatic:n}=(0,o.useContext)(l.Q),d=()=>(0,r.S)(e)?e.get():e;if(n)return function e(t,n,r,i){if("function"==typeof t){m.bt.current=[],t();let e=p(m.bt.current,t);return m.bt.current=void 0,e}if(void 0!==r&&!Array.isArray(r)&&"function"!=typeof n){var a=t,s=n,o=r,l=i;let c=(0,h.M)(()=>Object.keys(o)),u=(0,h.M)(()=>({}));for(let t of c)u[t]=e(a,s,o[t],l);return u}let c="function"==typeof n?n:function(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],s=e[3+n],o=(0,u.G)(i,a,s);return t?o(r):o}(n,r,i),d=Array.isArray(t)?f(t,c):f([t],e=>{let[t]=e;return c(t)}),g=Array.isArray(t)?void 0:t.accelerate;return g&&!g.isTransformed&&"function"!=typeof n&&Array.isArray(r)&&(null==i?void 0:i.clamp)!==!1&&(d.accelerate={...g,times:n,keyframes:r,isTransformed:!0,...(null==i?void 0:i.ease)?{ease:i.ease}:{}}),d}(d);let g=(0,c.d)(d());return(0,o.useInsertionEffect)(()=>(function(e,t,n={}){let o,l=e.get(),c=null,u=l,h="string"==typeof l?l.replace(/[\d.-]/g,""):void 0,d=()=>{c&&(c.stop(),c=null),e.animation=void 0},p=()=>{(()=>{let t=s(e.get()),r=s(u);if(t===r)return d();let a=c?c.getGeneratorVelocity():e.getVelocity();d(),c=new i.s({keyframes:[t,r],velocity:a,type:"spring",restDelta:.001,restSpeed:.01,...n,onUp
67date:o})})(),e.animation=c??void 0,e.events.animationStart?.notify(),c?.then(()=>{e.animation=void 0,e.events.animationComplete?.notify()})};if(e.attach((e,t)=>{u=e,o=e=>{var n,r;return t((n=e,(r=h)?n+r:n))},a.Gt.postRender(p)},d),(0,r.S)(t)){let r=!0===n.skipInitialAnimation,i=t.on("change",t=>{var n,i,a,s;r?(r=!1,e.jump((n=t,(i=h)?n+i:n),!1)):e.set((a=t,(s=h)?a+s:a))}),a=e.on("destroy",i);return()=>{i(),a()}}return d})(g,e,t),[g,JSON.stringify(t)]),g}(e,{type:"spring",...t})}},86157:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.cast=function(e){return e<0?e+0x100000000:e},t.get=function(e,t){return e>>t&255},t.set=function(e,t,n){return e^(e^n<<t)&255<<t}},86340:()=>{},87066:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("ClipboardList",[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]])},88661:(e,t,n)=>{"use strict";e.exports=n(45688).style},89442:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("GraduationCap",[["path",{d:"M21.42 10.922a1 1 0 0 0-.019-1.838L12.83 5.18a2 2 0 0 0-1.66 0L2.6 9.08a1 1 0 0 0 0 1.832l8.57 3.908a2 2 0 0 0 1.66 0z",key:"j76jl0"}],["path",{d:"M22 10v6",key:"1lu8f3"}],["path",{d:"M6 12.5V16a6 3 0 0 0 12 0v-3.5",key:"1r8lef"}]])},90799:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]])},95740:(e,t,n)=>{"use strict";n.d(t,{A:()=>r});let r=(0,n(71847).A)("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]])}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.