403Webshell
Server IP : 85.214.143.32  /  Your IP : 216.73.216.199
Web Server : nginx/1.24.0
System : Linux datensicherung.webdress.site 6.8.0-139-generic #139-Ubuntu SMP PREEMPT_DYNAMIC Sat Aug 1 03:52:05 UTC 2026 x86_64
User : www-data ( 33)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/nextcloud/dist/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/nextcloud/dist/index-0f4aIjP5.chunk.mjs
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=[window.OC.filePath('', '', 'dist/index-CL3thlzm.chunk.mjs'),window.OC.filePath('', '', 'dist/index-Cp0kcsps.chunk.mjs'),window.OC.filePath('', '', 'dist/ArrowRight-BMXv3_tW.chunk.mjs'),window.OC.filePath('', '', 'dist/createElementId-DhjFt1I9-CzYhhUzc.chunk.mjs'),window.OC.filePath('', '', 'dist/translation-DoG5ZELJ-BmllVdG7.chunk.mjs'),window.OC.filePath('', '', 'dist/Web-Bpn1hT4U.chunk.mjs'),window.OC.filePath('', '', 'dist/public-C1mLBHT3.chunk.mjs'),window.OC.filePath('', '', 'dist/common-createElementId-DhjFt1I9-C_oBIsvc.chunk.css'),window.OC.filePath('', '', 'dist/logger-D3RVzcfQ-B6R2fmjp.chunk.mjs'),window.OC.filePath('', '', 'dist/common-logger-D3RVzcfQ-Ks0gkIDB.chunk.css'),window.OC.filePath('', '', 'dist/common-ArrowRight-DfvWJUh_.chunk.css'),window.OC.filePath('', '', 'dist/NcCheckboxRadioSwitch-DVdt5Hkq-BDEn8EyP.chunk.mjs'),window.OC.filePath('', '', 'dist/TrashCanOutline-BTIe_2cO.chunk.mjs'),window.OC.filePath('', '', 'dist/common-TrashCanOutline-BYHcrfvW.chunk.css'),window.OC.filePath('', '', 'dist/common-NcCheckboxRadioSwitch-DVdt5Hkq-Ct9ZGMmH.chunk.css'),window.OC.filePath('', '', 'dist/index-D2R3-_i4.chunk.mjs'),window.OC.filePath('', '', 'dist/util-DBjHxD9z.chunk.mjs'),window.OC.filePath('', '', 'dist/index-B-O3WGfL.chunk.mjs'),window.OC.filePath('', '', 'dist/NcModal-DiDvgcU8-DlAqoAw2.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcModal-DiDvgcU8-B-yi1OwC.chunk.css'),window.OC.filePath('', '', 'dist/common-index-BWhNCeJl.chunk.css'),window.OC.filePath('', '', 'dist/NcEmptyContent-CGAPqk4S-C3yFtVXO.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcEmptyContent-CGAPqk4S-Don1d5Bd.chunk.css'),window.OC.filePath('', '', 'dist/NcTextField.vue_vue_type_script_setup_true_lang-Bx2esFU2-LotydYy2.chunk.mjs'),window.OC.filePath('', '', 'dist/NcInputField-5Sg6EUP6-DsazvGgr.chunk.mjs'),window.OC.filePath('', '', 'dist/common-NcInputField-5Sg6EUP6-BYHxARP-.chunk.css')])))=>i.map(i=>d[i]);
import{v as ne,a8 as No,l as Ce,e as si,r as W,o as A,f as V,c as ee,k as ie,h as ue,a6 as zt,L as Ot,O as un,w as ve,g as te,t as we,b as ai,V as jo,p as Wt,z as Bo,U as Vo,y as it,u as et,m as Sn,C as Uo,j as ci,D as ir,F as ui,B as $o,ac as Z,_ as Ho}from"./Web-Bpn1hT4U.chunk.mjs";import{e as qo,D as Wo,l as $e,N as Cn,E as Qo,R as fi}from"./logger-D3RVzcfQ-B6R2fmjp.chunk.mjs";import{N as Yo}from"./NcCheckboxRadioSwitch-DVdt5Hkq-BDEn8EyP.chunk.mjs";import{k as Ko,f as Zo,c as Fe,d as pi,t as di,a as Go}from"./index-Cp0kcsps.chunk.mjs";import{c as Be}from"./index-D2R3-_i4.chunk.mjs";import{l as or,a as lr}from"./public-C1mLBHT3.chunk.mjs";import{r as He,F as Xo,b as oe,G as Jo,H as el,I as hi,J as tl,K as nl,q as rl,L as il,y as ol,M as ll,_ as Se,c as At,N as sl}from"./createElementId-DhjFt1I9-CzYhhUzc.chunk.mjs";import{I as al,N as mi,_ as gi}from"./index-B-O3WGfL.chunk.mjs";import{N as Pn}from"./NcEmptyContent-CGAPqk4S-C3yFtVXO.chunk.mjs";import{N as cl,I as ul,u as sr,C as fl}from"./NcModal-DiDvgcU8-DlAqoAw2.chunk.mjs";import{g as vi,v as qe,c as pl,U as ar,N as dl,p as hl,r as ml,E as gl,u as cr,S as yi}from"./ArrowRight-BMXv3_tW.chunk.mjs";import{N as vl}from"./TrashCanOutline-BTIe_2cO.chunk.mjs";import{_ as yl}from"./NcTextField.vue_vue_type_script_setup_true_lang-Bx2esFU2-LotydYy2.chunk.mjs";He(Xo);const kl=2e3;function xl(e){const t=Ce(!1),n=ne(()=>t.value?qo:Wo),r=ne(()=>t.value?oe("Copied"):oe("Copy to clipboard"));async function i(){if(t.value)return;const o=No(e);try{await navigator.clipboard.writeText(o)}catch{prompt("",o)}t.value=!0,setTimeout(()=>{t.value=!1},kl)}return{isCopied:t,copy:i,icon:n,altText:r}}window._vue_richtext_widgets??={},window._registerWidget??=(e,t,n,r)=>{ki(e,t,n,r)};function ki(e,t,n=()=>{},r){const i={hasInteractiveView:!0,fullWidth:!1,isResizable:!1,...r};if(window._vue_richtext_widgets[e]){$e.error(`[ReferencePicker]: Widget for id ${e} already registered`);return}window._vue_richtext_widgets[e]={id:e,callback:t,onDestroy:n,...i}}function xi(e,t){const{richObjectType:n,richObject:r,accessible:i,interactive:o}=t;if(n!=="open-graph"){if(!window._vue_richtext_widgets[n]){$e.error("Widget for rich object type "+n+" not registered");return}window._vue_richtext_widgets[n].callback(e,{richObjectType:n,richObject:r,accessible:i,interactive:o})}}function bl(e,t){e!=="open-graph"&&window._vue_richtext_widgets[e]&&window._vue_richtext_widgets[e].onDestroy(t)}function bi(e){return!!window._vue_richtext_widgets[e]}function wl(e){return!!window._vue_richtext_widgets[e]?.hasInteractiveView}function Sl(e){return!!window._vue_richtext_widgets[e]?.fullWidth}function Cl(e){return!!window._vue_richtext_widgets[e]?.isResizable}window._vue_richtext_custom_picker_elements??={},window._registerCustomPickerElement??=wi;class Pl{element;object;constructor(t,n){this.element=t,this.object=n}}function ot(e){return!!window._vue_richtext_custom_picker_elements[e]}function Il(e){const t=window._vue_richtext_custom_picker_elements[e]?.size;return t&&["small","normal","large","full"].includes(t)?t:null}function wi(e,t,n=()=>{},r="large"){if(window._vue_richtext_custom_picker_elements[e]){$e.error(`Custom reference picker element for id ${e} already registered`);return}window._vue_richtext_custom_picker_elements[e]={id:e,callback:t,onDestroy:n,size:r}}function Si(e,t){const{providerId:n,accessible:r}=t;if(!window._vue_richtext_custom_picker_elements[n]){$e.error(`Custom reference picker element for reference provider ID ${n} not registered`);return}return window._vue_richtext_custom_picker_elements[n].callback(e,{providerId:n,accessible:r})}function El(e,t,n){window._vue_richtext_custom_picker_elements[e]&&window._vue_richtext_custom_picker_elements[e].onDestroy(t,n)}const _l={name:"ArrowLeftIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Tl=["aria-hidden","aria-label"],Ll=["fill","width","height"],Ol={d:"M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z"},Al={key:0};function Rl(e,t,n,r,i,o){return A(),V("span",Sn(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon arrow-left-icon",role:"img",onClick:t[0]||(t[0]=l=>e.$emit("click",l))}),[(A(),V("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[te("path",Ol,[n.title?(A(),V("title",Al,we(n.title),1)):ue("",!0)])],8,Ll))],16,Tl)}const Ml=Se(_l,[["render",Rl]]),Dl={name:"NcCustomPickerElement",props:{provider:{type:Object,required:!0}},emits:["cancel","submit","pick"],data(){return{isRegistered:ot(this.provider.id),renderResult:null}},mounted(){this.isRegistered&&this.renderElement()},beforeUnmount(){this.isRegistered&&El(this.provider.id,this.$el,this.renderResult)},methods:{renderElement(){this.$refs.domElement&&(this.$refs.domElement.innerHTML="");const e=Si(this.$refs.domElement,{providerId:this.provider.id,accessible:!1});Promise.resolve(e).then(t=>{this.renderResult=t,this.renderResult.object?._isVue&&this.renderResult.object?.$on&&(this.renderResult.object.$on("submit",this.onSubmit),this.renderResult.object.$on("pick",this.onPick),this.renderResult.object.$on("cancel",this.onCancel)),this.renderResult.element.addEventListener("submit",n=>{this.onSubmit(n.detail)}),this.renderResult.element.addEventListener("pick",n=>{this.onPick(n.detail)}),this.renderResult.element.addEventListener("cancel",this.onCancel)})},onSubmit(e){this.$emit("submit",e)},onPick(e){this.$emit("pick",e)},onCancel(){this.$emit("cancel")}}},zl={ref:"domElement"};function Fl(e,t,n,r,i,o){return A(),V("div",zl,null,512)}const Nl=Se(Dl,[["render",Fl],["__scopeId","data-v-df9d8f84"]]),jl={name:"LinkVariantIcon",emits:["click"],props:{title:{type:String},fillColor:{type:String,default:"currentColor"},size:{type:Number,default:24}}},Bl=["aria-hidden","aria-label"],Vl=["fill","width","height"],Ul={d:"M10.59,13.41C11,13.8 11,14.44 10.59,14.83C10.2,15.22 9.56,15.22 9.17,14.83C7.22,12.88 7.22,9.71 9.17,7.76V7.76L12.71,4.22C14.66,2.27 17.83,2.27 19.78,4.22C21.73,6.17 21.73,9.34 19.78,11.29L18.29,12.78C18.3,11.96 18.17,11.14 17.89,10.36L18.36,9.88C19.54,8.71 19.54,6.81 18.36,5.64C17.19,4.46 15.29,4.46 14.12,5.64L10.59,9.17C9.41,10.34 9.41,12.24 10.59,13.41M13.41,9.17C13.8,8.78 14.44,8.78 14.83,9.17C16.78,11.12 16.78,14.29 14.83,16.24V16.24L11.29,19.78C9.34,21.73 6.17,21.73 4.22,19.78C2.27,17.83 2.27,14.66 4.22,12.71L5.71,11.22C5.7,12.04 5.83,12.86 6.11,13.65L5.64,14.12C4.46,15.29 4.46,17.19 5.64,18.36C6.81,19.54 8.71,19.54 9.88,18.36L13.41,14.83C14.59,13.66 14.59,11.76 13.41,10.59C13,10.2 13,9.56 13.41,9.17Z"},$l={key:0};function Hl(e,t,n,r,i,o){return A(),V("span",Sn(e.$attrs,{"aria-hidden":n.title?null:"true","aria-label":n.title,class:"material-design-icon link-variant-icon",role:"img",onClick:t[0]||(t[0]=l=>e.$emit("click",l))}),[(A(),V("svg",{fill:n.fillColor,class:"material-design-icon__svg",width:n.size,height:n.size,viewBox:"0 0 24 24"},[te("path",Ul,[n.title?(A(),V("title",$l,we(n.title),1)):ue("",!0)])],8,Vl))],16,Bl)}const In=Se(jl,[["render",Hl]]);He(Jo);const En="any-link",Ci={id:En,title:oe("Any link"),order:0,icon_url:Ko("core","filetypes/link.svg")};window._vue_richtext_reference_providers??=or("core","reference-provider-list",[]),window._vue_richtext_reference_provider_timestamps??=or("core","reference-provider-timestamps",{});function _n(e){return e===En?Ci:Tn().find(t=>t.id===e)}function Tn(){return window._vue_richtext_reference_providers.filter(e=>{const t=!!e.search_providers_ids&&e.search_providers_ids.length>0||ot(e.id);return t||$e.debug(`[smart picker] ${e.id} reference provider is discoverable but does not have any related search provider or custom picker component registered`),t})}function Pi(e){const t=window._vue_richtext_reference_provider_timestamps;return e.sort((n,r)=>n.order===r.order?0:n.order>r.order?1:-1).sort((n,r)=>{const i=t[n.id],o=t[r.id];return i===o?0:o===void 0?-1:i===void 0?1:i>o?-1:1})}function Ii(e,t){const n=Tn(),r=e.replace(/[/\-\\^$*+?.()|[\]{}]/g,"\\$&"),i=new RegExp(r,"i"),o=Pi(n).filter(s=>s.title.match(i)),l=t?o.slice(0,t):o;return(e===""||l.length===0)&&l.push(Ci),l}async function ur(e){const t=Math.floor(Date.now()/1e3),n=Fe("references/provider/{providerId}",{providerId:e});await Be.put(n,{timestamp:t}),window._vue_richtext_reference_provider_timestamps[e]=t}He(hi,el);function Ln(e){try{return!!new URL(e)}catch{return!1}}const ql={name:"NcProviderList",components:{NcSelect:mi,NcHighlight:gi,NcEmptyContent:Pn,LinkVariantIcon:In},emits:["selectProvider","submit","pick"],data(){return{selectedProvider:null,query:"",multiselectPlaceholder:oe("Select provider"),providerIconAlt:oe("Provider icon")}},computed:{options(){const e=[];return this.query!==""&&Ln(this.query)&&e.push({id:this.query,title:this.query,isLink:!0}),e.push(...Ii(this.query)),e}},methods:{focus(){setTimeout(()=>{this.$refs["provider-select"]?.$el?.querySelector("#provider-select-input")?.focus()},300)},onProviderSelected(e){e!==null&&(e.isLink?(this.$emit("submit",e.title),this.$emit("pick",{link:e.title})):this.$emit("selectProvider",e),this.selectedProvider=null)},onSearch(e){this.query=e}}},Wl={class:"provider-list"},Ql={key:0,class:"provider"},Yl={key:1,class:"provider"},Kl=["src","alt"];function Zl(e,t,n,r,i,o){const l=W("LinkVariantIcon"),s=W("NcHighlight"),a=W("NcSelect"),c=W("NcEmptyContent");return A(),V("div",Wl,[ie(a,{ref:"provider-select",modelValue:i.selectedProvider,"onUpdate:modelValue":[t[0]||(t[0]=f=>i.selectedProvider=f),o.onProviderSelected],class:"provider-list--select",inputId:"provider-select-input",label:"title",placeholder:i.multiselectPlaceholder,options:o.options,appendToBody:!1,clearSearchOnSelect:!0,clearSearchOnBlur:()=>!1,filterable:!1,onSearch:o.onSearch},{option:ve(f=>[f.isLink?(A(),V("div",Ql,[ie(l,{class:"link-icon",size:20}),te("span",null,we(f.title),1)])):(A(),V("div",Yl,[te("img",{class:"provider-icon",src:f.icon_url,alt:i.providerIconAlt},null,8,Kl),ie(s,{class:"option-text",search:i.query,text:f.title},null,8,["search","text"])]))]),_:1},8,["modelValue","placeholder","options","onSearch","onUpdate:modelValue"]),ie(c,{class:"provider-list--empty-content"},{icon:ve(()=>[ie(l)]),_:1})])}const Gl=Se(ql,[["render",Zl],["__scopeId","data-v-c9740c42"]]);He(tl);const Xl=["aria-label","aria-valuenow","aria-valuemin","aria-valuemax"],Jl=["src"],es={class:"widget-default--details"},ts={class:"widget-default--name"},ns={class:"widget-default--link"},rs=180*1e3,fr=10,is=ai({__name:"NcReferenceWidget",props:{reference:{},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},setup(e){const t=e,n=jo(Qo,null),r=`nc-reference-widget-${At()}`,i=Ce(!1),o=Wt("customWidget"),l=Wt("customWidgetContent"),s=Wt("widgetRoot"),{width:a}=sr(s),{height:c}=sr(o);fl(s,([j])=>{ir(()=>{i.value=j.isIntersecting})});const f=Ce(!1),u=Ce(!1);let d=null;const p=Ce(!1),g=Ce(null),k=Ce(0),w=Ce(0),v=Ce(100),C=Ce(window.innerHeight-120),P=ne(()=>!t.interactiveOptIn&&t.interactive||f.value),T=ne(()=>Sl(t.reference.richObjectType)),z=ne(()=>Cl(t.reference.richObjectType)),b=ne(()=>bi(t.reference.richObjectType)),F=ne(()=>g.value?{height:`${g.value}px !important`}:null),$=ne(()=>Math.round(g.value??c.value)),B=ne(()=>b.value&&wl(t.reference.richObjectType)),y=ne(()=>!t.reference.accessible),_=ne(()=>[450,550,650,1/0].findIndex(j=>a.value<j)),L=ne(()=>{if(_.value===0)return{display:"none"};const j=_.value;return{lineClamp:j,webkitLineClamp:j}}),O=ne(()=>{const j=t.reference.openGraphObject.link;return j?j.startsWith("https://")?j.substring(8):j.startsWith("http://")?j.substring(7):j:""}),E=ne(()=>vi(n,t.reference.openGraphObject.link)),R=ne(()=>E.value?fi:"a"),G=ne(()=>E.value?{to:E.value}:{href:t.reference.openGraphObject.link,target:"_blank"});Bo(i,j=>{if(!j){d=setTimeout(()=>{i.value||ye()},rs);return}d&&(clearTimeout(d),d=null),u.value||se()},{immediate:!0}),Vo(()=>{d&&(clearTimeout(d),d=null),le(),ye()});function J(){f.value=!0,se()}function se(){if(!l.value||t.reference.richObjectType==="open-graph")return;l.value.innerHTML="";const j=document.createElement("div");j.style.width="100%",l.value.appendChild(j),ir(()=>{xi(j,{...t.reference,interactive:P.value}),u.value=!0})}function ye(){u.value&&s.value&&(bl(t.reference.richObjectType,s.value),u.value=!1)}function h(){const j=l.value?.firstElementChild;if(j){const H=window.getComputedStyle(j),Pe=parseFloat(H.minHeight),xe=parseFloat(H.maxHeight);v.value=Pe>0?Pe:100,C.value=Number.isFinite(xe)&&xe>0?xe:window.innerHeight-120}else v.value=100,C.value=window.innerHeight-120}function de(j){!z.value||!o.value||(h(),p.value=!0,k.value=j.clientY,w.value=o.value.getBoundingClientRect().height,window.addEventListener("pointermove",m),window.addEventListener("pointerup",le))}function ke(j){if(!z.value||!o.value)return;h();const H=(g.value??w.value)+j;g.value=Math.min(C.value,Math.max(v.value,H))}function m(j){if(!p.value||!o.value)return;const H=j.clientY-k.value;g.value=Math.min(C.value,Math.max(v.value,w.value+H))}function le(){p.value&&(p.value=!1,window.removeEventListener("pointermove",m),window.removeEventListener("pointerup",le))}return(j,H)=>(A(),V("div",{ref_key:"widgetRoot",ref:s,class:it({"toggle-interactive":B.value&&!P.value})},[e.reference&&b.value?(A(),V("div",{key:0,id:r,ref_key:"customWidget",ref:o,class:it(["widget-custom",{"full-width":T.value}]),style:un(F.value)},[te("div",{ref_key:"customWidgetContent",ref:l,class:"widget-custom__content"},null,512),z.value?(A(),V("div",{key:0,class:"widget-custom__resize-handle",role:"slider",tabindex:"0","aria-orientation":"vertical","aria-label":et(oe)("Widget height"),"aria-valuenow":$.value,"aria-valuemin":v.value,"aria-valuemax":C.value,"aria-controls":r,onPointerdown:Ot(de,["stop","prevent"]),onKeydown:[H[0]||(H[0]=zt(Ot(Pe=>ke(-fr),["stop","prevent"]),["up"])),H[1]||(H[1]=zt(Ot(Pe=>ke(fr),["stop","prevent"]),["down"]))]},null,40,Xl)):ue("",!0)],6)):!y.value&&e.reference&&e.reference.openGraphObject&&!b.value?(A(),ee(Uo(R.value),Sn({key:1},G.value,{rel:"noopener noreferrer",class:"widget-default"}),{default:ve(()=>[e.reference.openGraphObject.thumb?(A(),V("img",{key:0,class:"widget-default--image",src:e.reference.openGraphObject.thumb},null,8,Jl)):ue("",!0),te("div",es,[te("p",ts,we(e.reference.openGraphObject.name),1),te("p",{class:"widget-default--description",style:un(L.value)},we(e.reference.openGraphObject.description),5),te("p",ns,we(O.value),1)])]),_:1},16)):ue("",!0),e.interactiveOptIn&&B.value&&!P.value?(A(),ee(Cn,{key:2,class:"toggle-interactive--button",onClick:J},{default:ve(()=>[ci(we(et(oe)("Enable interactive view")),1)]),_:1})):ue("",!0)],2))}}),On=Se(is,[["__scopeId","data-v-4b144346"]]);He(nl);const os={name:"NcRawLinkInput",components:{LinkVariantIcon:In,NcEmptyContent:Pn,NcLoadingIcon:vl,NcReferenceWidget:On,NcTextField:yl},props:{provider:{type:Object,required:!0}},emits:["submit","pick"],data(){return{inputValue:"",loading:!1,reference:null,abortController:null,inputPlaceholder:oe("Enter link")}},computed:{isLinkValid(){return Ln(this.inputValue)},debouncedUpdateReference(){return pi(this.updateReference,500)}},methods:{focus(){this.$refs["url-input"].$el.getElementsByTagName("input")[0]?.focus()},onSubmit(e){const t=e.target.value;this.isLinkValid&&(this.$emit("submit",t),this.$emit("pick",{link:t}))},onClear(){this.inputValue="",this.reference=null},onInput(){this.reference=null,this.abortController&&this.abortController.abort(),this.isLinkValid&&this.debouncedUpdateReference()},updateReference(){this.loading=!0,this.abortController=new AbortController,Be.get(Fe("references/resolve",2)+"?reference="+encodeURIComponent(this.inputValue),{signal:this.abortController.signal}).then(e=>{this.reference=e.data.ocs.data.references[this.inputValue]}).catch(e=>{$e.error("[NcRawLinkInput] Failed to update reference",{error:e})}).then(()=>{this.loading=!1})}}},ls={class:"raw-link"},ss={class:"input-wrapper"},as=["src"];function cs(e,t,n,r,i,o){const l=W("NcLoadingIcon"),s=W("LinkVariantIcon"),a=W("NcTextField"),c=W("NcReferenceWidget"),f=W("NcEmptyContent");return A(),V("div",ls,[te("div",ss,[ie(a,{ref:"url-input",modelValue:i.inputValue,"onUpdate:modelValue":[t[0]||(t[0]=u=>i.inputValue=u),o.onInput],showTrailingButton:i.inputValue!=="",label:i.inputPlaceholder,onTrailingButtonClick:o.onClear,onKeyup:zt(o.onSubmit,["enter"])},{default:ve(()=>[i.loading?(A(),ee(l,{key:0,size:16})):(A(),ee(s,{key:1,size:16}))]),_:1},8,["modelValue","showTrailingButton","label","onTrailingButtonClick","onUpdate:modelValue","onKeyup"])]),i.reference!==null?(A(),ee(c,{key:0,class:"reference-widget",reference:i.reference},null,8,["reference"])):(A(),ee(f,{key:1,class:"raw-link--empty-content"},{icon:ve(()=>[n.provider.icon_url?(A(),V("img",{key:0,class:"provider-icon",src:n.provider.icon_url},null,8,as)):(A(),ee(s,{key:1}))]),_:1}))])}const us=Se(os,[["render",cs],["__scopeId","data-v-fb24b594"]]),fs={name:"NcSearchResult",components:{NcHighlight:gi},props:{entry:{type:Object,required:!0},query:{type:String,required:!0}}},ps={class:"result"},ds=["src"],hs={class:"result--content"},ms={class:"result--content--name"},gs={class:"result--content--subline"};function vs(e,t,n,r,i,o){const l=W("NcHighlight");return A(),V("div",ps,[n.entry.icon?(A(),V("div",{key:0,class:it([{[n.entry.icon]:!0,rounded:n.entry.rounded},"result--icon-class"])},null,2)):(A(),V("img",{key:1,class:it(["result--image",{rounded:n.entry.rounded}]),src:n.entry.thumbnailUrl},null,10,ds)),te("div",hs,[te("span",ms,[ie(l,{search:n.query,text:n.entry.title},null,8,["search","text"])]),te("span",gs,[ie(l,{search:n.query,text:n.entry.subline},null,8,["search","text"])])])])}const ys=Se(fs,[["render",vs],["__scopeId","data-v-059edcfb"]]);He(il,hi,rl);const pr=5,ks={name:"NcSearch",components:{LinkVariantIcon:In,DotsHorizontalIcon:ul,NcEmptyContent:Pn,NcSelect:mi,NcSearchResult:ys},props:{provider:{type:Object,required:!0},showEmptyContent:{type:Boolean,default:!0},searchPlaceholder:{type:String,default:null}},emits:["submit","pick"],data(){return{searchQuery:"",selectedResult:null,resultsBySearchProvider:{},searching:!1,searchingMoreOf:null,abortController:null,noOptionsText:oe("Start typing to search"),providerIconAlt:oe("Provider icon")}},computed:{mySearchPlaceholder(){return this.searchPlaceholder||oe("Search")},searchProviderIds(){return this.provider.search_providers_ids},options(){if(this.searchQuery==="")return[];const e=[];return Ln(this.searchQuery)&&e.push(this.rawLinkEntry),e.push(...this.formattedSearchResults),e},rawLinkEntry(){return{id:"rawLinkEntry",resourceUrl:this.searchQuery,isRawLink:!0}},formattedSearchResults(){const e=[];return this.searchProviderIds.forEach(t=>{if(this.resultsBySearchProvider[t].entries.length>0){(this.searchProviderIds.length>1||this.resultsBySearchProvider[t].entries.length>1)&&e.push({id:"groupTitle-"+t,name:this.resultsBySearchProvider[t].name,isCustomGroupTitle:!0,providerId:t});const n=this.resultsBySearchProvider[t].entries.map((r,i)=>({id:"provider-"+t+"-entry-"+i,...r}));e.push(...n),this.resultsBySearchProvider[t].isPaginated&&e.push({id:"moreOf-"+t,name:this.resultsBySearchProvider[t].name,isMore:!0,providerId:t,isLoading:this.searchingMoreOf===t})}}),e},debouncedUpdateSearch(){return pi(this.updateSearch,500)}},mounted(){this.resetResults()},beforeUnmount(){this.cancelSearchRequests()},methods:{t:oe,resetResults(){const e={};this.searchProviderIds.forEach(t=>{e[t]={entries:[]}}),this.resultsBySearchProvider=e},focus(){setTimeout(()=>{this.$refs["search-select"]?.$el?.querySelector("#search-select-input")?.focus()},300)},cancelSearchRequests(){this.abortController&&this.abortController.abort()},onSearchInput(e){this.searchQuery=e,this.debouncedUpdateSearch()},onSelectResultSelected(e){if(e!==null)if(e.resourceUrl){this.cancelSearchRequests(),this.$emit("submit",e.resourceUrl);const t={link:e.resourceUrl};e.title&&(t.title=e.title),this.$emit("pick",t)}else e.isMore&&this.searchMoreOf(e.providerId).then(()=>{this.selectedResult=null})},searchMoreOf(e){return this.searchingMoreOf=e,this.cancelSearchRequests(),this.searchProviders(e)},updateSearch(){if(this.cancelSearchRequests(),this.resetResults(),this.searchQuery===""){this.searching=!1;return}return this.searchProviders()},searchProviders(e=null){this.abortController=new AbortController,this.searching=!0;const t=e===null?[...this.searchProviderIds].map(n=>this.searchOneProvider(n)):[this.searchOneProvider(e,this.resultsBySearchProvider[e]?.cursor??null)];return Promise.allSettled(t).then(n=>{n.find(r=>r.status==="rejected"&&(r.reason.name==="CanceledError"||r.reason.code==="ERR_CANCELED"))||(this.searching=!1,this.searchingMoreOf=null)})},searchOneProvider(e,t=null){const n=t===null?Fe("search/providers/{providerId}/search?term={term}&limit={limit}",{providerId:e,term:this.searchQuery,limit:pr}):Fe("search/providers/{providerId}/search?term={term}&limit={limit}&cursor={cursor}",{providerId:e,term:this.searchQuery,limit:pr,cursor:t});return Be.get(n,{signal:this.abortController.signal}).then(r=>{const i=r.data.ocs.data;this.resultsBySearchProvider[e].name=i.name,this.resultsBySearchProvider[e].cursor=i.cursor,this.resultsBySearchProvider[e].isPaginated=i.isPaginated,this.resultsBySearchProvider[e].entries.push(...i.entries)})}}},xs={key:0,class:"custom-option"},bs={class:"option-text"},ws={key:2,class:"custom-option group-name"},Ss=["src"],Cs={class:"option-text"},Ps={key:3,class:"custom-option"},Is={key:0,class:"option-simple-icon icon-loading-small"},Es={class:"option-text"},_s=["alt","src"];function Ts(e,t,n,r,i,o){const l=W("LinkVariantIcon"),s=W("NcSearchResult"),a=W("DotsHorizontalIcon"),c=W("NcSelect"),f=W("NcEmptyContent");return A(),V("div",{class:it(["smart-picker-search",{"with-empty-content":n.showEmptyContent}])},[ie(c,{ref:"search-select",modelValue:i.selectedResult,"onUpdate:modelValue":[t[0]||(t[0]=u=>i.selectedResult=u),o.onSelectResultSelected],class:"smart-picker-search--select",inputId:"search-select-input",label:"name",placeholder:o.mySearchPlaceholder,options:o.options,appendToBody:!1,closeOnSelect:!1,clearSearchOnSelect:!1,clearSearchOnBlur:()=>!1,resetFocusOnOptionsChange:!1,filterable:!1,autoscroll:!0,resetOnOptionsChange:!1,loading:i.searching,onSearch:o.onSearchInput},{option:ve(u=>[u.isRawLink?(A(),V("div",xs,[ie(l,{class:"option-simple-icon",size:20}),te("span",bs,we(o.t("Raw link {options}",{options:u.resourceUrl})),1)])):u.resourceUrl?(A(),ee(s,{key:1,class:"search-result",entry:u,query:i.searchQuery},null,8,["entry","query"])):u.isCustomGroupTitle?(A(),V("span",ws,[n.provider.icon_url?(A(),V("img",{key:0,class:"provider-icon group-name-icon",src:n.provider.icon_url},null,8,Ss)):ue("",!0),te("span",Cs,[te("strong",null,we(u.name),1)])])):u.isMore?(A(),V("span",Ps,[u.isLoading?(A(),V("span",Is)):(A(),ee(a,{key:1,class:"option-simple-icon",size:20})),te("span",Es,we(o.t('Load more "{options}"',{options:u.name})),1)])):ue("",!0)]),"no-options":ve(()=>[ci(we(i.noOptionsText),1)]),_:1},8,["modelValue","placeholder","options","loading","onSearch","onUpdate:modelValue"]),n.showEmptyContent?(A(),ee(f,{key:0,class:"smart-picker-search--empty-content"},{icon:ve(()=>[n.provider.icon_url?(A(),V("img",{key:0,class:"provider-icon",alt:i.providerIconAlt,src:n.provider.icon_url},null,8,_s)):(A(),ee(l,{key:1}))]),_:1})):ue("",!0)],2)}const Ei=Se(ks,[["render",Ts],["__scopeId","data-v-d965b4c7"]]),ut={providerList:1,standardLinkInput:2,searchInput:3,customElement:4},Ls={name:"NcReferencePicker",components:{NcCustomPickerElement:Nl,NcProviderList:Gl,NcRawLinkInput:us,NcSearch:Ei},props:{initialProvider:{type:Object,default:()=>null},width:{type:Number,default:null},focusOnCreate:{type:Boolean,default:!0}},emits:["cancel","cancelRawLink","cancelSearch","providerSelected","submit","pick"],data(){return{MODES:ut,selectedProvider:this.initialProvider}},computed:{mode(){return this.selectedProvider===null?ut.providerList:ot(this.selectedProvider.id)?ut.customElement:this.selectedProvider.search_providers_ids?ut.searchInput:ut.standardLinkInput},pickerWrapperStyle(){return{width:this.width?this.width+"px":void 0}}},mounted(){this.focusOnCreate&&(this.initialProvider?setTimeout(()=>{this.$refs["url-input"]?.focus()},300):this.$nextTick(()=>{this.$refs["provider-list"]?.focus()}))},methods:{onEscapePressed(){this.selectedProvider!==null?this.deselectProvider():this.cancelProviderSelection()},onProviderSelected(e){this.selectedProvider=e,this.$emit("providerSelected",e),this.$nextTick(()=>{this.$refs["url-input"]?.focus()})},cancelCustomElement(){this.deselectProvider()},cancelSearch(){this.$emit("cancelSearch",this.selectedProvider?.title),this.deselectProvider()},cancelRawLinkInput(){this.$emit("cancelRawLink",this.selectedProvider?.title),this.deselectProvider()},cancelProviderSelection(){this.$emit("cancel")},submitLink(e){this.selectedProvider!==null&&ur(this.selectedProvider.id),this.$emit("submit",e),this.deselectProvider()},pickLink(e){this.selectedProvider!==null&&ur(this.selectedProvider.id),this.$emit("pick",e),this.deselectProvider()},deselectProvider(){this.selectedProvider=null,this.$emit("providerSelected",null),setTimeout(()=>{this.$refs["provider-list"]?.focus()},300)}}},Os={key:3,class:"custom-element-wrapper"};function As(e,t,n,r,i,o){const l=W("NcProviderList"),s=W("NcRawLinkInput"),a=W("NcSearch"),c=W("NcCustomPickerElement");return A(),V("div",{class:"reference-picker",style:un(o.pickerWrapperStyle),tabindex:"-1",onKeydown:t[0]||(t[0]=zt(Ot((...f)=>o.onEscapePressed&&o.onEscapePressed(...f),["stop","prevent"]),["esc"]))},[o.mode===i.MODES.providerList?(A(),ee(l,{key:0,ref:"provider-list",onSelectProvider:o.onProviderSelected,onSubmit:o.submitLink,onPick:o.pickLink,onCancel:o.cancelProviderSelection},null,8,["onSelectProvider","onSubmit","onPick","onCancel"])):o.mode===i.MODES.standardLinkInput?(A(),ee(s,{key:1,ref:"url-input",provider:i.selectedProvider,onSubmit:o.submitLink,onPick:o.pickLink,onCancel:o.cancelRawLinkInput},null,8,["provider","onSubmit","onPick","onCancel"])):o.mode===i.MODES.searchInput?(A(),ee(a,{key:2,ref:"url-input",provider:i.selectedProvider,onSubmit:o.submitLink,onPick:o.pickLink,onCancel:o.cancelSearch},null,8,["provider","onSubmit","onPick","onCancel"])):o.mode===i.MODES.customElement?(A(),V("div",Os,[ie(c,{provider:i.selectedProvider,class:"custom-element",onSubmit:o.submitLink,onPick:o.pickLink,onCancel:o.cancelCustomElement},null,8,["provider","onSubmit","onPick","onCancel"])])):ue("",!0)],36)}const _i=Se(Ls,[["render",As],["__scopeId","data-v-40667c6c"]]);He(ll,ol);const Rs={name:"NcReferencePickerModal",components:{NcReferencePicker:_i,NcModal:cl,NcButton:Cn,ArrowLeftIcon:Ml,CloseIcon:al},props:{initialProvider:{type:Object,default:()=>null},focusOnCreate:{type:Boolean,default:!0},isInsideViewer:{type:Boolean,default:!1}},emits:["cancel","submit","pick"],data(){return{show:!0,selectedProvider:this.initialProvider,backButtonTitle:oe("Back to provider selection"),closeButtonTitle:oe("Close"),closeButtonLabel:oe("Close Smart Picker")}},computed:{isProviderSelected(){return this.selectedProvider!==null},showBackButton(){return this.initialProvider===null&&this.isProviderSelected},modalSize(){return this.isProviderSelected&&ot(this.selectedProvider.id)?Il(this.selectedProvider.id)??"large":"normal"},showModalName(){return!this.isProviderSelected||!ot(this.selectedProvider.id)},modalName(){return this.isProviderSelected?this.selectedProvider.title:oe("Smart Picker")}},mounted(){if(this.isInsideViewer){const e=this.$refs.modal_content;Zo("viewer:trapElements:changed",e)}},methods:{onCancel(){this.show=!1,this.$emit("cancel")},onSubmit(e){this.show=!1,this.$emit("submit",e)},onPick(e){this.show=!1,this.$emit("pick",e)},onProviderSelect(e){this.selectedProvider=e,e===null&&this.initialProvider!==null&&this.onCancel()},onBackClicked(){this.$refs.referencePicker.deselectProvider()}}},Ms={ref:"modal_content",class:"reference-picker-modal--content"},Ds={key:1};function zs(e,t,n,r,i,o){const l=W("ArrowLeftIcon"),s=W("NcButton"),a=W("CloseIcon"),c=W("NcReferencePicker"),f=W("NcModal");return i.show?(A(),ee(f,{key:0,size:o.modalSize,class:"reference-picker-modal",onClose:o.onCancel},{default:ve(()=>[te("div",Ms,[o.showBackButton?(A(),ee(s,{key:0,"aria-label":i.backButtonTitle,title:i.backButtonTitle,class:"back-button",onClick:o.onBackClicked},{icon:ve(()=>[ie(l)]),_:1},8,["aria-label","title","onClick"])):ue("",!0),ie(s,{class:"close-button","aria-label":i.closeButtonLabel,title:i.closeButtonTitle,variant:"tertiary",onClick:o.onCancel},{icon:ve(()=>[ie(a)]),_:1},8,["aria-label","title","onClick"]),o.showModalName?(A(),V("h2",Ds,we(o.modalName),1)):ue("",!0),ie(c,{ref:"referencePicker",initialProvider:n.initialProvider,focusOnCreate:n.focusOnCreate,onProviderSelected:o.onProviderSelect,onSubmit:o.onSubmit,onPick:o.onPick,onCancel:o.onCancel},null,8,["initialProvider","focusOnCreate","onProviderSelected","onSubmit","onPick","onCancel"])],512)]),_:1},8,["size","onClose"])):ue("",!0)}const An=Se(Rs,[["render",zs],["__scopeId","data-v-58d45f81"]]);async function Fs(e,t){const n="referencePickerModal",r=document.createElement("div");r.id=n,document.body.append(r);const{promise:i,reject:o,resolve:l}=Promise.withResolvers(),s=e&&_n(e)||null,a=si(An,{initialProvider:s,isInsideViewer:t,onCancel(){a.unmount(),o(new Error("User cancellation"))},onSubmit(c){a.unmount(),l(c)}});return a.mount(r),i}async function Ns(e,t){const n="referencePickerModal",r=document.createElement("div");r.id=n,document.body.append(r);const{promise:i,reject:o,resolve:l}=Promise.withResolvers(),s=e&&_n(e)||null,a=si(An,{initialProvider:s,isInsideViewer:t,onCancel(){a.unmount(),o(new Error("User cancellation"))},onPick(c){a.unmount(),l(c)}});return a.mount(r),i}const js={};function Bt(e,t){const n=js,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,i=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Ti(e,r,i)}function Ti(e,t,n){if(Bs(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return dr(e.children,t,n)}return Array.isArray(e)?dr(e,t,n):""}function dr(e,t,n){const r=[];let i=-1;for(;++i<e.length;)r[i]=Ti(e[i],t,n);return r.join("")}function Bs(e){return!!(e&&typeof e=="object")}const Li=-1,Vt=0,gt=1,Ft=2,Rn=3,Mn=4,Dn=5,zn=6,Oi=7,Ai=8,hr=typeof self=="object"?self:globalThis,Vs=(e,t)=>{const n=(i,o)=>(e.set(o,i),i),r=i=>{if(e.has(i))return e.get(i);const[o,l]=t[i];switch(o){case Vt:case Li:return n(l,i);case gt:{const s=n([],i);for(const a of l)s.push(r(a));return s}case Ft:{const s=n({},i);for(const[a,c]of l)s[r(a)]=r(c);return s}case Rn:return n(new Date(l),i);case Mn:{const{source:s,flags:a}=l;return n(new RegExp(s,a),i)}case Dn:{const s=n(new Map,i);for(const[a,c]of l)s.set(r(a),r(c));return s}case zn:{const s=n(new Set,i);for(const a of l)s.add(r(a));return s}case Oi:{const{name:s,message:a}=l;return n(new hr[s](a),i)}case Ai:return n(BigInt(l),i);case"BigInt":return n(Object(BigInt(l)),i);case"ArrayBuffer":return n(new Uint8Array(l).buffer,l);case"DataView":{const{buffer:s}=new Uint8Array(l);return n(new DataView(s),l)}}return n(new hr[o](l),i)};return r},mr=e=>Vs(new Map,e)(0),Ge="",{toString:Us}={},{keys:$s}=Object,ft=e=>{const t=typeof e;if(t!=="object"||!e)return[Vt,t];const n=Us.call(e).slice(8,-1);switch(n){case"Array":return[gt,Ge];case"Object":return[Ft,Ge];case"Date":return[Rn,Ge];case"RegExp":return[Mn,Ge];case"Map":return[Dn,Ge];case"Set":return[zn,Ge];case"DataView":return[gt,n]}return n.includes("Array")?[gt,n]:n.includes("Error")?[Oi,n]:[Ft,n]},Et=([e,t])=>e===Vt&&(t==="function"||t==="symbol"),Hs=(e,t,n,r)=>{const i=(l,s)=>{const a=r.push(l)-1;return n.set(s,a),a},o=l=>{if(n.has(l))return n.get(l);let[s,a]=ft(l);switch(s){case Vt:{let f=l;switch(a){case"bigint":s=Ai,f=l.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);f=null;break;case"undefined":return i([Li],l)}return i([s,f],l)}case gt:{if(a){let d=l;return a==="DataView"?d=new Uint8Array(l.buffer):a==="ArrayBuffer"&&(d=new Uint8Array(l)),i([a,[...d]],l)}const f=[],u=i([s,f],l);for(const d of l)f.push(o(d));return u}case Ft:{if(a)switch(a){case"BigInt":return i([a,l.toString()],l);case"Boolean":case"Number":case"String":return i([a,l.valueOf()],l)}if(t&&"toJSON"in l)return o(l.toJSON());const f=[],u=i([s,f],l);for(const d of $s(l))(e||!Et(ft(l[d])))&&f.push([o(d),o(l[d])]);return u}case Rn:return i([s,l.toISOString()],l);case Mn:{const{source:f,flags:u}=l;return i([s,{source:f,flags:u}],l)}case Dn:{const f=[],u=i([s,f],l);for(const[d,p]of l)(e||!(Et(ft(d))||Et(ft(p))))&&f.push([o(d),o(p)]);return u}case zn:{const f=[],u=i([s,f],l);for(const d of l)(e||!Et(ft(d)))&&f.push(o(d));return u}}const{message:c}=l;return i([s,{name:a,message:c}],l)};return o},gr=(e,{json:t,lossy:n}={})=>{const r=[];return Hs(!(t||n),!!t,new Map,r)(e),r},Ve=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?mr(gr(e,t)):structuredClone(e):(e,t)=>mr(gr(e,t)),Ri=(function(e){if(e==null)return Qs;if(typeof e=="string")return Ws(e);if(typeof e=="object")return qs(e);if(typeof e=="function")return Fn(e);throw new Error("Expected function, string, or array as `test`")});function qs(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Ri(e[n]);return Fn(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function Ws(e){return Fn(t);function t(n){return n.tagName===e}}function Fn(e){return t;function t(n,r,i){return!!(Ys(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function Qs(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function Ys(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Ks=/^[a-zA-Z][a-zA-Z\d+\-.]*?:/,Zs=/^[a-zA-Z]:\\/;function Gs(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return Zs.test(e)?!1:Ks.test(e)}function Xs(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Js(e){return e.join(" ").trim()}function xt(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),qe(e,o,s,i);function s(a,c){const f=c[c.length-1],u=f?f.children.indexOf(a):void 0;return l(a,u,f)}}const ea=["http","https"],ta=["nofollow"],na={};function ra(e){const t=e||na,n=t.protocols||ea,r=Ri(t.test);return function(i){xt(i,"element",function(o,l,s){if(o.tagName==="a"&&typeof o.properties.href=="string"&&r(o,l,s)){const a=o.properties.href;if(Gs(a)?n.includes(a.slice(0,a.indexOf(":"))):a.startsWith("//")){const c=pt(t.content,o),f=c&&!Array.isArray(c)?[c]:c,u=pt(t.rel,o)||ta,d=typeof u=="string"?Xs(u):u,p=pt(t.target,o),g=pt(t.properties,o);if(g&&Object.assign(o.properties,Ve(g)),d.length>0&&(o.properties.rel=[...d]),p&&(o.properties.target=p),f){const k=pt(t.contentProperties,o)||{};o.children.push({type:"element",tagName:"span",properties:Ve(k),children:Ve(f)})}}}})}}function pt(e,t){return typeof e=="function"?e(t):e}function ia(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const oa=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,la=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,sa={};function vr(e,t){return(sa.jsx?la:oa).test(e)}const aa=/[ \t\n\f\r]/g;function ca(e){return typeof e=="object"?e.type==="text"?yr(e.value):!1:yr(e)}function yr(e){return e.replace(aa,"")===""}class vt{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}}vt.prototype.normal={},vt.prototype.property={},vt.prototype.space=void 0;function Mi(e,t){const n={},r={};for(const i of e)Object.assign(n,i.property),Object.assign(r,i.normal);return new vt(n,r,t)}function fn(e){return e.toLowerCase()}class ce{constructor(t,n){this.attribute=n,this.property=t}}ce.prototype.attribute="",ce.prototype.booleanish=!1,ce.prototype.boolean=!1,ce.prototype.commaOrSpaceSeparated=!1,ce.prototype.commaSeparated=!1,ce.prototype.defined=!1,ce.prototype.mustUseProperty=!1,ce.prototype.number=!1,ce.prototype.overloadedBoolean=!1,ce.prototype.property="",ce.prototype.spaceSeparated=!1,ce.prototype.space=void 0;let ua=0;const N=We(),X=We(),pn=We(),S=We(),Q=We(),nt=We(),me=We();function We(){return 2**++ua}const dn=Object.freeze(Object.defineProperty({__proto__:null,boolean:N,booleanish:X,commaOrSpaceSeparated:me,commaSeparated:nt,number:S,overloadedBoolean:pn,spaceSeparated:Q},Symbol.toStringTag,{value:"Module"})),Qt=Object.keys(dn);class Nn extends ce{constructor(t,n,r,i){let o=-1;if(super(t,n),kr(this,"space",i),typeof r=="number")for(;++o<Qt.length;){const l=Qt[o];kr(this,Qt[o],(r&dn[l])===dn[l])}}}Nn.prototype.defined=!0;function kr(e,t,n){n&&(e[t]=n)}function lt(e){const t={},n={};for(const[r,i]of Object.entries(e.properties)){const o=new Nn(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[fn(r)]=r,n[fn(o.attribute)]=r}return new vt(t,n,e.space)}const Di=lt({properties:{ariaActiveDescendant:null,ariaAtomic:X,ariaAutoComplete:null,ariaBusy:X,ariaChecked:X,ariaColCount:S,ariaColIndex:S,ariaColSpan:S,ariaControls:Q,ariaCurrent:null,ariaDescribedBy:Q,ariaDetails:null,ariaDisabled:X,ariaDropEffect:Q,ariaErrorMessage:null,ariaExpanded:X,ariaFlowTo:Q,ariaGrabbed:X,ariaHasPopup:null,ariaHidden:X,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Q,ariaLevel:S,ariaLive:null,ariaModal:X,ariaMultiLine:X,ariaMultiSelectable:X,ariaOrientation:null,ariaOwns:Q,ariaPlaceholder:null,ariaPosInSet:S,ariaPressed:X,ariaReadOnly:X,ariaRelevant:null,ariaRequired:X,ariaRoleDescription:Q,ariaRowCount:S,ariaRowIndex:S,ariaRowSpan:S,ariaSelected:X,ariaSetSize:S,ariaSort:null,ariaValueMax:S,ariaValueMin:S,ariaValueNow:S,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function zi(e,t){return t in e?e[t]:t}function Fi(e,t){return zi(e,t.toLowerCase())}const fa=lt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:nt,acceptCharset:Q,accessKey:Q,action:null,allow:null,allowFullScreen:N,allowPaymentRequest:N,allowUserMedia:N,alt:null,as:null,async:N,autoCapitalize:null,autoComplete:Q,autoFocus:N,autoPlay:N,blocking:Q,capture:null,charSet:null,checked:N,cite:null,className:Q,cols:S,colSpan:null,content:null,contentEditable:X,controls:N,controlsList:Q,coords:S|nt,crossOrigin:null,data:null,dateTime:null,decoding:null,default:N,defer:N,dir:null,dirName:null,disabled:N,download:pn,draggable:X,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:N,formTarget:null,headers:Q,height:S,hidden:pn,high:S,href:null,hrefLang:null,htmlFor:Q,httpEquiv:Q,id:null,imageSizes:null,imageSrcSet:null,inert:N,inputMode:null,integrity:null,is:null,isMap:N,itemId:null,itemProp:Q,itemRef:Q,itemScope:N,itemType:Q,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:N,low:S,manifest:null,max:null,maxLength:S,media:null,method:null,min:null,minLength:S,multiple:N,muted:N,name:null,nonce:null,noModule:N,noValidate:N,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:N,optimum:S,pattern:null,ping:Q,placeholder:null,playsInline:N,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:N,referrerPolicy:null,rel:Q,required:N,reversed:N,rows:S,rowSpan:S,sandbox:Q,scope:null,scoped:N,seamless:N,selected:N,shadowRootClonable:N,shadowRootDelegatesFocus:N,shadowRootMode:null,shape:null,size:S,sizes:null,slot:null,span:S,spellCheck:X,src:null,srcDoc:null,srcLang:null,srcSet:null,start:S,step:null,style:null,tabIndex:S,target:null,title:null,translate:null,type:null,typeMustMatch:N,useMap:null,value:X,width:S,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Q,axis:null,background:null,bgColor:null,border:S,borderColor:null,bottomMargin:S,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:N,declare:N,event:null,face:null,frame:null,frameBorder:null,hSpace:S,leftMargin:S,link:null,longDesc:null,lowSrc:null,marginHeight:S,marginWidth:S,noResize:N,noHref:N,noShade:N,noWrap:N,object:null,profile:null,prompt:null,rev:null,rightMargin:S,rules:null,scheme:null,scrolling:X,standby:null,summary:null,text:null,topMargin:S,valueType:null,version:null,vAlign:null,vLink:null,vSpace:S,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:N,disableRemotePlayback:N,prefix:null,property:null,results:S,security:null,unselectable:null},space:"html",transform:Fi}),pa=lt({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:me,accentHeight:S,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:S,amplitude:S,arabicForm:null,ascent:S,attributeName:null,attributeType:null,azimuth:S,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:S,by:null,calcMode:null,capHeight:S,className:Q,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:S,diffuseConstant:S,direction:null,display:null,dur:null,divisor:S,dominantBaseline:null,download:N,dx:null,dy:null,edgeMode:null,editable:null,elevation:S,enableBackground:null,end:null,event:null,exponent:S,externalResourcesRequired:null,fill:null,fillOpacity:S,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:nt,g2:nt,glyphName:nt,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:S,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:S,horizOriginX:S,horizOriginY:S,id:null,ideographic:S,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:S,k:S,k1:S,k2:S,k3:S,k4:S,kernelMatrix:me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:S,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:S,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:S,overlineThickness:S,paintOrder:null,panose1:null,path:null,pathLength:S,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Q,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:S,pointsAtY:S,pointsAtZ:S,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:me,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:me,rev:me,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:me,requiredFeatures:me,requiredFonts:me,requiredFormats:me,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:S,specularExponent:S,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:S,strikethroughThickness:S,string:null,stroke:null,strokeDashArray:me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:S,strokeOpacity:S,strokeWidth:null,style:null,surfaceScale:S,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:me,tabIndex:S,tableValues:null,target:null,targetX:S,targetY:S,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:me,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:S,underlineThickness:S,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:S,values:null,vAlphabetic:S,vMathematical:S,vectorEffect:null,vHanging:S,vIdeographic:S,version:null,vertAdvY:S,vertOriginX:S,vertOriginY:S,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:S,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:zi}),Ni=lt({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),ji=lt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:Fi}),Bi=lt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),da={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ha=/[A-Z]/g,xr=/-[a-z]/g,ma=/^data[-\w.:]+$/i;function ga(e,t){const n=fn(t);let r=t,i=ce;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&ma.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(xr,ya);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!xr.test(o)){let l=o.replace(ha,va);l.charAt(0)!=="-"&&(l="-"+l),t="data"+l}}i=Nn}return new i(r,t)}function va(e){return"-"+e.toLowerCase()}function ya(e){return e.charAt(1).toUpperCase()}const ka=Mi([Di,fa,Ni,ji,Bi],"html"),jn=Mi([Di,pa,Ni,ji,Bi],"svg");var Xe={},Yt,br;function xa(){if(br)return Yt;br=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,l=/^[;\s]*/,s=/^\s+|\s+$/g,a=`
`,c="/",f="*",u="",d="comment",p="declaration";Yt=function(k,w){if(typeof k!="string")throw new TypeError("First argument must be a string");if(!k)return[];w=w||{};var v=1,C=1;function P(O){var E=O.match(t);E&&(v+=E.length);var R=O.lastIndexOf(a);C=~R?O.length-R:C+O.length}function T(){var O={line:v,column:C};return function(E){return E.position=new z(O),$(),E}}function z(O){this.start=O,this.end={line:v,column:C},this.source=w.source}z.prototype.content=k;function b(O){var E=new Error(w.source+":"+v+":"+C+": "+O);if(E.reason=O,E.filename=w.source,E.line=v,E.column=C,E.source=k,!w.silent)throw E}function F(O){var E=O.exec(k);if(E){var R=E[0];return P(R),k=k.slice(R.length),E}}function $(){F(n)}function B(O){var E;for(O=O||[];E=y();)E!==!1&&O.push(E);return O}function y(){var O=T();if(!(c!=k.charAt(0)||f!=k.charAt(1))){for(var E=2;u!=k.charAt(E)&&(f!=k.charAt(E)||c!=k.charAt(E+1));)++E;if(E+=2,u===k.charAt(E-1))return b("End of comment missing");var R=k.slice(2,E-2);return C+=2,P(R),k=k.slice(E),C+=2,O({type:d,comment:R})}}function _(){var O=T(),E=F(r);if(E){if(y(),!F(i))return b("property missing ':'");var R=F(o),G=O({type:p,property:g(E[0].replace(e,u)),value:R?g(R[0].replace(e,u)):u});return F(l),G}}function L(){var O=[];B(O);for(var E;E=_();)E!==!1&&(O.push(E),B(O));return O}return $(),L()};function g(k){return k?k.replace(s,u):u}return Yt}var wr;function ba(){if(wr)return Xe;wr=1;var e=Xe&&Xe.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Xe,"__esModule",{value:!0}),Xe.default=n;const t=e(xa());function n(r,i){let o=null;if(!r||typeof r!="string")return o;const l=(0,t.default)(r),s=typeof i=="function";return l.forEach(a=>{if(a.type!=="declaration")return;const{property:c,value:f}=a;s?i(c,f,a):f&&(o=o||{},o[c]=f)}),o}return Xe}var dt={},Sr;function wa(){if(Sr)return dt;Sr=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,i=/^-(ms)-/,o=function(c){return!c||n.test(c)||e.test(c)},l=function(c,f){return f.toUpperCase()},s=function(c,f){return"".concat(f,"-")},a=function(c,f){return f===void 0&&(f={}),o(c)?c:(c=c.toLowerCase(),f.reactCompat?c=c.replace(i,s):c=c.replace(r,s),c.replace(t,l))};return dt.camelCase=a,dt}var ht,Cr;function Sa(){if(Cr)return ht;Cr=1;var e=ht&&ht.__importDefault||function(i){return i&&i.__esModule?i:{default:i}},t=e(ba()),n=wa();function r(i,o){var l={};return!i||typeof i!="string"||(0,t.default)(i,function(s,a){s&&a&&(l[(0,n.camelCase)(s,o)]=a)}),l}return r.default=r,ht=r,ht}var Ca=Sa();const Pa=di(Ca),Vi=Ui("end"),Bn=Ui("start");function Ui(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function Ia(e){const t=Bn(e),n=Vi(e);if(t&&n)return{start:t,end:n}}function yt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Pr(e.position):"start"in e||"end"in e?Pr(e):"line"in e||"column"in e?hn(e):""}function hn(e){return Ir(e&&e.line)+":"+Ir(e&&e.column)}function Pr(e){return hn(e&&e.start)+"-"+hn(e&&e.end)}function Ir(e){return e&&typeof e=="number"?e:1}class re extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",o={},l=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?i=t:!o.cause&&t&&(l=!0,i=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const a=r.indexOf(":");a===-1?o.ruleId=r:(o.source=r.slice(0,a),o.ruleId=r.slice(a+1))}if(!o.place&&o.ancestors&&o.ancestors){const a=o.ancestors[o.ancestors.length-1];a&&(o.place=a.position)}const s=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=yt(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=l&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}re.prototype.file="",re.prototype.name="",re.prototype.reason="",re.prototype.message="",re.prototype.stack="",re.prototype.column=void 0,re.prototype.line=void 0,re.prototype.ancestors=void 0,re.prototype.cause=void 0,re.prototype.fatal=void 0,re.prototype.place=void 0,re.prototype.ruleId=void 0,re.prototype.source=void 0;const Vn={}.hasOwnProperty,Ea=new Map,_a=/[A-Z]/g,Ta=new Set(["table","tbody","thead","tfoot","tr"]),La=new Set(["td","th"]),$i="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Oa(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let r;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");r=ja(n,t.jsxDEV)}else{if(typeof t.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof t.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");r=Na(n,t.jsx,t.jsxs)}const i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space==="svg"?jn:ka,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=Hi(i,e,void 0);return o&&typeof o!="string"?o:i.create(e,i.Fragment,{children:o||void 0},void 0)}function Hi(e,t,n){if(t.type==="element")return Aa(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Ra(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return Da(e,t,n);if(t.type==="mdxjsEsm")return Ma(e,t);if(t.type==="root")return za(e,t,n);if(t.type==="text")return Fa(e,t)}function Aa(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=jn,e.schema=i),e.ancestors.push(t);const o=Wi(e,t.tagName,!1),l=Ba(e,t);let s=$n(e,t);return Ta.has(t.tagName)&&(s=s.filter(function(a){return typeof a=="string"?!ca(a):!0})),qi(e,l,o,t),Un(l,s),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function Ra(e,t){if(t.data&&t.data.estree&&e.evaluater){const n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}bt(e,t.position)}function Ma(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);bt(e,t.position)}function Da(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=jn,e.schema=i),e.ancestors.push(t);const o=t.name===null?e.Fragment:Wi(e,t.name,!0),l=Va(e,t),s=$n(e,t);return qi(e,l,o,t),Un(l,s),e.ancestors.pop(),e.schema=r,e.create(t,o,l,n)}function za(e,t,n){const r={};return Un(r,$n(e,t)),e.create(t,e.Fragment,r,n)}function Fa(e,t){return t.value}function qi(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Un(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function Na(e,t,n){return r;function r(i,o,l,s){const a=Array.isArray(l.children)?n:t;return s?a(o,l,s):a(o,l)}}function ja(e,t){return n;function n(r,i,o,l){const s=Array.isArray(o.children),a=Bn(r);return t(i,o,l,s,{columnNumber:a?a.column-1:void 0,fileName:e,lineNumber:a?a.line:void 0},void 0)}}function Ba(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&Vn.call(t.properties,i)){const o=Ua(e,i,t.properties[i]);if(o){const[l,s]=o;e.tableCellAlignToStyle&&l==="align"&&typeof s=="string"&&La.has(t.tagName)?r=s:n[l]=s}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function Va(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const i=r.data.estree.body[0];i.type;const o=i.expression;o.type;const l=o.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else bt(e,t.position);else{const i=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const l=r.value.data.estree.body[0];l.type,o=e.evaluater.evaluateExpression(l.expression)}else bt(e,t.position);else o=r.value===null?!0:r.value;n[i]=o}return n}function $n(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:Ea;for(;++r<t.children.length;){const o=t.children[r];let l;if(e.passKeys){const a=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(a){const c=i.get(a)||0;l=a+"-"+c,i.set(a,c+1)}}const s=Hi(e,o,l);s!==void 0&&n.push(s)}return n}function Ua(e,t,n){const r=ga(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?ia(n):Js(n)),r.property==="style"){let i=typeof n=="object"?n:$a(e,String(n));return e.stylePropertyNameCase==="css"&&(i=Ha(i)),["style",i]}return[e.elementAttributeNameCase==="react"&&r.space?da[r.property]||r.property:r.attribute,n]}}function $a(e,t){try{return Pa(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,i=new re("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw i.file=e.filePath||void 0,i.url=$i+"#cannot-parse-style-attribute",i}}function Wi(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const i=t.split(".");let o=-1,l;for(;++o<i.length;){const s=vr(i[o])?{type:"Identifier",name:i[o]}:{type:"Literal",value:i[o]};l=l?{type:"MemberExpression",object:l,property:s,computed:!!(o&&s.type==="Literal"),optional:!1}:s}r=l}else r=vr(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const i=r.value;return Vn.call(e.components,i)?e.components[i]:i}if(e.evaluater)return e.evaluater.evaluateExpression(r);bt(e)}function bt(e,t){const n=new re("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=$i+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Ha(e){const t={};let n;for(n in e)Vn.call(e,n)&&(t[qa(n)]=e[n]);return t}function qa(e){let t=e.replace(_a,Wa);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Wa(e){return"-"+e.toLowerCase()}function Qa(e){const t=this;t.compiler=n;function n(r,i){return Oa(r,{filePath:i.path,...e})}}function Ya(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Ka(e,t,n){const r=pl({}.ignore||[]),i=Za(t);let o=-1;for(;++o<i.length;)qe(e,"text",l);function l(a,c){let f=-1,u;for(;++f<c.length;){const d=c[f],p=u?u.children:void 0;if(r(d,p?p.indexOf(d):void 0,u))return;u=d}if(u)return s(a,c)}function s(a,c){const f=c[c.length-1],u=i[o][0],d=i[o][1];let p=0;const g=f.children.indexOf(a);let k=!1,w=[];u.lastIndex=0;let v=u.exec(a.value);for(;v;){const C=v.index,P={index:v.index,input:v.input,stack:[...c,a]};let T=d(...v,P);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?u.lastIndex=C+1:(p!==C&&w.push({type:"text",value:a.value.slice(p,C)}),Array.isArray(T)?w.push(...T):T&&w.push(T),p=C+v[0].length,k=!0),!u.global)break;v=u.exec(a.value)}return k?(p<a.value.length&&w.push({type:"text",value:a.value.slice(p)}),f.children.splice(g,1,...w)):w=[a],g+w.length}}function Za(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([Ga(i[0]),Xa(i[1])])}return t}function Ga(e){return typeof e=="string"?new RegExp(Ya(e),"g"):e}function Xa(e){return typeof e=="function"?e:function(){return e}}function Ja(e){Ka(e,[/\r?\n|\r/g,ec])}function ec(){return{type:"break"}}function tc(){return function(e){Ja(e)}}const Er=document.createElement("i");function Hn(e){const t="&"+e+";";Er.innerHTML=t;const n=Er.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Le(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}function be(e,t){return e.length>0?(Le(e,e.length,0,t),e):t}const _r={}.hasOwnProperty;function nc(e){const t={};let n=-1;for(;++n<e.length;)rc(t,e[n]);return t}function rc(e,t){let n;for(n in t){const r=(_r.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){_r.call(r,o)||(r[o]=[]);const l=i[o];ic(r[o],Array.isArray(l)?l:l?[l]:[])}}}function ic(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Le(e,0,0,r)}function Qi(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function rt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Te=Ne(/[A-Za-z]/),ge=Ne(/[\dA-Za-z]/),oc=Ne(/[#-'*+\--9=?A-Z^-~]/);function mn(e){return e!==null&&(e<32||e===127)}const gn=Ne(/\d/),lc=Ne(/[\dA-Fa-f]/),sc=Ne(/[!-/:-@[-`{-~]/);function M(e){return e!==null&&e<-2}function fe(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}const ac=Ne(new RegExp("\\p{P}|\\p{S}","u")),cc=Ne(/\s/);function Ne(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function st(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const o=e.charCodeAt(n);let l="";if(o===37&&ge(e.charCodeAt(n+1))&&ge(e.charCodeAt(n+2)))i=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(l=String.fromCharCode(o));else if(o>55295&&o<57344){const s=e.charCodeAt(n+1);o<56320&&s>56319&&s<57344?(l=String.fromCharCode(o,s),i=1):l="�"}else l=String.fromCharCode(o);l&&(t.push(e.slice(r,n),encodeURIComponent(l)),r=n+i+1,l=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Y(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return U(a)?(e.enter(n),s(a)):t(a)}function s(a){return U(a)&&o++<i?(e.consume(a),s):(e.exit(n),t(a))}}const uc={tokenize:fc};function fc(e){const t=e.attempt(this.parser.constructs.contentInitial,r,i);let n;return t;function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),Y(e,t,"linePrefix")}function i(s){return e.enter("paragraph"),o(s)}function o(s){const a=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=a),n=a,l(s)}function l(s){if(s===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(s);return}return M(s)?(e.consume(s),e.exit("chunkText"),o):(e.consume(s),l)}}const pc={tokenize:dc},Tr={tokenize:hc};function dc(e){const t=this,n=[];let r=0,i,o,l;return s;function s(P){if(r<n.length){const T=n[r];return t.containerState=T[1],e.attempt(T[0].continuation,a,c)(P)}return c(P)}function a(P){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&C();const T=t.events.length;let z=T,b;for(;z--;)if(t.events[z][0]==="exit"&&t.events[z][1].type==="chunkFlow"){b=t.events[z][1].end;break}v(r);let F=T;for(;F<t.events.length;)t.events[F][1].end={...b},F++;return Le(t.events,z+1,0,t.events.slice(T)),t.events.length=F,c(P)}return s(P)}function c(P){if(r===n.length){if(!i)return d(P);if(i.currentConstruct&&i.currentConstruct.concrete)return g(P);t.interrupt=!!(i.currentConstruct&&!i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Tr,f,u)(P)}function f(P){return i&&C(),v(r),d(P)}function u(P){return t.parser.lazy[t.now().line]=r!==n.length,l=t.now().offset,g(P)}function d(P){return t.containerState={},e.attempt(Tr,p,g)(P)}function p(P){return r++,n.push([t.currentConstruct,t.containerState]),d(P)}function g(P){if(P===null){i&&C(),v(0),e.consume(P);return}return i=i||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:i,contentType:"flow",previous:o}),k(P)}function k(P){if(P===null){w(e.exit("chunkFlow"),!0),v(0),e.consume(P);return}return M(P)?(e.consume(P),w(e.exit("chunkFlow")),r=0,t.interrupt=void 0,s):(e.consume(P),k)}function w(P,T){const z=t.sliceStream(P);if(T&&z.push(null),P.previous=o,o&&(o.next=P),o=P,i.defineSkip(P.start),i.write(z),t.parser.lazy[P.start.line]){let b=i.events.length;for(;b--;)if(i.events[b][1].start.offset<l&&(!i.events[b][1].end||i.events[b][1].end.offset>l))return;const F=t.events.length;let $=F,B,y;for(;$--;)if(t.events[$][0]==="exit"&&t.events[$][1].type==="chunkFlow"){if(B){y=t.events[$][1].end;break}B=!0}for(v(r),b=F;b<t.events.length;)t.events[b][1].end={...y},b++;Le(t.events,$+1,0,t.events.slice(F)),t.events.length=b}}function v(P){let T=n.length;for(;T-- >P;){const z=n[T];t.containerState=z[1],z[0].exit.call(t,e)}n.length=P}function C(){i.write([null]),o=void 0,i=void 0,t.containerState._closeFlow=void 0}}function hc(e,t,n){return Y(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Lr(e){if(e===null||fe(e)||cc(e))return 1;if(ac(e))return 2}function qn(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const vn={name:"attention",resolveAll:mc,tokenize:gc};function mc(e,t){let n=-1,r,i,o,l,s,a,c,f;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;a=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const u={...e[r][1].end},d={...e[n][1].start};Or(u,-a),Or(d,a),l={type:a>1?"strongSequence":"emphasisSequence",start:u,end:{...e[r][1].end}},s={type:a>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:d},o={type:a>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},i={type:a>1?"strong":"emphasis",start:{...l.start},end:{...s.end}},e[r][1].end={...l.start},e[n][1].start={...s.end},c=[],e[r][1].end.offset-e[r][1].start.offset&&(c=be(c,[["enter",e[r][1],t],["exit",e[r][1],t]])),c=be(c,[["enter",i,t],["enter",l,t],["exit",l,t],["enter",o,t]]),c=be(c,qn(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),c=be(c,[["exit",o,t],["enter",s,t],["exit",s,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(f=2,c=be(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):f=0,Le(e,r-1,n-r+3,c),n=r+c.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function gc(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Lr(r);let o;return l;function l(a){return o=a,e.enter("attentionSequence"),s(a)}function s(a){if(a===o)return e.consume(a),s;const c=e.exit("attentionSequence"),f=Lr(a),u=!f||f===2&&i||n.includes(a),d=!i||i===2&&f||n.includes(r);return c._open=!!(o===42?u:u&&(i||!d)),c._close=!!(o===42?d:d&&(f||!u)),t(a)}}function Or(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const vc={name:"autolink",tokenize:yc};function yc(e,t,n){let r=0;return i;function i(p){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(p){return Te(p)?(e.consume(p),l):p===64?n(p):c(p)}function l(p){return p===43||p===45||p===46||ge(p)?(r=1,s(p)):c(p)}function s(p){return p===58?(e.consume(p),r=0,a):(p===43||p===45||p===46||ge(p))&&r++<32?(e.consume(p),s):(r=0,c(p))}function a(p){return p===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):p===null||p===32||p===60||mn(p)?n(p):(e.consume(p),a)}function c(p){return p===64?(e.consume(p),f):oc(p)?(e.consume(p),c):n(p)}function f(p){return ge(p)?u(p):n(p)}function u(p){return p===46?(e.consume(p),r=0,f):p===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(p),e.exit("autolinkMarker"),e.exit("autolink"),t):d(p)}function d(p){if((p===45||ge(p))&&r++<63){const g=p===45?d:u;return e.consume(p),g}return n(p)}}const Ut={partial:!0,tokenize:kc};function kc(e,t,n){return r;function r(o){return U(o)?Y(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||M(o)?t(o):n(o)}}const Yi={continuation:{tokenize:bc},exit:wc,name:"blockQuote",tokenize:xc};function xc(e,t,n){const r=this;return i;function i(l){if(l===62){const s=r.containerState;return s.open||(e.enter("blockQuote",{_container:!0}),s.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(l),e.exit("blockQuoteMarker"),o}return n(l)}function o(l){return U(l)?(e.enter("blockQuotePrefixWhitespace"),e.consume(l),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(l))}}function bc(e,t,n){const r=this;return i;function i(l){return U(l)?Y(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(l):o(l)}function o(l){return e.attempt(Yi,t,n)(l)}}function wc(e){e.exit("blockQuote")}const Ki={name:"characterEscape",tokenize:Sc};function Sc(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),i}function i(o){return sc(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const Zi={name:"characterReference",tokenize:Cc};function Cc(e,t,n){const r=this;let i=0,o,l;return s;function s(u){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),a}function a(u){return u===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(u),e.exit("characterReferenceMarkerNumeric"),c):(e.enter("characterReferenceValue"),o=31,l=ge,f(u))}function c(u){return u===88||u===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(u),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,l=lc,f):(e.enter("characterReferenceValue"),o=7,l=gn,f(u))}function f(u){if(u===59&&i){const d=e.exit("characterReferenceValue");return l===ge&&!Hn(r.sliceSerialize(d))?n(u):(e.enter("characterReferenceMarker"),e.consume(u),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return l(u)&&i++<o?(e.consume(u),f):n(u)}}const Ar={partial:!0,tokenize:Ic},Rr={concrete:!0,name:"codeFenced",tokenize:Pc};function Pc(e,t,n){const r=this,i={partial:!0,tokenize:z};let o=0,l=0,s;return a;function a(b){return c(b)}function c(b){const F=r.events[r.events.length-1];return o=F&&F[1].type==="linePrefix"?F[2].sliceSerialize(F[1],!0).length:0,s=b,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),f(b)}function f(b){return b===s?(l++,e.consume(b),f):l<3?n(b):(e.exit("codeFencedFenceSequence"),U(b)?Y(e,u,"whitespace")(b):u(b))}function u(b){return b===null||M(b)?(e.exit("codeFencedFence"),r.interrupt?t(b):e.check(Ar,k,T)(b)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),d(b))}function d(b){return b===null||M(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(b)):U(b)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),Y(e,p,"whitespace")(b)):b===96&&b===s?n(b):(e.consume(b),d)}function p(b){return b===null||M(b)?u(b):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),g(b))}function g(b){return b===null||M(b)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(b)):b===96&&b===s?n(b):(e.consume(b),g)}function k(b){return e.attempt(i,T,w)(b)}function w(b){return e.enter("lineEnding"),e.consume(b),e.exit("lineEnding"),v}function v(b){return o>0&&U(b)?Y(e,C,"linePrefix",o+1)(b):C(b)}function C(b){return b===null||M(b)?e.check(Ar,k,T)(b):(e.enter("codeFlowValue"),P(b))}function P(b){return b===null||M(b)?(e.exit("codeFlowValue"),C(b)):(e.consume(b),P)}function T(b){return e.exit("codeFenced"),t(b)}function z(b,F,$){let B=0;return y;function y(R){return b.enter("lineEnding"),b.consume(R),b.exit("lineEnding"),_}function _(R){return b.enter("codeFencedFence"),U(R)?Y(b,L,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(R):L(R)}function L(R){return R===s?(b.enter("codeFencedFenceSequence"),O(R)):$(R)}function O(R){return R===s?(B++,b.consume(R),O):B>=l?(b.exit("codeFencedFenceSequence"),U(R)?Y(b,E,"whitespace")(R):E(R)):$(R)}function E(R){return R===null||M(R)?(b.exit("codeFencedFence"),F(R)):$(R)}}}function Ic(e,t,n){const r=this;return i;function i(l){return l===null?n(l):(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}const Kt={name:"codeIndented",tokenize:_c},Ec={partial:!0,tokenize:Tc};function _c(e,t,n){const r=this;return i;function i(c){return e.enter("codeIndented"),Y(e,o,"linePrefix",5)(c)}function o(c){const f=r.events[r.events.length-1];return f&&f[1].type==="linePrefix"&&f[2].sliceSerialize(f[1],!0).length>=4?l(c):n(c)}function l(c){return c===null?a(c):M(c)?e.attempt(Ec,l,a)(c):(e.enter("codeFlowValue"),s(c))}function s(c){return c===null||M(c)?(e.exit("codeFlowValue"),l(c)):(e.consume(c),s)}function a(c){return e.exit("codeIndented"),t(c)}}function Tc(e,t,n){const r=this;return i;function i(l){return r.parser.lazy[r.now().line]?n(l):M(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),i):Y(e,o,"linePrefix",5)(l)}function o(l){const s=r.events[r.events.length-1];return s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):M(l)?i(l):n(l)}}const Lc={name:"codeText",previous:Ac,resolve:Oc,tokenize:Rc};function Oc(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(i=r):(r===t||e[r][1].type==="lineEnding")&&(e[i][1].type="codeTextData",r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function Ac(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Rc(e,t,n){let r=0,i,o;return l;function l(u){return e.enter("codeText"),e.enter("codeTextSequence"),s(u)}function s(u){return u===96?(e.consume(u),r++,s):(e.exit("codeTextSequence"),a(u))}function a(u){return u===null?n(u):u===32?(e.enter("space"),e.consume(u),e.exit("space"),a):u===96?(o=e.enter("codeTextSequence"),i=0,f(u)):M(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),a):(e.enter("codeTextData"),c(u))}function c(u){return u===null||u===32||u===96||M(u)?(e.exit("codeTextData"),a(u)):(e.consume(u),c)}function f(u){return u===96?(e.consume(u),i++,f):i===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(u)):(o.type="codeTextData",c(u))}}class Mc{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&mt(this.left,r),o.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),mt(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),mt(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);mt(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);mt(this.left,n.reverse())}}}function mt(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function Gi(e){const t={};let n=-1,r,i,o,l,s,a,c;const f=new Mc(e);for(;++n<f.length;){for(;n in t;)n=t[n];if(r=f.get(n),n&&r[1].type==="chunkFlow"&&f.get(n-1)[1].type==="listItemPrefix"&&(a=r[1]._tokenizer.events,o=0,o<a.length&&a[o][1].type==="lineEndingBlank"&&(o+=2),o<a.length&&a[o][1].type==="content"))for(;++o<a.length&&a[o][1].type!=="content";)a[o][1].type==="chunkText"&&(a[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,Dc(f,n)),n=t[n],c=!0);else if(r[1]._container){for(o=n,i=void 0;o--;)if(l=f.get(o),l[1].type==="lineEnding"||l[1].type==="lineEndingBlank")l[0]==="enter"&&(i&&(f.get(i)[1].type="lineEndingBlank"),l[1].type="lineEnding",i=o);else if(!(l[1].type==="linePrefix"||l[1].type==="listItemIndent"))break;i&&(r[1].end={...f.get(i)[1].start},s=f.slice(i,n),s.unshift(r),f.splice(i,n-i+1,s))}}return Le(e,0,Number.POSITIVE_INFINITY,f.slice(0)),!c}function Dc(e,t){const n=e.get(t)[1],r=e.get(t)[2];let i=t-1;const o=[];let l=n._tokenizer;l||(l=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(l._contentTypeTextTrailing=!0));const s=l.events,a=[],c={};let f,u,d=-1,p=n,g=0,k=0;const w=[k];for(;p;){for(;e.get(++i)[1]!==p;);o.push(i),p._tokenizer||(f=r.sliceStream(p),p.next||f.push(null),u&&l.defineSkip(p.start),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=!0),l.write(f),p._isInFirstContentOfListItem&&(l._gfmTasklistFirstContentOfListItem=void 0)),u=p,p=p.next}for(p=n;++d<s.length;)s[d][0]==="exit"&&s[d-1][0]==="enter"&&s[d][1].type===s[d-1][1].type&&s[d][1].start.line!==s[d][1].end.line&&(k=d+1,w.push(k),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(l.events=[],p?(p._tokenizer=void 0,p.previous=void 0):w.pop(),d=w.length;d--;){const v=s.slice(w[d],w[d+1]),C=o.pop();a.push([C,C+v.length-1]),e.splice(C,2,v)}for(a.reverse(),d=-1;++d<a.length;)c[g+a[d][0]]=g+a[d][1],g+=a[d][1]-a[d][0]-1;return c}const zc={resolve:Nc,tokenize:jc},Fc={partial:!0,tokenize:Bc};function Nc(e){return Gi(e),e}function jc(e,t){let n;return r;function r(s){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(s)}function i(s){return s===null?o(s):M(s)?e.check(Fc,l,o)(s):(e.consume(s),i)}function o(s){return e.exit("chunkContent"),e.exit("content"),t(s)}function l(s){return e.consume(s),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}function Bc(e,t,n){const r=this;return i;function i(l){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),Y(e,o,"linePrefix")}function o(l){if(l===null||M(l))return n(l);const s=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&s&&s[1].type==="linePrefix"&&s[2].sliceSerialize(s[1],!0).length>=4?t(l):e.interrupt(r.parser.constructs.flow,n,t)(l)}}function Xi(e,t,n,r,i,o,l,s,a){const c=a||Number.POSITIVE_INFINITY;let f=0;return u;function u(v){return v===60?(e.enter(r),e.enter(i),e.enter(o),e.consume(v),e.exit(o),d):v===null||v===32||v===41||mn(v)?n(v):(e.enter(r),e.enter(l),e.enter(s),e.enter("chunkString",{contentType:"string"}),k(v))}function d(v){return v===62?(e.enter(o),e.consume(v),e.exit(o),e.exit(i),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),p(v))}function p(v){return v===62?(e.exit("chunkString"),e.exit(s),d(v)):v===null||v===60||M(v)?n(v):(e.consume(v),v===92?g:p)}function g(v){return v===60||v===62||v===92?(e.consume(v),p):p(v)}function k(v){return!f&&(v===null||v===41||fe(v))?(e.exit("chunkString"),e.exit(s),e.exit(l),e.exit(r),t(v)):f<c&&v===40?(e.consume(v),f++,k):v===41?(e.consume(v),f--,k):v===null||v===32||v===40||mn(v)?n(v):(e.consume(v),v===92?w:k)}function w(v){return v===40||v===41||v===92?(e.consume(v),k):k(v)}}function Ji(e,t,n,r,i,o){const l=this;let s=0,a;return c;function c(p){return e.enter(r),e.enter(i),e.consume(p),e.exit(i),e.enter(o),f}function f(p){return s>999||p===null||p===91||p===93&&!a||p===94&&!s&&"_hiddenFootnoteSupport"in l.parser.constructs?n(p):p===93?(e.exit(o),e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):M(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),f):(e.enter("chunkString",{contentType:"string"}),u(p))}function u(p){return p===null||p===91||p===93||M(p)||s++>999?(e.exit("chunkString"),f(p)):(e.consume(p),a||(a=!U(p)),p===92?d:u)}function d(p){return p===91||p===92||p===93?(e.consume(p),s++,u):u(p)}}function eo(e,t,n,r,i,o){let l;return s;function s(d){return d===34||d===39||d===40?(e.enter(r),e.enter(i),e.consume(d),e.exit(i),l=d===40?41:d,a):n(d)}function a(d){return d===l?(e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):(e.enter(o),c(d))}function c(d){return d===l?(e.exit(o),a(l)):d===null?n(d):M(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),Y(e,c,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),f(d))}function f(d){return d===l||d===null||M(d)?(e.exit("chunkString"),c(d)):(e.consume(d),d===92?u:f)}function u(d){return d===l||d===92?(e.consume(d),f):f(d)}}function kt(e,t){let n;return r;function r(i){return M(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):U(i)?Y(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Vc={name:"definition",tokenize:$c},Uc={partial:!0,tokenize:Hc};function $c(e,t,n){const r=this;let i;return o;function o(p){return e.enter("definition"),l(p)}function l(p){return Ji.call(r,e,s,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(p)}function s(p){return i=rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),p===58?(e.enter("definitionMarker"),e.consume(p),e.exit("definitionMarker"),a):n(p)}function a(p){return fe(p)?kt(e,c)(p):c(p)}function c(p){return Xi(e,f,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(p)}function f(p){return e.attempt(Uc,u,u)(p)}function u(p){return U(p)?Y(e,d,"whitespace")(p):d(p)}function d(p){return p===null||M(p)?(e.exit("definition"),r.parser.defined.push(i),t(p)):n(p)}}function Hc(e,t,n){return r;function r(s){return fe(s)?kt(e,i)(s):n(s)}function i(s){return eo(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(s)}function o(s){return U(s)?Y(e,l,"whitespace")(s):l(s)}function l(s){return s===null||M(s)?t(s):n(s)}}const qc={name:"hardBreakEscape",tokenize:Wc};function Wc(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),i}function i(o){return M(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const Qc={name:"headingAtx",resolve:Yc,tokenize:Kc};function Yc(e,t){let n=e.length-2,r=3,i,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Le(e,r,n-r+1,[["enter",i,t],["enter",o,t],["exit",o,t],["exit",i,t]])),e}function Kc(e,t,n){let r=0;return i;function i(f){return e.enter("atxHeading"),o(f)}function o(f){return e.enter("atxHeadingSequence"),l(f)}function l(f){return f===35&&r++<6?(e.consume(f),l):f===null||fe(f)?(e.exit("atxHeadingSequence"),s(f)):n(f)}function s(f){return f===35?(e.enter("atxHeadingSequence"),a(f)):f===null||M(f)?(e.exit("atxHeading"),t(f)):U(f)?Y(e,s,"whitespace")(f):(e.enter("atxHeadingText"),c(f))}function a(f){return f===35?(e.consume(f),a):(e.exit("atxHeadingSequence"),s(f))}function c(f){return f===null||f===35||fe(f)?(e.exit("atxHeadingText"),s(f)):(e.consume(f),c)}}const Zc=["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","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Mr=["pre","script","style","textarea"],Gc={concrete:!0,name:"htmlFlow",resolveTo:eu,tokenize:tu},Xc={partial:!0,tokenize:ru},Jc={partial:!0,tokenize:nu};function eu(e){let t=e.length;for(;t--&&!(e[t][0]==="enter"&&e[t][1].type==="htmlFlow"););return t>1&&e[t-2][1].type==="linePrefix"&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function tu(e,t,n){const r=this;let i,o,l,s,a;return c;function c(m){return f(m)}function f(m){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(m),u}function u(m){return m===33?(e.consume(m),d):m===47?(e.consume(m),o=!0,k):m===63?(e.consume(m),i=3,r.interrupt?t:h):Te(m)?(e.consume(m),l=String.fromCharCode(m),w):n(m)}function d(m){return m===45?(e.consume(m),i=2,p):m===91?(e.consume(m),i=5,s=0,g):Te(m)?(e.consume(m),i=4,r.interrupt?t:h):n(m)}function p(m){return m===45?(e.consume(m),r.interrupt?t:h):n(m)}function g(m){const le="CDATA[";return m===le.charCodeAt(s++)?(e.consume(m),s===le.length?r.interrupt?t:L:g):n(m)}function k(m){return Te(m)?(e.consume(m),l=String.fromCharCode(m),w):n(m)}function w(m){if(m===null||m===47||m===62||fe(m)){const le=m===47,j=l.toLowerCase();return!le&&!o&&Mr.includes(j)?(i=1,r.interrupt?t(m):L(m)):Zc.includes(l.toLowerCase())?(i=6,le?(e.consume(m),v):r.interrupt?t(m):L(m)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(m):o?C(m):P(m))}return m===45||ge(m)?(e.consume(m),l+=String.fromCharCode(m),w):n(m)}function v(m){return m===62?(e.consume(m),r.interrupt?t:L):n(m)}function C(m){return U(m)?(e.consume(m),C):y(m)}function P(m){return m===47?(e.consume(m),y):m===58||m===95||Te(m)?(e.consume(m),T):U(m)?(e.consume(m),P):y(m)}function T(m){return m===45||m===46||m===58||m===95||ge(m)?(e.consume(m),T):z(m)}function z(m){return m===61?(e.consume(m),b):U(m)?(e.consume(m),z):P(m)}function b(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),a=m,F):U(m)?(e.consume(m),b):$(m)}function F(m){return m===a?(e.consume(m),a=null,B):m===null||M(m)?n(m):(e.consume(m),F)}function $(m){return m===null||m===34||m===39||m===47||m===60||m===61||m===62||m===96||fe(m)?z(m):(e.consume(m),$)}function B(m){return m===47||m===62||U(m)?P(m):n(m)}function y(m){return m===62?(e.consume(m),_):n(m)}function _(m){return m===null||M(m)?L(m):U(m)?(e.consume(m),_):n(m)}function L(m){return m===45&&i===2?(e.consume(m),G):m===60&&i===1?(e.consume(m),J):m===62&&i===4?(e.consume(m),de):m===63&&i===3?(e.consume(m),h):m===93&&i===5?(e.consume(m),ye):M(m)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(Xc,ke,O)(m)):m===null||M(m)?(e.exit("htmlFlowData"),O(m)):(e.consume(m),L)}function O(m){return e.check(Jc,E,ke)(m)}function E(m){return e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),R}function R(m){return m===null||M(m)?O(m):(e.enter("htmlFlowData"),L(m))}function G(m){return m===45?(e.consume(m),h):L(m)}function J(m){return m===47?(e.consume(m),l="",se):L(m)}function se(m){if(m===62){const le=l.toLowerCase();return Mr.includes(le)?(e.consume(m),de):L(m)}return Te(m)&&l.length<8?(e.consume(m),l+=String.fromCharCode(m),se):L(m)}function ye(m){return m===93?(e.consume(m),h):L(m)}function h(m){return m===62?(e.consume(m),de):m===45&&i===2?(e.consume(m),h):L(m)}function de(m){return m===null||M(m)?(e.exit("htmlFlowData"),ke(m)):(e.consume(m),de)}function ke(m){return e.exit("htmlFlow"),t(m)}}function nu(e,t,n){const r=this;return i;function i(l){return M(l)?(e.enter("lineEnding"),e.consume(l),e.exit("lineEnding"),o):n(l)}function o(l){return r.parser.lazy[r.now().line]?n(l):t(l)}}function ru(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(Ut,t,n)}}const iu={name:"htmlText",tokenize:ou};function ou(e,t,n){const r=this;let i,o,l;return s;function s(h){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(h),a}function a(h){return h===33?(e.consume(h),c):h===47?(e.consume(h),z):h===63?(e.consume(h),P):Te(h)?(e.consume(h),$):n(h)}function c(h){return h===45?(e.consume(h),f):h===91?(e.consume(h),o=0,g):Te(h)?(e.consume(h),C):n(h)}function f(h){return h===45?(e.consume(h),p):n(h)}function u(h){return h===null?n(h):h===45?(e.consume(h),d):M(h)?(l=u,J(h)):(e.consume(h),u)}function d(h){return h===45?(e.consume(h),p):u(h)}function p(h){return h===62?G(h):h===45?d(h):u(h)}function g(h){const de="CDATA[";return h===de.charCodeAt(o++)?(e.consume(h),o===de.length?k:g):n(h)}function k(h){return h===null?n(h):h===93?(e.consume(h),w):M(h)?(l=k,J(h)):(e.consume(h),k)}function w(h){return h===93?(e.consume(h),v):k(h)}function v(h){return h===62?G(h):h===93?(e.consume(h),v):k(h)}function C(h){return h===null||h===62?G(h):M(h)?(l=C,J(h)):(e.consume(h),C)}function P(h){return h===null?n(h):h===63?(e.consume(h),T):M(h)?(l=P,J(h)):(e.consume(h),P)}function T(h){return h===62?G(h):P(h)}function z(h){return Te(h)?(e.consume(h),b):n(h)}function b(h){return h===45||ge(h)?(e.consume(h),b):F(h)}function F(h){return M(h)?(l=F,J(h)):U(h)?(e.consume(h),F):G(h)}function $(h){return h===45||ge(h)?(e.consume(h),$):h===47||h===62||fe(h)?B(h):n(h)}function B(h){return h===47?(e.consume(h),G):h===58||h===95||Te(h)?(e.consume(h),y):M(h)?(l=B,J(h)):U(h)?(e.consume(h),B):G(h)}function y(h){return h===45||h===46||h===58||h===95||ge(h)?(e.consume(h),y):_(h)}function _(h){return h===61?(e.consume(h),L):M(h)?(l=_,J(h)):U(h)?(e.consume(h),_):B(h)}function L(h){return h===null||h===60||h===61||h===62||h===96?n(h):h===34||h===39?(e.consume(h),i=h,O):M(h)?(l=L,J(h)):U(h)?(e.consume(h),L):(e.consume(h),E)}function O(h){return h===i?(e.consume(h),i=void 0,R):h===null?n(h):M(h)?(l=O,J(h)):(e.consume(h),O)}function E(h){return h===null||h===34||h===39||h===60||h===61||h===96?n(h):h===47||h===62||fe(h)?B(h):(e.consume(h),E)}function R(h){return h===47||h===62||fe(h)?B(h):n(h)}function G(h){return h===62?(e.consume(h),e.exit("htmlTextData"),e.exit("htmlText"),t):n(h)}function J(h){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),se}function se(h){return U(h)?Y(e,ye,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(h):ye(h)}function ye(h){return e.enter("htmlTextData"),l(h)}}const Wn={name:"labelEnd",resolveAll:cu,resolveTo:uu,tokenize:fu},lu={tokenize:pu},su={tokenize:du},au={tokenize:hu};function cu(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const i=r.type==="labelImage"?4:2;r.type="data",t+=i}}return e.length!==n.length&&Le(e,0,e.length,n),e}function uu(e,t){let n=e.length,r=0,i,o,l,s;for(;n--;)if(i=e[n][1],o){if(i.type==="link"||i.type==="labelLink"&&i._inactive)break;e[n][0]==="enter"&&i.type==="labelLink"&&(i._inactive=!0)}else if(l){if(e[n][0]==="enter"&&(i.type==="labelImage"||i.type==="labelLink")&&!i._balanced&&(o=n,i.type!=="labelLink")){r=2;break}}else i.type==="labelEnd"&&(l=n);const a={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[l][1].end}},f={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[l-2][1].start}};return s=[["enter",a,t],["enter",c,t]],s=be(s,e.slice(o+1,o+r+3)),s=be(s,[["enter",f,t]]),s=be(s,qn(t.parser.constructs.insideSpan.null,e.slice(o+r+4,l-3),t)),s=be(s,[["exit",f,t],e[l-2],e[l-1],["exit",c,t]]),s=be(s,e.slice(l+1)),s=be(s,[["exit",a,t]]),Le(e,o,e.length,s),e}function fu(e,t,n){const r=this;let i=r.events.length,o,l;for(;i--;)if((r.events[i][1].type==="labelImage"||r.events[i][1].type==="labelLink")&&!r.events[i][1]._balanced){o=r.events[i][1];break}return s;function s(d){return o?o._inactive?u(d):(l=r.parser.defined.includes(rt(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(d),e.exit("labelMarker"),e.exit("labelEnd"),a):n(d)}function a(d){return d===40?e.attempt(lu,f,l?f:u)(d):d===91?e.attempt(su,f,l?c:u)(d):l?f(d):u(d)}function c(d){return e.attempt(au,f,u)(d)}function f(d){return t(d)}function u(d){return o._balanced=!0,n(d)}}function pu(e,t,n){return r;function r(u){return e.enter("resource"),e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),i}function i(u){return fe(u)?kt(e,o)(u):o(u)}function o(u){return u===41?f(u):Xi(e,l,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(u)}function l(u){return fe(u)?kt(e,a)(u):f(u)}function s(u){return n(u)}function a(u){return u===34||u===39||u===40?eo(e,c,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(u):f(u)}function c(u){return fe(u)?kt(e,f)(u):f(u)}function f(u){return u===41?(e.enter("resourceMarker"),e.consume(u),e.exit("resourceMarker"),e.exit("resource"),t):n(u)}}function du(e,t,n){const r=this;return i;function i(s){return Ji.call(r,e,o,l,"reference","referenceMarker","referenceString")(s)}function o(s){return r.parser.defined.includes(rt(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(s):n(s)}function l(s){return n(s)}}function hu(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),i}function i(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const mu={name:"labelStartImage",resolveAll:Wn.resolveAll,tokenize:gu};function gu(e,t,n){const r=this;return i;function i(s){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(s),e.exit("labelImageMarker"),o}function o(s){return s===91?(e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelImage"),l):n(s)}function l(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const vu={name:"labelStartLink",resolveAll:Wn.resolveAll,tokenize:yu};function yu(e,t,n){const r=this;return i;function i(l){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(l),e.exit("labelMarker"),e.exit("labelLink"),o}function o(l){return l===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(l):t(l)}}const Zt={name:"lineEnding",tokenize:ku};function ku(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),Y(e,t,"linePrefix")}}const Rt={name:"thematicBreak",tokenize:xu};function xu(e,t,n){let r=0,i;return o;function o(c){return e.enter("thematicBreak"),l(c)}function l(c){return i=c,s(c)}function s(c){return c===i?(e.enter("thematicBreakSequence"),a(c)):r>=3&&(c===null||M(c))?(e.exit("thematicBreak"),t(c)):n(c)}function a(c){return c===i?(e.consume(c),r++,a):(e.exit("thematicBreakSequence"),U(c)?Y(e,s,"whitespace")(c):s(c))}}const ae={continuation:{tokenize:Cu},exit:Iu,name:"list",tokenize:Su},bu={partial:!0,tokenize:Eu},wu={partial:!0,tokenize:Pu};function Su(e,t,n){const r=this,i=r.events[r.events.length-1];let o=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,l=0;return s;function s(p){const g=r.containerState.type||(p===42||p===43||p===45?"listUnordered":"listOrdered");if(g==="listUnordered"?!r.containerState.marker||p===r.containerState.marker:gn(p)){if(r.containerState.type||(r.containerState.type=g,e.enter(g,{_container:!0})),g==="listUnordered")return e.enter("listItemPrefix"),p===42||p===45?e.check(Rt,n,c)(p):c(p);if(!r.interrupt||p===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),a(p)}return n(p)}function a(p){return gn(p)&&++l<10?(e.consume(p),a):(!r.interrupt||l<2)&&(r.containerState.marker?p===r.containerState.marker:p===41||p===46)?(e.exit("listItemValue"),c(p)):n(p)}function c(p){return e.enter("listItemMarker"),e.consume(p),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||p,e.check(Ut,r.interrupt?n:f,e.attempt(bu,d,u))}function f(p){return r.containerState.initialBlankLine=!0,o++,d(p)}function u(p){return U(p)?(e.enter("listItemPrefixWhitespace"),e.consume(p),e.exit("listItemPrefixWhitespace"),d):n(p)}function d(p){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(p)}}function Cu(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(Ut,i,o);function i(s){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Y(e,t,"listItemIndent",r.containerState.size+1)(s)}function o(s){return r.containerState.furtherBlankLines||!U(s)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,l(s)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(wu,t,l)(s))}function l(s){return r.containerState._closeFlow=!0,r.interrupt=void 0,Y(e,e.attempt(ae,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s)}}function Pu(e,t,n){const r=this;return Y(e,i,"listItemIndent",r.containerState.size+1);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="listItemIndent"&&l[2].sliceSerialize(l[1],!0).length===r.containerState.size?t(o):n(o)}}function Iu(e){e.exit(this.containerState.type)}function Eu(e,t,n){const r=this;return Y(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(o){const l=r.events[r.events.length-1];return!U(o)&&l&&l[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const Dr={name:"setextUnderline",resolveTo:_u,tokenize:Tu};function _u(e,t){let n=e.length,r,i,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const l={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[i][1].type="setextHeadingText",o?(e.splice(i,0,["enter",l,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=l,e.push(["exit",l,t]),e}function Tu(e,t,n){const r=this;let i;return o;function o(c){let f=r.events.length,u;for(;f--;)if(r.events[f][1].type!=="lineEnding"&&r.events[f][1].type!=="linePrefix"&&r.events[f][1].type!=="content"){u=r.events[f][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||u)?(e.enter("setextHeadingLine"),i=c,l(c)):n(c)}function l(c){return e.enter("setextHeadingLineSequence"),s(c)}function s(c){return c===i?(e.consume(c),s):(e.exit("setextHeadingLineSequence"),U(c)?Y(e,a,"lineSuffix")(c):a(c))}function a(c){return c===null||M(c)?(e.exit("setextHeadingLine"),t(c)):n(c)}}const Lu={tokenize:Ou};function Ou(e){const t=this,n=e.attempt(Ut,r,e.attempt(this.parser.constructs.flowInitial,i,Y(e,e.attempt(this.parser.constructs.flow,i,e.attempt(zc,i)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Au={resolveAll:no()},Ru=to("string"),Mu=to("text");function to(e){return{resolveAll:no(e==="text"?Du:void 0),tokenize:t};function t(n){const r=this,i=this.parser.constructs[e],o=n.attempt(i,l,s);return l;function l(f){return c(f)?o(f):s(f)}function s(f){if(f===null){n.consume(f);return}return n.enter("data"),n.consume(f),a}function a(f){return c(f)?(n.exit("data"),o(f)):(n.consume(f),a)}function c(f){if(f===null)return!0;const u=i[f];let d=-1;if(u)for(;++d<u.length;){const p=u[d];if(!p.previous||p.previous.call(r,r.previous))return!0}return!1}}}function no(e){return t;function t(n,r){let i=-1,o;for(;++i<=n.length;)o===void 0?n[i]&&n[i][1].type==="data"&&(o=i,i++):(!n[i]||n[i][1].type!=="data")&&(i!==o+2&&(n[o][1].end=n[i-1][1].end,n.splice(o+2,i-o-2),i=o+2),o=void 0);return e?e(n,r):n}}function Du(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],i=t.sliceStream(r);let o=i.length,l=-1,s=0,a;for(;o--;){const c=i[o];if(typeof c=="string"){for(l=c.length;c.charCodeAt(l-1)===32;)s++,l--;if(l)break;l=-1}else if(c===-2)a=!0,s++;else if(c!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){const c={type:n===e.length||a||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?l:r.start._bufferIndex+l,_index:r.start._index+o,line:r.end.line,column:r.end.column-s,offset:r.end.offset-s},end:{...r.end}};r.end={...c.start},r.start.offset===r.end.offset?Object.assign(r,c):(e.splice(n,0,["enter",c,t],["exit",c,t]),n+=2)}n++}return e}const zu={42:ae,43:ae,45:ae,48:ae,49:ae,50:ae,51:ae,52:ae,53:ae,54:ae,55:ae,56:ae,57:ae,62:Yi},Fu={91:Vc},Nu={[-2]:Kt,[-1]:Kt,32:Kt},ju={35:Qc,42:Rt,45:[Dr,Rt],60:Gc,61:Dr,95:Rt,96:Rr,126:Rr},Bu={38:Zi,92:Ki},Vu={[-5]:Zt,[-4]:Zt,[-3]:Zt,33:mu,38:Zi,42:vn,60:[vc,iu],91:vu,92:[qc,Ki],93:Wn,95:vn,96:Lc},Uu={null:[vn,Au]},$u={null:[42,95]},Hu={null:[]},qu=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:$u,contentInitial:Fu,disable:Hu,document:zu,flow:ju,flowInitial:Nu,insideSpan:Uu,string:Bu,text:Vu},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const i={},o=[];let l=[],s=[];const a={attempt:F(z),check:F(b),consume:C,enter:P,exit:T,interrupt:F(b,{interrupt:!0})},c={code:null,containerState:{},defineSkip:k,events:[],now:g,parser:e,previous:null,sliceSerialize:d,sliceStream:p,write:u};let f=t.tokenize.call(c,a);return t.resolveAll&&o.push(t),c;function u(_){return l=be(l,_),w(),l[l.length-1]!==null?[]:($(t,0),c.events=qn(o,c.events,c),c.events)}function d(_,L){return Yu(p(_),L)}function p(_){return Qu(l,_)}function g(){const{_bufferIndex:_,_index:L,line:O,column:E,offset:R}=r;return{_bufferIndex:_,_index:L,line:O,column:E,offset:R}}function k(_){i[_.line]=_.column,y()}function w(){let _;for(;r._index<l.length;){const L=l[r._index];if(typeof L=="string")for(_=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===_&&r._bufferIndex<L.length;)v(L.charCodeAt(r._bufferIndex));else v(L)}}function v(_){f=f(_)}function C(_){M(_)?(r.line++,r.column=1,r.offset+=_===-3?2:1,y()):_!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===l[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=_}function P(_,L){const O=L||{};return O.type=_,O.start=g(),c.events.push(["enter",O,c]),s.push(O),O}function T(_){const L=s.pop();return L.end=g(),c.events.push(["exit",L,c]),L}function z(_,L){$(_,L.from)}function b(_,L){L.restore()}function F(_,L){return O;function O(E,R,G){let J,se,ye,h;return Array.isArray(E)?ke(E):"tokenize"in E?ke([E]):de(E);function de(H){return Pe;function Pe(xe){const Qe=xe!==null&&H[xe],Ye=xe!==null&&H.null,It=[...Array.isArray(Qe)?Qe:Qe?[Qe]:[],...Array.isArray(Ye)?Ye:Ye?[Ye]:[]];return ke(It)(xe)}}function ke(H){return J=H,se=0,H.length===0?G:m(H[se])}function m(H){return Pe;function Pe(xe){return h=B(),ye=H,H.partial||(c.currentConstruct=H),H.name&&c.parser.constructs.disable.null.includes(H.name)?j():H.tokenize.call(L?Object.assign(Object.create(c),L):c,a,le,j)(xe)}}function le(H){return _(ye,h),R}function j(H){return h.restore(),++se<J.length?m(J[se]):G}}}function $(_,L){_.resolveAll&&!o.includes(_)&&o.push(_),_.resolve&&Le(c.events,L,c.events.length-L,_.resolve(c.events.slice(L),c)),_.resolveTo&&(c.events=_.resolveTo(c.events,c))}function B(){const _=g(),L=c.previous,O=c.currentConstruct,E=c.events.length,R=Array.from(s);return{from:E,restore:G};function G(){r=_,c.previous=L,c.currentConstruct=O,c.events.length=E,s=R,y()}}function y(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Qu(e,t){const n=t.start._index,r=t.start._bufferIndex,i=t.end._index,o=t.end._bufferIndex;let l;if(n===i)l=[e[n].slice(r,o)];else{if(l=e.slice(n,i),r>-1){const s=l[0];typeof s=="string"?l[0]=s.slice(r):l.shift()}o>0&&l.push(e[i].slice(0,o))}return l}function Yu(e,t){let n=-1;const r=[];let i;for(;++n<e.length;){const o=e[n];let l;if(typeof o=="string")l=o;else switch(o){case-5:{l="\r";break}case-4:{l=`
`;break}case-3:{l=`\r
`;break}case-2:{l=t?" ":"	";break}case-1:{if(!t&&i)continue;l=" ";break}default:l=String.fromCharCode(o)}i=o===-2,r.push(l)}return r.join("")}function Ku(e){const t={constructs:nc([qu,...(e||{}).extensions||[]]),content:n(uc),defined:[],document:n(pc),flow:n(Lu),lazy:{},string:n(Ru),text:n(Mu)};return t;function n(r){return i;function i(o){return Wu(t,r,o)}}}function Zu(e){for(;!Gi(e););return e}const zr=/[\0\t\n\r]/g;function Gu(){let e=1,t="",n=!0,r;return i;function i(o,l,s){const a=[];let c,f,u,d,p;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(l||void 0).decode(o)),u=0,t="",n&&(o.charCodeAt(0)===65279&&u++,n=void 0);u<o.length;){if(zr.lastIndex=u,c=zr.exec(o),d=c&&c.index!==void 0?c.index:o.length,p=o.charCodeAt(d),!c){t=o.slice(u);break}if(p===10&&u===d&&r)a.push(-3),r=void 0;else switch(r&&(a.push(-5),r=void 0),u<d&&(a.push(o.slice(u,d)),e+=d-u),p){case 0:{a.push(65533),e++;break}case 9:{for(f=Math.ceil(e/4)*4,a.push(-2);e++<f;)a.push(-1);break}case 10:{a.push(-4),e=1;break}default:r=!0,e=1}u=d+1}return s&&(r&&a.push(-5),t&&a.push(t),a.push(null)),a}}const Xu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Ju(e){return e.replace(Xu,ef)}function ef(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),i=r===120||r===88;return Qi(n.slice(i?2:1),i?16:10)}return Hn(n)||e}const ro={}.hasOwnProperty;function tf(e,t,n){return typeof t!="string"&&(n=t,t=void 0),nf(n)(Zu(Ku(n).document().write(Gu()(e,t,!0))))}function nf(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(nr),autolinkProtocol:B,autolinkEmail:B,atxHeading:o(Jn),blockQuote:o(Ye),characterEscape:B,characterReference:B,codeFenced:o(It),codeFencedFenceInfo:l,codeFencedFenceMeta:l,codeIndented:o(It,l),codeText:o(To,l),codeTextData:B,data:B,codeFlowValue:B,definition:o(Lo),definitionDestinationString:l,definitionLabelString:l,definitionTitleString:l,emphasis:o(Oo),hardBreakEscape:o(er),hardBreakTrailing:o(er),htmlFlow:o(tr,l),htmlFlowData:B,htmlText:o(tr,l),htmlTextData:B,image:o(Ao),label:l,link:o(nr),listItem:o(Ro),listItemValue:d,listOrdered:o(rr,u),listUnordered:o(rr),paragraph:o(Mo),reference:m,referenceString:l,resourceDestinationString:l,resourceTitleString:l,setextHeading:o(Jn),strong:o(Do),thematicBreak:o(Fo)},exit:{atxHeading:a(),atxHeadingSequence:z,autolink:a(),autolinkEmail:Qe,autolinkProtocol:xe,blockQuote:a(),characterEscapeValue:y,characterReferenceMarkerHexadecimal:j,characterReferenceMarkerNumeric:j,characterReferenceValue:H,characterReference:Pe,codeFenced:a(w),codeFencedFence:k,codeFencedFenceInfo:p,codeFencedFenceMeta:g,codeFlowValue:y,codeIndented:a(v),codeText:a(R),codeTextData:y,data:y,definition:a(),definitionDestinationString:T,definitionLabelString:C,definitionTitleString:P,emphasis:a(),hardBreakEscape:a(L),hardBreakTrailing:a(L),htmlFlow:a(O),htmlFlowData:y,htmlText:a(E),htmlTextData:y,image:a(J),label:ye,labelText:se,lineEnding:_,link:a(G),listItem:a(),listOrdered:a(),listUnordered:a(),paragraph:a(),referenceString:le,resourceDestinationString:h,resourceTitleString:de,resource:ke,setextHeading:a($),setextHeadingLineSequence:F,setextHeadingText:b,strong:a(),thematicBreak:a()}};io(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(x){let I={type:"root",children:[]};const D={stack:[I],tokenStack:[],config:t,enter:s,exit:c,buffer:l,resume:f,data:n},q=[];let K=-1;for(;++K<x.length;)if(x[K][1].type==="listOrdered"||x[K][1].type==="listUnordered")if(x[K][0]==="enter")q.push(K);else{const Ie=q.pop();K=i(x,Ie,K)}for(K=-1;++K<x.length;){const Ie=t[x[K][0]];ro.call(Ie,x[K][1].type)&&Ie[x[K][1].type].call(Object.assign({sliceSerialize:x[K][2].sliceSerialize},D),x[K][1])}if(D.tokenStack.length>0){const Ie=D.tokenStack[D.tokenStack.length-1];(Ie[1]||Fr).call(D,void 0,Ie[0])}for(I.position={start:ze(x.length>0?x[0][1].start:{line:1,column:1,offset:0}),end:ze(x.length>0?x[x.length-2][1].end:{line:1,column:1,offset:0})},K=-1;++K<t.transforms.length;)I=t.transforms[K](I)||I;return I}function i(x,I,D){let q=I-1,K=-1,Ie=!1,Ke,Oe,at,ct;for(;++q<=D;){const he=x[q];switch(he[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{he[0]==="enter"?K++:K--,ct=void 0;break}case"lineEndingBlank":{he[0]==="enter"&&(Ke&&!ct&&!K&&!at&&(at=q),ct=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ct=void 0}if(!K&&he[0]==="enter"&&he[1].type==="listItemPrefix"||K===-1&&he[0]==="exit"&&(he[1].type==="listUnordered"||he[1].type==="listOrdered")){if(Ke){let Ze=q;for(Oe=void 0;Ze--;){const Ae=x[Ze];if(Ae[1].type==="lineEnding"||Ae[1].type==="lineEndingBlank"){if(Ae[0]==="exit")continue;Oe&&(x[Oe][1].type="lineEndingBlank",Ie=!0),Ae[1].type="lineEnding",Oe=Ze}else if(!(Ae[1].type==="linePrefix"||Ae[1].type==="blockQuotePrefix"||Ae[1].type==="blockQuotePrefixWhitespace"||Ae[1].type==="blockQuoteMarker"||Ae[1].type==="listItemIndent"))break}at&&(!Oe||at<Oe)&&(Ke._spread=!0),Ke.end=Object.assign({},Oe?x[Oe][1].start:he[1].end),x.splice(Oe||q,0,["exit",Ke,he[2]]),q++,D++}if(he[1].type==="listItemPrefix"){const Ze={type:"listItem",_spread:!1,start:Object.assign({},he[1].start),end:void 0};Ke=Ze,x.splice(q,0,["enter",Ze,he[2]]),q++,D++,at=void 0,ct=!0}}}return x[I][1]._spread=Ie,D}function o(x,I){return D;function D(q){s.call(this,x(q),q),I&&I.call(this,q)}}function l(){this.stack.push({type:"fragment",children:[]})}function s(x,I,D){this.stack[this.stack.length-1].children.push(x),this.stack.push(x),this.tokenStack.push([I,D||void 0]),x.position={start:ze(I.start),end:void 0}}function a(x){return I;function I(D){x&&x.call(this,D),c.call(this,D)}}function c(x,I){const D=this.stack.pop(),q=this.tokenStack.pop();if(q)q[0].type!==x.type&&(I?I.call(this,x,q[0]):(q[1]||Fr).call(this,x,q[0]));else throw new Error("Cannot close `"+x.type+"` ("+yt({start:x.start,end:x.end})+"): it’s not open");D.position.end=ze(x.end)}function f(){return Bt(this.stack.pop())}function u(){this.data.expectingFirstListItemValue=!0}function d(x){if(this.data.expectingFirstListItemValue){const I=this.stack[this.stack.length-2];I.start=Number.parseInt(this.sliceSerialize(x),10),this.data.expectingFirstListItemValue=void 0}}function p(){const x=this.resume(),I=this.stack[this.stack.length-1];I.lang=x}function g(){const x=this.resume(),I=this.stack[this.stack.length-1];I.meta=x}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function w(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function v(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x.replace(/(\r?\n|\r)$/g,"")}function C(x){const I=this.resume(),D=this.stack[this.stack.length-1];D.label=I,D.identifier=rt(this.sliceSerialize(x)).toLowerCase()}function P(){const x=this.resume(),I=this.stack[this.stack.length-1];I.title=x}function T(){const x=this.resume(),I=this.stack[this.stack.length-1];I.url=x}function z(x){const I=this.stack[this.stack.length-1];if(!I.depth){const D=this.sliceSerialize(x).length;I.depth=D}}function b(){this.data.setextHeadingSlurpLineEnding=!0}function F(x){const I=this.stack[this.stack.length-1];I.depth=this.sliceSerialize(x).codePointAt(0)===61?1:2}function $(){this.data.setextHeadingSlurpLineEnding=void 0}function B(x){const I=this.stack[this.stack.length-1].children;let D=I[I.length-1];(!D||D.type!=="text")&&(D=zo(),D.position={start:ze(x.start),end:void 0},I.push(D)),this.stack.push(D)}function y(x){const I=this.stack.pop();I.value+=this.sliceSerialize(x),I.position.end=ze(x.end)}function _(x){const I=this.stack[this.stack.length-1];if(this.data.atHardBreak){const D=I.children[I.children.length-1];D.position.end=ze(x.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(I.type)&&(B.call(this,x),y.call(this,x))}function L(){this.data.atHardBreak=!0}function O(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function E(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function R(){const x=this.resume(),I=this.stack[this.stack.length-1];I.value=x}function G(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=I,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function J(){const x=this.stack[this.stack.length-1];if(this.data.inReference){const I=this.data.referenceType||"shortcut";x.type+="Reference",x.referenceType=I,delete x.url,delete x.title}else delete x.identifier,delete x.label;this.data.referenceType=void 0}function se(x){const I=this.sliceSerialize(x),D=this.stack[this.stack.length-2];D.label=Ju(I),D.identifier=rt(I).toLowerCase()}function ye(){const x=this.stack[this.stack.length-1],I=this.resume(),D=this.stack[this.stack.length-1];if(this.data.inReference=!0,D.type==="link"){const q=x.children;D.children=q}else D.alt=I}function h(){const x=this.resume(),I=this.stack[this.stack.length-1];I.url=x}function de(){const x=this.resume(),I=this.stack[this.stack.length-1];I.title=x}function ke(){this.data.inReference=void 0}function m(){this.data.referenceType="collapsed"}function le(x){const I=this.resume(),D=this.stack[this.stack.length-1];D.label=I,D.identifier=rt(this.sliceSerialize(x)).toLowerCase(),this.data.referenceType="full"}function j(x){this.data.characterReferenceType=x.type}function H(x){const I=this.sliceSerialize(x),D=this.data.characterReferenceType;let q;D?(q=Qi(I,D==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):q=Hn(I);const K=this.stack[this.stack.length-1];K.value+=q}function Pe(x){const I=this.stack.pop();I.position.end=ze(x.end)}function xe(x){y.call(this,x);const I=this.stack[this.stack.length-1];I.url=this.sliceSerialize(x)}function Qe(x){y.call(this,x);const I=this.stack[this.stack.length-1];I.url="mailto:"+this.sliceSerialize(x)}function Ye(){return{type:"blockquote",children:[]}}function It(){return{type:"code",lang:null,meta:null,value:""}}function To(){return{type:"inlineCode",value:""}}function Lo(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function Oo(){return{type:"emphasis",children:[]}}function Jn(){return{type:"heading",depth:0,children:[]}}function er(){return{type:"break"}}function tr(){return{type:"html",value:""}}function Ao(){return{type:"image",title:null,url:"",alt:null}}function nr(){return{type:"link",title:null,url:"",children:[]}}function rr(x){return{type:"list",ordered:x.type==="listOrdered",start:null,spread:x._spread,children:[]}}function Ro(x){return{type:"listItem",spread:x._spread,checked:null,children:[]}}function Mo(){return{type:"paragraph",children:[]}}function Do(){return{type:"strong",children:[]}}function zo(){return{type:"text",value:""}}function Fo(){return{type:"thematicBreak"}}}function ze(e){return{line:e.line,column:e.column,offset:e.offset}}function io(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?io(e,r):rf(e,r)}}function rf(e,t){let n;for(n in t)if(ro.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function Fr(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+yt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+yt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+yt({start:t.start,end:t.end})+") is still open")}function Nr(e){const t=this;t.parser=n;function n(r){return tf(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function of(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function lf(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
`}]}function sf(e,t){const n=t.value?t.value+`
`:"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let o={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o=e.applyData(t,o),o={type:"element",tagName:"pre",properties:{},children:[o]},e.patch(t,o),o}function af(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function cf(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function uf(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=st(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let l,s=e.footnoteCounts.get(r);s===void 0?(s=0,e.footnoteOrder.push(r),l=e.footnoteOrder.length):l=o+1,s+=1,e.footnoteCounts.set(r,s);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(s>1?"-"+s:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(l)}]};e.patch(t,a);const c={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,c),e.applyData(t,c)}function ff(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function pf(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function oo(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),o=i[0];o&&o.type==="text"?o.value="["+o.value:i.unshift({type:"text",value:"["});const l=i[i.length-1];return l&&l.type==="text"?l.value+=r:i.push({type:"text",value:r}),i}function df(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oo(e,t);const i={src:st(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,o),e.applyData(t,o)}function hf(e,t){const n={src:st(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function mf(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function gf(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return oo(e,t);const i={href:st(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const o={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function vf(e,t){const n={href:st(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function yf(e,t,n){const r=e.all(t),i=n?kf(n):lo(t),o={},l=[];if(typeof t.checked=="boolean"){const f=r[0];let u;f&&f.type==="element"&&f.tagName==="p"?u=f:(u={type:"element",tagName:"p",properties:{},children:[]},r.unshift(u)),u.children.length>0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let s=-1;for(;++s<r.length;){const f=r[s];(i||s!==0||f.type!=="element"||f.tagName!=="p")&&l.push({type:"text",value:`
`}),f.type==="element"&&f.tagName==="p"&&!i?l.push(...f.children):l.push(f)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&l.push({type:"text",value:`
`});const c={type:"element",tagName:"li",properties:o,children:l};return e.patch(t,c),e.applyData(t,c)}function kf(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=lo(n[r])}return t}function lo(e){return e.spread??e.children.length>1}function xf(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const l=r[i];if(l.type==="element"&&l.tagName==="li"&&l.properties&&Array.isArray(l.properties.className)&&l.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function bf(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function wf(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function Sf(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function Cf(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const l={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],l),i.push(l)}if(n.length>0){const l={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=Bn(t.children[1]),a=Vi(t.children[t.children.length-1]);s&&a&&(l.position={start:s,end:a}),i.push(l)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)}function Pf(e,t,n){const r=n?n.children:void 0,i=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,l=o?o.length:t.children.length;let s=-1;const a=[];for(;++s<l;){const f=t.children[s],u={},d=o?o[s]:void 0;d&&(u.align=d);let p={type:"element",tagName:i,properties:u,children:[]};f&&(p.children=e.all(f),e.patch(f,p),p=e.applyData(f,p)),a.push(p)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(a,!0)};return e.patch(t,c),e.applyData(t,c)}function If(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const jr=9,Br=32;function Ef(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const o=[];for(;r;)o.push(Vr(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return o.push(Vr(t.slice(i),i>0,!1)),o.join("")}function Vr(e,t,n){let r=0,i=e.length;if(t){let o=e.codePointAt(r);for(;o===jr||o===Br;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(i-1);for(;o===jr||o===Br;)i--,o=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function _f(e,t){const n={type:"text",value:Ef(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Tf(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Lf={blockquote:of,break:lf,code:sf,delete:af,emphasis:cf,footnoteReference:uf,heading:ff,html:pf,imageReference:df,image:hf,inlineCode:mf,linkReference:gf,link:vf,listItem:yf,list:xf,paragraph:bf,root:wf,strong:Sf,table:Cf,tableCell:If,tableRow:Pf,text:_f,thematicBreak:Tf,toml:_t,yaml:_t,definition:_t,footnoteDefinition:_t};function _t(){}function Of(e,t){const n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Af(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Rf(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Of,r=e.options.footnoteBackLabel||Af,i=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",l=e.options.footnoteLabelProperties||{className:["sr-only"]},s=[];let a=-1;for(;++a<e.footnoteOrder.length;){const c=e.footnoteById.get(e.footnoteOrder[a]);if(!c)continue;const f=e.all(c),u=String(c.identifier).toUpperCase(),d=st(u.toLowerCase());let p=0;const g=[],k=e.footnoteCounts.get(u);for(;k!==void 0&&++p<=k;){g.length>0&&g.push({type:"text",value:" "});let C=typeof n=="string"?n:n(a,p);typeof C=="string"&&(C={type:"text",value:C}),g.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+d+(p>1?"-"+p:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,p),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const w=f[f.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const C=w.children[w.children.length-1];C&&C.type==="text"?C.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...g)}else f.push(...g);const v={type:"element",tagName:"li",properties:{id:t+"fn-"+d},children:e.wrap(f,!0)};e.patch(c,v),s.push(v)}if(s.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ve(l),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:`
`},{type:"element",tagName:"ol",properties:{},children:e.wrap(s,!0)},{type:"text",value:`
`}]}}const yn={}.hasOwnProperty,Mf={};function Df(e,t){const n=t||Mf,r=new Map,i=new Map,o=new Map,l={...Lf,...n.handlers},s={all:c,applyData:Ff,definitionById:r,footnoteById:i,footnoteCounts:o,footnoteOrder:[],handlers:l,one:a,options:n,patch:zf,wrap:jf};return xt(e,function(f){if(f.type==="definition"||f.type==="footnoteDefinition"){const u=f.type==="definition"?r:i,d=String(f.identifier).toUpperCase();u.has(d)||u.set(d,f)}}),s;function a(f,u){const d=f.type,p=s.handlers[d];if(yn.call(s.handlers,d)&&p)return p(s,f,u);if(s.options.passThrough&&s.options.passThrough.includes(d)){if("children"in f){const{children:g,...k}=f,w=Ve(k);return w.children=s.all(f),w}return Ve(f)}return(s.options.unknownHandler||Nf)(s,f,u)}function c(f){const u=[];if("children"in f){const d=f.children;let p=-1;for(;++p<d.length;){const g=s.one(d[p],f);if(g){if(p&&d[p-1].type==="break"&&(!Array.isArray(g)&&g.type==="text"&&(g.value=Ur(g.value)),!Array.isArray(g)&&g.type==="element")){const k=g.children[0];k&&k.type==="text"&&(k.value=Ur(k.value))}Array.isArray(g)?u.push(...g):u.push(g)}}}return u}}function zf(e,t){e.position&&(t.position=Ia(e))}function Ff(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const l="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:l}}n.type==="element"&&o&&Object.assign(n.properties,Ve(o)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Nf(e,t){const n=t.data||{},r="value"in t&&!(yn.call(n,"hProperties")||yn.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function jf(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
`});++r<e.length;)r&&n.push({type:"text",value:`
`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
`}),n}function Ur(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function $r(e,t){const n=Df(e,t),r=n.one(e,void 0),i=Rf(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&o.children.push({type:"text",value:`
`},i),o}function Bf(e,t){return e&&"run"in e?async function(n,r){const i=$r(n,{file:r,...t});await e.run(i,r)}:function(n,r){return $r(n,{file:r,...e||t})}}function Vf(e){xt(e,function(t,n,r){if(n!==void 0&&r&&t.type==="paragraph"&&t.children.every(function(i){return i.type==="text"&&/^\s*$/.test(i.value)}))return r.children.splice(n,1),n})}function Uf(e={except:["http","https"]}){return function(t){const n=new Map;xt(t,"definition",function(r,i,o){if(n.set(r.identifier,r.url),o&&typeof i=="number"){const l=r.url;if(l&&l.includes(":")&&!e.except.some(s=>l.startsWith(`${s}:`)))return o.children.splice(i,1),i}}),xt(t,function(r,i,o){if(o&&typeof i=="number"&&(r.type==="link"||r.type==="linkReference")){const l=r.type==="link"?r.url:n.get(r.identifier);if(l&&l.includes(":")&&!e.except.some(s=>l.startsWith(`${s}:`)))return o.children.splice(i,1,...r.children),i}}),Vf(t)}}function Hr(e){if(e)throw e}var Gt,qr;function $f(){if(qr)return Gt;qr=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,i=function(a){return typeof Array.isArray=="function"?Array.isArray(a):t.call(a)==="[object Array]"},o=function(a){if(!a||t.call(a)!=="[object Object]")return!1;var c=e.call(a,"constructor"),f=a.constructor&&a.constructor.prototype&&e.call(a.constructor.prototype,"isPrototypeOf");if(a.constructor&&!c&&!f)return!1;var u;for(u in a);return typeof u>"u"||e.call(a,u)},l=function(a,c){n&&c.name==="__proto__"?n(a,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):a[c.name]=c.newValue},s=function(a,c){if(c==="__proto__")if(e.call(a,c)){if(r)return r(a,c).value}else return;return a[c]};return Gt=function a(){var c,f,u,d,p,g,k=arguments[0],w=1,v=arguments.length,C=!1;for(typeof k=="boolean"&&(C=k,k=arguments[1]||{},w=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});w<v;++w)if(c=arguments[w],c!=null)for(f in c)u=s(k,f),d=s(c,f),k!==d&&(C&&d&&(o(d)||(p=i(d)))?(p?(p=!1,g=u&&i(u)?u:[]):g=u&&o(u)?u:{},l(k,{name:f,newValue:a(C,g,d)})):typeof d<"u"&&l(k,{name:f,newValue:d}));return k},Gt}var Hf=$f();const Xt=di(Hf);function kn(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function qf(){const e=[],t={run:n,use:r};return t;function n(...i){let o=-1;const l=i.pop();if(typeof l!="function")throw new TypeError("Expected function as last argument, not "+l);s(null,...i);function s(a,...c){const f=e[++o];let u=-1;if(a){l(a);return}for(;++u<i.length;)(c[u]===null||c[u]===void 0)&&(c[u]=i[u]);i=c,f?Wf(f,s)(...c):l(null,...c)}}function r(i){if(typeof i!="function")throw new TypeError("Expected `middelware` to be a function, not "+i);return e.push(i),t}}function Wf(e,t){let n;return r;function r(...l){const s=e.length>l.length;let a;s&&l.push(i);try{a=e.apply(this,l)}catch(c){const f=c;if(s&&n)throw f;return i(f)}s||(a&&a.then&&typeof a.then=="function"?a.then(o,i):a instanceof Error?i(a):o(a))}function i(l,...s){n||(n=!0,t(l,...s))}function o(l){i(null,l)}}const Ee={basename:Qf,dirname:Yf,extname:Kf,join:Zf,sep:"/"};function Qf(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Ct(e);let n=0,r=-1,i=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else r<0&&(o=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let l=-1,s=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(o){n=i+1;break}}else l<0&&(o=!0,l=i+1),s>-1&&(e.codePointAt(i)===t.codePointAt(s--)?s<0&&(r=i):(s=-1,r=l));return n===r?r=l:r<0&&(r=e.length),e.slice(n,r)}function Yf(e){if(Ct(e),e.length===0)return".";let t=-1,n=e.length,r;for(;--n;)if(e.codePointAt(n)===47){if(r){t=n;break}}else r||(r=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Kf(e){Ct(e);let t=e.length,n=-1,r=0,i=-1,o=0,l;for(;t--;){const s=e.codePointAt(t);if(s===47){if(l){r=t+1;break}continue}n<0&&(l=!0,n=t+1),s===46?i<0?i=t:o!==1&&(o=1):i>-1&&(o=-1)}return i<0||n<0||o===0||o===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Zf(...e){let t=-1,n;for(;++t<e.length;)Ct(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Gf(n)}function Gf(e){Ct(e);const t=e.codePointAt(0)===47;let n=Xf(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Xf(e,t){let n="",r=0,i=-1,o=0,l=-1,s,a;for(;++l<=e.length;){if(l<e.length)s=e.codePointAt(l);else{if(s===47)break;s=47}if(s===47){if(!(i===l-1||o===1))if(i!==l-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(a=n.lastIndexOf("/"),a!==n.length-1){a<0?(n="",r=0):(n=n.slice(0,a),r=n.length-1-n.lastIndexOf("/")),i=l,o=0;continue}}else if(n.length>0){n="",r=0,i=l,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,l):n=e.slice(i+1,l),r=l-i-1;i=l,o=0}else s===46&&o>-1?o++:o=-1}return n}function Ct(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Jf={cwd:ep};function ep(){return"/"}function xn(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function tp(e){if(typeof e=="string")e=new URL(e);else if(!xn(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return np(e)}function np(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const i=new TypeError("File URL path must not include encoded / characters");throw i.code="ERR_INVALID_FILE_URL_PATH",i}}return decodeURIComponent(t)}const Jt=["history","path","basename","stem","extname","dirname"];class rp{constructor(t){let n;t?xn(t)?n={path:t}:typeof t=="string"||ip(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":Jf.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<Jt.length;){const o=Jt[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let i;for(i in n)Jt.includes(i)||(this[i]=n[i])}get basename(){return typeof this.path=="string"?Ee.basename(this.path):void 0}set basename(t){tn(t,"basename"),en(t,"basename"),this.path=Ee.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Ee.dirname(this.path):void 0}set dirname(t){Wr(this.basename,"dirname"),this.path=Ee.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Ee.extname(this.path):void 0}set extname(t){if(en(t,"extname"),Wr(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=Ee.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){xn(t)&&(t=tp(t)),tn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Ee.basename(this.path,this.extname):void 0}set stem(t){tn(t,"stem"),en(t,"stem"),this.path=Ee.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const i=this.message(t,n,r);throw i.fatal=!0,i}info(t,n,r){const i=this.message(t,n,r);return i.fatal=void 0,i}message(t,n,r){const i=new re(t,n,r);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function en(e,t){if(e&&e.includes(Ee.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Ee.sep+"`")}function tn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Wr(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ip(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const op=(function(e){const t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r}),lp={}.hasOwnProperty;class Qn extends op{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=qf()}copy(){const t=new Qn;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(Xt(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(on("data",this.frozen),this.namespace[t]=n,this):lp.call(this.namespace,t)&&this.namespace[t]||void 0:t?(on("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const i=n.call(t,...r);typeof i=="function"&&this.transformers.use(i)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Tt(t),r=this.parser||this.Parser;return nn("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),nn("process",this.parser||this.Parser),rn("process",this.compiler||this.Compiler),n?i(void 0,n):new Promise(i);function i(o,l){const s=Tt(t),a=r.parse(s);r.run(a,s,function(f,u,d){if(f||!u||!d)return c(f);const p=u,g=r.stringify(p,d);ap(g)?d.value=g:d.result=g,c(f,d)});function c(f,u){f||!u?l(f):o?o(u):n(void 0,u)}}}processSync(t){let n=!1,r;return this.freeze(),nn("processSync",this.parser||this.Parser),rn("processSync",this.compiler||this.Compiler),this.process(t,i),Kr("processSync","process",n),r;function i(o,l){n=!0,Hr(o),r=l}}run(t,n,r){Yr(t),this.freeze();const i=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(l,s){const a=Tt(n);i.run(t,a,c);function c(f,u,d){const p=u||t;f?s(f):l?l(p):r(void 0,p,d)}}}runSync(t,n){let r=!1,i;return this.run(t,n,o),Kr("runSync","run",r),i;function o(l,s){Hr(l),i=s,r=!0}}stringify(t,n){this.freeze();const r=Tt(n),i=this.compiler||this.Compiler;return rn("stringify",i),Yr(t),i(t,r)}use(t,...n){const r=this.attachers,i=this.namespace;if(on("use",this.frozen),t!=null)if(typeof t=="function")a(t,n);else if(typeof t=="object")Array.isArray(t)?s(t):l(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(c){if(typeof c=="function")a(c,[]);else if(typeof c=="object")if(Array.isArray(c)){const[f,...u]=c;a(f,u)}else l(c);else throw new TypeError("Expected usable value, not `"+c+"`")}function l(c){if(!("plugins"in c)&&!("settings"in c))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");s(c.plugins),c.settings&&(i.settings=Xt(!0,i.settings,c.settings))}function s(c){let f=-1;if(c!=null)if(Array.isArray(c))for(;++f<c.length;){const u=c[f];o(u)}else throw new TypeError("Expected a list of plugins, not `"+c+"`")}function a(c,f){let u=-1,d=-1;for(;++u<r.length;)if(r[u][0]===c){d=u;break}if(d===-1)r.push([c,...f]);else if(f.length>0){let[p,...g]=f;const k=r[d][1];kn(k)&&kn(p)&&(p=Xt(!0,k,p)),r[d]=[c,p,...g]}}}}const Qr=new Qn().freeze();function nn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function rn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function on(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function Yr(e){if(!kn(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Kr(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Tt(e){return sp(e)?e:new rp(e)}function sp(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function ap(e){return typeof e=="string"||cp(e)}function cp(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const up={name:"NcReferenceList",components:{NcReferenceWidget:On},props:{text:{type:String,default:""},referenceData:{type:Array,default:null},limit:{type:Number,default:1},displayFallback:{type:Boolean,default:!1},interactive:{type:Boolean,default:!0},interactiveOptIn:{type:Boolean,default:!1}},emits:["loaded"],data(){return{references:null,loading:!0}},computed:{isVisible(){return this.loading||this.displayedReferences.length!==0},values(){return this.referenceData?this.referenceData:this.displayFallback&&!this.loading&&!this.references?[this.fallbackReference]:this.references?Object.values(this.references):[]},firstReference(){return this.values[0]??null},displayedReferences(){return this.values.filter(Boolean).slice(0,this.limit)},fallbackReference(){return{accessible:!0,openGraphObject:{id:this.text,link:this.text,name:this.text},richObjectType:"open-graph"}}},watch:{text:"fetch"},mounted(){this.fetch()},methods:{fetch(){if(this.loading=!0,this.referenceData){this.references=null,this.loading=!1;return}if(!new RegExp(ar).exec(this.text)){this.references=null,this.loading=!1;return}this.resolve().then(e=>{this.references=e.data.ocs.data.references,this.loading=!1,this.$emit("loaded")}).catch(e=>{$e.error("[NcReferenceList] Failed to extract references",{error:e}),this.loading=!1,this.$emit("loaded")})},resolve(){const e=new RegExp(ar).exec(this.text.trim()),t=Go()===null;return this.limit===1&&e?t?Be.get(Fe("references/resolvePublic")+`?reference=${encodeURIComponent(e[0])}&sharingToken=${lr()}`):Be.get(Fe("references/resolve")+`?reference=${encodeURIComponent(e[0])}`):t?Be.post(Fe("references/extractPublic"),{text:this.text,resolve:!0,limit:this.limit,sharingToken:lr()}):Be.post(Fe("references/extract"),{text:this.text,resolve:!0,limit:this.limit})}}};function fp(e,t,n,r,i,o){const l=W("NcReferenceWidget");return o.isVisible?(A(),V("div",{key:0,class:it(["widgets--list",{"icon-loading":i.loading}])},[(A(!0),V(ui,null,$o(o.displayedReferences,s=>(A(),ee(l,{key:s.openGraphObject?.id,reference:s,interactive:n.interactive,interactiveOptIn:n.interactiveOptIn},null,8,["reference","interactive","interactiveOptIn"]))),128))],2)):ue("",!0)}const Mt=Se(up,[["render",fp],["__scopeId","data-v-22575c85"]]);function Zr(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,i=n.indexOf(t);for(;i!==-1;)r++,i=n.indexOf(t,i+t.length);return r}const wt=Ht(/[A-Za-z]/),Yn=Ht(/[\dA-Za-z]/);function pp(e){return e!==null&&(e<32||e===127)}function tt(e){return e!==null&&e<-2}function pe(e){return e!==null&&(e<0||e===32)}function Me(e){return e===-2||e===-1||e===32}const $t=Ht(new RegExp("\\p{P}|\\p{S}","u")),Ue=Ht(/\s/);function Ht(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function dp(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}const Kn=(function(e){if(e==null)return vp;if(typeof e=="function")return qt(e);if(typeof e=="object")return Array.isArray(e)?hp(e):mp(e);if(typeof e=="string")return gp(e);throw new Error("Expected function, string, or object as test")});function hp(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Kn(e[n]);return qt(r);function r(...i){let o=-1;for(;++o<t.length;)if(t[o].apply(this,i))return!0;return!1}}function mp(e){const t=e;return qt(n);function n(r){const i=r;let o;for(o in e)if(i[o]!==t[o])return!1;return!0}}function gp(e){return qt(t);function t(n){return n&&n.type===e}}function qt(e){return t;function t(n,r,i){return!!(yp(n)&&e.call(this,n,typeof r=="number"?r:void 0,i||void 0))}}function vp(){return!0}function yp(e){return e!==null&&typeof e=="object"&&"type"in e}function kp(e,t,n){const r=Kn((n||{}).ignore||[]),i=xp(t);let o=-1;for(;++o<i.length;)qe(e,"text",l);function l(a,c){let f=-1,u;for(;++f<c.length;){const d=c[f],p=u?u.children:void 0;if(r(d,p?p.indexOf(d):void 0,u))return;u=d}if(u)return s(a,c)}function s(a,c){const f=c[c.length-1],u=i[o][0],d=i[o][1];let p=0;const g=f.children.indexOf(a);let k=!1,w=[];u.lastIndex=0;let v=u.exec(a.value);for(;v;){const C=v.index,P={index:v.index,input:v.input,stack:[...c,a]};let T=d(...v,P);if(typeof T=="string"&&(T=T.length>0?{type:"text",value:T}:void 0),T===!1?u.lastIndex=C+1:(p!==C&&w.push({type:"text",value:a.value.slice(p,C)}),Array.isArray(T)?w.push(...T):T&&w.push(T),p=C+v[0].length,k=!0),!u.global)break;v=u.exec(a.value)}return k?(p<a.value.length&&w.push({type:"text",value:a.value.slice(p)}),f.children.splice(g,1,...w)):w=[a],g+w.length}}function xp(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const i=n[r];t.push([bp(i[0]),wp(i[1])])}return t}function bp(e){return typeof e=="string"?new RegExp(dp(e),"g"):e}function wp(e){return typeof e=="function"?e:function(){return e}}const ln="phrasing",sn=["autolink","link","image","label"];function Sp(){return{transforms:[Lp],enter:{literalAutolink:Pp,literalAutolinkEmail:an,literalAutolinkHttp:an,literalAutolinkWww:an},exit:{literalAutolink:Tp,literalAutolinkEmail:_p,literalAutolinkHttp:Ip,literalAutolinkWww:Ep}}}function Cp(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ln,notInConstruct:sn},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ln,notInConstruct:sn},{character:":",before:"[ps]",after:"\\/",inConstruct:ln,notInConstruct:sn}]}}function Pp(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function an(e){this.config.enter.autolinkProtocol.call(this,e)}function Ip(e){this.config.exit.autolinkProtocol.call(this,e)}function Ep(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function _p(e){this.config.exit.autolinkEmail.call(this,e)}function Tp(e){this.exit(e)}function Lp(e){kp(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Op],[/([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/g,Ap]],{ignore:["link","linkReference"]})}function Op(e,t,n,r,i){let o="";if(!so(i)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Rp(n)))return!1;const l=Mp(n+r);if(!l[0])return!1;const s={type:"link",title:null,url:o+t+l[0],children:[{type:"text",value:t+l[0]}]};return l[1]?[s,{type:"text",value:l[1]}]:s}function Ap(e,t,n,r){return!so(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Rp(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function Mp(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Zr(e,"(");let o=Zr(e,")");for(;r!==-1&&i>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function so(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ue(n)||$t(n))&&(!t||n!==47)}function Pt(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}ao.peek=$p;function Dp(){this.buffer()}function zp(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Fp(){this.buffer()}function Np(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function jp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Pt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Bp(e){this.exit(e)}function Vp(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Pt(this.sliceSerialize(e)).toLowerCase(),n.label=t}function Up(e){this.exit(e)}function $p(){return"["}function ao(e,t,n,r){const i=n.createTracker(r);let o=i.move("[^");const l=n.enter("footnoteReference"),s=n.enter("reference");return o+=i.move(n.safe(n.associationId(e),{after:"]",before:o})),s(),l(),o+=i.move("]"),o}function Hp(){return{enter:{gfmFootnoteCallString:Dp,gfmFootnoteCall:zp,gfmFootnoteDefinitionLabelString:Fp,gfmFootnoteDefinition:Np},exit:{gfmFootnoteCallString:jp,gfmFootnoteCall:Bp,gfmFootnoteDefinitionLabelString:Vp,gfmFootnoteDefinition:Up}}}function qp(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:ao},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,i,o,l){const s=o.createTracker(l);let a=s.move("[^");const c=o.enter("footnoteDefinition"),f=o.enter("label");return a+=s.move(o.safe(o.associationId(r),{before:a,after:"]"})),f(),a+=s.move("]:"),r.children&&r.children.length>0&&(s.shift(4),a+=s.move((t?`
`:" ")+o.indentLines(o.containerFlow(r,s.current()),t?co:Wp))),c(),a}}function Wp(e,t,n){return t===0?e:co(e,t,n)}function co(e,t,n){return(n?"":"    ")+e}const Qp=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];uo.peek=Xp;function Yp(){return{canContainEols:["delete"],enter:{strikethrough:Zp},exit:{strikethrough:Gp}}}function Kp(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:Qp}],handlers:{delete:uo}}}function Zp(e){this.enter({type:"delete",children:[]},e)}function Gp(e){this.exit(e)}function uo(e,t,n,r){const i=n.createTracker(r),o=n.enter("strikethrough");let l=i.move("~~");return l+=n.containerPhrasing(e,{...i.current(),before:l,after:"~"}),l+=i.move("~~"),o(),l}function Xp(){return"~"}function Jp(e){return e.length}function ed(e,t){const n=t||{},r=(n.align||[]).concat(),i=n.stringLength||Jp,o=[],l=[],s=[],a=[];let c=0,f=-1;for(;++f<e.length;){const k=[],w=[];let v=-1;for(e[f].length>c&&(c=e[f].length);++v<e[f].length;){const C=td(e[f][v]);if(n.alignDelimiters!==!1){const P=i(C);w[v]=P,(a[v]===void 0||P>a[v])&&(a[v]=P)}k.push(C)}l[f]=k,s[f]=w}let u=-1;if(typeof r=="object"&&"length"in r)for(;++u<c;)o[u]=Gr(r[u]);else{const k=Gr(r);for(;++u<c;)o[u]=k}u=-1;const d=[],p=[];for(;++u<c;){const k=o[u];let w="",v="";k===99?(w=":",v=":"):k===108?w=":":k===114&&(v=":");let C=n.alignDelimiters===!1?1:Math.max(1,a[u]-w.length-v.length);const P=w+"-".repeat(C)+v;n.alignDelimiters!==!1&&(C=w.length+C+v.length,C>a[u]&&(a[u]=C),p[u]=C),d[u]=P}l.splice(1,0,d),s.splice(1,0,p),f=-1;const g=[];for(;++f<l.length;){const k=l[f],w=s[f];u=-1;const v=[];for(;++u<c;){const C=k[u]||"";let P="",T="";if(n.alignDelimiters!==!1){const z=a[u]-(w[u]||0),b=o[u];b===114?P=" ".repeat(z):b===99?z%2?(P=" ".repeat(z/2+.5),T=" ".repeat(z/2-.5)):(P=" ".repeat(z/2),T=P):T=" ".repeat(z)}n.delimiterStart!==!1&&!u&&v.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||u)&&v.push(" "),n.alignDelimiters!==!1&&v.push(P),v.push(C),n.alignDelimiters!==!1&&v.push(T),n.padding!==!1&&v.push(" "),(n.delimiterEnd!==!1||u!==c-1)&&v.push("|")}g.push(n.delimiterEnd===!1?v.join("").replace(/ +$/,""):v.join(""))}return g.join(`
`)}function td(e){return e==null?"":String(e)}function Gr(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}function nd(e,t,n,r){const i=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const l=n.indentLines(n.containerFlow(e,o.current()),rd);return i(),l}function rd(e,t,n){return">"+(n?"":" ")+e}function id(e,t){return Xr(e,t.inConstruct,!0)&&!Xr(e,t.notInConstruct,!1)}function Xr(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Jr(e,t,n,r){let i=-1;for(;++i<n.unsafe.length;)if(n.unsafe[i].character===`
`&&id(n.stack,n.unsafe[i]))return/[ \t]/.test(r.before)?"":" ";return`\\
`}function od(e,t){const n=String(e);let r=n.indexOf(t),i=r,o=0,l=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===i?++o>l&&(l=o):o=1,i=r+t.length,r=n.indexOf(t,i);return l}function ld(e,t){return!!(t.options.fences===!1&&e.value&&!e.lang&&/[^ \r\n]/.test(e.value)&&!/^[\t ]*(?:[\r\n]|$)|(?:^|[\r\n])[\t ]*$/.test(e.value))}function sd(e){const t=e.options.fence||"`";if(t!=="`"&&t!=="~")throw new Error("Cannot serialize code with `"+t+"` for `options.fence`, expected `` ` `` or `~`");return t}function ad(e,t,n,r){const i=sd(n),o=e.value||"",l=i==="`"?"GraveAccent":"Tilde";if(ld(e,n)){const u=n.enter("codeIndented"),d=n.indentLines(o,cd);return u(),d}const s=n.createTracker(r),a=i.repeat(Math.max(od(o,i)+1,3)),c=n.enter("codeFenced");let f=s.move(a);if(e.lang){const u=n.enter(`codeFencedLang${l}`);f+=s.move(n.safe(e.lang,{before:f,after:" ",encode:["`"],...s.current()})),u()}if(e.lang&&e.meta){const u=n.enter(`codeFencedMeta${l}`);f+=s.move(" "),f+=s.move(n.safe(e.meta,{before:f,after:`
`,encode:["`"],...s.current()})),u()}return f+=s.move(`
`),o&&(f+=s.move(o+`
`)),f+=s.move(a),c(),f}function cd(e,t,n){return(n?"":"    ")+e}function Zn(e){const t=e.options.quote||'"';if(t!=='"'&&t!=="'")throw new Error("Cannot serialize title with `"+t+"` for `options.quote`, expected `\"`, or `'`");return t}function ud(e,t,n,r){const i=Zn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("definition");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("[");return c+=a.move(n.safe(n.associationId(e),{before:c,after:"]",...a.current()})),c+=a.move("]: "),s(),!e.url||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":`
`,...a.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),s()),l(),c}function fd(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function St(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Nt(e){if(e===null||pe(e)||Ue(e))return 1;if($t(e))return 2}function jt(e,t,n){const r=Nt(e),i=Nt(t);return r===void 0?i===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:i===void 0?{inside:!1,outside:!1}:i===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}fo.peek=pd;function fo(e,t,n,r){const i=fd(n),o=n.enter("emphasis"),l=n.createTracker(r),s=l.move(i);let a=l.move(n.containerPhrasing(e,{after:i,before:s,...l.current()}));const c=a.charCodeAt(0),f=jt(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(a=St(c)+a.slice(1));const u=a.charCodeAt(a.length-1),d=jt(r.after.charCodeAt(0),u,i);d.inside&&(a=a.slice(0,-1)+St(u));const p=l.move(i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+a+p}function pd(e,t,n){return n.options.emphasis||"*"}function dd(e,t,n,r){let i,o,l;typeof t=="function"&&typeof n!="function"?(o=void 0,l=t,i=n):(o=t,l=n,i=r),qe(e,o,s,i);function s(a,c){const f=c[c.length-1],u=f?f.children.indexOf(a):void 0;return l(a,u,f)}}function hd(e,t){let n=!1;return dd(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,gl}),!!((!e.depth||e.depth<3)&&Bt(e)&&(t.options.setext||n))}function md(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(hd(e,n)){const f=n.enter("headingSetext"),u=n.enter("phrasing"),d=n.containerPhrasing(e,{...o.current(),before:`
`,after:`
`});return u(),f(),d+`
`+(i===1?"=":"-").repeat(d.length-(Math.max(d.lastIndexOf("\r"),d.lastIndexOf(`
`))+1))}const l="#".repeat(i),s=n.enter("headingAtx"),a=n.enter("phrasing");o.move(l+" ");let c=n.containerPhrasing(e,{before:"# ",after:`
`,...o.current()});return/^[\t ]/.test(c)&&(c=St(c.charCodeAt(0))+c.slice(1)),c=c?l+" "+c:l,n.options.closeAtx&&(c+=" "+l),a(),s(),c}po.peek=gd;function po(e){return e.value||""}function gd(){return"<"}ho.peek=vd;function ho(e,t,n,r){const i=Zn(n),o=i==='"'?"Quote":"Apostrophe",l=n.enter("image");let s=n.enter("label");const a=n.createTracker(r);let c=a.move("![");return c+=a.move(n.safe(e.alt,{before:c,after:"]",...a.current()})),c+=a.move("]("),s(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(s=n.enter("destinationLiteral"),c+=a.move("<"),c+=a.move(n.safe(e.url,{before:c,after:">",...a.current()})),c+=a.move(">")):(s=n.enter("destinationRaw"),c+=a.move(n.safe(e.url,{before:c,after:e.title?" ":")",...a.current()}))),s(),e.title&&(s=n.enter(`title${o}`),c+=a.move(" "+i),c+=a.move(n.safe(e.title,{before:c,after:i,...a.current()})),c+=a.move(i),s()),c+=a.move(")"),l(),c}function vd(){return"!"}mo.peek=yd;function mo(e,t,n,r){const i=e.referenceType,o=n.enter("imageReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("![");const c=n.safe(e.alt,{before:a,after:"]",...s.current()});a+=s.move(c+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const u=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=f,o(),i==="full"||!c||c!==u?a+=s.move(u+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function yd(){return"!"}go.peek=kd;function go(e,t,n){let r=e.value||"",i="`",o=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const l=n.unsafe[o],s=n.compilePattern(l);let a;if(l.atBreak)for(;a=s.exec(r);){let c=a.index;r.charCodeAt(c)===10&&r.charCodeAt(c-1)===13&&c--,r=r.slice(0,c)+" "+r.slice(a.index+1)}}return i+r+i}function kd(){return"`"}function vo(e,t){const n=Bt(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}yo.peek=xd;function yo(e,t,n,r){const i=Zn(n),o=i==='"'?"Quote":"Apostrophe",l=n.createTracker(r);let s,a;if(vo(e,n)){const f=n.stack;n.stack=[],s=n.enter("autolink");let u=l.move("<");return u+=l.move(n.containerPhrasing(e,{before:u,after:">",...l.current()})),u+=l.move(">"),s(),n.stack=f,u}s=n.enter("link"),a=n.enter("label");let c=l.move("[");return c+=l.move(n.containerPhrasing(e,{before:c,after:"](",...l.current()})),c+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),c+=l.move("<"),c+=l.move(n.safe(e.url,{before:c,after:">",...l.current()})),c+=l.move(">")):(a=n.enter("destinationRaw"),c+=l.move(n.safe(e.url,{before:c,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${o}`),c+=l.move(" "+i),c+=l.move(n.safe(e.title,{before:c,after:i,...l.current()})),c+=l.move(i),a()),c+=l.move(")"),s(),c}function xd(e,t,n){return vo(e,n)?"<":"["}ko.peek=bd;function ko(e,t,n,r){const i=e.referenceType,o=n.enter("linkReference");let l=n.enter("label");const s=n.createTracker(r);let a=s.move("[");const c=n.containerPhrasing(e,{before:a,after:"]",...s.current()});a+=s.move(c+"]["),l();const f=n.stack;n.stack=[],l=n.enter("reference");const u=n.safe(n.associationId(e),{before:a,after:"]",...s.current()});return l(),n.stack=f,o(),i==="full"||!c||c!==u?a+=s.move(u+"]"):i==="shortcut"?a=a.slice(0,-1):a+=s.move("]"),a}function bd(){return"["}function Gn(e){const t=e.options.bullet||"*";if(t!=="*"&&t!=="+"&&t!=="-")throw new Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}function wd(e){const t=Gn(e),n=e.options.bulletOther;if(!n)return t==="*"?"-":"*";if(n!=="*"&&n!=="+"&&n!=="-")throw new Error("Cannot serialize items with `"+n+"` for `options.bulletOther`, expected `*`, `+`, or `-`");if(n===t)throw new Error("Expected `bullet` (`"+t+"`) and `bulletOther` (`"+n+"`) to be different");return n}function Sd(e){const t=e.options.bulletOrdered||".";if(t!=="."&&t!==")")throw new Error("Cannot serialize items with `"+t+"` for `options.bulletOrdered`, expected `.` or `)`");return t}function xo(e){const t=e.options.rule||"*";if(t!=="*"&&t!=="-"&&t!=="_")throw new Error("Cannot serialize rules with `"+t+"` for `options.rule`, expected `*`, `-`, or `_`");return t}function Cd(e,t,n,r){const i=n.enter("list"),o=n.bulletCurrent;let l=e.ordered?Sd(n):Gn(n);const s=e.ordered?l==="."?")":".":wd(n);let a=t&&n.bulletLastUsed?l===n.bulletLastUsed:!1;if(!e.ordered){const f=e.children?e.children[0]:void 0;if((l==="*"||l==="-")&&f&&(!f.children||!f.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(a=!0),xo(n)===l&&f){let u=-1;for(;++u<e.children.length;){const d=e.children[u];if(d&&d.type==="listItem"&&d.children&&d.children[0]&&d.children[0].type==="thematicBreak"){a=!0;break}}}}a&&(l=s),n.bulletCurrent=l;const c=n.containerFlow(e,r);return n.bulletLastUsed=l,n.bulletCurrent=o,i(),c}function Pd(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function Id(e,t,n,r){const i=Pd(n);let o=n.bulletCurrent||Gn(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let l=o.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(l=Math.ceil(l/4)*4);const s=n.createTracker(r);s.move(o+" ".repeat(l-o.length)),s.shift(l);const a=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,s.current()),f);return a(),c;function f(u,d,p){return d?(p?"":" ".repeat(l))+u:(p?o:o+" ".repeat(l-o.length))+u}}function Ed(e,t,n,r){const i=n.enter("paragraph"),o=n.enter("phrasing"),l=n.containerPhrasing(e,r);return o(),i(),l}const _d=Kn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Td(e,t,n,r){return(e.children.some(function(i){return _d(i)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ld(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}bo.peek=Od;function bo(e,t,n,r){const i=Ld(n),o=n.enter("strong"),l=n.createTracker(r),s=l.move(i+i);let a=l.move(n.containerPhrasing(e,{after:i,before:s,...l.current()}));const c=a.charCodeAt(0),f=jt(r.before.charCodeAt(r.before.length-1),c,i);f.inside&&(a=St(c)+a.slice(1));const u=a.charCodeAt(a.length-1),d=jt(r.after.charCodeAt(0),u,i);d.inside&&(a=a.slice(0,-1)+St(u));const p=l.move(i+i);return o(),n.attentionEncodeSurroundingInfo={after:d.outside,before:f.outside},s+a+p}function Od(e,t,n){return n.options.strong||"*"}function Ad(e,t,n,r){return n.safe(e.value,r)}function Rd(e){const t=e.options.ruleRepetition||3;if(t<3)throw new Error("Cannot serialize rules with repetition `"+t+"` for `options.ruleRepetition`, expected `3` or more");return t}function Md(e,t,n){const r=(xo(n)+(n.options.ruleSpaces?" ":"")).repeat(Rd(n));return n.options.ruleSpaces?r.slice(0,-1):r}const wo={blockquote:nd,break:Jr,code:ad,definition:ud,emphasis:fo,hardBreak:Jr,heading:md,html:po,image:ho,imageReference:mo,inlineCode:go,link:yo,linkReference:ko,list:Cd,listItem:Id,paragraph:Ed,root:Td,strong:bo,text:Ad,thematicBreak:Md};function Dd(){return{enter:{table:zd,tableData:ei,tableHeader:ei,tableRow:Nd},exit:{codeText:jd,table:Fd,tableData:cn,tableHeader:cn,tableRow:cn}}}function zd(e){const t=e._align;this.enter({type:"table",align:t.map(function(n){return n==="none"?null:n}),children:[]},e),this.data.inTable=!0}function Fd(e){this.exit(e),this.data.inTable=void 0}function Nd(e){this.enter({type:"tableRow",children:[]},e)}function cn(e){this.exit(e)}function ei(e){this.enter({type:"tableCell",children:[]},e)}function jd(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Bd));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Bd(e,t){return t==="|"?t:e}function Vd(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:d,table:l,tableCell:a,tableRow:s}};function l(p,g,k,w){return c(f(p,k,w),p.align)}function s(p,g,k,w){const v=u(p,k,w),C=c([v]);return C.slice(0,C.indexOf(`
`))}function a(p,g,k,w){const v=k.enter("tableCell"),C=k.enter("phrasing"),P=k.containerPhrasing(p,{...w,before:o,after:o});return C(),v(),P}function c(p,g){return ed(p,{align:g,alignDelimiters:r,padding:n,stringLength:i})}function f(p,g,k){const w=p.children;let v=-1;const C=[],P=g.enter("table");for(;++v<w.length;)C[v]=u(w[v],g,k);return P(),C}function u(p,g,k){const w=p.children;let v=-1;const C=[],P=g.enter("tableRow");for(;++v<w.length;)C[v]=a(w[v],p,g,k);return P(),C}function d(p,g,k){let w=wo.inlineCode(p,g,k);return k.stack.includes("tableCell")&&(w=w.replace(/\|/g,"\\$&")),w}}function Ud(){return{exit:{taskListCheckValueChecked:ti,taskListCheckValueUnchecked:ti,paragraph:Hd}}}function $d(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:qd}}}function ti(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function Hd(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const i=t.children;let o=-1,l;for(;++o<i.length;){const s=i[o];if(s.type==="paragraph"){l=s;break}}l===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function qd(e,t,n,r){const i=e.children[0],o=typeof e.checked=="boolean"&&i&&i.type==="paragraph",l="["+(e.checked?"x":" ")+"] ",s=n.createTracker(r);o&&s.move(l);let a=wo.listItem(e,t,n,{...r,...s.current()});return o&&(a=a.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,c)),a;function c(f){return f+l}}function Wd(){return[Sp(),Hp(),Yp(),Dd(),Ud()]}function Qd(e){return{extensions:[Cp(),qp(e),Kp(),Vd(e),$d()]}}function Dt(e,t,n,r){const i=e.length;let o=0,l;if(t<0?t=-t>i?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)l=Array.from(r),l.unshift(t,n),e.splice(...l);else for(n&&e.splice(t,n);o<r.length;)l=r.slice(o,o+1e4),l.unshift(t,0),e.splice(...l),o+=1e4,t+=1e4}const ni={}.hasOwnProperty;function Yd(e){const t={};let n=-1;for(;++n<e.length;)Kd(t,e[n]);return t}function Kd(e,t){let n;for(n in t){const r=(ni.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n];let o;if(i)for(o in i){ni.call(r,o)||(r[o]=[]);const l=i[o];Zd(r[o],Array.isArray(l)?l:l?[l]:[])}}}function Zd(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Dt(e,0,0,r)}const Gd={tokenize:rh,partial:!0},So={tokenize:ih,partial:!0},Co={tokenize:oh,partial:!0},Po={tokenize:lh,partial:!0},Xd={tokenize:sh,partial:!0},ri={name:"wwwAutolink",tokenize:th,previous:Io},ii={name:"protocolAutolink",tokenize:nh,previous:Eo},Re={name:"emailAutolink",tokenize:eh,previous:_o},_e={};function Jd(){return{text:_e}}let je=48;for(;je<123;)_e[je]=Re,je++,je===58?je=65:je===91&&(je=97);_e[43]=Re,_e[45]=Re,_e[46]=Re,_e[95]=Re,_e[72]=[Re,ii],_e[104]=[Re,ii],_e[87]=[Re,ri],_e[119]=[Re,ri];function eh(e,t,n){const r=this;let i,o;return l;function l(u){return!bn(u)||!_o.call(r,r.previous)||Xn(r.events)?n(u):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),s(u))}function s(u){return bn(u)?(e.consume(u),s):u===64?(e.consume(u),a):n(u)}function a(u){return u===46?e.check(Xd,f,c)(u):u===45||u===95||Yn(u)?(o=!0,e.consume(u),a):f(u)}function c(u){return e.consume(u),i=!0,a}function f(u){return o&&i&&wt(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(u)):n(u)}}function th(e,t,n){const r=this;return i;function i(l){return l!==87&&l!==119||!Io.call(r,r.previous)||Xn(r.events)?n(l):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(Gd,e.attempt(So,e.attempt(Co,o),n),n)(l))}function o(l){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(l)}}function nh(e,t,n){const r=this;let i="",o=!1;return l;function l(u){return(u===72||u===104)&&Eo.call(r,r.previous)&&!Xn(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(u),e.consume(u),s):n(u)}function s(u){if(wt(u)&&i.length<5)return i+=String.fromCodePoint(u),e.consume(u),s;if(u===58){const d=i.toLowerCase();if(d==="http"||d==="https")return e.consume(u),a}return n(u)}function a(u){return u===47?(e.consume(u),o?c:(o=!0,a)):n(u)}function c(u){return u===null||pp(u)||pe(u)||Ue(u)||$t(u)?n(u):e.attempt(So,e.attempt(Co,f),n)(u)}function f(u){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(u)}}function rh(e,t,n){let r=0;return i;function i(l){return(l===87||l===119)&&r<3?(r++,e.consume(l),i):l===46&&r===3?(e.consume(l),o):n(l)}function o(l){return l===null?n(l):t(l)}}function ih(e,t,n){let r,i,o;return l;function l(c){return c===46||c===95?e.check(Po,a,s)(c):c===null||pe(c)||Ue(c)||c!==45&&$t(c)?a(c):(o=!0,e.consume(c),l)}function s(c){return c===95?r=!0:(i=r,r=void 0),e.consume(c),l}function a(c){return i||r||!o?n(c):t(c)}}function oh(e,t){let n=0,r=0;return i;function i(l){return l===40?(n++,e.consume(l),i):l===41&&r<n?o(l):l===33||l===34||l===38||l===39||l===41||l===42||l===44||l===46||l===58||l===59||l===60||l===63||l===93||l===95||l===126?e.check(Po,t,o)(l):l===null||pe(l)||Ue(l)?t(l):(e.consume(l),i)}function o(l){return l===41&&r++,e.consume(l),i}}function lh(e,t,n){return r;function r(s){return s===33||s===34||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===63||s===95||s===126?(e.consume(s),r):s===38?(e.consume(s),o):s===93?(e.consume(s),i):s===60||s===null||pe(s)||Ue(s)?t(s):n(s)}function i(s){return s===null||s===40||s===91||pe(s)||Ue(s)?t(s):r(s)}function o(s){return wt(s)?l(s):n(s)}function l(s){return s===59?(e.consume(s),r):wt(s)?(e.consume(s),l):n(s)}}function sh(e,t,n){return r;function r(o){return e.consume(o),i}function i(o){return Yn(o)?n(o):t(o)}}function Io(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||pe(e)}function Eo(e){return!wt(e)}function _o(e){return!(e===47||bn(e))}function bn(e){return e===43||e===45||e===46||e===95||Yn(e)}function Xn(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function ah(e,t,n){const r=[];let i=-1;for(;++i<e.length;){const o=e[i].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}function De(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let o=0;return l;function l(a){return Me(a)?(e.enter(n),s(a)):t(a)}function s(a){return Me(a)&&o++<i?(e.consume(a),s):(e.exit(n),t(a))}}const ch={partial:!0,tokenize:uh};function uh(e,t,n){return r;function r(o){return Me(o)?De(e,i,"linePrefix")(o):i(o)}function i(o){return o===null||tt(o)?t(o):n(o)}}const fh={tokenize:kh,partial:!0};function ph(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:gh,continuation:{tokenize:vh},exit:yh}},text:{91:{name:"gfmFootnoteCall",tokenize:mh},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:dh,resolveTo:hh}}}}function dh(e,t,n){const r=this;let i=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let l;for(;i--;){const a=r.events[i][1];if(a.type==="labelImage"){l=a;break}if(a.type==="gfmFootnoteCall"||a.type==="labelLink"||a.type==="label"||a.type==="image"||a.type==="link")break}return s;function s(a){if(!l||!l._balanced)return n(a);const c=Pt(r.sliceSerialize({start:l.end,end:r.now()}));return c.codePointAt(0)!==94||!o.includes(c.slice(1))?n(a):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a))}}function hh(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},l={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",o,t],["enter",l,t],["exit",l,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...s),e}function mh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,l;return s;function s(u){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),a}function a(u){return u!==94?n(u):(e.enter("gfmFootnoteCallMarker"),e.consume(u),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",c)}function c(u){if(o>999||u===93&&!l||u===null||u===91||pe(u))return n(u);if(u===93){e.exit("chunkString");const d=e.exit("gfmFootnoteCallString");return i.includes(Pt(r.sliceSerialize(d)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(u),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(u)}return pe(u)||(l=!0),o++,e.consume(u),u===92?f:c}function f(u){return u===91||u===92||u===93?(e.consume(u),o++,c):c(u)}}function gh(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,l=0,s;return a;function a(g){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),c}function c(g){return g===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",f):n(g)}function f(g){if(l>999||g===93&&!s||g===null||g===91||pe(g))return n(g);if(g===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return o=Pt(r.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(g),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return pe(g)||(s=!0),l++,e.consume(g),g===92?u:f}function u(g){return g===91||g===92||g===93?(e.consume(g),l++,f):f(g)}function d(g){return g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),i.includes(o)||i.push(o),De(e,p,"gfmFootnoteDefinitionWhitespace")):n(g)}function p(g){return t(g)}}function vh(e,t,n){return e.check(ch,t,e.attempt(fh,t,n))}function yh(e){e.exit("gfmFootnoteDefinition")}function kh(e,t,n){const r=this;return De(e,i,"gfmFootnoteDefinitionIndent",5);function i(o){const l=r.events[r.events.length-1];return l&&l[1].type==="gfmFootnoteDefinitionIndent"&&l[2].sliceSerialize(l[1],!0).length===4?t(o):n(o)}}function xh(e){let t=(e||{}).singleTilde;const n={name:"strikethrough",tokenize:i,resolveAll:r};return t==null&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}};function r(o,l){let s=-1;for(;++s<o.length;)if(o[s][0]==="enter"&&o[s][1].type==="strikethroughSequenceTemporary"&&o[s][1]._close){let a=s;for(;a--;)if(o[a][0]==="exit"&&o[a][1].type==="strikethroughSequenceTemporary"&&o[a][1]._open&&o[s][1].end.offset-o[s][1].start.offset===o[a][1].end.offset-o[a][1].start.offset){o[s][1].type="strikethroughSequence",o[a][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[a][1].start),end:Object.assign({},o[s][1].end)},f={type:"strikethroughText",start:Object.assign({},o[a][1].end),end:Object.assign({},o[s][1].start)},u=[["enter",c,l],["enter",o[a][1],l],["exit",o[a][1],l],["enter",f,l]],d=l.parser.constructs.insideSpan.null;d&&Dt(u,u.length,0,ah(d,o.slice(a+1,s),l)),Dt(u,u.length,0,[["exit",f,l],["enter",o[s][1],l],["exit",o[s][1],l],["exit",c,l]]),Dt(o,a-1,s-a+3,u),s=a+u.length-2;break}}for(s=-1;++s<o.length;)o[s][1].type==="strikethroughSequenceTemporary"&&(o[s][1].type="data");return o}function i(o,l,s){const a=this.previous,c=this.events;let f=0;return u;function u(p){return a===126&&c[c.length-1][1].type!=="characterEscape"?s(p):(o.enter("strikethroughSequenceTemporary"),d(p))}function d(p){const g=Nt(a);if(p===126)return f>1?s(p):(o.consume(p),f++,d);if(f<2&&!t)return s(p);const k=o.exit("strikethroughSequenceTemporary"),w=Nt(p);return k._open=!w||w===2&&!!g,k._close=!g||g===2&&!!w,l(p)}}}class bh{constructor(){this.map=[]}add(t,n,r){wh(this,t,n,r)}consume(t){if(this.map.sort(function(o,l){return o[0]-l[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let i=r.pop();for(;i;){for(const o of i)t.push(o);i=r.pop()}this.map.length=0}}function wh(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}}function Sh(e,t){let n=!1;const r=[];for(;t<e.length;){const i=e[t];if(n){if(i[0]==="enter")i[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(i[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(i[1].type==="tableDelimiterRow")break}else i[0]==="enter"&&i[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function Ch(){return{flow:{null:{name:"table",tokenize:Ph,resolveAll:Ih}}}}function Ph(e,t,n){const r=this;let i=0,o=0,l;return s;function s(y){let _=r.events.length-1;for(;_>-1;){const E=r.events[_][1].type;if(E==="lineEnding"||E==="linePrefix")_--;else break}const L=_>-1?r.events[_][1].type:null,O=L==="tableHead"||L==="tableRow"?b:a;return O===b&&r.parser.lazy[r.now().line]?n(y):O(y)}function a(y){return e.enter("tableHead"),e.enter("tableRow"),c(y)}function c(y){return y===124||(l=!0,o+=1),f(y)}function f(y){return y===null?n(y):tt(y)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),p):n(y):Me(y)?De(e,f,"whitespace")(y):(o+=1,l&&(l=!1,i+=1),y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),l=!0,f):(e.enter("data"),u(y)))}function u(y){return y===null||y===124||pe(y)?(e.exit("data"),f(y)):(e.consume(y),y===92?d:u)}function d(y){return y===92||y===124?(e.consume(y),u):u(y)}function p(y){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(y):(e.enter("tableDelimiterRow"),l=!1,Me(y)?De(e,g,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(y):g(y))}function g(y){return y===45||y===58?w(y):y===124?(l=!0,e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),k):z(y)}function k(y){return Me(y)?De(e,w,"whitespace")(y):w(y)}function w(y){return y===58?(o+=1,l=!0,e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),v):y===45?(o+=1,v(y)):y===null||tt(y)?T(y):z(y)}function v(y){return y===45?(e.enter("tableDelimiterFiller"),C(y)):z(y)}function C(y){return y===45?(e.consume(y),C):y===58?(l=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(y),e.exit("tableDelimiterMarker"),P):(e.exit("tableDelimiterFiller"),P(y))}function P(y){return Me(y)?De(e,T,"whitespace")(y):T(y)}function T(y){return y===124?g(y):y===null||tt(y)?!l||i!==o?z(y):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(y)):z(y)}function z(y){return n(y)}function b(y){return e.enter("tableRow"),F(y)}function F(y){return y===124?(e.enter("tableCellDivider"),e.consume(y),e.exit("tableCellDivider"),F):y===null||tt(y)?(e.exit("tableRow"),t(y)):Me(y)?De(e,F,"whitespace")(y):(e.enter("data"),$(y))}function $(y){return y===null||y===124||pe(y)?(e.exit("data"),F(y)):(e.consume(y),y===92?B:$)}function B(y){return y===92||y===124?(e.consume(y),$):$(y)}}function Ih(e,t){let n=-1,r=!0,i=0,o=[0,0,0,0],l=[0,0,0,0],s=!1,a=0,c,f,u;const d=new bh;for(;++n<e.length;){const p=e[n],g=p[1];p[0]==="enter"?g.type==="tableHead"?(s=!1,a!==0&&(oi(d,t,a,c,f),f=void 0,a=0),c={type:"table",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",c,t]])):g.type==="tableRow"||g.type==="tableDelimiterRow"?(r=!0,u=void 0,o=[0,0,0,0],l=[0,n+1,0,0],s&&(s=!1,f={type:"tableBody",start:Object.assign({},g.start),end:Object.assign({},g.end)},d.add(n,0,[["enter",f,t]])),i=g.type==="tableDelimiterRow"?2:f?3:1):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")?(r=!1,l[2]===0&&(o[1]!==0&&(l[0]=l[1],u=Lt(d,t,o,i,void 0,u),o=[0,0,0,0]),l[2]=n)):g.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(l[0]=l[1],u=Lt(d,t,o,i,void 0,u)),o=l,l=[o[1],n,0,0])):g.type==="tableHead"?(s=!0,a=n):g.type==="tableRow"||g.type==="tableDelimiterRow"?(a=n,o[1]!==0?(l[0]=l[1],u=Lt(d,t,o,i,n,u)):l[1]!==0&&(u=Lt(d,t,l,i,n,u)),i=0):i&&(g.type==="data"||g.type==="tableDelimiterMarker"||g.type==="tableDelimiterFiller")&&(l[3]=n)}for(a!==0&&oi(d,t,a,c,f),d.consume(t.events),n=-1;++n<t.events.length;){const p=t.events[n];p[0]==="enter"&&p[1].type==="table"&&(p[1]._align=Sh(t.events,n))}return e}function Lt(e,t,n,r,i,o){const l=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",s="tableContent";n[0]!==0&&(o.end=Object.assign({},Je(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const a=Je(t.events,n[1]);if(o={type:l,start:Object.assign({},a),end:Object.assign({},a)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const c=Je(t.events,n[2]),f=Je(t.events,n[3]),u={type:s,start:Object.assign({},c),end:Object.assign({},f)};if(e.add(n[2],0,[["enter",u,t]]),r!==2){const d=t.events[n[2]],p=t.events[n[3]];if(d[1].end=Object.assign({},p[1].end),d[1].type="chunkText",d[1].contentType="text",n[3]>n[2]+1){const g=n[2]+1,k=n[3]-n[2]-1;e.add(g,k,[])}}e.add(n[3]+1,0,[["exit",u,t]])}return i!==void 0&&(o.end=Object.assign({},Je(t.events,i)),e.add(i,0,[["exit",o,t]]),o=void 0),o}function oi(e,t,n,r,i){const o=[],l=Je(t.events,n);i&&(i.end=Object.assign({},l),o.push(["exit",i,t])),r.end=Object.assign({},l),o.push(["exit",r,t]),e.add(n+1,0,o)}function Je(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Eh={name:"tasklistCheck",tokenize:Th};function _h(){return{text:{91:Eh}}}function Th(e,t,n){const r=this;return i;function i(a){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(a):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),o)}function o(a){return pe(a)?(e.enter("taskListCheckValueUnchecked"),e.consume(a),e.exit("taskListCheckValueUnchecked"),l):a===88||a===120?(e.enter("taskListCheckValueChecked"),e.consume(a),e.exit("taskListCheckValueChecked"),l):n(a)}function l(a){return a===93?(e.enter("taskListCheckMarker"),e.consume(a),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(a)}function s(a){return tt(a)?t(a):Me(a)?e.check({tokenize:Lh},t,n)(a):n(a)}}function Lh(e,t,n){return De(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Oh(e){return Yd([Jd(),ph(),xh(e),Ch(),_h()])}const Ah={};function Rh(e){const t=this,n=e||Ah,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),l=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Oh(n)),o.push(Wd()),l.push(Qd(n))}const Mh=ai({__name:"NcRichTextCopyButton",props:{contentId:{}},setup(e){const{copy:t,icon:n,altText:r}=xl(()=>document.getElementById(e.contentId).textContent);return(i,o)=>(A(),ee(Cn,{variant:"tertiary",size:"small","aria-label":et(r),title:et(r),onClick:et(t)},{icon:ve(()=>[ie(sl,{path:et(n),inline:""},null,8,["path"])]),_:1},8,["aria-label","title","onClick"]))}});function Dh(e){return e.type==="text"}const zh=function(e){qe(e,Dh,(t,n)=>{const r=n.at(-1),i=r.children.indexOf(t),o=t.value.split(/(\{[a-z\-_.0-9]+\})/ig).map(l=>{const s=l.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!s)return cr("text",l);const[,a]=s;return cr("element",{tagName:`#${a}`,children:[]})});r.children.splice(i,1,...o)})},Fh=()=>zh;function Nh(e){return["code","inlineCode"].includes(e.type)}const jh=function(){return function(e){qe(e,Nh,(t,n)=>{const r=n.at(-1),i=r.children.indexOf(t);return r.children.splice(i,1,{...t,value:""}),[yi,i+1]})}};function Bh(e){return["text","code","inlineCode"].includes(e.type)}const Vh=function(){return function(e){qe(e,Bh,(t,n)=>{const r=n.at(-1),i=r.children.indexOf(t);return r.children.splice(i,1,{...t,value:t.value.replace(/&lt;/gmi,"<").replace(/&gt;/gmi,">")}),[yi,i+1]})}},Uh=["http","https","mailto","tel"],wn=Ce(null);async function $h(){const e=await Ho(()=>import("./index-CL3thlzm.chunk.mjs"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]),import.meta.url);wn.value=e.default}const Hh={name:"NcRichText",components:{NcReferenceList:Mt},props:{text:{type:String,default:""},arguments:{type:Object,default:()=>({})},referenceLimit:{type:Number,default:0},referenceInteractive:{type:Boolean,default:!0},referenceInteractiveOptIn:{type:Boolean,default:!1},references:{type:Array,default:null},useMarkdown:{type:Boolean,default:!1},useExtendedMarkdown:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1},autolink:{type:Boolean,default:!0}},emits:["interactTodo"],data(){return{parentId:At()}},methods:{renderPlaintext(){const e=this.text.split(/(\{[a-z\-_.0-9]+\})/ig).map(t=>{const n=t.match(/^\{([a-z\-_.0-9]+)\}$/i);if(!n)return this.prepareTextNode(t);const r=n[1],i=this.arguments[r];if(typeof i=="object"){const{component:o,props:l}=i;return Z(typeof o=="string"?W(o):o,{...l,class:"rich-text--component"})}return i?Z("span",{class:"rich-text--fallback"},i):t});return Z("div",{class:"rich-text--wrapper"},[Z("div",{},e.flat()),this.referenceLimit>0?Z("div",{class:"rich-text--reference-widget"},[Z(Mt,{text:this.text,referenceData:this.references,interactive:this.referenceInteractive,interactiveOptIn:this.referenceInteractiveOptIn})]):null])},renderMarkdown(){const e=Qr().use(Nr).use(ml,{autolink:this.autolink,useMarkdown:this.useMarkdown,useExtendedMarkdown:this.useExtendedMarkdown}).use(Vh).use(this.useExtendedMarkdown?Rh:void 0).use(tc).use(Uf,{except:Uh}).use(Bf,{handlers:{component(t,n){return t(n,n.component,{value:n.value})}}}).use(this.useExtendedMarkdown?wn.value:void 0).use(Fh).use(ra,{target:"_blank",rel:["noopener noreferrer"]}).use(Qa,{Fragment:ui,jsx:this.createElement,jsxs:this.createElement,elementAttributeNameCase:"html",prefix:!1}).processSync(this.text.replace(/<[^>]+>/g,t=>t.replace(/</g,"&lt;")).replace(/&gt;/gmi,">")).result;return Z("div",{class:"rich-text--wrapper rich-text--wrapper-markdown"},[e,this.referenceLimit>0?Z("div",{class:"rich-text--reference-widget"},[Z(Mt,{text:this.prepareReferenceSource(this.text),referenceData:this.references,interactive:this.referenceInteractive,interactiveOptIn:this.referenceInteractiveOptIn})]):null])},prepareTextNode(e){return this.autolink&&(e=hl(e)),Array.isArray(e)?e.map(t=>{if(typeof t=="string")return t;const{component:n,props:r}=t;return Z(n,{...r,class:"rich-text--component"})}):e},prepareReferenceSource(e){if(!this.useMarkdown&&!this.useExtendedMarkdown)return e;const t=Qr();return t.compiler=n=>Bt(n),t.use(Nr).use(jh).processSync(e.replace(/\s/g," ")).value},createElement(e,t,n){n&&(t.key=n);const r=t.children??[];if(delete t.children,!String(e).startsWith("#")){["h1","h2","h3","h4","h5","h6"].includes(String(e))&&(e=`h${Math.min(+String(e)[1]+3,6)}`);let o=null;if(this.useExtendedMarkdown){if(String(e)==="code"&&!wn.value&&t?.class?.includes("language")&&$h(),String(e)==="pre"&&r&&String(r.type)==="code"){const l=this.parentId+"-code-block-"+At();return Z("p",{class:"rich-text__code-block"},[Z(e,{...t,id:l},r),Z(Mh,{class:"rich-text__code-block-button",contentId:l})])}if(String(e)==="li"&&Array.isArray(r)&&r.length!==0&&r[0].type==="input"&&r[0].props.type==="checkbox"){const[l,,...s]=r,a=s.findIndex(d=>["ul","ol","li","blockquote","pre"].includes(d.type));a!==-1&&(o=s[a],s.splice(a));const c=this.parentId+"-markdown-input-"+At(),f={...l.props};delete f.checked;const u=Z(Yo,{...f,modelValue:l.props.checked,id:c,disabled:!this.interactive,"onUpdate:modelValue":()=>{this.$emit("interactTodo",c)}},{default:()=>s});return Z(e,t,[u,o])}}if(String(e)==="a"){const l=vi(this.$router,t.href);return l?(delete t.href,delete t.target,Z(fi,{...t,to:l},{default:()=>r})):/^(https?:\/\/|tel:|mailto:)/.test(t.href)?(t.href=t.href.trim(),Z(dl,t,r)):(delete t.href,delete t.target,Z("span",t,r))}return Z(e,t,r)}const i=this.arguments[e.slice(1)];return i?i.component?Z(typeof i.component=="string"?W(i.component):i.component,{...t,...i.props,class:"rich-text--component"},{default:()=>r}):Z("span",{...t},[i]):Z("span",{...t,class:"rich-text--fallback"},[`{${e.slice(1)}}`])}},render(){return this.useMarkdown||this.useExtendedMarkdown?this.renderMarkdown():this.renderPlaintext()}},li=Se(Hh,[["__scopeId","data-v-80e57a29"]]),im=Object.freeze(Object.defineProperty({__proto__:null,NcCustomPickerRenderResult:Pl,NcReferenceList:Mt,NcReferencePicker:_i,NcReferencePickerModal:An,NcReferenceWidget:On,NcRichText:li,NcSearch:Ei,anyLinkProviderId:En,default:li,getLinkWithPicker:Fs,getProvider:_n,getProviders:Tn,getReferenceWithPicker:Ns,isCustomPickerElementRegistered:ot,isWidgetRegistered:bi,registerCustomPickerElement:wi,registerWidget:ki,renderCustomPickerElement:Si,renderWidget:xi,searchProvider:Ii,sortProviders:Pi},Symbol.toStringTag,{value:"Module"}));export{Pl as N,wi as a,li as b,Ri as c,Fs as g,im as i,ki as r,Ii as s,xt as v};
//# sourceMappingURL=index-0f4aIjP5.chunk.mjs.map

Youez - 2016 - github.com/yon3zu
LinuXploit