@harness-engineering/dashboard 0.6.7 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,305 @@
1
+ import{R as Yt,r as Ze,g as Ds,j as En}from"./react-Dauv-dA-.js";function Ni(e,t){e.indexOf(t)===-1&&e.push(t)}function un(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Fe=(e,t,n)=>n>t?t:n<e?e:n;let Bi=()=>{};const je={},Is=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Rs(e){return typeof e=="object"&&e!==null}const Ls=e=>/^0[^.\s]+$/u.test(e);function Fs(e){let t;return()=>(t===void 0&&(t=e()),t)}const $e=e=>e,bu=(e,t)=>n=>t(e(n)),ji=(...e)=>e.reduce(bu),$i=(e,t,n)=>{const i=t-e;return i===0?1:(n-e)/i};class Ui{constructor(){this.subscriptions=[]}add(t){return Ni(this.subscriptions,t),()=>un(this.subscriptions,t)}notify(t,n,i){const r=this.subscriptions.length;if(r)if(r===1)this.subscriptions[0](t,n,i);else for(let s=0;s<r;s++){const o=this.subscriptions[s];o&&o(t,n,i)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const ve=e=>e*1e3,Ce=e=>e/1e3;function Vs(e,t){return t?e*(1e3/t):0}const Os=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,wu=1e-7,Su=12;function Tu(e,t,n,i,r){let s,o,a=0;do o=t+(n-t)/2,s=Os(o,i,r)-e,s>0?n=o:t=o;while(Math.abs(s)>wu&&++a<Su);return o}function Ut(e,t,n,i){if(e===t&&n===i)return $e;const r=s=>Tu(s,0,1,e,n);return s=>s===0||s===1?s:Os(r(s),t,i)}const _s=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,zs=e=>t=>1-e(1-t),Ns=Ut(.33,1.53,.69,.99),Hi=zs(Ns),Bs=_s(Hi),js=e=>e>=1?1:(e*=2)<1?.5*Hi(e):.5*(2-Math.pow(2,-10*(e-1))),qi=e=>1-Math.sin(Math.acos(e)),$s=zs(qi),Us=_s(qi),Cu=Ut(.42,0,1,1),vu=Ut(0,0,.58,1),Hs=Ut(.42,0,.58,1),Au=e=>Array.isArray(e)&&typeof e[0]!="number",qs=e=>Array.isArray(e)&&typeof e[0]=="number",Eu={linear:$e,easeIn:Cu,easeInOut:Hs,easeOut:vu,circIn:qi,circInOut:Us,circOut:$s,backIn:Hi,backInOut:Bs,backOut:Ns,anticipate:js},Pu=e=>typeof e=="string",Er=e=>{if(qs(e)){Bi(e.length===4);const[t,n,i,r]=e;return Ut(t,n,i,r)}else if(Pu(e))return Eu[e];return e},Gt=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function Mu(e,t){let n=new Set,i=new Set,r=!1,s=!1;const o=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function l(c){o.has(c)&&(u.schedule(c),e()),c(a)}const u={schedule:(c,f=!1,p=!1)=>{const d=p&&r?n:i;return f&&o.add(c),d.add(c),c},cancel:c=>{i.delete(c),o.delete(c)},process:c=>{if(a=c,r){s=!0;return}r=!0;const f=n;n=i,i=f,n.forEach(l),n.clear(),r=!1,s&&(s=!1,u.process(c))}};return u}const Du=40;function Ws(e,t){let n=!1,i=!0;const r={delta:0,timestamp:0,isProcessing:!1},s=()=>n=!0,o=Gt.reduce((w,v)=>(w[v]=Mu(s),w),{}),{setup:a,read:l,resolveKeyframes:u,preUpdate:c,update:f,preRender:p,render:h,postRender:d}=o,k=()=>{const w=je.useManualTiming,v=w?r.timestamp:performance.now();n=!1,w||(r.delta=i?1e3/60:Math.max(Math.min(v-r.timestamp,Du),1)),r.timestamp=v,r.isProcessing=!0,a.process(r),l.process(r),u.process(r),c.process(r),f.process(r),p.process(r),h.process(r),d.process(r),r.isProcessing=!1,n&&t&&(i=!1,e(k))},b=()=>{n=!0,i=!0,r.isProcessing||e(k)};return{schedule:Gt.reduce((w,v)=>{const A=o[v];return w[v]=(S,O=!1,D=!1)=>(n||b(),A.schedule(S,O,D)),w},{}),cancel:w=>{for(let v=0;v<Gt.length;v++)o[Gt[v]].cancel(w)},state:r,steps:o}}const{schedule:oe,cancel:Je,state:le,steps:Pn}=Ws(typeof requestAnimationFrame<"u"?requestAnimationFrame:$e,!0);let nn;function Iu(){nn=void 0}const ce={now:()=>(nn===void 0&&ce.set(le.isProcessing||je.useManualTiming?le.timestamp:performance.now()),nn),set:e=>{nn=e,queueMicrotask(Iu)}},Ks=e=>t=>typeof t=="string"&&t.startsWith(e),Xs=Ks("--"),Ru=Ks("var(--"),Wi=e=>Ru(e)?Lu.test(e.split("/*")[0].trim()):!1,Lu=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Pr(e){return typeof e!="string"?!1:e.split("/*")[0].includes("var(--")}const gt={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},Ot={...gt,transform:e=>Fe(0,1,e)},Zt={...gt,default:1},Dt=e=>Math.round(e*1e5)/1e5,Ki=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function Fu(e){return e==null}const Vu=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Xi=(e,t)=>n=>!!(typeof n=="string"&&Vu.test(n)&&n.startsWith(e)||t&&!Fu(n)&&Object.prototype.hasOwnProperty.call(n,t)),Ys=(e,t,n)=>i=>{if(typeof i!="string")return i;const[r,s,o,a]=i.match(Ki);return{[e]:parseFloat(r),[t]:parseFloat(s),[n]:parseFloat(o),alpha:a!==void 0?parseFloat(a):1}},Ou=e=>Fe(0,255,e),Mn={...gt,transform:e=>Math.round(Ou(e))},Ye={test:Xi("rgb","red"),parse:Ys("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+Mn.transform(e)+", "+Mn.transform(t)+", "+Mn.transform(n)+", "+Dt(Ot.transform(i))+")"};function _u(e){let t="",n="",i="",r="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),r=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),r=e.substring(4,5),t+=t,n+=n,i+=i,r+=r),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:r?parseInt(r,16)/255:1}}const si={test:Xi("#"),parse:_u,transform:Ye.transform},Ht=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ze=Ht("deg"),Le=Ht("%"),V=Ht("px"),zu=Ht("vh"),Nu=Ht("vw"),Mr={...Le,parse:e=>Le.parse(e)/100,transform:e=>Le.transform(e*100)},lt={test:Xi("hsl","hue"),parse:Ys("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+Le.transform(Dt(t))+", "+Le.transform(Dt(n))+", "+Dt(Ot.transform(i))+")"},te={test:e=>Ye.test(e)||si.test(e)||lt.test(e),parse:e=>Ye.test(e)?Ye.parse(e):lt.test(e)?lt.parse(e):si.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ye.transform(e):lt.transform(e),getAnimatableNone:e=>{const t=te.parse(e);return t.alpha=0,te.transform(t)}},Bu=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function ju(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(Ki))==null?void 0:t.length)||0)+(((n=e.match(Bu))==null?void 0:n.length)||0)>0}const Gs="number",Zs="color",$u="var",Uu="var(",Dr="${}",Hu=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function pt(e){const t=e.toString(),n=[],i={color:[],number:[],var:[]},r=[];let s=0;const a=t.replace(Hu,l=>(te.test(l)?(i.color.push(s),r.push(Zs),n.push(te.parse(l))):l.startsWith(Uu)?(i.var.push(s),r.push($u),n.push(l)):(i.number.push(s),r.push(Gs),n.push(parseFloat(l))),++s,Dr)).split(Dr);return{values:n,split:a,indexes:i,types:r}}function qu(e){return pt(e).values}function Qs({split:e,types:t}){const n=e.length;return i=>{let r="";for(let s=0;s<n;s++)if(r+=e[s],i[s]!==void 0){const o=t[s];o===Gs?r+=Dt(i[s]):o===Zs?r+=te.transform(i[s]):r+=i[s]}return r}}function Wu(e){return Qs(pt(e))}const Ku=e=>typeof e=="number"?0:te.test(e)?te.getAnimatableNone(e):e,Xu=(e,t)=>typeof e=="number"?t!=null&&t.trim().endsWith("/")?e:0:Ku(e);function Yu(e){const t=pt(e);return Qs(t)(t.values.map((i,r)=>Xu(i,t.split[r])))}const Ae={test:ju,parse:qu,createTransformer:Wu,getAnimatableNone:Yu};function Dn(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gu({hue:e,saturation:t,lightness:n,alpha:i}){e/=360,t/=100,n/=100;let r=0,s=0,o=0;if(!t)r=s=o=n;else{const a=n<.5?n*(1+t):n+t-n*t,l=2*n-a;r=Dn(l,a,e+1/3),s=Dn(l,a,e),o=Dn(l,a,e-1/3)}return{red:Math.round(r*255),green:Math.round(s*255),blue:Math.round(o*255),alpha:i}}function cn(e,t){return n=>n>0?t:e}const Q=(e,t,n)=>e+(t-e)*n,In=(e,t,n)=>{const i=e*e,r=n*(t*t-i)+i;return r<0?0:Math.sqrt(r)},Zu=[si,Ye,lt],Qu=e=>Zu.find(t=>t.test(e));function Ir(e){const t=Qu(e);if(!t)return!1;let n=t.parse(e);return t===lt&&(n=Gu(n)),n}const Rr=(e,t)=>{const n=Ir(e),i=Ir(t);if(!n||!i)return cn(e,t);const r={...n};return s=>(r.red=In(n.red,i.red,s),r.green=In(n.green,i.green,s),r.blue=In(n.blue,i.blue,s),r.alpha=Q(n.alpha,i.alpha,s),Ye.transform(r))},ai=new Set(["none","hidden"]);function Ju(e,t){return ai.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function ec(e,t){return n=>Q(e,t,n)}function Yi(e){return typeof e=="number"?ec:typeof e=="string"?Wi(e)?cn:te.test(e)?Rr:ic:Array.isArray(e)?Js:typeof e=="object"?te.test(e)?Rr:tc:cn}function Js(e,t){const n=[...e],i=n.length,r=e.map((s,o)=>Yi(s)(s,t[o]));return s=>{for(let o=0;o<i;o++)n[o]=r[o](s);return n}}function tc(e,t){const n={...e,...t},i={};for(const r in n)e[r]!==void 0&&t[r]!==void 0&&(i[r]=Yi(e[r])(e[r],t[r]));return r=>{for(const s in i)n[s]=i[s](r);return n}}function nc(e,t){const n=[],i={color:0,var:0,number:0};for(let r=0;r<t.values.length;r++){const s=t.types[r],o=e.indexes[s][i[s]],a=e.values[o]??0;n[r]=a,i[s]++}return n}const ic=(e,t)=>{const n=Ae.createTransformer(t),i=pt(e),r=pt(t);return i.indexes.var.length===r.indexes.var.length&&i.indexes.color.length===r.indexes.color.length&&i.indexes.number.length>=r.indexes.number.length?ai.has(e)&&!r.values.length||ai.has(t)&&!i.values.length?Ju(e,t):ji(Js(nc(i,r),r.values),n):cn(e,t)};function ea(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?Q(e,t,n):Yi(e)(e,t)}const rc=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>oe.update(t,n),stop:()=>Je(t),now:()=>le.isProcessing?le.timestamp:ce.now()}},ta=(e,t,n=10)=>{let i="";const r=Math.max(Math.round(t/n),2);for(let s=0;s<r;s++)i+=Math.round(e(s/(r-1))*1e4)/1e4+", ";return`linear(${i.substring(0,i.length-2)})`},fn=2e4;function Gi(e){let t=0;const n=50;let i=e.next(t);for(;!i.done&&t<fn;)t+=n,i=e.next(t);return t>=fn?1/0:t}function oc(e,t=100,n){const i=n({...e,keyframes:[0,t]}),r=Math.min(Gi(i),fn);return{type:"keyframes",ease:s=>i.next(r*s).value/t,duration:Ce(r)}}const Z={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function li(e,t){return e*Math.sqrt(1-t*t)}const sc=12;function ac(e,t,n){let i=n;for(let r=1;r<sc;r++)i=i-e(i)/t(i);return i}const Rn=.001;function lc({duration:e=Z.duration,bounce:t=Z.bounce,velocity:n=Z.velocity,mass:i=Z.mass}){let r,s,o=1-t;o=Fe(Z.minDamping,Z.maxDamping,o),e=Fe(Z.minDuration,Z.maxDuration,Ce(e)),o<1?(r=u=>{const c=u*o,f=c*e,p=c-n,h=li(u,o),d=Math.exp(-f);return Rn-p/h*d},s=u=>{const f=u*o*e,p=f*n+n,h=Math.pow(o,2)*Math.pow(u,2)*e,d=Math.exp(-f),k=li(Math.pow(u,2),o);return(-r(u)+Rn>0?-1:1)*((p-h)*d)/k}):(r=u=>{const c=Math.exp(-u*e),f=(u-n)*e+1;return-Rn+c*f},s=u=>{const c=Math.exp(-u*e),f=(n-u)*(e*e);return c*f});const a=5/e,l=ac(r,s,a);if(e=ve(e),isNaN(l))return{stiffness:Z.stiffness,damping:Z.damping,duration:e};{const u=Math.pow(l,2)*i;return{stiffness:u,damping:o*2*Math.sqrt(i*u),duration:e}}}const uc=["duration","bounce"],cc=["stiffness","damping","mass"];function Lr(e,t){return t.some(n=>e[n]!==void 0)}function fc(e){let t={velocity:Z.velocity,stiffness:Z.stiffness,damping:Z.damping,mass:Z.mass,isResolvedFromDuration:!1,...e};if(!Lr(e,cc)&&Lr(e,uc))if(t.velocity=0,e.visualDuration){const n=e.visualDuration,i=2*Math.PI/(n*1.2),r=i*i,s=2*Fe(.05,1,1-(e.bounce||0))*Math.sqrt(r);t={...t,mass:Z.mass,stiffness:r,damping:s}}else{const n=lc({...e,velocity:0});t={...t,...n,mass:Z.mass},t.isResolvedFromDuration=!0}return t}function hn(e=Z.visualDuration,t=Z.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:i,restDelta:r}=n;const s=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],a={done:!1,value:s},{stiffness:l,damping:u,mass:c,duration:f,velocity:p,isResolvedFromDuration:h}=fc({...n,velocity:-Ce(n.velocity||0)}),d=p||0,k=u/(2*Math.sqrt(l*c)),b=o-s,g=Ce(Math.sqrt(l/c)),T=Math.abs(b)<5;i||(i=T?Z.restSpeed.granular:Z.restSpeed.default),r||(r=T?Z.restDelta.granular:Z.restDelta.default);let w,v,A,S,O,D;if(k<1)A=li(g,k),S=(d+k*g*b)/A,w=x=>{const P=Math.exp(-k*g*x);return o-P*(S*Math.sin(A*x)+b*Math.cos(A*x))},O=k*g*S+b*A,D=k*g*b-S*A,v=x=>Math.exp(-k*g*x)*(O*Math.sin(A*x)+D*Math.cos(A*x));else if(k===1){w=P=>o-Math.exp(-g*P)*(b+(d+g*b)*P);const x=d+g*b;v=P=>Math.exp(-g*P)*(g*x*P-d)}else{const x=g*Math.sqrt(k*k-1);w=L=>{const M=Math.exp(-k*g*L),$=Math.min(x*L,300);return o-M*((d+k*g*b)*Math.sinh($)+x*b*Math.cosh($))/x};const P=(d+k*g*b)/x,I=k*g*P-b*x,F=k*g*b-P*x;v=L=>{const M=Math.exp(-k*g*L),$=Math.min(x*L,300);return M*(I*Math.sinh($)+F*Math.cosh($))}}const _={calculatedDuration:h&&f||null,velocity:x=>ve(v(x)),next:x=>{if(!h&&k<1){const I=Math.exp(-k*g*x),F=Math.sin(A*x),L=Math.cos(A*x),M=o-I*(S*F+b*L),$=ve(I*(O*F+D*L));return a.done=Math.abs($)<=i&&Math.abs(o-M)<=r,a.value=a.done?o:M,a}const P=w(x);if(h)a.done=x>=f;else{const I=ve(v(x));a.done=Math.abs(I)<=i&&Math.abs(o-P)<=r}return a.value=a.done?o:P,a},toString:()=>{const x=Math.min(Gi(_),fn),P=ta(I=>_.next(x*I).value,x,30);return x+"ms "+P},toTransition:()=>{}};return _}hn.applyToOptions=e=>{const t=oc(e,100,hn);return e.ease=t.ease,e.duration=ve(t.duration),e.type="keyframes",e};const hc=5;function na(e,t,n){const i=Math.max(t-hc,0);return Vs(n-e(i),t-i)}function ui({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:r=10,bounceStiffness:s=500,modifyTarget:o,min:a,max:l,restDelta:u=.5,restSpeed:c}){const f=e[0],p={done:!1,value:f},h=D=>a!==void 0&&D<a||l!==void 0&&D>l,d=D=>a===void 0?l:l===void 0||Math.abs(a-D)<Math.abs(l-D)?a:l;let k=n*t;const b=f+k,g=o===void 0?b:o(b);g!==b&&(k=g-f);const T=D=>-k*Math.exp(-D/i),w=D=>g+T(D),v=D=>{const _=T(D),x=w(D);p.done=Math.abs(_)<=u,p.value=p.done?g:x};let A,S;const O=D=>{h(p.value)&&(A=D,S=hn({keyframes:[p.value,d(p.value)],velocity:na(w,D,p.value),damping:r,stiffness:s,restDelta:u,restSpeed:c}))};return O(0),{calculatedDuration:null,next:D=>{let _=!1;return!S&&A===void 0&&(_=!0,v(D),O(D)),A!==void 0&&D>=A?S.next(D-A):(!_&&v(D),p)}}}function pc(e,t,n){const i=[],r=n||je.mix||ea,s=e.length-1;for(let o=0;o<s;o++){let a=r(e[o],e[o+1]);if(t){const l=Array.isArray(t)?t[o]||$e:t;a=ji(l,a)}i.push(a)}return i}function ia(e,t,{clamp:n=!0,ease:i,mixer:r}={}){const s=e.length;if(Bi(s===t.length),s===1)return()=>t[0];if(s===2&&t[0]===t[1])return()=>t[1];const o=e[0]===e[1];e[0]>e[s-1]&&(e=[...e].reverse(),t=[...t].reverse());const a=pc(t,i,r),l=a.length,u=c=>{if(o&&c<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(c<e[f+1]);f++);const p=$i(e[f],e[f+1],c);return a[f](p)};return n?c=>u(Fe(e[0],e[s-1],c)):u}function dc(e,t){const n=e[e.length-1];for(let i=1;i<=t;i++){const r=$i(0,t,i);e.push(Q(n,1,r))}}function mc(e){const t=[0];return dc(t,e.length-1),t}function gc(e,t){return e.map(n=>n*t)}function yc(e,t){return e.map(()=>t||Hs).splice(0,e.length-1)}function It({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){const r=Au(i)?i.map(Er):Er(i),s={done:!1,value:t[0]},o=gc(n&&n.length===t.length?n:mc(t),e),a=ia(o,t,{ease:Array.isArray(r)?r:yc(t,r)});return{calculatedDuration:e,next:l=>(s.value=a(l),s.done=l>=e,s)}}const xc=e=>e!==null;function bn(e,{repeat:t,repeatType:n="loop"},i,r=1){const s=e.filter(xc),a=r<0||t&&n!=="loop"&&t%2===1?0:s.length-1;return!a||i===void 0?s[a]:i}const kc={decay:ui,inertia:ui,tween:It,keyframes:It,spring:hn};function ra(e){typeof e.type=="string"&&(e.type=kc[e.type])}class Zi{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const bc=e=>e/100;class _t extends Zi{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var i,r;const{motionValue:n}=this.options;n&&n.updatedAt!==ce.now()&&this.tick(ce.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(r=(i=this.options).onStop)==null||r.call(i))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ra(t);const{type:n=It,repeat:i=0,repeatDelay:r=0,repeatType:s,velocity:o=0}=t;let{keyframes:a}=t;const l=n||It;l!==It&&typeof a[0]!="number"&&(this.mixKeyframes=ji(bc,ea(a[0],a[1])),a=[0,100]);const u=l({...t,keyframes:a});s==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...a].reverse(),velocity:-o})),u.calculatedDuration===null&&(u.calculatedDuration=Gi(u));const{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+r,this.totalDuration=this.resolvedDuration*(i+1)-r,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:i,totalDuration:r,mixKeyframes:s,mirroredGenerator:o,resolvedDuration:a,calculatedDuration:l}=this;if(this.startTime===null)return i.next(0);const{delay:u=0,keyframes:c,repeat:f,repeatType:p,repeatDelay:h,type:d,onUpdate:k,finalKeyframe:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-r/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const g=this.currentTime-u*(this.playbackSpeed>=0?1:-1),T=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=r);let w=this.currentTime,v=i;if(f){const D=Math.min(this.currentTime,r)/a;let _=Math.floor(D),x=D%1;!x&&D>=1&&(x=1),x===1&&_--,_=Math.min(_,f+1),!!(_%2)&&(p==="reverse"?(x=1-x,h&&(x-=h/a)):p==="mirror"&&(v=o)),w=Fe(0,1,x)*a}let A;T?(this.delayState.value=c[0],A=this.delayState):A=v.next(w),s&&!T&&(A.value=s(A.value));let{done:S}=A;!T&&l!==null&&(S=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&S);return O&&d!==ui&&(A.value=bn(c,this.options,b,this.speed)),k&&k(A.value),O&&this.finish(),A}then(t,n){return this.finished.then(t,n)}get duration(){return Ce(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ce(t)}get time(){return Ce(this.currentTime)}set time(t){t=ve(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const n=this.generator.next(t).value;return na(i=>this.generator.next(i).value,t,n)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;n&&this.driver&&this.updateTime(ce.now()),this.playbackSpeed=t,n&&this.driver&&(this.time=Ce(this.currentTime))}play(){var r,s;if(this.isStopped)return;const{driver:t=rc,startTime:n}=this.options;this.driver||(this.driver=t(o=>this.tick(o))),(s=(r=this.options).onPlay)==null||s.call(r);const i=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=i):this.holdTime!==null?this.startTime=i-this.holdTime:this.startTime||(this.startTime=n??i),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(ce.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function wc(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Ge=e=>e*180/Math.PI,ci=e=>{const t=Ge(Math.atan2(e[1],e[0]));return fi(t)},Sc={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:ci,rotateZ:ci,skewX:e=>Ge(Math.atan(e[1])),skewY:e=>Ge(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},fi=e=>(e=e%360,e<0&&(e+=360),e),Fr=ci,Vr=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),Or=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),Tc={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:Vr,scaleY:Or,scale:e=>(Vr(e)+Or(e))/2,rotateX:e=>fi(Ge(Math.atan2(e[6],e[5]))),rotateY:e=>fi(Ge(Math.atan2(-e[2],e[0]))),rotateZ:Fr,rotate:Fr,skewX:e=>Ge(Math.atan(e[4])),skewY:e=>Ge(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function hi(e){return e.includes("scale")?1:0}function pi(e,t){if(!e||e==="none")return hi(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let i,r;if(n)i=Tc,r=n;else{const a=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);i=Sc,r=a}if(!r)return hi(t);const s=i[t],o=r[1].split(",").map(vc);return typeof s=="function"?s(o):o[s]}const Cc=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return pi(n,t)};function vc(e){return parseFloat(e.trim())}const yt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],xt=new Set(yt),_r=e=>e===gt||e===V,Ac=new Set(["x","y","z"]),Ec=yt.filter(e=>!Ac.has(e));function Pc(e){const t=[];return Ec.forEach(n=>{const i=e.getValue(n);i!==void 0&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}const Be={width:({x:e},{paddingLeft:t="0",paddingRight:n="0",boxSizing:i})=>{const r=e.max-e.min;return i==="border-box"?r:r-parseFloat(t)-parseFloat(n)},height:({y:e},{paddingTop:t="0",paddingBottom:n="0",boxSizing:i})=>{const r=e.max-e.min;return i==="border-box"?r:r-parseFloat(t)-parseFloat(n)},top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>pi(t,"x"),y:(e,{transform:t})=>pi(t,"y")};Be.translateX=Be.x;Be.translateY=Be.y;const Qe=new Set;let di=!1,mi=!1,gi=!1;function oa(){if(mi){const e=Array.from(Qe).filter(i=>i.needsMeasurement),t=new Set(e.map(i=>i.element)),n=new Map;t.forEach(i=>{const r=Pc(i);r.length&&(n.set(i,r),i.render())}),e.forEach(i=>i.measureInitialState()),t.forEach(i=>{i.render();const r=n.get(i);r&&r.forEach(([s,o])=>{var a;(a=i.getValue(s))==null||a.set(o)})}),e.forEach(i=>i.measureEndState()),e.forEach(i=>{i.suspendedScrollY!==void 0&&window.scrollTo(0,i.suspendedScrollY)})}mi=!1,di=!1,Qe.forEach(e=>e.complete(gi)),Qe.clear()}function sa(){Qe.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(mi=!0)})}function Mc(){gi=!0,sa(),oa(),gi=!1}class Qi{constructor(t,n,i,r,s,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=i,this.motionValue=r,this.element=s,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Qe.add(this),di||(di=!0,oe.read(sa),oe.resolveKeyframes(oa))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:i,motionValue:r}=this;if(t[0]===null){const s=r==null?void 0:r.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(i&&n){const a=i.readValue(n,o);a!=null&&(t[0]=a)}t[0]===void 0&&(t[0]=o),r&&s===void 0&&r.set(t[0])}wc(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Qe.delete(this)}cancel(){this.state==="scheduled"&&(Qe.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const Dc=e=>e.startsWith("--");function aa(e,t,n){Dc(t)?e.style.setProperty(t,n):e.style[t]=n}const Ic={};function la(e,t){const n=Fs(e);return()=>Ic[t]??n()}const Rc=la(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),ua=la(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Mt=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,zr={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Mt([0,.65,.55,1]),circOut:Mt([.55,0,1,.45]),backIn:Mt([.31,.01,.66,-.59]),backOut:Mt([.33,1.53,.69,.99])};function ca(e,t){if(e)return typeof e=="function"?ua()?ta(e,t):"ease-out":qs(e)?Mt(e):Array.isArray(e)?e.map(n=>ca(n,t)||zr.easeOut):zr[e]}function Lc(e,t,n,{delay:i=0,duration:r=300,repeat:s=0,repeatType:o="loop",ease:a="easeOut",times:l}={},u=void 0){const c={[t]:n};l&&(c.offset=l);const f=ca(a,r);Array.isArray(f)&&(c.easing=f);const p={delay:i,duration:r,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:s+1,direction:o==="reverse"?"alternate":"normal"};return u&&(p.pseudoElement=u),e.animate(c,p)}function fa(e){return typeof e=="function"&&"applyToOptions"in e}function Fc({type:e,...t}){return fa(e)&&ua()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class ha extends Zi{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:n,name:i,keyframes:r,pseudoElement:s,allowFlatten:o=!1,finalKeyframe:a,onComplete:l}=t;this.isPseudoElement=!!s,this.allowFlatten=o,this.options=t,Bi(typeof t.type!="string");const u=Fc(t);this.animation=Lc(n,i,r,u,s),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!s){const c=bn(r,this.options,a,this.speed);this.updateMotionValue&&this.updateMotionValue(c),aa(n,i,c),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var n,i,r;const t=(n=this.options)==null?void 0:n.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((r=(i=this.animation).commitStyles)==null||r.call(i))}get duration(){var n,i;const t=((i=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:i.call(n).duration)||0;return Ce(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ce(t)}get time(){return Ce(Number(this.animation.currentTime)||0)}set time(t){const n=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=ve(t),n&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:n,rangeEnd:i,observe:r}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&Rc()?(this.animation.timeline=t,n&&(this.animation.rangeStart=n),i&&(this.animation.rangeEnd=i),$e):r(this)}}const pa={anticipate:js,backInOut:Bs,circInOut:Us};function Vc(e){return e in pa}function Oc(e){typeof e.ease=="string"&&Vc(e.ease)&&(e.ease=pa[e.ease])}const Ln=10;class _c extends ha{constructor(t){Oc(t),ra(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:i,onComplete:r,element:s,...o}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const a=new _t({...o,autoplay:!1}),l=Math.max(Ln,ce.now()-this.startTime),u=Fe(0,Ln,l-Ln),c=a.sample(l).value,{name:f}=this.options;s&&f&&aa(s,f,c),n.setWithVelocity(a.sample(Math.max(0,l-u)).value,c,u),a.stop()}}const Nr=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Ae.test(e)||e==="0")&&!e.startsWith("url("));function zc(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Nc(e,t,n,i){const r=e[0];if(r===null)return!1;if(t==="display"||t==="visibility")return!0;const s=e[e.length-1],o=Nr(r,t),a=Nr(s,t);return!o||!a?!1:zc(e)||(n==="spring"||fa(n))&&i}function yi(e){e.duration=0,e.type="keyframes"}const da=new Set(["opacity","clipPath","filter","transform"]),Bc=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function jc(e){for(let t=0;t<e.length;t++)if(typeof e[t]=="string"&&Bc.test(e[t]))return!0;return!1}const $c=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),Uc=Fs(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Hc(e){var f;const{motionValue:t,name:n,repeatDelay:i,repeatType:r,damping:s,type:o,keyframes:a}=e;if(!(((f=t==null?void 0:t.owner)==null?void 0:f.current)instanceof HTMLElement))return!1;const{onUpdate:u,transformTemplate:c}=t.owner.getProps();return Uc()&&n&&(da.has(n)||$c.has(n)&&jc(a))&&(n!=="transform"||!c)&&!u&&!i&&r!=="mirror"&&s!==0&&o!=="inertia"}const qc=40;class Wc extends Zi{constructor({autoplay:t=!0,delay:n=0,type:i="keyframes",repeat:r=0,repeatDelay:s=0,repeatType:o="loop",keyframes:a,name:l,motionValue:u,element:c,...f}){var d;super(),this.stop=()=>{var k,b;this._animation&&(this._animation.stop(),(k=this.stopTimeline)==null||k.call(this)),(b=this.keyframeResolver)==null||b.cancel()},this.createdAt=ce.now();const p={autoplay:t,delay:n,type:i,repeat:r,repeatDelay:s,repeatType:o,name:l,motionValue:u,element:c,...f},h=(c==null?void 0:c.KeyframeResolver)||Qi;this.keyframeResolver=new h(a,(k,b,g)=>this.onKeyframesResolved(k,b,p,!g),l,u,c),(d=this.keyframeResolver)==null||d.scheduleResolve()}onKeyframesResolved(t,n,i,r){var g,T;this.keyframeResolver=void 0;const{name:s,type:o,velocity:a,delay:l,isHandoff:u,onUpdate:c}=i;this.resolvedAt=ce.now();let f=!0;Nc(t,s,o,a)||(f=!1,(je.instantAnimations||!l)&&(c==null||c(bn(t,i,n))),t[0]=t[t.length-1],yi(i),i.repeat=0);const h={startTime:r?this.resolvedAt?this.resolvedAt-this.createdAt>qc?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...i,keyframes:t},d=f&&!u&&Hc(h),k=(T=(g=h.motionValue)==null?void 0:g.owner)==null?void 0:T.current;let b;if(d)try{b=new _c({...h,element:k})}catch{b=new _t(h)}else b=new _t(h);b.finished.then(()=>{this.notifyFinished()}).catch($e),this.pendingTimeline&&(this.stopTimeline=b.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=b}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),Mc()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function ma(e,t,n,i=0,r=1){const s=Array.from(e).sort((u,c)=>u.sortNodePosition(c)).indexOf(t),o=e.size,a=(o-1)*i;return typeof n=="function"?n(s,o):r===1?s*i:a-s*i}const Kc=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Xc(e){const t=Kc.exec(e);if(!t)return[,];const[,n,i,r]=t;return[`--${n??i}`,r]}function ga(e,t,n=1){const[i,r]=Xc(e);if(!i)return;const s=window.getComputedStyle(t).getPropertyValue(i);if(s){const o=s.trim();return Is(o)?parseFloat(o):o}return Wi(r)?ga(r,t,n+1):r}const Yc={type:"spring",stiffness:500,damping:25,restSpeed:10},Gc=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Zc={type:"keyframes",duration:.8},Qc={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Jc=(e,{keyframes:t})=>t.length>2?Zc:xt.has(e)?e.startsWith("scale")?Gc(t[1]):Yc:Qc;function ya(e,t){if(e!=null&&e.inherit&&t){const{inherit:n,...i}=e;return{...t,...i}}return e}function Ji(e,t){const n=(e==null?void 0:e[t])??(e==null?void 0:e.default)??e;return n!==e?ya(n,e):n}const ef=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function tf(e){for(const t in e)if(!ef.has(t))return!0;return!1}const xa=(e,t,n,i={},r,s)=>o=>{const a=Ji(i,e)||{},l=a.delay||i.delay||0;let{elapsed:u=0}=i;u=u-ve(l);const c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...a,delay:-u,onUpdate:p=>{t.set(p),a.onUpdate&&a.onUpdate(p)},onComplete:()=>{o(),a.onComplete&&a.onComplete()},name:e,motionValue:t,element:s?void 0:r};tf(a)||Object.assign(c,Jc(e,c)),c.duration&&(c.duration=ve(c.duration)),c.repeatDelay&&(c.repeatDelay=ve(c.repeatDelay)),c.from!==void 0&&(c.keyframes[0]=c.from);let f=!1;if((c.type===!1||c.duration===0&&!c.repeatDelay)&&(yi(c),c.delay===0&&(f=!0)),(je.instantAnimations||je.skipAnimations||r!=null&&r.shouldSkipAnimations)&&(f=!0,yi(c),c.delay=0),c.allowFlatten=!a.type&&!a.ease,f&&!s&&t.get()!==void 0){const p=bn(c.keyframes,a);if(p!==void 0){oe.update(()=>{c.onUpdate(p),c.onComplete()});return}}return a.isSync?new _t(c):new Wc(c)};function Br(e){const t=[{},{}];return e==null||e.values.forEach((n,i)=>{t[0][i]=n.get(),t[1][i]=n.getVelocity()}),t}function ka(e,t,n,i){if(typeof t=="function"){const[r,s]=Br(i);t=t(n!==void 0?n:e.custom,r,s)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[r,s]=Br(i);t=t(n!==void 0?n:e.custom,r,s)}return t}function ft(e,t,n){const i=e.getProps();return ka(i,t,n!==void 0?n:i.custom,e)}const ba=new Set(["width","height","top","left","right","bottom",...yt]),jr=30,nf=e=>!isNaN(parseFloat(e)),$r={current:void 0};class rf{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=i=>{var s;const r=ce.now();if(this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(i),this.current!==this.prev&&((s=this.events.change)==null||s.notify(this.current),this.dependents))for(const o of this.dependents)o.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ce.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=nf(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new Ui);const i=this.events[t].add(n);return t==="change"?()=>{i(),oe.read(()=>{this.events.change.getSize()||this.stop()})}:i}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,i){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-i}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return $r.current&&$r.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ce.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>jr)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,jr);return Vs(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function dt(e,t){return new rf(e,t)}const xi=e=>Array.isArray(e);function of(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,dt(n))}function sf(e){return xi(e)?e[e.length-1]||0:e}function af(e,t){const n=ft(e,t);let{transitionEnd:i={},transition:r={},...s}=n||{};s={...s,...i};for(const o in s){const a=sf(s[o]);of(e,o,a)}}const fe=e=>!!(e&&e.getVelocity);function lf(e){return!!(fe(e)&&e.add)}function uf(e,t){const n=e.getValue("willChange");if(lf(n))return n.add(t);if(!n&&je.WillChange){const i=new je.WillChange("auto");e.addValue("willChange",i),i.add(t)}}function er(e){return e.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const cf="framerAppearId",ff="data-"+er(cf);function wa(e){return e.props[ff]}function hf({protectedKeys:e,needsAnimating:t},n){const i=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,i}function Sa(e,t,{delay:n=0,transitionOverride:i,type:r}={}){let{transition:s,transitionEnd:o,...a}=t;const l=e.getDefaultTransition();s=s?ya(s,l):l;const u=s==null?void 0:s.reduceMotion;i&&(s=i);const c=[],f=r&&e.animationState&&e.animationState.getState()[r];for(const p in a){const h=e.getValue(p,e.latestValues[p]??null),d=a[p];if(d===void 0||f&&hf(f,p))continue;const k={delay:n,...Ji(s||{},p)},b=h.get();if(b!==void 0&&!h.isAnimating()&&!Array.isArray(d)&&d===b&&!k.velocity){oe.update(()=>h.set(d));continue}let g=!1;if(window.MotionHandoffAnimation){const v=wa(e);if(v){const A=window.MotionHandoffAnimation(v,p,oe);A!==null&&(k.startTime=A,g=!0)}}uf(e,p);const T=u??e.shouldReduceMotion;h.start(xa(p,h,d,T&&ba.has(p)?{type:!1}:k,e,g));const w=h.animation;w&&c.push(w)}if(o){const p=()=>oe.update(()=>{o&&af(e,o)});c.length?Promise.all(c).then(p):p()}return c}function ki(e,t,n={}){var l;const i=ft(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:r=e.getDefaultTransition()||{}}=i||{};n.transitionOverride&&(r=n.transitionOverride);const s=i?()=>Promise.all(Sa(e,i,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:c=0,staggerChildren:f,staggerDirection:p}=r;return pf(e,t,u,c,f,p,n)}:()=>Promise.resolve(),{when:a}=r;if(a){const[u,c]=a==="beforeChildren"?[s,o]:[o,s];return u().then(()=>c())}else return Promise.all([s(),o(n.delay)])}function pf(e,t,n=0,i=0,r=0,s=1,o){const a=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),a.push(ki(l,t,{...o,delay:n+(typeof i=="function"?0:i)+ma(e.variantChildren,l,i,r,s)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(a)}function df(e,t,n={}){e.notify("AnimationStart",t);let i;if(Array.isArray(t)){const r=t.map(s=>ki(e,s,n));i=Promise.all(r)}else if(typeof t=="string")i=ki(e,t,n);else{const r=typeof t=="function"?ft(e,t,n.custom):t;i=Promise.all(Sa(e,r,n))}return i.then(()=>{e.notify("AnimationComplete",t)})}const mf={test:e=>e==="auto",parse:e=>e},Ta=e=>t=>t.test(e),Ca=[gt,V,Le,ze,Nu,zu,mf],Ur=e=>Ca.find(Ta(e));function gf(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Ls(e):!0}const yf=new Set(["brightness","contrast","saturate","opacity"]);function xf(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[i]=n.match(Ki)||[];if(!i)return e;const r=n.replace(i,"");let s=yf.has(t)?1:0;return i!==n&&(s*=100),t+"("+s+r+")"}const kf=/\b([a-z-]*)\(.*?\)/gu,bi={...Ae,getAnimatableNone:e=>{const t=e.match(kf);return t?t.map(xf).join(" "):e}},wi={...Ae,getAnimatableNone:e=>{const t=Ae.parse(e);return Ae.createTransformer(e)(t.map(i=>typeof i=="number"?0:typeof i=="object"?{...i,alpha:1}:i))}},Hr={...gt,transform:Math.round},bf={rotate:ze,rotateX:ze,rotateY:ze,rotateZ:ze,scale:Zt,scaleX:Zt,scaleY:Zt,scaleZ:Zt,skew:ze,skewX:ze,skewY:ze,distance:V,translateX:V,translateY:V,translateZ:V,x:V,y:V,z:V,perspective:V,transformPerspective:V,opacity:Ot,originX:Mr,originY:Mr,originZ:V},tr={borderWidth:V,borderTopWidth:V,borderRightWidth:V,borderBottomWidth:V,borderLeftWidth:V,borderRadius:V,borderTopLeftRadius:V,borderTopRightRadius:V,borderBottomRightRadius:V,borderBottomLeftRadius:V,width:V,maxWidth:V,height:V,maxHeight:V,top:V,right:V,bottom:V,left:V,inset:V,insetBlock:V,insetBlockStart:V,insetBlockEnd:V,insetInline:V,insetInlineStart:V,insetInlineEnd:V,padding:V,paddingTop:V,paddingRight:V,paddingBottom:V,paddingLeft:V,paddingBlock:V,paddingBlockStart:V,paddingBlockEnd:V,paddingInline:V,paddingInlineStart:V,paddingInlineEnd:V,margin:V,marginTop:V,marginRight:V,marginBottom:V,marginLeft:V,marginBlock:V,marginBlockStart:V,marginBlockEnd:V,marginInline:V,marginInlineStart:V,marginInlineEnd:V,fontSize:V,backgroundPositionX:V,backgroundPositionY:V,...bf,zIndex:Hr,fillOpacity:Ot,strokeOpacity:Ot,numOctaves:Hr},wf={...tr,color:te,backgroundColor:te,outlineColor:te,fill:te,stroke:te,borderColor:te,borderTopColor:te,borderRightColor:te,borderBottomColor:te,borderLeftColor:te,filter:bi,WebkitFilter:bi,mask:wi,WebkitMask:wi},va=e=>wf[e],Sf=new Set([bi,wi]);function Aa(e,t){let n=va(e);return Sf.has(n)||(n=Ae),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Tf=new Set(["auto","none","0"]);function Cf(e,t,n){let i=0,r;for(;i<e.length&&!r;){const s=e[i];typeof s=="string"&&!Tf.has(s)&&pt(s).values.length&&(r=e[i]),i++}if(r&&n)for(const s of t)e[s]=Aa(n,r)}class vf extends Qi{constructor(t,n,i,r,s){super(t,n,i,r,s,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:i}=this;if(!n||!n.current)return;super.readKeyframes();for(let c=0;c<t.length;c++){let f=t[c];if(typeof f=="string"&&(f=f.trim(),Wi(f))){const p=ga(f,n.current);p!==void 0&&(t[c]=p),c===t.length-1&&(this.finalKeyframe=f)}}if(this.resolveNoneKeyframes(),!ba.has(i)||t.length!==2)return;const[r,s]=t,o=Ur(r),a=Ur(s),l=Pr(r),u=Pr(s);if(l!==u&&Be[i]){this.needsMeasurement=!0;return}if(o!==a)if(_r(o)&&_r(a))for(let c=0;c<t.length;c++){const f=t[c];typeof f=="string"&&(t[c]=parseFloat(f))}else Be[i]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,i=[];for(let r=0;r<t.length;r++)(t[r]===null||gf(t[r]))&&i.push(r);i.length&&Cf(t,i,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:i}=this;if(!t||!t.current)return;i==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Be[i](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const r=n[n.length-1];r!==void 0&&t.getValue(i,r).jump(r,!1)}measureEndState(){var a;const{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;const r=t.getValue(n);r&&r.jump(this.measuredOrigin,!1);const s=i.length-1,o=i[s];i[s]=Be[n](t.measureViewportBox(),window.getComputedStyle(t.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),(a=this.removedTransforms)!=null&&a.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Ea(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e=="string"){let i=document;const r=(n==null?void 0:n[e])??i.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e).filter(i=>i!=null)}const Pa=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function Af(e){return Rs(e)&&"offsetHeight"in e&&!("ownerSVGElement"in e)}const{schedule:Ma}=Ws(queueMicrotask,!1),Te={x:!1,y:!1};function Da(){return Te.x||Te.y}function X0(e){return e==="x"||e==="y"?Te[e]?null:(Te[e]=!0,()=>{Te[e]=!1}):Te.x||Te.y?null:(Te.x=Te.y=!0,()=>{Te.x=Te.y=!1})}function Ia(e,t){const n=Ea(e),i=new AbortController,r={passive:!0,...t,signal:i.signal};return[n,r,()=>i.abort()]}function Ef(e){return!(e.pointerType==="touch"||Da())}function Y0(e,t,n={}){const[i,r,s]=Ia(e,n);return i.forEach(o=>{let a=!1,l=!1,u;const c=()=>{o.removeEventListener("pointerleave",d)},f=b=>{u&&(u(b),u=void 0),c()},p=b=>{a=!1,window.removeEventListener("pointerup",p),window.removeEventListener("pointercancel",p),l&&(l=!1,f(b))},h=()=>{a=!0,window.addEventListener("pointerup",p,r),window.addEventListener("pointercancel",p,r)},d=b=>{if(b.pointerType!=="touch"){if(a){l=!0;return}f(b)}},k=b=>{if(!Ef(b))return;l=!1;const g=t(o,b);typeof g=="function"&&(u=g,o.addEventListener("pointerleave",d,r))};o.addEventListener("pointerenter",k,r),o.addEventListener("pointerdown",h,r)}),s}const Ra=(e,t)=>t?e===t?!0:Ra(e,t.parentElement):!1,Pf=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,Mf=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function Df(e){return Mf.has(e.tagName)||e.isContentEditable===!0}const If=new Set(["INPUT","SELECT","TEXTAREA"]);function G0(e){return If.has(e.tagName)||e.isContentEditable===!0}const rn=new WeakSet;function qr(e){return t=>{t.key==="Enter"&&e(t)}}function Fn(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const Rf=(e,t)=>{const n=e.currentTarget;if(!n)return;const i=qr(()=>{if(rn.has(n))return;Fn(n,"down");const r=qr(()=>{Fn(n,"up")}),s=()=>Fn(n,"cancel");n.addEventListener("keyup",r,t),n.addEventListener("blur",s,t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function Wr(e){return Pf(e)&&!Da()}const Kr=new WeakSet;function Z0(e,t,n={}){const[i,r,s]=Ia(e,n),o=a=>{const l=a.currentTarget;if(!Wr(a)||Kr.has(a))return;rn.add(l),n.stopPropagation&&Kr.add(a);const u=t(l,a),c=(h,d)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",p),rn.has(l)&&rn.delete(l),Wr(h)&&typeof u=="function"&&u(h,{success:d})},f=h=>{c(h,l===window||l===document||n.useGlobalTarget||Ra(l,h.target))},p=h=>{c(h,!1)};window.addEventListener("pointerup",f,r),window.addEventListener("pointercancel",p,r)};return i.forEach(a=>{(n.useGlobalTarget?window:a).addEventListener("pointerdown",o,r),Af(a)&&(a.addEventListener("focus",u=>Rf(u,r)),!Df(a)&&!a.hasAttribute("tabindex")&&(a.tabIndex=0))}),s}function nr(e){return Rs(e)&&"ownerSVGElement"in e}const on=new WeakMap;let Ne;const La=(e,t,n)=>(i,r)=>r&&r[0]?r[0][e+"Size"]:nr(i)&&"getBBox"in i?i.getBBox()[t]:i[n],Lf=La("inline","width","offsetWidth"),Ff=La("block","height","offsetHeight");function Vf({target:e,borderBoxSize:t}){var n;(n=on.get(e))==null||n.forEach(i=>{i(e,{get width(){return Lf(e,t)},get height(){return Ff(e,t)}})})}function Of(e){e.forEach(Vf)}function _f(){typeof ResizeObserver>"u"||(Ne=new ResizeObserver(Of))}function zf(e,t){Ne||_f();const n=Ea(e);return n.forEach(i=>{let r=on.get(i);r||(r=new Set,on.set(i,r)),r.add(t),Ne==null||Ne.observe(i)}),()=>{n.forEach(i=>{const r=on.get(i);r==null||r.delete(t),r!=null&&r.size||Ne==null||Ne.unobserve(i)})}}const sn=new Set;let ut;function Nf(){ut=()=>{const e={get width(){return window.innerWidth},get height(){return window.innerHeight}};sn.forEach(t=>t(e))},window.addEventListener("resize",ut)}function Bf(e){return sn.add(e),ut||Nf(),()=>{sn.delete(e),!sn.size&&typeof ut=="function"&&(window.removeEventListener("resize",ut),ut=void 0)}}function Q0(e,t){return typeof e=="function"?Bf(e):zf(e,t)}function jf(e){return nr(e)&&e.tagName==="svg"}function J0(...e){const t=!Array.isArray(e[0]),n=t?0:-1,i=e[0+n],r=e[1+n],s=e[2+n],o=e[3+n],a=ia(r,s,o);return t?a(i):a}function ek(e,t,n={}){const i=e.get();let r=null,s=i,o;const a=typeof i=="string"?i.replace(/[\d.-]/g,""):void 0,l=()=>{r&&(r.stop(),r=null),e.animation=void 0},u=()=>{const f=Xr(e.get()),p=Xr(s);if(f===p){l();return}const h=r?r.getGeneratorVelocity():e.getVelocity();l(),r=new _t({keyframes:[f,p],velocity:h,type:"spring",restDelta:.001,restSpeed:.01,...n,onUpdate:o})},c=()=>{var f;u(),e.animation=r??void 0,(f=e.events.animationStart)==null||f.notify(),r==null||r.then(()=>{var p;e.animation=void 0,(p=e.events.animationComplete)==null||p.notify()})};if(e.attach((f,p)=>{s=f,o=h=>p(Vn(h,a)),oe.postRender(c)},l),fe(t)){let f=n.skipInitialAnimation===!0;const p=t.on("change",d=>{f?(f=!1,e.jump(Vn(d,a),!1)):e.set(Vn(d,a))}),h=e.on("destroy",p);return()=>{p(),h()}}return l}function Vn(e,t){return t?e+t:e}function Xr(e){return typeof e=="number"?e:parseFloat(e)}const $f=[...Ca,te,Ae],Uf=e=>$f.find(Ta(e)),Yr=()=>({translate:0,scale:1,origin:0,originPoint:0}),ct=()=>({x:Yr(),y:Yr()}),Gr=()=>({min:0,max:0}),ie=()=>({x:Gr(),y:Gr()}),Hf=new WeakMap;function Fa(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ir(e){return typeof e=="string"||Array.isArray(e)}const rr=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],or=["initial",...rr];function Va(e){return Fa(e.animate)||or.some(t=>ir(e[t]))}function qf(e){return!!(Va(e)||e.variants)}function Wf(e,t,n){for(const i in t){const r=t[i],s=n[i];if(fe(r))e.addValue(i,r);else if(fe(s))e.addValue(i,dt(r,{owner:e}));else if(s!==r)if(e.hasValue(i)){const o=e.getValue(i);o.liveStyle===!0?o.jump(r):o.hasAnimated||o.set(r)}else{const o=e.getStaticValue(i);e.addValue(i,dt(o!==void 0?o:r,{owner:e}))}}for(const i in n)t[i]===void 0&&e.removeValue(i);return t}const Si={current:null},Oa={current:!1},Kf=typeof window<"u";function Xf(){if(Oa.current=!0,!!Kf)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Si.current=e.matches;e.addEventListener("change",t),t()}else Si.current=!1}const Zr=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let pn={};function tk(e){pn=e}function nk(){return pn}class Yf{scrapeMotionValuesFromProps(t,n,i){return{}}constructor({parent:t,props:n,presenceContext:i,reducedMotionConfig:r,skipAnimations:s,blockInitialAnimation:o,visualState:a},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Qi,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const h=ce.now();this.renderScheduledAt<h&&(this.renderScheduledAt=h,oe.render(this.render,!1,!0))};const{latestValues:u,renderState:c}=a;this.latestValues=u,this.baseTarget={...u},this.initialValues=n.initial?{...u}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=i,this.depth=t?t.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=s,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Va(n),this.isVariantNode=qf(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:f,...p}=this.scrapeMotionValuesFromProps(n,{},this);for(const h in p){const d=p[h];u[h]!==void 0&&fe(d)&&d.set(u[h])}}mount(t){var n,i;if(this.hasBeenMounted)for(const r in this.initialValues)(n=this.values.get(r))==null||n.jump(this.initialValues[r]),this.latestValues[r]=this.initialValues[r];this.current=t,Hf.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,s)=>this.bindToMotionValue(s,r)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(Oa.current||Xf(),this.shouldReduceMotion=Si.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(i=this.parent)==null||i.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),Je(this.notifyUpdate),Je(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const i=this.features[n];i&&(i.unmount(),i.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),n.accelerate&&da.has(t)&&this.current instanceof HTMLElement){const{factory:o,keyframes:a,times:l,ease:u,duration:c}=n.accelerate,f=new ha({element:this.current,name:t,keyframes:a,times:l,ease:u,duration:ve(c)}),p=o(f);this.valueSubscriptions.set(t,()=>{p(),f.cancel()});return}const i=xt.has(t);i&&this.onBindTransform&&this.onBindTransform();const r=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&oe.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let s;typeof window<"u"&&window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{r(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in pn){const n=pn[t];if(!n)continue;const{isEnabled:i,Feature:r}=n;if(!this.features[t]&&r&&i(this.props)&&(this.features[t]=new r(this)),this.features[t]){const s=this.features[t];s.isMounted?s.update():(s.mount(),s.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):ie()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let i=0;i<Zr.length;i++){const r=Zr[i];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const s="on"+r,o=t[s];o&&(this.propEventSubscriptions[r]=this.on(r,o))}this.prevMotionValues=Wf(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const i=this.values.get(t);n!==i&&(i&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let i=this.values.get(t);return i===void 0&&n!==void 0&&(i=dt(n===null?void 0:n,{owner:this}),this.addValue(t,i)),i}readValue(t,n){let i=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return i!=null&&(typeof i=="string"&&(Is(i)||Ls(i))?i=parseFloat(i):!Uf(i)&&Ae.test(n)&&(i=Aa(t,n)),this.setBaseTarget(t,fe(i)?i.get():i)),fe(i)?i.get():i}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var s;const{initial:n}=this.props;let i;if(typeof n=="string"||typeof n=="object"){const o=ka(this.props,n,(s=this.presenceContext)==null?void 0:s.custom);o&&(i=o[t])}if(n&&i!==void 0)return i;const r=this.getBaseTargetFromProps(this.props,t);return r!==void 0&&!fe(r)?r:this.initialValues[t]!==void 0&&i===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new Ui),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){Ma.render(this.render)}}class _a extends Yf{constructor(){super(...arguments),this.KeyframeResolver=vf}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){const i=t.style;return i?i[n]:void 0}removeValueFromRenderState(t,{vars:n,style:i}){delete n[t],delete i[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;fe(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}class ik{constructor(t){this.isMounted=!1,this.node=t}update(){}}function Gf({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function rk({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Zf(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}function On(e){return e===void 0||e===1}function Ti({scale:e,scaleX:t,scaleY:n}){return!On(e)||!On(t)||!On(n)}function Xe(e){return Ti(e)||za(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function za(e){return Qr(e.x)||Qr(e.y)}function Qr(e){return e&&e!=="0%"}function dn(e,t,n){const i=e-n,r=t*i;return n+r}function Jr(e,t,n,i,r){return r!==void 0&&(e=dn(e,r,i)),dn(e,n,i)+t}function Ci(e,t=0,n=1,i,r){e.min=Jr(e.min,t,n,i,r),e.max=Jr(e.max,t,n,i,r)}function Na(e,{x:t,y:n}){Ci(e.x,t.translate,t.scale,t.originPoint),Ci(e.y,n.translate,n.scale,n.originPoint)}const eo=.999999999999,to=1.0000000000001;function Qf(e,t,n,i=!1){var a;const r=n.length;if(!r)return;t.x=t.y=1;let s,o;for(let l=0;l<r;l++){s=n[l],o=s.projectionDelta;const{visualElement:u}=s.options;u&&u.props.style&&u.props.style.display==="contents"||(i&&s.options.layoutScroll&&s.scroll&&s!==s.root&&(Me(e.x,-s.scroll.offset.x),Me(e.y,-s.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Na(e,o)),i&&Xe(s.latestValues)&&an(e,s.latestValues,(a=s.layout)==null?void 0:a.layoutBox))}t.x<to&&t.x>eo&&(t.x=1),t.y<to&&t.y>eo&&(t.y=1)}function Me(e,t){e.min+=t,e.max+=t}function no(e,t,n,i,r=.5){const s=Q(e.min,e.max,r);Ci(e,t,n,s,i)}function io(e,t){return typeof e=="string"?parseFloat(e)/100*(t.max-t.min):e}function an(e,t,n){const i=n??e;no(e.x,io(t.x,i.x),t.scaleX,t.scale,t.originX),no(e.y,io(t.y,i.y),t.scaleY,t.scale,t.originY)}function Ba(e,t){return Gf(Zf(e.getBoundingClientRect(),t))}function ok(e,t,n){const i=Ba(e,n),{scroll:r}=t;return r&&(Me(i.x,r.offset.x),Me(i.y,r.offset.y)),i}const Jf={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},eh=yt.length;function th(e,t,n){let i="",r=!0;for(let s=0;s<eh;s++){const o=yt[s],a=e[o];if(a===void 0)continue;let l=!0;if(typeof a=="number")l=a===(o.startsWith("scale")?1:0);else{const u=parseFloat(a);l=o.startsWith("scale")?u===1:u===0}if(!l||n){const u=Pa(a,tr[o]);if(!l){r=!1;const c=Jf[o]||o;i+=`${c}(${u}) `}n&&(t[o]=u)}}return i=i.trim(),n?i=n(t,r?"":i):r&&(i="none"),i}function ja(e,t,n){const{style:i,vars:r,transformOrigin:s}=e;let o=!1,a=!1;for(const l in t){const u=t[l];if(xt.has(l)){o=!0;continue}else if(Xs(l)){r[l]=u;continue}else{const c=Pa(u,tr[l]);l.startsWith("origin")?(a=!0,s[l]=c):i[l]=c}}if(t.transform||(o||n?i.transform=th(t,e.transform,n):i.transform&&(i.transform="none")),a){const{originX:l="50%",originY:u="50%",originZ:c=0}=s;i.transformOrigin=`${l} ${u} ${c}`}}function $a(e,{style:t,vars:n},i,r){const s=e.style;let o;for(o in t)s[o]=t[o];r==null||r.applyProjectionStyles(s,i);for(o in n)s.setProperty(o,n[o])}function ro(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Ct={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(V.test(e))e=parseFloat(e);else return e;const n=ro(e,t.target.x),i=ro(e,t.target.y);return`${n}% ${i}%`}},nh={correct:(e,{treeScale:t,projectionDelta:n})=>{const i=e,r=Ae.parse(e);if(r.length>5)return i;const s=Ae.createTransformer(e),o=typeof r[0]!="number"?1:0,a=n.x.scale*t.x,l=n.y.scale*t.y;r[0+o]/=a,r[1+o]/=l;const u=Q(a,l,.5);return typeof r[2+o]=="number"&&(r[2+o]/=u),typeof r[3+o]=="number"&&(r[3+o]/=u),s(r)}},vi={borderRadius:{...Ct,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Ct,borderTopRightRadius:Ct,borderBottomLeftRadius:Ct,borderBottomRightRadius:Ct,boxShadow:nh};function ih(e,{layout:t,layoutId:n}){return xt.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!vi[e]||e==="opacity")}function Ua(e,t,n){var o;const i=e.style,r=t==null?void 0:t.style,s={};if(!i)return s;for(const a in i)(fe(i[a])||r&&fe(r[a])||ih(a,e)||((o=n==null?void 0:n.getValue(a))==null?void 0:o.liveStyle)!==void 0)&&(s[a]=i[a]);return s}function rh(e){return window.getComputedStyle(e)}class sk extends _a{constructor(){super(...arguments),this.type="html",this.renderInstance=$a}readValueFromInstance(t,n){var i;if(xt.has(n))return(i=this.projection)!=null&&i.isProjecting?hi(n):Cc(t,n);{const r=rh(t),s=(Xs(n)?r.getPropertyValue(n):r[n])||0;return typeof s=="string"?s.trim():s}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Ba(t,n)}build(t,n,i){ja(t,n,i.transformTemplate)}scrapeMotionValuesFromProps(t,n,i){return Ua(t,n,i)}}const oh={offset:"stroke-dashoffset",array:"stroke-dasharray"},sh={offset:"strokeDashoffset",array:"strokeDasharray"};function ah(e,t,n=1,i=0,r=!0){e.pathLength=1;const s=r?oh:sh;e[s.offset]=`${-i}`,e[s.array]=`${t} ${n}`}const lh=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function uh(e,{attrX:t,attrY:n,attrScale:i,pathLength:r,pathSpacing:s=1,pathOffset:o=0,...a},l,u,c){if(ja(e,a,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:p}=e;f.transform&&(p.transform=f.transform,delete f.transform),(p.transform||f.transformOrigin)&&(p.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),p.transform&&(p.transformBox=(c==null?void 0:c.transformBox)??"fill-box",delete f.transformBox);for(const h of lh)f[h]!==void 0&&(p[h]=f[h],delete f[h]);t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),i!==void 0&&(f.scale=i),r!==void 0&&ah(f,r,s,o,!1)}const Ha=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),ch=e=>typeof e=="string"&&e.toLowerCase()==="svg";function fh(e,t,n,i){$a(e,t,void 0,i);for(const r in t.attrs)e.setAttribute(Ha.has(r)?r:er(r),t.attrs[r])}function hh(e,t,n){const i=Ua(e,t,n);for(const r in e)if(fe(e[r])||fe(t[r])){const s=yt.indexOf(r)!==-1?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r;i[s]=e[r]}return i}class ak extends _a{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ie}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(xt.has(n)){const i=va(n);return i&&i.default||0}return n=Ha.has(n)?n:er(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,i){return hh(t,n,i)}build(t,n,i){uh(t,n,this.isSVGTag,i.transformTemplate,i.style)}renderInstance(t,n,i,r){fh(t,n,i,r)}mount(t){this.isSVGTag=ch(t.tagName),super.mount(t)}}const ph=or.length;function qa(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?qa(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<ph;n++){const i=or[n],r=e.props[i];(ir(r)||r===!1)&&(t[i]=r)}return t}function Wa(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}const dh=[...rr].reverse(),mh=rr.length;function gh(e){return t=>Promise.all(t.map(({animation:n,options:i})=>df(e,n,i)))}function lk(e){let t=gh(e),n=oo(),i=!0,r=!1;const s=u=>(c,f)=>{var h;const p=ft(e,f,u==="exit"?(h=e.presenceContext)==null?void 0:h.custom:void 0);if(p){const{transition:d,transitionEnd:k,...b}=p;c={...c,...b,...k}}return c};function o(u){t=u(e)}function a(u){const{props:c}=e,f=qa(e.parent)||{},p=[],h=new Set;let d={},k=1/0;for(let g=0;g<mh;g++){const T=dh[g],w=n[T],v=c[T]!==void 0?c[T]:f[T],A=ir(v),S=T===u?w.isActive:null;S===!1&&(k=g);let O=v===f[T]&&v!==c[T]&&A;if(O&&(i||r)&&e.manuallyAnimateOnMount&&(O=!1),w.protectedKeys={...d},!w.isActive&&S===null||!v&&!w.prevProp||Fa(v)||typeof v=="boolean")continue;if(T==="exit"&&w.isActive&&S!==!0){w.prevResolvedValues&&(d={...d,...w.prevResolvedValues});continue}const D=yh(w.prevProp,v);let _=D||T===u&&w.isActive&&!O&&A||g>k&&A,x=!1;const P=Array.isArray(v)?v:[v];let I=P.reduce(s(T),{});S===!1&&(I={});const{prevResolvedValues:F={}}=w,L={...F,...I},M=W=>{_=!0,h.has(W)&&(x=!0,h.delete(W)),w.needsAnimating[W]=!0;const G=e.getValue(W);G&&(G.liveStyle=!1)};for(const W in L){const G=I[W],m=F[W];if(d.hasOwnProperty(W))continue;let ne=!1;xi(G)&&xi(m)?ne=!Wa(G,m):ne=G!==m,ne?G!=null?M(W):h.add(W):G!==void 0&&h.has(W)?M(W):w.protectedKeys[W]=!0}w.prevProp=v,w.prevResolvedValues=I,w.isActive&&(d={...d,...I}),(i||r)&&e.blockInitialAnimation&&(_=!1);const $=O&&D;_&&(!$||x)&&p.push(...P.map(W=>{const G={type:T};if(typeof W=="string"&&(i||r)&&!$&&e.manuallyAnimateOnMount&&e.parent){const{parent:m}=e,ne=ft(m,W);if(m.enteringChildren&&ne){const{delayChildren:ke}=ne.transition||{};G.delay=ma(m.enteringChildren,e,ke)}}return{animation:W,options:G}}))}if(h.size){const g={};if(typeof c.initial!="boolean"){const T=ft(e,Array.isArray(c.initial)?c.initial[0]:c.initial);T&&T.transition&&(g.transition=T.transition)}h.forEach(T=>{const w=e.getBaseTarget(T),v=e.getValue(T);v&&(v.liveStyle=!0),g[T]=w??null}),p.push({animation:g})}let b=!!p.length;return i&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(b=!1),i=!1,r=!1,b?t(p):Promise.resolve()}function l(u,c){var p;if(n[u].isActive===c)return Promise.resolve();(p=e.variantChildren)==null||p.forEach(h=>{var d;return(d=h.animationState)==null?void 0:d.setActive(u,c)}),n[u].isActive=c;const f=a(u);for(const h in n)n[h].protectedKeys={};return f}return{animateChanges:a,setActive:l,setAnimateFunction:o,getState:()=>n,reset:()=>{n=oo(),r=!0}}}function yh(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Wa(t,e):!1}function We(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function oo(){return{animate:We(!0),whileInView:We(),whileHover:We(),whileTap:We(),whileDrag:We(),whileFocus:We(),exit:We()}}function Ai(e,t){e.min=t.min,e.max=t.max}function Se(e,t){Ai(e.x,t.x),Ai(e.y,t.y)}function so(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}const Ka=1e-4,xh=1-Ka,kh=1+Ka,Xa=.01,bh=0-Xa,wh=0+Xa;function xe(e){return e.max-e.min}function Sh(e,t,n){return Math.abs(e-t)<=n}function ao(e,t,n,i=.5){e.origin=i,e.originPoint=Q(t.min,t.max,e.origin),e.scale=xe(n)/xe(t),e.translate=Q(n.min,n.max,e.origin)-e.originPoint,(e.scale>=xh&&e.scale<=kh||isNaN(e.scale))&&(e.scale=1),(e.translate>=bh&&e.translate<=wh||isNaN(e.translate))&&(e.translate=0)}function Rt(e,t,n,i){ao(e.x,t.x,n.x,i?i.originX:void 0),ao(e.y,t.y,n.y,i?i.originY:void 0)}function lo(e,t,n,i=0){const r=i?Q(n.min,n.max,i):n.min;e.min=r+t.min,e.max=e.min+xe(t)}function Th(e,t,n,i){lo(e.x,t.x,n.x,i==null?void 0:i.x),lo(e.y,t.y,n.y,i==null?void 0:i.y)}function uo(e,t,n,i=0){const r=i?Q(n.min,n.max,i):n.min;e.min=t.min-r,e.max=e.min+xe(t)}function mn(e,t,n,i){uo(e.x,t.x,n.x,i==null?void 0:i.x),uo(e.y,t.y,n.y,i==null?void 0:i.y)}function co(e,t,n,i,r){return e-=t,e=dn(e,1/n,i),r!==void 0&&(e=dn(e,1/r,i)),e}function Ch(e,t=0,n=1,i=.5,r,s=e,o=e){if(Le.test(t)&&(t=parseFloat(t),t=Q(o.min,o.max,t/100)-o.min),typeof t!="number")return;let a=Q(s.min,s.max,i);e===s&&(a-=t),e.min=co(e.min,t,n,a,r),e.max=co(e.max,t,n,a,r)}function fo(e,t,[n,i,r],s,o){Ch(e,t[n],t[i],t[r],t.scale,s,o)}const vh=["x","scaleX","originX"],Ah=["y","scaleY","originY"];function ho(e,t,n,i){fo(e.x,t,vh,n?n.x:void 0,i?i.x:void 0),fo(e.y,t,Ah,n?n.y:void 0,i?i.y:void 0)}function po(e){return e.translate===0&&e.scale===1}function Ya(e){return po(e.x)&&po(e.y)}function mo(e,t){return e.min===t.min&&e.max===t.max}function Eh(e,t){return mo(e.x,t.x)&&mo(e.y,t.y)}function go(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Ga(e,t){return go(e.x,t.x)&&go(e.y,t.y)}function yo(e){return xe(e.x)/xe(e.y)}function xo(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function ko(e){return[e("x"),e("y")]}function Ph(e,t,n){let i="";const r=e.x.translate/t.x,s=e.y.translate/t.y,o=(n==null?void 0:n.z)||0;if((r||s||o)&&(i=`translate3d(${r}px, ${s}px, ${o}px) `),(t.x!==1||t.y!==1)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:c,rotateX:f,rotateY:p,skewX:h,skewY:d}=n;u&&(i=`perspective(${u}px) ${i}`),c&&(i+=`rotate(${c}deg) `),f&&(i+=`rotateX(${f}deg) `),p&&(i+=`rotateY(${p}deg) `),h&&(i+=`skewX(${h}deg) `),d&&(i+=`skewY(${d}deg) `)}const a=e.x.scale*t.x,l=e.y.scale*t.y;return(a!==1||l!==1)&&(i+=`scale(${a}, ${l})`),i||"none"}const Za=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],Mh=Za.length,bo=e=>typeof e=="string"?parseFloat(e):e,wo=e=>typeof e=="number"||V.test(e);function Dh(e,t,n,i,r,s){r?(e.opacity=Q(0,n.opacity??1,Ih(i)),e.opacityExit=Q(t.opacity??1,0,Rh(i))):s&&(e.opacity=Q(t.opacity??1,n.opacity??1,i));for(let o=0;o<Mh;o++){const a=Za[o];let l=So(t,a),u=So(n,a);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||wo(l)===wo(u)?(e[a]=Math.max(Q(bo(l),bo(u),i),0),(Le.test(u)||Le.test(l))&&(e[a]+="%")):e[a]=u}(t.rotate||n.rotate)&&(e.rotate=Q(t.rotate||0,n.rotate||0,i))}function So(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const Ih=Qa(0,.5,$s),Rh=Qa(.5,.95,$e);function Qa(e,t,n){return i=>i<e?0:i>t?1:n($i(e,t,i))}function Lh(e,t,n){const i=fe(e)?e:dt(e);return i.start(xa("",i,t,n)),i.animation}function Fh(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}const Vh=(e,t)=>e.depth-t.depth;class Oh{constructor(){this.children=[],this.isDirty=!1}add(t){Ni(this.children,t),this.isDirty=!0}remove(t){un(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Vh),this.isDirty=!1,this.children.forEach(t)}}function _h(e,t){const n=ce.now(),i=({timestamp:r})=>{const s=r-n;s>=t&&(Je(i),e(s-t))};return oe.setup(i,!0),()=>Je(i)}function _n(e){return fe(e)?e.get():e}class zh{constructor(){this.members=[]}add(t){Ni(this.members,t);for(let n=this.members.length-1;n>=0;n--){const i=this.members[n];if(i===t||i===this.lead||i===this.prevLead)continue;const r=i.instance;(!r||r.isConnected===!1)&&!i.snapshot&&(un(this.members,i),i.unmount())}t.scheduleRender()}remove(t){if(un(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){var n;for(let i=this.members.indexOf(t)-1;i>=0;i--){const r=this.members[i];if(r.isPresent!==!1&&((n=r.instance)==null?void 0:n.isConnected)!==!1)return this.promote(r),!0}return!1}promote(t,n){var r;const i=this.lead;if(t!==i&&(this.prevLead=i,this.lead=t,t.show(),i)){i.updateSnapshot(),t.scheduleRender();const{layoutDependency:s}=i.options,{layoutDependency:o}=t.options;(s===void 0||s!==o)&&(t.resumeFrom=i,n&&(i.preserveOpacity=!0),i.snapshot&&(t.snapshot=i.snapshot,t.snapshot.latestValues=i.animationValues||i.latestValues),(r=t.root)!=null&&r.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&i.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var n,i,r,s,o;(i=(n=t.options).onExitComplete)==null||i.call(n),(o=(r=t.resumingFrom)==null?void 0:(s=r.options).onExitComplete)==null||o.call(s)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const zn={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Nn=["","X","Y","Z"],Nh=1e3;let Bh=0;function Bn(e,t,n,i){const{latestValues:r}=t;r[e]&&(n[e]=r[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Ja(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=wa(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:r,layoutId:s}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",oe,!(r||s))}const{parent:i}=e;i&&!i.hasCheckedOptimisedAppear&&Ja(i)}function el({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:r}){return class{constructor(o={},a=t==null?void 0:t()){this.id=Bh++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Uh),this.nodes.forEach(Yh),this.nodes.forEach(Gh),this.nodes.forEach(Hh)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=o,this.root=a?a.root||a:this,this.path=a?[...a.path,a]:[],this.parent=a,this.depth=a?a.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new Oh)}addEventListener(o,a){return this.eventHandlers.has(o)||this.eventHandlers.set(o,new Ui),this.eventHandlers.get(o).add(a)}notifyListeners(o,...a){const l=this.eventHandlers.get(o);l&&l.notify(...a)}hasListeners(o){return this.eventHandlers.has(o)}mount(o){if(this.instance)return;this.isSVG=nr(o)&&!jf(o),this.instance=o;const{layoutId:a,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(o),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||a)&&(this.isLayoutDirty=!0),e){let c,f=0;const p=()=>this.root.updateBlockedByResize=!1;oe.read(()=>{f=window.innerWidth}),e(o,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,c&&c(),c=_h(p,250),zn.hasAnimatedSinceResize&&(zn.hasAnimatedSinceResize=!1,this.nodes.forEach(vo)))})}a&&this.root.registerSharedNode(a,this),this.options.animate!==!1&&u&&(a||l)&&this.addEventListener("didUpdate",({delta:c,hasLayoutChanged:f,hasRelativeLayoutChanged:p,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const d=this.options.transition||u.getDefaultTransition()||tp,{onLayoutAnimationStart:k,onLayoutAnimationComplete:b}=u.getProps(),g=!this.targetLayout||!Ga(this.targetLayout,h),T=!f&&p;if(this.options.layoutRoot||this.resumeFrom||T||f&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Ji(d,"layout"),onPlay:k,onComplete:b};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(c,T)}else f||vo(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const o=this.getStack();o&&o.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Je(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Zh),this.animationId++)}getTransformTemplate(){const{visualElement:o}=this.options;return o&&o.getProps().transformTemplate}willUpdate(o=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Ja(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let c=0;c<this.path.length;c++){const f=this.path[c];f.shouldResetTransform=!0,(typeof f.latestValues.x=="string"||typeof f.latestValues.y=="string")&&(f.isLayoutDirty=!0),f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:a,layout:l}=this.options;if(a===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),o&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const l=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),l&&this.nodes.forEach(Wh),this.nodes.forEach(To);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(Co);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(Kh),this.nodes.forEach(Xh),this.nodes.forEach(jh),this.nodes.forEach($h)):this.nodes.forEach(Co),this.clearAllSnapshots();const a=ce.now();le.delta=Fe(0,1e3/60,a-le.timestamp),le.timestamp=a,le.isProcessing=!0,Pn.update.process(le),Pn.preRender.process(le),Pn.render.process(le),le.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Ma.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(qh),this.sharedNodes.forEach(Qh)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,oe.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){oe.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!xe(this.snapshot.measuredBox.x)&&!xe(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const o=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ie()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:a}=this.options;a&&a.notify("LayoutMeasure",this.layout.layoutBox,o?o.layoutBox:void 0)}updateScroll(o="measure"){let a=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===o&&(a=!1),a&&this.instance){const l=i(this.instance);this.scroll={animationId:this.root.animationId,phase:o,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!r)return;const o=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,a=this.projectionDelta&&!Ya(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,c=u!==this.prevTransformTemplateValue;o&&this.instance&&(a||Xe(this.latestValues)||c)&&(r(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(o=!0){const a=this.measurePageBox();let l=this.removeElementScroll(a);return o&&(l=this.removeTransform(l)),np(l),{animationId:this.root.animationId,measuredBox:a,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:o}=this.options;if(!o)return ie();const a=o.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(ip))){const{scroll:c}=this.root;c&&(Me(a.x,c.offset.x),Me(a.y,c.offset.y))}return a}removeElementScroll(o){var l;const a=ie();if(Se(a,o),(l=this.scroll)!=null&&l.wasRoot)return a;for(let u=0;u<this.path.length;u++){const c=this.path[u],{scroll:f,options:p}=c;c!==this.root&&f&&p.layoutScroll&&(f.wasRoot&&Se(a,o),Me(a.x,f.offset.x),Me(a.y,f.offset.y))}return a}applyTransform(o,a=!1,l){var c,f;const u=l||ie();Se(u,o);for(let p=0;p<this.path.length;p++){const h=this.path[p];!a&&h.options.layoutScroll&&h.scroll&&h!==h.root&&(Me(u.x,-h.scroll.offset.x),Me(u.y,-h.scroll.offset.y)),Xe(h.latestValues)&&an(u,h.latestValues,(c=h.layout)==null?void 0:c.layoutBox)}return Xe(this.latestValues)&&an(u,this.latestValues,(f=this.layout)==null?void 0:f.layoutBox),u}removeTransform(o){var l;const a=ie();Se(a,o);for(let u=0;u<this.path.length;u++){const c=this.path[u];if(!Xe(c.latestValues))continue;let f;c.instance&&(Ti(c.latestValues)&&c.updateSnapshot(),f=ie(),Se(f,c.measurePageBox())),ho(a,c.latestValues,(l=c.snapshot)==null?void 0:l.layoutBox,f)}return Xe(this.latestValues)&&ho(a,this.latestValues),a}setTargetDelta(o){this.targetDelta=o,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(o){this.options={...this.options,...o,crossfade:o.crossfade!==void 0?o.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==le.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(o=!1){var h;const a=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=a.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=a.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=a.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==a;if(!(o||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:c,layoutId:f}=this.options;if(!this.layout||!(c||f))return;this.resolvedRelativeTargetAt=le.timestamp;const p=this.getClosestProjectingParent();p&&this.linkedParentVersion!==p.layoutVersion&&!p.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&p&&p.layout?this.createRelativeTarget(p,this.layout.layoutBox,p.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ie(),this.targetWithTransforms=ie()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Th(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Se(this.target,this.layout.layoutBox),Na(this.target,this.targetDelta)):Se(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?this.createRelativeTarget(p,this.target,p.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Ti(this.parent.latestValues)||za(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(o,a,l){this.relativeParent=o,this.linkedParentVersion=o.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ie(),this.relativeTargetOrigin=ie(),mn(this.relativeTargetOrigin,a,l,this.options.layoutAnchor||void 0),Se(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var d;const o=this.getLead(),a=!!this.resumingFrom||this!==o;let l=!0;if((this.isProjectionDirty||(d=this.parent)!=null&&d.isProjectionDirty)&&(l=!1),a&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===le.timestamp&&(l=!1),l)return;const{layout:u,layoutId:c}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||c))return;Se(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,p=this.treeScale.y;Qf(this.layoutCorrected,this.treeScale,this.path,a),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=ie());const{target:h}=o;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(so(this.prevProjectionDelta.x,this.projectionDelta.x),so(this.prevProjectionDelta.y,this.projectionDelta.y)),Rt(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==p||!xo(this.projectionDelta.x,this.prevProjectionDelta.x)||!xo(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(o=!0){var a;if((a=this.options.visualElement)==null||a.scheduleRender(),o){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ct(),this.projectionDelta=ct(),this.projectionDeltaWithTransform=ct()}setAnimationOrigin(o,a=!1){const l=this.snapshot,u=l?l.latestValues:{},c={...this.latestValues},f=ct();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!a;const p=ie(),h=l?l.source:void 0,d=this.layout?this.layout.source:void 0,k=h!==d,b=this.getStack(),g=!b||b.members.length<=1,T=!!(k&&!g&&this.options.crossfade===!0&&!this.path.some(ep));this.animationProgress=0;let w;this.mixTargetDelta=v=>{const A=v/1e3;Ao(f.x,o.x,A),Ao(f.y,o.y,A),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(mn(p,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),Jh(this.relativeTarget,this.relativeTargetOrigin,p,A),w&&Eh(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=ie()),Se(w,this.relativeTarget)),k&&(this.animationValues=c,Dh(c,u,this.latestValues,A,T,g)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=A},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(o){var a,l,u;this.notifyListeners("animationStart"),(a=this.currentAnimation)==null||a.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(Je(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=oe.update(()=>{zn.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=dt(0)),this.motionValue.jump(0,!1),this.currentAnimation=Lh(this.motionValue,[0,1e3],{...o,velocity:0,isSync:!0,onUpdate:c=>{this.mixTargetDelta(c),o.onUpdate&&o.onUpdate(c)},onStop:()=>{},onComplete:()=>{o.onComplete&&o.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const o=this.getStack();o&&o.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Nh),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const o=this.getLead();let{targetWithTransforms:a,target:l,layout:u,latestValues:c}=o;if(!(!a||!l||!u)){if(this!==o&&this.layout&&u&&tl(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||ie();const f=xe(this.layout.layoutBox.x);l.x.min=o.target.x.min,l.x.max=l.x.min+f;const p=xe(this.layout.layoutBox.y);l.y.min=o.target.y.min,l.y.max=l.y.min+p}Se(a,l),an(a,c),Rt(this.projectionDeltaWithTransform,this.layoutCorrected,a,c)}}registerSharedNode(o,a){this.sharedNodes.has(o)||this.sharedNodes.set(o,new zh),this.sharedNodes.get(o).add(a);const u=a.options.initialPromotionConfig;a.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(a):void 0})}isLead(){const o=this.getStack();return o?o.lead===this:!0}getLead(){var a;const{layoutId:o}=this.options;return o?((a=this.getStack())==null?void 0:a.lead)||this:this}getPrevLead(){var a;const{layoutId:o}=this.options;return o?(a=this.getStack())==null?void 0:a.prevLead:void 0}getStack(){const{layoutId:o}=this.options;if(o)return this.root.sharedNodes.get(o)}promote({needsReset:o,transition:a,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),o&&(this.projectionDelta=void 0,this.needsReset=!0),a&&this.setOptions({transition:a})}relegate(){const o=this.getStack();return o?o.relegate(this):!1}resetSkewAndRotation(){const{visualElement:o}=this.options;if(!o)return;let a=!1;const{latestValues:l}=o;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(a=!0),!a)return;const u={};l.z&&Bn("z",o,u,this.animationValues);for(let c=0;c<Nn.length;c++)Bn(`rotate${Nn[c]}`,o,u,this.animationValues),Bn(`skew${Nn[c]}`,o,u,this.animationValues);o.render();for(const c in u)o.setStaticValue(c,u[c]),this.animationValues&&(this.animationValues[c]=u[c]);o.scheduleRender()}applyProjectionStyles(o,a){if(!this.instance||this.isSVG)return;if(!this.isVisible){o.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,o.visibility="",o.opacity="",o.pointerEvents=_n(a==null?void 0:a.pointerEvents)||"",o.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(o.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,o.pointerEvents=_n(a==null?void 0:a.pointerEvents)||""),this.hasProjected&&!Xe(this.latestValues)&&(o.transform=l?l({},""):"none",this.hasProjected=!1);return}o.visibility="";const c=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=Ph(this.projectionDeltaWithTransform,this.treeScale,c);l&&(f=l(c,f)),o.transform=f;const{x:p,y:h}=this.projectionDelta;o.transformOrigin=`${p.origin*100}% ${h.origin*100}% 0`,u.animationValues?o.opacity=u===this?c.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:c.opacityExit:o.opacity=u===this?c.opacity!==void 0?c.opacity:"":c.opacityExit!==void 0?c.opacityExit:0;for(const d in vi){if(c[d]===void 0)continue;const{correct:k,applyTo:b,isCSSVariable:g}=vi[d],T=f==="none"?c[d]:k(c[d],u);if(b){const w=b.length;for(let v=0;v<w;v++)o[b[v]]=T}else g?this.options.visualElement.renderState.vars[d]=T:o[d]=T}this.options.layoutId&&(o.pointerEvents=u===this?_n(a==null?void 0:a.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(o=>{var a;return(a=o.currentAnimation)==null?void 0:a.stop()}),this.root.nodes.forEach(To),this.root.sharedNodes.clear()}}}function jh(e){e.updateLayout()}function $h(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:i,measuredBox:r}=e.layout,{animationType:s}=e.options,o=t.source!==e.layout.source;if(s==="size")ko(f=>{const p=o?t.measuredBox[f]:t.layoutBox[f],h=xe(p);p.min=i[f].min,p.max=p.min+h});else if(s==="x"||s==="y"){const f=s==="x"?"y":"x";Ai(o?t.measuredBox[f]:t.layoutBox[f],i[f])}else tl(s,t.layoutBox,i)&&ko(f=>{const p=o?t.measuredBox[f]:t.layoutBox[f],h=xe(i[f]);p.max=p.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const a=ct();Rt(a,i,t.layoutBox);const l=ct();o?Rt(l,e.applyTransform(r,!0),t.measuredBox):Rt(l,i,t.layoutBox);const u=!Ya(a);let c=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:p,layout:h}=f;if(p&&h){const d=e.options.layoutAnchor||void 0,k=ie();mn(k,t.layoutBox,p.layoutBox,d);const b=ie();mn(b,i,h.layoutBox,d),Ga(k,b)||(c=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=k,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:i,snapshot:t,delta:l,layoutDelta:a,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){const{onExitComplete:i}=e.options;i&&i()}e.options.transition=void 0}function Uh(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Hh(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function qh(e){e.clearSnapshot()}function To(e){e.clearMeasurements()}function Wh(e){e.isLayoutDirty=!0,e.updateLayout()}function Co(e){e.isLayoutDirty=!1}function Kh(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function Xh(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function vo(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Yh(e){e.resolveTargetDelta()}function Gh(e){e.calcProjection()}function Zh(e){e.resetSkewAndRotation()}function Qh(e){e.removeLeadSnapshot()}function Ao(e,t,n){e.translate=Q(t.translate,0,n),e.scale=Q(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function Eo(e,t,n,i){e.min=Q(t.min,n.min,i),e.max=Q(t.max,n.max,i)}function Jh(e,t,n,i){Eo(e.x,t.x,n.x,i),Eo(e.y,t.y,n.y,i)}function ep(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const tp={duration:.45,ease:[.4,0,.1,1]},Po=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Mo=Po("applewebkit/")&&!Po("chrome/")?Math.round:$e;function Do(e){e.min=Mo(e.min),e.max=Mo(e.max)}function np(e){Do(e.x),Do(e.y)}function tl(e,t,n){return e==="position"||e==="preserve-aspect"&&!Sh(yo(t),yo(n),.2)}function ip(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const rp=el({attachResizeListener:(e,t)=>Fh(e,"resize",t),measureScroll:()=>{var e,t;return{x:document.documentElement.scrollLeft||((e=document.body)==null?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),jn={current:void 0},ck=el({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!jn.current){const e=new rp({});e.mount(window),e.setOptions({layoutScroll:!0}),jn.current=e}return jn.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),Io=e=>{let t;const n=new Set,i=(u,c)=>{const f=typeof u=="function"?u(t):u;if(!Object.is(f,t)){const p=t;t=c??(typeof f!="object"||f===null)?f:Object.assign({},t,f),n.forEach(h=>h(t,p))}},r=()=>t,a={setState:i,getState:r,getInitialState:()=>l,subscribe:u=>(n.add(u),()=>n.delete(u))},l=t=e(i,r,a);return a},op=(e=>e?Io(e):Io),sp=e=>e;function ap(e,t=sp){const n=Yt.useSyncExternalStore(e.subscribe,Yt.useCallback(()=>t(e.getState()),[e,t]),Yt.useCallback(()=>t(e.getInitialState()),[e,t]));return Yt.useDebugValue(n),n}const Ro=e=>{const t=op(e),n=i=>ap(t,i);return Object.assign(n,t),n},fk=(e=>e?Ro(e):Ro);/**
2
+ * @license lucide-react v1.8.0 - ISC
3
+ *
4
+ * This source code is licensed under the ISC license.
5
+ * See the LICENSE file in the root directory of this source tree.
6
+ */const nl=(...e)=>e.filter((t,n,i)=>!!t&&t.trim()!==""&&i.indexOf(t)===n).join(" ").trim();/**
7
+ * @license lucide-react v1.8.0 - ISC
8
+ *
9
+ * This source code is licensed under the ISC license.
10
+ * See the LICENSE file in the root directory of this source tree.
11
+ */const lp=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();/**
12
+ * @license lucide-react v1.8.0 - ISC
13
+ *
14
+ * This source code is licensed under the ISC license.
15
+ * See the LICENSE file in the root directory of this source tree.
16
+ */const up=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,i)=>i?i.toUpperCase():n.toLowerCase());/**
17
+ * @license lucide-react v1.8.0 - ISC
18
+ *
19
+ * This source code is licensed under the ISC license.
20
+ * See the LICENSE file in the root directory of this source tree.
21
+ */const Lo=e=>{const t=up(e);return t.charAt(0).toUpperCase()+t.slice(1)};/**
22
+ * @license lucide-react v1.8.0 - ISC
23
+ *
24
+ * This source code is licensed under the ISC license.
25
+ * See the LICENSE file in the root directory of this source tree.
26
+ */var $n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
27
+ * @license lucide-react v1.8.0 - ISC
28
+ *
29
+ * This source code is licensed under the ISC license.
30
+ * See the LICENSE file in the root directory of this source tree.
31
+ */const cp=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0;return!1},fp=Ze.createContext({}),hp=()=>Ze.useContext(fp),pp=Ze.forwardRef(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:i,className:r="",children:s,iconNode:o,...a},l)=>{const{size:u=24,strokeWidth:c=2,absoluteStrokeWidth:f=!1,color:p="currentColor",className:h=""}=hp()??{},d=i??f?Number(n??c)*24/Number(t??u):n??c;return Ze.createElement("svg",{ref:l,...$n,width:t??u??$n.width,height:t??u??$n.height,stroke:e??p,strokeWidth:d,className:nl("lucide",h,r),...!s&&!cp(a)&&{"aria-hidden":"true"},...a},[...o.map(([k,b])=>Ze.createElement(k,b)),...Array.isArray(s)?s:[s]])});/**
32
+ * @license lucide-react v1.8.0 - ISC
33
+ *
34
+ * This source code is licensed under the ISC license.
35
+ * See the LICENSE file in the root directory of this source tree.
36
+ */const N=(e,t)=>{const n=Ze.forwardRef(({className:i,...r},s)=>Ze.createElement(pp,{ref:s,iconNode:t,className:nl(`lucide-${lp(Lo(e))}`,`lucide-${e}`,i),...r}));return n.displayName=Lo(e),n};/**
37
+ * @license lucide-react v1.8.0 - ISC
38
+ *
39
+ * This source code is licensed under the ISC license.
40
+ * See the LICENSE file in the root directory of this source tree.
41
+ */const dp=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],hk=N("activity",dp);/**
42
+ * @license lucide-react v1.8.0 - ISC
43
+ *
44
+ * This source code is licensed under the ISC license.
45
+ * See the LICENSE file in the root directory of this source tree.
46
+ */const mp=[["path",{d:"m21 16-4 4-4-4",key:"f6ql7i"}],["path",{d:"M17 20V4",key:"1ejh1v"}],["path",{d:"m3 8 4-4 4 4",key:"11wl7u"}],["path",{d:"M7 4v16",key:"1glfcx"}]],pk=N("arrow-up-down",mp);/**
47
+ * @license lucide-react v1.8.0 - ISC
48
+ *
49
+ * This source code is licensed under the ISC license.
50
+ * See the LICENSE file in the root directory of this source tree.
51
+ */const gp=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],dk=N("bot",gp);/**
52
+ * @license lucide-react v1.8.0 - ISC
53
+ *
54
+ * This source code is licensed under the ISC license.
55
+ * See the LICENSE file in the root directory of this source tree.
56
+ */const yp=[["path",{d:"M3 3v16a2 2 0 0 0 2 2h16",key:"c24i48"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]],mk=N("chart-column",yp);/**
57
+ * @license lucide-react v1.8.0 - ISC
58
+ *
59
+ * This source code is licensed under the ISC license.
60
+ * See the LICENSE file in the root directory of this source tree.
61
+ */const xp=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],gk=N("check",xp);/**
62
+ * @license lucide-react v1.8.0 - ISC
63
+ *
64
+ * This source code is licensed under the ISC license.
65
+ * See the LICENSE file in the root directory of this source tree.
66
+ */const kp=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],yk=N("chevron-down",kp);/**
67
+ * @license lucide-react v1.8.0 - ISC
68
+ *
69
+ * This source code is licensed under the ISC license.
70
+ * See the LICENSE file in the root directory of this source tree.
71
+ */const bp=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],xk=N("chevron-right",bp);/**
72
+ * @license lucide-react v1.8.0 - ISC
73
+ *
74
+ * This source code is licensed under the ISC license.
75
+ * See the LICENSE file in the root directory of this source tree.
76
+ */const wp=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],kk=N("chevron-up",wp);/**
77
+ * @license lucide-react v1.8.0 - ISC
78
+ *
79
+ * This source code is licensed under the ISC license.
80
+ * See the LICENSE file in the root directory of this source tree.
81
+ */const Sp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],bk=N("circle-alert",Sp);/**
82
+ * @license lucide-react v1.8.0 - ISC
83
+ *
84
+ * This source code is licensed under the ISC license.
85
+ * See the LICENSE file in the root directory of this source tree.
86
+ */const Tp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],wk=N("circle-check",Tp);/**
87
+ * @license lucide-react v1.8.0 - ISC
88
+ *
89
+ * This source code is licensed under the ISC license.
90
+ * See the LICENSE file in the root directory of this source tree.
91
+ */const Cp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],Sk=N("circle-x",Cp);/**
92
+ * @license lucide-react v1.8.0 - ISC
93
+ *
94
+ * This source code is licensed under the ISC license.
95
+ * See the LICENSE file in the root directory of this source tree.
96
+ */const vp=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],Tk=N("circle",vp);/**
97
+ * @license lucide-react v1.8.0 - ISC
98
+ *
99
+ * This source code is licensed under the ISC license.
100
+ * See the LICENSE file in the root directory of this source tree.
101
+ */const Ap=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 6v6l4 2",key:"mmk7yg"}]],Ck=N("clock",Ap);/**
102
+ * @license lucide-react v1.8.0 - ISC
103
+ *
104
+ * This source code is licensed under the ISC license.
105
+ * See the LICENSE file in the root directory of this source tree.
106
+ */const Ep=[["path",{d:"m16 18 6-6-6-6",key:"eg8j8"}],["path",{d:"m8 6-6 6 6 6",key:"ppft3o"}]],vk=N("code",Ep);/**
107
+ * @license lucide-react v1.8.0 - ISC
108
+ *
109
+ * This source code is licensed under the ISC license.
110
+ * See the LICENSE file in the root directory of this source tree.
111
+ */const Pp=[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]],Ak=N("cpu",Pp);/**
112
+ * @license lucide-react v1.8.0 - ISC
113
+ *
114
+ * This source code is licensed under the ISC license.
115
+ * See the LICENSE file in the root directory of this source tree.
116
+ */const Mp=[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]],Ek=N("database",Mp);/**
117
+ * @license lucide-react v1.8.0 - ISC
118
+ *
119
+ * This source code is licensed under the ISC license.
120
+ * See the LICENSE file in the root directory of this source tree.
121
+ */const Dp=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Pk=N("download",Dp);/**
122
+ * @license lucide-react v1.8.0 - ISC
123
+ *
124
+ * This source code is licensed under the ISC license.
125
+ * See the LICENSE file in the root directory of this source tree.
126
+ */const Ip=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Mk=N("external-link",Ip);/**
127
+ * @license lucide-react v1.8.0 - ISC
128
+ *
129
+ * This source code is licensed under the ISC license.
130
+ * See the LICENSE file in the root directory of this source tree.
131
+ */const Rp=[["path",{d:"M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35",key:"1wthlu"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"m5 16-3 3 3 3",key:"331omg"}],["path",{d:"m9 22 3-3-3-3",key:"lsp7cz"}]],Dk=N("file-code-corner",Rp);/**
132
+ * @license lucide-react v1.8.0 - ISC
133
+ *
134
+ * This source code is licensed under the ISC license.
135
+ * See the LICENSE file in the root directory of this source tree.
136
+ */const Lp=[["path",{d:"M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2",key:"18mbvz"}],["path",{d:"M6.453 15h11.094",key:"3shlmq"}],["path",{d:"M8.5 2h7",key:"csnxdl"}]],Ik=N("flask-conical",Lp);/**
137
+ * @license lucide-react v1.8.0 - ISC
138
+ *
139
+ * This source code is licensed under the ISC license.
140
+ * See the LICENSE file in the root directory of this source tree.
141
+ */const Fp=[["circle",{cx:"18",cy:"18",r:"3",key:"1xkwt0"}],["circle",{cx:"6",cy:"6",r:"3",key:"1lh9wr"}],["path",{d:"M13 6h3a2 2 0 0 1 2 2v7",key:"1yeb86"}],["line",{x1:"6",x2:"6",y1:"9",y2:"21",key:"rroup"}]],Rk=N("git-pull-request",Fp);/**
142
+ * @license lucide-react v1.8.0 - ISC
143
+ *
144
+ * This source code is licensed under the ISC license.
145
+ * See the LICENSE file in the root directory of this source tree.
146
+ */const Vp=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Lk=N("heart",Vp);/**
147
+ * @license lucide-react v1.8.0 - ISC
148
+ *
149
+ * This source code is licensed under the ISC license.
150
+ * See the LICENSE file in the root directory of this source tree.
151
+ */const Op=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Fk=N("layers",Op);/**
152
+ * @license lucide-react v1.8.0 - ISC
153
+ *
154
+ * This source code is licensed under the ISC license.
155
+ * See the LICENSE file in the root directory of this source tree.
156
+ */const _p=[["path",{d:"M9 17H7A5 5 0 0 1 7 7h2",key:"8i5ue5"}],["path",{d:"M15 7h2a5 5 0 1 1 0 10h-2",key:"1b9ql8"}],["line",{x1:"8",x2:"16",y1:"12",y2:"12",key:"1jonct"}]],Vk=N("link-2",_p);/**
157
+ * @license lucide-react v1.8.0 - ISC
158
+ *
159
+ * This source code is licensed under the ISC license.
160
+ * See the LICENSE file in the root directory of this source tree.
161
+ */const zp=[["path",{d:"M13 5h8",key:"a7qcls"}],["path",{d:"M13 12h8",key:"h98zly"}],["path",{d:"M13 19h8",key:"c3s6r1"}],["path",{d:"m3 17 2 2 4-4",key:"1jhpwq"}],["rect",{x:"3",y:"4",width:"6",height:"6",rx:"1",key:"cif1o7"}]],Ok=N("list-todo",zp);/**
162
+ * @license lucide-react v1.8.0 - ISC
163
+ *
164
+ * This source code is licensed under the ISC license.
165
+ * See the LICENSE file in the root directory of this source tree.
166
+ */const Np=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],_k=N("loader-circle",Np);/**
167
+ * @license lucide-react v1.8.0 - ISC
168
+ *
169
+ * This source code is licensed under the ISC license.
170
+ * See the LICENSE file in the root directory of this source tree.
171
+ */const Bp=[["path",{d:"M20 10c0 4.993-5.539 10.193-7.399 11.799a1 1 0 0 1-1.202 0C9.539 20.193 4 14.993 4 10a8 8 0 0 1 16 0",key:"1r0f0z"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]],zk=N("map-pin",Bp);/**
172
+ * @license lucide-react v1.8.0 - ISC
173
+ *
174
+ * This source code is licensed under the ISC license.
175
+ * See the LICENSE file in the root directory of this source tree.
176
+ */const jp=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],Nk=N("map",jp);/**
177
+ * @license lucide-react v1.8.0 - ISC
178
+ *
179
+ * This source code is licensed under the ISC license.
180
+ * See the LICENSE file in the root directory of this source tree.
181
+ */const $p=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Bk=N("message-square",$p);/**
182
+ * @license lucide-react v1.8.0 - ISC
183
+ *
184
+ * This source code is licensed under the ISC license.
185
+ * See the LICENSE file in the root directory of this source tree.
186
+ */const Up=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M15 3v18",key:"14nvp0"}],["path",{d:"m8 9 3 3-3 3",key:"12hl5m"}]],jk=N("panel-right-close",Up);/**
187
+ * @license lucide-react v1.8.0 - ISC
188
+ *
189
+ * This source code is licensed under the ISC license.
190
+ * See the LICENSE file in the root directory of this source tree.
191
+ */const Hp=[["path",{d:"M13 21h8",key:"1jsn5i"}],["path",{d:"M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z",key:"1a8usu"}]],$k=N("pen-line",Hp);/**
192
+ * @license lucide-react v1.8.0 - ISC
193
+ *
194
+ * This source code is licensed under the ISC license.
195
+ * See the LICENSE file in the root directory of this source tree.
196
+ */const qp=[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]],Uk=N("play",qp);/**
197
+ * @license lucide-react v1.8.0 - ISC
198
+ *
199
+ * This source code is licensed under the ISC license.
200
+ * See the LICENSE file in the root directory of this source tree.
201
+ */const Wp=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],Hk=N("plus",Wp);/**
202
+ * @license lucide-react v1.8.0 - ISC
203
+ *
204
+ * This source code is licensed under the ISC license.
205
+ * See the LICENSE file in the root directory of this source tree.
206
+ */const Kp=[["path",{d:"M16.247 7.761a6 6 0 0 1 0 8.478",key:"1fwjs5"}],["path",{d:"M19.075 4.933a10 10 0 0 1 0 14.134",key:"ehdyv1"}],["path",{d:"M4.925 19.067a10 10 0 0 1 0-14.134",key:"1q22gi"}],["path",{d:"M7.753 16.239a6 6 0 0 1 0-8.478",key:"r2q7qm"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}]],qk=N("radio",Kp);/**
207
+ * @license lucide-react v1.8.0 - ISC
208
+ *
209
+ * This source code is licensed under the ISC license.
210
+ * See the LICENSE file in the root directory of this source tree.
211
+ */const Xp=[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]],Wk=N("refresh-cw",Xp);/**
212
+ * @license lucide-react v1.8.0 - ISC
213
+ *
214
+ * This source code is licensed under the ISC license.
215
+ * See the LICENSE file in the root directory of this source tree.
216
+ */const Yp=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Kk=N("rotate-cw",Yp);/**
217
+ * @license lucide-react v1.8.0 - ISC
218
+ *
219
+ * This source code is licensed under the ISC license.
220
+ * See the LICENSE file in the root directory of this source tree.
221
+ */const Gp=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Xk=N("search",Gp);/**
222
+ * @license lucide-react v1.8.0 - ISC
223
+ *
224
+ * This source code is licensed under the ISC license.
225
+ * See the LICENSE file in the root directory of this source tree.
226
+ */const Zp=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Yk=N("send",Zp);/**
227
+ * @license lucide-react v1.8.0 - ISC
228
+ *
229
+ * This source code is licensed under the ISC license.
230
+ * See the LICENSE file in the root directory of this source tree.
231
+ */const Qp=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Gk=N("settings",Qp);/**
232
+ * @license lucide-react v1.8.0 - ISC
233
+ *
234
+ * This source code is licensed under the ISC license.
235
+ * See the LICENSE file in the root directory of this source tree.
236
+ */const Jp=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Zk=N("share-2",Jp);/**
237
+ * @license lucide-react v1.8.0 - ISC
238
+ *
239
+ * This source code is licensed under the ISC license.
240
+ * See the LICENSE file in the root directory of this source tree.
241
+ */const ed=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Qk=N("shield",ed);/**
242
+ * @license lucide-react v1.8.0 - ISC
243
+ *
244
+ * This source code is licensed under the ISC license.
245
+ * See the LICENSE file in the root directory of this source tree.
246
+ */const td=[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],Jk=N("sparkles",td);/**
247
+ * @license lucide-react v1.8.0 - ISC
248
+ *
249
+ * This source code is licensed under the ISC license.
250
+ * See the LICENSE file in the root directory of this source tree.
251
+ */const nd=[["path",{d:"M12 19h8",key:"baeox8"}],["path",{d:"m4 17 6-6-6-6",key:"1yngyt"}]],eb=N("terminal",nd);/**
252
+ * @license lucide-react v1.8.0 - ISC
253
+ *
254
+ * This source code is licensed under the ISC license.
255
+ * See the LICENSE file in the root directory of this source tree.
256
+ */const id=[["path",{d:"M16 17h6v-6",key:"t6n2it"}],["path",{d:"m22 17-8.5-8.5-5 5L2 7",key:"x473p"}]],tb=N("trending-down",id);/**
257
+ * @license lucide-react v1.8.0 - ISC
258
+ *
259
+ * This source code is licensed under the ISC license.
260
+ * See the LICENSE file in the root directory of this source tree.
261
+ */const rd=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],nb=N("triangle-alert",rd);/**
262
+ * @license lucide-react v1.8.0 - ISC
263
+ *
264
+ * This source code is licensed under the ISC license.
265
+ * See the LICENSE file in the root directory of this source tree.
266
+ */const od=[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]],ib=N("wrench",od);/**
267
+ * @license lucide-react v1.8.0 - ISC
268
+ *
269
+ * This source code is licensed under the ISC license.
270
+ * See the LICENSE file in the root directory of this source tree.
271
+ */const sd=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rb=N("x",sd);/**
272
+ * @license lucide-react v1.8.0 - ISC
273
+ *
274
+ * This source code is licensed under the ISC license.
275
+ * See the LICENSE file in the root directory of this source tree.
276
+ */const ad=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],ob=N("zap",ad);function Fo(e){const t=[],n=String(e||"");let i=n.indexOf(","),r=0,s=!1;for(;!s;){i===-1&&(i=n.length,s=!0);const o=n.slice(r,i).trim();(o||!s)&&t.push(o),r=i+1,i=n.indexOf(",",r)}return t}function ld(e,t){const n={};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const ud=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,cd=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,fd={};function Vo(e,t){return(fd.jsx?cd:ud).test(e)}const hd=/[ \t\n\f\r]/g;function pd(e){return typeof e=="object"?e.type==="text"?Oo(e.value):!1:Oo(e)}function Oo(e){return e.replace(hd,"")===""}class qt{constructor(t,n,i){this.normal=n,this.property=t,i&&(this.space=i)}}qt.prototype.normal={};qt.prototype.property={};qt.prototype.space=void 0;function il(e,t){const n={},i={};for(const r of e)Object.assign(n,r.property),Object.assign(i,r.normal);return new qt(n,i,t)}function zt(e){return e.toLowerCase()}class pe{constructor(t,n){this.attribute=n,this.property=t}}pe.prototype.attribute="";pe.prototype.booleanish=!1;pe.prototype.boolean=!1;pe.prototype.commaOrSpaceSeparated=!1;pe.prototype.commaSeparated=!1;pe.prototype.defined=!1;pe.prototype.mustUseProperty=!1;pe.prototype.number=!1;pe.prototype.overloadedBoolean=!1;pe.prototype.property="";pe.prototype.spaceSeparated=!1;pe.prototype.space=void 0;let dd=0;const j=tt(),ee=tt(),Ei=tt(),E=tt(),Y=tt(),ht=tt(),me=tt();function tt(){return 2**++dd}const Pi=Object.freeze(Object.defineProperty({__proto__:null,boolean:j,booleanish:ee,commaOrSpaceSeparated:me,commaSeparated:ht,number:E,overloadedBoolean:Ei,spaceSeparated:Y},Symbol.toStringTag,{value:"Module"})),Un=Object.keys(Pi);class sr extends pe{constructor(t,n,i,r){let s=-1;if(super(t,n),_o(this,"space",r),typeof i=="number")for(;++s<Un.length;){const o=Un[s];_o(this,Un[s],(i&Pi[o])===Pi[o])}}}sr.prototype.defined=!0;function _o(e,t,n){n&&(e[t]=n)}function kt(e){const t={},n={};for(const[i,r]of Object.entries(e.properties)){const s=new sr(i,e.transform(e.attributes||{},i),r,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(s.mustUseProperty=!0),t[i]=s,n[zt(i)]=i,n[zt(s.attribute)]=i}return new qt(t,n,e.space)}const rl=kt({properties:{ariaActiveDescendant:null,ariaAtomic:ee,ariaAutoComplete:null,ariaBusy:ee,ariaChecked:ee,ariaColCount:E,ariaColIndex:E,ariaColSpan:E,ariaControls:Y,ariaCurrent:null,ariaDescribedBy:Y,ariaDetails:null,ariaDisabled:ee,ariaDropEffect:Y,ariaErrorMessage:null,ariaExpanded:ee,ariaFlowTo:Y,ariaGrabbed:ee,ariaHasPopup:null,ariaHidden:ee,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:Y,ariaLevel:E,ariaLive:null,ariaModal:ee,ariaMultiLine:ee,ariaMultiSelectable:ee,ariaOrientation:null,ariaOwns:Y,ariaPlaceholder:null,ariaPosInSet:E,ariaPressed:ee,ariaReadOnly:ee,ariaRelevant:null,ariaRequired:ee,ariaRoleDescription:Y,ariaRowCount:E,ariaRowIndex:E,ariaRowSpan:E,ariaSelected:ee,ariaSetSize:E,ariaSort:null,ariaValueMax:E,ariaValueMin:E,ariaValueNow:E,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function ol(e,t){return t in e?e[t]:t}function sl(e,t){return ol(e,t.toLowerCase())}const md=kt({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ht,acceptCharset:Y,accessKey:Y,action:null,allow:null,allowFullScreen:j,allowPaymentRequest:j,allowUserMedia:j,alt:null,as:null,async:j,autoCapitalize:null,autoComplete:Y,autoFocus:j,autoPlay:j,blocking:Y,capture:null,charSet:null,checked:j,cite:null,className:Y,cols:E,colSpan:null,content:null,contentEditable:ee,controls:j,controlsList:Y,coords:E|ht,crossOrigin:null,data:null,dateTime:null,decoding:null,default:j,defer:j,dir:null,dirName:null,disabled:j,download:Ei,draggable:ee,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:j,formTarget:null,headers:Y,height:E,hidden:Ei,high:E,href:null,hrefLang:null,htmlFor:Y,httpEquiv:Y,id:null,imageSizes:null,imageSrcSet:null,inert:j,inputMode:null,integrity:null,is:null,isMap:j,itemId:null,itemProp:Y,itemRef:Y,itemScope:j,itemType:Y,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:j,low:E,manifest:null,max:null,maxLength:E,media:null,method:null,min:null,minLength:E,multiple:j,muted:j,name:null,nonce:null,noModule:j,noValidate:j,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:j,optimum:E,pattern:null,ping:Y,placeholder:null,playsInline:j,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:j,referrerPolicy:null,rel:Y,required:j,reversed:j,rows:E,rowSpan:E,sandbox:Y,scope:null,scoped:j,seamless:j,selected:j,shadowRootClonable:j,shadowRootDelegatesFocus:j,shadowRootMode:null,shape:null,size:E,sizes:null,slot:null,span:E,spellCheck:ee,src:null,srcDoc:null,srcLang:null,srcSet:null,start:E,step:null,style:null,tabIndex:E,target:null,title:null,translate:null,type:null,typeMustMatch:j,useMap:null,value:ee,width:E,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:Y,axis:null,background:null,bgColor:null,border:E,borderColor:null,bottomMargin:E,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:j,declare:j,event:null,face:null,frame:null,frameBorder:null,hSpace:E,leftMargin:E,link:null,longDesc:null,lowSrc:null,marginHeight:E,marginWidth:E,noResize:j,noHref:j,noShade:j,noWrap:j,object:null,profile:null,prompt:null,rev:null,rightMargin:E,rules:null,scheme:null,scrolling:ee,standby:null,summary:null,text:null,topMargin:E,valueType:null,version:null,vAlign:null,vLink:null,vSpace:E,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:j,disableRemotePlayback:j,prefix:null,property:null,results:E,security:null,unselectable:null},space:"html",transform:sl}),gd=kt({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:E,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:E,amplitude:E,arabicForm:null,ascent:E,attributeName:null,attributeType:null,azimuth:E,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:E,by:null,calcMode:null,capHeight:E,className:Y,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:E,diffuseConstant:E,direction:null,display:null,dur:null,divisor:E,dominantBaseline:null,download:j,dx:null,dy:null,edgeMode:null,editable:null,elevation:E,enableBackground:null,end:null,event:null,exponent:E,externalResourcesRequired:null,fill:null,fillOpacity:E,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:ht,g2:ht,glyphName:ht,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:E,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:E,horizOriginX:E,horizOriginY:E,id:null,ideographic:E,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:E,k:E,k1:E,k2:E,k3:E,k4:E,kernelMatrix:me,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:E,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:E,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:E,overlineThickness:E,paintOrder:null,panose1:null,path:null,pathLength:E,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:Y,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:E,pointsAtY:E,pointsAtZ:E,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:E,specularExponent:E,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:E,strikethroughThickness:E,string:null,stroke:null,strokeDashArray:me,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:E,strokeOpacity:E,strokeWidth:null,style:null,surfaceScale:E,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:me,tabIndex:E,tableValues:null,target:null,targetX:E,targetY:E,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:E,underlineThickness:E,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:E,values:null,vAlphabetic:E,vMathematical:E,vectorEffect:null,vHanging:E,vIdeographic:E,version:null,vertAdvY:E,vertOriginX:E,vertOriginY:E,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:E,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:ol}),al=kt({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()}}),ll=kt({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:sl}),ul=kt({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),yd={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"},xd=/[A-Z]/g,zo=/-[a-z]/g,kd=/^data[-\w.:]+$/i;function cl(e,t){const n=zt(t);let i=t,r=pe;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&kd.test(t)){if(t.charAt(4)==="-"){const s=t.slice(5).replace(zo,wd);i="data"+s.charAt(0).toUpperCase()+s.slice(1)}else{const s=t.slice(4);if(!zo.test(s)){let o=s.replace(xd,bd);o.charAt(0)!=="-"&&(o="-"+o),t="data"+o}}r=sr}return new r(i,t)}function bd(e){return"-"+e.toLowerCase()}function wd(e){return e.charAt(1).toUpperCase()}const fl=il([rl,md,al,ll,ul],"html"),wn=il([rl,gd,al,ll,ul],"svg");function No(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function Sd(e){return e.join(" ").trim()}var ot={},Hn,Bo;function Td(){if(Bo)return Hn;Bo=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,r=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,o=/^[;\s]*/,a=/^\s+|\s+$/g,l=`
277
+ `,u="/",c="*",f="",p="comment",h="declaration";function d(b,g){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];g=g||{};var T=1,w=1;function v(L){var M=L.match(t);M&&(T+=M.length);var $=L.lastIndexOf(l);w=~$?L.length-$:w+L.length}function A(){var L={line:T,column:w};return function(M){return M.position=new S(L),_(),M}}function S(L){this.start=L,this.end={line:T,column:w},this.source=g.source}S.prototype.content=b;function O(L){var M=new Error(g.source+":"+T+":"+w+": "+L);if(M.reason=L,M.filename=g.source,M.line=T,M.column=w,M.source=b,!g.silent)throw M}function D(L){var M=L.exec(b);if(M){var $=M[0];return v($),b=b.slice($.length),M}}function _(){D(n)}function x(L){var M;for(L=L||[];M=P();)M!==!1&&L.push(M);return L}function P(){var L=A();if(!(u!=b.charAt(0)||c!=b.charAt(1))){for(var M=2;f!=b.charAt(M)&&(c!=b.charAt(M)||u!=b.charAt(M+1));)++M;if(M+=2,f===b.charAt(M-1))return O("End of comment missing");var $=b.slice(2,M-2);return w+=2,v($),b=b.slice(M),w+=2,L({type:p,comment:$})}}function I(){var L=A(),M=D(i);if(M){if(P(),!D(r))return O("property missing ':'");var $=D(s),J=L({type:h,property:k(M[0].replace(e,f)),value:$?k($[0].replace(e,f)):f});return D(o),J}}function F(){var L=[];x(L);for(var M;M=I();)M!==!1&&(L.push(M),x(L));return L}return _(),F()}function k(b){return b?b.replace(a,f):f}return Hn=d,Hn}var jo;function Cd(){if(jo)return ot;jo=1;var e=ot&&ot.__importDefault||function(i){return i&&i.__esModule?i:{default:i}};Object.defineProperty(ot,"__esModule",{value:!0}),ot.default=n;const t=e(Td());function n(i,r){let s=null;if(!i||typeof i!="string")return s;const o=(0,t.default)(i),a=typeof r=="function";return o.forEach(l=>{if(l.type!=="declaration")return;const{property:u,value:c}=l;a?r(u,c,l):c&&(s=s||{},s[u]=c)}),s}return ot}var vt={},$o;function vd(){if($o)return vt;$o=1,Object.defineProperty(vt,"__esModule",{value:!0}),vt.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,r=/^-(ms)-/,s=function(u){return!u||n.test(u)||e.test(u)},o=function(u,c){return c.toUpperCase()},a=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),s(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(r,a):u=u.replace(i,a),u.replace(t,o))};return vt.camelCase=l,vt}var At,Uo;function Ad(){if(Uo)return At;Uo=1;var e=At&&At.__importDefault||function(r){return r&&r.__esModule?r:{default:r}},t=e(Cd()),n=vd();function i(r,s){var o={};return!r||typeof r!="string"||(0,t.default)(r,function(a,l){a&&l&&(o[(0,n.camelCase)(a,s)]=l)}),o}return i.default=i,At=i,At}var Ed=Ad();const Pd=Ds(Ed),hl=pl("end"),ar=pl("start");function pl(e){return t;function t(n){const i=n&&n.position&&n.position[e]||{};if(typeof i.line=="number"&&i.line>0&&typeof i.column=="number"&&i.column>0)return{line:i.line,column:i.column,offset:typeof i.offset=="number"&&i.offset>-1?i.offset:void 0}}}function Md(e){const t=ar(e),n=hl(e);if(t&&n)return{start:t,end:n}}function Lt(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Ho(e.position):"start"in e||"end"in e?Ho(e):"line"in e||"column"in e?Mi(e):""}function Mi(e){return qo(e&&e.line)+":"+qo(e&&e.column)}function Ho(e){return Mi(e&&e.start)+"-"+Mi(e&&e.end)}function qo(e){return e&&typeof e=="number"?e:1}class ae extends Error{constructor(t,n,i){super(),typeof n=="string"&&(i=n,n=void 0);let r="",s={},o=!1;if(n&&("line"in n&&"column"in n?s={place:n}:"start"in n&&"end"in n?s={place:n}:"type"in n?s={ancestors:[n],place:n.position}:s={...n}),typeof t=="string"?r=t:!s.cause&&t&&(o=!0,r=t.message,s.cause=t),!s.ruleId&&!s.source&&typeof i=="string"){const l=i.indexOf(":");l===-1?s.ruleId=i:(s.source=i.slice(0,l),s.ruleId=i.slice(l+1))}if(!s.place&&s.ancestors&&s.ancestors){const l=s.ancestors[s.ancestors.length-1];l&&(s.place=l.position)}const a=s.place&&"start"in s.place?s.place.start:s.place;this.ancestors=s.ancestors||void 0,this.cause=s.cause||void 0,this.column=a?a.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=a?a.line:void 0,this.name=Lt(s.place)||"1:1",this.place=s.place||void 0,this.reason=this.message,this.ruleId=s.ruleId||void 0,this.source=s.source||void 0,this.stack=o&&s.cause&&typeof s.cause.stack=="string"?s.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ae.prototype.file="";ae.prototype.name="";ae.prototype.reason="";ae.prototype.message="";ae.prototype.stack="";ae.prototype.column=void 0;ae.prototype.line=void 0;ae.prototype.ancestors=void 0;ae.prototype.cause=void 0;ae.prototype.fatal=void 0;ae.prototype.place=void 0;ae.prototype.ruleId=void 0;ae.prototype.source=void 0;const lr={}.hasOwnProperty,Dd=new Map,Id=/[A-Z]/g,Rd=new Set(["table","tbody","thead","tfoot","tr"]),Ld=new Set(["td","th"]),dl="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Fd(e,t){if(!t||t.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const n=t.filePath||void 0;let i;if(t.development){if(typeof t.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");i=$d(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");i=jd(n,t.jsx,t.jsxs)}const r={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:i,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"?wn:fl,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},s=ml(r,e,void 0);return s&&typeof s!="string"?s:r.create(e,r.Fragment,{children:s||void 0},void 0)}function ml(e,t,n){if(t.type==="element")return Vd(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return Od(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return zd(e,t,n);if(t.type==="mdxjsEsm")return _d(e,t);if(t.type==="root")return Nd(e,t,n);if(t.type==="text")return Bd(e,t)}function Vd(e,t,n){const i=e.schema;let r=i;t.tagName.toLowerCase()==="svg"&&i.space==="html"&&(r=wn,e.schema=r),e.ancestors.push(t);const s=yl(e,t.tagName,!1),o=Ud(e,t);let a=cr(e,t);return Rd.has(t.tagName)&&(a=a.filter(function(l){return typeof l=="string"?!pd(l):!0})),gl(e,o,s,t),ur(o,a),e.ancestors.pop(),e.schema=i,e.create(t,s,o,n)}function Od(e,t){if(t.data&&t.data.estree&&e.evaluater){const i=t.data.estree.body[0];return i.type,e.evaluater.evaluateExpression(i.expression)}Nt(e,t.position)}function _d(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Nt(e,t.position)}function zd(e,t,n){const i=e.schema;let r=i;t.name==="svg"&&i.space==="html"&&(r=wn,e.schema=r),e.ancestors.push(t);const s=t.name===null?e.Fragment:yl(e,t.name,!0),o=Hd(e,t),a=cr(e,t);return gl(e,o,s,t),ur(o,a),e.ancestors.pop(),e.schema=i,e.create(t,s,o,n)}function Nd(e,t,n){const i={};return ur(i,cr(e,t)),e.create(t,e.Fragment,i,n)}function Bd(e,t){return t.value}function gl(e,t,n,i){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=i)}function ur(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function jd(e,t,n){return i;function i(r,s,o,a){const u=Array.isArray(o.children)?n:t;return a?u(s,o,a):u(s,o)}}function $d(e,t){return n;function n(i,r,s,o){const a=Array.isArray(s.children),l=ar(i);return t(r,s,o,a,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function Ud(e,t){const n={};let i,r;for(r in t.properties)if(r!=="children"&&lr.call(t.properties,r)){const s=qd(e,r,t.properties[r]);if(s){const[o,a]=s;e.tableCellAlignToStyle&&o==="align"&&typeof a=="string"&&Ld.has(t.tagName)?i=a:n[o]=a}}if(i){const s=n.style||(n.style={});s[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=i}return n}function Hd(e,t){const n={};for(const i of t.attributes)if(i.type==="mdxJsxExpressionAttribute")if(i.data&&i.data.estree&&e.evaluater){const s=i.data.estree.body[0];s.type;const o=s.expression;o.type;const a=o.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Nt(e,t.position);else{const r=i.name;let s;if(i.value&&typeof i.value=="object")if(i.value.data&&i.value.data.estree&&e.evaluater){const a=i.value.data.estree.body[0];a.type,s=e.evaluater.evaluateExpression(a.expression)}else Nt(e,t.position);else s=i.value===null?!0:i.value;n[r]=s}return n}function cr(e,t){const n=[];let i=-1;const r=e.passKeys?new Map:Dd;for(;++i<t.children.length;){const s=t.children[i];let o;if(e.passKeys){const l=s.type==="element"?s.tagName:s.type==="mdxJsxFlowElement"||s.type==="mdxJsxTextElement"?s.name:void 0;if(l){const u=r.get(l)||0;o=l+"-"+u,r.set(l,u+1)}}const a=ml(e,s,o);a!==void 0&&n.push(a)}return n}function qd(e,t,n){const i=cl(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?ld(n):Sd(n)),i.property==="style"){let r=typeof n=="object"?n:Wd(e,String(n));return e.stylePropertyNameCase==="css"&&(r=Kd(r)),["style",r]}return[e.elementAttributeNameCase==="react"&&i.space?yd[i.property]||i.property:i.attribute,n]}}function Wd(e,t){try{return Pd(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const i=n,r=new ae("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:i,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw r.file=e.filePath||void 0,r.url=dl+"#cannot-parse-style-attribute",r}}function yl(e,t,n){let i;if(!n)i={type:"Literal",value:t};else if(t.includes(".")){const r=t.split(".");let s=-1,o;for(;++s<r.length;){const a=Vo(r[s])?{type:"Identifier",name:r[s]}:{type:"Literal",value:r[s]};o=o?{type:"MemberExpression",object:o,property:a,computed:!!(s&&a.type==="Literal"),optional:!1}:a}i=o}else i=Vo(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(i.type==="Literal"){const r=i.value;return lr.call(e.components,r)?e.components[r]:r}if(e.evaluater)return e.evaluater.evaluateExpression(i);Nt(e)}function Nt(e,t){const n=new ae("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=dl+"#cannot-handle-mdx-estrees-without-createevaluater",n}function Kd(e){const t={};let n;for(n in e)lr.call(e,n)&&(t[Xd(n)]=e[n]);return t}function Xd(e){let t=e.replace(Id,Yd);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function Yd(e){return"-"+e.toLowerCase()}const qn={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},Gd={};function fr(e,t){const n=Gd,i=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,r=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return xl(e,i,r)}function xl(e,t,n){if(Zd(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 Wo(e.children,t,n)}return Array.isArray(e)?Wo(e,t,n):""}function Wo(e,t,n){const i=[];let r=-1;for(;++r<e.length;)i[r]=xl(e[r],t,n);return i.join("")}function Zd(e){return!!(e&&typeof e=="object")}const Ko=document.createElement("i");function Bt(e){const t="&"+e+";";Ko.innerHTML=t;const n=Ko.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function ge(e,t,n,i){const r=e.length;let s=0,o;if(t<0?t=-t>r?0:r+t:t=t>r?r:t,n=n>0?n:0,i.length<1e4)o=Array.from(i),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);s<i.length;)o=i.slice(s,s+1e4),o.unshift(t,0),e.splice(...o),s+=1e4,t+=1e4}function ye(e,t){return e.length>0?(ge(e,e.length,0,t),e):t}const Xo={}.hasOwnProperty;function kl(e){const t={};let n=-1;for(;++n<e.length;)Qd(t,e[n]);return t}function Qd(e,t){let n;for(n in t){const r=(Xo.call(e,n)?e[n]:void 0)||(e[n]={}),s=t[n];let o;if(s)for(o in s){Xo.call(r,o)||(r[o]=[]);const a=s[o];Jd(r[o],Array.isArray(a)?a:a?[a]:[])}}}function Jd(e,t){let n=-1;const i=[];for(;++n<t.length;)(t[n].add==="after"?e:i).push(t[n]);ge(e,0,0,i)}function bl(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 Ee(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const ue=Ue(/[A-Za-z]/),se=Ue(/[\dA-Za-z]/),em=Ue(/[#-'*+\--9=?A-Z^-~]/);function gn(e){return e!==null&&(e<32||e===127)}const Di=Ue(/\d/),tm=Ue(/[\dA-Fa-f]/),nm=Ue(/[!-/:-@[-`{-~]/);function z(e){return e!==null&&e<-2}function X(e){return e!==null&&(e<0||e===32)}function U(e){return e===-2||e===-1||e===32}const Sn=Ue(new RegExp("\\p{P}|\\p{S}","u")),et=Ue(/\s/);function Ue(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function bt(e){const t=[];let n=-1,i=0,r=0;for(;++n<e.length;){const s=e.charCodeAt(n);let o="";if(s===37&&se(e.charCodeAt(n+1))&&se(e.charCodeAt(n+2)))r=2;else if(s<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(s))||(o=String.fromCharCode(s));else if(s>55295&&s<57344){const a=e.charCodeAt(n+1);s<56320&&a>56319&&a<57344?(o=String.fromCharCode(s,a),r=1):o="�"}else o=String.fromCharCode(s);o&&(t.push(e.slice(i,n),encodeURIComponent(o)),i=n+r+1,o=""),r&&(n+=r,r=0)}return t.join("")+e.slice(i)}function q(e,t,n,i){const r=i?i-1:Number.POSITIVE_INFINITY;let s=0;return o;function o(l){return U(l)?(e.enter(n),a(l)):t(l)}function a(l){return U(l)&&s++<r?(e.consume(l),a):(e.exit(n),t(l))}}const im={tokenize:rm};function rm(e){const t=e.attempt(this.parser.constructs.contentInitial,i,r);let n;return t;function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),q(e,t,"linePrefix")}function r(a){return e.enter("paragraph"),s(a)}function s(a){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,o(a)}function o(a){if(a===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(a);return}return z(a)?(e.consume(a),e.exit("chunkText"),s):(e.consume(a),o)}}const om={tokenize:sm},Yo={tokenize:am};function sm(e){const t=this,n=[];let i=0,r,s,o;return a;function a(w){if(i<n.length){const v=n[i];return t.containerState=v[1],e.attempt(v[0].continuation,l,u)(w)}return u(w)}function l(w){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,r&&T();const v=t.events.length;let A=v,S;for(;A--;)if(t.events[A][0]==="exit"&&t.events[A][1].type==="chunkFlow"){S=t.events[A][1].end;break}g(i);let O=v;for(;O<t.events.length;)t.events[O][1].end={...S},O++;return ge(t.events,A+1,0,t.events.slice(v)),t.events.length=O,u(w)}return a(w)}function u(w){if(i===n.length){if(!r)return p(w);if(r.currentConstruct&&r.currentConstruct.concrete)return d(w);t.interrupt=!!(r.currentConstruct&&!r._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(Yo,c,f)(w)}function c(w){return r&&T(),g(i),p(w)}function f(w){return t.parser.lazy[t.now().line]=i!==n.length,o=t.now().offset,d(w)}function p(w){return t.containerState={},e.attempt(Yo,h,d)(w)}function h(w){return i++,n.push([t.currentConstruct,t.containerState]),p(w)}function d(w){if(w===null){r&&T(),g(0),e.consume(w);return}return r=r||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:r,contentType:"flow",previous:s}),k(w)}function k(w){if(w===null){b(e.exit("chunkFlow"),!0),g(0),e.consume(w);return}return z(w)?(e.consume(w),b(e.exit("chunkFlow")),i=0,t.interrupt=void 0,a):(e.consume(w),k)}function b(w,v){const A=t.sliceStream(w);if(v&&A.push(null),w.previous=s,s&&(s.next=w),s=w,r.defineSkip(w.start),r.write(A),t.parser.lazy[w.start.line]){let S=r.events.length;for(;S--;)if(r.events[S][1].start.offset<o&&(!r.events[S][1].end||r.events[S][1].end.offset>o))return;const O=t.events.length;let D=O,_,x;for(;D--;)if(t.events[D][0]==="exit"&&t.events[D][1].type==="chunkFlow"){if(_){x=t.events[D][1].end;break}_=!0}for(g(i),S=O;S<t.events.length;)t.events[S][1].end={...x},S++;ge(t.events,D+1,0,t.events.slice(O)),t.events.length=S}}function g(w){let v=n.length;for(;v-- >w;){const A=n[v];t.containerState=A[1],A[0].exit.call(t,e)}n.length=w}function T(){r.write([null]),s=void 0,r=void 0,t.containerState._closeFlow=void 0}}function am(e,t,n){return q(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function mt(e){if(e===null||X(e)||et(e))return 1;if(Sn(e))return 2}function Tn(e,t,n){const i=[];let r=-1;for(;++r<e.length;){const s=e[r].resolveAll;s&&!i.includes(s)&&(t=s(t,n),i.push(s))}return t}const Ii={name:"attention",resolveAll:lm,tokenize:um};function lm(e,t){let n=-1,i,r,s,o,a,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(i=n;i--;)if(e[i][0]==="exit"&&e[i][1].type==="attentionSequence"&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f={...e[i][1].end},p={...e[n][1].start};Go(f,-l),Go(p,l),o={type:l>1?"strongSequence":"emphasisSequence",start:f,end:{...e[i][1].end}},a={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:p},s={type:l>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},r={type:l>1?"strong":"emphasis",start:{...o.start},end:{...a.end}},e[i][1].end={...o.start},e[n][1].start={...a.end},u=[],e[i][1].end.offset-e[i][1].start.offset&&(u=ye(u,[["enter",e[i][1],t],["exit",e[i][1],t]])),u=ye(u,[["enter",r,t],["enter",o,t],["exit",o,t],["enter",s,t]]),u=ye(u,Tn(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),u=ye(u,[["exit",s,t],["enter",a,t],["exit",a,t],["exit",r,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=ye(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,ge(e,i-1,n-i+3,u),n=i+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function um(e,t){const n=this.parser.constructs.attentionMarkers.null,i=this.previous,r=mt(i);let s;return o;function o(l){return s=l,e.enter("attentionSequence"),a(l)}function a(l){if(l===s)return e.consume(l),a;const u=e.exit("attentionSequence"),c=mt(l),f=!c||c===2&&r||n.includes(l),p=!r||r===2&&c||n.includes(i);return u._open=!!(s===42?f:f&&(r||!p)),u._close=!!(s===42?p:p&&(c||!f)),t(l)}}function Go(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const cm={name:"autolink",tokenize:fm};function fm(e,t,n){let i=0;return r;function r(h){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),s}function s(h){return ue(h)?(e.consume(h),o):h===64?n(h):u(h)}function o(h){return h===43||h===45||h===46||se(h)?(i=1,a(h)):u(h)}function a(h){return h===58?(e.consume(h),i=0,l):(h===43||h===45||h===46||se(h))&&i++<32?(e.consume(h),a):(i=0,u(h))}function l(h){return h===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):h===null||h===32||h===60||gn(h)?n(h):(e.consume(h),l)}function u(h){return h===64?(e.consume(h),c):em(h)?(e.consume(h),u):n(h)}function c(h){return se(h)?f(h):n(h)}function f(h){return h===46?(e.consume(h),i=0,c):h===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(h),e.exit("autolinkMarker"),e.exit("autolink"),t):p(h)}function p(h){if((h===45||se(h))&&i++<63){const d=h===45?p:f;return e.consume(h),d}return n(h)}}const Wt={partial:!0,tokenize:hm};function hm(e,t,n){return i;function i(s){return U(s)?q(e,r,"linePrefix")(s):r(s)}function r(s){return s===null||z(s)?t(s):n(s)}}const wl={continuation:{tokenize:dm},exit:mm,name:"blockQuote",tokenize:pm};function pm(e,t,n){const i=this;return r;function r(o){if(o===62){const a=i.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(o),e.exit("blockQuoteMarker"),s}return n(o)}function s(o){return U(o)?(e.enter("blockQuotePrefixWhitespace"),e.consume(o),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(o))}}function dm(e,t,n){const i=this;return r;function r(o){return U(o)?q(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o):s(o)}function s(o){return e.attempt(wl,t,n)(o)}}function mm(e){e.exit("blockQuote")}const Sl={name:"characterEscape",tokenize:gm};function gm(e,t,n){return i;function i(s){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(s),e.exit("escapeMarker"),r}function r(s){return nm(s)?(e.enter("characterEscapeValue"),e.consume(s),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(s)}}const Tl={name:"characterReference",tokenize:ym};function ym(e,t,n){const i=this;let r=0,s,o;return a;function a(f){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),l}function l(f){return f===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(f),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),s=31,o=se,c(f))}function u(f){return f===88||f===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(f),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),s=6,o=tm,c):(e.enter("characterReferenceValue"),s=7,o=Di,c(f))}function c(f){if(f===59&&r){const p=e.exit("characterReferenceValue");return o===se&&!Bt(i.sliceSerialize(p))?n(f):(e.enter("characterReferenceMarker"),e.consume(f),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return o(f)&&r++<s?(e.consume(f),c):n(f)}}const Zo={partial:!0,tokenize:km},Qo={concrete:!0,name:"codeFenced",tokenize:xm};function xm(e,t,n){const i=this,r={partial:!0,tokenize:A};let s=0,o=0,a;return l;function l(S){return u(S)}function u(S){const O=i.events[i.events.length-1];return s=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,a=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===a?(o++,e.consume(S),c):o<3?n(S):(e.exit("codeFencedFenceSequence"),U(S)?q(e,f,"whitespace")(S):f(S))}function f(S){return S===null||z(S)?(e.exit("codeFencedFence"),i.interrupt?t(S):e.check(Zo,k,v)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),p(S))}function p(S){return S===null||z(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),f(S)):U(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),q(e,h,"whitespace")(S)):S===96&&S===a?n(S):(e.consume(S),p)}function h(S){return S===null||z(S)?f(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(S))}function d(S){return S===null||z(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),f(S)):S===96&&S===a?n(S):(e.consume(S),d)}function k(S){return e.attempt(r,v,b)(S)}function b(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),g}function g(S){return s>0&&U(S)?q(e,T,"linePrefix",s+1)(S):T(S)}function T(S){return S===null||z(S)?e.check(Zo,k,v)(S):(e.enter("codeFlowValue"),w(S))}function w(S){return S===null||z(S)?(e.exit("codeFlowValue"),T(S)):(e.consume(S),w)}function v(S){return e.exit("codeFenced"),t(S)}function A(S,O,D){let _=0;return x;function x(M){return S.enter("lineEnding"),S.consume(M),S.exit("lineEnding"),P}function P(M){return S.enter("codeFencedFence"),U(M)?q(S,I,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(M):I(M)}function I(M){return M===a?(S.enter("codeFencedFenceSequence"),F(M)):D(M)}function F(M){return M===a?(_++,S.consume(M),F):_>=o?(S.exit("codeFencedFenceSequence"),U(M)?q(S,L,"whitespace")(M):L(M)):D(M)}function L(M){return M===null||z(M)?(S.exit("codeFencedFence"),O(M)):D(M)}}}function km(e,t,n){const i=this;return r;function r(o){return o===null?n(o):(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}const Wn={name:"codeIndented",tokenize:wm},bm={partial:!0,tokenize:Sm};function wm(e,t,n){const i=this;return r;function r(u){return e.enter("codeIndented"),q(e,s,"linePrefix",5)(u)}function s(u){const c=i.events[i.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?o(u):n(u)}function o(u){return u===null?l(u):z(u)?e.attempt(bm,o,l)(u):(e.enter("codeFlowValue"),a(u))}function a(u){return u===null||z(u)?(e.exit("codeFlowValue"),o(u)):(e.consume(u),a)}function l(u){return e.exit("codeIndented"),t(u)}}function Sm(e,t,n){const i=this;return r;function r(o){return i.parser.lazy[i.now().line]?n(o):z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),r):q(e,s,"linePrefix",5)(o)}function s(o){const a=i.events[i.events.length-1];return a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):z(o)?r(o):n(o)}}const Tm={name:"codeText",previous:vm,resolve:Cm,tokenize:Am};function Cm(e){let t=e.length-4,n=3,i,r;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(i=n;++i<t;)if(e[i][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)r===void 0?i!==t&&e[i][1].type!=="lineEnding"&&(r=i):(i===t||e[i][1].type==="lineEnding")&&(e[r][1].type="codeTextData",i!==r+2&&(e[r][1].end=e[i-1][1].end,e.splice(r+2,i-r-2),t-=i-r-2,i=r+2),r=void 0);return e}function vm(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function Am(e,t,n){let i=0,r,s;return o;function o(f){return e.enter("codeText"),e.enter("codeTextSequence"),a(f)}function a(f){return f===96?(e.consume(f),i++,a):(e.exit("codeTextSequence"),l(f))}function l(f){return f===null?n(f):f===32?(e.enter("space"),e.consume(f),e.exit("space"),l):f===96?(s=e.enter("codeTextSequence"),r=0,c(f)):z(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(f))}function u(f){return f===null||f===32||f===96||z(f)?(e.exit("codeTextData"),l(f)):(e.consume(f),u)}function c(f){return f===96?(e.consume(f),r++,c):r===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(f)):(s.type="codeTextData",u(f))}}class Em{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 i=n??Number.POSITIVE_INFINITY;return i<this.left.length?this.left.slice(t,i):t>this.left.length?this.right.slice(this.right.length-i+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-i+this.left.length).reverse())}splice(t,n,i){const r=n||0;this.setCursor(Math.trunc(t));const s=this.right.splice(this.right.length-r,Number.POSITIVE_INFINITY);return i&&Et(this.left,i),s.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),Et(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Et(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);Et(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Et(this.left,n.reverse())}}}function Et(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 Cl(e){const t={};let n=-1,i,r,s,o,a,l,u;const c=new Em(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(i=c.get(n),n&&i[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=i[1]._tokenizer.events,s=0,s<l.length&&l[s][1].type==="lineEndingBlank"&&(s+=2),s<l.length&&l[s][1].type==="content"))for(;++s<l.length&&l[s][1].type!=="content";)l[s][1].type==="chunkText"&&(l[s][1]._isInFirstContentOfListItem=!0,s++);if(i[0]==="enter")i[1].contentType&&(Object.assign(t,Pm(c,n)),n=t[n],u=!0);else if(i[1]._container){for(s=n,r=void 0;s--;)if(o=c.get(s),o[1].type==="lineEnding"||o[1].type==="lineEndingBlank")o[0]==="enter"&&(r&&(c.get(r)[1].type="lineEndingBlank"),o[1].type="lineEnding",r=s);else if(!(o[1].type==="linePrefix"||o[1].type==="listItemIndent"))break;r&&(i[1].end={...c.get(r)[1].start},a=c.slice(r,n),a.unshift(i),c.splice(r,n-r+1,a))}}return ge(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function Pm(e,t){const n=e.get(t)[1],i=e.get(t)[2];let r=t-1;const s=[];let o=n._tokenizer;o||(o=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));const a=o.events,l=[],u={};let c,f,p=-1,h=n,d=0,k=0;const b=[k];for(;h;){for(;e.get(++r)[1]!==h;);s.push(r),h._tokenizer||(c=i.sliceStream(h),h.next||c.push(null),f&&o.defineSkip(h.start),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(c),h._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),f=h,h=h.next}for(h=n;++p<a.length;)a[p][0]==="exit"&&a[p-1][0]==="enter"&&a[p][1].type===a[p-1][1].type&&a[p][1].start.line!==a[p][1].end.line&&(k=p+1,b.push(k),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(o.events=[],h?(h._tokenizer=void 0,h.previous=void 0):b.pop(),p=b.length;p--;){const g=a.slice(b[p],b[p+1]),T=s.pop();l.push([T,T+g.length-1]),e.splice(T,2,g)}for(l.reverse(),p=-1;++p<l.length;)u[d+l[p][0]]=d+l[p][1],d+=l[p][1]-l[p][0]-1;return u}const Mm={resolve:Im,tokenize:Rm},Dm={partial:!0,tokenize:Lm};function Im(e){return Cl(e),e}function Rm(e,t){let n;return i;function i(a){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(a)}function r(a){return a===null?s(a):z(a)?e.check(Dm,o,s)(a):(e.consume(a),r)}function s(a){return e.exit("chunkContent"),e.exit("content"),t(a)}function o(a){return e.consume(a),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}function Lm(e,t,n){const i=this;return r;function r(o){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),q(e,s,"linePrefix")}function s(o){if(o===null||z(o))return n(o);const a=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&a&&a[1].type==="linePrefix"&&a[2].sliceSerialize(a[1],!0).length>=4?t(o):e.interrupt(i.parser.constructs.flow,n,t)(o)}}function vl(e,t,n,i,r,s,o,a,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(g){return g===60?(e.enter(i),e.enter(r),e.enter(s),e.consume(g),e.exit(s),p):g===null||g===32||g===41||gn(g)?n(g):(e.enter(i),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),k(g))}function p(g){return g===62?(e.enter(s),e.consume(g),e.exit(s),e.exit(r),e.exit(i),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(g))}function h(g){return g===62?(e.exit("chunkString"),e.exit(a),p(g)):g===null||g===60||z(g)?n(g):(e.consume(g),g===92?d:h)}function d(g){return g===60||g===62||g===92?(e.consume(g),h):h(g)}function k(g){return!c&&(g===null||g===41||X(g))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(i),t(g)):c<u&&g===40?(e.consume(g),c++,k):g===41?(e.consume(g),c--,k):g===null||g===32||g===40||gn(g)?n(g):(e.consume(g),g===92?b:k)}function b(g){return g===40||g===41||g===92?(e.consume(g),k):k(g)}}function Al(e,t,n,i,r,s){const o=this;let a=0,l;return u;function u(h){return e.enter(i),e.enter(r),e.consume(h),e.exit(r),e.enter(s),c}function c(h){return a>999||h===null||h===91||h===93&&!l||h===94&&!a&&"_hiddenFootnoteSupport"in o.parser.constructs?n(h):h===93?(e.exit(s),e.enter(r),e.consume(h),e.exit(r),e.exit(i),t):z(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(h))}function f(h){return h===null||h===91||h===93||z(h)||a++>999?(e.exit("chunkString"),c(h)):(e.consume(h),l||(l=!U(h)),h===92?p:f)}function p(h){return h===91||h===92||h===93?(e.consume(h),a++,f):f(h)}}function El(e,t,n,i,r,s){let o;return a;function a(p){return p===34||p===39||p===40?(e.enter(i),e.enter(r),e.consume(p),e.exit(r),o=p===40?41:p,l):n(p)}function l(p){return p===o?(e.enter(r),e.consume(p),e.exit(r),e.exit(i),t):(e.enter(s),u(p))}function u(p){return p===o?(e.exit(s),l(o)):p===null?n(p):z(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),q(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(p))}function c(p){return p===o||p===null||z(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:c)}function f(p){return p===o||p===92?(e.consume(p),c):c(p)}}function Ft(e,t){let n;return i;function i(r){return z(r)?(e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),n=!0,i):U(r)?q(e,i,n?"linePrefix":"lineSuffix")(r):t(r)}}const Fm={name:"definition",tokenize:Om},Vm={partial:!0,tokenize:_m};function Om(e,t,n){const i=this;let r;return s;function s(h){return e.enter("definition"),o(h)}function o(h){return Al.call(i,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(h)}function a(h){return r=Ee(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),l):n(h)}function l(h){return X(h)?Ft(e,u)(h):u(h)}function u(h){return vl(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(h)}function c(h){return e.attempt(Vm,f,f)(h)}function f(h){return U(h)?q(e,p,"whitespace")(h):p(h)}function p(h){return h===null||z(h)?(e.exit("definition"),i.parser.defined.push(r),t(h)):n(h)}}function _m(e,t,n){return i;function i(a){return X(a)?Ft(e,r)(a):n(a)}function r(a){return El(e,s,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(a)}function s(a){return U(a)?q(e,o,"whitespace")(a):o(a)}function o(a){return a===null||z(a)?t(a):n(a)}}const zm={name:"hardBreakEscape",tokenize:Nm};function Nm(e,t,n){return i;function i(s){return e.enter("hardBreakEscape"),e.consume(s),r}function r(s){return z(s)?(e.exit("hardBreakEscape"),t(s)):n(s)}}const Bm={name:"headingAtx",resolve:jm,tokenize:$m};function jm(e,t){let n=e.length-2,i=3,r,s;return e[i][1].type==="whitespace"&&(i+=2),n-2>i&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(i===n-1||n-4>i&&e[n-2][1].type==="whitespace")&&(n-=i+1===n?2:4),n>i&&(r={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},s={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},ge(e,i,n-i+1,[["enter",r,t],["enter",s,t],["exit",s,t],["exit",r,t]])),e}function $m(e,t,n){let i=0;return r;function r(c){return e.enter("atxHeading"),s(c)}function s(c){return e.enter("atxHeadingSequence"),o(c)}function o(c){return c===35&&i++<6?(e.consume(c),o):c===null||X(c)?(e.exit("atxHeadingSequence"),a(c)):n(c)}function a(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||z(c)?(e.exit("atxHeading"),t(c)):U(c)?q(e,a,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),a(c))}function u(c){return c===null||c===35||X(c)?(e.exit("atxHeadingText"),a(c)):(e.consume(c),u)}}const Um=["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"],Jo=["pre","script","style","textarea"],Hm={concrete:!0,name:"htmlFlow",resolveTo:Km,tokenize:Xm},qm={partial:!0,tokenize:Gm},Wm={partial:!0,tokenize:Ym};function Km(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 Xm(e,t,n){const i=this;let r,s,o,a,l;return u;function u(y){return c(y)}function c(y){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(y),f}function f(y){return y===33?(e.consume(y),p):y===47?(e.consume(y),s=!0,k):y===63?(e.consume(y),r=3,i.interrupt?t:m):ue(y)?(e.consume(y),o=String.fromCharCode(y),b):n(y)}function p(y){return y===45?(e.consume(y),r=2,h):y===91?(e.consume(y),r=5,a=0,d):ue(y)?(e.consume(y),r=4,i.interrupt?t:m):n(y)}function h(y){return y===45?(e.consume(y),i.interrupt?t:m):n(y)}function d(y){const be="CDATA[";return y===be.charCodeAt(a++)?(e.consume(y),a===be.length?i.interrupt?t:I:d):n(y)}function k(y){return ue(y)?(e.consume(y),o=String.fromCharCode(y),b):n(y)}function b(y){if(y===null||y===47||y===62||X(y)){const be=y===47,He=o.toLowerCase();return!be&&!s&&Jo.includes(He)?(r=1,i.interrupt?t(y):I(y)):Um.includes(o.toLowerCase())?(r=6,be?(e.consume(y),g):i.interrupt?t(y):I(y)):(r=7,i.interrupt&&!i.parser.lazy[i.now().line]?n(y):s?T(y):w(y))}return y===45||se(y)?(e.consume(y),o+=String.fromCharCode(y),b):n(y)}function g(y){return y===62?(e.consume(y),i.interrupt?t:I):n(y)}function T(y){return U(y)?(e.consume(y),T):x(y)}function w(y){return y===47?(e.consume(y),x):y===58||y===95||ue(y)?(e.consume(y),v):U(y)?(e.consume(y),w):x(y)}function v(y){return y===45||y===46||y===58||y===95||se(y)?(e.consume(y),v):A(y)}function A(y){return y===61?(e.consume(y),S):U(y)?(e.consume(y),A):w(y)}function S(y){return y===null||y===60||y===61||y===62||y===96?n(y):y===34||y===39?(e.consume(y),l=y,O):U(y)?(e.consume(y),S):D(y)}function O(y){return y===l?(e.consume(y),l=null,_):y===null||z(y)?n(y):(e.consume(y),O)}function D(y){return y===null||y===34||y===39||y===47||y===60||y===61||y===62||y===96||X(y)?A(y):(e.consume(y),D)}function _(y){return y===47||y===62||U(y)?w(y):n(y)}function x(y){return y===62?(e.consume(y),P):n(y)}function P(y){return y===null||z(y)?I(y):U(y)?(e.consume(y),P):n(y)}function I(y){return y===45&&r===2?(e.consume(y),$):y===60&&r===1?(e.consume(y),J):y===62&&r===4?(e.consume(y),ne):y===63&&r===3?(e.consume(y),m):y===93&&r===5?(e.consume(y),G):z(y)&&(r===6||r===7)?(e.exit("htmlFlowData"),e.check(qm,ke,F)(y)):y===null||z(y)?(e.exit("htmlFlowData"),F(y)):(e.consume(y),I)}function F(y){return e.check(Wm,L,ke)(y)}function L(y){return e.enter("lineEnding"),e.consume(y),e.exit("lineEnding"),M}function M(y){return y===null||z(y)?F(y):(e.enter("htmlFlowData"),I(y))}function $(y){return y===45?(e.consume(y),m):I(y)}function J(y){return y===47?(e.consume(y),o="",W):I(y)}function W(y){if(y===62){const be=o.toLowerCase();return Jo.includes(be)?(e.consume(y),ne):I(y)}return ue(y)&&o.length<8?(e.consume(y),o+=String.fromCharCode(y),W):I(y)}function G(y){return y===93?(e.consume(y),m):I(y)}function m(y){return y===62?(e.consume(y),ne):y===45&&r===2?(e.consume(y),m):I(y)}function ne(y){return y===null||z(y)?(e.exit("htmlFlowData"),ke(y)):(e.consume(y),ne)}function ke(y){return e.exit("htmlFlow"),t(y)}}function Ym(e,t,n){const i=this;return r;function r(o){return z(o)?(e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),s):n(o)}function s(o){return i.parser.lazy[i.now().line]?n(o):t(o)}}function Gm(e,t,n){return i;function i(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(Wt,t,n)}}const Zm={name:"htmlText",tokenize:Qm};function Qm(e,t,n){const i=this;let r,s,o;return a;function a(m){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(m),l}function l(m){return m===33?(e.consume(m),u):m===47?(e.consume(m),A):m===63?(e.consume(m),w):ue(m)?(e.consume(m),D):n(m)}function u(m){return m===45?(e.consume(m),c):m===91?(e.consume(m),s=0,d):ue(m)?(e.consume(m),T):n(m)}function c(m){return m===45?(e.consume(m),h):n(m)}function f(m){return m===null?n(m):m===45?(e.consume(m),p):z(m)?(o=f,J(m)):(e.consume(m),f)}function p(m){return m===45?(e.consume(m),h):f(m)}function h(m){return m===62?$(m):m===45?p(m):f(m)}function d(m){const ne="CDATA[";return m===ne.charCodeAt(s++)?(e.consume(m),s===ne.length?k:d):n(m)}function k(m){return m===null?n(m):m===93?(e.consume(m),b):z(m)?(o=k,J(m)):(e.consume(m),k)}function b(m){return m===93?(e.consume(m),g):k(m)}function g(m){return m===62?$(m):m===93?(e.consume(m),g):k(m)}function T(m){return m===null||m===62?$(m):z(m)?(o=T,J(m)):(e.consume(m),T)}function w(m){return m===null?n(m):m===63?(e.consume(m),v):z(m)?(o=w,J(m)):(e.consume(m),w)}function v(m){return m===62?$(m):w(m)}function A(m){return ue(m)?(e.consume(m),S):n(m)}function S(m){return m===45||se(m)?(e.consume(m),S):O(m)}function O(m){return z(m)?(o=O,J(m)):U(m)?(e.consume(m),O):$(m)}function D(m){return m===45||se(m)?(e.consume(m),D):m===47||m===62||X(m)?_(m):n(m)}function _(m){return m===47?(e.consume(m),$):m===58||m===95||ue(m)?(e.consume(m),x):z(m)?(o=_,J(m)):U(m)?(e.consume(m),_):$(m)}function x(m){return m===45||m===46||m===58||m===95||se(m)?(e.consume(m),x):P(m)}function P(m){return m===61?(e.consume(m),I):z(m)?(o=P,J(m)):U(m)?(e.consume(m),P):_(m)}function I(m){return m===null||m===60||m===61||m===62||m===96?n(m):m===34||m===39?(e.consume(m),r=m,F):z(m)?(o=I,J(m)):U(m)?(e.consume(m),I):(e.consume(m),L)}function F(m){return m===r?(e.consume(m),r=void 0,M):m===null?n(m):z(m)?(o=F,J(m)):(e.consume(m),F)}function L(m){return m===null||m===34||m===39||m===60||m===61||m===96?n(m):m===47||m===62||X(m)?_(m):(e.consume(m),L)}function M(m){return m===47||m===62||X(m)?_(m):n(m)}function $(m){return m===62?(e.consume(m),e.exit("htmlTextData"),e.exit("htmlText"),t):n(m)}function J(m){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),W}function W(m){return U(m)?q(e,G,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(m):G(m)}function G(m){return e.enter("htmlTextData"),o(m)}}const hr={name:"labelEnd",resolveAll:ng,resolveTo:ig,tokenize:rg},Jm={tokenize:og},eg={tokenize:sg},tg={tokenize:ag};function ng(e){let t=-1;const n=[];for(;++t<e.length;){const i=e[t][1];if(n.push(e[t]),i.type==="labelImage"||i.type==="labelLink"||i.type==="labelEnd"){const r=i.type==="labelImage"?4:2;i.type="data",t+=r}}return e.length!==n.length&&ge(e,0,e.length,n),e}function ig(e,t){let n=e.length,i=0,r,s,o,a;for(;n--;)if(r=e[n][1],s){if(r.type==="link"||r.type==="labelLink"&&r._inactive)break;e[n][0]==="enter"&&r.type==="labelLink"&&(r._inactive=!0)}else if(o){if(e[n][0]==="enter"&&(r.type==="labelImage"||r.type==="labelLink")&&!r._balanced&&(s=n,r.type!=="labelLink")){i=2;break}}else r.type==="labelEnd"&&(o=n);const l={type:e[s][1].type==="labelLink"?"link":"image",start:{...e[s][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[s][1].start},end:{...e[o][1].end}},c={type:"labelText",start:{...e[s+i+2][1].end},end:{...e[o-2][1].start}};return a=[["enter",l,t],["enter",u,t]],a=ye(a,e.slice(s+1,s+i+3)),a=ye(a,[["enter",c,t]]),a=ye(a,Tn(t.parser.constructs.insideSpan.null,e.slice(s+i+4,o-3),t)),a=ye(a,[["exit",c,t],e[o-2],e[o-1],["exit",u,t]]),a=ye(a,e.slice(o+1)),a=ye(a,[["exit",l,t]]),ge(e,s,e.length,a),e}function rg(e,t,n){const i=this;let r=i.events.length,s,o;for(;r--;)if((i.events[r][1].type==="labelImage"||i.events[r][1].type==="labelLink")&&!i.events[r][1]._balanced){s=i.events[r][1];break}return a;function a(p){return s?s._inactive?f(p):(o=i.parser.defined.includes(Ee(i.sliceSerialize({start:s.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(p),e.exit("labelMarker"),e.exit("labelEnd"),l):n(p)}function l(p){return p===40?e.attempt(Jm,c,o?c:f)(p):p===91?e.attempt(eg,c,o?u:f)(p):o?c(p):f(p)}function u(p){return e.attempt(tg,c,f)(p)}function c(p){return t(p)}function f(p){return s._balanced=!0,n(p)}}function og(e,t,n){return i;function i(f){return e.enter("resource"),e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),r}function r(f){return X(f)?Ft(e,s)(f):s(f)}function s(f){return f===41?c(f):vl(e,o,a,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(f)}function o(f){return X(f)?Ft(e,l)(f):c(f)}function a(f){return n(f)}function l(f){return f===34||f===39||f===40?El(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(f):c(f)}function u(f){return X(f)?Ft(e,c)(f):c(f)}function c(f){return f===41?(e.enter("resourceMarker"),e.consume(f),e.exit("resourceMarker"),e.exit("resource"),t):n(f)}}function sg(e,t,n){const i=this;return r;function r(a){return Al.call(i,e,s,o,"reference","referenceMarker","referenceString")(a)}function s(a){return i.parser.defined.includes(Ee(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(a):n(a)}function o(a){return n(a)}}function ag(e,t,n){return i;function i(s){return e.enter("reference"),e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),r}function r(s){return s===93?(e.enter("referenceMarker"),e.consume(s),e.exit("referenceMarker"),e.exit("reference"),t):n(s)}}const lg={name:"labelStartImage",resolveAll:hr.resolveAll,tokenize:ug};function ug(e,t,n){const i=this;return r;function r(a){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(a),e.exit("labelImageMarker"),s}function s(a){return a===91?(e.enter("labelMarker"),e.consume(a),e.exit("labelMarker"),e.exit("labelImage"),o):n(a)}function o(a){return a===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(a):t(a)}}const cg={name:"labelStartLink",resolveAll:hr.resolveAll,tokenize:fg};function fg(e,t,n){const i=this;return r;function r(o){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(o),e.exit("labelMarker"),e.exit("labelLink"),s}function s(o){return o===94&&"_hiddenFootnoteSupport"in i.parser.constructs?n(o):t(o)}}const Kn={name:"lineEnding",tokenize:hg};function hg(e,t){return n;function n(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),q(e,t,"linePrefix")}}const ln={name:"thematicBreak",tokenize:pg};function pg(e,t,n){let i=0,r;return s;function s(u){return e.enter("thematicBreak"),o(u)}function o(u){return r=u,a(u)}function a(u){return u===r?(e.enter("thematicBreakSequence"),l(u)):i>=3&&(u===null||z(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===r?(e.consume(u),i++,l):(e.exit("thematicBreakSequence"),U(u)?q(e,a,"whitespace")(u):a(u))}}const he={continuation:{tokenize:yg},exit:kg,name:"list",tokenize:gg},dg={partial:!0,tokenize:bg},mg={partial:!0,tokenize:xg};function gg(e,t,n){const i=this,r=i.events[i.events.length-1];let s=r&&r[1].type==="linePrefix"?r[2].sliceSerialize(r[1],!0).length:0,o=0;return a;function a(h){const d=i.containerState.type||(h===42||h===43||h===45?"listUnordered":"listOrdered");if(d==="listUnordered"?!i.containerState.marker||h===i.containerState.marker:Di(h)){if(i.containerState.type||(i.containerState.type=d,e.enter(d,{_container:!0})),d==="listUnordered")return e.enter("listItemPrefix"),h===42||h===45?e.check(ln,n,u)(h):u(h);if(!i.interrupt||h===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(h)}return n(h)}function l(h){return Di(h)&&++o<10?(e.consume(h),l):(!i.interrupt||o<2)&&(i.containerState.marker?h===i.containerState.marker:h===41||h===46)?(e.exit("listItemValue"),u(h)):n(h)}function u(h){return e.enter("listItemMarker"),e.consume(h),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||h,e.check(Wt,i.interrupt?n:c,e.attempt(dg,p,f))}function c(h){return i.containerState.initialBlankLine=!0,s++,p(h)}function f(h){return U(h)?(e.enter("listItemPrefixWhitespace"),e.consume(h),e.exit("listItemPrefixWhitespace"),p):n(h)}function p(h){return i.containerState.size=s+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(h)}}function yg(e,t,n){const i=this;return i.containerState._closeFlow=void 0,e.check(Wt,r,s);function r(a){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.containerState.initialBlankLine,q(e,t,"listItemIndent",i.containerState.size+1)(a)}function s(a){return i.containerState.furtherBlankLines||!U(a)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,o(a)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(mg,t,o)(a))}function o(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,q(e,e.attempt(he,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}function xg(e,t,n){const i=this;return q(e,r,"listItemIndent",i.containerState.size+1);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="listItemIndent"&&o[2].sliceSerialize(o[1],!0).length===i.containerState.size?t(s):n(s)}}function kg(e){e.exit(this.containerState.type)}function bg(e,t,n){const i=this;return q(e,r,"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function r(s){const o=i.events[i.events.length-1];return!U(s)&&o&&o[1].type==="listItemPrefixWhitespace"?t(s):n(s)}}const es={name:"setextUnderline",resolveTo:wg,tokenize:Sg};function wg(e,t){let n=e.length,i,r,s;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){i=n;break}e[n][1].type==="paragraph"&&(r=n)}else e[n][1].type==="content"&&e.splice(n,1),!s&&e[n][1].type==="definition"&&(s=n);const o={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",s?(e.splice(r,0,["enter",o,t]),e.splice(s+1,0,["exit",e[i][1],t]),e[i][1].end={...e[s][1].end}):e[i][1]=o,e.push(["exit",o,t]),e}function Sg(e,t,n){const i=this;let r;return s;function s(u){let c=i.events.length,f;for(;c--;)if(i.events[c][1].type!=="lineEnding"&&i.events[c][1].type!=="linePrefix"&&i.events[c][1].type!=="content"){f=i.events[c][1].type==="paragraph";break}return!i.parser.lazy[i.now().line]&&(i.interrupt||f)?(e.enter("setextHeadingLine"),r=u,o(u)):n(u)}function o(u){return e.enter("setextHeadingLineSequence"),a(u)}function a(u){return u===r?(e.consume(u),a):(e.exit("setextHeadingLineSequence"),U(u)?q(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||z(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Tg={tokenize:Cg};function Cg(e){const t=this,n=e.attempt(Wt,i,e.attempt(this.parser.constructs.flowInitial,r,q(e,e.attempt(this.parser.constructs.flow,r,e.attempt(Mm,r)),"linePrefix")));return n;function i(s){if(s===null){e.consume(s);return}return e.enter("lineEndingBlank"),e.consume(s),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function r(s){if(s===null){e.consume(s);return}return e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const vg={resolveAll:Ml()},Ag=Pl("string"),Eg=Pl("text");function Pl(e){return{resolveAll:Ml(e==="text"?Pg:void 0),tokenize:t};function t(n){const i=this,r=this.parser.constructs[e],s=n.attempt(r,o,a);return o;function o(c){return u(c)?s(c):a(c)}function a(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),s(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=r[c];let p=-1;if(f)for(;++p<f.length;){const h=f[p];if(!h.previous||h.previous.call(i,i.previous))return!0}return!1}}}function Ml(e){return t;function t(n,i){let r=-1,s;for(;++r<=n.length;)s===void 0?n[r]&&n[r][1].type==="data"&&(s=r,r++):(!n[r]||n[r][1].type!=="data")&&(r!==s+2&&(n[s][1].end=n[r-1][1].end,n.splice(s+2,r-s-2),r=s+2),s=void 0);return e?e(n,i):n}}function Pg(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 i=e[n-1][1],r=t.sliceStream(i);let s=r.length,o=-1,a=0,l;for(;s--;){const u=r[s];if(typeof u=="string"){for(o=u.length;u.charCodeAt(o-1)===32;)a++,o--;if(o)break;o=-1}else if(u===-2)l=!0,a++;else if(u!==-1){s++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(a=0),a){const u={type:n===e.length||l||a<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:s?o:i.start._bufferIndex+o,_index:i.start._index+s,line:i.end.line,column:i.end.column-a,offset:i.end.offset-a},end:{...i.end}};i.end={...u.start},i.start.offset===i.end.offset?Object.assign(i,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Mg={42:he,43:he,45:he,48:he,49:he,50:he,51:he,52:he,53:he,54:he,55:he,56:he,57:he,62:wl},Dg={91:Fm},Ig={[-2]:Wn,[-1]:Wn,32:Wn},Rg={35:Bm,42:ln,45:[es,ln],60:Hm,61:es,95:ln,96:Qo,126:Qo},Lg={38:Tl,92:Sl},Fg={[-5]:Kn,[-4]:Kn,[-3]:Kn,33:lg,38:Tl,42:Ii,60:[cm,Zm],91:cg,92:[zm,Sl],93:hr,95:Ii,96:Tm},Vg={null:[Ii,vg]},Og={null:[42,95]},_g={null:[]},zg=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:Og,contentInitial:Dg,disable:_g,document:Mg,flow:Rg,flowInitial:Ig,insideSpan:Vg,string:Lg,text:Fg},Symbol.toStringTag,{value:"Module"}));function Ng(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const r={},s=[];let o=[],a=[];const l={attempt:O(A),check:O(S),consume:T,enter:w,exit:v,interrupt:O(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:k,events:[],now:d,parser:e,previous:null,sliceSerialize:p,sliceStream:h,write:f};let c=t.tokenize.call(u,l);return t.resolveAll&&s.push(t),u;function f(P){return o=ye(o,P),b(),o[o.length-1]!==null?[]:(D(t,0),u.events=Tn(s,u.events,u),u.events)}function p(P,I){return jg(h(P),I)}function h(P){return Bg(o,P)}function d(){const{_bufferIndex:P,_index:I,line:F,column:L,offset:M}=i;return{_bufferIndex:P,_index:I,line:F,column:L,offset:M}}function k(P){r[P.line]=P.column,x()}function b(){let P;for(;i._index<o.length;){const I=o[i._index];if(typeof I=="string")for(P=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===P&&i._bufferIndex<I.length;)g(I.charCodeAt(i._bufferIndex));else g(I)}}function g(P){c=c(P)}function T(P){z(P)?(i.line++,i.column=1,i.offset+=P===-3?2:1,x()):P!==-1&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===o[i._index].length&&(i._bufferIndex=-1,i._index++)),u.previous=P}function w(P,I){const F=I||{};return F.type=P,F.start=d(),u.events.push(["enter",F,u]),a.push(F),F}function v(P){const I=a.pop();return I.end=d(),u.events.push(["exit",I,u]),I}function A(P,I){D(P,I.from)}function S(P,I){I.restore()}function O(P,I){return F;function F(L,M,$){let J,W,G,m;return Array.isArray(L)?ke(L):"tokenize"in L?ke([L]):ne(L);function ne(re){return wt;function wt(Oe){const nt=Oe!==null&&re[Oe],it=Oe!==null&&re.null,Xt=[...Array.isArray(nt)?nt:nt?[nt]:[],...Array.isArray(it)?it:it?[it]:[]];return ke(Xt)(Oe)}}function ke(re){return J=re,W=0,re.length===0?$:y(re[W])}function y(re){return wt;function wt(Oe){return m=_(),G=re,re.partial||(u.currentConstruct=re),re.name&&u.parser.constructs.disable.null.includes(re.name)?He():re.tokenize.call(I?Object.assign(Object.create(u),I):u,l,be,He)(Oe)}}function be(re){return P(G,m),M}function He(re){return m.restore(),++W<J.length?y(J[W]):$}}}function D(P,I){P.resolveAll&&!s.includes(P)&&s.push(P),P.resolve&&ge(u.events,I,u.events.length-I,P.resolve(u.events.slice(I),u)),P.resolveTo&&(u.events=P.resolveTo(u.events,u))}function _(){const P=d(),I=u.previous,F=u.currentConstruct,L=u.events.length,M=Array.from(a);return{from:L,restore:$};function $(){i=P,u.previous=I,u.currentConstruct=F,u.events.length=L,a=M,x()}}function x(){i.line in r&&i.column<2&&(i.column=r[i.line],i.offset+=r[i.line]-1)}}function Bg(e,t){const n=t.start._index,i=t.start._bufferIndex,r=t.end._index,s=t.end._bufferIndex;let o;if(n===r)o=[e[n].slice(i,s)];else{if(o=e.slice(n,r),i>-1){const a=o[0];typeof a=="string"?o[0]=a.slice(i):o.shift()}s>0&&o.push(e[r].slice(0,s))}return o}function jg(e,t){let n=-1;const i=[];let r;for(;++n<e.length;){const s=e[n];let o;if(typeof s=="string")o=s;else switch(s){case-5:{o="\r";break}case-4:{o=`
278
+ `;break}case-3:{o=`\r
279
+ `;break}case-2:{o=t?" ":" ";break}case-1:{if(!t&&r)continue;o=" ";break}default:o=String.fromCharCode(s)}r=s===-2,i.push(o)}return i.join("")}function $g(e){const i={constructs:kl([zg,...(e||{}).extensions||[]]),content:r(im),defined:[],document:r(om),flow:r(Tg),lazy:{},string:r(Ag),text:r(Eg)};return i;function r(s){return o;function o(a){return Ng(i,s,a)}}}function Ug(e){for(;!Cl(e););return e}const ts=/[\0\t\n\r]/g;function Hg(){let e=1,t="",n=!0,i;return r;function r(s,o,a){const l=[];let u,c,f,p,h;for(s=t+(typeof s=="string"?s.toString():new TextDecoder(o||void 0).decode(s)),f=0,t="",n&&(s.charCodeAt(0)===65279&&f++,n=void 0);f<s.length;){if(ts.lastIndex=f,u=ts.exec(s),p=u&&u.index!==void 0?u.index:s.length,h=s.charCodeAt(p),!u){t=s.slice(f);break}if(h===10&&f===p&&i)l.push(-3),i=void 0;else switch(i&&(l.push(-5),i=void 0),f<p&&(l.push(s.slice(f,p)),e+=p-f),h){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:i=!0,e=1}f=p+1}return a&&(i&&l.push(-5),t&&l.push(t),l.push(null)),l}}const qg=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Wg(e){return e.replace(qg,Kg)}function Kg(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const r=n.charCodeAt(1),s=r===120||r===88;return bl(n.slice(s?2:1),s?16:10)}return Bt(n)||e}const Dl={}.hasOwnProperty;function Xg(e,t,n){return t&&typeof t=="object"&&(n=t,t=void 0),Yg(n)(Ug($g(n).document().write(Hg()(e,t,!0))))}function Yg(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(vr),autolinkProtocol:_,autolinkEmail:_,atxHeading:s(Sr),blockQuote:s(it),characterEscape:_,characterReference:_,codeFenced:s(Xt),codeFencedFenceInfo:o,codeFencedFenceMeta:o,codeIndented:s(Xt,o),codeText:s(fu,o),codeTextData:_,data:_,codeFlowValue:_,definition:s(hu),definitionDestinationString:o,definitionLabelString:o,definitionTitleString:o,emphasis:s(pu),hardBreakEscape:s(Tr),hardBreakTrailing:s(Tr),htmlFlow:s(Cr,o),htmlFlowData:_,htmlText:s(Cr,o),htmlTextData:_,image:s(du),label:o,link:s(vr),listItem:s(mu),listItemValue:p,listOrdered:s(Ar,f),listUnordered:s(Ar),paragraph:s(gu),reference:y,referenceString:o,resourceDestinationString:o,resourceTitleString:o,setextHeading:s(Sr),strong:s(yu),thematicBreak:s(ku)},exit:{atxHeading:l(),atxHeadingSequence:A,autolink:l(),autolinkEmail:nt,autolinkProtocol:Oe,blockQuote:l(),characterEscapeValue:x,characterReferenceMarkerHexadecimal:He,characterReferenceMarkerNumeric:He,characterReferenceValue:re,characterReference:wt,codeFenced:l(b),codeFencedFence:k,codeFencedFenceInfo:h,codeFencedFenceMeta:d,codeFlowValue:x,codeIndented:l(g),codeText:l(M),codeTextData:x,data:x,definition:l(),definitionDestinationString:v,definitionLabelString:T,definitionTitleString:w,emphasis:l(),hardBreakEscape:l(I),hardBreakTrailing:l(I),htmlFlow:l(F),htmlFlowData:x,htmlText:l(L),htmlTextData:x,image:l(J),label:G,labelText:W,lineEnding:P,link:l($),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:be,resourceDestinationString:m,resourceTitleString:ne,resource:ke,setextHeading:l(D),setextHeadingLineSequence:O,setextHeadingText:S,strong:l(),thematicBreak:l()}};Il(t,(e||{}).mdastExtensions||[]);const n={};return i;function i(C){let R={type:"root",children:[]};const B={stack:[R],tokenStack:[],config:t,enter:a,exit:u,buffer:o,resume:c,data:n},H=[];let K=-1;for(;++K<C.length;)if(C[K][1].type==="listOrdered"||C[K][1].type==="listUnordered")if(C[K][0]==="enter")H.push(K);else{const we=H.pop();K=r(C,we,K)}for(K=-1;++K<C.length;){const we=t[C[K][0]];Dl.call(we,C[K][1].type)&&we[C[K][1].type].call(Object.assign({sliceSerialize:C[K][2].sliceSerialize},B),C[K][1])}if(B.tokenStack.length>0){const we=B.tokenStack[B.tokenStack.length-1];(we[1]||ns).call(B,void 0,we[0])}for(R.position={start:_e(C.length>0?C[0][1].start:{line:1,column:1,offset:0}),end:_e(C.length>0?C[C.length-2][1].end:{line:1,column:1,offset:0})},K=-1;++K<t.transforms.length;)R=t.transforms[K](R)||R;return R}function r(C,R,B){let H=R-1,K=-1,we=!1,qe,Ie,St,Tt;for(;++H<=B;){const de=C[H];switch(de[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{de[0]==="enter"?K++:K--,Tt=void 0;break}case"lineEndingBlank":{de[0]==="enter"&&(qe&&!Tt&&!K&&!St&&(St=H),Tt=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:Tt=void 0}if(!K&&de[0]==="enter"&&de[1].type==="listItemPrefix"||K===-1&&de[0]==="exit"&&(de[1].type==="listUnordered"||de[1].type==="listOrdered")){if(qe){let rt=H;for(Ie=void 0;rt--;){const Re=C[rt];if(Re[1].type==="lineEnding"||Re[1].type==="lineEndingBlank"){if(Re[0]==="exit")continue;Ie&&(C[Ie][1].type="lineEndingBlank",we=!0),Re[1].type="lineEnding",Ie=rt}else if(!(Re[1].type==="linePrefix"||Re[1].type==="blockQuotePrefix"||Re[1].type==="blockQuotePrefixWhitespace"||Re[1].type==="blockQuoteMarker"||Re[1].type==="listItemIndent"))break}St&&(!Ie||St<Ie)&&(qe._spread=!0),qe.end=Object.assign({},Ie?C[Ie][1].start:de[1].end),C.splice(Ie||H,0,["exit",qe,de[2]]),H++,B++}if(de[1].type==="listItemPrefix"){const rt={type:"listItem",_spread:!1,start:Object.assign({},de[1].start),end:void 0};qe=rt,C.splice(H,0,["enter",rt,de[2]]),H++,B++,St=void 0,Tt=!0}}}return C[R][1]._spread=we,B}function s(C,R){return B;function B(H){a.call(this,C(H),H),R&&R.call(this,H)}}function o(){this.stack.push({type:"fragment",children:[]})}function a(C,R,B){this.stack[this.stack.length-1].children.push(C),this.stack.push(C),this.tokenStack.push([R,B||void 0]),C.position={start:_e(R.start),end:void 0}}function l(C){return R;function R(B){C&&C.call(this,B),u.call(this,B)}}function u(C,R){const B=this.stack.pop(),H=this.tokenStack.pop();if(H)H[0].type!==C.type&&(R?R.call(this,C,H[0]):(H[1]||ns).call(this,C,H[0]));else throw new Error("Cannot close `"+C.type+"` ("+Lt({start:C.start,end:C.end})+"): it’s not open");B.position.end=_e(C.end)}function c(){return fr(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(C){if(this.data.expectingFirstListItemValue){const R=this.stack[this.stack.length-2];R.start=Number.parseInt(this.sliceSerialize(C),10),this.data.expectingFirstListItemValue=void 0}}function h(){const C=this.resume(),R=this.stack[this.stack.length-1];R.lang=C}function d(){const C=this.resume(),R=this.stack[this.stack.length-1];R.meta=C}function k(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function b(){const C=this.resume(),R=this.stack[this.stack.length-1];R.value=C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function g(){const C=this.resume(),R=this.stack[this.stack.length-1];R.value=C.replace(/(\r?\n|\r)$/g,"")}function T(C){const R=this.resume(),B=this.stack[this.stack.length-1];B.label=R,B.identifier=Ee(this.sliceSerialize(C)).toLowerCase()}function w(){const C=this.resume(),R=this.stack[this.stack.length-1];R.title=C}function v(){const C=this.resume(),R=this.stack[this.stack.length-1];R.url=C}function A(C){const R=this.stack[this.stack.length-1];if(!R.depth){const B=this.sliceSerialize(C).length;R.depth=B}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function O(C){const R=this.stack[this.stack.length-1];R.depth=this.sliceSerialize(C).codePointAt(0)===61?1:2}function D(){this.data.setextHeadingSlurpLineEnding=void 0}function _(C){const B=this.stack[this.stack.length-1].children;let H=B[B.length-1];(!H||H.type!=="text")&&(H=xu(),H.position={start:_e(C.start),end:void 0},B.push(H)),this.stack.push(H)}function x(C){const R=this.stack.pop();R.value+=this.sliceSerialize(C),R.position.end=_e(C.end)}function P(C){const R=this.stack[this.stack.length-1];if(this.data.atHardBreak){const B=R.children[R.children.length-1];B.position.end=_e(C.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(R.type)&&(_.call(this,C),x.call(this,C))}function I(){this.data.atHardBreak=!0}function F(){const C=this.resume(),R=this.stack[this.stack.length-1];R.value=C}function L(){const C=this.resume(),R=this.stack[this.stack.length-1];R.value=C}function M(){const C=this.resume(),R=this.stack[this.stack.length-1];R.value=C}function $(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=R,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function J(){const C=this.stack[this.stack.length-1];if(this.data.inReference){const R=this.data.referenceType||"shortcut";C.type+="Reference",C.referenceType=R,delete C.url,delete C.title}else delete C.identifier,delete C.label;this.data.referenceType=void 0}function W(C){const R=this.sliceSerialize(C),B=this.stack[this.stack.length-2];B.label=Wg(R),B.identifier=Ee(R).toLowerCase()}function G(){const C=this.stack[this.stack.length-1],R=this.resume(),B=this.stack[this.stack.length-1];if(this.data.inReference=!0,B.type==="link"){const H=C.children;B.children=H}else B.alt=R}function m(){const C=this.resume(),R=this.stack[this.stack.length-1];R.url=C}function ne(){const C=this.resume(),R=this.stack[this.stack.length-1];R.title=C}function ke(){this.data.inReference=void 0}function y(){this.data.referenceType="collapsed"}function be(C){const R=this.resume(),B=this.stack[this.stack.length-1];B.label=R,B.identifier=Ee(this.sliceSerialize(C)).toLowerCase(),this.data.referenceType="full"}function He(C){this.data.characterReferenceType=C.type}function re(C){const R=this.sliceSerialize(C),B=this.data.characterReferenceType;let H;B?(H=bl(R,B==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):H=Bt(R);const K=this.stack[this.stack.length-1];K.value+=H}function wt(C){const R=this.stack.pop();R.position.end=_e(C.end)}function Oe(C){x.call(this,C);const R=this.stack[this.stack.length-1];R.url=this.sliceSerialize(C)}function nt(C){x.call(this,C);const R=this.stack[this.stack.length-1];R.url="mailto:"+this.sliceSerialize(C)}function it(){return{type:"blockquote",children:[]}}function Xt(){return{type:"code",lang:null,meta:null,value:""}}function fu(){return{type:"inlineCode",value:""}}function hu(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function pu(){return{type:"emphasis",children:[]}}function Sr(){return{type:"heading",depth:0,children:[]}}function Tr(){return{type:"break"}}function Cr(){return{type:"html",value:""}}function du(){return{type:"image",title:null,url:"",alt:null}}function vr(){return{type:"link",title:null,url:"",children:[]}}function Ar(C){return{type:"list",ordered:C.type==="listOrdered",start:null,spread:C._spread,children:[]}}function mu(C){return{type:"listItem",spread:C._spread,checked:null,children:[]}}function gu(){return{type:"paragraph",children:[]}}function yu(){return{type:"strong",children:[]}}function xu(){return{type:"text",value:""}}function ku(){return{type:"thematicBreak"}}}function _e(e){return{line:e.line,column:e.column,offset:e.offset}}function Il(e,t){let n=-1;for(;++n<t.length;){const i=t[n];Array.isArray(i)?Il(e,i):Gg(e,i)}}function Gg(e,t){let n;for(n in t)if(Dl.call(t,n))switch(n){case"canContainEols":{const i=t[n];i&&e[n].push(...i);break}case"transforms":{const i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{const i=t[n];i&&Object.assign(e[n],i);break}}}function ns(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+Lt({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+Lt({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+Lt({start:t.start,end:t.end})+") is still open")}function Zg(e){const t=this;t.parser=n;function n(i){return Xg(i,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function Qg(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 Jg(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
280
+ `}]}function ey(e,t){const n=t.value?t.value+`
281
+ `:"",i={},r=t.lang?t.lang.split(/\s+/):[];r.length>0&&(i.className=["language-"+r[0]]);let s={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(s.data={meta:t.meta}),e.patch(t,s),s=e.applyData(t,s),s={type:"element",tagName:"pre",properties:{},children:[s]},e.patch(t,s),s}function ty(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ny(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function iy(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),r=bt(i.toLowerCase()),s=e.footnoteOrder.indexOf(i);let o,a=e.footnoteCounts.get(i);a===void 0?(a=0,e.footnoteOrder.push(i),o=e.footnoteOrder.length):o=s+1,a+=1,e.footnoteCounts.set(i,a);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+r,id:n+"fnref-"+r+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function ry(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 oy(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Rl(e,t){const n=t.referenceType;let i="]";if(n==="collapsed"?i+="[]":n==="full"&&(i+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+i}];const r=e.all(t),s=r[0];s&&s.type==="text"?s.value="["+s.value:r.unshift({type:"text",value:"["});const o=r[r.length-1];return o&&o.type==="text"?o.value+=i:r.push({type:"text",value:i}),r}function sy(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Rl(e,t);const r={src:bt(i.url||""),alt:t.alt};i.title!==null&&i.title!==void 0&&(r.title=i.title);const s={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,s),e.applyData(t,s)}function ay(e,t){const n={src:bt(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 i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)}function ly(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)}function uy(e,t){const n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return Rl(e,t);const r={href:bt(i.url||"")};i.title!==null&&i.title!==void 0&&(r.title=i.title);const s={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,s),e.applyData(t,s)}function cy(e,t){const n={href:bt(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function fy(e,t,n){const i=e.all(t),r=n?hy(n):Ll(t),s={},o=[];if(typeof t.checked=="boolean"){const c=i[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},i.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),s.className=["task-list-item"]}let a=-1;for(;++a<i.length;){const c=i[a];(r||a!==0||c.type!=="element"||c.tagName!=="p")&&o.push({type:"text",value:`
282
+ `}),c.type==="element"&&c.tagName==="p"&&!r?o.push(...c.children):o.push(c)}const l=i[i.length-1];l&&(r||l.type!=="element"||l.tagName!=="p")&&o.push({type:"text",value:`
283
+ `});const u={type:"element",tagName:"li",properties:s,children:o};return e.patch(t,u),e.applyData(t,u)}function hy(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let i=-1;for(;!t&&++i<n.length;)t=Ll(n[i])}return t}function Ll(e){const t=e.spread;return t??e.children.length>1}function py(e,t){const n={},i=e.all(t);let r=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++r<i.length;){const o=i[r];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const s={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,s),e.applyData(t,s)}function dy(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function my(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function gy(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function yy(e,t){const n=e.all(t),i=n.shift(),r=[];if(i){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],o),r.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},a=ar(t.children[1]),l=hl(t.children[t.children.length-1]);a&&l&&(o.position={start:a,end:l}),r.push(o)}const s={type:"element",tagName:"table",properties:{},children:e.wrap(r,!0)};return e.patch(t,s),e.applyData(t,s)}function xy(e,t,n){const i=n?n.children:void 0,s=(i?i.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,a=o?o.length:t.children.length;let l=-1;const u=[];for(;++l<a;){const f=t.children[l],p={},h=o?o[l]:void 0;h&&(p.align=h);let d={type:"element",tagName:s,properties:p,children:[]};f&&(d.children=e.all(f),e.patch(f,d),d=e.applyData(f,d)),u.push(d)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function ky(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const is=9,rs=32;function by(e){const t=String(e),n=/\r?\n|\r/g;let i=n.exec(t),r=0;const s=[];for(;i;)s.push(os(t.slice(r,i.index),r>0,!0),i[0]),r=i.index+i[0].length,i=n.exec(t);return s.push(os(t.slice(r),r>0,!1)),s.join("")}function os(e,t,n){let i=0,r=e.length;if(t){let s=e.codePointAt(i);for(;s===is||s===rs;)i++,s=e.codePointAt(i)}if(n){let s=e.codePointAt(r-1);for(;s===is||s===rs;)r--,s=e.codePointAt(r-1)}return r>i?e.slice(i,r):""}function wy(e,t){const n={type:"text",value:by(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function Sy(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ty={blockquote:Qg,break:Jg,code:ey,delete:ty,emphasis:ny,footnoteReference:iy,heading:ry,html:oy,imageReference:sy,image:ay,inlineCode:ly,linkReference:uy,link:cy,listItem:fy,list:py,paragraph:dy,root:my,strong:gy,table:yy,tableCell:ky,tableRow:xy,text:wy,thematicBreak:Sy,toml:Qt,yaml:Qt,definition:Qt,footnoteDefinition:Qt};function Qt(){}const Fl=-1,Cn=0,Vt=1,yn=2,pr=3,dr=4,mr=5,gr=6,Vl=7,Ol=8,ss=typeof self=="object"?self:globalThis,Cy=(e,t)=>{const n=(r,s)=>(e.set(s,r),r),i=r=>{if(e.has(r))return e.get(r);const[s,o]=t[r];switch(s){case Cn:case Fl:return n(o,r);case Vt:{const a=n([],r);for(const l of o)a.push(i(l));return a}case yn:{const a=n({},r);for(const[l,u]of o)a[i(l)]=i(u);return a}case pr:return n(new Date(o),r);case dr:{const{source:a,flags:l}=o;return n(new RegExp(a,l),r)}case mr:{const a=n(new Map,r);for(const[l,u]of o)a.set(i(l),i(u));return a}case gr:{const a=n(new Set,r);for(const l of o)a.add(i(l));return a}case Vl:{const{name:a,message:l}=o;return n(new ss[a](l),r)}case Ol:return n(BigInt(o),r);case"BigInt":return n(Object(BigInt(o)),r);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:a}=new Uint8Array(o);return n(new DataView(a),o)}}return n(new ss[s](o),r)};return i},as=e=>Cy(new Map,e)(0),st="",{toString:vy}={},{keys:Ay}=Object,Pt=e=>{const t=typeof e;if(t!=="object"||!e)return[Cn,t];const n=vy.call(e).slice(8,-1);switch(n){case"Array":return[Vt,st];case"Object":return[yn,st];case"Date":return[pr,st];case"RegExp":return[dr,st];case"Map":return[mr,st];case"Set":return[gr,st];case"DataView":return[Vt,n]}return n.includes("Array")?[Vt,n]:n.includes("Error")?[Vl,n]:[yn,n]},Jt=([e,t])=>e===Cn&&(t==="function"||t==="symbol"),Ey=(e,t,n,i)=>{const r=(o,a)=>{const l=i.push(o)-1;return n.set(a,l),l},s=o=>{if(n.has(o))return n.get(o);let[a,l]=Pt(o);switch(a){case Cn:{let c=o;switch(l){case"bigint":a=Ol,c=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return r([Fl],o)}return r([a,c],o)}case Vt:{if(l){let p=o;return l==="DataView"?p=new Uint8Array(o.buffer):l==="ArrayBuffer"&&(p=new Uint8Array(o)),r([l,[...p]],o)}const c=[],f=r([a,c],o);for(const p of o)c.push(s(p));return f}case yn:{if(l)switch(l){case"BigInt":return r([l,o.toString()],o);case"Boolean":case"Number":case"String":return r([l,o.valueOf()],o)}if(t&&"toJSON"in o)return s(o.toJSON());const c=[],f=r([a,c],o);for(const p of Ay(o))(e||!Jt(Pt(o[p])))&&c.push([s(p),s(o[p])]);return f}case pr:return r([a,o.toISOString()],o);case dr:{const{source:c,flags:f}=o;return r([a,{source:c,flags:f}],o)}case mr:{const c=[],f=r([a,c],o);for(const[p,h]of o)(e||!(Jt(Pt(p))||Jt(Pt(h))))&&c.push([s(p),s(h)]);return f}case gr:{const c=[],f=r([a,c],o);for(const p of o)(e||!Jt(Pt(p)))&&c.push(s(p));return f}}const{message:u}=o;return r([a,{name:l,message:u}],o)};return s},ls=(e,{json:t,lossy:n}={})=>{const i=[];return Ey(!(t||n),!!t,new Map,i)(e),i},xn=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?as(ls(e,t)):structuredClone(e):(e,t)=>as(ls(e,t));function Py(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 My(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Dy(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Py,i=e.options.footnoteBackLabel||My,r=e.options.footnoteLabel||"Footnotes",s=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),f=String(u.identifier).toUpperCase(),p=bt(f.toLowerCase());let h=0;const d=[],k=e.footnoteCounts.get(f);for(;k!==void 0&&++h<=k;){d.length>0&&d.push({type:"text",value:" "});let T=typeof n=="string"?n:n(l,h);typeof T=="string"&&(T={type:"text",value:T}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(h>1?"-"+h:""),dataFootnoteBackref:"",ariaLabel:typeof i=="string"?i:i(l,h),className:["data-footnote-backref"]},children:Array.isArray(T)?T:[T]})}const b=c[c.length-1];if(b&&b.type==="element"&&b.tagName==="p"){const T=b.children[b.children.length-1];T&&T.type==="text"?T.value+=" ":b.children.push({type:"text",value:" "}),b.children.push(...d)}else c.push(...d);const g={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(c,!0)};e.patch(u,g),a.push(g)}if(a.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:s,properties:{...xn(o),id:"footnote-label"},children:[{type:"text",value:r}]},{type:"text",value:`
284
+ `},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:`
285
+ `}]}}const vn=(function(e){if(e==null)return Fy;if(typeof e=="function")return An(e);if(typeof e=="object")return Array.isArray(e)?Iy(e):Ry(e);if(typeof e=="string")return Ly(e);throw new Error("Expected function, string, or object as test")});function Iy(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=vn(e[n]);return An(i);function i(...r){let s=-1;for(;++s<t.length;)if(t[s].apply(this,r))return!0;return!1}}function Ry(e){const t=e;return An(n);function n(i){const r=i;let s;for(s in e)if(r[s]!==t[s])return!1;return!0}}function Ly(e){return An(t);function t(n){return n&&n.type===e}}function An(e){return t;function t(n,i,r){return!!(Vy(n)&&e.call(this,n,typeof i=="number"?i:void 0,r||void 0))}}function Fy(){return!0}function Vy(e){return e!==null&&typeof e=="object"&&"type"in e}const _l=[],Oy=!0,Ri=!1,_y="skip";function zl(e,t,n,i){let r;typeof t=="function"&&typeof n!="function"?(i=n,n=t):r=t;const s=vn(r),o=i?-1:1;a(e,void 0,[])();function a(l,u,c){const f=l&&typeof l=="object"?l:{};if(typeof f.type=="string"){const h=typeof f.tagName=="string"?f.tagName:typeof f.name=="string"?f.name:void 0;Object.defineProperty(p,"name",{value:"node ("+(l.type+(h?"<"+h+">":""))+")"})}return p;function p(){let h=_l,d,k,b;if((!t||s(l,u,c[c.length-1]||void 0))&&(h=zy(n(l,c)),h[0]===Ri))return h;if("children"in l&&l.children){const g=l;if(g.children&&h[0]!==_y)for(k=(i?g.children.length:-1)+o,b=c.concat(g);k>-1&&k<g.children.length;){const T=g.children[k];if(d=a(T,k,b)(),d[0]===Ri)return d;k=typeof d[1]=="number"?d[1]:k+o}}return h}}}function zy(e){return Array.isArray(e)?e:typeof e=="number"?[Oy,e]:e==null?_l:[e]}function yr(e,t,n,i){let r,s,o;typeof t=="function"&&typeof n!="function"?(s=void 0,o=t,r=n):(s=t,o=n,r=i),zl(e,s,a,r);function a(l,u){const c=u[u.length-1],f=c?c.children.indexOf(l):void 0;return o(l,f,c)}}const Li={}.hasOwnProperty,Ny={};function By(e,t){const n=t||Ny,i=new Map,r=new Map,s=new Map,o={...Ty,...n.handlers},a={all:u,applyData:$y,definitionById:i,footnoteById:r,footnoteCounts:s,footnoteOrder:[],handlers:o,one:l,options:n,patch:jy,wrap:Hy};return yr(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const f=c.type==="definition"?i:r,p=String(c.identifier).toUpperCase();f.has(p)||f.set(p,c)}}),a;function l(c,f){const p=c.type,h=a.handlers[p];if(Li.call(a.handlers,p)&&h)return h(a,c,f);if(a.options.passThrough&&a.options.passThrough.includes(p)){if("children"in c){const{children:k,...b}=c,g=xn(b);return g.children=a.all(c),g}return xn(c)}return(a.options.unknownHandler||Uy)(a,c,f)}function u(c){const f=[];if("children"in c){const p=c.children;let h=-1;for(;++h<p.length;){const d=a.one(p[h],c);if(d){if(h&&p[h-1].type==="break"&&(!Array.isArray(d)&&d.type==="text"&&(d.value=us(d.value)),!Array.isArray(d)&&d.type==="element")){const k=d.children[0];k&&k.type==="text"&&(k.value=us(k.value))}Array.isArray(d)?f.push(...d):f.push(d)}}}return f}}function jy(e,t){e.position&&(t.position=Md(e))}function $y(e,t){let n=t;if(e&&e.data){const i=e.data.hName,r=e.data.hChildren,s=e.data.hProperties;if(typeof i=="string")if(n.type==="element")n.tagName=i;else{const o="children"in n?n.children:[n];n={type:"element",tagName:i,properties:{},children:o}}n.type==="element"&&s&&Object.assign(n.properties,xn(s)),"children"in n&&n.children&&r!==null&&r!==void 0&&(n.children=r)}return n}function Uy(e,t){const n=t.data||{},i="value"in t&&!(Li.call(n,"hProperties")||Li.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)}function Hy(e,t){const n=[];let i=-1;for(t&&n.push({type:"text",value:`
286
+ `});++i<e.length;)i&&n.push({type:"text",value:`
287
+ `}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
288
+ `}),n}function us(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function cs(e,t){const n=By(e,t),i=n.one(e,void 0),r=Dy(n),s=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return r&&s.children.push({type:"text",value:`
289
+ `},r),s}function qy(e,t){return e&&"run"in e?async function(n,i){const r=cs(n,{file:i,...t});await e.run(r,i)}:function(n,i){return cs(n,{file:i,...e||t})}}function fs(e){if(e)throw e}var Xn,hs;function Wy(){if(hs)return Xn;hs=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,i=Object.getOwnPropertyDescriptor,r=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},s=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),f=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!f)return!1;var p;for(p in u);return typeof p>"u"||e.call(u,p)},o=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},a=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(i)return i(u,c).value}else return;return u[c]};return Xn=function l(){var u,c,f,p,h,d,k=arguments[0],b=1,g=arguments.length,T=!1;for(typeof k=="boolean"&&(T=k,k=arguments[1]||{},b=2),(k==null||typeof k!="object"&&typeof k!="function")&&(k={});b<g;++b)if(u=arguments[b],u!=null)for(c in u)f=a(k,c),p=a(u,c),k!==p&&(T&&p&&(s(p)||(h=r(p)))?(h?(h=!1,d=f&&r(f)?f:[]):d=f&&s(f)?f:{},o(k,{name:c,newValue:l(T,d,p)})):typeof p<"u"&&o(k,{name:c,newValue:p}));return k},Xn}var Ky=Wy();const Yn=Ds(Ky);function Fi(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 Xy(){const e=[],t={run:n,use:i};return t;function n(...r){let s=-1;const o=r.pop();if(typeof o!="function")throw new TypeError("Expected function as last argument, not "+o);a(null,...r);function a(l,...u){const c=e[++s];let f=-1;if(l){o(l);return}for(;++f<r.length;)(u[f]===null||u[f]===void 0)&&(u[f]=r[f]);r=u,c?Yy(c,a)(...u):o(null,...u)}}function i(r){if(typeof r!="function")throw new TypeError("Expected `middelware` to be a function, not "+r);return e.push(r),t}}function Yy(e,t){let n;return i;function i(...o){const a=e.length>o.length;let l;a&&o.push(r);try{l=e.apply(this,o)}catch(u){const c=u;if(a&&n)throw c;return r(c)}a||(l&&l.then&&typeof l.then=="function"?l.then(s,r):l instanceof Error?r(l):s(l))}function r(o,...a){n||(n=!0,t(o,...a))}function s(o){r(null,o)}}const Pe={basename:Gy,dirname:Zy,extname:Qy,join:Jy,sep:"/"};function Gy(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Kt(e);let n=0,i=-1,r=e.length,s;if(t===void 0||t.length===0||t.length>e.length){for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else i<0&&(s=!0,i=r+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let o=-1,a=t.length-1;for(;r--;)if(e.codePointAt(r)===47){if(s){n=r+1;break}}else o<0&&(s=!0,o=r+1),a>-1&&(e.codePointAt(r)===t.codePointAt(a--)?a<0&&(i=r):(a=-1,i=o));return n===i?i=o:i<0&&(i=e.length),e.slice(n,i)}function Zy(e){if(Kt(e),e.length===0)return".";let t=-1,n=e.length,i;for(;--n;)if(e.codePointAt(n)===47){if(i){t=n;break}}else i||(i=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}function Qy(e){Kt(e);let t=e.length,n=-1,i=0,r=-1,s=0,o;for(;t--;){const a=e.codePointAt(t);if(a===47){if(o){i=t+1;break}continue}n<0&&(o=!0,n=t+1),a===46?r<0?r=t:s!==1&&(s=1):r>-1&&(s=-1)}return r<0||n<0||s===0||s===1&&r===n-1&&r===i+1?"":e.slice(r,n)}function Jy(...e){let t=-1,n;for(;++t<e.length;)Kt(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":e1(n)}function e1(e){Kt(e);const t=e.codePointAt(0)===47;let n=t1(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function t1(e,t){let n="",i=0,r=-1,s=0,o=-1,a,l;for(;++o<=e.length;){if(o<e.length)a=e.codePointAt(o);else{if(a===47)break;a=47}if(a===47){if(!(r===o-1||s===1))if(r!==o-1&&s===2){if(n.length<2||i!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",i=0):(n=n.slice(0,l),i=n.length-1-n.lastIndexOf("/")),r=o,s=0;continue}}else if(n.length>0){n="",i=0,r=o,s=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(r+1,o):n=e.slice(r+1,o),i=o-r-1;r=o,s=0}else a===46&&s>-1?s++:s=-1}return n}function Kt(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const n1={cwd:i1};function i1(){return"/"}function Vi(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function r1(e){if(typeof e=="string")e=new URL(e);else if(!Vi(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 o1(e)}function o1(e){if(e.hostname!==""){const i=new TypeError('File URL host must be "localhost" or empty on darwin');throw i.code="ERR_INVALID_FILE_URL_HOST",i}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const i=t.codePointAt(n+2);if(i===70||i===102){const r=new TypeError("File URL path must not include encoded / characters");throw r.code="ERR_INVALID_FILE_URL_PATH",r}}return decodeURIComponent(t)}const Gn=["history","path","basename","stem","extname","dirname"];class Nl{constructor(t){let n;t?Vi(t)?n={path:t}:typeof t=="string"||s1(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":n1.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<Gn.length;){const s=Gn[i];s in n&&n[s]!==void 0&&n[s]!==null&&(this[s]=s==="history"?[...n[s]]:n[s])}let r;for(r in n)Gn.includes(r)||(this[r]=n[r])}get basename(){return typeof this.path=="string"?Pe.basename(this.path):void 0}set basename(t){Qn(t,"basename"),Zn(t,"basename"),this.path=Pe.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?Pe.dirname(this.path):void 0}set dirname(t){ps(this.basename,"dirname"),this.path=Pe.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?Pe.extname(this.path):void 0}set extname(t){if(Zn(t,"extname"),ps(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=Pe.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){Vi(t)&&(t=r1(t)),Qn(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?Pe.basename(this.path,this.extname):void 0}set stem(t){Qn(t,"stem"),Zn(t,"stem"),this.path=Pe.join(this.dirname||"",t+(this.extname||""))}fail(t,n,i){const r=this.message(t,n,i);throw r.fatal=!0,r}info(t,n,i){const r=this.message(t,n,i);return r.fatal=void 0,r}message(t,n,i){const r=new ae(t,n,i);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function Zn(e,t){if(e&&e.includes(Pe.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+Pe.sep+"`")}function Qn(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function ps(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function s1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const a1=(function(e){const i=this.constructor.prototype,r=i[e],s=function(){return r.apply(s,arguments)};return Object.setPrototypeOf(s,i),s}),l1={}.hasOwnProperty;class xr extends a1{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=Xy()}copy(){const t=new xr;let n=-1;for(;++n<this.attachers.length;){const i=this.attachers[n];t.use(...i)}return t.data(Yn(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(ti("data",this.frozen),this.namespace[t]=n,this):l1.call(this.namespace,t)&&this.namespace[t]||void 0:t?(ti("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,...i]=this.attachers[this.freezeIndex];if(i[0]===!1)continue;i[0]===!0&&(i[0]=void 0);const r=n.call(t,...i);typeof r=="function"&&this.transformers.use(r)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=en(t),i=this.parser||this.Parser;return Jn("parse",i),i(String(n),n)}process(t,n){const i=this;return this.freeze(),Jn("process",this.parser||this.Parser),ei("process",this.compiler||this.Compiler),n?r(void 0,n):new Promise(r);function r(s,o){const a=en(t),l=i.parse(a);i.run(l,a,function(c,f,p){if(c||!f||!p)return u(c);const h=f,d=i.stringify(h,p);f1(d)?p.value=d:p.result=d,u(c,p)});function u(c,f){c||!f?o(c):s?s(f):n(void 0,f)}}}processSync(t){let n=!1,i;return this.freeze(),Jn("processSync",this.parser||this.Parser),ei("processSync",this.compiler||this.Compiler),this.process(t,r),ms("processSync","process",n),i;function r(s,o){n=!0,fs(s),i=o}}run(t,n,i){ds(t),this.freeze();const r=this.transformers;return!i&&typeof n=="function"&&(i=n,n=void 0),i?s(void 0,i):new Promise(s);function s(o,a){const l=en(n);r.run(t,l,u);function u(c,f,p){const h=f||t;c?a(c):o?o(h):i(void 0,h,p)}}}runSync(t,n){let i=!1,r;return this.run(t,n,s),ms("runSync","run",i),r;function s(o,a){fs(o),r=a,i=!0}}stringify(t,n){this.freeze();const i=en(n),r=this.compiler||this.Compiler;return ei("stringify",r),ds(t),r(t,i)}use(t,...n){const i=this.attachers,r=this.namespace;if(ti("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?a(t):o(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function s(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...f]=u;l(c,f)}else o(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function o(u){if(!("plugins"in u)&&!("settings"in u))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");a(u.plugins),u.settings&&(r.settings=Yn(!0,r.settings,u.settings))}function a(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const f=u[c];s(f)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let f=-1,p=-1;for(;++f<i.length;)if(i[f][0]===u){p=f;break}if(p===-1)i.push([u,...c]);else if(c.length>0){let[h,...d]=c;const k=i[p][1];Fi(k)&&Fi(h)&&(h=Yn(!0,k,h)),i[p]=[u,h,...d]}}}}const u1=new xr().freeze();function Jn(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function ei(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function ti(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 ds(e){if(!Fi(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ms(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function en(e){return c1(e)?e:new Nl(e)}function c1(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function f1(e){return typeof e=="string"||h1(e)}function h1(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const p1="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",gs=[],ys={allowDangerousHtml:!0},d1=/^(https?|ircs?|mailto|xmpp)$/i,m1=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function sb(e){const t=g1(e),n=y1(e);return x1(t.runSync(t.parse(n),n),e)}function g1(e){const t=e.rehypePlugins||gs,n=e.remarkPlugins||gs,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ys}:ys;return u1().use(Zg).use(n).use(qy,i).use(t)}function y1(e){const t=e.children||"",n=new Nl;return typeof t=="string"&&(n.value=t),n}function x1(e,t){const n=t.allowedElements,i=t.allowElement,r=t.components,s=t.disallowedElements,o=t.skipHtml,a=t.unwrapDisallowed,l=t.urlTransform||k1;for(const c of m1)Object.hasOwn(t,c.from)&&(""+c.from+(c.to?"use `"+c.to+"` instead":"remove it")+p1+c.id,void 0);return yr(e,u),Fd(e,{Fragment:En.Fragment,components:r,ignoreInvalidStyle:!0,jsx:En.jsx,jsxs:En.jsxs,passKeys:!0,passNode:!0});function u(c,f,p){if(c.type==="raw"&&p&&typeof f=="number")return o?p.children.splice(f,1):p.children[f]={type:"text",value:c.value},f;if(c.type==="element"){let h;for(h in qn)if(Object.hasOwn(qn,h)&&Object.hasOwn(c.properties,h)){const d=c.properties[h],k=qn[h];(k===null||k.includes(c.tagName))&&(c.properties[h]=l(String(d||""),h,c))}}if(c.type==="element"){let h=n?!n.includes(c.tagName):s?s.includes(c.tagName):!1;if(!h&&i&&typeof f=="number"&&(h=!i(c,f,p)),h&&p&&typeof f=="number")return a&&c.children?p.children.splice(f,1,...c.children):p.children.splice(f,1),f}}}function k1(e){const t=e.indexOf(":"),n=e.indexOf("?"),i=e.indexOf("#"),r=e.indexOf("/");return t===-1||r!==-1&&t>r||n!==-1&&t>n||i!==-1&&t>i||d1.test(e.slice(0,t))?e:""}function b1(e,t){if(e==null)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(t.indexOf(i)!==-1)continue;n[i]=e[i]}return n}function ab(e,t){if(e==null)return{};var n,i,r=b1(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)n=s[i],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Oi(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,i=Array(t);n<t;n++)i[n]=e[n];return i}function w1(e){if(Array.isArray(e))return Oi(e)}function S1(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function T1(e,t){if(e){if(typeof e=="string")return Oi(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Oi(e,t):void 0}}function C1(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
290
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function lb(e){return w1(e)||S1(e)||T1(e)||C1()}function jt(e){"@babel/helpers - typeof";return jt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jt(e)}function v1(e,t){if(jt(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var i=n.call(e,t);if(jt(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function A1(e){var t=v1(e,"string");return jt(t)=="symbol"?t:t+""}function ub(e,t,n){return(t=A1(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xs(){return xs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},xs.apply(null,arguments)}const ks=/[#.]/g;function E1(e,t){const n=e||"",i={};let r=0,s,o;for(;r<n.length;){ks.lastIndex=r;const a=ks.exec(n),l=n.slice(r,a?a.index:n.length);l&&(s?s==="#"?i.id=l:Array.isArray(i.className)?i.className.push(l):i.className=[l]:o=l,r+=l.length),a&&(s=a[0],r++)}return{type:"element",tagName:o||t||"div",properties:i,children:[]}}function Bl(e,t,n){const i=n?I1(n):void 0;function r(s,o,...a){let l;if(s==null){l={type:"root",children:[]};const u=o;a.unshift(u)}else{l=E1(s,t);const u=l.tagName.toLowerCase(),c=i?i.get(u):void 0;if(l.tagName=c||u,P1(o))a.unshift(o);else for(const[f,p]of Object.entries(o))M1(e,l.properties,f,p)}for(const u of a)_i(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return r}function P1(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const i of n){const r=t[i];if(r&&typeof r=="object"){if(!Array.isArray(r))return!0;const s=r;for(const o of s)if(typeof o!="number"&&typeof o!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function M1(e,t,n,i){const r=cl(e,n);let s;if(i!=null){if(typeof i=="number"){if(Number.isNaN(i))return;s=i}else typeof i=="boolean"?s=i:typeof i=="string"?r.spaceSeparated?s=No(i):r.commaSeparated?s=Fo(i):r.commaOrSpaceSeparated?s=No(Fo(i).join(" ")):s=bs(r,r.property,i):Array.isArray(i)?s=[...i]:s=r.property==="style"?D1(i):String(i);if(Array.isArray(s)){const o=[];for(const a of s)o.push(bs(r,r.property,a));s=o}r.property==="className"&&Array.isArray(t.className)&&(s=t.className.concat(s)),t[r.property]=s}}function _i(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)_i(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?_i(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function bs(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||zt(n)===zt(t)))return!0}return n}function D1(e){const t=[];for(const[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}function I1(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const R1=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],cb=Bl(fl,"div");Bl(wn,"g",R1);const L1=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],ws={0:"�",128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"};function jl(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=48&&t<=57}function F1(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function V1(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function Ss(e){return V1(e)||jl(e)}const O1=["","Named character references must be terminated by a semicolon","Numeric character references must be terminated by a semicolon","Named character references cannot be empty","Numeric character references cannot be empty","Named character references must be known","Numeric character references cannot be disallowed","Numeric character references cannot be outside the permissible Unicode range"];function fb(e,t){const n={},i=typeof n.additional=="string"?n.additional.charCodeAt(0):n.additional,r=[];let s=0,o=-1,a="",l,u;n.position&&("start"in n.position||"indent"in n.position?(u=n.position.indent,l=n.position.start):l=n.position);let c=(l?l.line:0)||1,f=(l?l.column:0)||1,p=d(),h;for(s--;++s<=e.length;)if(h===10&&(f=(u?u[o]:0)||1),h=e.charCodeAt(s),h===38){const g=e.charCodeAt(s+1);if(g===9||g===10||g===12||g===32||g===38||g===60||Number.isNaN(g)||i&&g===i){a+=String.fromCharCode(h),f++;continue}const T=s+1;let w=T,v=T,A;if(g===35){v=++w;const F=e.charCodeAt(v);F===88||F===120?(A="hexadecimal",v=++w):A="decimal"}else A="named";let S="",O="",D="";const _=A==="named"?Ss:A==="decimal"?jl:F1;for(v--;++v<=e.length;){const F=e.charCodeAt(v);if(!_(F))break;D+=String.fromCharCode(F),A==="named"&&L1.includes(D)&&(S=D,O=Bt(D))}let x=e.charCodeAt(v)===59;if(x){v++;const F=A==="named"?Bt(D):!1;F&&(S=D,O=F)}let P=1+v-T,I="";if(!(!x&&n.nonTerminated===!1))if(!D)A!=="named"&&k(4,P);else if(A==="named"){if(x&&!O)k(5,1);else if(S!==D&&(v=w+S.length,P=1+v-w,x=!1),!x){const F=S?1:3;if(n.attribute){const L=e.charCodeAt(v);L===61?(k(F,P),O=""):Ss(L)?O="":k(F,P)}else k(F,P)}I=O}else{x||k(2,P);let F=Number.parseInt(D,A==="hexadecimal"?16:10);if(_1(F))k(7,P),I="�";else if(F in ws)k(6,P),I=ws[F];else{let L="";z1(F)&&k(6,P),F>65535&&(F-=65536,L+=String.fromCharCode(F>>>10|55296),F=56320|F&1023),I=L+String.fromCharCode(F)}}if(I){b(),p=d(),s=v-1,f+=v-T+1,r.push(I);const F=d();F.offset++,n.reference&&n.reference.call(n.referenceContext||void 0,I,{start:p,end:F},e.slice(T-1,v)),p=F}else D=e.slice(T-1,v),a+=D,f+=D.length,s=v-1}else h===10&&(c++,o++,f=0),Number.isNaN(h)?b():(a+=String.fromCharCode(h),f++);return r.join("");function d(){return{line:c,column:f,offset:s+((l?l.offset:0)||0)}}function k(g,T){let w;n.warning&&(w=d(),w.column+=T,w.offset+=T,n.warning.call(n.warningContext||void 0,O1[g],w,g))}function b(){a&&(r.push(a),n.text&&n.text.call(n.textContext||void 0,a,{start:p,end:d()}),a="")}}function _1(e){return e>=55296&&e<=57343||e>1114111}function z1(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}function Ts(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let i=0,r=n.indexOf(t);for(;r!==-1;)i++,r=n.indexOf(t,r+t.length);return i}function N1(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function B1(e,t,n){const r=vn((n||{}).ignore||[]),s=j1(t);let o=-1;for(;++o<s.length;)zl(e,"text",a);function a(u,c){let f=-1,p;for(;++f<c.length;){const h=c[f],d=p?p.children:void 0;if(r(h,d?d.indexOf(h):void 0,p))return;p=h}if(p)return l(u,c)}function l(u,c){const f=c[c.length-1],p=s[o][0],h=s[o][1];let d=0;const b=f.children.indexOf(u);let g=!1,T=[];p.lastIndex=0;let w=p.exec(u.value);for(;w;){const v=w.index,A={index:w.index,input:w.input,stack:[...c,u]};let S=h(...w,A);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?p.lastIndex=v+1:(d!==v&&T.push({type:"text",value:u.value.slice(d,v)}),Array.isArray(S)?T.push(...S):S&&T.push(S),d=v+w[0].length,g=!0),!p.global)break;w=p.exec(u.value)}return g?(d<u.value.length&&T.push({type:"text",value:u.value.slice(d)}),f.children.splice(b,1,...T)):T=[u],b+T.length}}function j1(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 i=-1;for(;++i<n.length;){const r=n[i];t.push([$1(r[0]),U1(r[1])])}return t}function $1(e){return typeof e=="string"?new RegExp(N1(e),"g"):e}function U1(e){return typeof e=="function"?e:function(){return e}}const ni="phrasing",ii=["autolink","link","image","label"];function H1(){return{transforms:[Z1],enter:{literalAutolink:W1,literalAutolinkEmail:ri,literalAutolinkHttp:ri,literalAutolinkWww:ri},exit:{literalAutolink:G1,literalAutolinkEmail:Y1,literalAutolinkHttp:K1,literalAutolinkWww:X1}}}function q1(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:ni,notInConstruct:ii},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:ni,notInConstruct:ii},{character:":",before:"[ps]",after:"\\/",inConstruct:ni,notInConstruct:ii}]}}function W1(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function ri(e){this.config.enter.autolinkProtocol.call(this,e)}function K1(e){this.config.exit.autolinkProtocol.call(this,e)}function X1(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 Y1(e){this.config.exit.autolinkEmail.call(this,e)}function G1(e){this.exit(e)}function Z1(e){B1(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Q1],[new RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),J1]],{ignore:["link","linkReference"]})}function Q1(e,t,n,i,r){let s="";if(!$l(r)||(/^w/i.test(t)&&(n=t+n,t="",s="http://"),!ex(n)))return!1;const o=tx(n+i);if(!o[0])return!1;const a={type:"link",title:null,url:s+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function J1(e,t,n,i){return!$l(i,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ex(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 tx(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")");const r=Ts(e,"(");let s=Ts(e,")");for(;i!==-1&&r>s;)e+=n.slice(0,i+1),n=n.slice(i+1),i=n.indexOf(")"),s++;return[e,n]}function $l(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||et(n)||Sn(n))&&(!t||n!==47)}Ul.peek=cx;function nx(){this.buffer()}function ix(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rx(){this.buffer()}function ox(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function sx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ee(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ax(e){this.exit(e)}function lx(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=Ee(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ux(e){this.exit(e)}function cx(){return"["}function Ul(e,t,n,i){const r=n.createTracker(i);let s=r.move("[^");const o=n.enter("footnoteReference"),a=n.enter("reference");return s+=r.move(n.safe(n.associationId(e),{after:"]",before:s})),a(),o(),s+=r.move("]"),s}function fx(){return{enter:{gfmFootnoteCallString:nx,gfmFootnoteCall:ix,gfmFootnoteDefinitionLabelString:rx,gfmFootnoteDefinition:ox},exit:{gfmFootnoteCallString:sx,gfmFootnoteCall:ax,gfmFootnoteDefinitionLabelString:lx,gfmFootnoteDefinition:ux}}}function hx(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Ul},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(i,r,s,o){const a=s.createTracker(o);let l=a.move("[^");const u=s.enter("footnoteDefinition"),c=s.enter("label");return l+=a.move(s.safe(s.associationId(i),{before:l,after:"]"})),c(),l+=a.move("]:"),i.children&&i.children.length>0&&(a.shift(4),l+=a.move((t?`
291
+ `:" ")+s.indentLines(s.containerFlow(i,a.current()),t?Hl:px))),u(),l}}function px(e,t,n){return t===0?e:Hl(e,t,n)}function Hl(e,t,n){return(n?"":" ")+e}const dx=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];ql.peek=kx;function mx(){return{canContainEols:["delete"],enter:{strikethrough:yx},exit:{strikethrough:xx}}}function gx(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:dx}],handlers:{delete:ql}}}function yx(e){this.enter({type:"delete",children:[]},e)}function xx(e){this.exit(e)}function ql(e,t,n,i){const r=n.createTracker(i),s=n.enter("strikethrough");let o=r.move("~~");return o+=n.containerPhrasing(e,{...r.current(),before:o,after:"~"}),o+=r.move("~~"),s(),o}function kx(){return"~"}function bx(e){return e.length}function wx(e,t){const n=t||{},i=(n.align||[]).concat(),r=n.stringLength||bx,s=[],o=[],a=[],l=[];let u=0,c=-1;for(;++c<e.length;){const k=[],b=[];let g=-1;for(e[c].length>u&&(u=e[c].length);++g<e[c].length;){const T=Sx(e[c][g]);if(n.alignDelimiters!==!1){const w=r(T);b[g]=w,(l[g]===void 0||w>l[g])&&(l[g]=w)}k.push(T)}o[c]=k,a[c]=b}let f=-1;if(typeof i=="object"&&"length"in i)for(;++f<u;)s[f]=Cs(i[f]);else{const k=Cs(i);for(;++f<u;)s[f]=k}f=-1;const p=[],h=[];for(;++f<u;){const k=s[f];let b="",g="";k===99?(b=":",g=":"):k===108?b=":":k===114&&(g=":");let T=n.alignDelimiters===!1?1:Math.max(1,l[f]-b.length-g.length);const w=b+"-".repeat(T)+g;n.alignDelimiters!==!1&&(T=b.length+T+g.length,T>l[f]&&(l[f]=T),h[f]=T),p[f]=w}o.splice(1,0,p),a.splice(1,0,h),c=-1;const d=[];for(;++c<o.length;){const k=o[c],b=a[c];f=-1;const g=[];for(;++f<u;){const T=k[f]||"";let w="",v="";if(n.alignDelimiters!==!1){const A=l[f]-(b[f]||0),S=s[f];S===114?w=" ".repeat(A):S===99?A%2?(w=" ".repeat(A/2+.5),v=" ".repeat(A/2-.5)):(w=" ".repeat(A/2),v=w):v=" ".repeat(A)}n.delimiterStart!==!1&&!f&&g.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&T==="")&&(n.delimiterStart!==!1||f)&&g.push(" "),n.alignDelimiters!==!1&&g.push(w),g.push(T),n.alignDelimiters!==!1&&g.push(v),n.padding!==!1&&g.push(" "),(n.delimiterEnd!==!1||f!==u-1)&&g.push("|")}d.push(n.delimiterEnd===!1?g.join("").replace(/ +$/,""):g.join(""))}return d.join(`
292
+ `)}function Sx(e){return e==null?"":String(e)}function Cs(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 Tx(e,t,n,i){const r=n.enter("blockquote"),s=n.createTracker(i);s.move("> "),s.shift(2);const o=n.indentLines(n.containerFlow(e,s.current()),Cx);return r(),o}function Cx(e,t,n){return">"+(n?"":" ")+e}function vx(e,t){return vs(e,t.inConstruct,!0)&&!vs(e,t.notInConstruct,!1)}function vs(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let i=-1;for(;++i<t.length;)if(e.includes(t[i]))return!0;return!1}function As(e,t,n,i){let r=-1;for(;++r<n.unsafe.length;)if(n.unsafe[r].character===`
293
+ `&&vx(n.stack,n.unsafe[r]))return/[ \t]/.test(i.before)?"":" ";return`\\
294
+ `}function Ax(e,t){const n=String(e);let i=n.indexOf(t),r=i,s=0,o=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;i!==-1;)i===r?++s>o&&(o=s):s=1,r=i+t.length,i=n.indexOf(t,r);return o}function Ex(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 Px(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 Mx(e,t,n,i){const r=Px(n),s=e.value||"",o=r==="`"?"GraveAccent":"Tilde";if(Ex(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(s,Dx);return f(),p}const a=n.createTracker(i),l=r.repeat(Math.max(Ax(s,r)+1,3)),u=n.enter("codeFenced");let c=a.move(l);if(e.lang){const f=n.enter(`codeFencedLang${o}`);c+=a.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...a.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${o}`);c+=a.move(" "),c+=a.move(n.safe(e.meta,{before:c,after:`
295
+ `,encode:["`"],...a.current()})),f()}return c+=a.move(`
296
+ `),s&&(c+=a.move(s+`
297
+ `)),c+=a.move(l),u(),c}function Dx(e,t,n){return(n?"":" ")+e}function kr(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 Ix(e,t,n,i){const r=kr(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("definition");let a=n.enter("label");const l=n.createTracker(i);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),a(),!e.url||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
298
+ `,...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+r),u+=l.move(n.safe(e.title,{before:u,after:r,...l.current()})),u+=l.move(r),a()),o(),u}function Rx(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 $t(e){return"&#x"+e.toString(16).toUpperCase()+";"}function kn(e,t,n){const i=mt(e),r=mt(t);return i===void 0?r===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:i===1?r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:r===void 0?{inside:!1,outside:!1}:r===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}Wl.peek=Lx;function Wl(e,t,n,i){const r=Rx(n),s=n.enter("emphasis"),o=n.createTracker(i),a=o.move(r);let l=o.move(n.containerPhrasing(e,{after:r,before:a,...o.current()}));const u=l.charCodeAt(0),c=kn(i.before.charCodeAt(i.before.length-1),u,r);c.inside&&(l=$t(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=kn(i.after.charCodeAt(0),f,r);p.inside&&(l=l.slice(0,-1)+$t(f));const h=o.move(r);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function Lx(e,t,n){return n.options.emphasis||"*"}function Fx(e,t){let n=!1;return yr(e,function(i){if("value"in i&&/\r?\n|\r/.test(i.value)||i.type==="break")return n=!0,Ri}),!!((!e.depth||e.depth<3)&&fr(e)&&(t.options.setext||n))}function Vx(e,t,n,i){const r=Math.max(Math.min(6,e.depth||1),1),s=n.createTracker(i);if(Fx(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...s.current(),before:`
299
+ `,after:`
300
+ `});return f(),c(),p+`
301
+ `+(r===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(`
302
+ `))+1))}const o="#".repeat(r),a=n.enter("headingAtx"),l=n.enter("phrasing");s.move(o+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
303
+ `,...s.current()});return/^[\t ]/.test(u)&&(u=$t(u.charCodeAt(0))+u.slice(1)),u=u?o+" "+u:o,n.options.closeAtx&&(u+=" "+o),l(),a(),u}Kl.peek=Ox;function Kl(e){return e.value||""}function Ox(){return"<"}Xl.peek=_x;function Xl(e,t,n,i){const r=kr(n),s=r==='"'?"Quote":"Apostrophe",o=n.enter("image");let a=n.enter("label");const l=n.createTracker(i);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),a(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(a=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(a=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),a(),e.title&&(a=n.enter(`title${s}`),u+=l.move(" "+r),u+=l.move(n.safe(e.title,{before:u,after:r,...l.current()})),u+=l.move(r),a()),u+=l.move(")"),o(),u}function _x(){return"!"}Yl.peek=zx;function Yl(e,t,n,i){const r=e.referenceType,s=n.enter("imageReference");let o=n.enter("label");const a=n.createTracker(i);let l=a.move("![");const u=n.safe(e.alt,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),r==="full"||!u||u!==f?l+=a.move(f+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function zx(){return"!"}Gl.peek=Nx;function Gl(e,t,n){let i=e.value||"",r="`",s=-1;for(;new RegExp("(^|[^`])"+r+"([^`]|$)").test(i);)r+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++s<n.unsafe.length;){const o=n.unsafe[s],a=n.compilePattern(o);let l;if(o.atBreak)for(;l=a.exec(i);){let u=l.index;i.charCodeAt(u)===10&&i.charCodeAt(u-1)===13&&u--,i=i.slice(0,u)+" "+i.slice(l.index+1)}}return r+i+r}function Nx(){return"`"}function Zl(e,t){const n=fr(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))}Ql.peek=Bx;function Ql(e,t,n,i){const r=kr(n),s=r==='"'?"Quote":"Apostrophe",o=n.createTracker(i);let a,l;if(Zl(e,n)){const c=n.stack;n.stack=[],a=n.enter("autolink");let f=o.move("<");return f+=o.move(n.containerPhrasing(e,{before:f,after:">",...o.current()})),f+=o.move(">"),a(),n.stack=c,f}a=n.enter("link"),l=n.enter("label");let u=o.move("[");return u+=o.move(n.containerPhrasing(e,{before:u,after:"](",...o.current()})),u+=o.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=o.move("<"),u+=o.move(n.safe(e.url,{before:u,after:">",...o.current()})),u+=o.move(">")):(l=n.enter("destinationRaw"),u+=o.move(n.safe(e.url,{before:u,after:e.title?" ":")",...o.current()}))),l(),e.title&&(l=n.enter(`title${s}`),u+=o.move(" "+r),u+=o.move(n.safe(e.title,{before:u,after:r,...o.current()})),u+=o.move(r),l()),u+=o.move(")"),a(),u}function Bx(e,t,n){return Zl(e,n)?"<":"["}Jl.peek=jx;function Jl(e,t,n,i){const r=e.referenceType,s=n.enter("linkReference");let o=n.enter("label");const a=n.createTracker(i);let l=a.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...a.current()});l+=a.move(u+"]["),o();const c=n.stack;n.stack=[],o=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...a.current()});return o(),n.stack=c,s(),r==="full"||!u||u!==f?l+=a.move(f+"]"):r==="shortcut"?l=l.slice(0,-1):l+=a.move("]"),l}function jx(){return"["}function br(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 $x(e){const t=br(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 Ux(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 eu(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 Hx(e,t,n,i){const r=n.enter("list"),s=n.bulletCurrent;let o=e.ordered?Ux(n):br(n);const a=e.ordered?o==="."?")":".":$x(n);let l=t&&n.bulletLastUsed?o===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((o==="*"||o==="-")&&c&&(!c.children||!c.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&&(l=!0),eu(n)===o&&c){let f=-1;for(;++f<e.children.length;){const p=e.children[f];if(p&&p.type==="listItem"&&p.children&&p.children[0]&&p.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(o=a),n.bulletCurrent=o;const u=n.containerFlow(e,i);return n.bulletLastUsed=o,n.bulletCurrent=s,r(),u}function qx(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 Wx(e,t,n,i){const r=qx(n);let s=n.bulletCurrent||br(n);t&&t.type==="list"&&t.ordered&&(s=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+s);let o=s.length+1;(r==="tab"||r==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(o=Math.ceil(o/4)*4);const a=n.createTracker(i);a.move(s+" ".repeat(o-s.length)),a.shift(o);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,a.current()),c);return l(),u;function c(f,p,h){return p?(h?"":" ".repeat(o))+f:(h?s:s+" ".repeat(o-s.length))+f}}function Kx(e,t,n,i){const r=n.enter("paragraph"),s=n.enter("phrasing"),o=n.containerPhrasing(e,i);return s(),r(),o}const Xx=vn(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Yx(e,t,n,i){return(e.children.some(function(o){return Xx(o)})?n.containerPhrasing:n.containerFlow).call(n,e,i)}function Gx(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}tu.peek=Zx;function tu(e,t,n,i){const r=Gx(n),s=n.enter("strong"),o=n.createTracker(i),a=o.move(r+r);let l=o.move(n.containerPhrasing(e,{after:r,before:a,...o.current()}));const u=l.charCodeAt(0),c=kn(i.before.charCodeAt(i.before.length-1),u,r);c.inside&&(l=$t(u)+l.slice(1));const f=l.charCodeAt(l.length-1),p=kn(i.after.charCodeAt(0),f,r);p.inside&&(l=l.slice(0,-1)+$t(f));const h=o.move(r+r);return s(),n.attentionEncodeSurroundingInfo={after:p.outside,before:c.outside},a+l+h}function Zx(e,t,n){return n.options.strong||"*"}function Qx(e,t,n,i){return n.safe(e.value,i)}function Jx(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 e0(e,t,n){const i=(eu(n)+(n.options.ruleSpaces?" ":"")).repeat(Jx(n));return n.options.ruleSpaces?i.slice(0,-1):i}const nu={blockquote:Tx,break:As,code:Mx,definition:Ix,emphasis:Wl,hardBreak:As,heading:Vx,html:Kl,image:Xl,imageReference:Yl,inlineCode:Gl,link:Ql,linkReference:Jl,list:Hx,listItem:Wx,paragraph:Kx,root:Yx,strong:tu,text:Qx,thematicBreak:e0};function t0(){return{enter:{table:n0,tableData:Es,tableHeader:Es,tableRow:r0},exit:{codeText:o0,table:i0,tableData:oi,tableHeader:oi,tableRow:oi}}}function n0(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 i0(e){this.exit(e),this.data.inTable=void 0}function r0(e){this.enter({type:"tableRow",children:[]},e)}function oi(e){this.exit(e)}function Es(e){this.enter({type:"tableCell",children:[]},e)}function o0(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,s0));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function s0(e,t){return t==="|"?t:e}function a0(e){const t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,r=t.stringLength,s=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
304
+ `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:o,tableCell:l,tableRow:a}};function o(h,d,k,b){return u(c(h,k,b),h.align)}function a(h,d,k,b){const g=f(h,k,b),T=u([g]);return T.slice(0,T.indexOf(`
305
+ `))}function l(h,d,k,b){const g=k.enter("tableCell"),T=k.enter("phrasing"),w=k.containerPhrasing(h,{...b,before:s,after:s});return T(),g(),w}function u(h,d){return wx(h,{align:d,alignDelimiters:i,padding:n,stringLength:r})}function c(h,d,k){const b=h.children;let g=-1;const T=[],w=d.enter("table");for(;++g<b.length;)T[g]=f(b[g],d,k);return w(),T}function f(h,d,k){const b=h.children;let g=-1;const T=[],w=d.enter("tableRow");for(;++g<b.length;)T[g]=l(b[g],h,d,k);return w(),T}function p(h,d,k){let b=nu.inlineCode(h,d,k);return k.stack.includes("tableCell")&&(b=b.replace(/\|/g,"\\$&")),b}}function l0(){return{exit:{taskListCheckValueChecked:Ps,taskListCheckValueUnchecked:Ps,paragraph:c0}}}function u0(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:f0}}}function Ps(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function c0(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 i=n.children[0];if(i&&i.type==="text"){const r=t.children;let s=-1,o;for(;++s<r.length;){const a=r[s];if(a.type==="paragraph"){o=a;break}}o===n&&(i.value=i.value.slice(1),i.value.length===0?n.children.shift():n.position&&i.position&&typeof i.position.start.offset=="number"&&(i.position.start.column++,i.position.start.offset++,n.position.start=Object.assign({},i.position.start)))}}this.exit(e)}function f0(e,t,n,i){const r=e.children[0],s=typeof e.checked=="boolean"&&r&&r.type==="paragraph",o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(i);s&&a.move(o);let l=nu.listItem(e,t,n,{...i,...a.current()});return s&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+o}}function h0(){return[H1(),fx(),mx(),t0(),l0()]}function p0(e){return{extensions:[q1(),hx(e),gx(),a0(e),u0()]}}const d0={tokenize:b0,partial:!0},iu={tokenize:w0,partial:!0},ru={tokenize:S0,partial:!0},ou={tokenize:T0,partial:!0},m0={tokenize:C0,partial:!0},su={name:"wwwAutolink",tokenize:x0,previous:lu},au={name:"protocolAutolink",tokenize:k0,previous:uu},Ve={name:"emailAutolink",tokenize:y0,previous:cu},De={};function g0(){return{text:De}}let Ke=48;for(;Ke<123;)De[Ke]=Ve,Ke++,Ke===58?Ke=65:Ke===91&&(Ke=97);De[43]=Ve;De[45]=Ve;De[46]=Ve;De[95]=Ve;De[72]=[Ve,au];De[104]=[Ve,au];De[87]=[Ve,su];De[119]=[Ve,su];function y0(e,t,n){const i=this;let r,s;return o;function o(f){return!zi(f)||!cu.call(i,i.previous)||wr(i.events)?n(f):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),a(f))}function a(f){return zi(f)?(e.consume(f),a):f===64?(e.consume(f),l):n(f)}function l(f){return f===46?e.check(m0,c,u)(f):f===45||f===95||se(f)?(s=!0,e.consume(f),l):c(f)}function u(f){return e.consume(f),r=!0,l}function c(f){return s&&r&&ue(i.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(f)):n(f)}}function x0(e,t,n){const i=this;return r;function r(o){return o!==87&&o!==119||!lu.call(i,i.previous)||wr(i.events)?n(o):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(d0,e.attempt(iu,e.attempt(ru,s),n),n)(o))}function s(o){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(o)}}function k0(e,t,n){const i=this;let r="",s=!1;return o;function o(f){return(f===72||f===104)&&uu.call(i,i.previous)&&!wr(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),r+=String.fromCodePoint(f),e.consume(f),a):n(f)}function a(f){if(ue(f)&&r.length<5)return r+=String.fromCodePoint(f),e.consume(f),a;if(f===58){const p=r.toLowerCase();if(p==="http"||p==="https")return e.consume(f),l}return n(f)}function l(f){return f===47?(e.consume(f),s?u:(s=!0,l)):n(f)}function u(f){return f===null||gn(f)||X(f)||et(f)||Sn(f)?n(f):e.attempt(iu,e.attempt(ru,c),n)(f)}function c(f){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(f)}}function b0(e,t,n){let i=0;return r;function r(o){return(o===87||o===119)&&i<3?(i++,e.consume(o),r):o===46&&i===3?(e.consume(o),s):n(o)}function s(o){return o===null?n(o):t(o)}}function w0(e,t,n){let i,r,s;return o;function o(u){return u===46||u===95?e.check(ou,l,a)(u):u===null||X(u)||et(u)||u!==45&&Sn(u)?l(u):(s=!0,e.consume(u),o)}function a(u){return u===95?i=!0:(r=i,i=void 0),e.consume(u),o}function l(u){return r||i||!s?n(u):t(u)}}function S0(e,t){let n=0,i=0;return r;function r(o){return o===40?(n++,e.consume(o),r):o===41&&i<n?s(o):o===33||o===34||o===38||o===39||o===41||o===42||o===44||o===46||o===58||o===59||o===60||o===63||o===93||o===95||o===126?e.check(ou,t,s)(o):o===null||X(o)||et(o)?t(o):(e.consume(o),r)}function s(o){return o===41&&i++,e.consume(o),r}}function T0(e,t,n){return i;function i(a){return a===33||a===34||a===39||a===41||a===42||a===44||a===46||a===58||a===59||a===63||a===95||a===126?(e.consume(a),i):a===38?(e.consume(a),s):a===93?(e.consume(a),r):a===60||a===null||X(a)||et(a)?t(a):n(a)}function r(a){return a===null||a===40||a===91||X(a)||et(a)?t(a):i(a)}function s(a){return ue(a)?o(a):n(a)}function o(a){return a===59?(e.consume(a),i):ue(a)?(e.consume(a),o):n(a)}}function C0(e,t,n){return i;function i(s){return e.consume(s),r}function r(s){return se(s)?n(s):t(s)}}function lu(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||X(e)}function uu(e){return!ue(e)}function cu(e){return!(e===47||zi(e))}function zi(e){return e===43||e===45||e===46||e===95||se(e)}function wr(e){let t=e.length,n=!1;for(;t--;){const i=e[t][1];if((i.type==="labelLink"||i.type==="labelImage")&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const v0={tokenize:L0,partial:!0};function A0(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:D0,continuation:{tokenize:I0},exit:R0}},text:{91:{name:"gfmFootnoteCall",tokenize:M0},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:E0,resolveTo:P0}}}}function E0(e,t,n){const i=this;let r=i.events.length;const s=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let o;for(;r--;){const l=i.events[r][1];if(l.type==="labelImage"){o=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return a;function a(l){if(!o||!o._balanced)return n(l);const u=Ee(i.sliceSerialize({start:o.end,end:i.now()}));return u.codePointAt(0)!==94||!s.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function P0(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 i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},r={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};r.end.column++,r.end.offset++,r.end._bufferIndex++;const s={type:"gfmFootnoteCallString",start:Object.assign({},r.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},s.start),end:Object.assign({},s.end)},a=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",r,t],["exit",r,t],["enter",s,t],["enter",o,t],["exit",o,t],["exit",s,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...a),e}function M0(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s=0,o;return a;function a(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(s>999||f===93&&!o||f===null||f===91||X(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return r.includes(Ee(i.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return X(f)||(o=!0),s++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),s++,u):u(f)}}function D0(e,t,n){const i=this,r=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);let s,o=0,a;return l;function l(d){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(d){return d===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(d)}function c(d){if(o>999||d===93&&!a||d===null||d===91||X(d))return n(d);if(d===93){e.exit("chunkString");const k=e.exit("gfmFootnoteDefinitionLabelString");return s=Ee(i.sliceSerialize(k)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(d),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return X(d)||(a=!0),o++,e.consume(d),d===92?f:c}function f(d){return d===91||d===92||d===93?(e.consume(d),o++,c):c(d)}function p(d){return d===58?(e.enter("definitionMarker"),e.consume(d),e.exit("definitionMarker"),r.includes(s)||r.push(s),q(e,h,"gfmFootnoteDefinitionWhitespace")):n(d)}function h(d){return t(d)}}function I0(e,t,n){return e.check(Wt,t,e.attempt(v0,t,n))}function R0(e){e.exit("gfmFootnoteDefinition")}function L0(e,t,n){const i=this;return q(e,r,"gfmFootnoteDefinitionIndent",5);function r(s){const o=i.events[i.events.length-1];return o&&o[1].type==="gfmFootnoteDefinitionIndent"&&o[2].sliceSerialize(o[1],!0).length===4?t(s):n(s)}}function F0(e){let n=(e||{}).singleTilde;const i={name:"strikethrough",tokenize:s,resolveAll:r};return n==null&&(n=!0),{text:{126:i},insideSpan:{null:[i]},attentionMarkers:{null:[126]}};function r(o,a){let l=-1;for(;++l<o.length;)if(o[l][0]==="enter"&&o[l][1].type==="strikethroughSequenceTemporary"&&o[l][1]._close){let u=l;for(;u--;)if(o[u][0]==="exit"&&o[u][1].type==="strikethroughSequenceTemporary"&&o[u][1]._open&&o[l][1].end.offset-o[l][1].start.offset===o[u][1].end.offset-o[u][1].start.offset){o[l][1].type="strikethroughSequence",o[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},o[u][1].start),end:Object.assign({},o[l][1].end)},f={type:"strikethroughText",start:Object.assign({},o[u][1].end),end:Object.assign({},o[l][1].start)},p=[["enter",c,a],["enter",o[u][1],a],["exit",o[u][1],a],["enter",f,a]],h=a.parser.constructs.insideSpan.null;h&&ge(p,p.length,0,Tn(h,o.slice(u+1,l),a)),ge(p,p.length,0,[["exit",f,a],["enter",o[l][1],a],["exit",o[l][1],a],["exit",c,a]]),ge(o,u-1,l-u+3,p),l=u+p.length-2;break}}for(l=-1;++l<o.length;)o[l][1].type==="strikethroughSequenceTemporary"&&(o[l][1].type="data");return o}function s(o,a,l){const u=this.previous,c=this.events;let f=0;return p;function p(d){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(d):(o.enter("strikethroughSequenceTemporary"),h(d))}function h(d){const k=mt(u);if(d===126)return f>1?l(d):(o.consume(d),f++,h);if(f<2&&!n)return l(d);const b=o.exit("strikethroughSequenceTemporary"),g=mt(d);return b._open=!g||g===2&&!!k,b._close=!k||k===2&&!!g,a(d)}}}class V0{constructor(){this.map=[]}add(t,n,i){O0(this,t,n,i)}consume(t){if(this.map.sort(function(s,o){return s[0]-o[0]}),this.map.length===0)return;let n=this.map.length;const i=[];for(;n>0;)n-=1,i.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];i.push(t.slice()),t.length=0;let r=i.pop();for(;r;){for(const s of r)t.push(s);r=i.pop()}this.map.length=0}}function O0(e,t,n,i){let r=0;if(!(n===0&&i.length===0)){for(;r<e.map.length;){if(e.map[r][0]===t){e.map[r][1]+=n,e.map[r][2].push(...i);return}r+=1}e.map.push([t,n,i])}}function _0(e,t){let n=!1;const i=[];for(;t<e.length;){const r=e[t];if(n){if(r[0]==="enter")r[1].type==="tableContent"&&i.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(r[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const s=i.length-1;i[s]=i[s]==="left"?"center":"right"}}else if(r[1].type==="tableDelimiterRow")break}else r[0]==="enter"&&r[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return i}function z0(){return{flow:{null:{name:"table",tokenize:N0,resolveAll:B0}}}}function N0(e,t,n){const i=this;let r=0,s=0,o;return a;function a(x){let P=i.events.length-1;for(;P>-1;){const L=i.events[P][1].type;if(L==="lineEnding"||L==="linePrefix")P--;else break}const I=P>-1?i.events[P][1].type:null,F=I==="tableHead"||I==="tableRow"?S:l;return F===S&&i.parser.lazy[i.now().line]?n(x):F(x)}function l(x){return e.enter("tableHead"),e.enter("tableRow"),u(x)}function u(x){return x===124||(o=!0,s+=1),c(x)}function c(x){return x===null?n(x):z(x)?s>1?(s=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(x),e.exit("lineEnding"),h):n(x):U(x)?q(e,c,"whitespace")(x):(s+=1,o&&(o=!1,r+=1),x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),o=!0,c):(e.enter("data"),f(x)))}function f(x){return x===null||x===124||X(x)?(e.exit("data"),c(x)):(e.consume(x),x===92?p:f)}function p(x){return x===92||x===124?(e.consume(x),f):f(x)}function h(x){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(x):(e.enter("tableDelimiterRow"),o=!1,U(x)?q(e,d,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(x):d(x))}function d(x){return x===45||x===58?b(x):x===124?(o=!0,e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),k):A(x)}function k(x){return U(x)?q(e,b,"whitespace")(x):b(x)}function b(x){return x===58?(s+=1,o=!0,e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),g):x===45?(s+=1,g(x)):x===null||z(x)?v(x):A(x)}function g(x){return x===45?(e.enter("tableDelimiterFiller"),T(x)):A(x)}function T(x){return x===45?(e.consume(x),T):x===58?(o=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(x),e.exit("tableDelimiterMarker"),w):(e.exit("tableDelimiterFiller"),w(x))}function w(x){return U(x)?q(e,v,"whitespace")(x):v(x)}function v(x){return x===124?d(x):x===null||z(x)?!o||r!==s?A(x):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(x)):A(x)}function A(x){return n(x)}function S(x){return e.enter("tableRow"),O(x)}function O(x){return x===124?(e.enter("tableCellDivider"),e.consume(x),e.exit("tableCellDivider"),O):x===null||z(x)?(e.exit("tableRow"),t(x)):U(x)?q(e,O,"whitespace")(x):(e.enter("data"),D(x))}function D(x){return x===null||x===124||X(x)?(e.exit("data"),O(x)):(e.consume(x),x===92?_:D)}function _(x){return x===92||x===124?(e.consume(x),D):D(x)}}function B0(e,t){let n=-1,i=!0,r=0,s=[0,0,0,0],o=[0,0,0,0],a=!1,l=0,u,c,f;const p=new V0;for(;++n<e.length;){const h=e[n],d=h[1];h[0]==="enter"?d.type==="tableHead"?(a=!1,l!==0&&(Ms(p,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",u,t]])):d.type==="tableRow"||d.type==="tableDelimiterRow"?(i=!0,f=void 0,s=[0,0,0,0],o=[0,n+1,0,0],a&&(a=!1,c={type:"tableBody",start:Object.assign({},d.start),end:Object.assign({},d.end)},p.add(n,0,[["enter",c,t]])),r=d.type==="tableDelimiterRow"?2:c?3:1):r&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")?(i=!1,o[2]===0&&(s[1]!==0&&(o[0]=o[1],f=tn(p,t,s,r,void 0,f),s=[0,0,0,0]),o[2]=n)):d.type==="tableCellDivider"&&(i?i=!1:(s[1]!==0&&(o[0]=o[1],f=tn(p,t,s,r,void 0,f)),s=o,o=[s[1],n,0,0])):d.type==="tableHead"?(a=!0,l=n):d.type==="tableRow"||d.type==="tableDelimiterRow"?(l=n,s[1]!==0?(o[0]=o[1],f=tn(p,t,s,r,n,f)):o[1]!==0&&(f=tn(p,t,o,r,n,f)),r=0):r&&(d.type==="data"||d.type==="tableDelimiterMarker"||d.type==="tableDelimiterFiller")&&(o[3]=n)}for(l!==0&&Ms(p,t,l,u,c),p.consume(t.events),n=-1;++n<t.events.length;){const h=t.events[n];h[0]==="enter"&&h[1].type==="table"&&(h[1]._align=_0(t.events,n))}return e}function tn(e,t,n,i,r,s){const o=i===1?"tableHeader":i===2?"tableDelimiter":"tableData",a="tableContent";n[0]!==0&&(s.end=Object.assign({},at(t.events,n[0])),e.add(n[0],0,[["exit",s,t]]));const l=at(t.events,n[1]);if(s={type:o,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",s,t]]),n[2]!==0){const u=at(t.events,n[2]),c=at(t.events,n[3]),f={type:a,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",f,t]]),i!==2){const p=t.events[n[2]],h=t.events[n[3]];if(p[1].end=Object.assign({},h[1].end),p[1].type="chunkText",p[1].contentType="text",n[3]>n[2]+1){const d=n[2]+1,k=n[3]-n[2]-1;e.add(d,k,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return r!==void 0&&(s.end=Object.assign({},at(t.events,r)),e.add(r,0,[["exit",s,t]]),s=void 0),s}function Ms(e,t,n,i,r){const s=[],o=at(t.events,n);r&&(r.end=Object.assign({},o),s.push(["exit",r,t])),i.end=Object.assign({},o),s.push(["exit",i,t]),e.add(n+1,0,s)}function at(e,t){const n=e[t],i=n[0]==="enter"?"start":"end";return n[1][i]}const j0={name:"tasklistCheck",tokenize:U0};function $0(){return{text:{91:j0}}}function U0(e,t,n){const i=this;return r;function r(l){return i.previous!==null||!i._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),s)}function s(l){return X(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),o):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),o):n(l)}function o(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),a):n(l)}function a(l){return z(l)?t(l):U(l)?e.check({tokenize:H0},t,n)(l):n(l)}}function H0(e,t,n){return q(e,i,"whitespace");function i(r){return r===null?n(r):t(r)}}function q0(e){return kl([g0(),A0(),F0(e),z0(),$0()])}const W0={};function hb(e){const t=this,n=e||W0,i=t.data(),r=i.micromarkExtensions||(i.micromarkExtensions=[]),s=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),o=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);r.push(q0(n)),s.push(h0()),o.push(p0(n))}export{J0 as $,Ce as A,Q as B,xe as C,$i as D,Fe as E,ik as F,ie as G,sk as H,ko as I,ok as J,rk as K,Gf as L,uf as M,xa as N,X0 as O,Q0 as P,Le as Q,G0 as R,ak as S,$e as T,Ma as U,zn as V,ck as W,Y0 as X,Z0 as Y,dt as Z,$r as _,fe as a,ek as a0,Oa as a1,Xf as a2,Si as a3,xs as a4,ub as a5,ab as a6,lb as a7,cb as a8,fb as a9,rb as aA,Gk as aB,Bk as aC,nb as aD,Hk as aE,Ik as aF,vk as aG,Fk as aH,Qk as aI,Lk as aJ,xk as aK,Xk as aL,eb as aM,sb as aN,hb as aO,kk as aP,Yk as aQ,Jk as aR,bk as aS,Uk as aT,gk as aU,zk as aV,Pk as aW,Wk as aX,$k as aY,fk as aa,Ak as ab,Rk as ac,ob as ad,Kk as ae,Ck as af,pk as ag,Ok as ah,wk as ai,Tk as aj,hk as ak,Dk as al,Mk as am,Ek as an,Sk as ao,_k as ap,jk as aq,yk as ar,mk as as,Nk as at,qk as au,ib as av,dk as aw,Vk as ax,tb as ay,Zk as az,Va as b,ir as c,ih as d,ja as e,uh as f,nk as g,ch as h,Af as i,qf as j,Fa as k,ka as l,Ua as m,hh as n,ff as o,lk as p,ft as q,_n as r,tk as s,Pf as t,Fh as u,le as v,oe as w,ji as x,Je as y,ve as z};