beads-map 0.2.4 → 0.3.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.
- package/.next/BUILD_ID +1 -1
- package/.next/app-build-manifest.json +3 -3
- package/.next/app-path-routes-manifest.json +1 -1
- package/.next/build-manifest.json +2 -2
- package/.next/next-minimal-server.js.nft.json +1 -1
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/server/app/_not-found/page_client-reference-manifest.js +1 -1
- package/.next/server/app/_not-found.html +1 -1
- package/.next/server/app/_not-found.rsc +1 -1
- package/.next/server/app/api/beads/route.js +2 -2
- package/.next/server/app/api/beads/stream/route.js +3 -3
- package/.next/server/app/api/beads.body +1 -1
- package/.next/server/app/api/config/route.js +2 -2
- package/.next/server/app/index.html +1 -1
- package/.next/server/app/index.rsc +2 -2
- package/.next/server/app/page.js +3 -3
- package/.next/server/app/page_client-reference-manifest.js +1 -1
- package/.next/server/app-paths-manifest.json +5 -5
- package/.next/server/functions-config-manifest.json +1 -1
- package/.next/server/pages/404.html +1 -1
- package/.next/server/pages/500.html +1 -1
- package/.next/server/server-reference-manifest.json +1 -1
- package/.next/static/chunks/971-bb44d52bcd9ee2a9.js +1 -0
- package/.next/static/chunks/app/page-68492e6aaf15a6dd.js +1 -0
- package/.next/static/css/c854bc2280bc4b27.css +3 -0
- package/README.md +12 -4
- package/app/api/config/route.ts +2 -0
- package/app/globals.css +12 -0
- package/app/page.tsx +111 -6
- package/components/BeadTooltip.tsx +222 -0
- package/components/BeadsGraph.tsx +264 -56
- package/components/ContextMenu.tsx +49 -3
- package/lib/parse-beads.ts +2 -0
- package/lib/types.ts +2 -0
- package/package.json +1 -1
- package/public/image.png +0 -0
- package/.next/server/app/api/config.body +0 -1
- package/.next/server/app/api/config.meta +0 -1
- package/.next/static/chunks/666-fb778298a77f3754.js +0 -1
- package/.next/static/chunks/app/page-13ee27a84e4a0c70.js +0 -1
- package/.next/static/css/dbf588b653aa4019.css +0 -3
- /package/.next/static/{5zW6ptqKxGc0tcnRau9j2 → ac0cLw5kGBDWoceTBnu21}/_buildManifest.js +0 -0
- /package/.next/static/{5zW6ptqKxGc0tcnRau9j2 → ac0cLw5kGBDWoceTBnu21}/_ssgManifest.js +0 -0
package/.next/server/app/page.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
(()=>{var e={};e.id=931,e.ids=[931],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},41041:e=>{"use strict";e.exports=require("node:url")},32143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>o.a,__next_app__:()=>p,originalPathname:()=>d,pages:()=>u,routeModule:()=>h,tree:()=>c}),n(71363),n(19709),n(10311);var r=n(69296),i=n(31650),l=n(87045),o=n.n(l),a=n(58184),s={};for(let e in a)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(s[e]=()=>a[e]);n.d(t,s);let c=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.bind(n,71363)),"/Users/david/Projects/gainforest/beads-map/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(n.bind(n,19709)),"/Users/david/Projects/gainforest/beads-map/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,10311,23)),"next/dist/client/components/not-found-error"]}],u=["/Users/david/Projects/gainforest/beads-map/app/page.tsx"],d="/page",p={require:n,loadChunk:()=>Promise.resolve()},h=new r.AppPageRouteModule({definition:{kind:i.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},40585:(e,t,n)=>{Promise.resolve().then(n.bind(n,67960))},12178:(e,t,n)=>{Promise.resolve().then(n.bind(n,2743))},15169:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,66544,23)),Promise.resolve().then(n.t.bind(n,93477,23)),Promise.resolve().then(n.t.bind(n,95116,23)),Promise.resolve().then(n.t.bind(n,96676,23)),Promise.resolve().then(n.t.bind(n,59645,23)),Promise.resolve().then(n.t.bind(n,88850,23))},2743:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>iB});var r={};n.r(r),n.d(r,{boolean:()=>B,booleanish:()=>U,commaOrSpaceSeparated:()=>G,commaSeparated:()=>W,number:()=>H,overloadedBoolean:()=>V,spaceSeparated:()=>$});var i={};n.r(i),n.d(i,{attentionMarkers:()=>t0,contentInitial:()=>tY,disable:()=>t1,document:()=>tG,flow:()=>tJ,flowInitial:()=>tX,insideSpan:()=>tQ,string:()=>tK,text:()=>tZ});var l=n(98924),o=n(63911),a=n(26669);function s(e){return function(){return e}}function c(e){return(e()-.5)*1e-6}function u(e){return e.x+e.vx}function d(e){return e.y+e.vy}let p={open:"#10b981",in_progress:"#f59e0b",blocked:"#ef4444",deferred:"#8b5cf6",closed:"#a1a1aa"},h={open:"Open",in_progress:"In Progress",blocked:"Blocked",deferred:"Deferred",closed:"Closed"},f={0:"P0 - Critical",1:"P1 - High",2:"P2 - Medium",3:"P3 - Low",4:"P4 - Backlog"},m={0:"#ef4444",1:"#f97316",2:"#3b82f6",3:"#a1a1aa",4:"#d4d4d8"},x={bug:"\uD83D\uDC1B",feature:"✨",task:"\uD83D\uDCDD",epic:"\uD83C\uDFAF",chore:"\uD83D\uDD27"},g=new Proxy({},{get:(e,t)=>t.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),has:()=>!0}),y=new Proxy({},{get:(e,t)=>(function(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=16777619*t>>>0;let n=t%360;return`hsl(${n}, 65%, 55%)`})(t),has:()=>!0}),b=null;function v(e){let t=e.blockerCount+e.dependentCount;return"epic"===e.issueType&&(t+=3),5+17*Math.min(t/6,1)}function k(e){return p[e.status]||p.open}function w(e){return 1-(1-e)*(1-e)}let j=new Map;function N(e,t){let n=j.get(e);if("loading"===n||"failed"===n)return null;if(n)return n;j.set(e,"loading");let r=new Image;return r.onload=()=>{j.set(e,r),t()},r.onerror=()=>{j.set(e,"failed")},r.src=e,null}function C(e,t,n,r,i,l){e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.fillStyle="#e4e4e7",e.fill();let o=i.replace("@","").charAt(0).toUpperCase();e.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.fillStyle="#71717a",e.fillText(o,t,n+.3)}function S(e,t){let n=new Set([e]),r=[{id:e,depth:0}];for(;r.length>0;){let{id:e,depth:i}=r.shift();if(!(i>=2))for(let l of t){let t="object"==typeof l.source?l.source.id:l.source,o="object"==typeof l.target?l.target.id:l.target;t!==e||n.has(o)||(n.add(o),r.push({id:o,depth:i+1})),o!==e||n.has(t)||(n.add(t),r.push({id:t,depth:i+1}))}}return n}function z(e){let t=e.current;if(!t)return;let n=t.zoom();"number"!=typeof n||isNaN(n)||(t.zoom(1.000001*n,0),requestAnimationFrame(()=>{e.current&&e.current.zoom(n,0)}))}let D=(0,o.forwardRef)(function({nodes:e,links:t,selectedNode:r,hoveredNode:i,onNodeClick:f,onNodeHover:m,onBackgroundClick:x,onNodeRightClick:g,commentedNodeIds:j,claimedNodeAvatars:D,onAvatarHover:L,timelineActive:E,stats:T,sidebarOpen:M},P){let I=(0,o.useRef)(null),q=(0,o.useRef)(null),R=(0,o.useRef)(null),F=(0,o.useRef)(0),O=(0,o.useRef)(()=>{}),[_,B]=(0,o.useState)({width:800,height:600}),U=(0,o.useRef)(!1),[V,H]=(0,o.useState)({w:160,h:120}),$=V.w,W=V.h,G=(0,o.useRef)(null),[Y,X]=(0,o.useState)(b);(0,o.useEffect)(()=>{b||n.e(29).then(n.bind(n,31029)).then(e=>{b=e.default||e,X(()=>b)})},[]);let[J,K]=(0,o.useState)("dag"),[Z,Q]=(0,o.useState)("full"),ee=(0,o.useRef)(r),et=(0,o.useRef)(i),en=(0,o.useRef)(new Set),er=(0,o.useRef)(j||new Map),ei=(0,o.useRef)(D||new Map),el=(0,o.useRef)(()=>{});el.current=()=>z(I);let eo=(0,o.useRef)(L);eo.current=L;let ea=(0,o.useRef)(null),es=(0,o.useRef)(e),ec=(0,o.useRef)([]),{viewNodes:eu,viewLinks:ed}=(0,o.useMemo)(()=>{if("full"===Z)return{viewNodes:e,viewLinks:t};let n=new Map;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&n.set(r,t)}let r=new Set(e.map(e=>e.id));for(let t of e)if(!n.has(t.id)&&t.id.includes(".")){let e=t.id.split(".")[0];r.has(e)&&n.set(t.id,e)}let i=new Set(n.keys()),l=new Map,o=new Map,a=new Map;for(let[t,r]of n){l.set(r,(l.get(r)||0)+1);let n=e.find(e=>e.id===t);n&&(o.set(r,(o.get(r)||0)+n.blockerCount),a.set(r,(a.get(r)||0)+n.dependentCount))}let s=e.filter(e=>!i.has(e.id)).map(e=>({...e,blockerCount:e.blockerCount+(o.get(e.id)||0),dependentCount:e.dependentCount+(a.get(e.id)||0),collapsedCount:l.get(e.id)||0})),c=[],u=new Set;for(let e of t){if("parent-child"===e.type)continue;let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;if((t=n.get(t)||t)===(r=n.get(r)||r))continue;let i=`${t}->${r}:${e.type}`;u.has(i)||(u.add(i),c.push({source:t,target:r,type:e.type}))}return{viewNodes:s,viewLinks:c}},[e,t,Z]);es.current=eu,(0,o.useEffect)(()=>{let n=new Map;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&n.set(r,t)}let r=new Set(e.map(e=>e.id));for(let t of e)if(!n.has(t.id)&&t.id.includes(".")){let e=t.id.split(".")[0];r.has(e)&&n.set(t.id,e)}let i=new Map;for(let[e,t]of n){let n=i.get(t)||[];n.push(e),i.set(t,n)}let l=new Map(e.map(e=>[e.id,e])),o=[];for(let[e,t]of i){let n=l.get(e);n&&o.push({parentId:e,title:n.title||e,prefix:n.prefix,memberIds:[e,...t]})}ec.current=o},[e,t]),(0,o.useEffect)(()=>{ee.current=r;let e=et.current||r;e?en.current=S(e.id,ed):en.current=new Set,z(I),cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>O.current())},[r,ed]),(0,o.useEffect)(()=>{et.current=i;let e=i||ee.current;e?en.current=S(e.id,ed):en.current=new Set,z(I),cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>O.current())},[i,ed]),(0,o.useEffect)(()=>{er.current=j||new Map,z(I)},[j]),(0,o.useEffect)(()=>{ei.current=D||new Map,z(I)},[D]),(0,o.useEffect)(()=>{let e=q.current;if(!e)return;let t=t=>{let n;let r=I.current,i=eo.current;if(!r||!i)return;let l=ei.current;if(0===l.size){ea.current&&(ea.current=null,i(null));return}let o=e.getBoundingClientRect(),a=t.clientX-o.left,s=t.clientY-o.top;try{n=r.screen2GraphCoords(a,s)}catch{return}let c=Math.max(4,10/(r.zoom()||1));for(let e of es.current){if(null==e.x||null==e.y)continue;let r=l.get(e.id);if(!r)continue;let o=v(e),a=e.x+.7*o,s=e.y+.7*o,u=n.x-a,d=n.y-s;if(u*u+d*d<=c*c){ea.current!==e.id&&(ea.current=e.id,i({handle:r.handle,avatar:r.avatar,claimedAt:r.claimedAt,did:r.did,x:t.clientX,y:t.clientY}));return}}ea.current&&(ea.current=null,i(null))};return e.addEventListener("mousemove",t),()=>e.removeEventListener("mousemove",t)},[]),(0,o.useEffect)(()=>{let e=()=>{if(q.current){let e=q.current.getBoundingClientRect();B({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let ep=(0,o.useCallback)(e=>{let t=I.current;if(!t)return;let n=eu.find(t=>t.id===e.id);n&&void 0!==n.x&&void 0!==n.y&&(t.centerAt(n.x,n.y,500),t.zoom(2.5,500),f(e))},[f,eu]);(0,o.useImperativeHandle)(P,()=>({focusNode:ep}),[ep]),(0,o.useEffect)(()=>{let e=I.current;if(!e||0===eu.length)return;"dag"===J?(e.d3Force("charge")?.strength(-80).distanceMax(300),e.d3Force("link")?.distance(50).strength(.3),e.d3Force("center")?.strength(.01),e.d3Force("collision",null)):(e.d3Force("charge")?.strength(-180).distanceMax(400),e.d3Force("link")?.distance(e=>((e.source?.blockerCount||0)+(e.source?.dependentCount||0)+((e.target?.blockerCount||0)+(e.target?.dependentCount||0)))/2>4?90:120).strength(.6),e.d3Force("center")?.strength(.03),e.d3Force("collision",(function(e){var t,n,r,i=1,l=1;function o(){for(var e,o,s,h,f,m,x,g=t.length,y=0;y<l;++y)for(e=0,o=(0,a.Z)(t,u,d).visitAfter(p);e<g;++e)x=(m=n[(s=t[e]).index])*m,h=s.x+s.vx,f=s.y+s.vy,o.visit(b);function b(e,t,n,l,o){var a=e.data,u=e.r,d=m+u;if(a){if(a.index>s.index){var p=h-a.x-a.vx,g=f-a.y-a.vy,y=p*p+g*g;y<d*d&&(0===p&&(y+=(p=c(r))*p),0===g&&(y+=(g=c(r))*g),y=(d-(y=Math.sqrt(y)))/y*i,s.vx+=(p*=y)*(d=(u*=u)/(x+u)),s.vy+=(g*=y)*d,a.vx-=p*(d=1-d),a.vy-=g*d)}return}return t>h+d||l<h-d||n>f+d||o<f-d}}function p(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function h(){if(t){var r,i,l=t.length;for(r=0,n=Array(l);r<l;++r)n[(i=t[r]).index]=+e(i,r,t)}}return"function"!=typeof e&&(e=s(null==e?1:+e)),o.initialize=function(e,n){t=e,r=n,h()},o.iterations=function(e){return arguments.length?(l=+e,o):l},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:s(+t),h(),o):e},o})().radius(e=>v(e)+6).strength(.7)),eu.forEach(e=>{delete e.fx,delete e.fy})),e.d3ReheatSimulation();let t=setTimeout(()=>{I.current&&I.current.zoomToFit(400,60)},U.current?600:1e3);return U.current=!0,()=>clearTimeout(t)},[J,eu.length]);let eh=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(eh.current||!Y||0===e.length)return;eh.current=!0;let t=setTimeout(()=>{K("force")},15);return()=>clearTimeout(t)},[Y,e.length]),(0,o.useEffect)(()=>{if(!E&&I.current&&e.length>0){let e=setTimeout(()=>{I.current.zoomToFit(400,60)},800);return()=>clearTimeout(e)}},[e.length,E]);let ef=(0,o.useMemo)(()=>{let e=Math.sqrt(eu.length)||1;return eu.forEach((t,n)=>{if(null==t.x&&null==t.y){let r=n*Math.PI*(3-Math.sqrt(5)),i=300*Math.sqrt(.5+n)/e;t.x=i*Math.cos(r),t.y=i*Math.sin(r)}}),{nodes:eu,links:ed}},[eu,ed]),em=(0,o.useCallback)((e,t,n)=>{let r=v(e),i=k(e),l=y[e.prefix]||"#a1a1aa",o=ee.current?.id===e.id,a=et.current?.id===e.id,s=en.current,c=s.has(e.id),u=s.size>0,d=Date.now(),h=1,f=e._spawnTime;if(f){let e=d-f;if(e<500){var m;h=1+2.70158*Math.pow((m=e/500)-1,3)+1.70158*Math.pow(m-1,2)}}let x=1,g=1,b=e._removeTime;if(b){let e=d-b;if(e<400){let t=e/400;x=1-w(t),g=1-t}else x=0,g=0}let j=h*x;if(j<=.01)return;let S=r*j,z=n<=.1?0:n>=.2?1:(n-.1)/.1,D=(u&&!c?.15:"closed"===e.status?.5:1)*g*z;if(D<=.01)return;t.save(),t.globalAlpha=D,c&&u&&(t.shadowColor="#10b981",t.shadowBlur=o?20:a?16:10),n>.3&&(t.beginPath(),t.arc(e.x,e.y,S+2,0,2*Math.PI),t.strokeStyle=l,t.lineWidth=2,t.stroke()),t.beginPath(),t.arc(e.x,e.y,S,0,2*Math.PI),t.fillStyle=i,t.fill(),t.strokeStyle=o?"#10b981":a?"#3f3f46":"#e4e4e7",t.lineWidth=o?2.5:a?2:1,t.stroke(),t.shadowBlur=0;let L=e._changedAt;if(L){let n=d-L;if(n<800){let r=n/800,i=p[e.status]||"#a1a1aa";t.beginPath(),t.arc(e.x,e.y,S+4+20*r,0,2*Math.PI),t.strokeStyle=i,t.lineWidth=2*(1-r),t.globalAlpha=(1-r)*.6,t.stroke(),t.globalAlpha=D}}if(f){let n=d-f;if(n<500){let r=n/500;t.beginPath(),t.arc(e.x,e.y,S+6+8*r,0,2*Math.PI),t.strokeStyle="#10b981",t.lineWidth=3*(1-r),t.globalAlpha=(1-r)*.4,t.stroke(),t.globalAlpha=D}}if(e.priority<=1&&n>.5&&(t.font=`${Math.min(10,Math.max(4,12/n))}px sans-serif`,t.textAlign="center",t.textBaseline="bottom",t.fillText(0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25",e.x,e.y-S-2)),n>.5){let r=Math.min(7,Math.max(3,10/n));t.font=`500 ${r}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="top",t.fillStyle="#3f3f46",t.globalAlpha=.85*D;let i=e.id;n>1.5?i=A(e.title||e.id,30):n>.9&&(i=A(e.title||e.id,18)),t.fillText(i,e.x,e.y+S+3);let l=e.collapsedCount;l&&l>0&&(t.font=`400 ${Math.min(5.5,Math.max(2.5,8/n))}px 'Inter', system-ui, sans-serif`,t.fillStyle="#a1a1aa",t.fillText(`${l} task${1!==l?"s":""}`,e.x,e.y+S+3+r+1))}let E=er.current.get(e.id);if(E&&E>0&&n>.4){let r=Math.min(6,Math.max(3.5,8/n)),i=e.x+.75*S,l=e.y-.75*S,o=E>99?"99+":String(E);t.save(),t.globalAlpha=Math.min(D,.95),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.fillStyle="#ef4444",t.fill(),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="middle",t.fillStyle="#ffffff",t.fillText(o,i,l+.3),t.restore()}let T=ei.current.get(e.id);if(T){let r=Math.max(4,10/n),i=e.x+.7*S,l=e.y+.7*S;if(t.save(),t.globalAlpha=1,T.avatar){let e=N(T.avatar,()=>el.current());e?(t.save(),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.clip(),t.drawImage(e,i-r,l-r,2*r,2*r),t.restore()):C(t,i,l,r,T.handle,n)}else C(t,i,l,r,T.handle,n);t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.restore()}t.restore()},[]),ex=(0,o.useCallback)((e,t,n)=>{let r=e.source,i=e.target;if(void 0===r.x||void 0===i.x)return;let l=Date.now(),o=1,a=1,s=e._spawnTime;if(s){let e=l-s;if(e<500){let t=e/500;o=w(t),a=1+(1-t)*1.5}}let c=1,u=e._removeTime;if(u){let e=l-u;if(!(e<400))return;c=1-w(e/400)}let d=o*c;if(d<=.01)return;let p=r.id||e.source,h=i.id||e.target,f="parent-child"===e.type,m=en.current,x=m.size>0,g=x&&m.has(p)&&m.has(h),y=(f?x?g?.5:.05:.2:x?g?.8:.08:.35)*d*(n<=.1?0:n>=.2?1:(n-.1)/.1);if(y<=.01)return;t.save(),t.globalAlpha=y,f?(t.strokeStyle=g?"#71717a":"#a1a1aa",t.lineWidth=Math.max(.6,1.5/n)*a,t.setLineDash([4,3])):(t.strokeStyle=g?"#10b981":"#d4d4d8",t.lineWidth=(g?Math.max(2,2.5/n):Math.max(.8,1.2/n))*a);let b=i.x-r.x,k=i.y-r.y,j=Math.sqrt(b*b+k*k),N=(r.x+i.x)/2+.15*k,C=(r.y+i.y)/2-.15*b;if(t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(N,C,i.x,i.y),t.stroke(),f&&t.setLineDash([]),s){let e=l-s;e<300&&(t.save(),t.globalAlpha=(1-e/300)*.5,t.strokeStyle="#10b981",t.lineWidth=(f?3:4)/n,t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(N,C,i.x,i.y),t.stroke(),t.restore())}if(!f){let e=v(i);if(j<e+1){t.restore();return}let l=Math.min(8,6/n),o=1-e/j,a=r.x+o*b,s=r.y+o*k,c=Math.atan2(k,b);t.fillStyle=g?"#10b981":"#d4d4d8",t.beginPath(),t.moveTo(a,s),t.lineTo(a-l*Math.cos(c-Math.PI/7),s-l*Math.sin(c-Math.PI/7)),t.lineTo(a-l*Math.cos(c+Math.PI/7),s-l*Math.sin(c+Math.PI/7)),t.closePath(),t.fill()}t.restore()},[]),eg=(0,o.useCallback)((e,t)=>{let n=t>=.8?0:t<=.4?1:(.8-t)/.4;if(n<=.01)return;let r=ec.current;if(0===r.length)return;let i=new Map;for(let e of eu)null!=e.x&&null!=e.y&&i.set(e.id,{x:e.x,y:e.y});for(let l of(e.save(),r)){let r=0,o=0,a=0;for(let e of l.memberIds){let t=i.get(e);t&&(r+=t.x,o+=t.y,a++)}if(0===a)continue;let s=r/a,c=o/a,u=0;for(let e of l.memberIds){let t=i.get(e);if(t){let e=t.x-s,n=t.y-c,r=Math.sqrt(e*e+n*n);r>u&&(u=r)}}let d=u+30,p=y[l.prefix]||"hsl(0, 0%, 65%)";e.beginPath(),e.arc(s,c,d,0,2*Math.PI),e.globalAlpha=.05*n,e.fillStyle=p,e.fill(),e.globalAlpha=.25*n,e.strokeStyle=p,e.lineWidth=1.5/t,e.setLineDash([8/t,4/t]),e.stroke(),e.setLineDash([]);let h=Math.min(24,Math.max(10,14/t)),f=Math.min(12,Math.max(5,8/t)),m=.35*h;e.font=`500 ${f}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.globalAlpha=.45*n,e.fillStyle="#71717a",e.fillText(l.parentId,s,c-.5*h-m),e.font=`600 ${h}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.85*n,e.fillStyle="#18181b";let x=l.title.length>40?l.title.slice(0,39)+"…":l.title;e.fillText(x,s,c+.15*h);let g=Math.min(14,Math.max(6,9/t));e.font=`400 ${g}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.5*n,e.fillStyle="#71717a",e.fillText(`${l.memberIds.length} issue${1!==l.memberIds.length?"s":""}`,s,c+.15*h+.7*h)}e.restore()},[eu,e]),ey=(0,o.useCallback)((e,t,n)=>{let r=v(e)+5;n.fillStyle=t,n.beginPath(),n.arc(e.x,e.y,r,0,2*Math.PI),n.fill()},[]),eb=(0,o.useCallback)(()=>{},[]),ev=(0,o.useCallback)(()=>{let e=R.current,t=I.current;if(!e||!t)return;let n=e.getContext("2d");if(!n)return;let r=1/0,i=-1/0,l=1/0,o=-1/0,a=!1;for(let e of eu)null!=e.x&&null!=e.y&&(a=!0,e.x<r&&(r=e.x),e.x>i&&(i=e.x),e.y<l&&(l=e.y),e.y>o&&(o=e.y));if(!a)return;let s=(i+=40)-(r-=40)||1,c=(o+=40)-(l-=40)||1,u=$-16,d=W-16,p=Math.min(u/s,d/c),h=8+(u-s*p)/2,f=8+(d-c*p)/2,m=window.devicePixelRatio||1;(e.width!==$*m||e.height!==W*m)&&(e.width=$*m,e.height=W*m,n.setTransform(m,0,0,m,0,0)),n.clearRect(0,0,$,W),n.fillStyle="rgba(250, 250, 250, 0.92)",n.beginPath(),n.roundRect(0,0,$,W,6),n.fill();let x=en.current,g=x.size>0,y=et.current?.id||ee.current?.id||null;for(let e of ed){let t=e.source,i=e.target;if(null==t.x||null==i.x)continue;let o=t.id||e.source,a=i.id||e.target,s=g&&x.has(o)&&x.has(a);n.globalAlpha=g?s?.5:.04:.1,n.strokeStyle=s?"#10b981":"#a1a1aa",n.lineWidth=s?1:.5;let c=h+(t.x-r)*p,u=f+(t.y-l)*p,d=h+(i.x-r)*p,m=f+(i.y-l)*p;n.beginPath(),n.moveTo(c,u),n.lineTo(d,m),n.stroke()}for(let e of(n.globalAlpha=1,eu)){if(null==e.x||null==e.y)continue;let t=h+(e.x-r)*p,i=f+(e.y-l)*p,o=e.id===y,a=x.has(e.id);g&&!a?n.globalAlpha=.1:"closed"===e.status?n.globalAlpha=.35:n.globalAlpha=.85,n.fillStyle=k(e);let s="epic"===e.issueType?3:2;o?s=5:g&&a&&(s=4),o&&(n.globalAlpha=.4,n.fillStyle="#10b981",n.beginPath(),n.arc(t,i,s+2,0,2*Math.PI),n.fill(),n.globalAlpha=1,n.fillStyle=k(e)),n.fillRect(t-s/2,i-s/2,s,s)}n.globalAlpha=1;let b=ei.current;if(b.size>0)for(let e of eu){if(null==e.x||null==e.y)continue;let t=b.get(e.id);if(!t)continue;let i=h+(e.x-r)*p,o=f+(e.y-l)*p;if(n.save(),n.globalAlpha=1,t.avatar){let e=N(t.avatar,()=>el.current());e?(n.save(),n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.clip(),n.drawImage(e,i-5,o-5,10,10),n.restore()):(n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill())}else n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill();n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.strokeStyle="#ffffff",n.lineWidth=1,n.stroke(),n.restore()}try{let e=t.screen2GraphCoords(0,0),i=t.screen2GraphCoords(_.width,_.height),o=h+(e.x-r)*p,a=f+(e.y-l)*p,s=(i.x-e.x)*p,c=(i.y-e.y)*p,u=Math.max(0,o),d=Math.max(0,a),m=Math.min($-u,s-(u-o)),x=Math.min(W-d,c-(d-a));m>0&&x>0&&(n.fillStyle="rgba(16, 185, 129, 0.06)",n.fillRect(u,d,m,x),n.strokeStyle="rgba(16, 185, 129, 0.5)",n.lineWidth=1.5,n.strokeRect(u,d,m,x))}catch{}},[eu,ed,_,$,W,8]);O.current=ev;let ek=(0,o.useCallback)(()=>{cancelAnimationFrame(F.current),F.current=requestAnimationFrame(()=>{ev()})},[ev]);(0,o.useEffect)(()=>{if(!Y||0===e.length)return;let t=setInterval(()=>{ev()},200);return()=>clearInterval(t)},[Y,e.length,ev]),(0,o.useEffect)(()=>{let e;let t=!0;return function n(){if(!t)return;let r=Date.now();(eu.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400||!!e._changedAt&&r-e._changedAt<800)||ed.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400))&&z(I),e=requestAnimationFrame(n)}(),()=>{t=!1,cancelAnimationFrame(e)}},[eu,ed]);let ew=(0,o.useCallback)(e=>{let t=I.current;if(!t)return;let n=e.currentTarget.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,l=1/0,o=-1/0,a=1/0,s=-1/0;for(let e of eu)null!=e.x&&null!=e.y&&(e.x<l&&(l=e.x),e.x>o&&(o=e.x),e.y<a&&(a=e.y),e.y>s&&(s=e.y));let c=(o+=40)-(l-=40)||1,u=(s+=40)-(a-=40)||1,d=$-16,p=W-16,h=Math.min(d/c,p/u),f=l+(r-(8+(d-c*h)/2))/h,m=a+(i-(8+(p-u*h)/2))/h;t.centerAt(f,m,300)},[eu,$,W,8]);return(0,l.jsxs)("div",{ref:q,className:"w-full h-full relative",children:[(0,l.jsxs)("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-10 flex items-start gap-1.5 sm:gap-2",children:[(0,l.jsxs)("div",{className:"flex bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm overflow-hidden",children:[l.jsx("button",{onClick:()=>K("force"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"force"===J?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"4",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"3",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13",cy:"11",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"4",y1:"4",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"3",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"3",y1:"12",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"13",y1:"11",x2:"8",y2:"8",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Force"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>K("dag"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"dag"===J?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"2.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"4",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"2",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"6",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"8",y1:"4",x2:"4",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"8",y1:"4",x2:"12",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"2",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"6",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"9.5",x2:"12",y2:"12",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"DAG"})]})})]}),(0,l.jsxs)("div",{className:"flex bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm overflow-hidden",children:[l.jsx("button",{onClick:()=>Q("full"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"full"===Z?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"4",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"4",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1",fill:"currentColor",stroke:"none",opacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Full"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>Q("epics"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"epics"===Z?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"4",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"6",stroke:"currentColor",fill:"none",opacity:"0.3"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Epics"})]})})]})]}),!E&&(0,l.jsxs)("div",{className:"absolute bottom-4 z-10 bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 text-xs text-zinc-400 transition-[right] duration-300 ease-out",style:{right:M?"calc(360px + 1rem)":"1rem"},children:[T&&(0,l.jsxs)("div",{className:"text-zinc-500 mb-1.5",children:[l.jsx("strong",{className:"text-zinc-700",children:T.total})," issues"," \xb7 ",l.jsx("strong",{className:"text-zinc-700",children:T.edges})," deps"," \xb7 ",l.jsx("strong",{className:"text-emerald-600",children:T.prefixes.length}),1===T.prefixes.length?" project":" projects"]}),l.jsx("div",{className:"hidden sm:flex flex-wrap gap-x-3 gap-y-1 mb-1.5",children:["open","in_progress","blocked","deferred","closed"].map(e=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:p[e]}}),l.jsx("span",{className:"text-zinc-500",children:h[e]})]},e))}),l.jsx("div",{className:"hidden sm:flex flex-col gap-0.5 text-zinc-400",children:l.jsx("span",{children:"Size = importance \xb7 Ring = project"})}),l.jsx("span",{className:"sm:hidden",children:"Tap a node for details"})]}),(0,l.jsxs)("div",{className:"hidden sm:block absolute bottom-4 left-4 z-10",style:{width:$,height:W},children:[l.jsx("canvas",{ref:R,width:$,height:W,onClick:ew,className:"rounded-lg border border-zinc-200 shadow-sm cursor-crosshair",style:{width:$,height:W}}),l.jsx("div",{className:"absolute top-0 left-2 right-2 h-1.5 cursor-n-resize hover:bg-zinc-300/40 rounded-t-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),G.current={edge:"top",startX:e.clientX,startY:e.clientY,startW:$,startH:W};let t=e=>{if(!G.current)return;let t=G.current.startY-e.clientY,n=Math.max(80,Math.min(400,G.current.startH+t));H(e=>({...e,h:n}))},n=()=>{G.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-2 right-0 bottom-2 w-1.5 cursor-e-resize hover:bg-zinc-300/40 rounded-r-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),G.current={edge:"right",startX:e.clientX,startY:e.clientY,startW:$,startH:W};let t=e=>{if(!G.current)return;let t=e.clientX-G.current.startX,n=Math.max(100,Math.min(500,G.current.startW+t));H(e=>({...e,w:n}))},n=()=>{G.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 cursor-ne-resize hover:bg-zinc-300/40 rounded-tr-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),G.current={edge:"top-right",startX:e.clientX,startY:e.clientY,startW:$,startH:W};let t=e=>{if(!G.current)return;let t=e.clientX-G.current.startX,n=G.current.startY-e.clientY;H({w:Math.max(100,Math.min(500,G.current.startW+t)),h:Math.max(80,Math.min(400,G.current.startH+n))})},n=()=>{G.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}})]}),Y?l.jsx(Y,{ref:I,graphData:ef,width:_.width,height:_.height,nodeCanvasObject:em,nodeCanvasObjectMode:()=>"replace",nodePointerAreaPaint:ey,onRenderFramePost:eg,linkCanvasObject:ex,linkCanvasObjectMode:()=>"replace",linkDirectionalParticles:e=>"parent-child"===e.type?0:2,linkDirectionalParticleSpeed:.004,linkDirectionalParticleWidth:2.5,linkDirectionalParticleColor:()=>"#10b981",dagMode:"dag"===J?"td":void 0,dagLevelDistance:60,onDagError:eb,d3AlphaDecay:.02,d3VelocityDecay:.3,cooldownTicks:300,warmupTicks:50,onNodeClick:e=>f(e),onNodeHover:e=>m(e||null),onNodeRightClick:(e,t)=>{t.preventDefault(),g?.(e,t)},onBackgroundClick:x,onZoom:ek,backgroundColor:"transparent"}):l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("div",{className:"text-zinc-400 text-sm animate-pulse-soft",children:"Loading graph engine..."})})]})});function A(e,t){return e.length<=t?e:e.slice(0,t-1)+"…"}let L=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,E=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T={};function M(e,t){return((t||T).jsx?E:L).test(e)}let P=/[ \t\n\f\r]/g;function I(e){return""===e.replace(P,"")}class q{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function R(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new q(n,r,t)}function F(e){return e.toLowerCase()}q.prototype.normal={},q.prototype.property={},q.prototype.space=void 0;class O{constructor(e,t){this.attribute=t,this.property=e}}O.prototype.attribute="",O.prototype.booleanish=!1,O.prototype.boolean=!1,O.prototype.commaOrSpaceSeparated=!1,O.prototype.commaSeparated=!1,O.prototype.defined=!1,O.prototype.mustUseProperty=!1,O.prototype.number=!1,O.prototype.overloadedBoolean=!1,O.prototype.property="",O.prototype.spaceSeparated=!1,O.prototype.space=void 0;let _=0,B=Y(),U=Y(),V=Y(),H=Y(),$=Y(),W=Y(),G=Y();function Y(){return 2**++_}let X=Object.keys(r);class J extends O{constructor(e,t,n,i){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++l<X.length;){let e=X[l];(function(e,t,n){n&&(e[t]=n)})(this,X[l],(n&r[e])===r[e])}}}function K(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new J(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[F(r)]=r,n[F(l.attribute)]=r}return new q(t,n,e.space)}J.prototype.defined=!0;let Z=K({properties:{ariaActiveDescendant:null,ariaAtomic:U,ariaAutoComplete:null,ariaBusy:U,ariaChecked:U,ariaColCount:H,ariaColIndex:H,ariaColSpan:H,ariaControls:$,ariaCurrent:null,ariaDescribedBy:$,ariaDetails:null,ariaDisabled:U,ariaDropEffect:$,ariaErrorMessage:null,ariaExpanded:U,ariaFlowTo:$,ariaGrabbed:U,ariaHasPopup:null,ariaHidden:U,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:$,ariaLevel:H,ariaLive:null,ariaModal:U,ariaMultiLine:U,ariaMultiSelectable:U,ariaOrientation:null,ariaOwns:$,ariaPlaceholder:null,ariaPosInSet:H,ariaPressed:U,ariaReadOnly:U,ariaRelevant:null,ariaRequired:U,ariaRoleDescription:$,ariaRowCount:H,ariaRowIndex:H,ariaRowSpan:H,ariaSelected:U,ariaSetSize:H,ariaSort:null,ariaValueMax:H,ariaValueMin:H,ariaValueNow:H,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function Q(e,t){return t in e?e[t]:t}function ee(e,t){return Q(e,t.toLowerCase())}let et=K({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:W,acceptCharset:$,accessKey:$,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:$,autoFocus:B,autoPlay:B,blocking:$,capture:null,charSet:null,checked:B,cite:null,className:$,cols:H,colSpan:null,content:null,contentEditable:U,controls:B,controlsList:$,coords:H|W,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:V,draggable:U,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:$,height:H,hidden:V,high:H,href:null,hrefLang:null,htmlFor:$,httpEquiv:$,id:null,imageSizes:null,imageSrcSet:null,inert:B,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:$,itemRef:$,itemScope:B,itemType:$,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:H,manifest:null,max:null,maxLength:H,media:null,method:null,min:null,minLength:H,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,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:B,optimum:H,pattern:null,ping:$,placeholder:null,playsInline:B,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:$,required:B,reversed:B,rows:H,rowSpan:H,sandbox:$,scope:null,scoped:B,seamless:B,selected:B,shadowRootClonable:B,shadowRootDelegatesFocus:B,shadowRootMode:null,shape:null,size:H,sizes:null,slot:null,span:H,spellCheck:U,src:null,srcDoc:null,srcLang:null,srcSet:null,start:H,step:null,style:null,tabIndex:H,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:U,width:H,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:$,axis:null,background:null,bgColor:null,border:H,borderColor:null,bottomMargin:H,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:H,leftMargin:H,link:null,longDesc:null,lowSrc:null,marginHeight:H,marginWidth:H,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:H,rules:null,scheme:null,scrolling:U,standby:null,summary:null,text:null,topMargin:H,valueType:null,version:null,vAlign:null,vLink:null,vSpace:H,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:H,security:null,unselectable:null},space:"html",transform:ee}),en=K({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:G,accentHeight:H,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:H,amplitude:H,arabicForm:null,ascent:H,attributeName:null,attributeType:null,azimuth:H,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:H,by:null,calcMode:null,capHeight:H,className:$,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:H,diffuseConstant:H,direction:null,display:null,dur:null,divisor:H,dominantBaseline:null,download:B,dx:null,dy:null,edgeMode:null,editable:null,elevation:H,enableBackground:null,end:null,event:null,exponent:H,externalResourcesRequired:null,fill:null,fillOpacity:H,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:W,g2:W,glyphName:W,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:H,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:H,horizOriginX:H,horizOriginY:H,id:null,ideographic:H,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:H,k:H,k1:H,k2:H,k3:H,k4:H,kernelMatrix:G,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:H,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:H,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:H,overlineThickness:H,paintOrder:null,panose1:null,path:null,pathLength:H,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:$,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:H,pointsAtY:H,pointsAtZ:H,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:G,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:G,rev:G,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:G,requiredFeatures:G,requiredFonts:G,requiredFormats:G,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:H,specularExponent:H,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:H,strikethroughThickness:H,string:null,stroke:null,strokeDashArray:G,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:H,strokeOpacity:H,strokeWidth:null,style:null,surfaceScale:H,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:G,tabIndex:H,tableValues:null,target:null,targetX:H,targetY:H,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:G,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:H,underlineThickness:H,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:H,values:null,vAlphabetic:H,vMathematical:H,vectorEffect:null,vHanging:H,vIdeographic:H,version:null,vertAdvY:H,vertOriginX:H,vertOriginY:H,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:H,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:Q}),er=K({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ei=K({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ee}),el=K({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),eo=R([Z,et,er,ei,el],"html"),ea=R([Z,en,er,ei,el],"svg"),es=/[A-Z]/g,ec=/-[a-z]/g,eu=/^data[-\w.:]+$/i;function ed(e){return"-"+e.toLowerCase()}function ep(e){return e.charAt(1).toUpperCase()}let eh={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"};var ef=n(63767);let em=eg("end"),ex=eg("start");function eg(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ey(e){return e&&"object"==typeof e?"position"in e||"type"in e?ev(e.position):"start"in e||"end"in e?ev(e):"line"in e||"column"in e?eb(e):"":""}function eb(e){return ek(e&&e.line)+":"+ek(e&&e.column)}function ev(e){return eb(e&&e.start)+"-"+eb(e&&e.end)}function ek(e){return e&&"number"==typeof e?e:1}class ew extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=ey(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}ew.prototype.file="",ew.prototype.name="",ew.prototype.reason="",ew.prototype.message="",ew.prototype.stack="",ew.prototype.column=void 0,ew.prototype.line=void 0,ew.prototype.ancestors=void 0,ew.prototype.cause=void 0,ew.prototype.fatal=void 0,ew.prototype.place=void 0,ew.prototype.ruleId=void 0,ew.prototype.source=void 0;let ej={}.hasOwnProperty,eN=new Map,eC=/[A-Z]/g,eS=new Set(["table","tbody","thead","tfoot","tr"]),ez=new Set(["td","th"]),eD="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eA(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=ea,e.schema=i),e.ancestors.push(t);let l=eM(e,t.tagName,!1),o=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&ej.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=F(t),r=t,i=O;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&eu.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(ec,ep);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ec.test(e)){let n=e.replace(es,ed);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=J}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return ef(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new ew("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=eD+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)ej.call(e,t)&&(n[function(e){let t=e.replace(eC,eI);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?eh[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&ez.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),a=eT(e,t);return eS.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&I(e.value):I(e))})),eL(e,o,l,t),eE(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eP(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=ea,e.schema=i),e.ancestors.push(t);let l=null===t.name?e.Fragment:eM(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eP(e,t.position)}else{let i;let l=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eP(e,t.position)}else i=null===r.value||r.value;n[l]=i}return n}(e,t),a=eT(e,t);return eL(e,o,l,t),eE(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eP(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return eE(r,eT(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eL(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eE(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function eT(e,t){let n=[],r=-1,i=e.passKeys?new Map:eN;for(;++r<t.children.length;){let l;let o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let a=eA(e,o,l);void 0!==a&&n.push(a)}return n}function eM(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=M(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=M(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return ej.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eP(e)}function eP(e,t){let n=new ew("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=eD+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eI(e){return"-"+e.toLowerCase()}let eq={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"]},eR={};function eF(e,t){let n=t||eR;return eO(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eO(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return e_(e.children,t,n)}return Array.isArray(e)?e_(e,t,n):""}function e_(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eO(e[i],t,n);return r.join("")}function eB(e,t,n,r){let i;let l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function eU(e,t){return e.length>0?(eB(e,e.length,0,t),e):t}class eV{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&eH(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),eH(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eH(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);eH(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);eH(this.left,t.reverse())}}}}function eH(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 e$(e){let t,n,r,i,l,o,a;let s={},c=-1,u=new eV(e);for(;++c<u.length;){for(;(c in s);)c=s[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let i=e.get(t)[1],l=e.get(t)[2],o=t-1,a=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let c=s.events,u=[],d={},p=-1,h=i,f=0,m=0,x=[0];for(;h;){for(;e.get(++o)[1]!==h;);a.push(o),!h._tokenizer&&(n=l.sliceStream(h),h.next||n.push(null),r&&s.defineSkip(h.start),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),h._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=h,h=h.next}for(h=i;++p<c.length;)"exit"===c[p][0]&&"enter"===c[p-1][0]&&c[p][1].type===c[p-1][1].type&&c[p][1].start.line!==c[p][1].end.line&&(m=p+1,x.push(m),h._tokenizer=void 0,h.previous=void 0,h=h.next);for(s.events=[],h?(h._tokenizer=void 0,h.previous=void 0):x.pop(),p=x.length;p--;){let t=c.slice(x[p],x[p+1]),n=a.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),p=-1;++p<u.length;)d[f+u[p][0]]=f+u[p][1],f+=u[p][1]-u[p][0]-1;return d}(u,c)),c=s[c],a=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(l=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,l))}}return eB(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!a}let eW={}.hasOwnProperty;function eG(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(eW.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){eW.call(i,r)||(i[r]=[]);let e=l[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eB(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}let eY=e6(/[A-Za-z]/),eX=e6(/[\dA-Za-z]/),eJ=e6(/[#-'*+\--9=?A-Z^-~]/);function eK(e){return null!==e&&(e<32||127===e)}let eZ=e6(/\d/),eQ=e6(/[\dA-Fa-f]/),e0=e6(/[!-/:-@[-`{-~]/);function e1(e){return null!==e&&e<-2}function e2(e){return null!==e&&(e<0||32===e)}function e5(e){return -2===e||-1===e||32===e}let e4=e6(/\p{P}|\p{S}/u),e3=e6(/\s/);function e6(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function e8(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,l=0;return function(r){return e5(r)?(e.enter(n),function r(o){return e5(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let e7={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e8(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return e1(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},e9={tokenize:function(e){let t,n,r;let i=this,l=[],o=0;return a;function a(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,s,c)(t)}return c(t)}function s(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&g();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}x(o);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return eB(i.events,l+1,0,i.events.slice(r)),i.events.length=a,c(e)}return a(e)}function c(n){if(o===l.length){if(!t)return p(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(te,u,d)(n)}function u(e){return t&&g(),x(o),p(e)}function d(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,f(e)}function p(t){return i.containerState={},e.attempt(te,h,f)(t)}function h(e){return o++,l.push([i.currentConstruct,i.containerState]),p(e)}function f(r){if(null===r){t&&g(),x(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),x(0),e.consume(n);return}return e1(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,l){let a=i.sliceStream(e);if(l&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(x(o),l=a;l<i.events.length;)i.events[l][1].end={...n},l++;eB(i.events,s+1,0,i.events.slice(a)),i.events.length=l}}function x(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function g(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},te={tokenize:function(e,t,n){return e8(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},tt={partial:!0,tokenize:function(e,t,n){return function(t){return e5(t)?e8(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||e1(e)?t(e):n(e)}}},tn={resolve:function(e){return e$(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):e1(t)?e.check(tr,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tr={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e8(e,i,"linePrefix")};function i(i){if(null===i||e1(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},ti={tokenize:function(e){let t=this,n=e.attempt(tt,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,e8(e,e.attempt(this.parser.constructs.flow,r,e.attempt(tn,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},tl={resolveAll:tc()},to=ts("string"),ta=ts("text");function ts(e){return{resolveAll:tc("text"===e?tu:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return s(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function tc(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function tu(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],l=t.sliceStream(i),o=l.length,a=-1,s=0;for(;o--;){let e=l[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}let td={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){return e.enter("thematicBreak"),r=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),e5(n)?e8(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||e1(o))?(e.exit("thematicBreak"),t(o)):n(o)}(l)}}},tp={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(tt,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,e8(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!e5(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tf,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,e8(e,e.attempt(tp,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:eZ(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(td,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return eZ(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(tt,r.interrupt?n:s,e.attempt(th,u,c))}function s(e){return r.containerState.initialBlankLine=!0,l++,u(e)}function c(t){return e5(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},th={partial:!0,tokenize:function(e,t,n){let r=this;return e8(e,function(e){let i=r.events[r.events.length-1];return!e5(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tf={partial:!0,tokenize:function(e,t,n){let r=this;return e8(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tm={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return e5(t)?e8(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tm,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return e5(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function tx(e,t,n,r,i,l,o,a,s){let c=s||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||eK(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),p(n))}function p(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||e1(t)?n(t):(e.consume(t),92===t?h:p)}function h(t){return 60===t||62===t||92===t?(e.consume(t),p):p(t)}function f(i){return!u&&(null===i||41===i||e2(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||eK(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function tg(e,t,n,r,i,l){let o;let a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),c};function c(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):e1(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||e1(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!e5(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function ty(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===o?(e.exit(l),a(o)):null===t?n(t):e1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e8(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||e1(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function tb(e,t){let n;return function r(i){return e1(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):e5(i)?e8(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tv(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tk={partial:!0,tokenize:function(e,t,n){return function(t){return e2(t)?tb(e,r)(t):n(t)};function r(t){return ty(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return e5(t)?e8(e,l,"whitespace")(t):l(t)}function l(e){return null===e||e1(e)?t(e):n(e)}}},tw={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),e8(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):e1(n)?e.attempt(tj,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||e1(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},tj={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):e1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):e8(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):e1(e)?i(e):n(e)}}},tN={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let o,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){o="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),e5(n)?e8(e,l,"lineSuffix")(n):l(n))}(t)):n(t)};function l(r){return null===r||e1(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},tC=["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"],tS=["pre","script","style","textarea"],tz={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(tt,t,n)}}},tD={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e1(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tA={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tL={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),e5(t)?e8(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),e5(i)?e8(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||e1(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){return function(t){let l=i.events[i.events.length-1];return o=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),e5(i)?e8(e,s,"whitespace")(i):s(i))}(t)}(t)};function s(l){return null===l||e1(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tA,u,f)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e1(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):e5(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),e8(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function c(t){return null===t||e1(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e1(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(l,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p}function p(t){return o>0&&e5(t)?e8(e,h,"linePrefix",o+1)(t):h(t)}function h(t){return null===t||e1(t)?e.check(tA,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||e1(n)?(e.exit("codeFlowValue"),h(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},tE={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"",zwnj:""},tT={}.hasOwnProperty;function tM(e){return!!tT.call(tE,e)&&tE[e]}let tP={name:"characterReference",tokenize:function(e,t,n){let r,i;let l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eX,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=eQ,c):(e.enter("characterReferenceValue"),r=7,i=eZ,c(t))}function c(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==eX||tM(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),c):n(a)}}},tI={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return e0(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tq={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e8(e,t,"linePrefix")}}};function tR(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let tF={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eB(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return l=eU(l=[["enter",s,t],["enter",c,t]],e.slice(r+1,r+a+3)),l=eU(l,[["enter",u,t]]),l=eU(l,tR(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),l=eU(l,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),l=eU(l,e.slice(i+1)),l=eU(l,[["exit",s,t]]),eB(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i;let l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=l.parser.defined.includes(tv(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tO,c,i?c:u)(t):91===t?e.attempt(t_,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(tB,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},tO={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return e2(t)?tb(e,i)(t):i(t)}function i(t){return 41===t?c(t):tx(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return e2(t)?tb(e,a)(t):c(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?ty(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return e2(t)?tb(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},t_={tokenize:function(e,t,n){let r=this;return function(t){return tg.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tv(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},tB={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tU={name:"labelStartImage",resolveAll:tF.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function tV(e){return null===e||e2(e)||e3(e)?1:e4(e)?2:void 0}let tH={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,a,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},p={...e[u][1].start};t$(d,-a),t$(p,a),l={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:p},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[u][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=eU(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=eU(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),s=eU(s,tR(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=eU(s,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=eU(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,eB(e,n-1,u-n+3,s),u=n+s.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=tV(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),c=tV(a),u=!c||2===c&&l||r.includes(a),d=!l||2===l&&c||r.includes(i);return s._open=!!(42===n?u:u&&(l||!d)),s._close=!!(42===n?d:d&&(c||!u)),t(a)}(o)}}};function t$(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tW={name:"labelStartLink",resolveAll:tF.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tG={42:tp,43:tp,45:tp,48:tp,49:tp,50:tp,51:tp,52:tp,53:tp,54:tp,55:tp,56:tp,57:tp,62:tm},tY={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),tg.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function l(t){return(r=tv(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return e2(t)?tb(e,a)(t):a(t)}function a(t){return tx(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(tk,c,c)(t)}function c(t){return e5(t)?e8(e,u,"whitespace")(t):u(t)}function u(l){return null===l||e1(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},tX={[-2]:tw,[-1]:tw,32:tw},tJ={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eB(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||e2(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||e1(r)?(e.exit("atxHeading"),t(r)):e5(r)?e8(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||e2(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(i)}}},42:td,45:[tN,td],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,l,o,a;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,h):63===o?(e.consume(o),r=3,s.interrupt?t:T):eY(o)?(e.consume(o),l=String.fromCharCode(o),f):n(o)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,p):eY(i)?(e.consume(i),r=4,s.interrupt?t:T):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:T):n(r)}function p(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?s.interrupt?t:N:p:n(r)}function h(t){return eY(t)?(e.consume(t),l=String.fromCharCode(t),f):n(t)}function f(o){if(null===o||47===o||62===o||e2(o)){let a=47===o,c=l.toLowerCase();return!a&&!i&&tS.includes(c)?(r=1,s.interrupt?t(o):N(o)):tC.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):N(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):i?function t(n){return e5(n)?(e.consume(n),t):w(n)}(o):x(o))}return 45===o||eX(o)?(e.consume(o),l+=String.fromCharCode(o),f):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:N):n(r)}function x(t){return 47===t?(e.consume(t),w):58===t||95===t||eY(t)?(e.consume(t),g):e5(t)?(e.consume(t),x):w(t)}function g(t){return 45===t||46===t||58===t||95===t||eX(t)?(e.consume(t),g):y(t)}function y(t){return 61===t?(e.consume(t),b):e5(t)?(e.consume(t),y):x(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,v):e5(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||e2(n)?y(n):(e.consume(n),t)}(t)}function v(t){return t===a?(e.consume(t),a=null,k):null===t||e1(t)?n(t):(e.consume(t),v)}function k(e){return 47===e||62===e||e5(e)?x(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||e1(t)?N(t):e5(t)?(e.consume(t),j):n(t)}function N(t){return 45===t&&2===r?(e.consume(t),D):60===t&&1===r?(e.consume(t),A):62===t&&4===r?(e.consume(t),M):63===t&&3===r?(e.consume(t),T):93===t&&5===r?(e.consume(t),E):e1(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tz,P,C)(t)):null===t||e1(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),N)}function C(t){return e.check(tD,S,P)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||e1(t)?C(t):(e.enter("htmlFlowData"),N(t))}function D(t){return 45===t?(e.consume(t),T):N(t)}function A(t){return 47===t?(e.consume(t),l="",L):N(t)}function L(t){if(62===t){let n=l.toLowerCase();return tS.includes(n)?(e.consume(t),M):N(t)}return eY(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),L):N(t)}function E(t){return 93===t?(e.consume(t),T):N(t)}function T(t){return 62===t?(e.consume(t),M):45===t&&2===r?(e.consume(t),T):N(t)}function M(t){return null===t||e1(t)?(e.exit("htmlFlowData"),P(t)):(e.consume(t),M)}function P(n){return e.exit("htmlFlow"),t(n)}}},61:tN,95:td,96:tL,126:tL},tK={38:tP,92:tI},tZ={[-5]:tq,[-4]:tq,[-3]:tq,33:tU,38:tP,42:tH,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eY(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||eX(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||eX(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eK(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):eJ(t)?(e.consume(t),a):n(t)}function s(i){return eX(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||eX(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),v):63===t?(e.consume(t),y):eY(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,h):eY(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),p):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):e1(t)?(l=u,L(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),p):u(t)}function p(e){return 62===e?A(e):45===e?d(e):u(e)}function h(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:h):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):e1(t)?(l=f,L(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),x):f(t)}function x(t){return 62===t?A(t):93===t?(e.consume(t),x):f(t)}function g(t){return null===t||62===t?A(t):e1(t)?(l=g,L(t)):(e.consume(t),g)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):e1(t)?(l=y,L(t)):(e.consume(t),y)}function b(e){return 62===e?A(e):y(e)}function v(t){return eY(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||eX(t)?(e.consume(t),k):function t(n){return e1(n)?(l=t,L(n)):e5(n)?(e.consume(n),t):A(n)}(t)}function w(t){return 45===t||eX(t)?(e.consume(t),w):47===t||62===t||e2(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),A):58===t||95===t||eY(t)?(e.consume(t),N):e1(t)?(l=j,L(t)):e5(t)?(e.consume(t),j):A(t)}function N(t){return 45===t||46===t||58===t||95===t||eX(t)?(e.consume(t),N):function t(n){return 61===n?(e.consume(n),C):e1(n)?(l=t,L(n)):e5(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):e1(t)?(l=C,L(t)):e5(t)?(e.consume(t),C):(e.consume(t),z)}function S(t){return t===r?(e.consume(t),r=void 0,D):null===t?n(t):e1(t)?(l=S,L(t)):(e.consume(t),S)}function z(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||e2(t)?j(t):(e.consume(t),z)}function D(e){return 47===e||62===e||e2(e)?j(e):n(e)}function A(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function L(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),E}function E(t){return e5(t)?e8(e,T,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):T(t)}function T(t){return e.enter("htmlTextData"),l(t)}}}],91:tW,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return e1(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tI],93:tF,95:tH,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(s)):e1(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||e1(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}},tQ={null:[tH,tl]},t0={null:[42,95]},t1={null:[]},t2=/[\0\t\n\r]/g;function t5(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let t4=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t3(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return t5(n.slice(t?2:1),t?16:10)}return tM(n)||e}let t6={}.hasOwnProperty;function t8(e){return{line:e.line,column:e.column,offset:e.offset}}function t7(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+ey({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ey({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+ey({start:t.start,end:t.end})+") is still open")}function t9(e){let t=this;t.parser=function(n){var r,l;let o,a,s,c;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(g),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(h),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(h,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(x,i),htmlFlowData:c,htmlText:r(x,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(g),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:p,characterReferenceMarkerNumeric:p,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=t5(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tM(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=t8(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tv(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(t4,t3),n.identifier=tv(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=t8(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tv(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(t6.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:l,exit:a,buffer:i,resume:s,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,l,o,a=t-1,s=-1,c=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||l||(l=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,l=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];t6.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||t7).call(o,void 0,e[0])}for(r.position={start:t8(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:t8(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:t8(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||t7).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+ey({start:e.start,end:e.end})+"): it’s not open");n.position.end=t8(e.end)}function s(){return eF(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:t8(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=t8(e.end)}function d(){this.data.atHardBreak=!0}function p(e){this.data.characterReferenceType=e.type}function h(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function x(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!e$(e););return e}((function(e){let t={constructs:eG([i,...(e||{}).extensions||[]]),content:n(e7),defined:[],document:n(e9),flow:n(ti),lazy:{},string:n(to),text:n(ta)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],a=[],s={attempt:f(function(e,t){m(e,t.from)}),check:f(h),consume:function(e){e1(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=p(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=p(),c.events.push(["exit",t,c]),t},interrupt:f(h,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,x()},events:[],now:p,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l;let o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=eU(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(m(t,0),c.events=tR(l,c.events,c),c.events)}},u=t.tokenize.call(c,s);return t.resolveAll&&l.push(t),c;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function p(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function h(e,t){t.restore()}function f(e,t){return function(n,i,l){let o,u,d,h;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function f(e){return(o=e,u=0,0===e.length)?l:m(e[u])}function m(e){return function(n){return(h=function(){let e=p(),t=c.previous,n=c.currentConstruct,i=c.events.length,l=Array.from(a);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=l,x()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,h),i}function y(e){return(h.restore(),++u<o.length)?m(o[u]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&eB(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(l).document().write((a=1,s="",c=!0,function(e,t,n){let r,i,l,u,d;let p=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),l=0,s="",c&&(65279===e.charCodeAt(0)&&l++,c=void 0);l<e.length;){if(t2.lastIndex=l,u=(r=t2.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){s=e.slice(l);break}if(10===d&&l===u&&o)p.push(-3),o=void 0;else switch(o&&(p.push(-5),o=void 0),l<u&&(p.push(e.slice(l,u)),a+=u-l),d){case 0:p.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),p.push(-2);a++<i;)p.push(-1);break;case 10:p.push(-4),a=1;break;default:o=!0,a=1}l=u+1}return n&&(o&&p.push(-5),s&&p.push(s),p.push(null)),p})(n,r,!0))))}}let ne="object"==typeof self?self:globalThis,nt=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[l,o]=t[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new ne[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new ne[l](o),i)};return r},nn=e=>nt(new Map,e)(0),{toString:nr}={},{keys:ni}=Object,nl=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=nr.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},no=([e,t])=>0===e&&("function"===t||"symbol"===t),na=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},l=r=>{if(n.has(r))return n.get(r);let[o,a]=nl(r);switch(o){case 0:{let t=r;switch(a){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(l(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return l(r.toJSON());let n=[],s=i([o,n],r);for(let t of ni(r))(e||!no(nl(r[t])))&&n.push([l(t),l(r[t])]);return s}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(no(nl(n))||no(nl(i))))&&t.push([l(n),l(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!no(nl(n)))&&t.push(l(n));return n}}let{message:s}=r;return i([o,{name:a,message:s}],r)};return l},ns=(e,{json:t,lossy:n}={})=>{let r=[];return na(!(t||n),!!t,new Map,r)(e),r},nc="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?nn(ns(e,t)):structuredClone(e):(e,t)=>nn(ns(e,t));function nu(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&eX(e.charCodeAt(n+1))&&eX(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function nd(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function np(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let nh=function(e){if(null==e)return nm;if("function"==typeof e)return nf(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nh(e[n]);return nf(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):nf(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return nf(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function nf(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function nm(){return!0}let nx=[];function ng(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=nh(i),o=r?-1:1;(function e(i,a,s){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node (\x1b[33m"+i.type+(e?"<"+e+">":"")+"\x1b[39m)"})}return u;function u(){var c;let u,d,p,h=nx;if((!t||l(i,a,s[s.length-1]||void 0))&&!1===(h=Array.isArray(c=n(i,s))?c:"number"==typeof c?[!0,c]:null==c?nx:[c])[0])return h;if("children"in i&&i.children&&i.children&&"skip"!==h[0])for(d=(r?i.children.length:-1)+o,p=s.concat(i);d>-1&&d<i.children.length;){if(!1===(u=e(i.children[d],d,p)())[0])return u;d="number"==typeof u[1]?u[1]:d+o}return h}})(e,void 0,[])()}function ny(e,t,n,r){let i,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,i=n):(l=t,o=n,i=r),ng(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function nb(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function nv(e){let t=e.spread;return null==t?e.children.length>1:t}function nk(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let nw={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=nu(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nb(e,t);let i={src:nu(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:nu(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nb(e,t);let i={href:nu(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:nu(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=nv(n[r])}return t}(n):nv(t),l={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=ex(t.children[1]),o=em(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(nk(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(nk(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nj,yaml:nj,definition:nj,footnoteDefinition:nj};function nj(){}let nN={}.hasOwnProperty,nC={};function nS(e,t){e.position&&(t.position=function(e){let t=ex(e),n=em(e);if(t&&n)return{start:t,end:n}}(e))}function nz(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,nc(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nD(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nA(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nL(e,t){let n=function(e,t){let n=t||nC,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nA(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nA(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nz,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nw,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(nN.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=nc(n);return r.children=l.all(e),r}return nc(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nN.call(n,"hProperties")||nN.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:nS,wrap:nD};return ny(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||nd,r=e.options.footnoteBackLabel||np,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),c=nu(o.toLowerCase()),u=0,d=[],p=e.footnoteCounts.get(o);for(;void 0!==p&&++u<=p;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let h=l[l.length-1];if(h&&"element"===h.type&&"p"===h.tagName){let e=h.children[h.children.length-1];e&&"text"===e.type?e.value+=" ":h.children.push({type:"text",value:" "}),h.children.push(...d)}else l.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(l,!0)};e.patch(i,f),a.push(f)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...nc(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:"\n"},i),l}function nE(e,t){return e&&"run"in e?async function(n,r){let i=nL(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nL(n,{file:r,...e||t})}}function nT(e){if(e)throw e}var nM=n(75609);function nP(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nI=require("node:path"),nq=require("node:process");function nR(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}var nF=n(41041);let nO=["history","path","basename","stem","extname","dirname"];class n_{constructor(e){let t,n;t=e?nR(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nq.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nO.length;){let e=nO[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nO.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?nI.basename(this.path):void 0}set basename(e){nU(e,"basename"),nB(e,"basename"),this.path=nI.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nI.dirname(this.path):void 0}set dirname(e){nV(this.basename,"dirname"),this.path=nI.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?nI.extname(this.path):void 0}set extname(e){if(nB(e,"extname"),nV(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nI.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nR(e)&&(e=(0,nF.fileURLToPath)(e)),nU(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?nI.basename(this.path,this.extname):void 0}set stem(e){nU(e,"stem"),nB(e,"stem"),this.path=nI.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new ew(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nB(e,t){if(e&&e.includes(nI.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+nI.sep+"`")}function nU(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function nV(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nH=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},n$={}.hasOwnProperty;class nW extends nH{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(l,...o){let a=e[++n],s=-1;if(l){r(l);return}for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let l;let o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nW,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nM(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nJ("data",this.frozen),this.namespace[e]=t,this):n$.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nJ("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=nQ(e),n=this.parser||this.Parser;return nY("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nY("process",this.parser||this.Parser),nX("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=nQ(e),o=n.parse(l);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,l,function(e,t,r){if(e||!t||!r)return a(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nY("processSync",this.parser||this.Parser),nX("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nT(e),t=r}),nZ("processSync","process",n),t}run(e,t,n){nK(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){let o=nQ(t);r.run(e,o,function(t,r,o){let a=r||e;t?l(t):i?i(a):n(void 0,a,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nT(e),n=t,r=!0}),nZ("runSync","run",r),n}stringify(e,t){this.freeze();let n=nQ(t),r=this.compiler||this.Compiler;return nX("stringify",r),nK(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nJ("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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");l(e.plugins),e.settings&&(r.settings=nM(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];nP(o)&&nP(r)&&(r=nM(!0,o,r)),n[i]=[e,r,...l]}}}}let nG=new nW().freeze();function nY(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nX(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nJ(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nK(e){if(!nP(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function nZ(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function nQ(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new n_(e)}let n0=[],n1={allowDangerousHtml:!0},n2=/^(https?|ircs?|mailto|xmpp)$/i,n5=[{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 n4(e){let t=function(e){let t=e.rehypePlugins||n0,n=e.remarkPlugins||n0,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n1}:n1;return nG().use(t9).use(n).use(nE,r).use(t)}(e),n=function(e){let t=e.children||"",n=new n_;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||n3;for(let e of n5)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return ny(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eq)if(Object.hasOwn(eq,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eq[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,l=function(e,t,r,i){let l=Array.isArray(r.children),a=ex(e);return n(t,r,i,l,{columnNumber:a?a.column-1:void 0,fileName:o,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,l=function(e,t,n,l){let o=Array.isArray(n.children)?i:r;return l?o(t,n,l):o(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ea:eo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=eA(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(e,{Fragment:l.Fragment,components:i,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function n3(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||n2.test(e.slice(0,t))?e:""}function n6(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let n8="phrasing",n7=["autolink","link","image","label"];function n9(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function re(e){this.config.enter.autolinkProtocol.call(this,e)}function rt(e){this.config.exit.autolinkProtocol.call(this,e)}function rn(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function rr(e){this.config.exit.autolinkEmail.call(this,e)}function ri(e){this.exit(e)}function rl(e){!function(e,t,n){let r=nh((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)ng(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],o=i[l][1],a=0,s=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=o(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?u.push(...l):l&&u.push(l),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...u)):u=[e],s+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,ro],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,ra]],{ignore:["link","linkReference"]})}function ro(e,t,n,r,i){let l="";if(!rs(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let 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])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=n6(e,"("),l=n6(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!o[0])return!1;let a={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function ra(e,t,n,r){return!(!rs(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function rs(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||e3(n)||e4(n))&&(!t||47!==n)}function rc(){this.buffer()}function ru(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rd(){this.buffer()}function rp(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rh(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rf(e){this.exit(e)}function rm(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tv(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rx(e){this.exit(e)}function rg(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]")}function ry(e,t,n){return 0===t?e:rb(e,t,n)}function rb(e,t,n){return(n?"":" ")+e}rg.peek=function(){return"["};let rv=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rk(e){this.enter({type:"delete",children:[]},e)}function rw(e){this.exit(e)}function rj(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"})+i.move("~~"),l(),o}function rN(e){return e.length}function rC(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}rj.peek=function(){return"~"};function rS(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e;let t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rS.peek=function(){return"`"},nh(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let rz={inlineCode:rS,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return s(),c}};function rD(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rA(e){this.exit(e),this.data.inTable=void 0}function rL(e){this.enter({type:"tableRow",children:[]},e)}function rE(e){this.exit(e)}function rT(e){this.enter({type:"tableCell",children:[]},e)}function rM(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rP));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rP(e,t){return"|"===t?t:e}function rI(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function rq(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function rR(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let s=rz.listItem(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),s}let rF={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},rO={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(rB,s,a)(t):null===t||e2(t)||e3(t)||45!==t&&e4(t)?s(t):(l=!0,e.consume(t),o)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},r_={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(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===o?e.check(rB,t,l)(o):null===o||e2(o)||e3(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rB={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||e2(o)||e3(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||e2(e)||e3(e)?t(e):r(e)}function l(t){return eY(t)?function t(i){return 59===i?(e.consume(i),r):eY(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rU={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eX(e)?n(e):t(e)}},partial:!0},rV={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rY.call(r,r.previous)||rZ(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(rF,e.attempt(rO,e.attempt(r_,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rY},rH={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&rX.call(r,r.previous)&&!rZ(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(eY(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),l)?s:(l=!0,a):n(t)}function s(t){return null===t||eK(t)||e2(t)||e3(t)||e4(t)?n(t):e.attempt(rO,e.attempt(r_,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rX},r$={name:"emailAutolink",tokenize:function(e,t,n){let r,i;let l=this;return function(t){return!rK(t)||!rJ.call(l,l.previous)||rZ(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rK(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(rU,s,a)(t):45===t||95===t||eX(t)?(i=!0,e.consume(t),o):s(t)}function a(t){return e.consume(t),r=!0,o}function s(o){return i&&r&&eY(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:rJ},rW={},rG=48;for(;rG<123;)rW[rG]=r$,58==++rG?rG=65:91===rG&&(rG=97);function rY(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||e2(e)}function rX(e){return!eY(e)}function rJ(e){return!(47===e||rK(e))}function rK(e){return 43===e||45===e||46===e||95===e||eX(e)}function rZ(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rW[43]=r$,rW[45]=r$,rW[46]=r$,rW[95]=r$,rW[72]=[r$,rH],rW[104]=[r$,rH],rW[87]=[r$,rV],rW[119]=[r$,rV];let rQ={tokenize:function(e,t,n){let r=this;return e8(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function r0(e,t,n){let r;let i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let a=tv(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function r1(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function r2(e,t,n){let r;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(o>999||93===a&&!r||null===a||91===a||e2(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(tv(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return e2(a)||(r=!0),o++,e.consume(a),92===a?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,s):s(t)}}function r5(e,t,n){let r,i;let l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!i||null===t||91===t||e2(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tv(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return e2(t)||(i=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),e8(e,p,"gfmFootnoteDefinitionWhitespace")):n(t)}function p(e){return t(e)}}function r4(e,t,n){return e.check(tt,t,e.attempt(rQ,t,n))}function r3(e){e.exit("gfmFootnoteDefinition")}class r6{constructor(){this.map=[]}add(e,t,n){(function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}})(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function r8(e,t,n){let r;let i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:a;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,o+=1),s(t)}function s(t){return null===t?n(t):e1(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):e5(t)?e8(e,s,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),c(t))}function c(t){return null===t||124===t||e2(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,e5(t))?e8(e,p,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):p(t)}function p(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),h):n(t)}function h(t){return e5(t)?e8(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||e1(t)?g(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(n))}(t)):n(t)}function x(t){return e5(t)?e8(e,g,"whitespace")(t):g(t)}function g(i){return 124===i?p(i):null===i||e1(i)?r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function y(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||e1(n)?(e.exit("tableRow"),t(n)):e5(n)?e8(e,b,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||e2(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:v)}function k(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function r7(e,t){let n,r,i,l=-1,o=!0,a=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,p=new r6;for(;++l<e.length;){let h=e[l],f=h[1];"enter"===h[0]?"tableHead"===f.type?(u=!1,0!==d&&(ie(p,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(l,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(o=!0,i=void 0,s=[0,0,0,0],c=[0,l+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},p.add(l,0,[["enter",r,t]])),a="tableDelimiterRow"===f.type?2:r?3:1):a&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(o=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],i=r9(p,t,s,a,void 0,i),s=[0,0,0,0]),c[2]=l)):"tableCellDivider"===f.type&&(o?o=!1:(0!==s[1]&&(c[0]=c[1],i=r9(p,t,s,a,void 0,i)),c=[(s=c)[1],l,0,0])):"tableHead"===f.type?(u=!0,d=l):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=l,0!==s[1]?(c[0]=c[1],i=r9(p,t,s,a,l,i)):0!==c[1]&&(i=r9(p,t,c,a,l,i)),a=0):a&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=l)}for(0!==d&&ie(p,t,d,n,r),p.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function r9(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},it(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=it(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=it(t.events,n[2]),l=it(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},it(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function ie(e,t,n,r,i){let l=[],o=it(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function it(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let ir={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return e2(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return e1(r)?t(r):e5(r)?e.check({tokenize:ii},t,n)(r):n(r)}}};function ii(e,t,n){return e8(e,function(e){return null===e?n(e):t(e)},"whitespace")}let il={};function io(e){let t;let n=e||il,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(eG([{text:rW},{document:{91:{name:"gfmFootnoteDefinition",tokenize:r5,continuation:{tokenize:r4},exit:r3}},text:{91:{name:"gfmFootnoteCall",tokenize:r2},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:r0,resolveTo:r1}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let s=tV(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let c=e.exit("strikethroughSequenceTemporary"),u=tV(a);return c._open=!u||2===u&&!!s,c._close=!s||2===s&&!!u,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&eB(o,o.length,0,tR(a,e.slice(r+1,n),t)),eB(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eB(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:r8,resolveAll:r7}}},{text:{91:ir}}])),l.push([{transforms:[rl],enter:{literalAutolink:n9,literalAutolinkEmail:re,literalAutolinkHttp:re,literalAutolinkWww:re},exit:{literalAutolink:ri,literalAutolinkEmail:rr,literalAutolinkHttp:rt,literalAutolinkWww:rn}},{enter:{gfmFootnoteCallString:rc,gfmFootnoteCall:ru,gfmFootnoteDefinitionLabelString:rd,gfmFootnoteDefinition:rp},exit:{gfmFootnoteCallString:rh,gfmFootnoteCall:rf,gfmFootnoteDefinitionLabelString:rm,gfmFootnoteDefinition:rx}},{canContainEols:["delete"],enter:{strikethrough:rk},exit:{strikethrough:rw}},{enter:{table:rD,tableData:rT,tableHeader:rT,tableRow:rL},exit:{codeText:rM,table:rA,tableData:rE,tableHeader:rE,tableRow:rE}},{exit:{taskListCheckValueChecked:rI,taskListCheckValueUnchecked:rI,paragraph:rq}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n8,notInConstruct:n7},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n8,notInConstruct:n7},{character:":",before:"[ps]",after:"\\/",inConstruct:n8,notInConstruct:n7}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let l=r.createTracker(i),o=l.move("[^"),a=r.enter("footnoteDefinition"),s=r.enter("label");return o+=l.move(r.safe(r.associationId(e),{before:o,after:"]"})),s(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,l.current()),t?rb:ry))),a(),o},footnoteReference:rg},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rv}],handlers:{delete:rj}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rz.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=s(r[i],t,n);return o(),l}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=a([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:l,after:l});return o(),i(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rN,l=[],o=[],a=[],s=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){var d;let o=null==(d=e[u][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(o)}o[u]=t,a[u]=r}let p=-1;if("object"==typeof r&&"length"in r)for(;++p<c;)l[p]=rC(r[p]);else{let e=rC(r);for(;++p<c;)l[p]=e}p=-1;let h=[],f=[];for(;++p<c;){let e=l[p],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[p]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[p]&&(s[p]=i),f[p]=i),h[p]=o}o.splice(1,0,h),a.splice(1,0,f),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=a[u];p=-1;let r=[];for(;++p<c;){let i=e[p]||"",o="",a="";if(!1!==n.alignDelimiters){let e=s[p]-(t[p]||0),n=l[p];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=o=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||p||r.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===i)&&(!1!==n.delimiterStart||p)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||p!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return a(),l}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rR}}]})}var ia=n(76348);function is({node:e,onClose:t}){return e.description?(0,ia.createPortal)(l.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:t,children:(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-[90vw] max-w-2xl max-h-[80vh] flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600 shrink-0",children:e.id}),l.jsx("span",{className:"text-sm font-semibold text-zinc-900 truncate",children:e.title})]}),l.jsx("button",{onClick:t,className:"shrink-0 p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4 custom-scrollbar description-markdown text-sm text-zinc-700 leading-relaxed",children:l.jsx(n4,{remarkPlugins:[io],children:e.description})})]})}),document.body):null}function ic({className:e="w-3 h-3",filled:t=!1}){return t?l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"})}):l.jsx("svg",{className:e,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})})}function iu(e){let t=new Date(e),n=Math.floor((new Date().getTime()-t.getTime())/1e3);if(n<60)return"just now";let r=Math.floor(n/60);if(r<60)return`${r}m ago`;let i=Math.floor(r/60);if(i<24)return`${i}h ago`;let l=Math.floor(i/24);return l<7?`${l}d ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function id({node:e,allNodes:t,onNodeNavigate:n,comments:r,onPostComment:i,onDeleteComment:a,onLikeComment:s,onReplyComment:c,isAuthenticated:u,currentDid:d,repoUrls:b}){let[v,k]=(0,o.useState)(null),[w,j]=(0,o.useState)(""),[N,C]=(0,o.useState)(!1),[S,z]=(0,o.useState)(!1),D=e=>{k(e.uri),j("")},A=()=>{k(null),j("")},L=async()=>{if(w.trim()&&v&&c){C(!0);try{let e=t=>{for(let n of t){if(n.uri===v)return n;let t=e(n.replies);if(t)return t}},t=r?e(r):void 0;t&&await c(t,w.trim()),k(null),j("")}catch(e){console.error("Failed to post reply:",e)}finally{C(!1)}}};if(!e)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-zinc-100 flex items-center justify-center mb-4",children:l.jsx("svg",{className:"w-6 h-6 text-zinc-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"})})}),l.jsx("p",{className:"text-sm text-zinc-500 leading-relaxed",children:"Click a node to see details"}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Hover to highlight connections"})]});let E=x[e.issueType]||"\uD83D\uDCCB",T=p[e.status]||p.open,M=h[e.status]||e.status,P=f[e.priority]||`P${e.priority}`,I=m[e.priority]||"#a1a1aa",q=g[e.prefix]||e.prefix,R=y[e.prefix]||"#a1a1aa",F=b?.[e.prefix],O=e.blockerIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),_=e.dependentIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),B=e=>{try{let t=new Date(e),n=t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),r=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!1});return`${n} at ${r}`}catch{return e}};return(0,l.jsxs)("div",{className:"animate-fade-in",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[l.jsx("span",{className:"text-2xl mt-0.5",children:E}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"flex items-center gap-2",children:l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600",children:e.id})}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-900 mt-1 leading-snug",children:e.title})]})]}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2 mb-4",children:[(0,l.jsxs)("span",{className:"status-badge",style:{backgroundColor:T+"18",color:T,border:`1px solid ${T}30`},children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full mr-1.5",style:{backgroundColor:T}}),M]}),l.jsx("span",{className:"status-badge",style:{backgroundColor:I+"15",color:I,border:`1px solid ${I}25`},children:P}),F?(0,l.jsxs)("a",{href:F,target:"_blank",rel:"noopener noreferrer",className:"status-badge hover:opacity-80 transition-opacity",style:{backgroundColor:R+"15",color:R,border:`1px solid ${R}25`,textDecoration:"none"},children:[q,l.jsx("svg",{className:"w-2.5 h-2.5 ml-1 opacity-50",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})]}):l.jsx("span",{className:"status-badge",style:{backgroundColor:R+"15",color:R,border:`1px solid ${R}25`},children:q})]}),F&&l.jsx("div",{className:"mb-4",children:(0,l.jsxs)("a",{href:F,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})}),F.replace(/^https?:\/\//,"")]})}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[l.jsx(ih,{label:"Blocks",value:e.blockerCount,color:e.blockerCount>0?"#f59e0b":void 0}),l.jsx(ih,{label:"Blocked by",value:e.dependentCount,color:e.dependentCount>0?"#ef4444":void 0})]}),(0,l.jsxs)("div",{className:"space-y-1.5 mb-4 text-xs text-zinc-500",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Created"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:B(e.createdAt)})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Updated"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:B(e.updatedAt)})]}),e.closedAt&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Closed"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:B(e.closedAt)})]}),e.closeReason&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Reason"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.closeReason})]}),e.owner&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Owner"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.owner})]})]}),e.description&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider",children:"Description"}),l.jsx("button",{onClick:()=>z(!0),className:"text-[10px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"View in window"})]}),l.jsx("div",{className:"text-xs text-zinc-600 leading-relaxed bg-zinc-50 rounded-lg p-3 max-h-40 overflow-y-auto custom-scrollbar border border-zinc-100 description-markdown",children:l.jsx(n4,{remarkPlugins:[io],children:e.description})})]}),S&&e.description&&l.jsx(is,{node:e,onClose:()=>z(!1)}),O.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocks (",O.length,")"]}),l.jsx("div",{className:"space-y-1",children:O.map(e=>l.jsx(im,{node:e,onClick:()=>n(e.id)},e.id))})]}),_.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocked by (",_.length,")"]}),l.jsx("div",{className:"space-y-1",children:_.map(e=>l.jsx(im,{node:e,onClick:()=>n(e.id)},e.id))})]}),(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Comments"," ",r&&r.length>0&&l.jsx("span",{className:"ml-1 px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:r.length})]}),r&&r.length>0?l.jsx("div",{className:"space-y-1",children:r.map(e=>l.jsx(ix,{comment:e,currentDid:d,isAuthenticated:u,onDelete:a,onLike:s,onStartReply:D,replyingToUri:v,replyText:w,onReplyTextChange:j,onSubmitReply:L,onCancelReply:A,isSubmittingReply:N,depth:0},e.uri))}):l.jsx("p",{className:"text-xs text-zinc-400 italic",children:"No comments yet"}),u&&i?l.jsx(ig,{onSubmit:i}):u?null:l.jsx("p",{className:"text-xs text-zinc-400 mt-2",children:"Sign in to leave a comment"})]})]})}function ip({replyingTo:e,replyText:t,onTextChange:n,onSubmit:r,onCancel:i,isSubmitting:o}){return(0,l.jsxs)("div",{className:"mt-2 ml-4 pl-3 border-l border-emerald-200 space-y-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] text-zinc-400",children:[l.jsx("span",{children:"Replying to"}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-600 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[l.jsx("input",{type:"text",value:t,onChange:e=>n(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||r()},placeholder:"Write a reply...",disabled:o,autoFocus:!0,className:"flex-1 px-2 py-1 text-xs bg-white border border-zinc-200 rounded placeholder-zinc-400 focus:outline-none focus:border-emerald-400 disabled:opacity-50"}),l.jsx("button",{onClick:r,disabled:!t.trim()||o,className:"px-2 py-1 text-[10px] font-medium text-emerald-600 hover:text-emerald-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o?"...":"Reply"}),l.jsx("button",{onClick:i,disabled:o,className:"px-2 py-1 text-[10px] text-zinc-400 hover:text-zinc-600 disabled:opacity-50 transition-colors",children:"Cancel"})]})]})}function ih({label:e,value:t,color:n}){return(0,l.jsxs)("div",{className:"bg-zinc-50 rounded-lg p-3 border border-zinc-100",children:[l.jsx("div",{className:"text-xl font-bold",style:{color:n||"#3f3f46"},children:t}),l.jsx("div",{className:"text-[10px] text-zinc-400 uppercase tracking-wider mt-0.5",children:e})]})}function im({node:e,onClick:t}){let n=p[e.status]||p.open;return(0,l.jsxs)("button",{onClick:t,className:"w-full flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-zinc-50 transition-colors text-left group border border-transparent hover:border-zinc-200",children:[l.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:n}}),l.jsx("span",{className:"text-xs font-mono text-emerald-600 group-hover:text-emerald-700 shrink-0",children:e.id}),l.jsx("span",{className:"text-xs text-zinc-500 truncate",children:e.title})]})}function ix({comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:a,replyingToUri:s,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:p,isSubmittingReply:h,depth:f}){let[m,x]=(0,o.useState)(!1),[g,y]=(0,o.useState)(!1),b=t&&t===e.did,v=!!t&&e.likes.some(e=>e.did===t),k=s===e.uri,w=async()=>{if(r&&!m){x(!0);try{await r(e)}catch(e){console.error("Failed to delete comment:",e)}finally{x(!1)}}},j=async()=>{if(i&&!g){y(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{y(!1)}}};return(0,l.jsxs)("div",{className:`${f>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:"py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:iu(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:j,disabled:!n||g,className:`flex items-center gap-0.5 transition-colors ${v?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(ic,{className:"w-3 h-3",filled:v}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),l.jsx("button",{onClick:()=>a(e),disabled:!n,className:`transition-colors disabled:opacity-50 ${k?"text-emerald-500":"text-zinc-300 hover:text-zinc-500"}`,children:"reply"}),b&&r&&l.jsx("button",{onClick:w,disabled:m,className:"ml-auto shrink-0 text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:m?"...":"delete"})]})]}),k&&l.jsx(ip,{replyingTo:e,replyText:c,onTextChange:u,onSubmit:d,onCancel:p,isSubmitting:h}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(ix,{comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:a,replyingToUri:s,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:p,isSubmittingReply:h,depth:f+1},e.uri))})]})}function ig({onSubmit:e}){let[t,n]=(0,o.useState)(""),[r,i]=(0,o.useState)(!1),a=async()=>{if(t.trim()&&!r){i(!0);try{await e(t.trim()),n("")}catch(e){console.error("Failed to post comment:",e)}finally{i(!1)}}};return(0,l.jsxs)("div",{className:"mt-3 space-y-2",children:[l.jsx("textarea",{value:t,onChange:e=>n(e.target.value),placeholder:"Leave a comment...",rows:2,className:"w-full px-2.5 py-1.5 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),l.jsx("button",{onClick:a,disabled:!t.trim()||r,className:"px-3 py-1 text-xs font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:r?"Sending...":"Comment"})]})}var iy=n(67960);function ib(){let{isAuthenticated:e,isLoading:t,session:n,login:r,logout:i}=(0,iy.a)(),[a,s]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[d,p]=(0,o.useState)(""),[h,f]=(0,o.useState)(!1),[m,x]=(0,o.useState)(""),g=(0,o.useRef)(null),y=async e=>{if(e.preventDefault(),d.trim()){f(!0),x("");try{await r(d.trim())}catch(e){x(e instanceof Error?e.message:"Login failed"),f(!1)}}},b=async()=>{u(!1),await i()};return t?l.jsx("div",{className:"w-4 h-4 rounded-full border-2 border-zinc-200 border-t-zinc-400 animate-spin"}):e&&n?(0,l.jsxs)("div",{className:"relative",ref:g,children:[(0,l.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-2 px-3 py-1.5 rounded-full hover:bg-zinc-50 transition-colors cursor-pointer",children:[n.avatar?l.jsx("img",{src:n.avatar,alt:n.handle,width:24,height:24,className:"rounded-full"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 flex items-center justify-center text-[11px] text-emerald-700 font-medium",children:(n.displayName||n.handle).charAt(0).toUpperCase()}),l.jsx("span",{className:"text-sm text-zinc-600 max-w-[100px] truncate",children:n.displayName||n.handle})]}),c&&(0,l.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-44 bg-white rounded-xl shadow-xl border border-zinc-100 py-2 z-50",children:[(0,l.jsxs)("a",{href:n.did?`https://www.impactindexer.org/data?did=${n.did}`:"#",target:"_blank",rel:"noopener noreferrer",className:"block px-3 py-1.5 text-xs text-zinc-400 truncate hover:text-emerald-600 transition-colors",children:["@",n.handle]}),l.jsx("div",{className:"h-px bg-zinc-100 my-1"}),(0,l.jsxs)("button",{onClick:b,className:"flex items-center gap-2 w-full px-3 py-1.5 text-xs text-zinc-600 hover:bg-zinc-50 transition-colors cursor-pointer",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0-3-3m0 0 3-3m-3 3H15"})}),"Sign out"]})]})]}):(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>s(!0),className:"px-4 py-1.5 text-sm font-medium text-zinc-600 rounded-full hover:text-zinc-900 hover:bg-zinc-50 transition-colors cursor-pointer whitespace-nowrap",children:"Sign in"}),a&&(0,l.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>s(!1),children:[l.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm"}),(0,l.jsxs)("div",{className:"relative w-full max-w-sm mx-4 bg-white rounded-xl shadow-lg border border-zinc-200 p-6",onClick:e=>e.stopPropagation(),children:[l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Sign in with ATProto"}),l.jsx("p",{className:"text-sm text-zinc-400 mb-5",children:"Enter your Bluesky handle to connect."}),(0,l.jsxs)("form",{onSubmit:y,children:[l.jsx("label",{htmlFor:"auth-handle",className:"block text-sm text-zinc-600 mb-1.5",children:"Handle"}),l.jsx("input",{id:"auth-handle",type:"text",value:d,onChange:e=>p(e.target.value),placeholder:"alice.bsky.social",disabled:h,autoFocus:!0,className:"w-full px-3 py-2 text-sm bg-white border border-zinc-200 rounded-lg placeholder:text-zinc-300 focus:outline-none focus:ring-2 focus:ring-emerald-500/30 focus:border-emerald-400 disabled:opacity-50 disabled:cursor-not-allowed"}),l.jsx("p",{className:"text-xs text-zinc-300 mt-1.5",children:"Just a username? We'll add .bsky.social for you."}),m&&l.jsx("p",{className:"text-sm text-red-500 mt-2",children:m}),(0,l.jsxs)("div",{className:"flex gap-2 mt-5",children:[l.jsx("button",{type:"button",onClick:()=>s(!1),disabled:h,className:"flex-1 px-3 py-2 text-sm text-zinc-600 bg-zinc-50 rounded-lg hover:bg-zinc-100 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),l.jsx("button",{type:"submit",disabled:h||!d.trim(),className:"flex-1 px-3 py-2 text-sm text-white bg-emerald-600 rounded-lg hover:bg-emerald-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:h?"Connecting...":"Connect"})]})]})]})]})]})}function iv({className:e}){return(0,l.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",className:e,"aria-hidden":"true",children:[l.jsx("polygon",{points:"16,3 27,9.5 27,22.5 16,29 5,22.5 5,9.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none",opacity:"0.7",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 16 16;360 16 16",dur:"40s",repeatCount:"indefinite"})}),l.jsx("polygon",{points:"16,8 22.5,11.5 22.5,20.5 16,24 9.5,20.5 9.5,11.5",stroke:"currentColor",strokeWidth:"0.8",fill:"none",opacity:"0.35",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 16 16;0 16 16",dur:"30s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"3",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"0.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"29",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2.5s"})}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"2.5",fill:"currentColor",opacity:"0.8",children:[l.jsx("animate",{attributeName:"r",values:"2;3;2",dur:"3s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.7;1;0.7",dur:"3s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"3",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"29",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"2s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"10",stroke:"currentColor",strokeWidth:"0.4",fill:"none",opacity:"0.15",children:[l.jsx("animate",{attributeName:"r",values:"9;11;9",dur:"4s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"4s",repeatCount:"indefinite"})]})]})}function ik({node:e,x:t,y:n,onClose:r,onSubmit:i,isAuthenticated:a,existingComments:s}){let[c,u]=(0,o.useState)(""),[d,p]=(0,o.useState)(!1),h=(0,o.useRef)(null),f=(0,o.useRef)(null),[m,x]=(0,o.useState)({x:0,y:0}),[g,b]=(0,o.useState)(!1),v=(0,o.useCallback)(async()=>{if(c.trim()&&!d){p(!0);try{await i(c.trim()),u("")}catch(e){console.error("Failed to post comment:",e)}finally{p(!1)}}},[c,d,i]),k=(0,o.useCallback)(e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),v())},[v]),w=y[e.prefix]||"#a1a1aa",j=s?.length||0;return(0,l.jsxs)("div",{ref:h,style:{position:"fixed",left:m.x,top:m.y,width:320,zIndex:100,opacity:g?1:0,transform:g?"translateY(0)":"translateY(4px)",transition:"opacity 0.2s ease, transform 0.2s ease"},className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",onContextMenu:e=>e.preventDefault(),children:[l.jsx("style",{children:`
|
|
1
|
+
(()=>{var e={};e.id=931,e.ids=[931],e.modules={72934:e=>{"use strict";e.exports=require("next/dist/client/components/action-async-storage.external.js")},54580:e=>{"use strict";e.exports=require("next/dist/client/components/request-async-storage.external.js")},45869:e=>{"use strict";e.exports=require("next/dist/client/components/static-generation-async-storage.external.js")},20399:e=>{"use strict";e.exports=require("next/dist/compiled/next-server/app-page.runtime.prod.js")},41041:e=>{"use strict";e.exports=require("node:url")},32143:(e,t,n)=>{"use strict";n.r(t),n.d(t,{GlobalError:()=>o.a,__next_app__:()=>h,originalPathname:()=>d,pages:()=>u,routeModule:()=>p,tree:()=>c}),n(71363),n(19709),n(10311);var r=n(69296),i=n(31650),l=n(87045),o=n.n(l),a=n(58184),s={};for(let e in a)0>["default","tree","pages","GlobalError","originalPathname","__next_app__","routeModule"].indexOf(e)&&(s[e]=()=>a[e]);n.d(t,s);let c=["",{children:["__PAGE__",{},{page:[()=>Promise.resolve().then(n.bind(n,71363)),"/Users/david/Projects/gainforest/beads-map/app/page.tsx"]}]},{layout:[()=>Promise.resolve().then(n.bind(n,19709)),"/Users/david/Projects/gainforest/beads-map/app/layout.tsx"],"not-found":[()=>Promise.resolve().then(n.t.bind(n,10311,23)),"next/dist/client/components/not-found-error"]}],u=["/Users/david/Projects/gainforest/beads-map/app/page.tsx"],d="/page",h={require:n,loadChunk:()=>Promise.resolve()},p=new r.AppPageRouteModule({definition:{kind:i.x.APP_PAGE,page:"/page",pathname:"/",bundlePath:"",filename:"",appPaths:[]},userland:{loaderTree:c}})},40585:(e,t,n)=>{Promise.resolve().then(n.bind(n,67960))},12178:(e,t,n)=>{Promise.resolve().then(n.bind(n,77100))},15169:(e,t,n)=>{Promise.resolve().then(n.t.bind(n,66544,23)),Promise.resolve().then(n.t.bind(n,93477,23)),Promise.resolve().then(n.t.bind(n,95116,23)),Promise.resolve().then(n.t.bind(n,96676,23)),Promise.resolve().then(n.t.bind(n,59645,23)),Promise.resolve().then(n.t.bind(n,88850,23))},77100:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>iG});var r={};n.r(r),n.d(r,{boolean:()=>H,booleanish:()=>V,commaOrSpaceSeparated:()=>X,commaSeparated:()=>Y,number:()=>W,overloadedBoolean:()=>$,spaceSeparated:()=>G});var i={};n.r(i),n.d(i,{attentionMarkers:()=>t5,contentInitial:()=>tJ,disable:()=>t2,document:()=>tX,flow:()=>tZ,flowInitial:()=>tK,insideSpan:()=>t1,string:()=>tQ,text:()=>t0});var l=n(98924),o=n(63911);let a={open:"#10b981",in_progress:"#f59e0b",blocked:"#ef4444",deferred:"#8b5cf6",closed:"#a1a1aa"},s={open:"Open",in_progress:"In Progress",blocked:"Blocked",deferred:"Deferred",closed:"Closed"},c={0:"P0 - Critical",1:"P1 - High",2:"P2 - Medium",3:"P3 - Low",4:"P4 - Backlog"},u={0:"#ef4444",1:"#f97316",2:"#3b82f6",3:"#a1a1aa",4:"#d4d4d8"},d={bug:"\uD83D\uDC1B",feature:"✨",task:"\uD83D\uDCDD",epic:"\uD83C\uDFAF",chore:"\uD83D\uDD27"};function h(e){return function(e){let t=2166136261;for(let n=0;n<e.length;n++)t^=e.charCodeAt(n),t=16777619*t>>>0;let n=t%360;return`hsl(${n}, 65%, 55%)`}(e)}let p=new Proxy({},{get:(e,t)=>t.split(/[-_]/).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" "),has:()=>!0}),f=new Proxy({},{get:(e,t)=>h(t),has:()=>!0});function m(e){return function(){return e}}var x=n(26669);function g(e){return(e()-.5)*1e-6}function y(e){return e.x+e.vx}function b(e){return e.y+e.vy}function v(e){var t,n,r,i=1,l=1;function o(){for(var e,o,s,c,u,d,h,p=t.length,f=0;f<l;++f)for(e=0,o=(0,x.Z)(t,y,b).visitAfter(a);e<p;++e)h=(d=n[(s=t[e]).index])*d,c=s.x+s.vx,u=s.y+s.vy,o.visit(m);function m(e,t,n,l,o){var a=e.data,p=e.r,f=d+p;if(a){if(a.index>s.index){var m=c-a.x-a.vx,x=u-a.y-a.vy,y=m*m+x*x;y<f*f&&(0===m&&(y+=(m=g(r))*m),0===x&&(y+=(x=g(r))*x),y=(f-(y=Math.sqrt(y)))/y*i,s.vx+=(m*=y)*(f=(p*=p)/(h+p)),s.vy+=(x*=y)*f,a.vx-=m*(f=1-f),a.vy-=x*f)}return}return t>c+f||l<c-f||n>u+f||o<u-f}}function a(e){if(e.data)return e.r=n[e.data.index];for(var t=e.r=0;t<4;++t)e[t]&&e[t].r>e.r&&(e.r=e[t].r)}function s(){if(t){var r,i,l=t.length;for(r=0,n=Array(l);r<l;++r)n[(i=t[r]).index]=+e(i,r,t)}}return"function"!=typeof e&&(e=m(null==e?1:+e)),o.initialize=function(e,n){t=e,r=n,s()},o.iterations=function(e){return arguments.length?(l=+e,o):l},o.strength=function(e){return arguments.length?(i=+e,o):i},o.radius=function(t){return arguments.length?(e="function"==typeof t?t:m(+t),s(),o):e},o}let k=null;function w(e){let t=e.blockerCount+e.dependentCount;return"epic"===e.issueType&&(t+=3),5+17*Math.min(t/6,1)}function j(e){return a[e.status]||a.open}function N(e){return 1-(1-e)*(1-e)}let C=new Map;function S(e,t){let n=C.get(e);if("loading"===n||"failed"===n)return null;if(n)return n;C.set(e,"loading");let r=new Image;return r.onload=()=>{C.set(e,r),t()},r.onerror=()=>{C.set(e,"failed")},r.src=e,null}function z(e,t,n,r,i,l){e.beginPath(),e.arc(t,n,r,0,2*Math.PI),e.fillStyle="#e4e4e7",e.fill();let o=i.replace("@","").charAt(0).toUpperCase();e.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.fillStyle="#71717a",e.fillText(o,t,n+.3)}function D(e,t){let n=new Set([e]),r=[{id:e,depth:0}];for(;r.length>0;){let{id:e,depth:i}=r.shift();if(!(i>=2))for(let l of t){let t="object"==typeof l.source?l.source.id:l.source,o="object"==typeof l.target?l.target.id:l.target;t!==e||n.has(o)||(n.add(o),r.push({id:o,depth:i+1})),o!==e||n.has(t)||(n.add(t),r.push({id:t,depth:i+1}))}}return n}function L(e){let t=e.current;if(!t)return;let n=t.zoom();"number"!=typeof n||isNaN(n)||(t.zoom(1.000001*n,0),requestAnimationFrame(()=>{e.current&&e.current.zoom(n,0)}))}let M=(0,o.forwardRef)(function({nodes:e,links:t,selectedNode:r,hoveredNode:i,onNodeClick:c,onNodeHover:u,onBackgroundClick:d,onNodeRightClick:h,commentedNodeIds:p,claimedNodeAvatars:x,onAvatarHover:g,timelineActive:y,stats:b,sidebarOpen:C,collapsedEpicIds:M,onCollapseAll:E,onExpandAll:T},I){let P=(0,o.useRef)(null),q=(0,o.useRef)(null),F=(0,o.useRef)(null),R=(0,o.useRef)(0),O=(0,o.useRef)(()=>{}),[_,B]=(0,o.useState)({width:800,height:600}),U=(0,o.useRef)(!1),[H,V]=(0,o.useState)({w:160,h:120}),$=H.w,W=H.h,G=(0,o.useRef)(null),[Y,X]=(0,o.useState)(k);(0,o.useEffect)(()=>{k||n.e(29).then(n.bind(n,31029)).then(e=>{k=e.default||e,X(()=>k)})},[]);let[J,K]=(0,o.useState)("dag"),Z=(0,o.useRef)(r),Q=(0,o.useRef)(i),ee=(0,o.useRef)(new Set),et=(0,o.useRef)(p||new Map),en=(0,o.useRef)(x||new Map),er=(0,o.useRef)(()=>{});er.current=()=>L(P);let ei=(0,o.useRef)(g);ei.current=g;let el=(0,o.useRef)(null),eo=(0,o.useRef)({x:0,y:0}),ea=(0,o.useRef)(e),es=(0,o.useRef)([]),{viewNodes:ec,viewLinks:eu}=(0,o.useMemo)(()=>{if(!M||0===M.size)return{viewNodes:e,viewLinks:t};let n=new Map;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&n.set(r,t)}let r=new Set(e.map(e=>e.id));for(let t of e)if(!n.has(t.id)&&t.id.includes(".")){let e=t.id.split(".")[0];r.has(e)&&n.set(t.id,e)}let i=new Set;for(let[e,t]of n)M.has(t)&&i.add(e);if(0===i.size)return{viewNodes:e,viewLinks:t};let l=new Map;for(let e of i)l.set(e,n.get(e));let o=new Map,a=new Map,s=new Map;for(let[t,n]of l){o.set(n,(o.get(n)||0)+1);let r=e.find(e=>e.id===t);r&&(a.set(n,(a.get(n)||0)+r.blockerCount),s.set(n,(s.get(n)||0)+r.dependentCount))}let c=e.filter(e=>!i.has(e.id)).map(e=>({...e,blockerCount:e.blockerCount+(a.get(e.id)||0),dependentCount:e.dependentCount+(s.get(e.id)||0),collapsedCount:o.get(e.id)||0})),u=[],d=new Set;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,n="object"==typeof e.target?e.target.id:e.target;if("parent-child"===e.type&&i.has(n)||(t=l.get(t)||t)===(n=l.get(n)||n))continue;let r=`${t}->${n}:${e.type}`;d.has(r)||(d.add(r),u.push({source:t,target:n,type:e.type}))}return{viewNodes:c,viewLinks:u}},[e,t,M]);ea.current=ec,(0,o.useEffect)(()=>{let n=new Map;for(let e of t){let t="object"==typeof e.source?e.source.id:e.source,r="object"==typeof e.target?e.target.id:e.target;"parent-child"===e.type&&n.set(r,t)}let r=new Set(e.map(e=>e.id));for(let t of e)if(!n.has(t.id)&&t.id.includes(".")){let e=t.id.split(".")[0];r.has(e)&&n.set(t.id,e)}let i=new Map;for(let[e,t]of n){let n=i.get(t)||[];n.push(e),i.set(t,n)}let l=new Map(e.map(e=>[e.id,e])),o=[];for(let[e,t]of i){let n=l.get(e);n&&o.push({parentId:e,title:n.title||e,prefix:n.prefix,memberIds:[e,...t]})}es.current=o},[e,t]),(0,o.useEffect)(()=>{Z.current=r;let e=Q.current||r;e?ee.current=D(e.id,eu):ee.current=new Set,L(P),cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>O.current())},[r,eu]),(0,o.useEffect)(()=>{Q.current=i;let e=i||Z.current;e?ee.current=D(e.id,eu):ee.current=new Set,L(P),cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>O.current())},[i,eu]),(0,o.useEffect)(()=>{et.current=p||new Map,L(P)},[p]),(0,o.useEffect)(()=>{en.current=x||new Map,L(P)},[x]),(0,o.useEffect)(()=>{let e=q.current;if(!e)return;let t=t=>{let n;eo.current={x:t.clientX,y:t.clientY};let r=P.current,i=ei.current;if(!r||!i)return;let l=en.current;if(0===l.size){el.current&&(el.current=null,i(null));return}let o=e.getBoundingClientRect(),a=t.clientX-o.left,s=t.clientY-o.top;try{n=r.screen2GraphCoords(a,s)}catch{return}let c=Math.max(4,10/(r.zoom()||1));for(let e of ea.current){if(null==e.x||null==e.y)continue;let r=l.get(e.id);if(!r)continue;let o=w(e),a=e.x+.7*o,s=e.y+.7*o,u=n.x-a,d=n.y-s;if(u*u+d*d<=c*c){el.current!==e.id&&(el.current=e.id,i({handle:r.handle,avatar:r.avatar,claimedAt:r.claimedAt,did:r.did,x:t.clientX,y:t.clientY}));return}}el.current&&(el.current=null,i(null))};return e.addEventListener("mousemove",t),()=>e.removeEventListener("mousemove",t)},[]),(0,o.useEffect)(()=>{let e=()=>{if(q.current){let e=q.current.getBoundingClientRect();B({width:e.width,height:e.height})}};return e(),window.addEventListener("resize",e),()=>window.removeEventListener("resize",e)},[]);let ed=(0,o.useCallback)(e=>{let t=P.current;if(!t)return;let n=ec.find(t=>t.id===e.id);n&&void 0!==n.x&&void 0!==n.y&&(t.centerAt(n.x,n.y,500),t.zoom(2.5,500),c(e))},[c,ec]);(0,o.useImperativeHandle)(I,()=>({focusNode:ed}),[ed]),(0,o.useEffect)(()=>{let e=P.current;if(!e||0===ec.length)return;let t=()=>{e.d3Force("radial",null),e.d3Force("x",null),e.d3Force("y",null)},n=()=>{ec.forEach(e=>{delete e.fx,delete e.fy})};if("dag"===J)t(),e.d3Force("charge")?.strength(-80).distanceMax(300),e.d3Force("link")?.distance(50).strength(.3),e.d3Force("center")?.strength(.01),e.d3Force("collision",null);else if("radial"===J){t(),n();let r=new Map;for(let e of eu){if("parent-child"===e.type)continue;let t="object"==typeof e.target?e.target.id:e.target,n="object"==typeof e.source?e.source.id:e.source;r.has(t)||r.set(t,[]),r.get(t).push(n)}let i=new Map,l=[];ec.forEach(e=>{r.has(e.id)||(i.set(e.id,0),l.push(e.id))});let o=0;for(;o<l.length;){let e=l[o++],t=i.get(e);for(let n of eu){if("parent-child"===n.type)continue;let r="object"==typeof n.source?n.source.id:n.source,o="object"==typeof n.target?n.target.id:n.target;r!==e||i.has(o)||(i.set(o,t+1),l.push(o))}}ec.forEach(e=>{e._depth=i.get(e.id)??0}),Array.from(i.values());let a=Math.max(200,4*ec.length);e.d3Force("charge")?.strength(-300).distanceMax(800),e.d3Force("link")?.distance(150).strength(.15),e.d3Force("center")?.strength(0),e.d3Force("radial",(function(e,t,n){var r,i,l,o=m(.1);function a(e){for(var o=0,a=r.length;o<a;++o){var s=r[o],c=s.x-t||1e-6,u=s.y-n||1e-6,d=Math.sqrt(c*c+u*u),h=(l[o]-d)*i[o]*e/d;s.vx+=c*h,s.vy+=u*h}}function s(){if(r){var t,n=r.length;for(t=0,i=Array(n),l=Array(n);t<n;++t)l[t]=+e(r[t],t,r),i[t]=isNaN(l[t])?0:+o(r[t],t,r)}}return"function"!=typeof e&&(e=m(+e)),null==t&&(t=0),null==n&&(n=0),a.initialize=function(e){r=e,s()},a.strength=function(e){return arguments.length?(o="function"==typeof e?e:m(+e),s(),a):o},a.radius=function(t){return arguments.length?(e="function"==typeof t?t:m(+t),s(),a):e},a.x=function(e){return arguments.length?(t=+e,a):t},a.y=function(e){return arguments.length?(n=+e,a):n},a})(e=>(e._depth||0)*a,0,0).strength(.8)),e.d3Force("x",null),e.d3Force("y",null),e.d3Force("collision",v().radius(e=>w(e)+10).strength(.9))}else if("cluster"===J){t(),n();let r=[...new Set(ec.map(e=>e.prefix))],i=Math.max(400,5*ec.length,150*r.length),l=new Map;r.forEach((e,t)=>{let n=2*Math.PI*t/r.length-Math.PI/2;l.set(e,{x:Math.cos(n)*i,y:Math.sin(n)*i})}),e.d3Force("charge")?.strength(-200).distanceMax(600),e.d3Force("link")?.distance(100).strength(.15),e.d3Force("center")?.strength(0),e.d3Force("x",(function(e){var t,n,r,i=m(.1);function l(e){for(var i,l=0,o=t.length;l<o;++l)i=t[l],i.vx+=(r[l]-i.x)*n[l]*e}function o(){if(t){var l,o=t.length;for(l=0,n=Array(o),r=Array(o);l<o;++l)n[l]=isNaN(r[l]=+e(t[l],l,t))?0:+i(t[l],l,t)}}return"function"!=typeof e&&(e=m(null==e?0:+e)),l.initialize=function(e){t=e,o()},l.strength=function(e){return arguments.length?(i="function"==typeof e?e:m(+e),o(),l):i},l.x=function(t){return arguments.length?(e="function"==typeof t?t:m(+t),o(),l):e},l})(e=>l.get(e.prefix)?.x||0).strength(.5)),e.d3Force("y",(function(e){var t,n,r,i=m(.1);function l(e){for(var i,l=0,o=t.length;l<o;++l)i=t[l],i.vy+=(r[l]-i.y)*n[l]*e}function o(){if(t){var l,o=t.length;for(l=0,n=Array(o),r=Array(o);l<o;++l)n[l]=isNaN(r[l]=+e(t[l],l,t))?0:+i(t[l],l,t)}}return"function"!=typeof e&&(e=m(null==e?0:+e)),l.initialize=function(e){t=e,o()},l.strength=function(e){return arguments.length?(i="function"==typeof e?e:m(+e),o(),l):i},l.y=function(t){return arguments.length?(e="function"==typeof t?t:m(+t),o(),l):e},l})(e=>l.get(e.prefix)?.y||0).strength(.5)),e.d3Force("collision",v().radius(e=>w(e)+10).strength(.9))}else"spread"===J?(t(),n(),e.d3Force("charge")?.strength(-300).distanceMax(500),e.d3Force("link")?.distance(180).strength(.4),e.d3Force("center")?.strength(.02),e.d3Force("collision",v().radius(e=>w(e)+8).strength(.8))):(t(),n(),e.d3Force("charge")?.strength(-180).distanceMax(400),e.d3Force("link")?.distance(e=>((e.source?.blockerCount||0)+(e.source?.dependentCount||0)+((e.target?.blockerCount||0)+(e.target?.dependentCount||0)))/2>4?90:120).strength(.6),e.d3Force("center")?.strength(.03),e.d3Force("collision",v().radius(e=>w(e)+6).strength(.7)));e.d3ReheatSimulation();let r=setTimeout(()=>{P.current&&P.current.zoomToFit(400,60)},U.current?600:1e3);return U.current=!0,()=>clearTimeout(r)},[J,ec,eu]);let eh=(0,o.useRef)(!1);(0,o.useEffect)(()=>{if(eh.current||!Y||0===e.length)return;eh.current=!0;let t=setTimeout(()=>{K("force")},15);return()=>clearTimeout(t)},[Y,e.length]),(0,o.useEffect)(()=>{if(!y&&P.current&&e.length>0){let e=setTimeout(()=>{P.current.zoomToFit(400,60)},800);return()=>clearTimeout(e)}},[e.length,y]);let ep=(0,o.useMemo)(()=>{let e=Math.sqrt(ec.length)||1;return ec.forEach((t,n)=>{if(null==t.x&&null==t.y){let r=n*Math.PI*(3-Math.sqrt(5)),i=300*Math.sqrt(.5+n)/e;t.x=i*Math.cos(r),t.y=i*Math.sin(r)}}),{nodes:ec,links:eu}},[ec,eu]),ef=(0,o.useCallback)((e,t,n)=>{let r=w(e),i=j(e),l=f[e.prefix]||"#a1a1aa",o=Z.current?.id===e.id,s=Q.current?.id===e.id,c=ee.current,u=c.has(e.id),d=c.size>0,h=Date.now(),p=1,m=e._spawnTime;if(m){let e=h-m;if(e<500){var x;p=1+2.70158*Math.pow((x=e/500)-1,3)+1.70158*Math.pow(x-1,2)}}let g=1,y=1,b=e._removeTime;if(b){let e=h-b;if(e<400){let t=e/400;g=1-N(t),y=1-t}else g=0,y=0}let v=p*g;if(v<=.01)return;let k=r*v,C=n<=.1?0:n>=.2?1:(n-.1)/.1,D=(d&&!u?.15:"closed"===e.status?.5:1)*y*C;if(D<=.01)return;t.save(),t.globalAlpha=D,u&&d&&(t.shadowColor="#10b981",t.shadowBlur=o?20:s?16:10),n>.3&&(t.beginPath(),t.arc(e.x,e.y,k+2,0,2*Math.PI),t.strokeStyle=l,t.lineWidth=2,t.stroke()),t.beginPath(),t.arc(e.x,e.y,k,0,2*Math.PI),t.fillStyle=i,t.fill(),t.strokeStyle=o?"#10b981":s?"#3f3f46":"#e4e4e7",t.lineWidth=o?2.5:s?2:1,t.stroke(),t.shadowBlur=0;let L=e._changedAt;if(L){let n=h-L;if(n<800){let r=n/800,i=a[e.status]||"#a1a1aa";t.beginPath(),t.arc(e.x,e.y,k+4+20*r,0,2*Math.PI),t.strokeStyle=i,t.lineWidth=2*(1-r),t.globalAlpha=(1-r)*.6,t.stroke(),t.globalAlpha=D}}if(m){let n=h-m;if(n<500){let r=n/500;t.beginPath(),t.arc(e.x,e.y,k+6+8*r,0,2*Math.PI),t.strokeStyle="#10b981",t.lineWidth=3*(1-r),t.globalAlpha=(1-r)*.4,t.stroke(),t.globalAlpha=D}}if(e.priority<=1&&n>.5&&(t.font=`${Math.min(10,Math.max(4,12/n))}px sans-serif`,t.textAlign="center",t.textBaseline="bottom",t.fillText(0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25",e.x,e.y-k-2)),n>.5){let r=Math.min(7,Math.max(3,10/n));t.font=`500 ${r}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="top",t.fillStyle="#3f3f46",t.globalAlpha=.85*D;let i=e.id;n>1.5?i=A(e.title||e.id,30):n>.9&&(i=A(e.title||e.id,18)),t.fillText(i,e.x,e.y+k+3);let l=e.collapsedCount;l&&l>0&&(t.font=`400 ${Math.min(5.5,Math.max(2.5,8/n))}px 'Inter', system-ui, sans-serif`,t.fillStyle="#a1a1aa",t.fillText(`${l} task${1!==l?"s":""}`,e.x,e.y+k+3+r+1))}let M=et.current.get(e.id);if(M&&M>0&&n>.4){let r=Math.min(6,Math.max(3.5,8/n)),i=e.x+.75*k,l=e.y-.75*k,o=M>99?"99+":String(M);t.save(),t.globalAlpha=Math.min(D,.95),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.fillStyle="#ef4444",t.fill(),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.font=`600 ${Math.min(7,Math.max(3,1.3*r))}px 'Inter', system-ui, sans-serif`,t.textAlign="center",t.textBaseline="middle",t.fillStyle="#ffffff",t.fillText(o,i,l+.3),t.restore()}let E=en.current.get(e.id);if(E){let r=Math.max(4,10/n),i=e.x+.7*k,l=e.y+.7*k;if(t.save(),t.globalAlpha=1,E.avatar){let e=S(E.avatar,()=>er.current());e?(t.save(),t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.clip(),t.drawImage(e,i-r,l-r,2*r,2*r),t.restore()):z(t,i,l,r,E.handle,n)}else z(t,i,l,r,E.handle,n);t.beginPath(),t.arc(i,l,r,0,2*Math.PI),t.strokeStyle="#ffffff",t.lineWidth=Math.max(.8,1.2/n),t.stroke(),t.restore()}t.restore()},[]),em=(0,o.useCallback)((e,t,n)=>{let r=e.source,i=e.target;if(void 0===r.x||void 0===i.x)return;let l=Date.now(),o=1,a=1,s=e._spawnTime;if(s){let e=l-s;if(e<500){let t=e/500;o=N(t),a=1+(1-t)*1.5}}let c=1,u=e._removeTime;if(u){let e=l-u;if(!(e<400))return;c=1-N(e/400)}let d=o*c;if(d<=.01)return;let h=r.id||e.source,p=i.id||e.target,f="parent-child"===e.type,m=ee.current,x=m.size>0,g=x&&m.has(h)&&m.has(p),y=(f?x?g?.5:.05:.2:x?g?.8:.08:.35)*d*(n<=.1?0:n>=.2?1:(n-.1)/.1);if(y<=.01)return;t.save(),t.globalAlpha=y,f?(t.strokeStyle=g?"#71717a":"#a1a1aa",t.lineWidth=Math.max(.6,1.5/n)*a,t.setLineDash([4,3])):(t.strokeStyle=g?"#10b981":"#d4d4d8",t.lineWidth=(g?Math.max(2,2.5/n):Math.max(.8,1.2/n))*a);let b=i.x-r.x,v=i.y-r.y,k=Math.sqrt(b*b+v*v),j=(r.x+i.x)/2+.15*v,C=(r.y+i.y)/2-.15*b;if(t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(j,C,i.x,i.y),t.stroke(),f&&t.setLineDash([]),s){let e=l-s;e<300&&(t.save(),t.globalAlpha=(1-e/300)*.5,t.strokeStyle="#10b981",t.lineWidth=(f?3:4)/n,t.beginPath(),t.moveTo(r.x,r.y),t.quadraticCurveTo(j,C,i.x,i.y),t.stroke(),t.restore())}if(!f){let e=w(i);if(k<e+1){t.restore();return}let l=Math.min(8,6/n),o=1-e/k,a=r.x+o*b,s=r.y+o*v,c=Math.atan2(v,b);t.fillStyle=g?"#10b981":"#d4d4d8",t.beginPath(),t.moveTo(a,s),t.lineTo(a-l*Math.cos(c-Math.PI/7),s-l*Math.sin(c-Math.PI/7)),t.lineTo(a-l*Math.cos(c+Math.PI/7),s-l*Math.sin(c+Math.PI/7)),t.closePath(),t.fill()}t.restore()},[]),ex=(0,o.useCallback)((e,t)=>{let n=t>=.8?0:t<=.4?1:(.8-t)/.4;if(n<=.01)return;let r=es.current;if(0===r.length)return;let i=new Map;for(let e of ec)null!=e.x&&null!=e.y&&i.set(e.id,{x:e.x,y:e.y});for(let l of(e.save(),r)){let r=0,o=0,a=0;for(let e of l.memberIds){let t=i.get(e);t&&(r+=t.x,o+=t.y,a++)}if(0===a)continue;let s=r/a,c=o/a,u=0;for(let e of l.memberIds){let t=i.get(e);if(t){let e=t.x-s,n=t.y-c,r=Math.sqrt(e*e+n*n);r>u&&(u=r)}}let d=u+30,h=f[l.prefix]||"hsl(0, 0%, 65%)";e.beginPath(),e.arc(s,c,d,0,2*Math.PI),e.globalAlpha=.05*n,e.fillStyle=h,e.fill(),e.globalAlpha=.25*n,e.strokeStyle=h,e.lineWidth=1.5/t,e.setLineDash([8/t,4/t]),e.stroke(),e.setLineDash([]);let p=Math.min(24,Math.max(10,14/t)),m=Math.min(12,Math.max(5,8/t)),x=.35*p;e.font=`500 ${m}px 'Inter', system-ui, sans-serif`,e.textAlign="center",e.textBaseline="middle",e.globalAlpha=.45*n,e.fillStyle="#71717a",e.fillText(l.parentId,s,c-.5*p-x),e.font=`600 ${p}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.85*n,e.fillStyle="#18181b";let g=l.title.length>40?l.title.slice(0,39)+"…":l.title;e.fillText(g,s,c+.15*p);let y=Math.min(14,Math.max(6,9/t));e.font=`400 ${y}px 'Inter', system-ui, sans-serif`,e.globalAlpha=.5*n,e.fillStyle="#71717a",e.fillText(`${l.memberIds.length} issue${1!==l.memberIds.length?"s":""}`,s,c+.15*p+.7*p)}e.restore()},[ec,e]),eg=(0,o.useCallback)((e,t,n)=>{let r=w(e)+5;n.fillStyle=t,n.beginPath(),n.arc(e.x,e.y,r,0,2*Math.PI),n.fill()},[]),ey=(0,o.useCallback)(()=>{},[]),eb=(0,o.useCallback)(()=>{let e=F.current,t=P.current;if(!e||!t)return;let n=e.getContext("2d");if(!n)return;let r=1/0,i=-1/0,l=1/0,o=-1/0,a=!1;for(let e of ec)null!=e.x&&null!=e.y&&(a=!0,e.x<r&&(r=e.x),e.x>i&&(i=e.x),e.y<l&&(l=e.y),e.y>o&&(o=e.y));if(!a)return;let s=(i+=40)-(r-=40)||1,c=(o+=40)-(l-=40)||1,u=$-16,d=W-16,h=Math.min(u/s,d/c),p=8+(u-s*h)/2,f=8+(d-c*h)/2,m=window.devicePixelRatio||1;(e.width!==$*m||e.height!==W*m)&&(e.width=$*m,e.height=W*m,n.setTransform(m,0,0,m,0,0)),n.clearRect(0,0,$,W),n.fillStyle="rgba(250, 250, 250, 0.92)",n.beginPath(),n.roundRect(0,0,$,W,6),n.fill();let x=ee.current,g=x.size>0,y=Q.current?.id||Z.current?.id||null;for(let e of eu){let t=e.source,i=e.target;if(null==t.x||null==i.x)continue;let o=t.id||e.source,a=i.id||e.target,s=g&&x.has(o)&&x.has(a);n.globalAlpha=g?s?.5:.04:.1,n.strokeStyle=s?"#10b981":"#a1a1aa",n.lineWidth=s?1:.5;let c=p+(t.x-r)*h,u=f+(t.y-l)*h,d=p+(i.x-r)*h,m=f+(i.y-l)*h;n.beginPath(),n.moveTo(c,u),n.lineTo(d,m),n.stroke()}for(let e of(n.globalAlpha=1,ec)){if(null==e.x||null==e.y)continue;let t=p+(e.x-r)*h,i=f+(e.y-l)*h,o=e.id===y,a=x.has(e.id);g&&!a?n.globalAlpha=.1:"closed"===e.status?n.globalAlpha=.35:n.globalAlpha=.85,n.fillStyle=j(e);let s="epic"===e.issueType?3:2;o?s=5:g&&a&&(s=4),o&&(n.globalAlpha=.4,n.fillStyle="#10b981",n.beginPath(),n.arc(t,i,s+2,0,2*Math.PI),n.fill(),n.globalAlpha=1,n.fillStyle=j(e)),n.fillRect(t-s/2,i-s/2,s,s)}n.globalAlpha=1;let b=en.current;if(b.size>0)for(let e of ec){if(null==e.x||null==e.y)continue;let t=b.get(e.id);if(!t)continue;let i=p+(e.x-r)*h,o=f+(e.y-l)*h;if(n.save(),n.globalAlpha=1,t.avatar){let e=S(t.avatar,()=>er.current());e?(n.save(),n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.clip(),n.drawImage(e,i-5,o-5,10,10),n.restore()):(n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill())}else n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.fillStyle="#d4d4d8",n.fill();n.beginPath(),n.arc(i,o,5,0,2*Math.PI),n.strokeStyle="#ffffff",n.lineWidth=1,n.stroke(),n.restore()}try{let e=t.screen2GraphCoords(0,0),i=t.screen2GraphCoords(_.width,_.height),o=p+(e.x-r)*h,a=f+(e.y-l)*h,s=(i.x-e.x)*h,c=(i.y-e.y)*h,u=Math.max(0,o),d=Math.max(0,a),m=Math.min($-u,s-(u-o)),x=Math.min(W-d,c-(d-a));m>0&&x>0&&(n.fillStyle="rgba(16, 185, 129, 0.06)",n.fillRect(u,d,m,x),n.strokeStyle="rgba(16, 185, 129, 0.5)",n.lineWidth=1.5,n.strokeRect(u,d,m,x))}catch{}},[ec,eu,_,$,W,8]);O.current=eb;let ev=(0,o.useCallback)(()=>{cancelAnimationFrame(R.current),R.current=requestAnimationFrame(()=>{eb()})},[eb]);(0,o.useEffect)(()=>{if(!Y||0===e.length)return;let t=setInterval(()=>{eb()},200);return()=>clearInterval(t)},[Y,e.length,eb]),(0,o.useEffect)(()=>{let e;let t=!0;return function n(){if(!t)return;let r=Date.now();(ec.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400||!!e._changedAt&&r-e._changedAt<800)||eu.some(e=>!!e._spawnTime&&r-e._spawnTime<500||!!e._removeTime&&r-e._removeTime<400))&&L(P),e=requestAnimationFrame(n)}(),()=>{t=!1,cancelAnimationFrame(e)}},[ec,eu]);let ek=(0,o.useCallback)(e=>{let t=P.current;if(!t)return;let n=e.currentTarget.getBoundingClientRect(),r=e.clientX-n.left,i=e.clientY-n.top,l=1/0,o=-1/0,a=1/0,s=-1/0;for(let e of ec)null!=e.x&&null!=e.y&&(e.x<l&&(l=e.x),e.x>o&&(o=e.x),e.y<a&&(a=e.y),e.y>s&&(s=e.y));let c=(o+=40)-(l-=40)||1,u=(s+=40)-(a-=40)||1,d=$-16,h=W-16,p=Math.min(d/c,h/u),f=l+(r-(8+(d-c*p)/2))/p,m=a+(i-(8+(h-u*p)/2))/p;t.centerAt(f,m,300)},[ec,$,W,8]);return(0,l.jsxs)("div",{ref:q,className:"w-full h-full relative",children:[(0,l.jsxs)("div",{className:"absolute top-3 left-3 sm:top-4 sm:left-4 z-10 flex items-start gap-1.5 sm:gap-2",children:[(0,l.jsxs)("div",{className:"flex bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm overflow-hidden",children:[l.jsx("button",{onClick:()=>K("force"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"force"===J?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"4",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"3",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"12",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13",cy:"11",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"4",y1:"4",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"3",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"3",y1:"12",x2:"8",y2:"8",strokeOpacity:"0.5"}),l.jsx("line",{x1:"13",y1:"11",x2:"8",y2:"8",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Force"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>K("dag"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"dag"===J?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"2.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"4",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"2",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"6",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"12",cy:"13.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("line",{x1:"8",y1:"4",x2:"4",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"8",y1:"4",x2:"12",y2:"6.5",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"2",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"4",y1:"9.5",x2:"6",y2:"12",strokeOpacity:"0.5"}),l.jsx("line",{x1:"12",y1:"9.5",x2:"12",y2:"12",strokeOpacity:"0.5"})]}),l.jsx("span",{className:"hidden sm:inline",children:"DAG"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>K("radial"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"radial"===J?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"2",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"5",fill:"none",strokeOpacity:"0.5"}),l.jsx("circle",{cx:"8",cy:"8",r:"7.5",fill:"none",strokeOpacity:"0.3"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Radial"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>K("cluster"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"cluster"===J?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"3.5",cy:"4",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"6",cy:"6",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"7",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"11",cy:"10",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13.5",cy:"11.5",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"11",cy:"13",r:"1.5",fill:"currentColor",stroke:"none"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Cluster"})]})}),l.jsx("div",{className:"w-px bg-zinc-200"}),l.jsx("button",{onClick:()=>K("spread"),className:`px-3 py-1.5 text-xs font-medium transition-colors ${"spread"===J?"bg-emerald-500 text-white":"text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50"}`,children:(0,l.jsxs)("span",{className:"flex items-center gap-1.5",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"2",cy:"2",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"14",cy:"3",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"8",cy:"8",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"3",cy:"14",r:"1.5",fill:"currentColor",stroke:"none"}),l.jsx("circle",{cx:"13",cy:"13",r:"1.5",fill:"currentColor",stroke:"none"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Spread"})]})})]}),(E||T)&&l.jsx("button",{onClick:M&&M.size>0?T:E,className:"flex items-center gap-1.5 px-3 py-1.5 text-xs font-medium bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm text-zinc-500 hover:text-zinc-700 hover:bg-zinc-50 transition-colors",children:M&&M.size>0?(0,l.jsxs)(l.Fragment,{children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),l.jsx("span",{className:"hidden sm:inline",children:"Expand all"})]}):(0,l.jsxs)(l.Fragment,{children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 24 24",fill:"none",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})}),l.jsx("span",{className:"hidden sm:inline",children:"Collapse all"})]})})]}),!y&&(0,l.jsxs)("div",{className:"absolute bottom-4 z-10 bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 text-xs text-zinc-400 transition-[right] duration-300 ease-out",style:{right:C?"calc(360px + 1rem)":"1rem"},children:[b&&(0,l.jsxs)("div",{className:"text-zinc-500 mb-1.5",children:[l.jsx("strong",{className:"text-zinc-700",children:b.total})," issues"," \xb7 ",l.jsx("strong",{className:"text-zinc-700",children:b.edges})," deps"," \xb7 ",l.jsx("strong",{className:"text-emerald-600",children:b.prefixes.length}),1===b.prefixes.length?" project":" projects"]}),l.jsx("div",{className:"hidden sm:flex flex-wrap gap-x-3 gap-y-1 mb-1.5",children:["open","in_progress","blocked","deferred","closed"].map(e=>(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[l.jsx("span",{className:"w-2 h-2 rounded-full",style:{backgroundColor:a[e]}}),l.jsx("span",{className:"text-zinc-500",children:s[e]})]},e))}),l.jsx("div",{className:"hidden sm:flex flex-col gap-0.5 text-zinc-400",children:l.jsx("span",{children:"Size = importance \xb7 Ring = project"})}),l.jsx("span",{className:"sm:hidden",children:"Tap a node for details"})]}),(0,l.jsxs)("div",{className:"hidden sm:block absolute bottom-4 left-4 z-10",style:{width:$,height:W},children:[l.jsx("canvas",{ref:F,width:$,height:W,onClick:ek,className:"rounded-lg border border-zinc-200 shadow-sm cursor-crosshair",style:{width:$,height:W}}),l.jsx("div",{className:"absolute top-0 left-2 right-2 h-1.5 cursor-n-resize hover:bg-zinc-300/40 rounded-t-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),G.current={edge:"top",startX:e.clientX,startY:e.clientY,startW:$,startH:W};let t=e=>{if(!G.current)return;let t=G.current.startY-e.clientY,n=Math.max(80,Math.min(400,G.current.startH+t));V(e=>({...e,h:n}))},n=()=>{G.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-2 right-0 bottom-2 w-1.5 cursor-e-resize hover:bg-zinc-300/40 rounded-r-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),G.current={edge:"right",startX:e.clientX,startY:e.clientY,startW:$,startH:W};let t=e=>{if(!G.current)return;let t=e.clientX-G.current.startX,n=Math.max(100,Math.min(500,G.current.startW+t));V(e=>({...e,w:n}))},n=()=>{G.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}}),l.jsx("div",{className:"absolute top-0 right-0 w-3 h-3 cursor-ne-resize hover:bg-zinc-300/40 rounded-tr-lg transition-colors",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),G.current={edge:"top-right",startX:e.clientX,startY:e.clientY,startW:$,startH:W};let t=e=>{if(!G.current)return;let t=e.clientX-G.current.startX,n=G.current.startY-e.clientY;V({w:Math.max(100,Math.min(500,G.current.startW+t)),h:Math.max(80,Math.min(400,G.current.startH+n))})},n=()=>{G.current=null,window.removeEventListener("mousemove",t),window.removeEventListener("mouseup",n)};window.addEventListener("mousemove",t),window.addEventListener("mouseup",n)}})]}),Y?l.jsx(Y,{ref:P,graphData:ep,width:_.width,height:_.height,nodeCanvasObject:ef,nodeCanvasObjectMode:()=>"replace",nodePointerAreaPaint:eg,onRenderFramePost:ex,linkCanvasObject:em,linkCanvasObjectMode:()=>"replace",linkDirectionalParticles:e=>"parent-child"===e.type?0:2,linkDirectionalParticleSpeed:.004,linkDirectionalParticleWidth:2.5,linkDirectionalParticleColor:()=>"#10b981",dagMode:"dag"===J?"td":void 0,dagLevelDistance:60,onDagError:ey,d3AlphaDecay:.02,d3VelocityDecay:.3,cooldownTicks:300,warmupTicks:50,onNodeClick:e=>c(e),onNodeHover:e=>u(e||null,eo.current.x,eo.current.y),onNodeRightClick:(e,t)=>{t.preventDefault(),h?.(e,t)},onBackgroundClick:d,onZoom:ev,backgroundColor:"transparent"}):l.jsx("div",{className:"flex items-center justify-center h-full",children:l.jsx("div",{className:"text-zinc-400 text-sm animate-pulse-soft",children:"Loading graph engine..."})})]})});function A(e,t){return e.length<=t?e:e.slice(0,t-1)+"…"}let E=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,T=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,I={};function P(e,t){return((t||I).jsx?T:E).test(e)}let q=/[ \t\n\f\r]/g;function F(e){return""===e.replace(q,"")}class R{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function O(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new R(n,r,t)}function _(e){return e.toLowerCase()}R.prototype.normal={},R.prototype.property={},R.prototype.space=void 0;class B{constructor(e,t){this.attribute=t,this.property=e}}B.prototype.attribute="",B.prototype.booleanish=!1,B.prototype.boolean=!1,B.prototype.commaOrSpaceSeparated=!1,B.prototype.commaSeparated=!1,B.prototype.defined=!1,B.prototype.mustUseProperty=!1,B.prototype.number=!1,B.prototype.overloadedBoolean=!1,B.prototype.property="",B.prototype.spaceSeparated=!1,B.prototype.space=void 0;let U=0,H=J(),V=J(),$=J(),W=J(),G=J(),Y=J(),X=J();function J(){return 2**++U}let K=Object.keys(r);class Z extends B{constructor(e,t,n,i){let l=-1;if(super(e,t),function(e,t,n){n&&(e[t]=n)}(this,"space",i),"number"==typeof n)for(;++l<K.length;){let e=K[l];(function(e,t,n){n&&(e[t]=n)})(this,K[l],(n&r[e])===r[e])}}}function Q(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let l=new Z(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(l.mustUseProperty=!0),t[r]=l,n[_(r)]=r,n[_(l.attribute)]=r}return new R(t,n,e.space)}Z.prototype.defined=!0;let ee=Q({properties:{ariaActiveDescendant:null,ariaAtomic:V,ariaAutoComplete:null,ariaBusy:V,ariaChecked:V,ariaColCount:W,ariaColIndex:W,ariaColSpan:W,ariaControls:G,ariaCurrent:null,ariaDescribedBy:G,ariaDetails:null,ariaDisabled:V,ariaDropEffect:G,ariaErrorMessage:null,ariaExpanded:V,ariaFlowTo:G,ariaGrabbed:V,ariaHasPopup:null,ariaHidden:V,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:G,ariaLevel:W,ariaLive:null,ariaModal:V,ariaMultiLine:V,ariaMultiSelectable:V,ariaOrientation:null,ariaOwns:G,ariaPlaceholder:null,ariaPosInSet:W,ariaPressed:V,ariaReadOnly:V,ariaRelevant:null,ariaRequired:V,ariaRoleDescription:G,ariaRowCount:W,ariaRowIndex:W,ariaRowSpan:W,ariaSelected:V,ariaSetSize:W,ariaSort:null,ariaValueMax:W,ariaValueMin:W,ariaValueNow:W,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function et(e,t){return t in e?e[t]:t}function en(e,t){return et(e,t.toLowerCase())}let er=Q({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:Y,acceptCharset:G,accessKey:G,action:null,allow:null,allowFullScreen:H,allowPaymentRequest:H,allowUserMedia:H,alt:null,as:null,async:H,autoCapitalize:null,autoComplete:G,autoFocus:H,autoPlay:H,blocking:G,capture:null,charSet:null,checked:H,cite:null,className:G,cols:W,colSpan:null,content:null,contentEditable:V,controls:H,controlsList:G,coords:W|Y,crossOrigin:null,data:null,dateTime:null,decoding:null,default:H,defer:H,dir:null,dirName:null,disabled:H,download:$,draggable:V,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:H,formTarget:null,headers:G,height:W,hidden:$,high:W,href:null,hrefLang:null,htmlFor:G,httpEquiv:G,id:null,imageSizes:null,imageSrcSet:null,inert:H,inputMode:null,integrity:null,is:null,isMap:H,itemId:null,itemProp:G,itemRef:G,itemScope:H,itemType:G,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:H,low:W,manifest:null,max:null,maxLength:W,media:null,method:null,min:null,minLength:W,multiple:H,muted:H,name:null,nonce:null,noModule:H,noValidate:H,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:H,optimum:W,pattern:null,ping:G,placeholder:null,playsInline:H,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:H,referrerPolicy:null,rel:G,required:H,reversed:H,rows:W,rowSpan:W,sandbox:G,scope:null,scoped:H,seamless:H,selected:H,shadowRootClonable:H,shadowRootDelegatesFocus:H,shadowRootMode:null,shape:null,size:W,sizes:null,slot:null,span:W,spellCheck:V,src:null,srcDoc:null,srcLang:null,srcSet:null,start:W,step:null,style:null,tabIndex:W,target:null,title:null,translate:null,type:null,typeMustMatch:H,useMap:null,value:V,width:W,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:G,axis:null,background:null,bgColor:null,border:W,borderColor:null,bottomMargin:W,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:H,declare:H,event:null,face:null,frame:null,frameBorder:null,hSpace:W,leftMargin:W,link:null,longDesc:null,lowSrc:null,marginHeight:W,marginWidth:W,noResize:H,noHref:H,noShade:H,noWrap:H,object:null,profile:null,prompt:null,rev:null,rightMargin:W,rules:null,scheme:null,scrolling:V,standby:null,summary:null,text:null,topMargin:W,valueType:null,version:null,vAlign:null,vLink:null,vSpace:W,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:H,disableRemotePlayback:H,prefix:null,property:null,results:W,security:null,unselectable:null},space:"html",transform:en}),ei=Q({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:X,accentHeight:W,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:W,amplitude:W,arabicForm:null,ascent:W,attributeName:null,attributeType:null,azimuth:W,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:W,by:null,calcMode:null,capHeight:W,className:G,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:W,diffuseConstant:W,direction:null,display:null,dur:null,divisor:W,dominantBaseline:null,download:H,dx:null,dy:null,edgeMode:null,editable:null,elevation:W,enableBackground:null,end:null,event:null,exponent:W,externalResourcesRequired:null,fill:null,fillOpacity:W,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:Y,g2:Y,glyphName:Y,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:W,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:W,horizOriginX:W,horizOriginY:W,id:null,ideographic:W,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:W,k:W,k1:W,k2:W,k3:W,k4:W,kernelMatrix:X,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:W,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:W,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:W,overlineThickness:W,paintOrder:null,panose1:null,path:null,pathLength:W,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:G,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:W,pointsAtY:W,pointsAtZ:W,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:X,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:X,rev:X,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:X,requiredFeatures:X,requiredFonts:X,requiredFormats:X,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:W,specularExponent:W,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:W,strikethroughThickness:W,string:null,stroke:null,strokeDashArray:X,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:W,strokeOpacity:W,strokeWidth:null,style:null,surfaceScale:W,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:X,tabIndex:W,tableValues:null,target:null,targetX:W,targetY:W,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:X,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:W,underlineThickness:W,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:W,values:null,vAlphabetic:W,vMathematical:W,vectorEffect:null,vHanging:W,vIdeographic:W,version:null,vertAdvY:W,vertOriginX:W,vertOriginY:W,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:W,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:et}),el=Q({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),eo=Q({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:en}),ea=Q({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),es=O([ee,er,el,eo,ea],"html"),ec=O([ee,ei,el,eo,ea],"svg"),eu=/[A-Z]/g,ed=/-[a-z]/g,eh=/^data[-\w.:]+$/i;function ep(e){return"-"+e.toLowerCase()}function ef(e){return e.charAt(1).toUpperCase()}let em={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"};var ex=n(63767);let eg=eb("end"),ey=eb("start");function eb(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function ev(e){return e&&"object"==typeof e?"position"in e||"type"in e?ew(e.position):"start"in e||"end"in e?ew(e):"line"in e||"column"in e?ek(e):"":""}function ek(e){return ej(e&&e.line)+":"+ej(e&&e.column)}function ew(e){return ek(e&&e.start)+"-"+ek(e&&e.end)}function ej(e){return e&&"number"==typeof e?e:1}class eN extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let r="",i={},l=!1;if(t&&(i="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?r=e:!i.cause&&e&&(l=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?i.ruleId=n:(i.source=n.slice(0,e),i.ruleId=n.slice(e+1))}if(!i.place&&i.ancestors&&i.ancestors){let e=i.ancestors[i.ancestors.length-1];e&&(i.place=e.position)}let o=i.place&&"start"in i.place?i.place.start:i.place;this.ancestors=i.ancestors||void 0,this.cause=i.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file="",this.message=r,this.line=o?o.line:void 0,this.name=ev(i.place)||"1:1",this.place=i.place||void 0,this.reason=this.message,this.ruleId=i.ruleId||void 0,this.source=i.source||void 0,this.stack=l&&i.cause&&"string"==typeof i.cause.stack?i.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}eN.prototype.file="",eN.prototype.name="",eN.prototype.reason="",eN.prototype.message="",eN.prototype.stack="",eN.prototype.column=void 0,eN.prototype.line=void 0,eN.prototype.ancestors=void 0,eN.prototype.cause=void 0,eN.prototype.fatal=void 0,eN.prototype.place=void 0,eN.prototype.ruleId=void 0,eN.prototype.source=void 0;let eC={}.hasOwnProperty,eS=new Map,ez=/[A-Z]/g,eD=new Set(["table","tbody","thead","tfoot","tr"]),eL=new Set(["td","th"]),eM="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function eA(e,t,n){return"element"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.tagName.toLowerCase()&&"html"===r.space&&(i=ec,e.schema=i),e.ancestors.push(t);let l=eP(e,t.tagName,!1),o=function(e,t){let n,r;let i={};for(r in t.properties)if("children"!==r&&eC.call(t.properties,r)){let l=function(e,t,n){let r=function(e,t){let n=_(t),r=t,i=B;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&eh.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(ed,ef);r="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ed.test(e)){let n=e.replace(eu,ep);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}i=Z}return new i(r,t)}(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?function(e,t){let n={};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(n):n.join(" ").trim()),"style"===r.property){let t="object"==typeof n?n:function(e,t){try{return ex(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new eN("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=eM+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)eC.call(e,t)&&(n[function(e){let t=e.replace(ez,eF);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&r.space?em[r.property]||r.property:r.attribute,n]}}(e,r,t.properties[r]);if(l){let[r,o]=l;e.tableCellAlignToStyle&&"align"===r&&"string"==typeof o&&eL.has(t.tagName)?n=o:i[r]=o}}return n&&((i.style||(i.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),i}(e,t),a=eI(e,t);return eD.has(t.tagName)&&(a=a.filter(function(e){return"string"!=typeof e||!("object"==typeof e?"text"===e.type&&F(e.value):F(e))})),eE(e,o,l,t),eT(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}eq(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let r=e.schema,i=r;"svg"===t.name&&"html"===r.space&&(i=ec,e.schema=i),e.ancestors.push(t);let l=null===t.name?e.Fragment:eP(e,t.name,!0),o=function(e,t){let n={};for(let r of t.attributes)if("mdxJsxExpressionAttribute"===r.type){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let l=i.properties[0];l.type,Object.assign(n,e.evaluater.evaluateExpression(l.argument))}else eq(e,t.position)}else{let i;let l=r.name;if(r.value&&"object"==typeof r.value){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,i=e.evaluater.evaluateExpression(t.expression)}else eq(e,t.position)}else i=null===r.value||r.value;n[l]=i}return n}(e,t),a=eI(e,t);return eE(e,o,l,t),eT(o,a),e.ancestors.pop(),e.schema=r,e.create(t,l,o,n)}(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eq(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let r={};return eT(r,eI(e,t)),e.create(t,e.Fragment,r,n)}(e,t,n):"text"===t.type?t.value:void 0}function eE(e,t,n,r){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=r)}function eT(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function eI(e,t){let n=[],r=-1,i=e.passKeys?new Map:eS;for(;++r<t.children.length;){let l;let o=t.children[r];if(e.passKeys){let e="element"===o.type?o.tagName:"mdxJsxFlowElement"===o.type||"mdxJsxTextElement"===o.type?o.name:void 0;if(e){let t=i.get(e)||0;l=e+"-"+t,i.set(e,t+1)}}let a=eA(e,o,l);void 0!==a&&n.push(a)}return n}function eP(e,t,n){let r;if(n){if(t.includes(".")){let e;let n=t.split("."),i=-1;for(;++i<n.length;){let t=P(n[i])?{type:"Identifier",name:n[i]}:{type:"Literal",value:n[i]};e=e?{type:"MemberExpression",object:e,property:t,computed:!!(i&&"Literal"===t.type),optional:!1}:t}r=e}else r=P(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else r={type:"Literal",value:t};if("Literal"===r.type){let t=r.value;return eC.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);eq(e)}function eq(e,t){let n=new eN("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=eM+"#cannot-handle-mdx-estrees-without-createevaluater",n}function eF(e){return"-"+e.toLowerCase()}let eR={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"]},eO={};function e_(e,t){let n=t||eO;return eB(e,"boolean"!=typeof n.includeImageAlt||n.includeImageAlt,"boolean"!=typeof n.includeHtml||n.includeHtml)}function eB(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return eU(e.children,t,n)}return Array.isArray(e)?eU(e,t,n):""}function eU(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=eB(e[i],t,n);return r.join("")}function eH(e,t,n,r){let i;let l=e.length,o=0;if(t=t<0?-t>l?0:l+t:t>l?l:t,n=n>0?n:0,r.length<1e4)(i=Array.from(r)).unshift(t,n),e.splice(...i);else for(n&&e.splice(t,n);o<r.length;)(i=r.slice(o,o+1e4)).unshift(t,0),e.splice(...i),o+=1e4,t+=1e4}function eV(e,t){return e.length>0?(eH(e,e.length,0,t),e):t}class e${constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=null==t?Number.POSITIVE_INFINITY:t;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let r=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&eW(this.left,n),r.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),eW(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),eW(this.right,e.reverse())}setCursor(e){if(e!==this.left.length&&(!(e>this.left.length)||0!==this.right.length)&&(!(e<0)||0!==this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);eW(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);eW(this.left,t.reverse())}}}}function eW(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 eG(e){let t,n,r,i,l,o,a;let s={},c=-1,u=new e$(e);for(;++c<u.length;){for(;(c in s);)c=s[c];if(t=u.get(c),c&&"chunkFlow"===t[1].type&&"listItemPrefix"===u.get(c-1)[1].type&&((r=0)<(o=t[1]._tokenizer.events).length&&"lineEndingBlank"===o[r][1].type&&(r+=2),r<o.length&&"content"===o[r][1].type))for(;++r<o.length&&"content"!==o[r][1].type;)"chunkText"===o[r][1].type&&(o[r][1]._isInFirstContentOfListItem=!0,r++);if("enter"===t[0])t[1].contentType&&(Object.assign(s,function(e,t){let n,r;let i=e.get(t)[1],l=e.get(t)[2],o=t-1,a=[],s=i._tokenizer;!s&&(s=l.parser[i.contentType](i.start),i._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));let c=s.events,u=[],d={},h=-1,p=i,f=0,m=0,x=[0];for(;p;){for(;e.get(++o)[1]!==p;);a.push(o),!p._tokenizer&&(n=l.sliceStream(p),p.next||n.push(null),r&&s.defineSkip(p.start),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(n),p._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),r=p,p=p.next}for(p=i;++h<c.length;)"exit"===c[h][0]&&"enter"===c[h-1][0]&&c[h][1].type===c[h-1][1].type&&c[h][1].start.line!==c[h][1].end.line&&(m=h+1,x.push(m),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(s.events=[],p?(p._tokenizer=void 0,p.previous=void 0):x.pop(),h=x.length;h--;){let t=c.slice(x[h],x[h+1]),n=a.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),h=-1;++h<u.length;)d[f+u[h][0]]=f+u[h][1],f+=u[h][1]-u[h][0]-1;return d}(u,c)),c=s[c],a=!0);else if(t[1]._container){for(r=c,n=void 0;r--;)if("lineEnding"===(i=u.get(r))[1].type||"lineEndingBlank"===i[1].type)"enter"===i[0]&&(n&&(u.get(n)[1].type="lineEndingBlank"),i[1].type="lineEnding",n=r);else if("linePrefix"===i[1].type||"listItemIndent"===i[1].type);else break;n&&(t[1].end={...u.get(n)[1].start},(l=u.slice(n,c)).unshift(t),u.splice(n,c-n+1,l))}}return eH(e,0,Number.POSITIVE_INFINITY,u.slice(0)),!a}let eY={}.hasOwnProperty;function eX(e){let t={},n=-1;for(;++n<e.length;)(function(e,t){let n;for(n in t){let r;let i=(eY.call(e,n)?e[n]:void 0)||(e[n]={}),l=t[n];if(l)for(r in l){eY.call(i,r)||(i[r]=[]);let e=l[r];(function(e,t){let n=-1,r=[];for(;++n<t.length;)("after"===t[n].add?e:r).push(t[n]);eH(e,0,0,r)})(i[r],Array.isArray(e)?e:e?[e]:[])}}})(t,e[n]);return t}let eJ=e9(/[A-Za-z]/),eK=e9(/[\dA-Za-z]/),eZ=e9(/[#-'*+\--9=?A-Z^-~]/);function eQ(e){return null!==e&&(e<32||127===e)}let e0=e9(/\d/),e1=e9(/[\dA-Fa-f]/),e5=e9(/[!-/:-@[-`{-~]/);function e2(e){return null!==e&&e<-2}function e4(e){return null!==e&&(e<0||32===e)}function e3(e){return -2===e||-1===e||32===e}let e6=e9(/\p{P}|\p{S}/u),e8=e9(/\s/);function e9(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}function e7(e,t,n,r){let i=r?r-1:Number.POSITIVE_INFINITY,l=0;return function(r){return e3(r)?(e.enter(n),function r(o){return e3(o)&&l++<i?(e.consume(o),r):(e.exit(n),t(o))}(r)):t(r)}}let te={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e7(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(r){let i=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=i),t=i,function t(r){if(null===r){e.exit("chunkText"),e.exit("paragraph"),e.consume(r);return}return e2(r)?(e.consume(r),e.exit("chunkText"),n):(e.consume(r),t)}(r)}(n)});return n}},tt={tokenize:function(e){let t,n,r;let i=this,l=[],o=0;return a;function a(t){if(o<l.length){let n=l[o];return i.containerState=n[1],e.attempt(n[0].continuation,s,c)(t)}return c(t)}function s(e){if(o++,i.containerState._closeFlow){let n;i.containerState._closeFlow=void 0,t&&g();let r=i.events.length,l=r;for(;l--;)if("exit"===i.events[l][0]&&"chunkFlow"===i.events[l][1].type){n=i.events[l][1].end;break}x(o);let a=r;for(;a<i.events.length;)i.events[a][1].end={...n},a++;return eH(i.events,l+1,0,i.events.slice(r)),i.events.length=a,c(e)}return a(e)}function c(n){if(o===l.length){if(!t)return h(n);if(t.currentConstruct&&t.currentConstruct.concrete)return f(n);i.interrupt=!!(t.currentConstruct&&!t._gfmTableDynamicInterruptHack)}return i.containerState={},e.check(tn,u,d)(n)}function u(e){return t&&g(),x(o),h(e)}function d(e){return i.parser.lazy[i.now().line]=o!==l.length,r=i.now().offset,f(e)}function h(t){return i.containerState={},e.attempt(tn,p,f)(t)}function p(e){return o++,l.push([i.currentConstruct,i.containerState]),h(e)}function f(r){if(null===r){t&&g(),x(0),e.consume(r);return}return t=t||i.parser.flow(i.now()),e.enter("chunkFlow",{_tokenizer:t,contentType:"flow",previous:n}),function t(n){if(null===n){m(e.exit("chunkFlow"),!0),x(0),e.consume(n);return}return e2(n)?(e.consume(n),m(e.exit("chunkFlow")),o=0,i.interrupt=void 0,a):(e.consume(n),t)}(r)}function m(e,l){let a=i.sliceStream(e);if(l&&a.push(null),e.previous=n,n&&(n.next=e),n=e,t.defineSkip(e.start),t.write(a),i.parser.lazy[e.start.line]){let e,n,l=t.events.length;for(;l--;)if(t.events[l][1].start.offset<r&&(!t.events[l][1].end||t.events[l][1].end.offset>r))return;let a=i.events.length,s=a;for(;s--;)if("exit"===i.events[s][0]&&"chunkFlow"===i.events[s][1].type){if(e){n=i.events[s][1].end;break}e=!0}for(x(o),l=a;l<i.events.length;)i.events[l][1].end={...n},l++;eH(i.events,s+1,0,i.events.slice(a)),i.events.length=l}}function x(t){let n=l.length;for(;n-- >t;){let t=l[n];i.containerState=t[1],t[0].exit.call(i,e)}l.length=t}function g(){t.write([null]),n=void 0,t=void 0,i.containerState._closeFlow=void 0}}},tn={tokenize:function(e,t,n){return e7(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},tr={partial:!0,tokenize:function(e,t,n){return function(t){return e3(t)?e7(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||e2(e)?t(e):n(e)}}},ti={resolve:function(e){return eG(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),r(t)};function r(t){return null===t?i(t):e2(t)?e.check(tl,l,i)(t):(e.consume(t),r)}function i(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function l(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,r}}},tl={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e7(e,i,"linePrefix")};function i(i){if(null===i||e2(i))return n(i);let l=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}},to={tokenize:function(e){let t=this,n=e.attempt(tr,function(r){if(null===r){e.consume(r);return}return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,r,e7(e,e.attempt(this.parser.constructs.flow,r,e.attempt(ti,r)),"linePrefix")));return n;function r(r){if(null===r){e.consume(r);return}return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},ta={resolveAll:td()},ts=tu("string"),tc=tu("text");function tu(e){return{resolveAll:td("text"===e?th:void 0),tokenize:function(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,l,o);return l;function l(e){return s(e)?i(e):o(e)}function o(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),a}function a(e){return s(e)?(t.exit("data"),i(e)):(t.consume(e),a)}function s(e){if(null===e)return!0;let t=r[e],i=-1;if(t)for(;++i<t.length;){let e=t[i];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function td(e){return function(t,n){let r,i=-1;for(;++i<=t.length;)void 0===r?t[i]&&"data"===t[i][1].type&&(r=i,i++):t[i]&&"data"===t[i][1].type||(i!==r+2&&(t[r][1].end=t[i-1][1].end,t.splice(r+2,i-r-2),i=r+2),r=void 0);return e?e(t,n):t}}function th(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let r;let i=e[n-1][1],l=t.sliceStream(i),o=l.length,a=-1,s=0;for(;o--;){let e=l[o];if("string"==typeof e){for(a=e.length;32===e.charCodeAt(a-1);)s++,a--;if(a)break;a=-1}else if(-2===e)r=!0,s++;else if(-1===e);else{o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(s=0),s){let l={type:n===e.length||r||s<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?a:i.start._bufferIndex+a,_index:i.start._index+o,line:i.end.line,column:i.end.column-s,offset:i.end.offset-s},end:{...i.end}};i.end={...l.start},i.start.offset===i.end.offset?Object.assign(i,l):(e.splice(n,0,["enter",l,t],["exit",l,t]),n+=2)}n++}return e}let tp={name:"thematicBreak",tokenize:function(e,t,n){let r,i=0;return function(l){return e.enter("thematicBreak"),r=l,function l(o){return o===r?(e.enter("thematicBreakSequence"),function t(n){return n===r?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),e3(n)?e7(e,l,"whitespace")(n):l(n))}(o)):i>=3&&(null===o||e2(o))?(e.exit("thematicBreak"),t(o)):n(o)}(l)}}},tf={continuation:{tokenize:function(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(tr,function(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,e7(e,t,"listItemIndent",r.containerState.size+1)(n)},function(n){return r.containerState.furtherBlankLines||!e3(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(tx,t,i)(n))});function i(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,e7(e,e.attempt(tf,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let r=this,i=r.events[r.events.length-1],l=i&&"linePrefix"===i[1].type?i[2].sliceSerialize(i[1],!0).length:0,o=0;return function(t){let i=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===i?!r.containerState.marker||t===r.containerState.marker:e0(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),"listUnordered"===i)return e.enter("listItemPrefix"),42===t||45===t?e.check(tp,n,a)(t):a(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(i){return e0(i)&&++o<10?(e.consume(i),t):(!r.interrupt||o<2)&&(r.containerState.marker?i===r.containerState.marker:41===i||46===i)?(e.exit("listItemValue"),a(i)):n(i)}(t)}return n(t)};function a(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(tr,r.interrupt?n:s,e.attempt(tm,u,c))}function s(e){return r.containerState.initialBlankLine=!0,l++,u(e)}function c(t){return e3(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),u):n(t)}function u(n){return r.containerState.size=l+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},tm={partial:!0,tokenize:function(e,t,n){let r=this;return e7(e,function(e){let i=r.events[r.events.length-1];return!e3(e)&&i&&"listItemPrefixWhitespace"===i[1].type?t(e):n(e)},"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},tx={partial:!0,tokenize:function(e,t,n){let r=this;return e7(e,function(e){let i=r.events[r.events.length-1];return i&&"listItemIndent"===i[1].type&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)},"listItemIndent",r.containerState.size+1)}},tg={continuation:{tokenize:function(e,t,n){let r=this;return function(t){return e3(t)?e7(e,i,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):i(t)};function i(r){return e.attempt(tg,t,n)(r)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let r=this;return function(t){if(62===t){let n=r.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),i}return n(t)};function i(n){return e3(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}};function ty(e,t,n,r,i,l,o,a,s){let c=s||Number.POSITIVE_INFINITY,u=0;return function(t){return 60===t?(e.enter(r),e.enter(i),e.enter(l),e.consume(t),e.exit(l),d):null===t||32===t||41===t||eQ(t)?n(t):(e.enter(r),e.enter(o),e.enter(a),e.enter("chunkString",{contentType:"string"}),f(t))};function d(n){return 62===n?(e.enter(l),e.consume(n),e.exit(l),e.exit(i),e.exit(r),t):(e.enter(a),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(a),d(t)):null===t||60===t||e2(t)?n(t):(e.consume(t),92===t?p:h)}function p(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(i){return!u&&(null===i||41===i||e4(i))?(e.exit("chunkString"),e.exit(a),e.exit(o),e.exit(r),t(i)):u<c&&40===i?(e.consume(i),u++,f):41===i?(e.consume(i),u--,f):null===i||32===i||40===i||eQ(i)?n(i):(e.consume(i),92===i?m:f)}function m(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function tb(e,t,n,r,i,l){let o;let a=this,s=0;return function(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(l),c};function c(d){return s>999||null===d||91===d||93===d&&!o||94===d&&!s&&"_hiddenFootnoteSupport"in a.parser.constructs?n(d):93===d?(e.exit(l),e.enter(i),e.consume(d),e.exit(i),e.exit(r),t):e2(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),u(d))}function u(t){return null===t||91===t||93===t||e2(t)||s++>999?(e.exit("chunkString"),c(t)):(e.consume(t),o||(o=!e3(t)),92===t?d:u)}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,u):u(t)}}function tv(e,t,n,r,i,l){let o;return function(t){return 34===t||39===t||40===t?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=40===t?41:t,a):n(t)};function a(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(l),s(n))}function s(t){return t===o?(e.exit(l),a(o)):null===t?n(t):e2(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),e7(e,s,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===o||null===t||e2(t)?(e.exit("chunkString"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return t===o||92===t?(e.consume(t),c):c(t)}}function tk(e,t){let n;return function r(i){return e2(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):e3(i)?e7(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}function tw(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}let tj={partial:!0,tokenize:function(e,t,n){return function(t){return e4(t)?tk(e,r)(t):n(t)};function r(t){return tv(e,i,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function i(t){return e3(t)?e7(e,l,"whitespace")(t):l(t)}function l(e){return null===e||e2(e)?t(e):n(e)}}},tN={name:"codeIndented",tokenize:function(e,t,n){let r=this;return function(t){return e.enter("codeIndented"),e7(e,i,"linePrefix",5)(t)};function i(t){let i=r.events[r.events.length-1];return i&&"linePrefix"===i[1].type&&i[2].sliceSerialize(i[1],!0).length>=4?function t(n){return null===n?l(n):e2(n)?e.attempt(tC,t,l)(n):(e.enter("codeFlowValue"),function n(r){return null===r||e2(r)?(e.exit("codeFlowValue"),t(r)):(e.consume(r),n)}(n))}(t):n(t)}function l(n){return e.exit("codeIndented"),t(n)}}},tC={partial:!0,tokenize:function(e,t,n){let r=this;return i;function i(t){return r.parser.lazy[r.now().line]?n(t):e2(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):e7(e,l,"linePrefix",5)(t)}function l(e){let l=r.events[r.events.length-1];return l&&"linePrefix"===l[1].type&&l[2].sliceSerialize(l[1],!0).length>=4?t(e):e2(e)?i(e):n(e)}}},tS={name:"setextUnderline",resolveTo:function(e,t){let n,r,i,l=e.length;for(;l--;)if("enter"===e[l][0]){if("content"===e[l][1].type){n=l;break}"paragraph"===e[l][1].type&&(r=l)}else"content"===e[l][1].type&&e.splice(l,1),i||"definition"!==e[l][1].type||(i=l);let o={type:"setextHeading",start:{...e[n][1].start},end:{...e[e.length-1][1].end}};return e[r][1].type="setextHeadingText",i?(e.splice(r,0,["enter",o,t]),e.splice(i+1,0,["exit",e[n][1],t]),e[n][1].end={...e[i][1].end}):e[n][1]=o,e.push(["exit",o,t]),e},tokenize:function(e,t,n){let r;let i=this;return function(t){let o,a=i.events.length;for(;a--;)if("lineEnding"!==i.events[a][1].type&&"linePrefix"!==i.events[a][1].type&&"content"!==i.events[a][1].type){o="paragraph"===i.events[a][1].type;break}return!i.parser.lazy[i.now().line]&&(i.interrupt||o)?(e.enter("setextHeadingLine"),r=t,e.enter("setextHeadingLineSequence"),function t(n){return n===r?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),e3(n)?e7(e,l,"lineSuffix")(n):l(n))}(t)):n(t)};function l(r){return null===r||e2(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}}},tz=["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"],tD=["pre","script","style","textarea"],tL={partial:!0,tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(tr,t,n)}}},tM={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return e2(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i):n(t)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tA={partial:!0,tokenize:function(e,t,n){let r=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),i)};function i(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}},tE={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let r;let i=this,l={partial:!0,tokenize:function(e,t,n){let l=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(t){return e.enter("codeFencedFence"),e3(t)?e7(e,s,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):s(t)}function s(t){return t===r?(e.enter("codeFencedFenceSequence"),function t(i){return i===r?(l++,e.consume(i),t):l>=a?(e.exit("codeFencedFenceSequence"),e3(i)?e7(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(r){return null===r||e2(r)?(e.exit("codeFencedFence"),t(r)):n(r)}}},o=0,a=0;return function(t){return function(t){let l=i.events[i.events.length-1];return o=l&&"linePrefix"===l[1].type?l[2].sliceSerialize(l[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===r?(a++,e.consume(i),t):a<3?n(i):(e.exit("codeFencedFenceSequence"),e3(i)?e7(e,s,"whitespace")(i):s(i))}(t)}(t)};function s(l){return null===l||e2(l)?(e.exit("codeFencedFence"),i.interrupt?t(l):e.check(tA,u,f)(l)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e2(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),s(i)):e3(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),e7(e,c,"whitespace")(i)):96===i&&i===r?n(i):(e.consume(i),t)}(l))}function c(t){return null===t||e2(t)?s(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||e2(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),s(i)):96===i&&i===r?n(i):(e.consume(i),t)}(t))}function u(t){return e.attempt(l,f,d)(t)}function d(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return o>0&&e3(t)?e7(e,p,"linePrefix",o+1)(t):p(t)}function p(t){return null===t||e2(t)?e.check(tA,u,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||e2(n)?(e.exit("codeFlowValue"),p(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},tT={AElig:"\xc6",AMP:"&",Aacute:"\xc1",Abreve:"Ă",Acirc:"\xc2",Acy:"А",Afr:"\uD835\uDD04",Agrave:"\xc0",Alpha:"Α",Amacr:"Ā",And:"⩓",Aogon:"Ą",Aopf:"\uD835\uDD38",ApplyFunction:"",Aring:"\xc5",Ascr:"\uD835\uDC9C",Assign:"≔",Atilde:"\xc3",Auml:"\xc4",Backslash:"∖",Barv:"⫧",Barwed:"⌆",Bcy:"Б",Because:"∵",Bernoullis:"ℬ",Beta:"Β",Bfr:"\uD835\uDD05",Bopf:"\uD835\uDD39",Breve:"˘",Bscr:"ℬ",Bumpeq:"≎",CHcy:"Ч",COPY:"\xa9",Cacute:"Ć",Cap:"⋒",CapitalDifferentialD:"ⅅ",Cayleys:"ℭ",Ccaron:"Č",Ccedil:"\xc7",Ccirc:"Ĉ",Cconint:"∰",Cdot:"Ċ",Cedilla:"\xb8",CenterDot:"\xb7",Cfr:"ℭ",Chi:"Χ",CircleDot:"⊙",CircleMinus:"⊖",CirclePlus:"⊕",CircleTimes:"⊗",ClockwiseContourIntegral:"∲",CloseCurlyDoubleQuote:"”",CloseCurlyQuote:"’",Colon:"∷",Colone:"⩴",Congruent:"≡",Conint:"∯",ContourIntegral:"∮",Copf:"ℂ",Coproduct:"∐",CounterClockwiseContourIntegral:"∳",Cross:"⨯",Cscr:"\uD835\uDC9E",Cup:"⋓",CupCap:"≍",DD:"ⅅ",DDotrahd:"⤑",DJcy:"Ђ",DScy:"Ѕ",DZcy:"Џ",Dagger:"‡",Darr:"↡",Dashv:"⫤",Dcaron:"Ď",Dcy:"Д",Del:"∇",Delta:"Δ",Dfr:"\uD835\uDD07",DiacriticalAcute:"\xb4",DiacriticalDot:"˙",DiacriticalDoubleAcute:"˝",DiacriticalGrave:"`",DiacriticalTilde:"˜",Diamond:"⋄",DifferentialD:"ⅆ",Dopf:"\uD835\uDD3B",Dot:"\xa8",DotDot:"⃜",DotEqual:"≐",DoubleContourIntegral:"∯",DoubleDot:"\xa8",DoubleDownArrow:"⇓",DoubleLeftArrow:"⇐",DoubleLeftRightArrow:"⇔",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"⟸",DoubleLongLeftRightArrow:"⟺",DoubleLongRightArrow:"⟹",DoubleRightArrow:"⇒",DoubleRightTee:"⊨",DoubleUpArrow:"⇑",DoubleUpDownArrow:"⇕",DoubleVerticalBar:"∥",DownArrow:"↓",DownArrowBar:"⤓",DownArrowUpArrow:"⇵",DownBreve:"̑",DownLeftRightVector:"⥐",DownLeftTeeVector:"⥞",DownLeftVector:"↽",DownLeftVectorBar:"⥖",DownRightTeeVector:"⥟",DownRightVector:"⇁",DownRightVectorBar:"⥗",DownTee:"⊤",DownTeeArrow:"↧",Downarrow:"⇓",Dscr:"\uD835\uDC9F",Dstrok:"Đ",ENG:"Ŋ",ETH:"\xd0",Eacute:"\xc9",Ecaron:"Ě",Ecirc:"\xca",Ecy:"Э",Edot:"Ė",Efr:"\uD835\uDD08",Egrave:"\xc8",Element:"∈",Emacr:"Ē",EmptySmallSquare:"◻",EmptyVerySmallSquare:"▫",Eogon:"Ę",Eopf:"\uD835\uDD3C",Epsilon:"Ε",Equal:"⩵",EqualTilde:"≂",Equilibrium:"⇌",Escr:"ℰ",Esim:"⩳",Eta:"Η",Euml:"\xcb",Exists:"∃",ExponentialE:"ⅇ",Fcy:"Ф",Ffr:"\uD835\uDD09",FilledSmallSquare:"◼",FilledVerySmallSquare:"▪",Fopf:"\uD835\uDD3D",ForAll:"∀",Fouriertrf:"ℱ",Fscr:"ℱ",GJcy:"Ѓ",GT:">",Gamma:"Γ",Gammad:"Ϝ",Gbreve:"Ğ",Gcedil:"Ģ",Gcirc:"Ĝ",Gcy:"Г",Gdot:"Ġ",Gfr:"\uD835\uDD0A",Gg:"⋙",Gopf:"\uD835\uDD3E",GreaterEqual:"≥",GreaterEqualLess:"⋛",GreaterFullEqual:"≧",GreaterGreater:"⪢",GreaterLess:"≷",GreaterSlantEqual:"⩾",GreaterTilde:"≳",Gscr:"\uD835\uDCA2",Gt:"≫",HARDcy:"Ъ",Hacek:"ˇ",Hat:"^",Hcirc:"Ĥ",Hfr:"ℌ",HilbertSpace:"ℋ",Hopf:"ℍ",HorizontalLine:"─",Hscr:"ℋ",Hstrok:"Ħ",HumpDownHump:"≎",HumpEqual:"≏",IEcy:"Е",IJlig:"IJ",IOcy:"Ё",Iacute:"\xcd",Icirc:"\xce",Icy:"И",Idot:"İ",Ifr:"ℑ",Igrave:"\xcc",Im:"ℑ",Imacr:"Ī",ImaginaryI:"ⅈ",Implies:"⇒",Int:"∬",Integral:"∫",Intersection:"⋂",InvisibleComma:"",InvisibleTimes:"",Iogon:"Į",Iopf:"\uD835\uDD40",Iota:"Ι",Iscr:"ℐ",Itilde:"Ĩ",Iukcy:"І",Iuml:"\xcf",Jcirc:"Ĵ",Jcy:"Й",Jfr:"\uD835\uDD0D",Jopf:"\uD835\uDD41",Jscr:"\uD835\uDCA5",Jsercy:"Ј",Jukcy:"Є",KHcy:"Х",KJcy:"Ќ",Kappa:"Κ",Kcedil:"Ķ",Kcy:"К",Kfr:"\uD835\uDD0E",Kopf:"\uD835\uDD42",Kscr:"\uD835\uDCA6",LJcy:"Љ",LT:"<",Lacute:"Ĺ",Lambda:"Λ",Lang:"⟪",Laplacetrf:"ℒ",Larr:"↞",Lcaron:"Ľ",Lcedil:"Ļ",Lcy:"Л",LeftAngleBracket:"⟨",LeftArrow:"←",LeftArrowBar:"⇤",LeftArrowRightArrow:"⇆",LeftCeiling:"⌈",LeftDoubleBracket:"⟦",LeftDownTeeVector:"⥡",LeftDownVector:"⇃",LeftDownVectorBar:"⥙",LeftFloor:"⌊",LeftRightArrow:"↔",LeftRightVector:"⥎",LeftTee:"⊣",LeftTeeArrow:"↤",LeftTeeVector:"⥚",LeftTriangle:"⊲",LeftTriangleBar:"⧏",LeftTriangleEqual:"⊴",LeftUpDownVector:"⥑",LeftUpTeeVector:"⥠",LeftUpVector:"↿",LeftUpVectorBar:"⥘",LeftVector:"↼",LeftVectorBar:"⥒",Leftarrow:"⇐",Leftrightarrow:"⇔",LessEqualGreater:"⋚",LessFullEqual:"≦",LessGreater:"≶",LessLess:"⪡",LessSlantEqual:"⩽",LessTilde:"≲",Lfr:"\uD835\uDD0F",Ll:"⋘",Lleftarrow:"⇚",Lmidot:"Ŀ",LongLeftArrow:"⟵",LongLeftRightArrow:"⟷",LongRightArrow:"⟶",Longleftarrow:"⟸",Longleftrightarrow:"⟺",Longrightarrow:"⟹",Lopf:"\uD835\uDD43",LowerLeftArrow:"↙",LowerRightArrow:"↘",Lscr:"ℒ",Lsh:"↰",Lstrok:"Ł",Lt:"≪",Map:"⤅",Mcy:"М",MediumSpace:" ",Mellintrf:"ℳ",Mfr:"\uD835\uDD10",MinusPlus:"∓",Mopf:"\uD835\uDD44",Mscr:"ℳ",Mu:"Μ",NJcy:"Њ",Nacute:"Ń",Ncaron:"Ň",Ncedil:"Ņ",Ncy:"Н",NegativeMediumSpace:"",NegativeThickSpace:"",NegativeThinSpace:"",NegativeVeryThinSpace:"",NestedGreaterGreater:"≫",NestedLessLess:"≪",NewLine:"\n",Nfr:"\uD835\uDD11",NoBreak:"",NonBreakingSpace:"\xa0",Nopf:"ℕ",Not:"⫬",NotCongruent:"≢",NotCupCap:"≭",NotDoubleVerticalBar:"∦",NotElement:"∉",NotEqual:"≠",NotEqualTilde:"≂̸",NotExists:"∄",NotGreater:"≯",NotGreaterEqual:"≱",NotGreaterFullEqual:"≧̸",NotGreaterGreater:"≫̸",NotGreaterLess:"≹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"≵",NotHumpDownHump:"≎̸",NotHumpEqual:"≏̸",NotLeftTriangle:"⋪",NotLeftTriangleBar:"⧏̸",NotLeftTriangleEqual:"⋬",NotLess:"≮",NotLessEqual:"≰",NotLessGreater:"≸",NotLessLess:"≪̸",NotLessSlantEqual:"⩽̸",NotLessTilde:"≴",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",NotPrecedes:"⊀",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"⋠",NotReverseElement:"∌",NotRightTriangle:"⋫",NotRightTriangleBar:"⧐̸",NotRightTriangleEqual:"⋭",NotSquareSubset:"⊏̸",NotSquareSubsetEqual:"⋢",NotSquareSuperset:"⊐̸",NotSquareSupersetEqual:"⋣",NotSubset:"⊂⃒",NotSubsetEqual:"⊈",NotSucceeds:"⊁",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"⋡",NotSucceedsTilde:"≿̸",NotSuperset:"⊃⃒",NotSupersetEqual:"⊉",NotTilde:"≁",NotTildeEqual:"≄",NotTildeFullEqual:"≇",NotTildeTilde:"≉",NotVerticalBar:"∤",Nscr:"\uD835\uDCA9",Ntilde:"\xd1",Nu:"Ν",OElig:"Œ",Oacute:"\xd3",Ocirc:"\xd4",Ocy:"О",Odblac:"Ő",Ofr:"\uD835\uDD12",Ograve:"\xd2",Omacr:"Ō",Omega:"Ω",Omicron:"Ο",Oopf:"\uD835\uDD46",OpenCurlyDoubleQuote:"“",OpenCurlyQuote:"‘",Or:"⩔",Oscr:"\uD835\uDCAA",Oslash:"\xd8",Otilde:"\xd5",Otimes:"⨷",Ouml:"\xd6",OverBar:"‾",OverBrace:"⏞",OverBracket:"⎴",OverParenthesis:"⏜",PartialD:"∂",Pcy:"П",Pfr:"\uD835\uDD13",Phi:"Φ",Pi:"Π",PlusMinus:"\xb1",Poincareplane:"ℌ",Popf:"ℙ",Pr:"⪻",Precedes:"≺",PrecedesEqual:"⪯",PrecedesSlantEqual:"≼",PrecedesTilde:"≾",Prime:"″",Product:"∏",Proportion:"∷",Proportional:"∝",Pscr:"\uD835\uDCAB",Psi:"Ψ",QUOT:'"',Qfr:"\uD835\uDD14",Qopf:"ℚ",Qscr:"\uD835\uDCAC",RBarr:"⤐",REG:"\xae",Racute:"Ŕ",Rang:"⟫",Rarr:"↠",Rarrtl:"⤖",Rcaron:"Ř",Rcedil:"Ŗ",Rcy:"Р",Re:"ℜ",ReverseElement:"∋",ReverseEquilibrium:"⇋",ReverseUpEquilibrium:"⥯",Rfr:"ℜ",Rho:"Ρ",RightAngleBracket:"⟩",RightArrow:"→",RightArrowBar:"⇥",RightArrowLeftArrow:"⇄",RightCeiling:"⌉",RightDoubleBracket:"⟧",RightDownTeeVector:"⥝",RightDownVector:"⇂",RightDownVectorBar:"⥕",RightFloor:"⌋",RightTee:"⊢",RightTeeArrow:"↦",RightTeeVector:"⥛",RightTriangle:"⊳",RightTriangleBar:"⧐",RightTriangleEqual:"⊵",RightUpDownVector:"⥏",RightUpTeeVector:"⥜",RightUpVector:"↾",RightUpVectorBar:"⥔",RightVector:"⇀",RightVectorBar:"⥓",Rightarrow:"⇒",Ropf:"ℝ",RoundImplies:"⥰",Rrightarrow:"⇛",Rscr:"ℛ",Rsh:"↱",RuleDelayed:"⧴",SHCHcy:"Щ",SHcy:"Ш",SOFTcy:"Ь",Sacute:"Ś",Sc:"⪼",Scaron:"Š",Scedil:"Ş",Scirc:"Ŝ",Scy:"С",Sfr:"\uD835\uDD16",ShortDownArrow:"↓",ShortLeftArrow:"←",ShortRightArrow:"→",ShortUpArrow:"↑",Sigma:"Σ",SmallCircle:"∘",Sopf:"\uD835\uDD4A",Sqrt:"√",Square:"□",SquareIntersection:"⊓",SquareSubset:"⊏",SquareSubsetEqual:"⊑",SquareSuperset:"⊐",SquareSupersetEqual:"⊒",SquareUnion:"⊔",Sscr:"\uD835\uDCAE",Star:"⋆",Sub:"⋐",Subset:"⋐",SubsetEqual:"⊆",Succeeds:"≻",SucceedsEqual:"⪰",SucceedsSlantEqual:"≽",SucceedsTilde:"≿",SuchThat:"∋",Sum:"∑",Sup:"⋑",Superset:"⊃",SupersetEqual:"⊇",Supset:"⋑",THORN:"\xde",TRADE:"™",TSHcy:"Ћ",TScy:"Ц",Tab:" ",Tau:"Τ",Tcaron:"Ť",Tcedil:"Ţ",Tcy:"Т",Tfr:"\uD835\uDD17",Therefore:"∴",Theta:"Θ",ThickSpace:" ",ThinSpace:" ",Tilde:"∼",TildeEqual:"≃",TildeFullEqual:"≅",TildeTilde:"≈",Topf:"\uD835\uDD4B",TripleDot:"⃛",Tscr:"\uD835\uDCAF",Tstrok:"Ŧ",Uacute:"\xda",Uarr:"↟",Uarrocir:"⥉",Ubrcy:"Ў",Ubreve:"Ŭ",Ucirc:"\xdb",Ucy:"У",Udblac:"Ű",Ufr:"\uD835\uDD18",Ugrave:"\xd9",Umacr:"Ū",UnderBar:"_",UnderBrace:"⏟",UnderBracket:"⎵",UnderParenthesis:"⏝",Union:"⋃",UnionPlus:"⊎",Uogon:"Ų",Uopf:"\uD835\uDD4C",UpArrow:"↑",UpArrowBar:"⤒",UpArrowDownArrow:"⇅",UpDownArrow:"↕",UpEquilibrium:"⥮",UpTee:"⊥",UpTeeArrow:"↥",Uparrow:"⇑",Updownarrow:"⇕",UpperLeftArrow:"↖",UpperRightArrow:"↗",Upsi:"ϒ",Upsilon:"Υ",Uring:"Ů",Uscr:"\uD835\uDCB0",Utilde:"Ũ",Uuml:"\xdc",VDash:"⊫",Vbar:"⫫",Vcy:"В",Vdash:"⊩",Vdashl:"⫦",Vee:"⋁",Verbar:"‖",Vert:"‖",VerticalBar:"∣",VerticalLine:"|",VerticalSeparator:"❘",VerticalTilde:"≀",VeryThinSpace:" ",Vfr:"\uD835\uDD19",Vopf:"\uD835\uDD4D",Vscr:"\uD835\uDCB1",Vvdash:"⊪",Wcirc:"Ŵ",Wedge:"⋀",Wfr:"\uD835\uDD1A",Wopf:"\uD835\uDD4E",Wscr:"\uD835\uDCB2",Xfr:"\uD835\uDD1B",Xi:"Ξ",Xopf:"\uD835\uDD4F",Xscr:"\uD835\uDCB3",YAcy:"Я",YIcy:"Ї",YUcy:"Ю",Yacute:"\xdd",Ycirc:"Ŷ",Ycy:"Ы",Yfr:"\uD835\uDD1C",Yopf:"\uD835\uDD50",Yscr:"\uD835\uDCB4",Yuml:"Ÿ",ZHcy:"Ж",Zacute:"Ź",Zcaron:"Ž",Zcy:"З",Zdot:"Ż",ZeroWidthSpace:"",Zeta:"Ζ",Zfr:"ℨ",Zopf:"ℤ",Zscr:"\uD835\uDCB5",aacute:"\xe1",abreve:"ă",ac:"∾",acE:"∾̳",acd:"∿",acirc:"\xe2",acute:"\xb4",acy:"а",aelig:"\xe6",af:"",afr:"\uD835\uDD1E",agrave:"\xe0",alefsym:"ℵ",aleph:"ℵ",alpha:"α",amacr:"ā",amalg:"⨿",amp:"&",and:"∧",andand:"⩕",andd:"⩜",andslope:"⩘",andv:"⩚",ang:"∠",ange:"⦤",angle:"∠",angmsd:"∡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"⦭",angmsdag:"⦮",angmsdah:"⦯",angrt:"∟",angrtvb:"⊾",angrtvbd:"⦝",angsph:"∢",angst:"\xc5",angzarr:"⍼",aogon:"ą",aopf:"\uD835\uDD52",ap:"≈",apE:"⩰",apacir:"⩯",ape:"≊",apid:"≋",apos:"'",approx:"≈",approxeq:"≊",aring:"\xe5",ascr:"\uD835\uDCB6",ast:"*",asymp:"≈",asympeq:"≍",atilde:"\xe3",auml:"\xe4",awconint:"∳",awint:"⨑",bNot:"⫭",backcong:"≌",backepsilon:"϶",backprime:"‵",backsim:"∽",backsimeq:"⋍",barvee:"⊽",barwed:"⌅",barwedge:"⌅",bbrk:"⎵",bbrktbrk:"⎶",bcong:"≌",bcy:"б",bdquo:"„",becaus:"∵",because:"∵",bemptyv:"⦰",bepsi:"϶",bernou:"ℬ",beta:"β",beth:"ℶ",between:"≬",bfr:"\uD835\uDD1F",bigcap:"⋂",bigcirc:"◯",bigcup:"⋃",bigodot:"⨀",bigoplus:"⨁",bigotimes:"⨂",bigsqcup:"⨆",bigstar:"★",bigtriangledown:"▽",bigtriangleup:"△",biguplus:"⨄",bigvee:"⋁",bigwedge:"⋀",bkarow:"⤍",blacklozenge:"⧫",blacksquare:"▪",blacktriangle:"▴",blacktriangledown:"▾",blacktriangleleft:"◂",blacktriangleright:"▸",blank:"␣",blk12:"▒",blk14:"░",blk34:"▓",block:"█",bne:"=⃥",bnequiv:"≡⃥",bnot:"⌐",bopf:"\uD835\uDD53",bot:"⊥",bottom:"⊥",bowtie:"⋈",boxDL:"╗",boxDR:"╔",boxDl:"╖",boxDr:"╓",boxH:"═",boxHD:"╦",boxHU:"╩",boxHd:"╤",boxHu:"╧",boxUL:"╝",boxUR:"╚",boxUl:"╜",boxUr:"╙",boxV:"║",boxVH:"╬",boxVL:"╣",boxVR:"╠",boxVh:"╫",boxVl:"╢",boxVr:"╟",boxbox:"⧉",boxdL:"╕",boxdR:"╒",boxdl:"┐",boxdr:"┌",boxh:"─",boxhD:"╥",boxhU:"╨",boxhd:"┬",boxhu:"┴",boxminus:"⊟",boxplus:"⊞",boxtimes:"⊠",boxuL:"╛",boxuR:"╘",boxul:"┘",boxur:"└",boxv:"│",boxvH:"╪",boxvL:"╡",boxvR:"╞",boxvh:"┼",boxvl:"┤",boxvr:"├",bprime:"‵",breve:"˘",brvbar:"\xa6",bscr:"\uD835\uDCB7",bsemi:"⁏",bsim:"∽",bsime:"⋍",bsol:"\\",bsolb:"⧅",bsolhsub:"⟈",bull:"•",bullet:"•",bump:"≎",bumpE:"⪮",bumpe:"≏",bumpeq:"≏",cacute:"ć",cap:"∩",capand:"⩄",capbrcup:"⩉",capcap:"⩋",capcup:"⩇",capdot:"⩀",caps:"∩︀",caret:"⁁",caron:"ˇ",ccaps:"⩍",ccaron:"č",ccedil:"\xe7",ccirc:"ĉ",ccups:"⩌",ccupssm:"⩐",cdot:"ċ",cedil:"\xb8",cemptyv:"⦲",cent:"\xa2",centerdot:"\xb7",cfr:"\uD835\uDD20",chcy:"ч",check:"✓",checkmark:"✓",chi:"χ",cir:"○",cirE:"⧃",circ:"ˆ",circeq:"≗",circlearrowleft:"↺",circlearrowright:"↻",circledR:"\xae",circledS:"Ⓢ",circledast:"⊛",circledcirc:"⊚",circleddash:"⊝",cire:"≗",cirfnint:"⨐",cirmid:"⫯",cirscir:"⧂",clubs:"♣",clubsuit:"♣",colon:":",colone:"≔",coloneq:"≔",comma:",",commat:"@",comp:"∁",compfn:"∘",complement:"∁",complexes:"ℂ",cong:"≅",congdot:"⩭",conint:"∮",copf:"\uD835\uDD54",coprod:"∐",copy:"\xa9",copysr:"℗",crarr:"↵",cross:"✗",cscr:"\uD835\uDCB8",csub:"⫏",csube:"⫑",csup:"⫐",csupe:"⫒",ctdot:"⋯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"⋞",cuesc:"⋟",cularr:"↶",cularrp:"⤽",cup:"∪",cupbrcap:"⩈",cupcap:"⩆",cupcup:"⩊",cupdot:"⊍",cupor:"⩅",cups:"∪︀",curarr:"↷",curarrm:"⤼",curlyeqprec:"⋞",curlyeqsucc:"⋟",curlyvee:"⋎",curlywedge:"⋏",curren:"\xa4",curvearrowleft:"↶",curvearrowright:"↷",cuvee:"⋎",cuwed:"⋏",cwconint:"∲",cwint:"∱",cylcty:"⌭",dArr:"⇓",dHar:"⥥",dagger:"†",daleth:"ℸ",darr:"↓",dash:"‐",dashv:"⊣",dbkarow:"⤏",dblac:"˝",dcaron:"ď",dcy:"д",dd:"ⅆ",ddagger:"‡",ddarr:"⇊",ddotseq:"⩷",deg:"\xb0",delta:"δ",demptyv:"⦱",dfisht:"⥿",dfr:"\uD835\uDD21",dharl:"⇃",dharr:"⇂",diam:"⋄",diamond:"⋄",diamondsuit:"♦",diams:"♦",die:"\xa8",digamma:"ϝ",disin:"⋲",div:"\xf7",divide:"\xf7",divideontimes:"⋇",divonx:"⋇",djcy:"ђ",dlcorn:"⌞",dlcrop:"⌍",dollar:"$",dopf:"\uD835\uDD55",dot:"˙",doteq:"≐",doteqdot:"≑",dotminus:"∸",dotplus:"∔",dotsquare:"⊡",doublebarwedge:"⌆",downarrow:"↓",downdownarrows:"⇊",downharpoonleft:"⇃",downharpoonright:"⇂",drbkarow:"⤐",drcorn:"⌟",drcrop:"⌌",dscr:"\uD835\uDCB9",dscy:"ѕ",dsol:"⧶",dstrok:"đ",dtdot:"⋱",dtri:"▿",dtrif:"▾",duarr:"⇵",duhar:"⥯",dwangle:"⦦",dzcy:"џ",dzigrarr:"⟿",eDDot:"⩷",eDot:"≑",eacute:"\xe9",easter:"⩮",ecaron:"ě",ecir:"≖",ecirc:"\xea",ecolon:"≕",ecy:"э",edot:"ė",ee:"ⅇ",efDot:"≒",efr:"\uD835\uDD22",eg:"⪚",egrave:"\xe8",egs:"⪖",egsdot:"⪘",el:"⪙",elinters:"⏧",ell:"ℓ",els:"⪕",elsdot:"⪗",emacr:"ē",empty:"∅",emptyset:"∅",emptyv:"∅",emsp13:" ",emsp14:" ",emsp:" ",eng:"ŋ",ensp:" ",eogon:"ę",eopf:"\uD835\uDD56",epar:"⋕",eparsl:"⧣",eplus:"⩱",epsi:"ε",epsilon:"ε",epsiv:"ϵ",eqcirc:"≖",eqcolon:"≕",eqsim:"≂",eqslantgtr:"⪖",eqslantless:"⪕",equals:"=",equest:"≟",equiv:"≡",equivDD:"⩸",eqvparsl:"⧥",erDot:"≓",erarr:"⥱",escr:"ℯ",esdot:"≐",esim:"≂",eta:"η",eth:"\xf0",euml:"\xeb",euro:"€",excl:"!",exist:"∃",expectation:"ℰ",exponentiale:"ⅇ",fallingdotseq:"≒",fcy:"ф",female:"♀",ffilig:"ffi",fflig:"ff",ffllig:"ffl",ffr:"\uD835\uDD23",filig:"fi",fjlig:"fj",flat:"♭",fllig:"fl",fltns:"▱",fnof:"ƒ",fopf:"\uD835\uDD57",forall:"∀",fork:"⋔",forkv:"⫙",fpartint:"⨍",frac12:"\xbd",frac13:"⅓",frac14:"\xbc",frac15:"⅕",frac16:"⅙",frac18:"⅛",frac23:"⅔",frac25:"⅖",frac34:"\xbe",frac35:"⅗",frac38:"⅜",frac45:"⅘",frac56:"⅚",frac58:"⅝",frac78:"⅞",frasl:"⁄",frown:"⌢",fscr:"\uD835\uDCBB",gE:"≧",gEl:"⪌",gacute:"ǵ",gamma:"γ",gammad:"ϝ",gap:"⪆",gbreve:"ğ",gcirc:"ĝ",gcy:"г",gdot:"ġ",ge:"≥",gel:"⋛",geq:"≥",geqq:"≧",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"⪀",gesdoto:"⪂",gesdotol:"⪄",gesl:"⋛︀",gesles:"⪔",gfr:"\uD835\uDD24",gg:"≫",ggg:"⋙",gimel:"ℷ",gjcy:"ѓ",gl:"≷",glE:"⪒",gla:"⪥",glj:"⪤",gnE:"≩",gnap:"⪊",gnapprox:"⪊",gne:"⪈",gneq:"⪈",gneqq:"≩",gnsim:"⋧",gopf:"\uD835\uDD58",grave:"`",gscr:"ℊ",gsim:"≳",gsime:"⪎",gsiml:"⪐",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"⋗",gtlPar:"⦕",gtquest:"⩼",gtrapprox:"⪆",gtrarr:"⥸",gtrdot:"⋗",gtreqless:"⋛",gtreqqless:"⪌",gtrless:"≷",gtrsim:"≳",gvertneqq:"≩︀",gvnE:"≩︀",hArr:"⇔",hairsp:" ",half:"\xbd",hamilt:"ℋ",hardcy:"ъ",harr:"↔",harrcir:"⥈",harrw:"↭",hbar:"ℏ",hcirc:"ĥ",hearts:"♥",heartsuit:"♥",hellip:"…",hercon:"⊹",hfr:"\uD835\uDD25",hksearow:"⤥",hkswarow:"⤦",hoarr:"⇿",homtht:"∻",hookleftarrow:"↩",hookrightarrow:"↪",hopf:"\uD835\uDD59",horbar:"―",hscr:"\uD835\uDCBD",hslash:"ℏ",hstrok:"ħ",hybull:"⁃",hyphen:"‐",iacute:"\xed",ic:"",icirc:"\xee",icy:"и",iecy:"е",iexcl:"\xa1",iff:"⇔",ifr:"\uD835\uDD26",igrave:"\xec",ii:"ⅈ",iiiint:"⨌",iiint:"∭",iinfin:"⧜",iiota:"℩",ijlig:"ij",imacr:"ī",image:"ℑ",imagline:"ℐ",imagpart:"ℑ",imath:"ı",imof:"⊷",imped:"Ƶ",in:"∈",incare:"℅",infin:"∞",infintie:"⧝",inodot:"ı",int:"∫",intcal:"⊺",integers:"ℤ",intercal:"⊺",intlarhk:"⨗",intprod:"⨼",iocy:"ё",iogon:"į",iopf:"\uD835\uDD5A",iota:"ι",iprod:"⨼",iquest:"\xbf",iscr:"\uD835\uDCBE",isin:"∈",isinE:"⋹",isindot:"⋵",isins:"⋴",isinsv:"⋳",isinv:"∈",it:"",itilde:"ĩ",iukcy:"і",iuml:"\xef",jcirc:"ĵ",jcy:"й",jfr:"\uD835\uDD27",jmath:"ȷ",jopf:"\uD835\uDD5B",jscr:"\uD835\uDCBF",jsercy:"ј",jukcy:"є",kappa:"κ",kappav:"ϰ",kcedil:"ķ",kcy:"к",kfr:"\uD835\uDD28",kgreen:"ĸ",khcy:"х",kjcy:"ќ",kopf:"\uD835\uDD5C",kscr:"\uD835\uDCC0",lAarr:"⇚",lArr:"⇐",lAtail:"⤛",lBarr:"⤎",lE:"≦",lEg:"⪋",lHar:"⥢",lacute:"ĺ",laemptyv:"⦴",lagran:"ℒ",lambda:"λ",lang:"⟨",langd:"⦑",langle:"⟨",lap:"⪅",laquo:"\xab",larr:"←",larrb:"⇤",larrbfs:"⤟",larrfs:"⤝",larrhk:"↩",larrlp:"↫",larrpl:"⤹",larrsim:"⥳",larrtl:"↢",lat:"⪫",latail:"⤙",late:"⪭",lates:"⪭︀",lbarr:"⤌",lbbrk:"❲",lbrace:"{",lbrack:"[",lbrke:"⦋",lbrksld:"⦏",lbrkslu:"⦍",lcaron:"ľ",lcedil:"ļ",lceil:"⌈",lcub:"{",lcy:"л",ldca:"⤶",ldquo:"“",ldquor:"„",ldrdhar:"⥧",ldrushar:"⥋",ldsh:"↲",le:"≤",leftarrow:"←",leftarrowtail:"↢",leftharpoondown:"↽",leftharpoonup:"↼",leftleftarrows:"⇇",leftrightarrow:"↔",leftrightarrows:"⇆",leftrightharpoons:"⇋",leftrightsquigarrow:"↭",leftthreetimes:"⋋",leg:"⋚",leq:"≤",leqq:"≦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"⩿",lesdoto:"⪁",lesdotor:"⪃",lesg:"⋚︀",lesges:"⪓",lessapprox:"⪅",lessdot:"⋖",lesseqgtr:"⋚",lesseqqgtr:"⪋",lessgtr:"≶",lesssim:"≲",lfisht:"⥼",lfloor:"⌊",lfr:"\uD835\uDD29",lg:"≶",lgE:"⪑",lhard:"↽",lharu:"↼",lharul:"⥪",lhblk:"▄",ljcy:"љ",ll:"≪",llarr:"⇇",llcorner:"⌞",llhard:"⥫",lltri:"◺",lmidot:"ŀ",lmoust:"⎰",lmoustache:"⎰",lnE:"≨",lnap:"⪉",lnapprox:"⪉",lne:"⪇",lneq:"⪇",lneqq:"≨",lnsim:"⋦",loang:"⟬",loarr:"⇽",lobrk:"⟦",longleftarrow:"⟵",longleftrightarrow:"⟷",longmapsto:"⟼",longrightarrow:"⟶",looparrowleft:"↫",looparrowright:"↬",lopar:"⦅",lopf:"\uD835\uDD5D",loplus:"⨭",lotimes:"⨴",lowast:"∗",lowbar:"_",loz:"◊",lozenge:"◊",lozf:"⧫",lpar:"(",lparlt:"⦓",lrarr:"⇆",lrcorner:"⌟",lrhar:"⇋",lrhard:"⥭",lrm:"",lrtri:"⊿",lsaquo:"‹",lscr:"\uD835\uDCC1",lsh:"↰",lsim:"≲",lsime:"⪍",lsimg:"⪏",lsqb:"[",lsquo:"‘",lsquor:"‚",lstrok:"ł",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"⋖",lthree:"⋋",ltimes:"⋉",ltlarr:"⥶",ltquest:"⩻",ltrPar:"⦖",ltri:"◃",ltrie:"⊴",ltrif:"◂",lurdshar:"⥊",luruhar:"⥦",lvertneqq:"≨︀",lvnE:"≨︀",mDDot:"∺",macr:"\xaf",male:"♂",malt:"✠",maltese:"✠",map:"↦",mapsto:"↦",mapstodown:"↧",mapstoleft:"↤",mapstoup:"↥",marker:"▮",mcomma:"⨩",mcy:"м",mdash:"—",measuredangle:"∡",mfr:"\uD835\uDD2A",mho:"℧",micro:"\xb5",mid:"∣",midast:"*",midcir:"⫰",middot:"\xb7",minus:"−",minusb:"⊟",minusd:"∸",minusdu:"⨪",mlcp:"⫛",mldr:"…",mnplus:"∓",models:"⊧",mopf:"\uD835\uDD5E",mp:"∓",mscr:"\uD835\uDCC2",mstpos:"∾",mu:"μ",multimap:"⊸",mumap:"⊸",nGg:"⋙̸",nGt:"≫⃒",nGtv:"≫̸",nLeftarrow:"⇍",nLeftrightarrow:"⇎",nLl:"⋘̸",nLt:"≪⃒",nLtv:"≪̸",nRightarrow:"⇏",nVDash:"⊯",nVdash:"⊮",nabla:"∇",nacute:"ń",nang:"∠⃒",nap:"≉",napE:"⩰̸",napid:"≋̸",napos:"ʼn",napprox:"≉",natur:"♮",natural:"♮",naturals:"ℕ",nbsp:"\xa0",nbump:"≎̸",nbumpe:"≏̸",ncap:"⩃",ncaron:"ň",ncedil:"ņ",ncong:"≇",ncongdot:"⩭̸",ncup:"⩂",ncy:"н",ndash:"–",ne:"≠",neArr:"⇗",nearhk:"⤤",nearr:"↗",nearrow:"↗",nedot:"≐̸",nequiv:"≢",nesear:"⤨",nesim:"≂̸",nexist:"∄",nexists:"∄",nfr:"\uD835\uDD2B",ngE:"≧̸",nge:"≱",ngeq:"≱",ngeqq:"≧̸",ngeqslant:"⩾̸",nges:"⩾̸",ngsim:"≵",ngt:"≯",ngtr:"≯",nhArr:"⇎",nharr:"↮",nhpar:"⫲",ni:"∋",nis:"⋼",nisd:"⋺",niv:"∋",njcy:"њ",nlArr:"⇍",nlE:"≦̸",nlarr:"↚",nldr:"‥",nle:"≰",nleftarrow:"↚",nleftrightarrow:"↮",nleq:"≰",nleqq:"≦̸",nleqslant:"⩽̸",nles:"⩽̸",nless:"≮",nlsim:"≴",nlt:"≮",nltri:"⋪",nltrie:"⋬",nmid:"∤",nopf:"\uD835\uDD5F",not:"\xac",notin:"∉",notinE:"⋹̸",notindot:"⋵̸",notinva:"∉",notinvb:"⋷",notinvc:"⋶",notni:"∌",notniva:"∌",notnivb:"⋾",notnivc:"⋽",npar:"∦",nparallel:"∦",nparsl:"⫽⃥",npart:"∂̸",npolint:"⨔",npr:"⊀",nprcue:"⋠",npre:"⪯̸",nprec:"⊀",npreceq:"⪯̸",nrArr:"⇏",nrarr:"↛",nrarrc:"⤳̸",nrarrw:"↝̸",nrightarrow:"↛",nrtri:"⋫",nrtrie:"⋭",nsc:"⊁",nsccue:"⋡",nsce:"⪰̸",nscr:"\uD835\uDCC3",nshortmid:"∤",nshortparallel:"∦",nsim:"≁",nsime:"≄",nsimeq:"≄",nsmid:"∤",nspar:"∦",nsqsube:"⋢",nsqsupe:"⋣",nsub:"⊄",nsubE:"⫅̸",nsube:"⊈",nsubset:"⊂⃒",nsubseteq:"⊈",nsubseteqq:"⫅̸",nsucc:"⊁",nsucceq:"⪰̸",nsup:"⊅",nsupE:"⫆̸",nsupe:"⊉",nsupset:"⊃⃒",nsupseteq:"⊉",nsupseteqq:"⫆̸",ntgl:"≹",ntilde:"\xf1",ntlg:"≸",ntriangleleft:"⋪",ntrianglelefteq:"⋬",ntriangleright:"⋫",ntrianglerighteq:"⋭",nu:"ν",num:"#",numero:"№",numsp:" ",nvDash:"⊭",nvHarr:"⤄",nvap:"≍⃒",nvdash:"⊬",nvge:"≥⃒",nvgt:">⃒",nvinfin:"⧞",nvlArr:"⤂",nvle:"≤⃒",nvlt:"<⃒",nvltrie:"⊴⃒",nvrArr:"⤃",nvrtrie:"⊵⃒",nvsim:"∼⃒",nwArr:"⇖",nwarhk:"⤣",nwarr:"↖",nwarrow:"↖",nwnear:"⤧",oS:"Ⓢ",oacute:"\xf3",oast:"⊛",ocir:"⊚",ocirc:"\xf4",ocy:"о",odash:"⊝",odblac:"ő",odiv:"⨸",odot:"⊙",odsold:"⦼",oelig:"œ",ofcir:"⦿",ofr:"\uD835\uDD2C",ogon:"˛",ograve:"\xf2",ogt:"⧁",ohbar:"⦵",ohm:"Ω",oint:"∮",olarr:"↺",olcir:"⦾",olcross:"⦻",oline:"‾",olt:"⧀",omacr:"ō",omega:"ω",omicron:"ο",omid:"⦶",ominus:"⊖",oopf:"\uD835\uDD60",opar:"⦷",operp:"⦹",oplus:"⊕",or:"∨",orarr:"↻",ord:"⩝",order:"ℴ",orderof:"ℴ",ordf:"\xaa",ordm:"\xba",origof:"⊶",oror:"⩖",orslope:"⩗",orv:"⩛",oscr:"ℴ",oslash:"\xf8",osol:"⊘",otilde:"\xf5",otimes:"⊗",otimesas:"⨶",ouml:"\xf6",ovbar:"⌽",par:"∥",para:"\xb6",parallel:"∥",parsim:"⫳",parsl:"⫽",part:"∂",pcy:"п",percnt:"%",period:".",permil:"‰",perp:"⊥",pertenk:"‱",pfr:"\uD835\uDD2D",phi:"φ",phiv:"ϕ",phmmat:"ℳ",phone:"☎",pi:"π",pitchfork:"⋔",piv:"ϖ",planck:"ℏ",planckh:"ℎ",plankv:"ℏ",plus:"+",plusacir:"⨣",plusb:"⊞",pluscir:"⨢",plusdo:"∔",plusdu:"⨥",pluse:"⩲",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",pointint:"⨕",popf:"\uD835\uDD61",pound:"\xa3",pr:"≺",prE:"⪳",prap:"⪷",prcue:"≼",pre:"⪯",prec:"≺",precapprox:"⪷",preccurlyeq:"≼",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"⋨",precsim:"≾",prime:"′",primes:"ℙ",prnE:"⪵",prnap:"⪹",prnsim:"⋨",prod:"∏",profalar:"⌮",profline:"⌒",profsurf:"⌓",prop:"∝",propto:"∝",prsim:"≾",prurel:"⊰",pscr:"\uD835\uDCC5",psi:"ψ",puncsp:" ",qfr:"\uD835\uDD2E",qint:"⨌",qopf:"\uD835\uDD62",qprime:"⁗",qscr:"\uD835\uDCC6",quaternions:"ℍ",quatint:"⨖",quest:"?",questeq:"≟",quot:'"',rAarr:"⇛",rArr:"⇒",rAtail:"⤜",rBarr:"⤏",rHar:"⥤",race:"∽̱",racute:"ŕ",radic:"√",raemptyv:"⦳",rang:"⟩",rangd:"⦒",range:"⦥",rangle:"⟩",raquo:"\xbb",rarr:"→",rarrap:"⥵",rarrb:"⇥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"⤞",rarrhk:"↪",rarrlp:"↬",rarrpl:"⥅",rarrsim:"⥴",rarrtl:"↣",rarrw:"↝",ratail:"⤚",ratio:"∶",rationals:"ℚ",rbarr:"⤍",rbbrk:"❳",rbrace:"}",rbrack:"]",rbrke:"⦌",rbrksld:"⦎",rbrkslu:"⦐",rcaron:"ř",rcedil:"ŗ",rceil:"⌉",rcub:"}",rcy:"р",rdca:"⤷",rdldhar:"⥩",rdquo:"”",rdquor:"”",rdsh:"↳",real:"ℜ",realine:"ℛ",realpart:"ℜ",reals:"ℝ",rect:"▭",reg:"\xae",rfisht:"⥽",rfloor:"⌋",rfr:"\uD835\uDD2F",rhard:"⇁",rharu:"⇀",rharul:"⥬",rho:"ρ",rhov:"ϱ",rightarrow:"→",rightarrowtail:"↣",rightharpoondown:"⇁",rightharpoonup:"⇀",rightleftarrows:"⇄",rightleftharpoons:"⇌",rightrightarrows:"⇉",rightsquigarrow:"↝",rightthreetimes:"⋌",ring:"˚",risingdotseq:"≓",rlarr:"⇄",rlhar:"⇌",rlm:"",rmoust:"⎱",rmoustache:"⎱",rnmid:"⫮",roang:"⟭",roarr:"⇾",robrk:"⟧",ropar:"⦆",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",rpar:")",rpargt:"⦔",rppolint:"⨒",rrarr:"⇉",rsaquo:"›",rscr:"\uD835\uDCC7",rsh:"↱",rsqb:"]",rsquo:"’",rsquor:"’",rthree:"⋌",rtimes:"⋊",rtri:"▹",rtrie:"⊵",rtrif:"▸",rtriltri:"⧎",ruluhar:"⥨",rx:"℞",sacute:"ś",sbquo:"‚",sc:"≻",scE:"⪴",scap:"⪸",scaron:"š",sccue:"≽",sce:"⪰",scedil:"ş",scirc:"ŝ",scnE:"⪶",scnap:"⪺",scnsim:"⋩",scpolint:"⨓",scsim:"≿",scy:"с",sdot:"⋅",sdotb:"⊡",sdote:"⩦",seArr:"⇘",searhk:"⤥",searr:"↘",searrow:"↘",sect:"\xa7",semi:";",seswar:"⤩",setminus:"∖",setmn:"∖",sext:"✶",sfr:"\uD835\uDD30",sfrown:"⌢",sharp:"♯",shchcy:"щ",shcy:"ш",shortmid:"∣",shortparallel:"∥",shy:"\xad",sigma:"σ",sigmaf:"ς",sigmav:"ς",sim:"∼",simdot:"⩪",sime:"≃",simeq:"≃",simg:"⪞",simgE:"⪠",siml:"⪝",simlE:"⪟",simne:"≆",simplus:"⨤",simrarr:"⥲",slarr:"←",smallsetminus:"∖",smashp:"⨳",smeparsl:"⧤",smid:"∣",smile:"⌣",smt:"⪪",smte:"⪬",smtes:"⪬︀",softcy:"ь",sol:"/",solb:"⧄",solbar:"⌿",sopf:"\uD835\uDD64",spades:"♠",spadesuit:"♠",spar:"∥",sqcap:"⊓",sqcaps:"⊓︀",sqcup:"⊔",sqcups:"⊔︀",sqsub:"⊏",sqsube:"⊑",sqsubset:"⊏",sqsubseteq:"⊑",sqsup:"⊐",sqsupe:"⊒",sqsupset:"⊐",sqsupseteq:"⊒",squ:"□",square:"□",squarf:"▪",squf:"▪",srarr:"→",sscr:"\uD835\uDCC8",ssetmn:"∖",ssmile:"⌣",sstarf:"⋆",star:"☆",starf:"★",straightepsilon:"ϵ",straightphi:"ϕ",strns:"\xaf",sub:"⊂",subE:"⫅",subdot:"⪽",sube:"⊆",subedot:"⫃",submult:"⫁",subnE:"⫋",subne:"⊊",subplus:"⪿",subrarr:"⥹",subset:"⊂",subseteq:"⊆",subseteqq:"⫅",subsetneq:"⊊",subsetneqq:"⫋",subsim:"⫇",subsub:"⫕",subsup:"⫓",succ:"≻",succapprox:"⪸",succcurlyeq:"≽",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"⋩",succsim:"≿",sum:"∑",sung:"♪",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",sup:"⊃",supE:"⫆",supdot:"⪾",supdsub:"⫘",supe:"⊇",supedot:"⫄",suphsol:"⟉",suphsub:"⫗",suplarr:"⥻",supmult:"⫂",supnE:"⫌",supne:"⊋",supplus:"⫀",supset:"⊃",supseteq:"⊇",supseteqq:"⫆",supsetneq:"⊋",supsetneqq:"⫌",supsim:"⫈",supsub:"⫔",supsup:"⫖",swArr:"⇙",swarhk:"⤦",swarr:"↙",swarrow:"↙",swnwar:"⤪",szlig:"\xdf",target:"⌖",tau:"τ",tbrk:"⎴",tcaron:"ť",tcedil:"ţ",tcy:"т",tdot:"⃛",telrec:"⌕",tfr:"\uD835\uDD31",there4:"∴",therefore:"∴",theta:"θ",thetasym:"ϑ",thetav:"ϑ",thickapprox:"≈",thicksim:"∼",thinsp:" ",thkap:"≈",thksim:"∼",thorn:"\xfe",tilde:"˜",times:"\xd7",timesb:"⊠",timesbar:"⨱",timesd:"⨰",tint:"∭",toea:"⤨",top:"⊤",topbot:"⌶",topcir:"⫱",topf:"\uD835\uDD65",topfork:"⫚",tosa:"⤩",tprime:"‴",trade:"™",triangle:"▵",triangledown:"▿",triangleleft:"◃",trianglelefteq:"⊴",triangleq:"≜",triangleright:"▹",trianglerighteq:"⊵",tridot:"◬",trie:"≜",triminus:"⨺",triplus:"⨹",trisb:"⧍",tritime:"⨻",trpezium:"⏢",tscr:"\uD835\uDCC9",tscy:"ц",tshcy:"ћ",tstrok:"ŧ",twixt:"≬",twoheadleftarrow:"↞",twoheadrightarrow:"↠",uArr:"⇑",uHar:"⥣",uacute:"\xfa",uarr:"↑",ubrcy:"ў",ubreve:"ŭ",ucirc:"\xfb",ucy:"у",udarr:"⇅",udblac:"ű",udhar:"⥮",ufisht:"⥾",ufr:"\uD835\uDD32",ugrave:"\xf9",uharl:"↿",uharr:"↾",uhblk:"▀",ulcorn:"⌜",ulcorner:"⌜",ulcrop:"⌏",ultri:"◸",umacr:"ū",uml:"\xa8",uogon:"ų",uopf:"\uD835\uDD66",uparrow:"↑",updownarrow:"↕",upharpoonleft:"↿",upharpoonright:"↾",uplus:"⊎",upsi:"υ",upsih:"ϒ",upsilon:"υ",upuparrows:"⇈",urcorn:"⌝",urcorner:"⌝",urcrop:"⌎",uring:"ů",urtri:"◹",uscr:"\uD835\uDCCA",utdot:"⋰",utilde:"ũ",utri:"▵",utrif:"▴",uuarr:"⇈",uuml:"\xfc",uwangle:"⦧",vArr:"⇕",vBar:"⫨",vBarv:"⫩",vDash:"⊨",vangrt:"⦜",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"∅",varphi:"ϕ",varpi:"ϖ",varpropto:"∝",varr:"↕",varrho:"ϱ",varsigma:"ς",varsubsetneq:"⊊︀",varsubsetneqq:"⫋︀",varsupsetneq:"⊋︀",varsupsetneqq:"⫌︀",vartheta:"ϑ",vartriangleleft:"⊲",vartriangleright:"⊳",vcy:"в",vdash:"⊢",vee:"∨",veebar:"⊻",veeeq:"≚",vellip:"⋮",verbar:"|",vert:"|",vfr:"\uD835\uDD33",vltri:"⊲",vnsub:"⊂⃒",vnsup:"⊃⃒",vopf:"\uD835\uDD67",vprop:"∝",vrtri:"⊳",vscr:"\uD835\uDCCB",vsubnE:"⫋︀",vsubne:"⊊︀",vsupnE:"⫌︀",vsupne:"⊋︀",vzigzag:"⦚",wcirc:"ŵ",wedbar:"⩟",wedge:"∧",wedgeq:"≙",weierp:"℘",wfr:"\uD835\uDD34",wopf:"\uD835\uDD68",wp:"℘",wr:"≀",wreath:"≀",wscr:"\uD835\uDCCC",xcap:"⋂",xcirc:"◯",xcup:"⋃",xdtri:"▽",xfr:"\uD835\uDD35",xhArr:"⟺",xharr:"⟷",xi:"ξ",xlArr:"⟸",xlarr:"⟵",xmap:"⟼",xnis:"⋻",xodot:"⨀",xopf:"\uD835\uDD69",xoplus:"⨁",xotime:"⨂",xrArr:"⟹",xrarr:"⟶",xscr:"\uD835\uDCCD",xsqcup:"⨆",xuplus:"⨄",xutri:"△",xvee:"⋁",xwedge:"⋀",yacute:"\xfd",yacy:"я",ycirc:"ŷ",ycy:"ы",yen:"\xa5",yfr:"\uD835\uDD36",yicy:"ї",yopf:"\uD835\uDD6A",yscr:"\uD835\uDCCE",yucy:"ю",yuml:"\xff",zacute:"ź",zcaron:"ž",zcy:"з",zdot:"ż",zeetrf:"ℨ",zeta:"ζ",zfr:"\uD835\uDD37",zhcy:"ж",zigrarr:"⇝",zopf:"\uD835\uDD6B",zscr:"\uD835\uDCCF",zwj:"",zwnj:""},tI={}.hasOwnProperty;function tP(e){return!!tI.call(tT,e)&&tT[e]}let tq={name:"characterReference",tokenize:function(e,t,n){let r,i;let l=this,o=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),a};function a(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),s):(e.enter("characterReferenceValue"),r=31,i=eK,c(t))}function s(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,i=e1,c):(e.enter("characterReferenceValue"),r=7,i=e0,c(t))}function c(a){if(59===a&&o){let r=e.exit("characterReferenceValue");return i!==eK||tP(l.sliceSerialize(r))?(e.enter("characterReferenceMarker"),e.consume(a),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(a)}return i(a)&&o++<r?(e.consume(a),c):n(a)}}},tF={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),r};function r(r){return e5(r)?(e.enter("characterEscapeValue"),e.consume(r),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(r)}}},tR={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),e7(e,t,"linePrefix")}}};function tO(e,t,n){let r=[],i=-1;for(;++i<e.length;){let l=e[i].resolveAll;l&&!r.includes(l)&&(t=l(t,n),r.push(l))}return t}let t_={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),"labelImage"===r.type||"labelLink"===r.type||"labelEnd"===r.type){let e="labelImage"===r.type?4:2;r.type="data",t+=e}}return e.length!==n.length&&eH(e,0,e.length,n),e},resolveTo:function(e,t){let n,r,i,l,o=e.length,a=0;for(;o--;)if(n=e[o][1],r){if("link"===n.type||"labelLink"===n.type&&n._inactive)break;"enter"===e[o][0]&&"labelLink"===n.type&&(n._inactive=!0)}else if(i){if("enter"===e[o][0]&&("labelImage"===n.type||"labelLink"===n.type)&&!n._balanced&&(r=o,"labelLink"!==n.type)){a=2;break}}else"labelEnd"===n.type&&(i=o);let s={type:"labelLink"===e[r][1].type?"link":"image",start:{...e[r][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[r][1].start},end:{...e[i][1].end}},u={type:"labelText",start:{...e[r+a+2][1].end},end:{...e[i-2][1].start}};return l=eV(l=[["enter",s,t],["enter",c,t]],e.slice(r+1,r+a+3)),l=eV(l,[["enter",u,t]]),l=eV(l,tO(t.parser.constructs.insideSpan.null,e.slice(r+a+4,i-3),t)),l=eV(l,[["exit",u,t],e[i-2],e[i-1],["exit",c,t]]),l=eV(l,e.slice(i+1)),l=eV(l,[["exit",s,t]]),eH(e,r,e.length,l),e},tokenize:function(e,t,n){let r,i;let l=this,o=l.events.length;for(;o--;)if(("labelImage"===l.events[o][1].type||"labelLink"===l.events[o][1].type)&&!l.events[o][1]._balanced){r=l.events[o][1];break}return function(t){return r?r._inactive?u(t):(i=l.parser.defined.includes(tw(l.sliceSerialize({start:r.end,end:l.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),a):n(t)};function a(t){return 40===t?e.attempt(tB,c,i?c:u)(t):91===t?e.attempt(tU,c,i?s:u)(t):i?c(t):u(t)}function s(t){return e.attempt(tH,c,u)(t)}function c(e){return t(e)}function u(e){return r._balanced=!0,n(e)}}},tB={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),r};function r(t){return e4(t)?tk(e,i)(t):i(t)}function i(t){return 41===t?c(t):ty(e,l,o,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function l(t){return e4(t)?tk(e,a)(t):c(t)}function o(e){return n(e)}function a(t){return 34===t||39===t||40===t?tv(e,s,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function s(t){return e4(t)?tk(e,c)(t):c(t)}function c(r){return 41===r?(e.enter("resourceMarker"),e.consume(r),e.exit("resourceMarker"),e.exit("resource"),t):n(r)}}},tU={tokenize:function(e,t,n){let r=this;return function(t){return tb.call(r,e,i,l,"reference","referenceMarker","referenceString")(t)};function i(e){return r.parser.defined.includes(tw(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function l(e){return n(e)}}},tH={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),r};function r(r){return 93===r?(e.enter("referenceMarker"),e.consume(r),e.exit("referenceMarker"),e.exit("reference"),t):n(r)}}},tV={name:"labelStartImage",resolveAll:t_.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),i};function i(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),l):n(t)}function l(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}};function t$(e){return null===e||e4(e)||e8(e)?1:e6(e)?2:void 0}let tW={name:"attention",resolveAll:function(e,t){let n,r,i,l,o,a,s,c,u=-1;for(;++u<e.length;)if("enter"===e[u][0]&&"attentionSequence"===e[u][1].type&&e[u][1]._close){for(n=u;n--;)if("exit"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._open&&t.sliceSerialize(e[n][1]).charCodeAt(0)===t.sliceSerialize(e[u][1]).charCodeAt(0)){if((e[n][1]._close||e[u][1]._open)&&(e[u][1].end.offset-e[u][1].start.offset)%3&&!((e[n][1].end.offset-e[n][1].start.offset+e[u][1].end.offset-e[u][1].start.offset)%3))continue;a=e[n][1].end.offset-e[n][1].start.offset>1&&e[u][1].end.offset-e[u][1].start.offset>1?2:1;let d={...e[n][1].end},h={...e[u][1].start};tG(d,-a),tG(h,a),l={type:a>1?"strongSequence":"emphasisSequence",start:d,end:{...e[n][1].end}},o={type:a>1?"strongSequence":"emphasisSequence",start:{...e[u][1].start},end:h},i={type:a>1?"strongText":"emphasisText",start:{...e[n][1].end},end:{...e[u][1].start}},r={type:a>1?"strong":"emphasis",start:{...l.start},end:{...o.end}},e[n][1].end={...l.start},e[u][1].start={...o.end},s=[],e[n][1].end.offset-e[n][1].start.offset&&(s=eV(s,[["enter",e[n][1],t],["exit",e[n][1],t]])),s=eV(s,[["enter",r,t],["enter",l,t],["exit",l,t],["enter",i,t]]),s=eV(s,tO(t.parser.constructs.insideSpan.null,e.slice(n+1,u),t)),s=eV(s,[["exit",i,t],["enter",o,t],["exit",o,t],["exit",r,t]]),e[u][1].end.offset-e[u][1].start.offset?(c=2,s=eV(s,[["enter",e[u][1],t],["exit",e[u][1],t]])):c=0,eH(e,n-1,u-n+3,s),u=n+s.length-c-2;break}}for(u=-1;++u<e.length;)"attentionSequence"===e[u][1].type&&(e[u][1].type="data");return e},tokenize:function(e,t){let n;let r=this.parser.constructs.attentionMarkers.null,i=this.previous,l=t$(i);return function(o){return n=o,e.enter("attentionSequence"),function o(a){if(a===n)return e.consume(a),o;let s=e.exit("attentionSequence"),c=t$(a),u=!c||2===c&&l||r.includes(a),d=!l||2===l&&c||r.includes(i);return s._open=!!(42===n?u:u&&(l||!d)),s._close=!!(42===n?d:d&&(c||!u)),t(a)}(o)}}};function tG(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}let tY={name:"labelStartLink",resolveAll:t_.resolveAll,tokenize:function(e,t,n){let r=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),i};function i(e){return 94===e&&"_hiddenFootnoteSupport"in r.parser.constructs?n(e):t(e)}}},tX={42:tf,43:tf,45:tf,48:tf,49:tf,50:tf,51:tf,52:tf,53:tf,54:tf,55:tf,56:tf,57:tf,62:tg},tJ={91:{name:"definition",tokenize:function(e,t,n){let r;let i=this;return function(t){return e.enter("definition"),tb.call(i,e,l,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function l(t){return(r=tw(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)),58===t)?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o):n(t)}function o(t){return e4(t)?tk(e,a)(t):a(t)}function a(t){return ty(e,s,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function s(t){return e.attempt(tj,c,c)(t)}function c(t){return e3(t)?e7(e,u,"whitespace")(t):u(t)}function u(l){return null===l||e2(l)?(e.exit("definition"),i.parser.defined.push(r),t(l)):n(l)}}}},tK={[-2]:tN,[-1]:tN,32:tN},tZ={35:{name:"headingAtx",resolve:function(e,t){let n,r,i=e.length-2,l=3;return"whitespace"===e[3][1].type&&(l+=2),i-2>l&&"whitespace"===e[i][1].type&&(i-=2),"atxHeadingSequence"===e[i][1].type&&(l===i-1||i-4>l&&"whitespace"===e[i-2][1].type)&&(i-=l+1===i?2:4),i>l&&(n={type:"atxHeadingText",start:e[l][1].start,end:e[i][1].end},r={type:"chunkText",start:e[l][1].start,end:e[i][1].end,contentType:"text"},eH(e,l,i-l+1,[["enter",n,t],["enter",r,t],["exit",r,t],["exit",n,t]])),e},tokenize:function(e,t,n){let r=0;return function(i){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function i(l){return 35===l&&r++<6?(e.consume(l),i):null===l||e4(l)?(e.exit("atxHeadingSequence"),function n(r){return 35===r?(e.enter("atxHeadingSequence"),function t(r){return 35===r?(e.consume(r),t):(e.exit("atxHeadingSequence"),n(r))}(r)):null===r||e2(r)?(e.exit("atxHeading"),t(r)):e3(r)?e7(e,n,"whitespace")(r):(e.enter("atxHeadingText"),function t(r){return null===r||35===r||e4(r)?(e.exit("atxHeadingText"),n(r)):(e.consume(r),t)}(r))}(l)):n(l)}(i)}}},42:tp,45:[tS,tp],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(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},tokenize:function(e,t,n){let r,i,l,o,a;let s=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(o){return 33===o?(e.consume(o),u):47===o?(e.consume(o),i=!0,p):63===o?(e.consume(o),r=3,s.interrupt?t:E):eJ(o)?(e.consume(o),l=String.fromCharCode(o),f):n(o)}function u(i){return 45===i?(e.consume(i),r=2,d):91===i?(e.consume(i),r=5,o=0,h):eJ(i)?(e.consume(i),r=4,s.interrupt?t:E):n(i)}function d(r){return 45===r?(e.consume(r),s.interrupt?t:E):n(r)}function h(r){let i="CDATA[";return r===i.charCodeAt(o++)?(e.consume(r),o===i.length)?s.interrupt?t:N:h:n(r)}function p(t){return eJ(t)?(e.consume(t),l=String.fromCharCode(t),f):n(t)}function f(o){if(null===o||47===o||62===o||e4(o)){let a=47===o,c=l.toLowerCase();return!a&&!i&&tD.includes(c)?(r=1,s.interrupt?t(o):N(o)):tz.includes(l.toLowerCase())?(r=6,a)?(e.consume(o),m):s.interrupt?t(o):N(o):(r=7,s.interrupt&&!s.parser.lazy[s.now().line]?n(o):i?function t(n){return e3(n)?(e.consume(n),t):w(n)}(o):x(o))}return 45===o||eK(o)?(e.consume(o),l+=String.fromCharCode(o),f):n(o)}function m(r){return 62===r?(e.consume(r),s.interrupt?t:N):n(r)}function x(t){return 47===t?(e.consume(t),w):58===t||95===t||eJ(t)?(e.consume(t),g):e3(t)?(e.consume(t),x):w(t)}function g(t){return 45===t||46===t||58===t||95===t||eK(t)?(e.consume(t),g):y(t)}function y(t){return 61===t?(e.consume(t),b):e3(t)?(e.consume(t),y):x(t)}function b(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),a=t,v):e3(t)?(e.consume(t),b):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||e4(n)?y(n):(e.consume(n),t)}(t)}function v(t){return t===a?(e.consume(t),a=null,k):null===t||e2(t)?n(t):(e.consume(t),v)}function k(e){return 47===e||62===e||e3(e)?x(e):n(e)}function w(t){return 62===t?(e.consume(t),j):n(t)}function j(t){return null===t||e2(t)?N(t):e3(t)?(e.consume(t),j):n(t)}function N(t){return 45===t&&2===r?(e.consume(t),D):60===t&&1===r?(e.consume(t),L):62===t&&4===r?(e.consume(t),T):63===t&&3===r?(e.consume(t),E):93===t&&5===r?(e.consume(t),A):e2(t)&&(6===r||7===r)?(e.exit("htmlFlowData"),e.check(tL,I,C)(t)):null===t||e2(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),N)}function C(t){return e.check(tM,S,I)(t)}function S(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),z}function z(t){return null===t||e2(t)?C(t):(e.enter("htmlFlowData"),N(t))}function D(t){return 45===t?(e.consume(t),E):N(t)}function L(t){return 47===t?(e.consume(t),l="",M):N(t)}function M(t){if(62===t){let n=l.toLowerCase();return tD.includes(n)?(e.consume(t),T):N(t)}return eJ(t)&&l.length<8?(e.consume(t),l+=String.fromCharCode(t),M):N(t)}function A(t){return 93===t?(e.consume(t),E):N(t)}function E(t){return 62===t?(e.consume(t),T):45===t&&2===r?(e.consume(t),E):N(t)}function T(t){return null===t||e2(t)?(e.exit("htmlFlowData"),I(t)):(e.consume(t),T)}function I(n){return e.exit("htmlFlow"),t(n)}}},61:tS,95:tp,96:tE,126:tE},tQ={38:tq,92:tF},t0={[-5]:tR,[-4]:tR,[-3]:tR,33:tV,38:tq,42:tW,60:[{name:"autolink",tokenize:function(e,t,n){let r=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),i};function i(t){return eJ(t)?(e.consume(t),l):64===t?n(t):a(t)}function l(t){return 43===t||45===t||46===t||eK(t)?(r=1,function t(n){return 58===n?(e.consume(n),r=0,o):(43===n||45===n||46===n||eK(n))&&r++<32?(e.consume(n),t):(r=0,a(n))}(t)):a(t)}function o(r){return 62===r?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(r),e.exit("autolinkMarker"),e.exit("autolink"),t):null===r||32===r||60===r||eQ(r)?n(r):(e.consume(r),o)}function a(t){return 64===t?(e.consume(t),s):eZ(t)?(e.consume(t),a):n(t)}function s(i){return eK(i)?function i(l){return 46===l?(e.consume(l),r=0,s):62===l?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(l),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(l){if((45===l||eK(l))&&r++<63){let n=45===l?t:i;return e.consume(l),n}return n(l)}(l)}(i):n(i)}}},{name:"htmlText",tokenize:function(e,t,n){let r,i,l;let o=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),a};function a(t){return 33===t?(e.consume(t),s):47===t?(e.consume(t),v):63===t?(e.consume(t),y):eJ(t)?(e.consume(t),w):n(t)}function s(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),i=0,p):eJ(t)?(e.consume(t),g):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function u(t){return null===t?n(t):45===t?(e.consume(t),d):e2(t)?(l=u,M(t)):(e.consume(t),u)}function d(t){return 45===t?(e.consume(t),h):u(t)}function h(e){return 62===e?L(e):45===e?d(e):u(e)}function p(t){let r="CDATA[";return t===r.charCodeAt(i++)?(e.consume(t),i===r.length?f:p):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),m):e2(t)?(l=f,M(t)):(e.consume(t),f)}function m(t){return 93===t?(e.consume(t),x):f(t)}function x(t){return 62===t?L(t):93===t?(e.consume(t),x):f(t)}function g(t){return null===t||62===t?L(t):e2(t)?(l=g,M(t)):(e.consume(t),g)}function y(t){return null===t?n(t):63===t?(e.consume(t),b):e2(t)?(l=y,M(t)):(e.consume(t),y)}function b(e){return 62===e?L(e):y(e)}function v(t){return eJ(t)?(e.consume(t),k):n(t)}function k(t){return 45===t||eK(t)?(e.consume(t),k):function t(n){return e2(n)?(l=t,M(n)):e3(n)?(e.consume(n),t):L(n)}(t)}function w(t){return 45===t||eK(t)?(e.consume(t),w):47===t||62===t||e4(t)?j(t):n(t)}function j(t){return 47===t?(e.consume(t),L):58===t||95===t||eJ(t)?(e.consume(t),N):e2(t)?(l=j,M(t)):e3(t)?(e.consume(t),j):L(t)}function N(t){return 45===t||46===t||58===t||95===t||eK(t)?(e.consume(t),N):function t(n){return 61===n?(e.consume(n),C):e2(n)?(l=t,M(n)):e3(n)?(e.consume(n),t):j(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),r=t,S):e2(t)?(l=C,M(t)):e3(t)?(e.consume(t),C):(e.consume(t),z)}function S(t){return t===r?(e.consume(t),r=void 0,D):null===t?n(t):e2(t)?(l=S,M(t)):(e.consume(t),S)}function z(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||e4(t)?j(t):(e.consume(t),z)}function D(e){return 47===e||62===e||e4(e)?j(e):n(e)}function L(r){return 62===r?(e.consume(r),e.exit("htmlTextData"),e.exit("htmlText"),t):n(r)}function M(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),A}function A(t){return e3(t)?e7(e,E,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):E(t)}function E(t){return e.enter("htmlTextData"),l(t)}}}],91:tY,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),r};function r(r){return e2(r)?(e.exit("hardBreakEscape"),t(r)):n(r)}}},tF],93:t_,95:tW,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t,n,r=e.length-4,i=3;if(("lineEnding"===e[3][1].type||"space"===e[i][1].type)&&("lineEnding"===e[r][1].type||"space"===e[r][1].type)){for(t=i;++t<r;)if("codeTextData"===e[t][1].type){e[i][1].type="codeTextPadding",e[r][1].type="codeTextPadding",i+=2,r-=2;break}}for(t=i-1,r++;++t<=r;)void 0===n?t!==r&&"lineEnding"!==e[t][1].type&&(n=t):(t===r||"lineEnding"===e[t][1].type)&&(e[n][1].type="codeTextData",t!==n+2&&(e[n][1].end=e[t-1][1].end,e.splice(n+2,t-n-2),r-=t-n-2,t=n+2),n=void 0);return e},tokenize:function(e,t,n){let r,i,l=0;return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),l++,t):(e.exit("codeTextSequence"),o(n))}(t)};function o(s){return null===s?n(s):32===s?(e.enter("space"),e.consume(s),e.exit("space"),o):96===s?(i=e.enter("codeTextSequence"),r=0,function n(o){return 96===o?(e.consume(o),r++,n):r===l?(e.exit("codeTextSequence"),e.exit("codeText"),t(o)):(i.type="codeTextData",a(o))}(s)):e2(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):(e.enter("codeTextData"),a(s))}function a(t){return null===t||32===t||96===t||e2(t)?(e.exit("codeTextData"),o(t)):(e.consume(t),a)}}}},t1={null:[tW,ta]},t5={null:[42,95]},t2={null:[]},t4=/[\0\t\n\r]/g;function t3(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let t6=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function t8(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return t3(n.slice(t?2:1),t?16:10)}return tP(n)||e}let t9={}.hasOwnProperty;function t7(e){return{line:e.line,column:e.column,offset:e.offset}}function ne(e,t){if(e)throw Error("Cannot close `"+e.type+"` ("+ev({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+ev({start:t.start,end:t.end})+") is open");throw Error("Cannot close document, a token (`"+t.type+"`, "+ev({start:t.start,end:t.end})+") is still open")}function nt(e){let t=this;t.parser=function(n){var r,l;let o,a,s,c;return"string"!=typeof(r={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(l=r,r=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:r(g),autolinkProtocol:c,autolinkEmail:c,atxHeading:r(f),blockQuote:r(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:r(p),codeFencedFenceInfo:i,codeFencedFenceMeta:i,codeIndented:r(p,i),codeText:r(function(){return{type:"inlineCode",value:""}},i),codeTextData:c,data:c,codeFlowValue:c,definition:r(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:i,definitionLabelString:i,definitionTitleString:i,emphasis:r(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:r(m),hardBreakTrailing:r(m),htmlFlow:r(x,i),htmlFlowData:c,htmlText:r(x,i),htmlTextData:c,image:r(function(){return{type:"image",title:null,url:"",alt:null}}),label:i,link:r(g),listItem:r(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:r(y,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:r(y),paragraph:r(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:i,resourceDestinationString:i,resourceTitleString:i,setextHeading:r(f),strong:r(function(){return{type:"strong",children:[]}}),thematicBreak:r(function(){return{type:"thematicBreak"}})},exit:{atxHeading:o(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:o(),autolinkEmail:function(e){u.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){u.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:o(),characterEscapeValue:u,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),r=this.data.characterReferenceType;r?(t=t3(n,"characterReferenceMarkerNumeric"===r?10:16),this.data.characterReferenceType=void 0):t=tP(n);let i=this.stack[this.stack.length-1];i.value+=t},characterReference:function(e){this.stack.pop().position.end=t7(e.end)},codeFenced:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:u,codeIndented:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:u,data:u,definition:o(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tw(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},emphasis:o(),hardBreakEscape:o(d),hardBreakTrailing:o(d),htmlFlow:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:u,htmlText:o(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:u,image:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(t6,t8),n.identifier=tw(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=t7(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),u.call(this,e))},link:o(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:o(),listOrdered:o(),listUnordered:o(),paragraph:o(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=tw(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:o(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:o(),thematicBreak:o()}};(function e(t,n){let r=-1;for(;++r<n.length;){let i=n[r];Array.isArray(i)?e(t,i):function(e,t){let n;for(n in t)if(t9.call(t,n))switch(n){case"canContainEols":{let r=t[n];r&&e[n].push(...r);break}case"transforms":{let r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{let r=t[n];r&&Object.assign(e[n],r)}}}(t,i)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let r={type:"root",children:[]},o={stack:[r],tokenStack:[],config:t,enter:l,exit:a,buffer:i,resume:s,data:n},c=[],u=-1;for(;++u<e.length;)("listOrdered"===e[u][1].type||"listUnordered"===e[u][1].type)&&("enter"===e[u][0]?c.push(u):u=function(e,t,n){let r,i,l,o,a=t-1,s=-1,c=!1;for(;++a<=n;){let t=e[a];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?s++:s--,o=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!r||o||s||l||(l=a),o=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:o=void 0}if(!s&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===s&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(r){let o=a;for(i=void 0;o--;){let t=e[o];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;i&&(e[i][1].type="lineEndingBlank",c=!0),t[1].type="lineEnding",i=o}else if("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type);else break}l&&(!i||l<i)&&(r._spread=!0),r.end=Object.assign({},i?e[i][1].start:t[1].end),e.splice(i||a,0,["exit",r,t[2]]),a++,n++}if("listItemPrefix"===t[1].type){let i={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};r=i,e.splice(a,0,["enter",i,t[2]]),a++,n++,l=void 0,o=!0}}}return e[t][1]._spread=c,n}(e,c.pop(),u));for(u=-1;++u<e.length;){let n=t[e[u][0]];t9.call(n,e[u][1].type)&&n[e[u][1].type].call(Object.assign({sliceSerialize:e[u][2].sliceSerialize},o),e[u][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||ne).call(o,void 0,e[0])}for(r.position={start:t7(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:t7(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},u=-1;++u<t.transforms.length;)r=t.transforms[u](r)||r;return r};function r(e,t){return function(n){l.call(this,e(n),n),t&&t.call(this,n)}}function i(){this.stack.push({type:"fragment",children:[]})}function l(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:t7(t.start),end:void 0}}function o(e){return function(t){e&&e.call(this,t),a.call(this,t)}}function a(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(r)r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||ne).call(this,e,r[0]));else throw Error("Cannot close `"+e.type+"` ("+ev({start:e.start,end:e.end})+"): it’s not open");n.position.end=t7(e.end)}function s(){return e_(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:t7(e.start),end:void 0},t.push(n)),this.stack.push(n)}function u(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=t7(e.end)}function d(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function p(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function m(){return{type:"break"}}function x(){return{type:"html",value:""}}function g(){return{type:"link",title:null,url:"",children:[]}}function y(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(l)(function(e){for(;!eG(e););return e}((function(e){let t={constructs:eX([i,...(e||{}).extensions||[]]),content:n(te),defined:[],document:n(tt),flow:n(to),lazy:{},string:n(ts),text:n(tc)};return t;function n(e){return function(n){return function(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0},i={},l=[],o=[],a=[],s={attempt:f(function(e,t){m(e,t.from)}),check:f(p),consume:function(e){e2(e)?(r.line++,r.column=1,r.offset+=-3===e?2:1,x()):-1!==e&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),a.push(n),n},exit:function(e){let t=a.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:f(p,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){i[e.line]=e.column,x()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,r=-1,i=[];for(;++r<e.length;){let l;let o=e[r];if("string"==typeof o)l=o;else switch(o){case -5:l="\r";break;case -4:l="\n";break;case -3:l="\r\n";break;case -2:l=t?" ":" ";break;case -1:if(!t&&n)continue;l=" ";break;default:l=String.fromCharCode(o)}n=-2===o,i.push(l)}return i.join("")}(d(e),t)},sliceStream:d,write:function(e){return(o=eV(o,e),function(){let e;for(;r._index<o.length;){let n=o[r._index];if("string"==typeof n)for(e=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===e&&r._bufferIndex<n.length;){var t;t=n.charCodeAt(r._bufferIndex),u=u(t)}else u=u(n)}}(),null!==o[o.length-1])?[]:(m(t,0),c.events=tO(l,c.events,c),c.events)}},u=t.tokenize.call(c,s);return t.resolveAll&&l.push(t),c;function d(e){return function(e,t){let n;let r=t.start._index,i=t.start._bufferIndex,l=t.end._index,o=t.end._bufferIndex;if(r===l)n=[e[r].slice(i,o)];else{if(n=e.slice(r,l),i>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(i):n.shift()}o>0&&n.push(e[l].slice(0,o))}return n}(o,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:l}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:l}}function p(e,t){t.restore()}function f(e,t){return function(n,i,l){let o,u,d,p;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],r=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(r)?r:r?[r]:[]])(e)};function f(e){return(o=e,u=0,0===e.length)?l:m(e[u])}function m(e){return function(n){return(p=function(){let e=h(),t=c.previous,n=c.currentConstruct,i=c.events.length,l=Array.from(a);return{from:i,restore:function(){r=e,c.previous=t,c.currentConstruct=n,c.events.length=i,a=l,x()}}}(),d=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name))?y(n):e.tokenize.call(t?Object.assign(Object.create(c),t):c,s,g,y)(n)}}function g(t){return e(d,p),i}function y(e){return(p.restore(),++u<o.length)?m(o[u]):l}}}function m(e,t){e.resolveAll&&!l.includes(e)&&l.push(e),e.resolve&&eH(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function x(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}(t,e,n)}}})(l).document().write((a=1,s="",c=!0,function(e,t,n){let r,i,l,u,d;let h=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),l=0,s="",c&&(65279===e.charCodeAt(0)&&l++,c=void 0);l<e.length;){if(t4.lastIndex=l,u=(r=t4.exec(e))&&void 0!==r.index?r.index:e.length,d=e.charCodeAt(u),!r){s=e.slice(l);break}if(10===d&&l===u&&o)h.push(-3),o=void 0;else switch(o&&(h.push(-5),o=void 0),l<u&&(h.push(e.slice(l,u)),a+=u-l),d){case 0:h.push(65533),a++;break;case 9:for(i=4*Math.ceil(a/4),h.push(-2);a++<i;)h.push(-1);break;case 10:h.push(-4),a=1;break;default:o=!0,a=1}l=u+1}return n&&(o&&h.push(-5),s&&h.push(s),h.push(null)),h})(n,r,!0))))}}let nn="object"==typeof self?self:globalThis,nr=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),r=i=>{if(e.has(i))return e.get(i);let[l,o]=t[i];switch(l){case 0:case -1:return n(o,i);case 1:{let e=n([],i);for(let t of o)e.push(r(t));return e}case 2:{let e=n({},i);for(let[t,n]of o)e[r(t)]=r(n);return e}case 3:return n(new Date(o),i);case 4:{let{source:e,flags:t}=o;return n(new RegExp(e,t),i)}case 5:{let e=n(new Map,i);for(let[t,n]of o)e.set(r(t),r(n));return e}case 6:{let e=n(new Set,i);for(let t of o)e.add(r(t));return e}case 7:{let{name:e,message:t}=o;return n(new nn[e](t),i)}case 8:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{let{buffer:e}=new Uint8Array(o);return n(new DataView(e),o)}}return n(new nn[l](o),i)};return r},ni=e=>nr(new Map,e)(0),{toString:nl}={},{keys:no}=Object,na=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=nl.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ns=([e,t])=>0===e&&("function"===t||"symbol"===t),nc=(e,t,n,r)=>{let i=(e,t)=>{let i=r.push(e)-1;return n.set(t,i),i},l=r=>{if(n.has(r))return n.get(r);let[o,a]=na(r);switch(o){case 0:{let t=r;switch(a){case"bigint":o=8,t=r.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+a);t=null;break;case"undefined":return i([-1],r)}return i([o,t],r)}case 1:{if(a){let e=r;return"DataView"===a?e=new Uint8Array(r.buffer):"ArrayBuffer"===a&&(e=new Uint8Array(r)),i([a,[...e]],r)}let e=[],t=i([o,e],r);for(let t of r)e.push(l(t));return t}case 2:{if(a)switch(a){case"BigInt":return i([a,r.toString()],r);case"Boolean":case"Number":case"String":return i([a,r.valueOf()],r)}if(t&&"toJSON"in r)return l(r.toJSON());let n=[],s=i([o,n],r);for(let t of no(r))(e||!ns(na(r[t])))&&n.push([l(t),l(r[t])]);return s}case 3:return i([o,r.toISOString()],r);case 4:{let{source:e,flags:t}=r;return i([o,{source:e,flags:t}],r)}case 5:{let t=[],n=i([o,t],r);for(let[n,i]of r)(e||!(ns(na(n))||ns(na(i))))&&t.push([l(n),l(i)]);return n}case 6:{let t=[],n=i([o,t],r);for(let n of r)(e||!ns(na(n)))&&t.push(l(n));return n}}let{message:s}=r;return i([o,{name:a,message:s}],r)};return l},nu=(e,{json:t,lossy:n}={})=>{let r=[];return nc(!(t||n),!!t,new Map,r)(e),r},nd="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?ni(nu(e,t)):structuredClone(e):(e,t)=>ni(nu(e,t));function nh(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let l=e.charCodeAt(n),o="";if(37===l&&eK(e.charCodeAt(n+1))&&eK(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){let t=e.charCodeAt(n+1);l<56320&&t>56319&&t<57344?(o=String.fromCharCode(l,t),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function np(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function nf(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let nm=function(e){if(null==e)return ng;if("function"==typeof e)return nx(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=nm(e[n]);return nx(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):nx(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return nx(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function nx(e){return function(t,n,r){var i;return!!(null!==(i=t)&&"object"==typeof i&&"type"in i&&e.call(this,t,"number"==typeof n?n:void 0,r||void 0))}}function ng(){return!0}let ny=[];function nb(e,t,n,r){let i;"function"==typeof t&&"function"!=typeof n?(r=n,n=t):i=t;let l=nm(i),o=r?-1:1;(function e(i,a,s){let c=i&&"object"==typeof i?i:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(u,"name",{value:"node (\x1b[33m"+i.type+(e?"<"+e+">":"")+"\x1b[39m)"})}return u;function u(){var c;let u,d,h,p=ny;if((!t||l(i,a,s[s.length-1]||void 0))&&!1===(p=Array.isArray(c=n(i,s))?c:"number"==typeof c?[!0,c]:null==c?ny:[c])[0])return p;if("children"in i&&i.children&&i.children&&"skip"!==p[0])for(d=(r?i.children.length:-1)+o,h=s.concat(i);d>-1&&d<i.children.length;){if(!1===(u=e(i.children[d],d,h)())[0])return u;d="number"==typeof u[1]?u[1]:d+o}return p}})(e,void 0,[])()}function nv(e,t,n,r){let i,l,o;"function"==typeof t&&"function"!=typeof n?(l=void 0,o=t,i=n):(l=t,o=n,i=r),nb(e,l,function(e,t){let n=t[t.length-1],r=n?n.children.indexOf(e):void 0;return o(e,r,n)},i)}function nk(e,t){let n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+r}];let i=e.all(t),l=i[0];l&&"text"===l.type?l.value="["+l.value:i.unshift({type:"text",value:"["});let o=i[i.length-1];return o&&"text"===o.type?o.value+=r:i.push({type:"text",value:r}),i}function nw(e){let t=e.spread;return null==t?e.children.length>1:t}function nj(e,t,n){let r=0,i=e.length;if(t){let t=e.codePointAt(r);for(;9===t||32===t;)r++,t=e.codePointAt(r)}if(n){let t=e.codePointAt(i-1);for(;9===t||32===t;)i--,t=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}let nN={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){let n=t.value?t.value+"\n":"",r={},i=t.lang?t.lang.split(/\s+/):[];i.length>0&&(r.className=["language-"+i[0]]);let l={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(l.data={meta:t.meta}),e.patch(t,l),l={type:"element",tagName:"pre",properties:{},children:[l=e.applyData(t,l)]},e.patch(t,l),l},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:function(e,t){let n;let r="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),l=nh(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),a=e.footnoteCounts.get(i);void 0===a?(a=0,e.footnoteOrder.push(i),n=e.footnoteOrder.length):n=o+1,a+=1,e.footnoteCounts.set(i,a);let s={type:"element",tagName:"a",properties:{href:"#"+r+"fn-"+l,id:r+"fnref-"+l+(a>1?"-"+a:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);let c={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nk(e,t);let i={src:nh(r.url||""),alt:t.alt};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)},image:function(e,t){let n={src:nh(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return nk(e,t);let i={href:nh(r.url||"")};null!==r.title&&void 0!==r.title&&(i.title=r.title);let l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)},link:function(e,t){let n={href:nh(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){let r=e.all(t),i=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,r=-1;for(;!t&&++r<n.length;)t=nw(n[r])}return t}(n):nw(t),l={},o=[];if("boolean"==typeof t.checked){let e;let n=r[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},r.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let a=-1;for(;++a<r.length;){let e=r[a];(i||0!==a||"element"!==e.type||"p"!==e.tagName)&&o.push({type:"text",value:"\n"}),"element"!==e.type||"p"!==e.tagName||i?o.push(e):o.push(...e.children)}let s=r[r.length-1];s&&(i||"element"!==s.type||"p"!==s.tagName)&&o.push({type:"text",value:"\n"});let c={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},r=e.all(t),i=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++i<r.length;){let e=r[i];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),r=n.shift(),i=[];if(r){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],n),i.push(n)}if(n.length>0){let r={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},l=ey(t.children[1]),o=eg(t.children[t.children.length-1]);l&&o&&(r.position={start:l,end:o}),i.push(r)}let l={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let r=n?n.children:void 0,i=0===(r?r.indexOf(t):1)?"th":"td",l=n&&"table"===n.type?n.align:void 0,o=l?l.length:t.children.length,a=-1,s=[];for(;++a<o;){let n=t.children[a],r={},o=l?l[a]:void 0;o&&(r.align=o);let c={type:"element",tagName:i,properties:r,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),s.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(s,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,r=n.exec(t),i=0,l=[];for(;r;)l.push(nj(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(nj(t.slice(i),i>0,!1)),l.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)},toml:nC,yaml:nC,definition:nC,footnoteDefinition:nC};function nC(){}let nS={}.hasOwnProperty,nz={};function nD(e,t){e.position&&(t.position=function(e){let t=ey(e),n=eg(e);if(t&&n)return{start:t,end:n}}(e))}function nL(e,t){let n=t;if(e&&e.data){let t=e.data.hName,r=e.data.hChildren,i=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&i&&Object.assign(n.properties,nd(i)),"children"in n&&n.children&&null!=r&&(n.children=r)}return n}function nM(e,t){let n=[],r=-1;for(t&&n.push({type:"text",value:"\n"});++r<e.length;)r&&n.push({type:"text",value:"\n"}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:"\n"}),n}function nA(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function nE(e,t){let n=function(e,t){let n=t||nz,r=new Map,i=new Map,l={all:function(e){let t=[];if("children"in e){let n=e.children,r=-1;for(;++r<n.length;){let i=l.one(n[r],e);if(i){if(r&&"break"===n[r-1].type&&(Array.isArray(i)||"text"!==i.type||(i.value=nA(i.value)),!Array.isArray(i)&&"element"===i.type)){let e=i.children[0];e&&"text"===e.type&&(e.value=nA(e.value))}Array.isArray(i)?t.push(...i):t.push(i)}}}return t},applyData:nL,definitionById:r,footnoteById:i,footnoteCounts:new Map,footnoteOrder:[],handlers:{...nN,...n.handlers},one:function(e,t){let n=e.type,r=l.handlers[n];if(nS.call(l.handlers,n)&&r)return r(l,e,t);if(l.options.passThrough&&l.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,r=nd(n);return r.children=l.all(e),r}return nd(e)}return(l.options.unknownHandler||function(e,t){let n=t.data||{},r="value"in t&&!(nS.call(n,"hProperties")||nS.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)})(l,e,t)},options:n,patch:nD,wrap:nM};return nv(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?r:i,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),l}(e,t),r=n.one(e,void 0),i=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||np,r=e.options.footnoteBackLabel||nf,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},a=[],s=-1;for(;++s<e.footnoteOrder.length;){let i=e.footnoteById.get(e.footnoteOrder[s]);if(!i)continue;let l=e.all(i),o=String(i.identifier).toUpperCase(),c=nh(o.toLowerCase()),u=0,d=[],h=e.footnoteCounts.get(o);for(;void 0!==h&&++u<=h;){d.length>0&&d.push({type:"text",value:" "});let e="string"==typeof n?n:n(s,u);"string"==typeof e&&(e={type:"text",value:e}),d.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(u>1?"-"+u:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof r?r:r(s,u),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let p=l[l.length-1];if(p&&"element"===p.type&&"p"===p.tagName){let e=p.children[p.children.length-1];e&&"text"===e.type?e.value+=" ":p.children.push({type:"text",value:" "}),p.children.push(...d)}else l.push(...d);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(l,!0)};e.patch(i,f),a.push(f)}if(0!==a.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...nd(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(a,!0)},{type:"text",value:"\n"}]}}(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:"\n"},i),l}function nT(e,t){return e&&"run"in e?async function(n,r){let i=nE(n,{file:r,...t});await e.run(i,r)}:function(n,r){return nE(n,{file:r,...e||t})}}function nI(e){if(e)throw e}var nP=n(75609);function nq(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let nF=require("node:path"),nR=require("node:process");function nO(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}var n_=n(41041);let nB=["history","path","basename","stem","extname","dirname"];class nU{constructor(e){let t,n;t=e?nO(e)?{path:e}:"string"==typeof e||function(e){return!!(e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e)}(e)?{value:e}:e:{},this.cwd="cwd"in t?"":nR.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<nB.length;){let e=nB[r];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)nB.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?nF.basename(this.path):void 0}set basename(e){nV(e,"basename"),nH(e,"basename"),this.path=nF.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?nF.dirname(this.path):void 0}set dirname(e){n$(this.basename,"dirname"),this.path=nF.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?nF.extname(this.path):void 0}set extname(e){if(nH(e,"extname"),n$(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=nF.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){nO(e)&&(e=(0,n_.fileURLToPath)(e)),nV(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?nF.basename(this.path,this.extname):void 0}set stem(e){nV(e,"stem"),nH(e,"stem"),this.path=nF.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let r=this.message(e,t,n);throw r.fatal=!0,r}info(e,t,n){let r=this.message(e,t,n);return r.fatal=void 0,r}message(e,t,n){let r=new eN(e,t,n);return this.path&&(r.name=this.path+":"+r.name,r.file=this.path),r.fatal=!1,this.messages.push(r),r}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function nH(e,t){if(e&&e.includes(nF.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+nF.sep+"`")}function nV(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function n$(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let nW=function(e){let t=this.constructor.prototype,n=t[e],r=function(){return n.apply(r,arguments)};return Object.setPrototypeOf(r,t),r},nG={}.hasOwnProperty;class nY extends nW{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=function(){let e=[],t={run:function(...t){let n=-1,r=t.pop();if("function"!=typeof r)throw TypeError("Expected function as last argument, not "+r);(function i(l,...o){let a=e[++n],s=-1;if(l){r(l);return}for(;++s<t.length;)(null===o[s]||void 0===o[s])&&(o[s]=t[s]);t=o,a?(function(e,t){let n;return function(...t){let l;let o=e.length>t.length;o&&t.push(r);try{l=e.apply(this,t)}catch(e){if(o&&n)throw e;return r(e)}o||(l&&l.then&&"function"==typeof l.then?l.then(i,r):l instanceof Error?r(l):i(l))};function r(e,...i){n||(n=!0,t(e,...i))}function i(e){r(null,e)}})(a,i)(...o):r(null,...o)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new nY,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(nP(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(nZ("data",this.frozen),this.namespace[e]=t,this):nG.call(this.namespace,e)&&this.namespace[e]||void 0:e?(nZ("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=n1(e),n=this.parser||this.Parser;return nJ("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),nJ("process",this.parser||this.Parser),nK("process",this.compiler||this.Compiler),t?r(void 0,t):new Promise(r);function r(r,i){let l=n1(e),o=n.parse(l);function a(e,n){e||!n?i(e):r?r(n):t(void 0,n)}n.run(o,l,function(e,t,r){if(e||!t||!r)return a(e);let i=n.stringify(t,r);"string"==typeof i||i&&"object"==typeof i&&"byteLength"in i&&"byteOffset"in i?r.value=i:r.result=i,a(e,r)})}}processSync(e){let t,n=!1;return this.freeze(),nJ("processSync",this.parser||this.Parser),nK("processSync",this.compiler||this.Compiler),this.process(e,function(e,r){n=!0,nI(e),t=r}),n0("processSync","process",n),t}run(e,t,n){nQ(e),this.freeze();let r=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?i(void 0,n):new Promise(i);function i(i,l){let o=n1(t);r.run(e,o,function(t,r,o){let a=r||e;t?l(t):i?i(a):n(void 0,a,o)})}}runSync(e,t){let n,r=!1;return this.run(e,t,function(e,t){nI(e),n=t,r=!0}),n0("runSync","run",r),n}stringify(e,t){this.freeze();let n=n1(t),r=this.compiler||this.Compiler;return nK("stringify",r),nQ(e),r(e,n)}use(e,...t){let n=this.attachers,r=this.namespace;if(nZ("use",this.frozen),null==e);else if("function"==typeof e)o(e,t);else if("object"==typeof e)Array.isArray(e)?l(e):i(e);else throw TypeError("Expected usable value, not `"+e+"`");return this;function i(e){if(!("plugins"in e)&&!("settings"in e))throw 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");l(e.plugins),e.settings&&(r.settings=nP(!0,r.settings,e.settings))}function l(e){let t=-1;if(null==e);else if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)o(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;o(t,n)}else i(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}function o(e,t){let r=-1,i=-1;for(;++r<n.length;)if(n[r][0]===e){i=r;break}if(-1===i)n.push([e,...t]);else if(t.length>0){let[r,...l]=t,o=n[i][1];nq(o)&&nq(r)&&(r=nP(!0,o,r)),n[i]=[e,r,...l]}}}}let nX=new nY().freeze();function nJ(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function nK(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function nZ(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function nQ(e){if(!nq(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function n0(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function n1(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new nU(e)}let n5=[],n2={allowDangerousHtml:!0},n4=/^(https?|ircs?|mailto|xmpp)$/i,n3=[{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 n6(e){let t=function(e){let t=e.rehypePlugins||n5,n=e.remarkPlugins||n5,r=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...n2}:n2;return nX().use(nt).use(n).use(nT,r).use(t)}(e),n=function(e){let t=e.children||"",n=new nU;return"string"==typeof t&&(n.value=t),n}(e);return function(e,t){let n=t.allowedElements,r=t.allowElement,i=t.components,o=t.disallowedElements,a=t.skipHtml,s=t.unwrapDisallowed,c=t.urlTransform||n8;for(let e of n3)Object.hasOwn(t,e.from)&&(e.from,e.to&&e.to,e.id);return nv(e,function(e,t,i){if("raw"===e.type&&i&&"number"==typeof t)return a?i.children.splice(t,1):i.children[t]={type:"text",value:e.value},t;if("element"===e.type){let t;for(t in eR)if(Object.hasOwn(eR,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=eR[t];(null===r||r.includes(e.tagName))&&(e.properties[t]=c(String(n||""),t,e))}}if("element"===e.type){let l=n?!n.includes(e.tagName):!!o&&o.includes(e.tagName);if(!l&&r&&"number"==typeof t&&(l=!r(e,t,i)),l&&i&&"number"==typeof t)return s&&e.children?i.children.splice(t,1,...e.children):i.children.splice(t,1),t}}),function(e,t){var n,r,i;let l;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let o=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,l=function(e,t,r,i){let l=Array.isArray(r.children),a=ey(e);return n(t,r,i,l,{columnNumber:a?a.column-1:void 0,fileName:o,lineNumber:a?a.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");r=t.jsx,i=t.jsxs,l=function(e,t,n,l){let o=Array.isArray(n.children)?i:r;return l?o(t,n,l):o(t,n)}}let a={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:l,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:o,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ec:es,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},s=eA(a,e,void 0);return s&&"string"!=typeof s?s:a.create(e,a.Fragment,{children:s||void 0},void 0)}(e,{Fragment:l.Fragment,components:i,ignoreInvalidStyle:!0,jsx:l.jsx,jsxs:l.jsxs,passKeys:!0,passNode:!0})}(t.runSync(t.parse(n),n),e)}function n8(e){let t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),i=e.indexOf("/");return -1===t||-1!==i&&t>i||-1!==n&&t>n||-1!==r&&t>r||n4.test(e.slice(0,t))?e:""}function n9(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let r=0,i=n.indexOf(t);for(;-1!==i;)r++,i=n.indexOf(t,i+t.length);return r}let n7="phrasing",re=["autolink","link","image","label"];function rt(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function rn(e){this.config.enter.autolinkProtocol.call(this,e)}function rr(e){this.config.exit.autolinkProtocol.call(this,e)}function ri(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function rl(e){this.config.exit.autolinkEmail.call(this,e)}function ro(e){this.exit(e)}function ra(e){!function(e,t,n){let r=nm((n||{}).ignore||[]),i=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],r=-1;for(;++r<n.length;){var i;let e=n[r];t.push(["string"==typeof(i=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(i),"g"):i,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),l=-1;for(;++l<i.length;)nb(e,"text",o);function o(e,t){let n,o=-1;for(;++o<t.length;){let e=t[o],i=n?n.children:void 0;if(r(e,i?i.indexOf(e):void 0,n))return;n=e}if(n)return function(e,t){let n=t[t.length-1],r=i[l][0],o=i[l][1],a=0,s=n.children.indexOf(e),c=!1,u=[];r.lastIndex=0;let d=r.exec(e.value);for(;d;){let n=d.index,i={index:d.index,input:d.input,stack:[...t,e]},l=o(...d,i);if("string"==typeof l&&(l=l.length>0?{type:"text",value:l}:void 0),!1===l?r.lastIndex=n+1:(a!==n&&u.push({type:"text",value:e.value.slice(a,n)}),Array.isArray(l)?u.push(...l):l&&u.push(l),a=n+d[0].length,c=!0),!r.global)break;d=r.exec(e.value)}return c?(a<e.value.length&&u.push({type:"text",value:e.value.slice(a)}),n.children.splice(s,1,...u)):u=[e],s+u.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,rs],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,rc]],{ignore:["link","linkReference"]})}function rs(e,t,n,r,i){let l="";if(!ru(i)||(/^w/i.test(t)&&(n=t+n,t="",l="http://"),!function(e){let 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])))}(n)))return!1;let o=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")"),i=n9(e,"("),l=n9(e,")");for(;-1!==r&&i>l;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),l++;return[e,n]}(n+r);if(!o[0])return!1;let a={type:"link",title:null,url:l+t+o[0],children:[{type:"text",value:t+o[0]}]};return o[1]?[a,{type:"text",value:o[1]}]:a}function rc(e,t,n,r){return!(!ru(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function ru(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||e8(n)||e6(n))&&(!t||47!==n)}function rd(){this.buffer()}function rh(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function rp(){this.buffer()}function rf(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function rm(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tw(this.sliceSerialize(e)).toLowerCase(),n.label=t}function rx(e){this.exit(e)}function rg(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=tw(this.sliceSerialize(e)).toLowerCase(),n.label=t}function ry(e){this.exit(e)}function rb(e,t,n,r){let i=n.createTracker(r),l=i.move("[^"),o=n.enter("footnoteReference"),a=n.enter("reference");return l+=i.move(n.safe(n.associationId(e),{after:"]",before:l})),a(),o(),l+=i.move("]")}function rv(e,t,n){return 0===t?e:rk(e,t,n)}function rk(e,t,n){return(n?"":" ")+e}rb.peek=function(){return"["};let rw=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function rj(e){this.enter({type:"delete",children:[]},e)}function rN(e){this.exit(e)}function rC(e,t,n,r){let i=n.createTracker(r),l=n.enter("strikethrough"),o=i.move("~~");return o+=n.containerPhrasing(e,{...i.current(),before:o,after:"~"})+i.move("~~"),l(),o}function rS(e){return e.length}function rz(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}rC.peek=function(){return"~"};function rD(e,t,n){let r=e.value||"",i="`",l=-1;for(;RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++l<n.unsafe.length;){let e;let t=n.unsafe[l],i=n.compilePattern(t);if(t.atBreak)for(;e=i.exec(r);){let t=e.index;10===r.charCodeAt(t)&&13===r.charCodeAt(t-1)&&t--,r=r.slice(0,t)+" "+r.slice(e.index+1)}}return i+r+i}rD.peek=function(){return"`"},nm(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let rL={inlineCode:rD,listItem:function(e,t,n,r){let i=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),l=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(l=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+l);let o=l.length+1;("tab"===i||"mixed"===i&&(t&&"list"===t.type&&t.spread||e.spread))&&(o=4*Math.ceil(o/4));let a=n.createTracker(r);a.move(l+" ".repeat(o-l.length)),a.shift(o);let s=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,a.current()),function(e,t,n){return t?(n?"":" ".repeat(o))+e:(n?l:l+" ".repeat(o-l.length))+e});return s(),c}};function rM(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function rA(e){this.exit(e),this.data.inTable=void 0}function rE(e){this.enter({type:"tableRow",children:[]},e)}function rT(e){this.exit(e)}function rI(e){this.enter({type:"tableCell",children:[]},e)}function rP(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,rq));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function rq(e,t){return"|"===t?t:e}function rF(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function rR(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let r;let i=t.children,l=-1;for(;++l<i.length;){let e=i[l];if("paragraph"===e.type){r=e;break}}r===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function rO(e,t,n,r){let i=e.children[0],l="boolean"==typeof e.checked&&i&&"paragraph"===i.type,o="["+(e.checked?"x":" ")+"] ",a=n.createTracker(r);l&&a.move(o);let s=rL.listItem(e,t,n,{...r,...a.current()});return l&&(s=s.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+o})),s}let r_={tokenize:function(e,t,n){let r=0;return function t(l){return(87===l||119===l)&&r<3?(r++,e.consume(l),t):46===l&&3===r?(e.consume(l),i):n(l)};function i(e){return null===e?n(e):t(e)}},partial:!0},rB={tokenize:function(e,t,n){let r,i,l;return o;function o(t){return 46===t||95===t?e.check(rH,s,a)(t):null===t||e4(t)||e8(t)||45!==t&&e6(t)?s(t):(l=!0,e.consume(t),o)}function a(t){return 95===t?r=!0:(i=r,r=void 0),e.consume(t),o}function s(e){return i||r||!l?n(e):t(e)}},partial:!0},rU={tokenize:function(e,t){let n=0,r=0;return i;function i(o){return 40===o?(n++,e.consume(o),i):41===o&&r<n?l(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===o?e.check(rH,t,l)(o):null===o||e4(o)||e8(o)?t(o):(e.consume(o),i)}function l(t){return 41===t&&r++,e.consume(t),i}},partial:!0},rH={tokenize:function(e,t,n){return r;function r(o){return 33===o||34===o||39===o||41===o||42===o||44===o||46===o||58===o||59===o||63===o||95===o||126===o?(e.consume(o),r):38===o?(e.consume(o),l):93===o?(e.consume(o),i):60===o||null===o||e4(o)||e8(o)?t(o):n(o)}function i(e){return null===e||40===e||91===e||e4(e)||e8(e)?t(e):r(e)}function l(t){return eJ(t)?function t(i){return 59===i?(e.consume(i),r):eJ(i)?(e.consume(i),t):n(i)}(t):n(t)}},partial:!0},rV={tokenize:function(e,t,n){return function(t){return e.consume(t),r};function r(e){return eK(e)?n(e):t(e)}},partial:!0},r$={name:"wwwAutolink",tokenize:function(e,t,n){let r=this;return function(t){return 87!==t&&119!==t||!rJ.call(r,r.previous)||r0(r.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(r_,e.attempt(rB,e.attempt(rU,i),n),n)(t))};function i(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:rJ},rW={name:"protocolAutolink",tokenize:function(e,t,n){let r=this,i="",l=!1;return function(t){return(72===t||104===t)&&rK.call(r,r.previous)&&!r0(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),i+=String.fromCodePoint(t),e.consume(t),o):n(t)};function o(t){if(eJ(t)&&i.length<5)return i+=String.fromCodePoint(t),e.consume(t),o;if(58===t){let n=i.toLowerCase();if("http"===n||"https"===n)return e.consume(t),a}return n(t)}function a(t){return 47===t?(e.consume(t),l)?s:(l=!0,a):n(t)}function s(t){return null===t||eQ(t)||e4(t)||e8(t)||e6(t)?n(t):e.attempt(rB,e.attempt(rU,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:rK},rG={name:"emailAutolink",tokenize:function(e,t,n){let r,i;let l=this;return function(t){return!rQ(t)||!rZ.call(l,l.previous)||r0(l.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(r){return rQ(r)?(e.consume(r),t):64===r?(e.consume(r),o):n(r)}(t))};function o(t){return 46===t?e.check(rV,s,a)(t):45===t||95===t||eK(t)?(i=!0,e.consume(t),o):s(t)}function a(t){return e.consume(t),r=!0,o}function s(o){return i&&r&&eJ(l.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(o)):n(o)}},previous:rZ},rY={},rX=48;for(;rX<123;)rY[rX]=rG,58==++rX?rX=65:91===rX&&(rX=97);function rJ(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||e4(e)}function rK(e){return!eJ(e)}function rZ(e){return!(47===e||rQ(e))}function rQ(e){return 43===e||45===e||46===e||95===e||eK(e)}function r0(e){let t=e.length,n=!1;for(;t--;){let r=e[t][1];if(("labelLink"===r.type||"labelImage"===r.type)&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}rY[43]=rG,rY[45]=rG,rY[46]=rG,rY[95]=rG,rY[72]=[rG,rW],rY[104]=[rG,rW],rY[87]=[rG,r$],rY[119]=[rG,r$];let r1={tokenize:function(e,t,n){let r=this;return e7(e,function(e){let i=r.events[r.events.length-1];return i&&"gfmFootnoteDefinitionIndent"===i[1].type&&4===i[2].sliceSerialize(i[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function r5(e,t,n){let r;let i=this,l=i.events.length,o=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]);for(;l--;){let e=i.events[l][1];if("labelImage"===e.type){r=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(l){if(!r||!r._balanced)return n(l);let a=tw(i.sliceSerialize({start:r.end,end:i.now()}));return 94===a.codePointAt(0)&&o.includes(a.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l)):n(l)}}function r2(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;let l={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},o={type:"chunkString",contentType:"string",start:Object.assign({},l.start),end:Object.assign({},l.end)},a=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",l,t],["enter",o,t],["exit",o,t],["exit",l,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...a),e}function r4(e,t,n){let r;let i=this,l=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),a};function a(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",s)}function s(a){if(o>999||93===a&&!r||null===a||91===a||e4(a))return n(a);if(93===a){e.exit("chunkString");let r=e.exit("gfmFootnoteCallString");return l.includes(tw(i.sliceSerialize(r)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(a)}return e4(a)||(r=!0),o++,e.consume(a),92===a?c:s}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,s):s(t)}}function r3(e,t,n){let r,i;let l=this,o=l.parser.gfmFootnotes||(l.parser.gfmFootnotes=[]),a=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),s};function s(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(a>999||93===t&&!i||null===t||91===t||e4(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return r=tw(l.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),d}return e4(t)||(i=!0),a++,e.consume(t),92===t?u:c}function u(t){return 91===t||92===t||93===t?(e.consume(t),a++,c):c(t)}function d(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),o.includes(r)||o.push(r),e7(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function r6(e,t,n){return e.check(tr,t,e.attempt(r1,t,n))}function r8(e){e.exit("gfmFootnoteDefinition")}class r9{constructor(){this.map=[]}add(e,t,n){(function(e,t,n,r){let i=0;if(0!==n||0!==r.length){for(;i<e.map.length;){if(e.map[i][0]===t){e.map[i][1]+=n,e.map[i][2].push(...r);return}i+=1}e.map.push([t,n,r])}})(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let r=n.pop();for(;r;){for(let t of r)e.push(t);r=n.pop()}this.map.length=0}}function r7(e,t,n){let r;let i=this,l=0,o=0;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let r=t>-1?i.events[t][1].type:null,l="tableHead"===r||"tableRow"===r?y:a;return l===y&&i.parser.lazy[i.now().line]?n(e):l(e)};function a(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(r=!0,o+=1),s(t)}function s(t){return null===t?n(t):e2(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),d):n(t):e3(t)?e7(e,s,"whitespace")(t):(o+=1,r&&(r=!1,l+=1),124===t)?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,s):(e.enter("data"),c(t))}function c(t){return null===t||124===t||e4(t)?(e.exit("data"),s(t)):(e.consume(t),92===t?u:c)}function u(t){return 92===t||124===t?(e.consume(t),c):c(t)}function d(t){return(i.interrupt=!1,i.parser.lazy[i.now().line])?n(t):(e.enter("tableDelimiterRow"),r=!1,e3(t))?e7(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t)}function h(t){return 45===t||58===t?f(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):n(t)}function p(t){return e3(t)?e7(e,f,"whitespace")(t):f(t)}function f(t){return 58===t?(o+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(o+=1,m(t)):null===t||e2(t)?g(t):n(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(n))}(t)):n(t)}function x(t){return e3(t)?e7(e,g,"whitespace")(t):g(t)}function g(i){return 124===i?h(i):null===i||e2(i)?r&&l===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i):n(i)}function y(t){return e.enter("tableRow"),b(t)}function b(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),b):null===n||e2(n)?(e.exit("tableRow"),t(n)):e3(n)?e7(e,b,"whitespace")(n):(e.enter("data"),v(n))}function v(t){return null===t||124===t||e4(t)?(e.exit("data"),b(t)):(e.consume(t),92===t?k:v)}function k(t){return 92===t||124===t?(e.consume(t),v):v(t)}}function ie(e,t){let n,r,i,l=-1,o=!0,a=0,s=[0,0,0,0],c=[0,0,0,0],u=!1,d=0,h=new r9;for(;++l<e.length;){let p=e[l],f=p[1];"enter"===p[0]?"tableHead"===f.type?(u=!1,0!==d&&(ir(h,t,d,n,r),r=void 0,d=0),n={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",n,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(o=!0,i=void 0,s=[0,0,0,0],c=[0,l+1,0,0],u&&(u=!1,r={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(l,0,[["enter",r,t]])),a="tableDelimiterRow"===f.type?2:r?3:1):a&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(o=!1,0===c[2]&&(0!==s[1]&&(c[0]=c[1],i=it(h,t,s,a,void 0,i),s=[0,0,0,0]),c[2]=l)):"tableCellDivider"===f.type&&(o?o=!1:(0!==s[1]&&(c[0]=c[1],i=it(h,t,s,a,void 0,i)),c=[(s=c)[1],l,0,0])):"tableHead"===f.type?(u=!0,d=l):"tableRow"===f.type||"tableDelimiterRow"===f.type?(d=l,0!==s[1]?(c[0]=c[1],i=it(h,t,s,a,l,i)):0!==c[1]&&(i=it(h,t,c,a,l,i)),a=0):a&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(c[3]=l)}for(0!==d&&ir(h,t,d,n,r),h.consume(t.events),l=-1;++l<t.events.length;){let e=t.events[l];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,r=[];for(;t<e.length;){let i=e[t];if(n){if("enter"===i[0])"tableContent"===i[1].type&&r.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===i[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=r.length-1;r[e]="left"===r[e]?"center":"right"}}else if("tableDelimiterRow"===i[1].type)break}else"enter"===i[0]&&"tableDelimiterRow"===i[1].type&&(n=!0);t+=1}return r}(t.events,l))}return e}function it(e,t,n,r,i,l){0!==n[0]&&(l.end=Object.assign({},ii(t.events,n[0])),e.add(n[0],0,[["exit",l,t]]));let o=ii(t.events,n[1]);if(l={type:1===r?"tableHeader":2===r?"tableDelimiter":"tableData",start:Object.assign({},o),end:Object.assign({},o)},e.add(n[1],0,[["enter",l,t]]),0!==n[2]){let i=ii(t.events,n[2]),l=ii(t.events,n[3]),o={type:"tableContent",start:Object.assign({},i),end:Object.assign({},l)};if(e.add(n[2],0,[["enter",o,t]]),2!==r){let r=t.events[n[2]],i=t.events[n[3]];if(r[1].end=Object.assign({},i[1].end),r[1].type="chunkText",r[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,r=n[3]-n[2]-1;e.add(t,r,[])}}e.add(n[3]+1,0,[["exit",o,t]])}return void 0!==i&&(l.end=Object.assign({},ii(t.events,i)),e.add(i,0,[["exit",l,t]]),l=void 0),l}function ir(e,t,n,r,i){let l=[],o=ii(t.events,n);i&&(i.end=Object.assign({},o),l.push(["exit",i,t])),r.end=Object.assign({},o),l.push(["exit",r,t]),e.add(n+1,0,l)}function ii(e,t){let n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}let il={name:"tasklistCheck",tokenize:function(e,t,n){let r=this;return function(t){return null===r.previous&&r._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),i):n(t)};function i(t){return e4(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),l):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),l):n(t)}function l(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(t)}function o(r){return e2(r)?t(r):e3(r)?e.check({tokenize:io},t,n)(r):n(r)}}};function io(e,t,n){return e7(e,function(e){return null===e?n(e):t(e)},"whitespace")}let ia={};function is(e){let t;let n=e||ia,r=this.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),l=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),o=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(eX([{text:rY},{document:{91:{name:"gfmFootnoteDefinition",tokenize:r3,continuation:{tokenize:r6},exit:r8}},text:{91:{name:"gfmFootnoteCall",tokenize:r4},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:r5,resolveTo:r2}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,r){let i=this.previous,l=this.events,o=0;return function(a){return 126===i&&"characterEscape"!==l[l.length-1][1].type?r(a):(e.enter("strikethroughSequenceTemporary"),function l(a){let s=t$(i);if(126===a)return o>1?r(a):(e.consume(a),o++,l);if(o<2&&!t)return r(a);let c=e.exit("strikethroughSequenceTemporary"),u=t$(a);return c._open=!u||2===u&&!!s,c._close=!s||2===s&&!!u,n(a)}(a))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let r=n;for(;r--;)if("exit"===e[r][0]&&"strikethroughSequenceTemporary"===e[r][1].type&&e[r][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[r][1].end.offset-e[r][1].start.offset){e[n][1].type="strikethroughSequence",e[r][1].type="strikethroughSequence";let i={type:"strikethrough",start:Object.assign({},e[r][1].start),end:Object.assign({},e[n][1].end)},l={type:"strikethroughText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},o=[["enter",i,t],["enter",e[r][1],t],["exit",e[r][1],t],["enter",l,t]],a=t.parser.constructs.insideSpan.null;a&&eH(o,o.length,0,tO(a,e.slice(r+1,n),t)),eH(o,o.length,0,[["exit",l,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",i,t]]),eH(e,r-1,n-r+3,o),n=r+o.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:r7,resolveAll:ie}}},{text:{91:il}}])),l.push([{transforms:[ra],enter:{literalAutolink:rt,literalAutolinkEmail:rn,literalAutolinkHttp:rn,literalAutolinkWww:rn},exit:{literalAutolink:ro,literalAutolinkEmail:rl,literalAutolinkHttp:rr,literalAutolinkWww:ri}},{enter:{gfmFootnoteCallString:rd,gfmFootnoteCall:rh,gfmFootnoteDefinitionLabelString:rp,gfmFootnoteDefinition:rf},exit:{gfmFootnoteCallString:rm,gfmFootnoteCall:rx,gfmFootnoteDefinitionLabelString:rg,gfmFootnoteDefinition:ry}},{canContainEols:["delete"],enter:{strikethrough:rj},exit:{strikethrough:rN}},{enter:{table:rM,tableData:rI,tableHeader:rI,tableRow:rE},exit:{codeText:rP,table:rA,tableData:rT,tableHeader:rT,tableRow:rT}},{exit:{taskListCheckValueChecked:rF,taskListCheckValueUnchecked:rF,paragraph:rR}}]),o.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:n7,notInConstruct:re},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:n7,notInConstruct:re},{character:":",before:"[ps]",after:"\\/",inConstruct:n7,notInConstruct:re}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,r,i){let l=r.createTracker(i),o=l.move("[^"),a=r.enter("footnoteDefinition"),s=r.enter("label");return o+=l.move(r.safe(r.associationId(e),{before:o,after:"]"})),s(),o+=l.move("]:"),e.children&&e.children.length>0&&(l.shift(4),o+=l.move((t?"\n":" ")+r.indentLines(r.containerFlow(e,l.current()),t?rk:rv))),a(),o},footnoteReference:rb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:rw}],handlers:{delete:rC}},function(e){let t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,l=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:"\n",inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let r=rL.inlineCode(e,t,n);return n.stack.includes("tableCell")&&(r=r.replace(/\|/g,"\\$&")),r},table:function(e,t,n,r){return a(function(e,t,n){let r=e.children,i=-1,l=[],o=t.enter("table");for(;++i<r.length;)l[i]=s(r[i],t,n);return o(),l}(e,n,r),e.align)},tableCell:o,tableRow:function(e,t,n,r){let i=a([s(e,n,r)]);return i.slice(0,i.indexOf("\n"))}}};function o(e,t,n,r){let i=n.enter("tableCell"),o=n.enter("phrasing"),a=n.containerPhrasing(e,{...r,before:l,after:l});return o(),i(),a}function a(e,t){return function(e,t){let n=t||{},r=(n.align||[]).concat(),i=n.stringLength||rS,l=[],o=[],a=[],s=[],c=0,u=-1;for(;++u<e.length;){let t=[],r=[],l=-1;for(e[u].length>c&&(c=e[u].length);++l<e[u].length;){var d;let o=null==(d=e[u][l])?"":String(d);if(!1!==n.alignDelimiters){let e=i(o);r[l]=e,(void 0===s[l]||e>s[l])&&(s[l]=e)}t.push(o)}o[u]=t,a[u]=r}let h=-1;if("object"==typeof r&&"length"in r)for(;++h<c;)l[h]=rz(r[h]);else{let e=rz(r);for(;++h<c;)l[h]=e}h=-1;let p=[],f=[];for(;++h<c;){let e=l[h],t="",r="";99===e?(t=":",r=":"):108===e?t=":":114===e&&(r=":");let i=!1===n.alignDelimiters?1:Math.max(1,s[h]-t.length-r.length),o=t+"-".repeat(i)+r;!1!==n.alignDelimiters&&((i=t.length+i+r.length)>s[h]&&(s[h]=i),f[h]=i),p[h]=o}o.splice(1,0,p),a.splice(1,0,f),u=-1;let m=[];for(;++u<o.length;){let e=o[u],t=a[u];h=-1;let r=[];for(;++h<c;){let i=e[h]||"",o="",a="";if(!1!==n.alignDelimiters){let e=s[h]-(t[h]||0),n=l[h];114===n?o=" ".repeat(e):99===n?e%2?(o=" ".repeat(e/2+.5),a=" ".repeat(e/2-.5)):a=o=" ".repeat(e/2):a=" ".repeat(e)}!1===n.delimiterStart||h||r.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===i)&&(!1!==n.delimiterStart||h)&&r.push(" "),!1!==n.alignDelimiters&&r.push(o),r.push(i),!1!==n.alignDelimiters&&r.push(a),!1!==n.padding&&r.push(" "),(!1!==n.delimiterEnd||h!==c-1)&&r.push("|")}m.push(!1===n.delimiterEnd?r.join("").replace(/ +$/,""):r.join(""))}return m.join("\n")}(e,{align:t,alignDelimiters:r,padding:n,stringLength:i})}function s(e,t,n){let r=e.children,i=-1,l=[],a=t.enter("tableRow");for(;++i<r.length;)l[i]=o(r[i],e,t,n);return a(),l}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:rO}}]})}var ic=n(76348);function iu({node:e,onClose:t}){return e.description?(0,ic.createPortal)(l.jsx("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/40 backdrop-blur-sm",onClick:t,children:(0,l.jsxs)("div",{className:"bg-white rounded-xl shadow-2xl w-[90vw] max-w-2xl max-h-[80vh] flex flex-col",onClick:e=>e.stopPropagation(),children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600 shrink-0",children:e.id}),l.jsx("span",{className:"text-sm font-semibold text-zinc-900 truncate",children:e.title})]}),l.jsx("button",{onClick:t,className:"shrink-0 p-1 text-zinc-400 hover:text-zinc-600 transition-colors",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto px-5 py-4 custom-scrollbar description-markdown text-sm text-zinc-700 leading-relaxed",children:l.jsx(n6,{remarkPlugins:[is],children:e.description})})]})}),document.body):null}function id({className:e="w-3 h-3",filled:t=!1}){return t?l.jsx("svg",{className:e,viewBox:"0 0 24 24",fill:"currentColor",children:l.jsx("path",{d:"M11.645 20.91l-.007-.003-.022-.012a15.247 15.247 0 01-.383-.218 25.18 25.18 0 01-4.244-3.17C4.688 15.36 2.25 12.174 2.25 8.25 2.25 5.322 4.714 3 7.688 3A5.5 5.5 0 0112 5.052 5.5 5.5 0 0116.313 3c2.973 0 5.437 2.322 5.437 5.25 0 3.925-2.438 7.111-4.739 9.256a25.175 25.175 0 01-4.244 3.17 15.247 15.247 0 01-.383.219l-.022.012-.007.004-.003.001a.752.752 0 01-.704 0l-.003-.001z"})}):l.jsx("svg",{className:e,fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 8.25c0-2.485-2.099-4.5-4.688-4.5-1.935 0-3.597 1.126-4.312 2.733-.715-1.607-2.377-2.733-4.313-2.733C5.1 3.75 3 5.765 3 8.25c0 7.22 9 12 9 12s9-4.78 9-12z"})})}function ih(e){let t=new Date(e),n=Math.floor((new Date().getTime()-t.getTime())/1e3);if(n<60)return"just now";let r=Math.floor(n/60);if(r<60)return`${r}m ago`;let i=Math.floor(r/60);if(i<24)return`${i}h ago`;let l=Math.floor(i/24);return l<7?`${l}d ago`:t.toLocaleDateString("en-US",{month:"short",day:"numeric"})}function ip({node:e,allNodes:t,onNodeNavigate:n,comments:r,onPostComment:i,onDeleteComment:h,onLikeComment:m,onReplyComment:x,isAuthenticated:g,currentDid:y,repoUrls:b}){let[v,k]=(0,o.useState)(null),[w,j]=(0,o.useState)(""),[N,C]=(0,o.useState)(!1),[S,z]=(0,o.useState)(!1),D=e=>{k(e.uri),j("")},L=()=>{k(null),j("")},M=async()=>{if(w.trim()&&v&&x){C(!0);try{let e=t=>{for(let n of t){if(n.uri===v)return n;let t=e(n.replies);if(t)return t}},t=r?e(r):void 0;t&&await x(t,w.trim()),k(null),j("")}catch(e){console.error("Failed to post reply:",e)}finally{C(!1)}}};if(!e)return(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("div",{className:"w-12 h-12 rounded-full bg-zinc-100 flex items-center justify-center mb-4",children:l.jsx("svg",{className:"w-6 h-6 text-zinc-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"})})}),l.jsx("p",{className:"text-sm text-zinc-500 leading-relaxed",children:"Click a node to see details"}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Hover to highlight connections"})]});let A=d[e.issueType]||"\uD83D\uDCCB",E=a[e.status]||a.open,T=s[e.status]||e.status,I=c[e.priority]||`P${e.priority}`,P=u[e.priority]||"#a1a1aa",q=p[e.prefix]||e.prefix,F=f[e.prefix]||"#a1a1aa",R=b?.[e.prefix],O=e.blockerIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),_=e.dependentIds.map(e=>t.find(t=>t.id===e)).filter(Boolean),B=e=>{try{let t=new Date(e),n=t.toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),r=t.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!1});return`${n} at ${r}`}catch{return e}};return(0,l.jsxs)("div",{className:"animate-fade-in",children:[(0,l.jsxs)("div",{className:"flex items-start gap-3 mb-4",children:[l.jsx("span",{className:"text-2xl mt-0.5",children:A}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("div",{className:"flex items-center gap-2",children:l.jsx("span",{className:"text-xs font-mono font-semibold text-emerald-600",children:e.id})}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-900 mt-1 leading-snug",children:e.title})]})]}),(0,l.jsxs)("div",{className:"flex flex-wrap gap-2 mb-4",children:[(0,l.jsxs)("span",{className:"status-badge",style:{backgroundColor:E+"18",color:E,border:`1px solid ${E}30`},children:[l.jsx("span",{className:"w-1.5 h-1.5 rounded-full mr-1.5",style:{backgroundColor:E}}),T]}),l.jsx("span",{className:"status-badge",style:{backgroundColor:P+"15",color:P,border:`1px solid ${P}25`},children:I}),R?(0,l.jsxs)("a",{href:R,target:"_blank",rel:"noopener noreferrer",className:"status-badge hover:opacity-80 transition-opacity",style:{backgroundColor:F+"15",color:F,border:`1px solid ${F}25`,textDecoration:"none"},children:[q,l.jsx("svg",{className:"w-2.5 h-2.5 ml-1 opacity-50",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M13.5 6H5.25A2.25 2.25 0 003 8.25v10.5A2.25 2.25 0 005.25 21h10.5A2.25 2.25 0 0018 18.75V10.5m-10.5 6L21 3m0 0h-5.25M21 3v5.25"})})]}):l.jsx("span",{className:"status-badge",style:{backgroundColor:F+"15",color:F,border:`1px solid ${F}25`},children:q})]}),R&&l.jsx("div",{className:"mb-4",children:(0,l.jsxs)("a",{href:R,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1.5 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 0c4.42 0 8 3.58 8 8a8.013 8.013 0 0 1-5.45 7.59c-.4.08-.55-.17-.55-.38 0-.27.01-1.13.01-2.2 0-.75-.25-1.23-.54-1.48 1.78-.2 3.65-.88 3.65-3.95 0-.88-.31-1.59-.82-2.15.08-.2.36-1.02-.08-2.12 0 0-.67-.22-2.2.82-.64-.18-1.32-.27-2-.27-.68 0-1.36.09-2 .27-1.53-1.03-2.2-.82-2.2-.82-.44 1.1-.16 1.92-.08 2.12-.51.56-.82 1.28-.82 2.15 0 3.06 1.86 3.75 3.64 3.95-.23.2-.44.55-.51 1.07-.46.21-1.61.55-2.33-.66-.15-.24-.6-.83-1.23-.82-.67.01-.27.38.01.53.34.19.73.9.82 1.13.16.45.68 1.31 2.69.94 0 .67.01 1.3.01 1.49 0 .21-.15.45-.55.38A7.995 7.995 0 0 1 0 8c0-4.42 3.58-8 8-8Z"})}),R.replace(/^https?:\/\//,"")]})}),(0,l.jsxs)("div",{className:"grid grid-cols-2 gap-3 mb-4",children:[l.jsx(ix,{label:"Blocks",value:e.blockerCount,color:e.blockerCount>0?"#f59e0b":void 0}),l.jsx(ix,{label:"Blocked by",value:e.dependentCount,color:e.dependentCount>0?"#ef4444":void 0})]}),(0,l.jsxs)("div",{className:"space-y-1.5 mb-4 text-xs text-zinc-500",children:[(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Created"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:B(e.createdAt)})]}),(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Updated"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:B(e.updatedAt)})]}),e.closedAt&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Closed"}),l.jsx("span",{className:"text-zinc-700 font-medium",children:B(e.closedAt)})]}),e.closeReason&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Reason"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.closeReason})]}),e.owner&&(0,l.jsxs)("div",{className:"flex justify-between",children:[l.jsx("span",{children:"Owner"}),l.jsx("span",{className:"text-zinc-700 font-medium truncate ml-2",children:e.owner})]})]}),e.description&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between mb-2",children:[l.jsx("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider",children:"Description"}),l.jsx("button",{onClick:()=>z(!0),className:"text-[10px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"View in window"})]}),l.jsx("div",{className:"text-xs text-zinc-600 leading-relaxed bg-zinc-50 rounded-lg p-3 max-h-40 overflow-y-auto custom-scrollbar border border-zinc-100 description-markdown",children:l.jsx(n6,{remarkPlugins:[is],children:e.description})})]}),S&&e.description&&l.jsx(iu,{node:e,onClose:()=>z(!1)}),O.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocks (",O.length,")"]}),l.jsx("div",{className:"space-y-1",children:O.map(e=>l.jsx(ig,{node:e,onClick:()=>n(e.id)},e.id))})]}),_.length>0&&(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Blocked by (",_.length,")"]}),l.jsx("div",{className:"space-y-1",children:_.map(e=>l.jsx(ig,{node:e,onClick:()=>n(e.id)},e.id))})]}),(0,l.jsxs)("div",{className:"mb-4",children:[(0,l.jsxs)("h4",{className:"text-xs font-semibold text-zinc-500 uppercase tracking-wider mb-2",children:["Comments"," ",r&&r.length>0&&l.jsx("span",{className:"ml-1 px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:r.length})]}),r&&r.length>0?l.jsx("div",{className:"space-y-1",children:r.map(e=>l.jsx(iy,{comment:e,currentDid:y,isAuthenticated:g,onDelete:h,onLike:m,onStartReply:D,replyingToUri:v,replyText:w,onReplyTextChange:j,onSubmitReply:M,onCancelReply:L,isSubmittingReply:N,depth:0},e.uri))}):l.jsx("p",{className:"text-xs text-zinc-400 italic",children:"No comments yet"}),g&&i?l.jsx(ib,{onSubmit:i}):g?null:l.jsx("p",{className:"text-xs text-zinc-400 mt-2",children:"Sign in to leave a comment"})]})]})}function im({replyingTo:e,replyText:t,onTextChange:n,onSubmit:r,onCancel:i,isSubmitting:o}){return(0,l.jsxs)("div",{className:"mt-2 ml-4 pl-3 border-l border-emerald-200 space-y-1.5",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 text-[10px] text-zinc-400",children:[l.jsx("span",{children:"Replying to"}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-600 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle})]}),(0,l.jsxs)("div",{className:"flex gap-2",children:[l.jsx("input",{type:"text",value:t,onChange:e=>n(e.target.value),onKeyDown:e=>{"Enter"!==e.key||e.shiftKey||r()},placeholder:"Write a reply...",disabled:o,autoFocus:!0,className:"flex-1 px-2 py-1 text-xs bg-white border border-zinc-200 rounded placeholder-zinc-400 focus:outline-none focus:border-emerald-400 disabled:opacity-50"}),l.jsx("button",{onClick:r,disabled:!t.trim()||o,className:"px-2 py-1 text-[10px] font-medium text-emerald-600 hover:text-emerald-700 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:o?"...":"Reply"}),l.jsx("button",{onClick:i,disabled:o,className:"px-2 py-1 text-[10px] text-zinc-400 hover:text-zinc-600 disabled:opacity-50 transition-colors",children:"Cancel"})]})]})}function ix({label:e,value:t,color:n}){return(0,l.jsxs)("div",{className:"bg-zinc-50 rounded-lg p-3 border border-zinc-100",children:[l.jsx("div",{className:"text-xl font-bold",style:{color:n||"#3f3f46"},children:t}),l.jsx("div",{className:"text-[10px] text-zinc-400 uppercase tracking-wider mt-0.5",children:e})]})}function ig({node:e,onClick:t}){let n=a[e.status]||a.open;return(0,l.jsxs)("button",{onClick:t,className:"w-full flex items-center gap-2 px-2.5 py-1.5 rounded-md hover:bg-zinc-50 transition-colors text-left group border border-transparent hover:border-zinc-200",children:[l.jsx("span",{className:"w-2 h-2 rounded-full shrink-0",style:{backgroundColor:n}}),l.jsx("span",{className:"text-xs font-mono text-emerald-600 group-hover:text-emerald-700 shrink-0",children:e.id}),l.jsx("span",{className:"text-xs text-zinc-500 truncate",children:e.title})]})}function iy({comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:a,replyingToUri:s,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:h,isSubmittingReply:p,depth:f}){let[m,x]=(0,o.useState)(!1),[g,y]=(0,o.useState)(!1),b=t&&t===e.did,v=!!t&&e.likes.some(e=>e.did===t),k=s===e.uri,w=async()=>{if(r&&!m){x(!0);try{await r(e)}catch(e){console.error("Failed to delete comment:",e)}finally{x(!1)}}},j=async()=>{if(i&&!g){y(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{y(!1)}}};return(0,l.jsxs)("div",{className:`${f>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:"py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:ih(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:j,disabled:!n||g,className:`flex items-center gap-0.5 transition-colors ${v?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(id,{className:"w-3 h-3",filled:v}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),l.jsx("button",{onClick:()=>a(e),disabled:!n,className:`transition-colors disabled:opacity-50 ${k?"text-emerald-500":"text-zinc-300 hover:text-zinc-500"}`,children:"reply"}),b&&r&&l.jsx("button",{onClick:w,disabled:m,className:"ml-auto shrink-0 text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:m?"...":"delete"})]})]}),k&&l.jsx(im,{replyingTo:e,replyText:c,onTextChange:u,onSubmit:d,onCancel:h,isSubmitting:p}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(iy,{comment:e,currentDid:t,isAuthenticated:n,onDelete:r,onLike:i,onStartReply:a,replyingToUri:s,replyText:c,onReplyTextChange:u,onSubmitReply:d,onCancelReply:h,isSubmittingReply:p,depth:f+1},e.uri))})]})}function ib({onSubmit:e}){let[t,n]=(0,o.useState)(""),[r,i]=(0,o.useState)(!1),a=async()=>{if(t.trim()&&!r){i(!0);try{await e(t.trim()),n("")}catch(e){console.error("Failed to post comment:",e)}finally{i(!1)}}};return(0,l.jsxs)("div",{className:"mt-3 space-y-2",children:[l.jsx("textarea",{value:t,onChange:e=>n(e.target.value),placeholder:"Leave a comment...",rows:2,className:"w-full px-2.5 py-1.5 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),l.jsx("button",{onClick:a,disabled:!t.trim()||r,className:"px-3 py-1 text-xs font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:r?"Sending...":"Comment"})]})}var iv=n(67960);function ik(){let{isAuthenticated:e,isLoading:t,session:n,login:r,logout:i}=(0,iv.a)(),[a,s]=(0,o.useState)(!1),[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(""),[p,f]=(0,o.useState)(!1),[m,x]=(0,o.useState)(""),g=(0,o.useRef)(null),y=async e=>{if(e.preventDefault(),d.trim()){f(!0),x("");try{await r(d.trim())}catch(e){x(e instanceof Error?e.message:"Login failed"),f(!1)}}},b=async()=>{u(!1),await i()};return t?l.jsx("div",{className:"w-4 h-4 rounded-full border-2 border-zinc-200 border-t-zinc-400 animate-spin"}):e&&n?(0,l.jsxs)("div",{className:"relative",ref:g,children:[(0,l.jsxs)("button",{onClick:()=>u(e=>!e),className:"flex items-center gap-2 px-3 py-1.5 rounded-full hover:bg-zinc-50 transition-colors cursor-pointer",children:[n.avatar?l.jsx("img",{src:n.avatar,alt:n.handle,width:24,height:24,className:"rounded-full"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-emerald-100 flex items-center justify-center text-[11px] text-emerald-700 font-medium",children:(n.displayName||n.handle).charAt(0).toUpperCase()}),l.jsx("span",{className:"text-sm text-zinc-600 max-w-[100px] truncate",children:n.displayName||n.handle})]}),c&&(0,l.jsxs)("div",{className:"absolute right-0 top-full mt-2 w-44 bg-white rounded-xl shadow-xl border border-zinc-100 py-2 z-50",children:[(0,l.jsxs)("a",{href:n.did?`https://www.impactindexer.org/data?did=${n.did}`:"#",target:"_blank",rel:"noopener noreferrer",className:"block px-3 py-1.5 text-xs text-zinc-400 truncate hover:text-emerald-600 transition-colors",children:["@",n.handle]}),l.jsx("div",{className:"h-px bg-zinc-100 my-1"}),(0,l.jsxs)("button",{onClick:b,className:"flex items-center gap-2 w-full px-3 py-1.5 text-xs text-zinc-600 hover:bg-zinc-50 transition-colors cursor-pointer",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0-3-3m0 0 3-3m-3 3H15"})}),"Sign out"]})]})]}):(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>s(!0),className:"px-4 py-1.5 text-sm font-medium text-zinc-600 rounded-full hover:text-zinc-900 hover:bg-zinc-50 transition-colors cursor-pointer whitespace-nowrap",children:"Sign in"}),a&&(0,l.jsxs)("div",{className:"fixed inset-0 z-50 flex items-start justify-center pt-[20vh]",onClick:()=>s(!1),children:[l.jsx("div",{className:"absolute inset-0 bg-black/20 backdrop-blur-sm"}),(0,l.jsxs)("div",{className:"relative w-full max-w-sm mx-4 bg-white rounded-xl shadow-lg border border-zinc-200 p-6",onClick:e=>e.stopPropagation(),children:[l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Sign in with ATProto"}),l.jsx("p",{className:"text-sm text-zinc-400 mb-5",children:"Enter your Bluesky handle to connect."}),(0,l.jsxs)("form",{onSubmit:y,children:[l.jsx("label",{htmlFor:"auth-handle",className:"block text-sm text-zinc-600 mb-1.5",children:"Handle"}),l.jsx("input",{id:"auth-handle",type:"text",value:d,onChange:e=>h(e.target.value),placeholder:"alice.bsky.social",disabled:p,autoFocus:!0,className:"w-full px-3 py-2 text-sm bg-white border border-zinc-200 rounded-lg placeholder:text-zinc-300 focus:outline-none focus:ring-2 focus:ring-emerald-500/30 focus:border-emerald-400 disabled:opacity-50 disabled:cursor-not-allowed"}),l.jsx("p",{className:"text-xs text-zinc-300 mt-1.5",children:"Just a username? We'll add .bsky.social for you."}),m&&l.jsx("p",{className:"text-sm text-red-500 mt-2",children:m}),(0,l.jsxs)("div",{className:"flex gap-2 mt-5",children:[l.jsx("button",{type:"button",onClick:()=>s(!1),disabled:p,className:"flex-1 px-3 py-2 text-sm text-zinc-600 bg-zinc-50 rounded-lg hover:bg-zinc-100 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:"Cancel"}),l.jsx("button",{type:"submit",disabled:p||!d.trim(),className:"flex-1 px-3 py-2 text-sm text-white bg-emerald-600 rounded-lg hover:bg-emerald-700 transition-colors disabled:opacity-50 disabled:cursor-not-allowed",children:p?"Connecting...":"Connect"})]})]})]})]})]})}function iw({className:e}){return(0,l.jsxs)("svg",{viewBox:"0 0 32 32",fill:"none",className:e,"aria-hidden":"true",children:[l.jsx("polygon",{points:"16,3 27,9.5 27,22.5 16,29 5,22.5 5,9.5",stroke:"currentColor",strokeWidth:"1.2",fill:"none",opacity:"0.7",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"0 16 16;360 16 16",dur:"40s",repeatCount:"indefinite"})}),l.jsx("polygon",{points:"16,8 22.5,11.5 22.5,20.5 16,24 9.5,20.5 9.5,11.5",stroke:"currentColor",strokeWidth:"0.8",fill:"none",opacity:"0.35",strokeLinejoin:"round",children:l.jsx("animateTransform",{attributeName:"transform",type:"rotate",values:"360 16 16;0 16 16",dur:"30s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"3",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"0.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"27",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"16",y2:"29",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"1.5s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"22.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2s"})}),l.jsx("line",{x1:"16",y1:"16",x2:"5",y2:"9.5",stroke:"currentColor",strokeWidth:"0.6",opacity:"0.2",children:l.jsx("animate",{attributeName:"opacity",values:"0.15;0.35;0.15",dur:"3s",repeatCount:"indefinite",begin:"2.5s"})}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"2.5",fill:"currentColor",opacity:"0.8",children:[l.jsx("animate",{attributeName:"r",values:"2;3;2",dur:"3s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.7;1;0.7",dur:"3s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"3",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.4s"})]}),(0,l.jsxs)("circle",{cx:"27",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"0.8s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"29",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.2s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"22.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"1.6s"})]}),(0,l.jsxs)("circle",{cx:"5",cy:"9.5",r:"1.5",fill:"currentColor",opacity:"0.5",children:[l.jsx("animate",{attributeName:"r",values:"1.2;2;1.2",dur:"2.5s",repeatCount:"indefinite",begin:"2s"}),l.jsx("animate",{attributeName:"opacity",values:"0.4;0.7;0.4",dur:"2.5s",repeatCount:"indefinite",begin:"2s"})]}),(0,l.jsxs)("circle",{cx:"16",cy:"16",r:"10",stroke:"currentColor",strokeWidth:"0.4",fill:"none",opacity:"0.15",children:[l.jsx("animate",{attributeName:"r",values:"9;11;9",dur:"4s",repeatCount:"indefinite"}),l.jsx("animate",{attributeName:"opacity",values:"0.1;0.25;0.1",dur:"4s",repeatCount:"indefinite"})]})]})}function ij({node:e,x:t,y:n,onClose:r,onSubmit:i,isAuthenticated:a,existingComments:s}){let[c,u]=(0,o.useState)(""),[d,h]=(0,o.useState)(!1),p=(0,o.useRef)(null),m=(0,o.useRef)(null),[x,g]=(0,o.useState)({x:0,y:0}),[y,b]=(0,o.useState)(!1),v=(0,o.useCallback)(async()=>{if(c.trim()&&!d){h(!0);try{await i(c.trim()),u("")}catch(e){console.error("Failed to post comment:",e)}finally{h(!1)}}},[c,d,i]),k=(0,o.useCallback)(e=>{(e.metaKey||e.ctrlKey)&&"Enter"===e.key&&(e.preventDefault(),v())},[v]),w=f[e.prefix]||"#a1a1aa",j=s?.length||0;return(0,l.jsxs)("div",{ref:p,style:{position:"fixed",left:x.x,top:x.y,width:320,zIndex:100,opacity:y?1:0,transform:y?"translateY(0)":"translateY(4px)",transition:"opacity 0.2s ease, transform 0.2s ease"},className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",onContextMenu:e=>e.preventDefault(),children:[l.jsx("style",{children:`
|
|
2
2
|
.comment-tooltip-shadow {
|
|
3
3
|
box-shadow: 0 8px 32px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.08);
|
|
4
4
|
}
|
|
5
|
-
`}),(0,l.jsxs)("div",{className:"comment-tooltip-shadow p-[18px_20px]",children:[l.jsx("div",{className:"rounded-sm mb-2.5",style:{width:24,height:2,background:w,opacity:.6}}),(0,l.jsxs)("div",{className:"mb-3",children:[l.jsx("span",{className:"text-xs font-mono text-emerald-600",children:e.id}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-800 leading-tight mt-0.5",children:e.title})]}),j>0&&s&&(0,l.jsxs)("div",{className:"mb-3 pb-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-blue-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),(0,l.jsxs)("span",{className:"text-[10px] font-medium text-zinc-500 uppercase tracking-wider",children:[j," comment",1!==j?"s":""]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[s.slice(0,2).map(e=>(0,l.jsxs)("div",{className:"flex gap-1.5",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden mt-0.5",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[7px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] font-medium text-zinc-500 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle}),l.jsx("p",{className:"text-[11px] text-zinc-500 line-clamp-2 leading-tight",children:e.text})]})]},e.uri)),j>2&&(0,l.jsxs)("p",{className:"text-[10px] text-zinc-400 italic",children:["+",j-2," more — see detail panel"]})]})]}),a?(0,l.jsxs)("div",{children:[l.jsx("textarea",{ref:f,value:c,onChange:e=>u(e.target.value),onKeyDown:k,placeholder:"Leave a comment...",rows:3,className:"w-full px-2.5 py-2 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-300",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","+Enter to send"]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:r,className:"px-2.5 py-1 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"Cancel"}),l.jsx("button",{onClick:v,disabled:!c.trim()||d,className:"px-3 py-1 text-[11px] font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:d?(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsxs)("svg",{className:"w-3 h-3 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending"]}):"Send"})]})]})]}):(0,l.jsxs)("div",{className:"text-center py-3",children:[l.jsx("svg",{className:"w-5 h-5 text-zinc-300 mx-auto mb-1.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"Sign in to comment"})]})]})]})}function iw({node:e,x:t,y:n,onShowDescription:r,onAddComment:i,onClaimTask:a,onUnclaimTask:s,onClose:c}){let u=(0,o.useRef)(null),[d,p]=(0,o.useState)({x:0,y:0}),[h,f]=(0,o.useState)(!1);return l.jsx("div",{ref:u,style:{position:"fixed",left:d.x,top:d.y,zIndex:100,opacity:h?1:0,transform:h?"translateY(0)":"translateY(2px)",transition:"opacity 0.15s ease, transform 0.15s ease"},onContextMenu:e=>e.preventDefault(),children:(0,l.jsxs)("div",{className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",style:{minWidth:180,boxShadow:"0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06)"},children:[e.description&&(0,l.jsxs)("button",{onClick:r,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors border-b border-zinc-100",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Show description"]}),(0,l.jsxs)("button",{onClick:i,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${a||s?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),"Add comment"]}),a&&(0,l.jsxs)("button",{onClick:a,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})}),"Claim task"]}),s&&(0,l.jsxs)("button",{onClick:s,className:"w-full px-3 py-2.5 text-xs text-red-500 hover:bg-red-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-red-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10.5h-6m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z"})}),"Unclaim task"]})]})})}function ij({isOpen:e,onClose:t,allComments:n,onNodeNavigate:r,isAuthenticated:i,currentDid:o,onLikeComment:a,onDeleteComment:s}){return(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${e?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"All Comments"}),n.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:n.length})]}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-3",children:n.length>0?l.jsx("div",{className:"space-y-0",children:n.filter(e=>!e.replyTo).map(e=>l.jsx(iN,{comment:e,currentDid:o,isAuthenticated:i,onNodeNavigate:r,onLike:a,onDelete:s,depth:0},e.uri))}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"No comments yet"}),l.jsx("p",{className:"text-[10px] text-zinc-300 mt-1",children:"Right-click a node to leave a comment"})]})}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[n.length," comment",1!==n.length?"s":""," across all issues"]})})]})}function iN({comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:a,depth:s}){let[c,u]=(0,o.useState)(!1),[d,p]=(0,o.useState)(!1),h=t&&t===e.did,f=!!t&&e.likes.some(e=>e.did===t),m=async()=>{if(i&&!c){u(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{u(!1)}}},x=async()=>{if(a&&!d){p(!0);try{await a(e)}catch(e){console.error("Failed to delete comment:",e)}finally{p(!1)}}};return(0,l.jsxs)("div",{className:`${s>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:`py-3 ${0===s?"border-b border-zinc-50":""}`,children:[0===s&&l.jsx("button",{onClick:()=>r(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 mb-1.5 rounded text-[10px] font-mono bg-emerald-50 text-emerald-600 hover:bg-emerald-100 transition-colors",children:e.nodeId}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:iu(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:m,disabled:!n||c,className:`flex items-center gap-0.5 transition-colors ${f?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(ic,{className:"w-3 h-3",filled:f}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),h&&a&&l.jsx("button",{onClick:x,disabled:d,className:"ml-auto text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:d?"...":"delete"})]})]}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(iN,{comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:a,depth:s+1},e.uri))})]})}function iC({type:e,className:t}){let n=t||"w-3.5 h-3.5 shrink-0";switch(e){case"node-created":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("line",{x1:"8",y1:"5",x2:"8",y2:"11"}),l.jsx("line",{x1:"5",y1:"8",x2:"11",y2:"8"})]});case"node-closed":return(0,l.jsxs)("svg",{className:`${n} text-zinc-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"5.5,8 7.5,10 10.5,6"})]});case"node-status-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 8h10M10 5l3 3-3 3"})});case"node-priority-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M8 3v7M5 6l3-3 3 3M4 13h8"})});case"node-title-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 4h10M3 8h6M3 12h8"})});case"node-owner-changed":return(0,l.jsxs)("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"6",cy:"6",r:"2.5"}),l.jsx("path",{d:"M1.5 13c0-2 1.8-3.5 4.5-3.5M10 9l2 2 3-3"})]});case"link-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M6.5 9.5l3-3M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"})});case"link-removed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("path",{d:"M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"}),l.jsx("line",{x1:"3",y1:"3",x2:"13",y2:"13",strokeWidth:"1.5"})]});case"comment-added":case"reply-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M2 4.5a1.5 1.5 0 011.5-1.5h9A1.5 1.5 0 0114 4.5v5a1.5 1.5 0 01-1.5 1.5H5L2 14V4.5z"})});case"task-claimed":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"})]});case"task-unclaimed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"}),l.jsx("line",{x1:"11",y1:"3",x2:"13",y2:"5"})]});case"like-added":return l.jsx("svg",{className:`${n} text-rose-400`,viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 13.7l-.6-.5C4 10.2 2 8.3 2 6a3 3 0 016-1 3 3 0 016 1c0 2.3-2 4.2-5.4 7.2l-.6.5z"})})}}function iS(e){switch(e){case"node-created":case"task-claimed":return"bg-emerald-400";case"node-closed":return"bg-zinc-300";case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"bg-amber-400";case"link-added":case"comment-added":case"reply-added":return"bg-blue-400";case"link-removed":case"task-unclaimed":return"bg-red-300";case"like-added":return"bg-rose-300"}}function iz(e){switch(e.type){case"node-created":{let t=e.meta?.issueType||"task";return`${t} created`}case"node-closed":return`closed${e.detail&&"Closed"!==e.detail?` (${e.detail})`:""}`;case"node-status-changed":return e.detail||"status changed";case"node-priority-changed":return`priority ${e.detail||"changed"}`;case"node-title-changed":return"title updated";case"node-owner-changed":return`owner ${e.detail||"changed"}`;case"link-added":return`dep added: ${e.meta?.target||""}`;case"link-removed":return`dep removed: ${e.meta?.target||""}`;case"comment-added":return e.detail||"commented";case"reply-added":return e.detail||"replied";case"task-claimed":return"claimed this task";case"task-unclaimed":return"unclaimed this task";case"like-added":return e.detail||"liked a comment"}}function iD({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 group hover:bg-zinc-50/60 transition-colors",children:[l.jsx("div",{className:`w-1 h-1 rounded-full shrink-0 ${iS(e.type)}`}),l.jsx(iC,{type:e.type,className:"w-3 h-3 shrink-0"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0 text-[11px] text-zinc-600 truncate",children:[e.actor?(0,l.jsxs)(l.Fragment,{children:[e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-800 hover:text-emerald-600 transition-colors",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-medium text-zinc-800",children:e.actor.handle.split(".")[0]})," "]}):t?(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>t(e.nodeId),className:"font-medium text-zinc-700 hover:text-emerald-600 transition-colors",children:e.nodeId})," "]}):null,l.jsx("span",{className:"text-zinc-500",children:iz(e)})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums opacity-0 group-hover:opacity-100 transition-opacity",children:iu(new Date(e.time).toISOString())})]})}function iA({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex gap-3 py-3 px-4 hover:bg-zinc-50/50 transition-colors group",children:[l.jsx("div",{className:`w-0.5 self-stretch rounded-full shrink-0 ${iS(e.type)}`}),l.jsx("div",{className:"mt-0.5 shrink-0",children:e.actor?.avatar?l.jsx("img",{src:e.actor.avatar,alt:e.actor.handle,className:"w-7 h-7 rounded-full ring-1 ring-zinc-100"}):e.actor?l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-100 flex items-center justify-center text-[11px] font-medium text-zinc-500",children:e.actor.handle.charAt(0).toUpperCase()}):l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-50 flex items-center justify-center",children:l.jsx(iC,{type:e.type,className:"w-3.5 h-3.5"})})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-baseline gap-1.5 text-[12px] leading-snug",children:[e.actor&&(e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors truncate max-w-[140px]",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-semibold text-zinc-800 truncate max-w-[140px]",children:e.actor.handle.split(".")[0]})),l.jsx("span",{className:"text-zinc-500",children:iz(e)})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mt-1",children:[t&&l.jsx("button",{onClick:()=>t(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-mono font-medium text-emerald-700 bg-emerald-50 rounded-md hover:bg-emerald-100 transition-colors",children:e.nodeId}),e.nodeTitle&&l.jsx("span",{className:"text-[11px] text-zinc-400 truncate",children:e.nodeTitle})]})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums mt-0.5",children:iu(new Date(e.time).toISOString())})]})}function iL({event:e,variant:t="compact",onNodeClick:n}){return"compact"===t?l.jsx(iD,{event:e,onNodeClick:n}):l.jsx(iA,{event:e,onNodeClick:n})}function iE({events:e,collapsed:t,onToggleCollapse:n,onExpandPanel:r,onNodeClick:i}){let o=e.filter(e=>Date.now()-e.time<3e5).length;return t?(0,l.jsxs)("button",{onClick:n,className:"group flex items-center gap-2 px-3 py-2 bg-white/90 backdrop-blur-sm rounded-full border border-zinc-200/80 shadow-sm hover:bg-white hover:shadow-md transition-all",title:"Show activity feed",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5 text-zinc-400 group-hover:text-emerald-500 transition-colors",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"text-xs text-zinc-500 group-hover:text-zinc-700 transition-colors",children:"Activity"}),o>0&&l.jsx("span",{className:"text-[10px] font-medium text-white bg-emerald-500 rounded-full px-1.5 py-0.5 min-w-[18px] text-center leading-tight",children:o})]}):(0,l.jsxs)("div",{className:"w-72 bg-white/95 backdrop-blur-sm rounded-xl border border-zinc-200/80 shadow-lg overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2.5 border-b border-zinc-100/80",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),l.jsx("span",{className:"text-[11px] font-semibold text-zinc-600",children:"Live Activity"})]}),l.jsx("button",{onClick:n,className:"text-zinc-400 hover:text-zinc-600 transition-colors p-1 -mr-0.5 rounded-full hover:bg-zinc-100",title:"Collapse",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"})})})]}),l.jsx("div",{className:"py-0.5 max-h-[260px] overflow-y-auto custom-scrollbar",children:0===e.length?(0,l.jsxs)("div",{className:"py-6 text-center",children:[(0,l.jsxs)("svg",{className:"w-5 h-5 text-zinc-200 mx-auto mb-1.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("p",{className:"text-[11px] text-zinc-400",children:"No activity yet"})]}):e.slice(0,6).map((e,t)=>l.jsx("div",{className:0===t?"bg-emerald-50/30":"",children:l.jsx(iL,{event:e,variant:"compact",onNodeClick:i})},e.id))}),e.length>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2 border-t border-zinc-100/80 bg-zinc-50/30",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400",children:[e.length," event",1!==e.length?"s":""]}),(0,l.jsxs)("button",{onClick:r,className:"text-[11px] text-emerald-600 hover:text-emerald-700 transition-colors font-medium flex items-center gap-1",children:["See all",l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})]})]})}let iT=[{key:"issues",label:"Issues",icon:"circle"},{key:"deps",label:"Deps",icon:"link"},{key:"comments",label:"Comments",icon:"chat"},{key:"claims",label:"Claims",icon:"user"},{key:"likes",label:"Likes",icon:"heart"}];function iM({events:e,isOpen:t,onClose:n,onNodeClick:r}){let[i,a]=(0,o.useState)(""),[s,c]=(0,o.useState)(new Set(iT.map(e=>e.key))),u=e=>{c(t=>{let n=new Set(t);return n.has(e)?n.size>1&&n.delete(e):n.add(e),n})},d=(0,o.useMemo)(()=>{let t=e;if(t=t.filter(e=>s.has(function(e){switch(e){case"node-created":case"node-closed":case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"issues";case"link-added":case"link-removed":return"deps";case"comment-added":case"reply-added":return"comments";case"task-claimed":case"task-unclaimed":return"claims";case"like-added":return"likes"}}(e.type))),i.trim()){let e=i.trim().toLowerCase();t=t.filter(t=>t.nodeId.toLowerCase().includes(e)||t.nodeTitle&&t.nodeTitle.toLowerCase().includes(e)||t.actor?.handle&&t.actor.handle.toLowerCase().includes(e)||t.detail&&t.detail.toLowerCase().includes(e))}return t},[e,s,i]),p=(0,o.useMemo)(()=>(function(e){let t=new Map,n=[];for(let r of e){let e=function(e){let t=Date.now()-e,n=t/36e5,r=t/864e5;return n<1?"Just now":n<24?"Today":r<2?"Yesterday":r<7?"This week":r<30?"This month":"Older"}(r.time);t.has(e)||(t.set(e,[]),n.push(e)),t.get(e).push(r)}return n.map(e=>({label:e,events:t.get(e)}))})(d),[d]),h=s.size===iT.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${t?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"px-4 pt-3 pb-2 shrink-0",children:(0,l.jsxs)("div",{className:"flex items-center bg-zinc-50/80 rounded-full border border-zinc-200/60 overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{type:"text",value:i,onChange:e=>a(e.target.value),placeholder:"Search activity...",className:"flex-1 px-2 py-2 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400"}),i&&l.jsx("button",{onClick:()=>a(""),className:"pr-3 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-4 pb-3 shrink-0",children:iT.map(e=>{let t=s.has(e.key);return l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-all ${t?"bg-emerald-50 text-emerald-700 border-emerald-200 shadow-sm":"bg-white text-zinc-400 border-zinc-200 hover:text-zinc-600 hover:border-zinc-300"}`,children:e.label},e.key)})}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar border-t border-zinc-100",children:0===d.length?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:i.trim()?"No activity matching your search":"No activity yet"}),i.trim()&&l.jsx("button",{onClick:()=>a(""),className:"text-[11px] text-emerald-600 hover:text-emerald-700 mt-1.5",children:"Clear search"})]}):p.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-4 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(iL,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[d.length," event",1!==d.length?"s":"",!h&&" (filtered)",i.trim()&&` matching "${i.trim()}"`]})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transition-transform duration-300 ease-out ${t?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl shadow-xl border-t border-zinc-200 max-h-[60vh] flex flex-col",children:[l.jsx("div",{className:"flex justify-center pt-3 pb-1",children:l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full"})}),(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-5 pb-3",children:iT.map(e=>l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-colors ${s.has(e.key)?"bg-emerald-50 text-emerald-700 border-emerald-200":"bg-white text-zinc-400 border-zinc-200"}`,children:e.label},e.key))}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:0===d.length?l.jsx("div",{className:"py-8 text-center text-xs text-zinc-400",children:"No activity matching filters"}):p.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-5 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(iL,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))})]})})]})}let iP=new Map,iI=new Map;async function iq(e){let t=iP.get(e);if(t)return t;let n=iI.get(e);if(n)return n;let r=(async()=>{try{let t=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(e)}`);if(!t.ok)throw Error(`Profile fetch failed: ${t.status}`);let n=await t.json(),r={did:e,handle:n.handle||e,displayName:n.displayName||void 0,avatar:n.avatar||void 0};return iP.set(e,r),r}catch{let t={did:e,handle:e.slice(0,20)+"..."};return iP.set(e,t),t}finally{iI.delete(e)}})();return iI.set(e,r),r}let iR=`
|
|
5
|
+
`}),(0,l.jsxs)("div",{className:"comment-tooltip-shadow p-[18px_20px]",children:[l.jsx("div",{className:"rounded-sm mb-2.5",style:{width:24,height:2,background:w,opacity:.6}}),(0,l.jsxs)("div",{className:"mb-3",children:[l.jsx("span",{className:"text-xs font-mono text-emerald-600",children:e.id}),l.jsx("h3",{className:"text-sm font-semibold text-zinc-800 leading-tight mt-0.5",children:e.title})]}),j>0&&s&&(0,l.jsxs)("div",{className:"mb-3 pb-3 border-b border-zinc-100",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-2",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-blue-500",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),(0,l.jsxs)("span",{className:"text-[10px] font-medium text-zinc-500 uppercase tracking-wider",children:[j," comment",1!==j?"s":""]})]}),(0,l.jsxs)("div",{className:"space-y-2",children:[s.slice(0,2).map(e=>(0,l.jsxs)("div",{className:"flex gap-1.5",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden mt-0.5",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[7px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-[10px] font-medium text-zinc-500 hover:text-emerald-600 transition-colors",children:e.displayName||e.handle}),l.jsx("p",{className:"text-[11px] text-zinc-500 line-clamp-2 leading-tight",children:e.text})]})]},e.uri)),j>2&&(0,l.jsxs)("p",{className:"text-[10px] text-zinc-400 italic",children:["+",j-2," more — see detail panel"]})]})]}),a?(0,l.jsxs)("div",{children:[l.jsx("textarea",{ref:m,value:c,onChange:e=>u(e.target.value),onKeyDown:k,placeholder:"Leave a comment...",rows:3,className:"w-full px-2.5 py-2 text-xs border border-zinc-200 rounded-md bg-zinc-50 text-zinc-700 placeholder-zinc-400 resize-none focus:outline-none focus:ring-1 focus:ring-emerald-500 focus:border-emerald-500"}),(0,l.jsxs)("div",{className:"flex items-center justify-between mt-2",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-300",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","+Enter to send"]}),(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:r,className:"px-2.5 py-1 text-[11px] text-zinc-400 hover:text-zinc-600 transition-colors",children:"Cancel"}),l.jsx("button",{onClick:v,disabled:!c.trim()||d,className:"px-3 py-1 text-[11px] font-medium text-white bg-emerald-500 rounded-md hover:bg-emerald-600 disabled:opacity-50 disabled:cursor-not-allowed transition-colors",children:d?(0,l.jsxs)("span",{className:"flex items-center gap-1",children:[(0,l.jsxs)("svg",{className:"w-3 h-3 animate-spin",fill:"none",viewBox:"0 0 24 24",children:[l.jsx("circle",{className:"opacity-25",cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"4"}),l.jsx("path",{className:"opacity-75",fill:"currentColor",d:"M4 12a8 8 0 018-8V0C5.373 0 0 5.373 0 12h4z"})]}),"Sending"]}):"Send"})]})]})]}):(0,l.jsxs)("div",{className:"text-center py-3",children:[l.jsx("svg",{className:"w-5 h-5 text-zinc-300 mx-auto mb-1.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.5 10.5V6.75a4.5 4.5 0 10-9 0v3.75m-.75 11.25h10.5a2.25 2.25 0 002.25-2.25v-6.75a2.25 2.25 0 00-2.25-2.25H6.75a2.25 2.25 0 00-2.25 2.25v6.75a2.25 2.25 0 002.25 2.25z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"Sign in to comment"})]})]})]})}function iN({node:e,x:t,y:n,onShowDescription:r,onAddComment:i,onClaimTask:a,onUnclaimTask:s,onCollapseEpic:c,onUncollapseEpic:u,onClose:d}){let h=(0,o.useRef)(null),[p,f]=(0,o.useState)({x:0,y:0}),[m,x]=(0,o.useState)(!1);return l.jsx("div",{ref:h,style:{position:"fixed",left:p.x,top:p.y,zIndex:100,opacity:m?1:0,transform:m?"translateY(0)":"translateY(2px)",transition:"opacity 0.15s ease, transform 0.15s ease"},onContextMenu:e=>e.preventDefault(),children:(0,l.jsxs)("div",{className:"bg-white border border-zinc-200 rounded-lg overflow-hidden",style:{minWidth:180,boxShadow:"0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.06)"},children:[e.description&&(0,l.jsxs)("button",{onClick:r,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors border-b border-zinc-100",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"})}),"Show description"]}),(0,l.jsxs)("button",{onClick:i,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${a||s||c||u?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 20.25c4.97 0 9-3.694 9-8.25s-4.03-8.25-9-8.25S3 7.444 3 12c0 2.104.859 4.023 2.273 5.48.432.447.74 1.04.586 1.641a4.483 4.483 0 01-.923 1.785A5.969 5.969 0 006 21c1.282 0 2.47-.402 3.445-1.087.81.22 1.668.337 2.555.337z"})}),"Add comment"]}),a&&(0,l.jsxs)("button",{onClick:a,className:`w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors${c||u?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15.75 6a3.75 3.75 0 11-7.5 0 3.75 3.75 0 017.5 0zM4.501 20.118a7.5 7.5 0 0114.998 0A17.933 17.933 0 0112 21.75c-2.676 0-5.216-.584-7.499-1.632z"})}),"Claim task"]}),s&&(0,l.jsxs)("button",{onClick:s,className:`w-full px-3 py-2.5 text-xs text-red-500 hover:bg-red-50 flex items-center gap-2 transition-colors${c||u?" border-b border-zinc-100":""}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-red-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M22 10.5h-6m-2.25-4.125a3.375 3.375 0 11-6.75 0 3.375 3.375 0 016.75 0zM4 19.235v-.11a6.375 6.375 0 0112.75 0v.109A12.318 12.318 0 0110.374 21c-2.331 0-4.512-.645-6.374-1.766z"})}),"Unclaim task"]}),c&&(0,l.jsxs)("button",{onClick:c,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 9V4.5M9 9H4.5M9 9 3.75 3.75M9 15v4.5M9 15H4.5M9 15l-5.25 5.25M15 9h4.5M15 9V4.5M15 9l5.25-5.25M15 15h4.5M15 15v4.5m0-4.5 5.25 5.25"})}),"Collapse epic"]}),u&&(0,l.jsxs)("button",{onClick:u,className:"w-full px-3 py-2.5 text-xs text-zinc-700 hover:bg-zinc-50 flex items-center gap-2 transition-colors",children:[l.jsx("svg",{className:"w-3.5 h-3.5 text-zinc-400",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3.75 3.75v4.5m0-4.5h4.5m-4.5 0L9 9M3.75 20.25v-4.5m0 4.5h4.5m-4.5 0L9 15M20.25 3.75h-4.5m4.5 0v4.5m0-4.5L15 9m5.25 11.25h-4.5m4.5 0v-4.5m0 4.5L15 15"})}),"Uncollapse epic"]})]})})}let iC={bg:"#FFFFFF",border:"#E5E7EB",borderLight:"#F3F4F6",shadow:"rgba(0,0,0,0.08)",text:"#131316",textMuted:"#737680",textDim:"#7F818B"};function iS({node:e,x:t,y:n,prefixColor:r,allNodes:i}){let a=(0,o.useRef)(null),[s,d]=(0,o.useState)({x:0,y:0}),h=e.dependentIds.map(e=>{let t=i.find(t=>t.id===e);return t?{id:e,title:t.title}:{id:e,title:e}}).filter(Boolean),p=c[e.priority]||`P${e.priority}`,f=u[e.priority]||"#a1a1aa";return(0,l.jsxs)("div",{ref:a,className:"bead-tooltip",style:{position:"fixed",left:s.x,top:s.y,width:280,zIndex:100,pointerEvents:"none",background:iC.bg,border:`1px solid ${iC.border}`,boxShadow:`0 8px 32px ${iC.shadow}, 0 2px 8px ${iC.shadow}`,borderRadius:8,padding:"16px 18px",animation:"beadTooltipFade 0.2s ease"},children:[l.jsx("div",{style:{width:24,height:2,background:r,opacity:.5,marginBottom:10,borderRadius:1}}),l.jsx("div",{style:{fontSize:14,fontWeight:600,color:iC.text,lineHeight:1.25,marginBottom:12,overflow:"hidden",display:"-webkit-box",WebkitLineClamp:2,WebkitBoxOrient:"vertical"},children:e.title}),(0,l.jsxs)("div",{style:{display:"flex",flexDirection:"column",gap:8},children:[(0,l.jsxs)("div",{children:[l.jsx("div",{style:iz,children:"Created"}),l.jsx("div",{style:iD,children:ih(e.createdAt)})]}),e.owner&&(0,l.jsxs)("div",{children:[l.jsx("div",{style:iz,children:"Owner"}),l.jsx("div",{style:iD,children:e.owner})]}),(e.assignee||e.createdBy)&&(0,l.jsxs)("div",{children:[e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:iz,children:"Assignee"}),l.jsx("div",{style:iD,children:e.assignee})]}),e.createdBy&&!e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:iz,children:"Created by"}),l.jsx("div",{style:iD,children:e.createdBy})]}),e.createdBy&&e.assignee&&e.createdBy!==e.assignee&&(0,l.jsxs)(l.Fragment,{children:[l.jsx("div",{style:{...iz,marginTop:4},children:"Created by"}),l.jsx("div",{style:iD,children:e.createdBy})]})]}),(0,l.jsxs)("div",{children:[l.jsx("div",{style:iz,children:"Blocked by"}),0===h.length?l.jsx("div",{style:{...iD,color:"#10b981"},children:"None"}):l.jsx("div",{style:{display:"flex",flexDirection:"column",gap:3},children:h.map(e=>(0,l.jsxs)("div",{style:{display:"flex",alignItems:"baseline",gap:6},children:[l.jsx("span",{style:{fontSize:10,fontFamily:"monospace",color:iC.textDim,flexShrink:0},children:e.id}),l.jsx("span",{style:{fontSize:12,color:iC.textMuted,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:e.title})]},e.id))})]}),(0,l.jsxs)("div",{style:{borderTop:`1px solid ${iC.borderLight}`,paddingTop:8},children:[l.jsx("div",{style:iz,children:"Priority"}),(0,l.jsxs)("div",{style:{display:"flex",alignItems:"center",gap:6},children:[l.jsx("div",{style:{width:8,height:8,borderRadius:"50%",background:f,flexShrink:0}}),l.jsx("span",{style:iD,children:p})]})]})]})]})}let iz={fontSize:10,fontWeight:600,letterSpacing:1.5,textTransform:"uppercase",color:"#7F818B",marginBottom:3},iD={fontSize:12,color:"#737680",lineHeight:1.45};function iL({isOpen:e,onClose:t,allComments:n,onNodeNavigate:r,isAuthenticated:i,currentDid:o,onLikeComment:a,onDeleteComment:s}){return(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${e?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"All Comments"}),n.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:n.length})]}),l.jsx("button",{onClick:t,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-3",children:n.length>0?l.jsx("div",{className:"space-y-0",children:n.filter(e=>!e.replyTo).map(e=>l.jsx(iM,{comment:e,currentDid:o,isAuthenticated:i,onNodeNavigate:r,onLike:a,onDelete:s,depth:0},e.uri))}):(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:"No comments yet"}),l.jsx("p",{className:"text-[10px] text-zinc-300 mt-1",children:"Right-click a node to leave a comment"})]})}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[n.length," comment",1!==n.length?"s":""," across all issues"]})})]})}function iM({comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:a,depth:s}){let[c,u]=(0,o.useState)(!1),[d,h]=(0,o.useState)(!1),p=t&&t===e.did,f=!!t&&e.likes.some(e=>e.did===t),m=async()=>{if(i&&!c){u(!0);try{await i(e)}catch(e){console.error("Failed to toggle like:",e)}finally{u(!1)}}},x=async()=>{if(a&&!d){h(!0);try{await a(e)}catch(e){console.error("Failed to delete comment:",e)}finally{h(!1)}}};return(0,l.jsxs)("div",{className:`${s>0?"ml-4 pl-3 border-l border-zinc-100":""}`,children:[(0,l.jsxs)("div",{className:`py-3 ${0===s?"border-b border-zinc-50":""}`,children:[0===s&&l.jsx("button",{onClick:()=>r(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 mb-1.5 rounded text-[10px] font-mono bg-emerald-50 text-emerald-600 hover:bg-emerald-100 transition-colors",children:e.nodeId}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mb-1",children:[l.jsx("div",{className:"shrink-0 w-4 h-4 rounded-full bg-zinc-100 overflow-hidden",children:e.avatar?l.jsx("img",{src:e.avatar,alt:"",className:"w-full h-full object-cover"}):l.jsx("div",{className:"w-full h-full flex items-center justify-center text-[8px] font-medium text-zinc-400",children:(e.handle||e.did).charAt(0).toUpperCase()})}),l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.did}`,target:"_blank",rel:"noopener noreferrer",className:"text-xs font-medium text-zinc-600 truncate hover:text-emerald-600 transition-colors",children:e.displayName||e.handle||e.did.slice(0,16)+"..."}),l.jsx("span",{className:"text-[10px] text-zinc-300 shrink-0",children:ih(e.createdAt)})]}),l.jsx("p",{className:"text-xs text-zinc-500 leading-relaxed whitespace-pre-wrap break-words",children:e.text}),(0,l.jsxs)("div",{className:"flex items-center gap-2 mt-1 text-[10px]",children:[(0,l.jsxs)("button",{onClick:m,disabled:!n||c,className:`flex items-center gap-0.5 transition-colors ${f?"text-rose-500":"text-zinc-300 hover:text-rose-500"} disabled:opacity-50`,children:[l.jsx(id,{className:"w-3 h-3",filled:f}),e.likes.length>0&&l.jsx("span",{children:e.likes.length})]}),p&&a&&l.jsx("button",{onClick:x,disabled:d,className:"ml-auto text-zinc-300 hover:text-red-400 disabled:opacity-50 transition-colors",children:d?"...":"delete"})]})]}),e.replies.length>0&&l.jsx("div",{children:e.replies.map(e=>l.jsx(iM,{comment:e,currentDid:t,isAuthenticated:n,onNodeNavigate:r,onLike:i,onDelete:a,depth:s+1},e.uri))})]})}function iA({type:e,className:t}){let n=t||"w-3.5 h-3.5 shrink-0";switch(e){case"node-created":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("line",{x1:"8",y1:"5",x2:"8",y2:"11"}),l.jsx("line",{x1:"5",y1:"8",x2:"11",y2:"8"})]});case"node-closed":return(0,l.jsxs)("svg",{className:`${n} text-zinc-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"5.5,8 7.5,10 10.5,6"})]});case"node-status-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 8h10M10 5l3 3-3 3"})});case"node-priority-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M8 3v7M5 6l3-3 3 3M4 13h8"})});case"node-title-changed":return l.jsx("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M3 4h10M3 8h6M3 12h8"})});case"node-owner-changed":return(0,l.jsxs)("svg",{className:`${n} text-amber-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"6",cy:"6",r:"2.5"}),l.jsx("path",{d:"M1.5 13c0-2 1.8-3.5 4.5-3.5M10 9l2 2 3-3"})]});case"link-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M6.5 9.5l3-3M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"})});case"link-removed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("path",{d:"M4 11a2.5 2.5 0 003.5 0l1-1M8.5 6a2.5 2.5 0 013.5 0l0 0"}),l.jsx("line",{x1:"3",y1:"3",x2:"13",y2:"13",strokeWidth:"1.5"})]});case"comment-added":case"reply-added":return l.jsx("svg",{className:`${n} text-blue-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:l.jsx("path",{d:"M2 4.5a1.5 1.5 0 011.5-1.5h9A1.5 1.5 0 0114 4.5v5a1.5 1.5 0 01-1.5 1.5H5L2 14V4.5z"})});case"task-claimed":return(0,l.jsxs)("svg",{className:`${n} text-emerald-500`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"})]});case"task-unclaimed":return(0,l.jsxs)("svg",{className:`${n} text-red-400`,viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"5.5",r:"2.5"}),l.jsx("path",{d:"M3 13.5c0-2.5 2.2-4.5 5-4.5s5 2 5 4.5"}),l.jsx("line",{x1:"11",y1:"3",x2:"13",y2:"5"})]});case"like-added":return l.jsx("svg",{className:`${n} text-rose-400`,viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M8 13.7l-.6-.5C4 10.2 2 8.3 2 6a3 3 0 016-1 3 3 0 016 1c0 2.3-2 4.2-5.4 7.2l-.6.5z"})})}}function iE(e){switch(e){case"node-created":case"task-claimed":return"bg-emerald-400";case"node-closed":return"bg-zinc-300";case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"bg-amber-400";case"link-added":case"comment-added":case"reply-added":return"bg-blue-400";case"link-removed":case"task-unclaimed":return"bg-red-300";case"like-added":return"bg-rose-300"}}function iT(e){switch(e.type){case"node-created":{let t=e.meta?.issueType||"task";return`${t} created`}case"node-closed":return`closed${e.detail&&"Closed"!==e.detail?` (${e.detail})`:""}`;case"node-status-changed":return e.detail||"status changed";case"node-priority-changed":return`priority ${e.detail||"changed"}`;case"node-title-changed":return"title updated";case"node-owner-changed":return`owner ${e.detail||"changed"}`;case"link-added":return`dep added: ${e.meta?.target||""}`;case"link-removed":return`dep removed: ${e.meta?.target||""}`;case"comment-added":return e.detail||"commented";case"reply-added":return e.detail||"replied";case"task-claimed":return"claimed this task";case"task-unclaimed":return"unclaimed this task";case"like-added":return e.detail||"liked a comment"}}function iI({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex items-center gap-2 py-2 px-3 group hover:bg-zinc-50/60 transition-colors",children:[l.jsx("div",{className:`w-1 h-1 rounded-full shrink-0 ${iE(e.type)}`}),l.jsx(iA,{type:e.type,className:"w-3 h-3 shrink-0"}),(0,l.jsxs)("div",{className:"flex-1 min-w-0 text-[11px] text-zinc-600 truncate",children:[e.actor?(0,l.jsxs)(l.Fragment,{children:[e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-medium text-zinc-800 hover:text-emerald-600 transition-colors",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-medium text-zinc-800",children:e.actor.handle.split(".")[0]})," "]}):t?(0,l.jsxs)(l.Fragment,{children:[l.jsx("button",{onClick:()=>t(e.nodeId),className:"font-medium text-zinc-700 hover:text-emerald-600 transition-colors",children:e.nodeId})," "]}):null,l.jsx("span",{className:"text-zinc-500",children:iT(e)})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums opacity-0 group-hover:opacity-100 transition-opacity",children:ih(new Date(e.time).toISOString())})]})}function iP({event:e,onNodeClick:t}){return(0,l.jsxs)("div",{className:"flex gap-3 py-3 px-4 hover:bg-zinc-50/50 transition-colors group",children:[l.jsx("div",{className:`w-0.5 self-stretch rounded-full shrink-0 ${iE(e.type)}`}),l.jsx("div",{className:"mt-0.5 shrink-0",children:e.actor?.avatar?l.jsx("img",{src:e.actor.avatar,alt:e.actor.handle,className:"w-7 h-7 rounded-full ring-1 ring-zinc-100"}):e.actor?l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-100 flex items-center justify-center text-[11px] font-medium text-zinc-500",children:e.actor.handle.charAt(0).toUpperCase()}):l.jsx("div",{className:"w-7 h-7 rounded-full bg-zinc-50 flex items-center justify-center",children:l.jsx(iA,{type:e.type,className:"w-3.5 h-3.5"})})}),(0,l.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,l.jsxs)("div",{className:"flex items-baseline gap-1.5 text-[12px] leading-snug",children:[e.actor&&(e.actor.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${e.actor.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors truncate max-w-[140px]",children:e.actor.handle.split(".")[0]}):l.jsx("span",{className:"font-semibold text-zinc-800 truncate max-w-[140px]",children:e.actor.handle.split(".")[0]})),l.jsx("span",{className:"text-zinc-500",children:iT(e)})]}),(0,l.jsxs)("div",{className:"flex items-center gap-1.5 mt-1",children:[t&&l.jsx("button",{onClick:()=>t(e.nodeId),className:"inline-flex items-center px-1.5 py-0.5 text-[10px] font-mono font-medium text-emerald-700 bg-emerald-50 rounded-md hover:bg-emerald-100 transition-colors",children:e.nodeId}),e.nodeTitle&&l.jsx("span",{className:"text-[11px] text-zinc-400 truncate",children:e.nodeTitle})]})]}),l.jsx("span",{className:"text-[10px] text-zinc-400 shrink-0 tabular-nums mt-0.5",children:ih(new Date(e.time).toISOString())})]})}function iq({event:e,variant:t="compact",onNodeClick:n}){return"compact"===t?l.jsx(iI,{event:e,onNodeClick:n}):l.jsx(iP,{event:e,onNodeClick:n})}function iF({events:e,collapsed:t,onToggleCollapse:n,onExpandPanel:r,onNodeClick:i}){let o=e.filter(e=>Date.now()-e.time<3e5).length;return t?(0,l.jsxs)("button",{onClick:n,className:"group flex items-center gap-2 px-3 py-2 bg-white/90 backdrop-blur-sm rounded-full border border-zinc-200/80 shadow-sm hover:bg-white hover:shadow-md transition-all",title:"Show activity feed",children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5 text-zinc-400 group-hover:text-emerald-500 transition-colors",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"text-xs text-zinc-500 group-hover:text-zinc-700 transition-colors",children:"Activity"}),o>0&&l.jsx("span",{className:"text-[10px] font-medium text-white bg-emerald-500 rounded-full px-1.5 py-0.5 min-w-[18px] text-center leading-tight",children:o})]}):(0,l.jsxs)("div",{className:"w-72 bg-white/95 backdrop-blur-sm rounded-xl border border-zinc-200/80 shadow-lg overflow-hidden",children:[(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2.5 border-b border-zinc-100/80",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("div",{className:"w-1.5 h-1.5 rounded-full bg-emerald-400 animate-pulse"}),l.jsx("span",{className:"text-[11px] font-semibold text-zinc-600",children:"Live Activity"})]}),l.jsx("button",{onClick:n,className:"text-zinc-400 hover:text-zinc-600 transition-colors p-1 -mr-0.5 rounded-full hover:bg-zinc-100",title:"Collapse",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M5 15l7-7 7 7"})})})]}),l.jsx("div",{className:"py-0.5 max-h-[260px] overflow-y-auto custom-scrollbar",children:0===e.length?(0,l.jsxs)("div",{className:"py-6 text-center",children:[(0,l.jsxs)("svg",{className:"w-5 h-5 text-zinc-200 mx-auto mb-1.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("p",{className:"text-[11px] text-zinc-400",children:"No activity yet"})]}):e.slice(0,6).map((e,t)=>l.jsx("div",{className:0===t?"bg-emerald-50/30":"",children:l.jsx(iq,{event:e,variant:"compact",onNodeClick:i})},e.id))}),e.length>0&&(0,l.jsxs)("div",{className:"flex items-center justify-between px-3.5 py-2 border-t border-zinc-100/80 bg-zinc-50/30",children:[(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400",children:[e.length," event",1!==e.length?"s":""]}),(0,l.jsxs)("button",{onClick:r,className:"text-[11px] text-emerald-600 hover:text-emerald-700 transition-colors font-medium flex items-center gap-1",children:["See all",l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5l7 7-7 7"})})]})]})]})}let iR=[{key:"issues",label:"Issues",icon:"circle"},{key:"deps",label:"Deps",icon:"link"},{key:"comments",label:"Comments",icon:"chat"},{key:"claims",label:"Claims",icon:"user"},{key:"likes",label:"Likes",icon:"heart"}];function iO({events:e,isOpen:t,onClose:n,onNodeClick:r}){let[i,a]=(0,o.useState)(""),[s,c]=(0,o.useState)(new Set(iR.map(e=>e.key))),u=e=>{c(t=>{let n=new Set(t);return n.has(e)?n.size>1&&n.delete(e):n.add(e),n})},d=(0,o.useMemo)(()=>{let t=e;if(t=t.filter(e=>s.has(function(e){switch(e){case"node-created":case"node-closed":case"node-status-changed":case"node-priority-changed":case"node-title-changed":case"node-owner-changed":return"issues";case"link-added":case"link-removed":return"deps";case"comment-added":case"reply-added":return"comments";case"task-claimed":case"task-unclaimed":return"claims";case"like-added":return"likes"}}(e.type))),i.trim()){let e=i.trim().toLowerCase();t=t.filter(t=>t.nodeId.toLowerCase().includes(e)||t.nodeTitle&&t.nodeTitle.toLowerCase().includes(e)||t.actor?.handle&&t.actor.handle.toLowerCase().includes(e)||t.detail&&t.detail.toLowerCase().includes(e))}return t},[e,s,i]),h=(0,o.useMemo)(()=>(function(e){let t=new Map,n=[];for(let r of e){let e=function(e){let t=Date.now()-e,n=t/36e5,r=t/864e5;return n<1?"Just now":n<24?"Today":r<2?"Yesterday":r<7?"This week":r<30?"This month":"Older"}(r.time);t.has(e)||(t.set(e,[]),n.push(e)),t.get(e).push(r)}return n.map(e=>({label:e,events:t.get(e)}))})(d),[d]),p=s.size===iR.length;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${t?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"px-4 pt-3 pb-2 shrink-0",children:(0,l.jsxs)("div",{className:"flex items-center bg-zinc-50/80 rounded-full border border-zinc-200/60 overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{type:"text",value:i,onChange:e=>a(e.target.value),placeholder:"Search activity...",className:"flex-1 px-2 py-2 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400"}),i&&l.jsx("button",{onClick:()=>a(""),className:"pr-3 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3 h-3",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]})}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-4 pb-3 shrink-0",children:iR.map(e=>{let t=s.has(e.key);return l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-all ${t?"bg-emerald-50 text-emerald-700 border-emerald-200 shadow-sm":"bg-white text-zinc-400 border-zinc-200 hover:text-zinc-600 hover:border-zinc-300"}`,children:e.label},e.key)})}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar border-t border-zinc-100",children:0===d.length?(0,l.jsxs)("div",{className:"flex flex-col items-center justify-center py-12 text-center",children:[l.jsx("svg",{className:"w-8 h-8 text-zinc-200 mb-3",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 6v6h4.5m4.5 0a9 9 0 11-18 0 9 9 0 0118 0z"})}),l.jsx("p",{className:"text-xs text-zinc-400",children:i.trim()?"No activity matching your search":"No activity yet"}),i.trim()&&l.jsx("button",{onClick:()=>a(""),className:"text-[11px] text-emerald-600 hover:text-emerald-700 mt-1.5",children:"Clear search"})]}):h.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-4 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(iq,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))}),l.jsx("div",{className:"shrink-0 px-5 py-2.5 border-t border-zinc-100 bg-zinc-50/50",children:(0,l.jsxs)("div",{className:"text-[10px] text-zinc-400",children:[d.length," event",1!==d.length?"s":"",!p&&" (filtered)",i.trim()&&` matching "${i.trim()}"`]})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transition-transform duration-300 ease-out ${t?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl shadow-xl border-t border-zinc-200 max-h-[60vh] flex flex-col",children:[l.jsx("div",{className:"flex justify-center pt-3 pb-1",children:l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full"})}),(0,l.jsxs)("div",{className:"flex items-center justify-between px-5 py-2",children:[(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("h2",{className:"text-sm font-semibold text-zinc-900",children:"Activity"}),e.length>0&&l.jsx("span",{className:"px-1.5 py-0.5 bg-emerald-50 text-emerald-600 rounded-full text-[10px] font-medium",children:e.length})]}),l.jsx("button",{onClick:n,className:"p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex flex-wrap gap-1.5 px-5 pb-3",children:iR.map(e=>l.jsx("button",{onClick:()=>u(e.key),className:`px-2.5 py-1 text-[11px] font-medium rounded-full border transition-colors ${s.has(e.key)?"bg-emerald-50 text-emerald-700 border-emerald-200":"bg-white text-zinc-400 border-zinc-200"}`,children:e.label},e.key))}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar",children:0===d.length?l.jsx("div",{className:"py-8 text-center text-xs text-zinc-400",children:"No activity matching filters"}):h.map(e=>(0,l.jsxs)("div",{children:[l.jsx("div",{className:"sticky top-0 z-[1] px-5 py-1.5 bg-zinc-50/95 backdrop-blur-sm border-b border-zinc-100/60",children:l.jsx("span",{className:"text-[10px] font-semibold text-zinc-400 uppercase tracking-wider",children:e.label})}),l.jsx("div",{className:"divide-y divide-zinc-50",children:e.events.map(e=>l.jsx(iq,{event:e,variant:"full",onNodeClick:r},e.id))})]},e.label))})]})})]})}let i_=new Map,iB=new Map;async function iU(e){let t=i_.get(e);if(t)return t;let n=iB.get(e);if(n)return n;let r=(async()=>{try{let t=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(e)}`);if(!t.ok)throw Error(`Profile fetch failed: ${t.status}`);let n=await t.json(),r={did:e,handle:n.handle||e,displayName:n.displayName||void 0,avatar:n.avatar||void 0};return i_.set(e,r),r}catch{let t={did:e,handle:e.slice(0,20)+"..."};return i_.set(e,t),t}finally{iB.delete(e)}})();return iB.set(e,r),r}let iH=`
|
|
6
6
|
query FetchRecords($collection: String!, $first: Int, $after: String) {
|
|
7
7
|
records(collection: $collection, first: $first, after: $after) {
|
|
8
8
|
edges {
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
`;async function iF(e){let t;let n=[],r=!0,i=0;for(;r&&i<5;){let l=await fetch("https://hypergoat-app-production.up.railway.app/graphql",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:iR,variables:{collection:e,first:100,after:t}})});if(!l.ok)throw Error(`Indexer fetch failed: ${l.status}`);let o=await l.json();if(o.errors?.length)throw Error(o.errors[0].message);let a=o.data?.records;if(!a)break;for(let e of a.edges)n.push(e.node);r=a.pageInfo.hasNextPage,t=a.pageInfo.endCursor,i++}return n}function iO({totalSteps:e,currentStep:t,currentTime:n,isPlaying:r,speed:i,onStepChange:a,onPlayPause:s,onSpeedChange:c}){let u=(0,o.useCallback)(e=>{a(Number(e.target.value))},[a]),d=(0,o.useCallback)(()=>{c(1===i?2:2===i?4:1)},[i,c]),p=e>1;return l.jsx("div",{className:"bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 min-w-[280px] max-w-[480px]",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:s,disabled:!p,className:`shrink-0 w-6 h-6 flex items-center justify-center rounded transition-colors ${r?"text-emerald-500 hover:text-emerald-600":"text-zinc-500 hover:text-zinc-700"} disabled:opacity-40 disabled:cursor-not-allowed`,children:r?(0,l.jsxs)("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:[l.jsx("rect",{x:"3",y:"2",width:"3.5",height:"12",rx:"1"}),l.jsx("rect",{x:"9.5",y:"2",width:"3.5",height:"12",rx:"1"})]}):l.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M4 2l10 6-10 6V2z"})})}),l.jsx("input",{type:"range",min:0,max:Math.max(e-1,0),value:t,onChange:u,disabled:!p,className:"timeline-slider flex-1 h-4 disabled:opacity-40"}),(0,l.jsxs)("span",{className:"shrink-0 text-xs text-zinc-500 font-medium text-right whitespace-nowrap",children:[(0,l.jsxs)("span",{className:"text-zinc-400",children:[t+1,"/",e]})," ",new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),(0,l.jsxs)("button",{onClick:d,className:`shrink-0 px-1.5 py-0.5 text-[10px] font-semibold rounded transition-colors ${i>1?"bg-emerald-500 text-white":"text-zinc-500 border border-zinc-200 hover:text-zinc-700"}`,children:[i,"x"]})]})})}let i_={open:"bg-emerald-500",in_progress:"bg-amber-500",blocked:"bg-red-500",deferred:"bg-violet-500",closed:"bg-zinc-400"};function iB(){let[e,t]=(0,o.useState)(null),[n,r]=(0,o.useState)(!0),[i,a]=(0,o.useState)(null),[s,c]=(0,o.useState)(null),[u,d]=(0,o.useState)(null),[p,h]=(0,o.useState)("Beads"),[f,m]=(0,o.useState)(0),[x,g]=(0,o.useState)({}),{isAuthenticated:y,session:b}=(0,iy.a)(),{commentsByNode:v,commentedNodeIds:k,allComments:w,refetch:j}=function(){let[e,t]=(0,o.useState)(new Map),[n,r]=(0,o.useState)(new Map),[i,l]=(0,o.useState)([]),[a,s]=(0,o.useState)(!0),[c,u]=(0,o.useState)(null),d=(0,o.useRef)(!1);return{commentsByNode:e,commentedNodeIds:n,allComments:i,isLoading:a,error:c,refetch:(0,o.useCallback)(async()=>{try{s(!0),u(null);let[e,n]=await Promise.all([iF("org.impactindexer.review.comment"),iF("org.impactindexer.review.like")]),i=e.filter(e=>{let t=e.value.subject;return t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("beads:")}),o=new Map;for(let e of n){let t=e.value.subject;if(t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("at://")){let n=o.get(t.uri)||[];n.push(e),o.set(t.uri,n)}}let a=new Set;for(let e of i)a.add(e.did);for(let e of n)a.add(e.did);let c=await Promise.all([...a].map(e=>iq(e))),p=new Map(c.map(e=>[e.did,e])),h=[];for(let e of i){let t=e.value,n=t.subject.uri.replace(/^beads:/,""),r=t.text||"",i=t.createdAt||"",l=t.replyTo||void 0,a=p.get(e.did),s=(o.get(e.uri)||[]).map(e=>{let t=p.get(e.did),n=e.value;return{did:e.did,handle:t?.handle||e.did.slice(0,20)+"...",displayName:t?.displayName,avatar:t?.avatar,createdAt:n.createdAt||"",uri:e.uri,rkey:e.rkey}}),c={did:e.did,handle:a?.handle||e.did.slice(0,20)+"...",displayName:a?.displayName,avatar:a?.avatar,text:r,createdAt:i,uri:e.uri,rkey:e.rkey,nodeId:n,replyTo:l,likes:s,replies:[]};h.push(c)}let f=new Map;for(let e of h)f.set(e.uri,e);let m=[];for(let e of h){if(e.replyTo){let t=f.get(e.replyTo);if(t){t.replies.push(e);continue}}m.push(e)}m.sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),function e(t){for(let n of t)n.replies.sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()),e(n.replies)}(m);let x=new Map;for(let e of m){let t=x.get(e.nodeId)||[];t.push(e),x.set(e.nodeId,t)}let g=new Map;for(let e of h)g.set(e.nodeId,(g.get(e.nodeId)||0)+1);let y=[...h].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime());d.current||(t(x),r(g),l(y))}catch(e){if(!d.current){let t=e instanceof Error?e.message:"Failed to fetch comments";console.error("Failed to fetch beads comments:",e),u(t)}}finally{d.current||s(!1)}},[])}}(),[N,C]=(0,o.useState)(new Map),[S,z]=(0,o.useState)(new Set),A=(0,o.useMemo)(()=>{let e=new Map;if(w)for(let t of w){if(e.has(t.nodeId)||S.has(t.nodeId))continue;let n=t.text.trim();n.startsWith("@")&&-1===n.indexOf(" ")&&e.set(t.nodeId,{avatar:t.avatar,handle:t.handle,claimedAt:t.createdAt,did:t.did,rkey:t.rkey})}for(let[t,n]of N)e.has(t)||S.has(t)||e.set(t,n);return e},[w,N,S]),[L,E]=(0,o.useState)(!1),[T,M]=(0,o.useState)([]),[P,I]=(0,o.useState)(!1),[q,R]=(0,o.useState)(!1),[F,O]=(0,o.useState)(null),[_,B]=(0,o.useState)(null),[U,V]=(0,o.useState)(null),[H,$]=(0,o.useState)(null),[W,G]=(0,o.useState)(!1),[Y,X]=(0,o.useState)(""),[J,K]=(0,o.useState)(0),[Z,Q]=(0,o.useState)(!1),[ee,et]=(0,o.useState)(0),[en,er]=(0,o.useState)(!1),[ei,el]=(0,o.useState)(1),[eo,ea]=(0,o.useState)(null),es=(0,o.useRef)(null),ec=(0,o.useRef)(null);(0,o.useRef)(null);let eu=(0,o.useMemo)(()=>e?function(e,t){let n=[];for(let t of e){let e=new Date(t.createdAt).getTime();if(isNaN(e)||n.push({time:e,type:"node-created",id:t.id}),t.closedAt){let e=new Date(t.closedAt).getTime();isNaN(e)||n.push({time:e,type:"node-closed",id:t.id})}}n.sort((e,t)=>e.time-t.time);let r=n.length>0?n[0].time:Date.now(),i=n.length>0?n[n.length-1].time:Date.now();return{events:n,minTime:r,maxTime:i}}(e.graphData.nodes,e.graphData.links):null,[e]),ed=(0,o.useCallback)(()=>{Q(e=>{let t=!e;return t&&et(-1),er(!1),ea(null),t})},[]),ep=(0,o.useCallback)(e=>{c(t=>t?.id===e.id?null:e),E(!1),I(!1)},[]),eh=(0,o.useCallback)(e=>{d(e)},[]),ef=(0,o.useCallback)(()=>{c(null),O(null),B(null)},[]),em=(0,o.useCallback)((e,t)=>{B(null),e.description||y?O({node:e,x:t.clientX,y:t.clientY}):B({node:e,x:t.clientX,y:t.clientY})},[y]),ex=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{$type:"org.impactindexer.review.comment",subject:{uri:`beads:${e}`,type:"record"},text:t,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post comment");await j()},[j]),eg=(0,o.useCallback)(async e=>{if(!b?.handle)return;let t=b.avatar;if(!t&&b.did)try{let e=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(b.did)}`);e.ok&&(t=(await e.json()).avatar)}catch{}C(n=>{let r=new Map(n);return r.set(e,{avatar:t,claimedAt:new Date().toISOString(),handle:b.handle}),r}),await ex(e,`@${b.handle}`),setTimeout(()=>j(),3e3)},[b?.handle,b?.did,b?.avatar,ex,j]),ey=(0,o.useCallback)(async e=>{let t=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.comment")}&rkey=${encodeURIComponent(e.rkey)}`,{method:"DELETE"});if(!t.ok)throw Error((await t.json()).error||"Failed to delete comment");await j()},[j]),eb=(0,o.useCallback)(async e=>{let t=A.get(e);t&&(z(t=>new Set(t).add(e)),C(t=>{let n=new Map(t);return n.delete(e),n}),t.rkey?(await ey({rkey:t.rkey}),z(t=>{let n=new Set(t);return n.delete(e),n})):setTimeout(async()=>{await j(),z(t=>{let n=new Set(t);return n.delete(e),n})},3e3))},[A,ey,j]),ev=(0,o.useCallback)(async e=>{let t=e.likes.find(e=>e.did===b?.did);if(t){let e=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.like")}&rkey=${encodeURIComponent(t.rkey)}`,{method:"DELETE"});if(!e.ok)throw Error((await e.json()).error||"Failed to unlike")}else{let t=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.like",record:{subject:{uri:e.uri,type:"record"},createdAt:new Date().toISOString()}})});if(!t.ok)throw Error((await t.json()).error||"Failed to like")}await j()},[b?.did,j]),ek=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{subject:{uri:`beads:${e.nodeId}`,type:"record"},text:t,replyTo:e.uri,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post reply");await j()},[j]),ew=(0,o.useCallback)(t=>{if(!e)return;let n=e.graphData.nodes.find(e=>e.id===t);n&&c(n)},[e]),ej=(0,o.useMemo)(()=>{if(!e||!Y.trim())return[];let t=Y.toLowerCase();return e.graphData.nodes.filter(e=>`${e.id} ${e.title} ${e.prefix}`.toLowerCase().includes(t)).slice(0,8)},[Y,e]),eN=(0,o.useCallback)(e=>{es.current?.focusNode(e),G(!1),X(""),K(0)},[]),eC=(0,o.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),K(e=>Math.min(e+1,ej.length-1))):"ArrowUp"===e.key?(e.preventDefault(),K(e=>Math.max(e-1,0))):"Enter"===e.key&&ej.length>0&&(e.preventDefault(),eN(ej[J]))},[ej,J,eN]);return n?(0,l.jsxs)("div",{className:"h-screen flex flex-col items-center justify-center bg-white",children:[(0,l.jsxs)("div",{className:"relative mb-6",children:[l.jsx("div",{className:"w-12 h-12 border-2 border-zinc-200 border-t-emerald-500 rounded-full animate-spin"}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"})})]}),l.jsx("p",{className:"text-sm text-zinc-500 animate-pulse-soft",children:"Loading beads graph..."}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Parsing issues and dependencies"})]}):i?l.jsx("div",{className:"h-screen flex items-center justify-center bg-white",children:(0,l.jsxs)("div",{className:"max-w-sm text-center",children:[l.jsx("div",{className:"w-14 h-14 mx-auto mb-4 bg-red-50 rounded-full flex items-center justify-center",children:l.jsx("svg",{className:"w-7 h-7 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Unable to load data"}),l.jsx("p",{className:"text-sm text-zinc-500 mb-4",children:i}),(0,l.jsxs)("button",{onClick:()=>window.location.reload(),className:"inline-flex items-center gap-2 px-4 py-2 bg-emerald-600 text-white text-sm rounded-lg hover:bg-emerald-700 transition-colors",children:[l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Try Again"]})]})}):e?(0,l.jsxs)("div",{className:"h-screen flex flex-col overflow-hidden bg-white",children:[l.jsx("header",{className:"sticky top-0 z-50 shrink-0 bg-white/95 backdrop-blur-sm border-b border-zinc-200/80",children:(0,l.jsxs)("div",{className:"px-6 h-14 flex items-center",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 shrink-0 group",children:[l.jsx(iv,{className:"w-8 h-8 text-emerald-500 transition-transform group-hover:scale-105"}),(0,l.jsxs)("div",{className:"flex items-baseline gap-2",children:[l.jsx("h1",{className:"text-[15px] font-semibold text-zinc-900 tracking-tight",children:p}),l.jsx("span",{className:"font-normal text-zinc-400 text-[15px] hidden sm:inline",children:"heartbeads"}),f>1&&(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400 bg-zinc-100 rounded-full px-1.5 py-0.5 font-medium hidden sm:inline",children:[f," repos"]})]})]}),l.jsx("div",{className:"flex-1 flex justify-center px-4",children:l.jsx("div",{className:"relative w-full max-w-md",children:W?(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center bg-white rounded-full border border-zinc-200 shadow-sm overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{ref:ec,type:"text",value:Y,onChange:e=>X(e.target.value),onKeyDown:eC,placeholder:"Search issues...",className:"flex-1 px-2 py-1.5 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400",autoFocus:!0}),l.jsx("button",{onClick:()=>{G(!1),X(""),K(0)},className:"px-2 py-1.5 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),Y.trim()&&(0,l.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white rounded-xl border border-zinc-100 shadow-xl overflow-hidden max-h-72 overflow-y-auto z-50",children:[0===ej.length?l.jsx("div",{className:"px-3 py-3 text-xs text-zinc-400 text-center",children:"No matching issues"}):ej.map((e,t)=>(0,l.jsxs)("button",{onClick:()=>eN(e),onMouseEnter:()=>K(t),className:`w-full text-left px-3 py-2 text-xs transition-colors flex items-start gap-2.5 ${t===J?"bg-emerald-50":"hover:bg-zinc-50"}`,children:[l.jsx("div",{className:"shrink-0 mt-1",children:l.jsx("div",{className:`w-2 h-2 rounded-full ${i_[e.status]||"bg-zinc-400"}`})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"font-medium text-zinc-600 shrink-0",children:e.id}),e.priority<=1&&l.jsx("span",{className:"text-[10px]",children:0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25"})]}),l.jsx("div",{className:"text-zinc-400 truncate mt-0.5",children:e.title})]}),l.jsx("span",{className:"shrink-0 text-[10px] text-zinc-400 bg-zinc-100 rounded px-1 py-0.5 mt-0.5",children:e.prefix})]},e.id)),ej.length>0&&(0,l.jsxs)("div",{className:"px-3 py-1.5 text-[10px] text-zinc-400 border-t border-zinc-100 bg-zinc-50/50 flex items-center justify-between",children:[(0,l.jsxs)("span",{children:[ej.length," result",1!==ej.length?"s":""]}),(0,l.jsxs)("span",{children:[l.jsx("kbd",{className:"px-1 py-0.5 bg-white rounded border border-zinc-200 text-[9px] font-mono",children:"Enter"})," ","to focus"]})]})]})]}):(0,l.jsxs)("button",{onClick:()=>{G(!0),setTimeout(()=>ec.current?.focus(),50)},className:"w-full flex items-center gap-2 px-3.5 py-1.5 text-sm text-zinc-400 rounded-full bg-zinc-50/80 border border-zinc-200/60 hover:text-zinc-500 hover:border-zinc-300 hover:bg-zinc-100/50 transition-all",title:"Search issues (Ctrl+F)",children:[l.jsx("svg",{className:"w-3.5 h-3.5 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),l.jsx("span",{className:"flex-1 text-left",children:"Search issues..."}),(0,l.jsxs)("kbd",{className:"hidden sm:inline-block px-1 py-0.5 bg-zinc-100 rounded border border-zinc-200 text-[9px] font-mono text-zinc-400",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","F"]})]})})}),(0,l.jsxs)("div",{className:"hidden md:flex items-center gap-1 shrink-0",children:[(0,l.jsxs)("button",{onClick:ed,className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${Z?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Replay"})]}),(0,l.jsxs)("button",{onClick:()=>{E(e=>!e),L||(c(null),I(!1))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${L?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("span",{className:"hidden sm:inline",children:"Comments"})]}),(0,l.jsxs)("button",{onClick:()=>{I(e=>!e),P||(c(null),E(!1))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${P?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Activity"})]}),l.jsx("div",{className:"w-px h-5 bg-zinc-200 mx-2"}),l.jsx(ib,{})]})]})}),(0,l.jsxs)("div",{className:"flex-1 flex overflow-hidden relative",children:[(0,l.jsxs)("div",{className:"flex-1 relative bg-zinc-50/50",children:[l.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"radial-gradient(circle, #000 1px, transparent 1px)",backgroundSize:"24px 24px"}}),l.jsx(D,{ref:es,nodes:Z&&eo?eo.graphData.nodes:e.graphData.nodes,links:Z&&eo?eo.graphData.links:e.graphData.links,selectedNode:s,hoveredNode:u,onNodeClick:ep,onNodeHover:eh,onBackgroundClick:ef,onNodeRightClick:em,commentedNodeIds:k,claimedNodeAvatars:A,onAvatarHover:$,timelineActive:Z,stats:e.stats,sidebarOpen:!!s||L||P}),Z&&eu&&eu.events.length>0&&l.jsx("div",{className:"absolute bottom-4 z-10 transition-[right] duration-300 ease-out",style:{right:s||L||P?"calc(360px + 1rem)":"1rem"},children:l.jsx(iO,{totalSteps:eu.events.length,currentStep:Math.max(ee,0),currentTime:ee>=0?eu.events[ee]?.time??eu.minTime:eu.minTime,isPlaying:en,speed:ei,onStepChange:et,onPlayPause:()=>er(e=>!e),onSpeedChange:el})}),!s&&!L&&!P&&!Z&&l.jsx("div",{className:"absolute top-3 right-3 sm:top-4 sm:right-4 z-10",children:l.jsx(iE,{events:T,collapsed:q,onToggleCollapse:()=>R(e=>!e),onExpandPanel:()=>{I(!0),c(null),E(!1)},onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&eN(n)}})}),F&&l.jsx(iw,{node:F.node,x:F.x,y:F.y,onShowDescription:()=>{V(F.node),O(null)},onAddComment:()=>{B({node:F.node,x:F.x,y:F.y}),O(null)},onClaimTask:y&&!A.has(F.node.id)?()=>{eg(F.node.id),O(null)}:void 0,onUnclaimTask:(()=>{if(!y)return;let e=A.get(F.node.id);if(e&&(e.did===b?.did||!e.did))return()=>{eb(F.node.id),O(null)}})(),onClose:()=>O(null)}),_&&l.jsx(ik,{node:_.node,x:_.x,y:_.y,onClose:()=>B(null),onSubmit:async e=>{await ex(_.node.id,e),B(null)},isAuthenticated:y,existingComments:v.get(_.node.id)}),U&&l.jsx(is,{node:U,onClose:()=>V(null)}),H&&l.jsx("div",{style:{position:"fixed",left:H.x+12,top:H.y-8,zIndex:90,pointerEvents:"none"},children:(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-white border border-zinc-200 rounded-lg shadow-lg px-2.5 py-2",children:[H.avatar?l.jsx("img",{src:H.avatar,alt:"",className:"w-6 h-6 rounded-full shrink-0"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-zinc-200 flex items-center justify-center text-[10px] font-medium text-zinc-500 shrink-0",children:H.handle.charAt(0).toUpperCase()}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("span",{className:"text-xs text-zinc-700 whitespace-nowrap",children:[H.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${H.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors",style:{pointerEvents:"auto"},children:H.handle}):l.jsx("span",{className:"font-semibold text-zinc-800",children:H.handle})," claimed this task"]}),l.jsx("span",{className:"text-[10px] text-zinc-400",children:iu(H.claimedAt)})]})]})})]}),(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${s?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Node Detail"}),l.jsx("button",{onClick:()=>{c(null)},className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-4 space-y-5",children:l.jsx(id,{node:s,allNodes:e.graphData.nodes,onNodeNavigate:ew,comments:s?v.get(s.id):void 0,onPostComment:s?e=>ex(s.id,e):void 0,onDeleteComment:ey,onLikeComment:ev,onReplyComment:ek,isAuthenticated:y,currentDid:b?.did,repoUrls:x})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transform transition-transform duration-300 ease-out ${s?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl border-t border-zinc-200 shadow-lg max-h-[60vh] flex flex-col",children:[(0,l.jsxs)("div",{className:"shrink-0 flex items-center justify-between px-4 pt-3 pb-2",children:[l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full mx-auto"}),l.jsx("button",{onClick:()=>c(null),className:"absolute right-3 top-3 p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-4 pb-6 space-y-4",children:l.jsx(id,{node:s,allNodes:e.graphData.nodes,onNodeNavigate:ew,comments:s?v.get(s.id):void 0,onPostComment:s?e=>ex(s.id,e):void 0,onDeleteComment:ey,onLikeComment:ev,onReplyComment:ek,isAuthenticated:y,currentDid:b?.did,repoUrls:x})})]})}),l.jsx(ij,{isOpen:L,onClose:()=>E(!1),allComments:w,onNodeNavigate:e=>{ew(e),E(!1)},isAuthenticated:y,currentDid:b?.did,onLikeComment:ev,onDeleteComment:ey}),l.jsx(iM,{events:T,isOpen:P,onClose:()=>I(!1),onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&(eN(n),I(!1))}})]})]}):null}},67960:(e,t,n)=>{"use strict";n.d(t,{AuthProvider:()=>o,a:()=>a});var r=n(98924),i=n(63911);let l=(0,i.createContext)(null);function o({children:e}){let[t,n]=(0,i.useState)({status:"idle",session:null,error:null,isLoading:!0}),o=(0,i.useCallback)(async e=>{n(e=>({...e,status:"authorizing",isLoading:!0,error:null}));try{let t=e.includes(".")?e:`${e}.bsky.social`,n=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:t,returnTo:window.location.pathname+window.location.search})});if(!n.ok){let e=await n.json();throw Error(e.error||"Login failed")}let r=await n.json();window.location.href=r.redirectUrl}catch(t){let e=t instanceof Error?t:Error("Login failed");throw n({status:"error",session:null,error:e,isLoading:!1}),e}},[]),a=(0,i.useCallback)(async()=>{try{await fetch("/api/logout",{method:"POST"})}catch(e){console.error("Logout request failed:",e)}n({status:"idle",session:null,error:null,isLoading:!1})},[]);return r.jsx(l.Provider,{value:{state:t,login:o,logout:a},children:e})}function a(){let e=(0,i.useContext)(l);if(!e)throw Error("useAuth must be used within an AuthProvider");let{state:t,login:n,logout:r}=e;return{status:t.status,session:t.session,error:t.error,isLoading:t.isLoading,isAuthenticated:"authenticated"===t.status,login:n,logout:r}}},75609:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],p=1,h=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},p=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});p<h;++p)if(t=arguments[p],null!=t)for(n in t)r=s(d,n),d!==(i=s(t,n))&&(f&&i&&(o(i)||(c=l(i)))?(c?(c=!1,u=r&&l(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&a(d,{name:n,newValue:i}));return d}},79661:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function c(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,d=1;function p(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function h(){var e={line:u,column:d};return function(t){return t.position=new f(e),x(r),t}}function f(e){this.start=e,this.end={line:u,column:d},this.source=s.source}function m(t){var n=Error(s.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=u,n.column=d,n.source=e,s.silent);else throw n}function x(t){var n=t.exec(e);if(n){var r=n[0];return p(r),e=e.slice(r.length),n}}function g(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=h();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,p(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return f.prototype.content=e,x(r),function(){var e,n=[];for(g(n);e=function(){var e=h(),n=x(i);if(n){if(y(),!x(l))return m("property missing ':'");var r=x(o),s=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return x(a),s}}();)!1!==e&&(n.push(e),g(n));return n}()}},63767:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7130)),i=n(95655);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},95655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,s):e.replace(l,s)).replace(r,a))}},7130:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(79661))},19709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,metadata:()=>o,viewport:()=>a});var r=n(55886),i=n(36691);let l=(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#AuthProvider`);(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#useAuth`),n(29944);let o={title:"Beads Map",description:"Interactive dependency graph viewer for beads issues"},a={width:"device-width",initialScale:1,maximumScale:1,userScalable:!1};function s({children:e}){return r.jsx("html",{lang:"en",children:r.jsx("body",{children:r.jsx(l,{children:e})})})}},71363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});let r=(0,n(36691).createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/app/page.tsx#default`)},29944:()=>{},26669:(e,t,n)=>{"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,l,o,a,s,c,u,d,p,h=e._root,f={data:r},m=e._x0,x=e._y0,g=e._x1,y=e._y1;if(!h)return e._root=f,e;for(;h.length;)if((c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o,i=h,!(h=h[d=u<<1|c]))return i[d]=f,e;if(a=+e._x.call(null,h.data),s=+e._y.call(null,h.data),t===a&&n===s)return f.next=h,i?i[d]=f:e._root=f,e;do i=i?i[d]=[,,,,]:e._root=[,,,,],(c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o;while((d=u<<1|c)==(p=(s>=o)<<1|a>=l));return i[p]=h,i[d]=f,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function l(e){return e[0]}function o(e){return e[1]}function a(e,t,n){var r=new s(null==t?l:t,null==n?o:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function s(e,t,n,r,i,l){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=l,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:()=>a});var u=a.prototype=s.prototype;u.copy=function(){var e,t,n=new s(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=[,,,,]}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=[,,,,]}):r.target[i]=c(t));return n},u.add=function(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},u.addAll=function(e){var t,n,i,l,o=e.length,a=Array(o),s=Array(o),c=1/0,u=1/0,d=-1/0,p=-1/0;for(n=0;n<o;++n)!(isNaN(i=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t)))&&(a[n]=i,s[n]=l,i<c&&(c=i),i>d&&(d=i),l<u&&(u=l),l>p&&(p=l));if(c>d||u>p)return this;for(this.cover(c,u).cover(d,p),n=0;n<o;++n)r(this,a[n],s[n],e[n]);return this},u.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,l=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,l=(r=Math.floor(t))+1;else{for(var o,a,s=i-n||1,c=this._root;n>e||e>=i||r>t||t>=l;)switch(a=(t<r)<<1|e<n,(o=[,,,,])[a]=c,c=o,s*=2,a){case 0:i=n+s,l=r+s;break;case 1:n=i-s,l=r+s;break;case 2:i=n+s,r=l-s;break;case 3:n=i-s,r=l-s}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=l,this},u.data=function(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e},u.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},u.find=function(e,t,n){var r,l,o,a,s,c,u,d=this._x0,p=this._y0,h=this._x1,f=this._y1,m=[],x=this._root;for(x&&m.push(new i(x,d,p,h,f)),null==n?n=1/0:(d=e-n,p=t-n,h=e+n,f=t+n,n*=n);c=m.pop();)if((x=c.node)&&!((l=c.x0)>h)&&!((o=c.y0)>f)&&!((a=c.x1)<d)&&!((s=c.y1)<p)){if(x.length){var g=(l+a)/2,y=(o+s)/2;m.push(new i(x[3],g,y,a,s),new i(x[2],l,y,g,s),new i(x[1],g,o,a,y),new i(x[0],l,o,g,y)),(u=(t>=y)<<1|e>=g)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=c)}else{var b=e-+this._x.call(null,x.data),v=t-+this._y.call(null,x.data),k=b*b+v*v;if(k<n){var w=Math.sqrt(n=k);d=e-w,p=t-w,h=e+w,f=t+w,r=x.data}}}return r},u.remove=function(e){if(isNaN(l=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,r,i,l,o,a,s,c,u,d,p,h=this._root,f=this._x0,m=this._y0,x=this._x1,g=this._y1;if(!h)return this;if(h.length)for(;;){if((c=l>=(a=(f+x)/2))?f=a:x=a,(u=o>=(s=(m+g)/2))?m=s:g=s,t=h,!(h=h[d=u<<1|c]))return this;if(!h.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,p=d)}for(;h.data!==e;)if(r=h,!(h=h.next))return this;return((i=h.next)&&delete h.next,r)?i?r.next=i:delete r.next:t?(i?t[d]=i:delete t[d],(h=t[0]||t[1]||t[2]||t[3])&&h===(t[3]||t[2]||t[1]||t[0])&&!h.length&&(n?n[p]=h:this._root=h)):this._root=i,this},u.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},u.root=function(){return this._root},u.size=function(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e},u.visit=function(e){var t,n,r,l,o,a,s=[],c=this._root;for(c&&s.push(new i(c,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(c=t.node,r=t.x0,l=t.y0,o=t.x1,a=t.y1)&&c.length){var u=(r+o)/2,d=(l+a)/2;(n=c[3])&&s.push(new i(n,u,d,o,a)),(n=c[2])&&s.push(new i(n,r,d,u,a)),(n=c[1])&&s.push(new i(n,u,l,o,d)),(n=c[0])&&s.push(new i(n,r,l,u,d))}return this},u.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var l=t.node;if(l.length){var o,a=t.x0,s=t.y0,c=t.x1,u=t.y1,d=(a+c)/2,p=(s+u)/2;(o=l[0])&&n.push(new i(o,a,s,d,p)),(o=l[1])&&n.push(new i(o,d,s,c,p)),(o=l[2])&&n.push(new i(o,a,p,d,u)),(o=l[3])&&n.push(new i(o,d,p,c,u))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},u.x=function(e){return arguments.length?(this._x=e,this):this._x},u.y=function(e){return arguments.length?(this._y=e,this):this._y}}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[719,251],()=>n(32143));module.exports=r})();
|
|
24
|
+
`;async function iV(e){let t;let n=[],r=!0,i=0;for(;r&&i<5;){let l=await fetch("https://hypergoat-app-production.up.railway.app/graphql",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({query:iH,variables:{collection:e,first:100,after:t}})});if(!l.ok)throw Error(`Indexer fetch failed: ${l.status}`);let o=await l.json();if(o.errors?.length)throw Error(o.errors[0].message);let a=o.data?.records;if(!a)break;for(let e of a.edges)n.push(e.node);r=a.pageInfo.hasNextPage,t=a.pageInfo.endCursor,i++}return n}function i$({totalSteps:e,currentStep:t,currentTime:n,isPlaying:r,speed:i,onStepChange:a,onPlayPause:s,onSpeedChange:c}){let u=(0,o.useCallback)(e=>{a(Number(e.target.value))},[a]),d=(0,o.useCallback)(()=>{c(1===i?2:2===i?4:1)},[i,c]),h=e>1;return l.jsx("div",{className:"bg-white/90 backdrop-blur-sm rounded-lg border border-zinc-200 shadow-sm px-3 py-2 min-w-[280px] max-w-[480px]",children:(0,l.jsxs)("div",{className:"flex items-center gap-2",children:[l.jsx("button",{onClick:s,disabled:!h,className:`shrink-0 w-6 h-6 flex items-center justify-center rounded transition-colors ${r?"text-emerald-500 hover:text-emerald-600":"text-zinc-500 hover:text-zinc-700"} disabled:opacity-40 disabled:cursor-not-allowed`,children:r?(0,l.jsxs)("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:[l.jsx("rect",{x:"3",y:"2",width:"3.5",height:"12",rx:"1"}),l.jsx("rect",{x:"9.5",y:"2",width:"3.5",height:"12",rx:"1"})]}):l.jsx("svg",{className:"w-4 h-4",viewBox:"0 0 16 16",fill:"currentColor",children:l.jsx("path",{d:"M4 2l10 6-10 6V2z"})})}),l.jsx("input",{type:"range",min:0,max:Math.max(e-1,0),value:t,onChange:u,disabled:!h,className:"timeline-slider flex-1 h-4 disabled:opacity-40"}),(0,l.jsxs)("span",{className:"shrink-0 text-xs text-zinc-500 font-medium text-right whitespace-nowrap",children:[(0,l.jsxs)("span",{className:"text-zinc-400",children:[t+1,"/",e]})," ",new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"})]}),(0,l.jsxs)("button",{onClick:d,className:`shrink-0 px-1.5 py-0.5 text-[10px] font-semibold rounded transition-colors ${i>1?"bg-emerald-500 text-white":"text-zinc-500 border border-zinc-200 hover:text-zinc-700"}`,children:[i,"x"]})]})})}let iW={open:"bg-emerald-500",in_progress:"bg-amber-500",blocked:"bg-red-500",deferred:"bg-violet-500",closed:"bg-zinc-400"};function iG(){let[e,t]=(0,o.useState)(null),[n,r]=(0,o.useState)(!0),[i,a]=(0,o.useState)(null),[s,c]=(0,o.useState)(null),[u,d]=(0,o.useState)(null),[p,f]=(0,o.useState)(new Set),[m,x]=(0,o.useState)("Beads"),[g,y]=(0,o.useState)(0),[b,v]=(0,o.useState)({}),{isAuthenticated:k,session:w}=(0,iv.a)(),{commentsByNode:j,commentedNodeIds:N,allComments:C,refetch:S}=function(){let[e,t]=(0,o.useState)(new Map),[n,r]=(0,o.useState)(new Map),[i,l]=(0,o.useState)([]),[a,s]=(0,o.useState)(!0),[c,u]=(0,o.useState)(null),d=(0,o.useRef)(!1);return{commentsByNode:e,commentedNodeIds:n,allComments:i,isLoading:a,error:c,refetch:(0,o.useCallback)(async()=>{try{s(!0),u(null);let[e,n]=await Promise.all([iV("org.impactindexer.review.comment"),iV("org.impactindexer.review.like")]),i=e.filter(e=>{let t=e.value.subject;return t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("beads:")}),o=new Map;for(let e of n){let t=e.value.subject;if(t?.uri&&"string"==typeof t.uri&&t.uri.startsWith("at://")){let n=o.get(t.uri)||[];n.push(e),o.set(t.uri,n)}}let a=new Set;for(let e of i)a.add(e.did);for(let e of n)a.add(e.did);let c=await Promise.all([...a].map(e=>iU(e))),h=new Map(c.map(e=>[e.did,e])),p=[];for(let e of i){let t=e.value,n=t.subject.uri.replace(/^beads:/,""),r=t.text||"",i=t.createdAt||"",l=t.replyTo||void 0,a=h.get(e.did),s=(o.get(e.uri)||[]).map(e=>{let t=h.get(e.did),n=e.value;return{did:e.did,handle:t?.handle||e.did.slice(0,20)+"...",displayName:t?.displayName,avatar:t?.avatar,createdAt:n.createdAt||"",uri:e.uri,rkey:e.rkey}}),c={did:e.did,handle:a?.handle||e.did.slice(0,20)+"...",displayName:a?.displayName,avatar:a?.avatar,text:r,createdAt:i,uri:e.uri,rkey:e.rkey,nodeId:n,replyTo:l,likes:s,replies:[]};p.push(c)}let f=new Map;for(let e of p)f.set(e.uri,e);let m=[];for(let e of p){if(e.replyTo){let t=f.get(e.replyTo);if(t){t.replies.push(e);continue}}m.push(e)}m.sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime()),function e(t){for(let n of t)n.replies.sort((e,t)=>new Date(e.createdAt).getTime()-new Date(t.createdAt).getTime()),e(n.replies)}(m);let x=new Map;for(let e of m){let t=x.get(e.nodeId)||[];t.push(e),x.set(e.nodeId,t)}let g=new Map;for(let e of p)g.set(e.nodeId,(g.get(e.nodeId)||0)+1);let y=[...p].sort((e,t)=>new Date(t.createdAt).getTime()-new Date(e.createdAt).getTime());d.current||(t(x),r(g),l(y))}catch(e){if(!d.current){let t=e instanceof Error?e.message:"Failed to fetch comments";console.error("Failed to fetch beads comments:",e),u(t)}}finally{d.current||s(!1)}},[])}}(),[z,D]=(0,o.useState)(new Map),[L,A]=(0,o.useState)(new Set),E=(0,o.useMemo)(()=>{let e=new Map;if(C)for(let t of C){if(e.has(t.nodeId)||L.has(t.nodeId))continue;let n=t.text.trim();n.startsWith("@")&&-1===n.indexOf(" ")&&e.set(t.nodeId,{avatar:t.avatar,handle:t.handle,claimedAt:t.createdAt,did:t.did,rkey:t.rkey})}for(let[t,n]of z)e.has(t)||L.has(t)||e.set(t,n);return e},[C,z,L]),[T,I]=(0,o.useState)(!1),[P,q]=(0,o.useState)([]),[F,R]=(0,o.useState)(!1),[O,_]=(0,o.useState)(!1),[B,U]=(0,o.useState)(null),[H,V]=(0,o.useState)(null),[$,W]=(0,o.useState)(null),[G,Y]=(0,o.useState)(null),[X,J]=(0,o.useState)(null),[K,Z]=(0,o.useState)(!1),[Q,ee]=(0,o.useState)(""),[et,en]=(0,o.useState)(0),[er,ei]=(0,o.useState)(!1),[el,eo]=(0,o.useState)(0),[ea,es]=(0,o.useState)(!1),[ec,eu]=(0,o.useState)(1),[ed,eh]=(0,o.useState)(null),ep=(0,o.useRef)(null),ef=(0,o.useRef)(null);(0,o.useRef)(null);let em=(0,o.useMemo)(()=>e?function(e,t){let n=[];for(let t of e){let e=new Date(t.createdAt).getTime();if(isNaN(e)||n.push({time:e,type:"node-created",id:t.id}),t.closedAt){let e=new Date(t.closedAt).getTime();isNaN(e)||n.push({time:e,type:"node-closed",id:t.id})}}n.sort((e,t)=>e.time-t.time);let r=n.length>0?n[0].time:Date.now(),i=n.length>0?n[n.length-1].time:Date.now();return{events:n,minTime:r,maxTime:i}}(e.graphData.nodes,e.graphData.links):null,[e]),ex=(0,o.useCallback)(()=>{ei(e=>{let t=!e;return t&&eo(-1),es(!1),eh(null),t})},[]),eg=(0,o.useCallback)(e=>{c(t=>t?.id===e.id?null:e),I(!1),R(!1)},[]),ey=(0,o.useCallback)((e,t,n)=>{d(e),J(e?{node:e,x:t,y:n}:null)},[]),eb=(0,o.useCallback)(e=>{f(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n})},[]),ev=(0,o.useMemo)(()=>{if(!e)return new Set;let{nodes:t,links:n}=e.graphData,r=new Set;for(let e of n)if("parent-child"===e.type){let t="object"==typeof e.source?e.source.id:e.source;r.add(t)}let i=new Set(t.map(e=>e.id));for(let e of t)if(e.id.includes(".")){let t=e.id.split(".")[0];i.has(t)&&r.add(t)}return r},[e]),ek=(0,o.useCallback)(()=>{f(new Set(ev))},[ev]),ew=(0,o.useCallback)(()=>{f(new Set)},[]),ej=(0,o.useCallback)(()=>{c(null),U(null),V(null)},[]),eN=(0,o.useCallback)((e,t)=>{V(null),J(null),e.description||k||"epic"===e.issueType?U({node:e,x:t.clientX,y:t.clientY}):V({node:e,x:t.clientX,y:t.clientY})},[k]),eC=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{$type:"org.impactindexer.review.comment",subject:{uri:`beads:${e}`,type:"record"},text:t,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post comment");await S()},[S]),eS=(0,o.useCallback)(async e=>{if(!w?.handle)return;let t=w.avatar;if(!t&&w.did)try{let e=await fetch(`https://public.api.bsky.app/xrpc/app.bsky.actor.getProfile?actor=${encodeURIComponent(w.did)}`);e.ok&&(t=(await e.json()).avatar)}catch{}D(n=>{let r=new Map(n);return r.set(e,{avatar:t,claimedAt:new Date().toISOString(),handle:w.handle}),r}),await eC(e,`@${w.handle}`),setTimeout(()=>S(),3e3)},[w?.handle,w?.did,w?.avatar,eC,S]),ez=(0,o.useCallback)(async e=>{let t=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.comment")}&rkey=${encodeURIComponent(e.rkey)}`,{method:"DELETE"});if(!t.ok)throw Error((await t.json()).error||"Failed to delete comment");await S()},[S]),eD=(0,o.useCallback)(async e=>{let t=E.get(e);t&&(A(t=>new Set(t).add(e)),D(t=>{let n=new Map(t);return n.delete(e),n}),t.rkey?(await ez({rkey:t.rkey}),A(t=>{let n=new Set(t);return n.delete(e),n})):setTimeout(async()=>{await S(),A(t=>{let n=new Set(t);return n.delete(e),n})},3e3))},[E,ez,S]),eL=(0,o.useCallback)(async e=>{let t=e.likes.find(e=>e.did===w?.did);if(t){let e=await fetch(`/api/records?collection=${encodeURIComponent("org.impactindexer.review.like")}&rkey=${encodeURIComponent(t.rkey)}`,{method:"DELETE"});if(!e.ok)throw Error((await e.json()).error||"Failed to unlike")}else{let t=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.like",record:{subject:{uri:e.uri,type:"record"},createdAt:new Date().toISOString()}})});if(!t.ok)throw Error((await t.json()).error||"Failed to like")}await S()},[w?.did,S]),eM=(0,o.useCallback)(async(e,t)=>{let n=await fetch("/api/records",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({collection:"org.impactindexer.review.comment",record:{subject:{uri:`beads:${e.nodeId}`,type:"record"},text:t,replyTo:e.uri,createdAt:new Date().toISOString()}})});if(!n.ok)throw Error((await n.json()).error||"Failed to post reply");await S()},[S]),eA=(0,o.useCallback)(t=>{if(!e)return;let n=e.graphData.nodes.find(e=>e.id===t);n&&c(n)},[e]),eE=(0,o.useMemo)(()=>{let e=new Map;if(!C)return e;let t=new Map;for(let e of C)t.has(e.nodeId)||t.set(e.nodeId,new Set),t.get(e.nodeId).add(e.handle),e.displayName&&t.get(e.nodeId).add(e.displayName);for(let[n,r]of t)e.set(n,Array.from(r).join(" "));return e},[C]),eT=(0,o.useMemo)(()=>{if(!e||!Q.trim())return[];let t=Q.toLowerCase();return e.graphData.nodes.filter(e=>{let n=eE.get(e.id)||"";return`${e.id} ${e.title} ${e.prefix} ${e.owner||""} ${e.assignee||""} ${e.createdBy||""} ${n}`.toLowerCase().includes(t)}).slice(0,8)},[Q,e,eE]),eI=(0,o.useCallback)(e=>{ep.current?.focusNode(e),Z(!1),ee(""),en(0)},[]),eP=(0,o.useCallback)(e=>{"ArrowDown"===e.key?(e.preventDefault(),en(e=>Math.min(e+1,eT.length-1))):"ArrowUp"===e.key?(e.preventDefault(),en(e=>Math.max(e-1,0))):"Enter"===e.key&&eT.length>0&&(e.preventDefault(),eI(eT[et]))},[eT,et,eI]);return n?(0,l.jsxs)("div",{className:"h-screen flex flex-col items-center justify-center bg-white",children:[(0,l.jsxs)("div",{className:"relative mb-6",children:[l.jsx("div",{className:"w-12 h-12 border-2 border-zinc-200 border-t-emerald-500 rounded-full animate-spin"}),l.jsx("div",{className:"absolute inset-0 flex items-center justify-center",children:l.jsx("div",{className:"w-2 h-2 rounded-full bg-emerald-500"})})]}),l.jsx("p",{className:"text-sm text-zinc-500 animate-pulse-soft",children:"Loading beads graph..."}),l.jsx("p",{className:"text-xs text-zinc-400 mt-1",children:"Parsing issues and dependencies"})]}):i?l.jsx("div",{className:"h-screen flex items-center justify-center bg-white",children:(0,l.jsxs)("div",{className:"max-w-sm text-center",children:[l.jsx("div",{className:"w-14 h-14 mx-auto mb-4 bg-red-50 rounded-full flex items-center justify-center",children:l.jsx("svg",{className:"w-7 h-7 text-red-400",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:1.5,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})})}),l.jsx("h2",{className:"text-lg font-semibold text-zinc-900 mb-1",children:"Unable to load data"}),l.jsx("p",{className:"text-sm text-zinc-500 mb-4",children:i}),(0,l.jsxs)("button",{onClick:()=>window.location.reload(),className:"inline-flex items-center gap-2 px-4 py-2 bg-emerald-600 text-white text-sm rounded-lg hover:bg-emerald-700 transition-colors",children:[l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M4 4v5h.582m15.356 2A8.001 8.001 0 004.582 9m0 0H9m11 11v-5h-.581m0 0a8.003 8.003 0 01-15.357-2m15.357 2H15"})}),"Try Again"]})]})}):e?(0,l.jsxs)("div",{className:"h-screen flex flex-col overflow-hidden bg-white",children:[l.jsx("header",{className:"sticky top-0 z-50 shrink-0 bg-white/95 backdrop-blur-sm border-b border-zinc-200/80",children:(0,l.jsxs)("div",{className:"px-6 h-14 flex items-center",children:[(0,l.jsxs)("div",{className:"flex items-center gap-3 shrink-0 group",children:[l.jsx(iw,{className:"w-8 h-8 text-emerald-500 transition-transform group-hover:scale-105"}),(0,l.jsxs)("div",{className:"flex items-baseline gap-2",children:[l.jsx("h1",{className:"text-[15px] font-semibold text-zinc-900 tracking-tight",children:m}),l.jsx("span",{className:"font-normal text-zinc-400 text-[15px] hidden sm:inline",children:"heartbeads"}),g>1&&(0,l.jsxs)("span",{className:"text-[10px] text-zinc-400 bg-zinc-100 rounded-full px-1.5 py-0.5 font-medium hidden sm:inline",children:[g," repos"]})]})]}),l.jsx("div",{className:"flex-1 flex justify-center px-4",children:l.jsx("div",{className:"relative w-full max-w-md",children:K?(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("div",{className:"flex items-center bg-white rounded-full border border-zinc-200 shadow-sm overflow-hidden",children:[l.jsx("div",{className:"pl-3 pr-1 text-zinc-400",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})})}),l.jsx("input",{ref:ef,type:"text",value:Q,onChange:e=>ee(e.target.value),onKeyDown:eP,placeholder:"Search issues...",className:"flex-1 px-2 py-1.5 text-xs text-zinc-800 bg-transparent outline-none placeholder:text-zinc-400",autoFocus:!0}),l.jsx("button",{onClick:()=>{Z(!1),ee(""),en(0)},className:"px-2 py-1.5 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),Q.trim()&&(0,l.jsxs)("div",{className:"absolute top-full left-0 right-0 mt-2 bg-white rounded-xl border border-zinc-100 shadow-xl overflow-hidden max-h-72 overflow-y-auto z-50",children:[0===eT.length?l.jsx("div",{className:"px-3 py-3 text-xs text-zinc-400 text-center",children:"No matching issues"}):eT.map((e,t)=>(0,l.jsxs)("button",{onClick:()=>eI(e),onMouseEnter:()=>en(t),className:`w-full text-left px-3 py-2 text-xs transition-colors flex items-start gap-2.5 ${t===et?"bg-emerald-50":"hover:bg-zinc-50"}`,children:[l.jsx("div",{className:"shrink-0 mt-1",children:l.jsx("div",{className:`w-2 h-2 rounded-full ${iW[e.status]||"bg-zinc-400"}`})}),(0,l.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,l.jsxs)("div",{className:"flex items-center gap-1.5",children:[l.jsx("span",{className:"font-medium text-zinc-600 shrink-0",children:e.id}),e.priority<=1&&l.jsx("span",{className:"text-[10px]",children:0===e.priority?"\uD83D\uDD25\uD83D\uDD25":"\uD83D\uDD25"})]}),l.jsx("div",{className:"text-zinc-400 truncate mt-0.5",children:e.title})]}),l.jsx("span",{className:"shrink-0 text-[10px] text-zinc-400 bg-zinc-100 rounded px-1 py-0.5 mt-0.5",children:e.prefix})]},e.id)),eT.length>0&&(0,l.jsxs)("div",{className:"px-3 py-1.5 text-[10px] text-zinc-400 border-t border-zinc-100 bg-zinc-50/50 flex items-center justify-between",children:[(0,l.jsxs)("span",{children:[eT.length," result",1!==eT.length?"s":""]}),(0,l.jsxs)("span",{children:[l.jsx("kbd",{className:"px-1 py-0.5 bg-white rounded border border-zinc-200 text-[9px] font-mono",children:"Enter"})," ","to focus"]})]})]})]}):(0,l.jsxs)("button",{onClick:()=>{Z(!0),setTimeout(()=>ef.current?.focus(),50)},className:"w-full flex items-center gap-2 px-3.5 py-1.5 text-sm text-zinc-400 rounded-full bg-zinc-50/80 border border-zinc-200/60 hover:text-zinc-500 hover:border-zinc-300 hover:bg-zinc-100/50 transition-all",title:"Search issues (Ctrl+F)",children:[l.jsx("svg",{className:"w-3.5 h-3.5 shrink-0",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"})}),l.jsx("span",{className:"flex-1 text-left",children:"Search issues..."}),(0,l.jsxs)("kbd",{className:"hidden sm:inline-block px-1 py-0.5 bg-zinc-100 rounded border border-zinc-200 text-[9px] font-mono text-zinc-400",children:["undefined"!=typeof navigator&&navigator.platform?.includes("Mac")?"⌘":"Ctrl","F"]})]})})}),(0,l.jsxs)("div",{className:"hidden md:flex items-center gap-1 shrink-0",children:[(0,l.jsxs)("button",{onClick:ex,className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${er?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Replay"})]}),(0,l.jsxs)("button",{onClick:()=>{I(e=>!e),T||(c(null),R(!1))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${T?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[l.jsx("svg",{className:"w-3.5 h-3.5",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 12.76c0 1.6 1.123 2.994 2.707 3.227 1.087.16 2.185.283 3.293.369V21l4.076-4.076a1.526 1.526 0 011.037-.443 48.282 48.282 0 005.68-.494c1.584-.233 2.707-1.626 2.707-3.228V6.741c0-1.602-1.123-2.995-2.707-3.228A48.394 48.394 0 0012 3c-2.392 0-4.744.175-7.043.513C3.373 3.746 2.25 5.14 2.25 6.741v6.018z"})}),l.jsx("span",{className:"hidden sm:inline",children:"Comments"})]}),(0,l.jsxs)("button",{onClick:()=>{R(e=>!e),F||(c(null),I(!1))},className:`flex items-center gap-1.5 px-4 py-2 text-sm font-medium rounded-full transition-colors ${F?"text-emerald-700 bg-emerald-50":"text-zinc-500 hover:text-zinc-900 hover:bg-zinc-50"}`,children:[(0,l.jsxs)("svg",{className:"w-3.5 h-3.5",viewBox:"0 0 16 16",fill:"none",stroke:"currentColor",strokeWidth:"1.5",children:[l.jsx("circle",{cx:"8",cy:"8",r:"6"}),l.jsx("polyline",{points:"8,4 8,8 11,10"})]}),l.jsx("span",{className:"hidden sm:inline",children:"Activity"})]}),l.jsx("div",{className:"w-px h-5 bg-zinc-200 mx-2"}),l.jsx(ik,{})]})]})}),(0,l.jsxs)("div",{className:"flex-1 flex overflow-hidden relative",children:[(0,l.jsxs)("div",{className:"flex-1 relative bg-zinc-50/50",children:[l.jsx("div",{className:"absolute inset-0 opacity-[0.03]",style:{backgroundImage:"radial-gradient(circle, #000 1px, transparent 1px)",backgroundSize:"24px 24px"}}),l.jsx(M,{ref:ep,nodes:er&&ed?ed.graphData.nodes:e.graphData.nodes,links:er&&ed?ed.graphData.links:e.graphData.links,selectedNode:s,hoveredNode:u,onNodeClick:eg,onNodeHover:ey,onBackgroundClick:ej,onNodeRightClick:eN,commentedNodeIds:N,claimedNodeAvatars:E,onAvatarHover:Y,timelineActive:er,stats:e.stats,sidebarOpen:!!s||T||F,collapsedEpicIds:p,onCollapseAll:ek,onExpandAll:ew}),er&&em&&em.events.length>0&&l.jsx("div",{className:"absolute bottom-4 z-10 transition-[right] duration-300 ease-out",style:{right:s||T||F?"calc(360px + 1rem)":"1rem"},children:l.jsx(i$,{totalSteps:em.events.length,currentStep:Math.max(el,0),currentTime:el>=0?em.events[el]?.time??em.minTime:em.minTime,isPlaying:ea,speed:ec,onStepChange:eo,onPlayPause:()=>es(e=>!e),onSpeedChange:eu})}),!s&&!T&&!F&&!er&&l.jsx("div",{className:"absolute top-3 right-3 sm:top-4 sm:right-4 z-10",children:l.jsx(iF,{events:P,collapsed:O,onToggleCollapse:()=>_(e=>!e),onExpandPanel:()=>{R(!0),c(null),I(!1)},onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&eI(n)}})}),B&&l.jsx(iN,{node:B.node,x:B.x,y:B.y,onShowDescription:()=>{W(B.node),U(null)},onAddComment:()=>{V({node:B.node,x:B.x,y:B.y}),U(null)},onClaimTask:k&&!E.has(B.node.id)?()=>{eS(B.node.id),U(null)}:void 0,onUnclaimTask:(()=>{if(!k)return;let e=E.get(B.node.id);if(e&&(e.did===w?.did||!e.did))return()=>{eD(B.node.id),U(null)}})(),onCollapseEpic:"epic"!==B.node.issueType||p.has(B.node.id)?void 0:()=>{eb(B.node.id),U(null)},onUncollapseEpic:"epic"===B.node.issueType&&p.has(B.node.id)?()=>{eb(B.node.id),U(null)}:void 0,onClose:()=>U(null)}),H&&l.jsx(ij,{node:H.node,x:H.x,y:H.y,onClose:()=>V(null),onSubmit:async e=>{await eC(H.node.id,e),V(null)},isAuthenticated:k,existingComments:j.get(H.node.id)}),$&&l.jsx(iu,{node:$,onClose:()=>W(null)}),X&&!G&&l.jsx(iS,{node:X.node,x:X.x,y:X.y,prefixColor:h(X.node.prefix),allNodes:er&&ed?ed.graphData.nodes:e.graphData.nodes}),G&&l.jsx("div",{style:{position:"fixed",left:G.x+12,top:G.y-8,zIndex:90,pointerEvents:"none"},children:(0,l.jsxs)("div",{className:"flex items-center gap-2 bg-white border border-zinc-200 rounded-lg shadow-lg px-2.5 py-2",children:[G.avatar?l.jsx("img",{src:G.avatar,alt:"",className:"w-6 h-6 rounded-full shrink-0"}):l.jsx("div",{className:"w-6 h-6 rounded-full bg-zinc-200 flex items-center justify-center text-[10px] font-medium text-zinc-500 shrink-0",children:G.handle.charAt(0).toUpperCase()}),(0,l.jsxs)("div",{className:"flex flex-col",children:[(0,l.jsxs)("span",{className:"text-xs text-zinc-700 whitespace-nowrap",children:[G.did?l.jsx("a",{href:`https://www.impactindexer.org/data?did=${G.did}`,target:"_blank",rel:"noopener noreferrer",className:"font-semibold text-zinc-800 hover:text-emerald-600 transition-colors",style:{pointerEvents:"auto"},children:G.handle}):l.jsx("span",{className:"font-semibold text-zinc-800",children:G.handle})," claimed this task"]}),l.jsx("span",{className:"text-[10px] text-zinc-400",children:ih(G.claimedAt)})]})]})})]}),(0,l.jsxs)("aside",{className:`hidden md:flex absolute top-0 right-0 h-full w-[360px] bg-white border-l border-zinc-200 flex-col shadow-xl z-30 transform transition-transform duration-300 ease-out ${s?"translate-x-0":"translate-x-full"}`,children:[(0,l.jsxs)("div",{className:"shrink-0 px-5 py-3 border-b border-zinc-100 flex items-center justify-between",children:[l.jsx("h2",{className:"text-xs font-semibold text-zinc-400 uppercase tracking-wider",children:"Node Detail"}),l.jsx("button",{onClick:()=>{c(null)},className:"p-1 text-zinc-400 hover:text-zinc-600 transition-colors rounded-full hover:bg-zinc-100",children:l.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:1.5,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-5 py-4 space-y-5",children:l.jsx(ip,{node:s,allNodes:e.graphData.nodes,onNodeNavigate:eA,comments:s?j.get(s.id):void 0,onPostComment:s?e=>eC(s.id,e):void 0,onDeleteComment:ez,onLikeComment:eL,onReplyComment:eM,isAuthenticated:k,currentDid:w?.did,repoUrls:b})})]}),l.jsx("div",{className:`md:hidden fixed inset-x-0 bottom-0 z-20 transform transition-transform duration-300 ease-out ${s?"translate-y-0":"translate-y-full"}`,children:(0,l.jsxs)("div",{className:"bg-white rounded-t-2xl border-t border-zinc-200 shadow-lg max-h-[60vh] flex flex-col",children:[(0,l.jsxs)("div",{className:"shrink-0 flex items-center justify-between px-4 pt-3 pb-2",children:[l.jsx("div",{className:"w-8 h-1 bg-zinc-300 rounded-full mx-auto"}),l.jsx("button",{onClick:()=>c(null),className:"absolute right-3 top-3 p-1 text-zinc-400 hover:text-zinc-600",children:l.jsx("svg",{className:"w-5 h-5",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",strokeWidth:2,children:l.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18L18 6M6 6l12 12"})})})]}),l.jsx("div",{className:"flex-1 overflow-y-auto custom-scrollbar px-4 pb-6 space-y-4",children:l.jsx(ip,{node:s,allNodes:e.graphData.nodes,onNodeNavigate:eA,comments:s?j.get(s.id):void 0,onPostComment:s?e=>eC(s.id,e):void 0,onDeleteComment:ez,onLikeComment:eL,onReplyComment:eM,isAuthenticated:k,currentDid:w?.did,repoUrls:b})})]})}),l.jsx(iL,{isOpen:T,onClose:()=>I(!1),allComments:C,onNodeNavigate:e=>{eA(e),I(!1)},isAuthenticated:k,currentDid:w?.did,onLikeComment:eL,onDeleteComment:ez}),l.jsx(iO,{events:P,isOpen:F,onClose:()=>R(!1),onNodeClick:t=>{let n=e?.graphData.nodes.find(e=>e.id===t);n&&(eI(n),R(!1))}})]})]}):null}},67960:(e,t,n)=>{"use strict";n.d(t,{AuthProvider:()=>o,a:()=>a});var r=n(98924),i=n(63911);let l=(0,i.createContext)(null);function o({children:e}){let[t,n]=(0,i.useState)({status:"idle",session:null,error:null,isLoading:!0}),o=(0,i.useCallback)(async e=>{n(e=>({...e,status:"authorizing",isLoading:!0,error:null}));try{let t=e.includes(".")?e:`${e}.bsky.social`,n=await fetch("/api/login",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({handle:t,returnTo:window.location.pathname+window.location.search})});if(!n.ok){let e=await n.json();throw Error(e.error||"Login failed")}let r=await n.json();window.location.href=r.redirectUrl}catch(t){let e=t instanceof Error?t:Error("Login failed");throw n({status:"error",session:null,error:e,isLoading:!1}),e}},[]),a=(0,i.useCallback)(async()=>{try{await fetch("/api/logout",{method:"POST"})}catch(e){console.error("Logout request failed:",e)}n({status:"idle",session:null,error:null,isLoading:!1})},[]);return r.jsx(l.Provider,{value:{state:t,login:o,logout:a},children:e})}function a(){let e=(0,i.useContext)(l);if(!e)throw Error("useAuth must be used within an AuthProvider");let{state:t,login:n,logout:r}=e;return{status:t.status,session:t.session,error:t.error,isLoading:t.isLoading,isAuthenticated:"authenticated"===t.status,login:n,logout:r}}},75609:e=>{"use strict";var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,l=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},o=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var r,i=t.call(e,"constructor"),l=e.constructor&&e.constructor.prototype&&t.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!i&&!l)return!1;for(r in e);return void 0===r||t.call(e,r)},a=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},s=function(e,n){if("__proto__"===n){if(!t.call(e,n))return;if(i)return i(e,n).value}return e[n]};e.exports=function e(){var t,n,r,i,c,u,d=arguments[0],h=1,p=arguments.length,f=!1;for("boolean"==typeof d&&(f=d,d=arguments[1]||{},h=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});h<p;++h)if(t=arguments[h],null!=t)for(n in t)r=s(d,n),d!==(i=s(t,n))&&(f&&i&&(o(i)||(c=l(i)))?(c?(c=!1,u=r&&l(r)?r:[]):u=r&&o(r)?r:{},a(d,{name:n,newValue:e(f,u,i)})):void 0!==i&&a(d,{name:n,newValue:i}));return d}},79661:e=>{"use strict";var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,n=/\n/g,r=/^\s*/,i=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,l=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,a=/^[;\s]*/,s=/^\s+|\s+$/g;function c(e){return e?e.replace(s,""):""}e.exports=function(e,s){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];s=s||{};var u=1,d=1;function h(e){var t=e.match(n);t&&(u+=t.length);var r=e.lastIndexOf("\n");d=~r?e.length-r:d+e.length}function p(){var e={line:u,column:d};return function(t){return t.position=new f(e),x(r),t}}function f(e){this.start=e,this.end={line:u,column:d},this.source=s.source}function m(t){var n=Error(s.source+":"+u+":"+d+": "+t);if(n.reason=t,n.filename=s.source,n.line=u,n.column=d,n.source=e,s.silent);else throw n}function x(t){var n=t.exec(e);if(n){var r=n[0];return h(r),e=e.slice(r.length),n}}function g(e){var t;for(e=e||[];t=y();)!1!==t&&e.push(t);return e}function y(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return m("End of comment missing");var r=e.slice(2,n-2);return d+=2,h(r),e=e.slice(n),d+=2,t({type:"comment",comment:r})}}return f.prototype.content=e,x(r),function(){var e,n=[];for(g(n);e=function(){var e=p(),n=x(i);if(n){if(y(),!x(l))return m("property missing ':'");var r=x(o),s=e({type:"declaration",property:c(n[0].replace(t,"")),value:r?c(r[0].replace(t,"")):""});return x(a),s}}();)!1!==e&&(n.push(e),g(n));return n}()}},63767:function(e,t,n){"use strict";var r=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(n(7130)),i=n(95655);function l(e,t){var n={};return e&&"string"==typeof e&&(0,r.default)(e,function(e,r){e&&r&&(n[(0,i.camelCase)(e,t)]=r)}),n}l.default=l,e.exports=l},95655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var n=/^--[a-zA-Z0-9_-]+$/,r=/-([a-z])/g,i=/^[^-]+$/,l=/^-(webkit|moz|ms|o|khtml)-/,o=/^-(ms)-/,a=function(e,t){return t.toUpperCase()},s=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){var c;return(void 0===t&&(t={}),!(c=e)||i.test(c)||n.test(c))?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(o,s):e.replace(l,s)).replace(r,a))}},7130:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let r=(0,i.default)(e),l="function"==typeof t;return r.forEach(e=>{if("declaration"!==e.type)return;let{property:r,value:i}=e;l?t(r,i,e):i&&((n=n||{})[r]=i)}),n};let i=r(n(79661))},19709:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>s,metadata:()=>o,viewport:()=>a});var r=n(55886),i=n(36691);let l=(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#AuthProvider`);(0,i.createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/lib/auth.tsx#useAuth`),n(29944);let o={title:"Beads Map",description:"Interactive dependency graph viewer for beads issues"},a={width:"device-width",initialScale:1,maximumScale:1,userScalable:!1};function s({children:e}){return r.jsx("html",{lang:"en",children:r.jsx("body",{children:r.jsx(l,{children:e})})})}},71363:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>r});let r=(0,n(36691).createProxy)(String.raw`/Users/david/Projects/gainforest/beads-map/app/page.tsx#default`)},29944:()=>{},26669:(e,t,n)=>{"use strict";function r(e,t,n,r){if(isNaN(t)||isNaN(n))return e;var i,l,o,a,s,c,u,d,h,p=e._root,f={data:r},m=e._x0,x=e._y0,g=e._x1,y=e._y1;if(!p)return e._root=f,e;for(;p.length;)if((c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o,i=p,!(p=p[d=u<<1|c]))return i[d]=f,e;if(a=+e._x.call(null,p.data),s=+e._y.call(null,p.data),t===a&&n===s)return f.next=p,i?i[d]=f:e._root=f,e;do i=i?i[d]=[,,,,]:e._root=[,,,,],(c=t>=(l=(m+g)/2))?m=l:g=l,(u=n>=(o=(x+y)/2))?x=o:y=o;while((d=u<<1|c)==(h=(s>=o)<<1|a>=l));return i[h]=p,i[d]=f,e}function i(e,t,n,r,i){this.node=e,this.x0=t,this.y0=n,this.x1=r,this.y1=i}function l(e){return e[0]}function o(e){return e[1]}function a(e,t,n){var r=new s(null==t?l:t,null==n?o:n,NaN,NaN,NaN,NaN);return null==e?r:r.addAll(e)}function s(e,t,n,r,i,l){this._x=e,this._y=t,this._x0=n,this._y0=r,this._x1=i,this._y1=l,this._root=void 0}function c(e){for(var t={data:e.data},n=t;e=e.next;)n=n.next={data:e.data};return t}n.d(t,{Z:()=>a});var u=a.prototype=s.prototype;u.copy=function(){var e,t,n=new s(this._x,this._y,this._x0,this._y0,this._x1,this._y1),r=this._root;if(!r)return n;if(!r.length)return n._root=c(r),n;for(e=[{source:r,target:n._root=[,,,,]}];r=e.pop();)for(var i=0;i<4;++i)(t=r.source[i])&&(t.length?e.push({source:t,target:r.target[i]=[,,,,]}):r.target[i]=c(t));return n},u.add=function(e){let t=+this._x.call(null,e),n=+this._y.call(null,e);return r(this.cover(t,n),t,n,e)},u.addAll=function(e){var t,n,i,l,o=e.length,a=Array(o),s=Array(o),c=1/0,u=1/0,d=-1/0,h=-1/0;for(n=0;n<o;++n)!(isNaN(i=+this._x.call(null,t=e[n]))||isNaN(l=+this._y.call(null,t)))&&(a[n]=i,s[n]=l,i<c&&(c=i),i>d&&(d=i),l<u&&(u=l),l>h&&(h=l));if(c>d||u>h)return this;for(this.cover(c,u).cover(d,h),n=0;n<o;++n)r(this,a[n],s[n],e[n]);return this},u.cover=function(e,t){if(isNaN(e=+e)||isNaN(t=+t))return this;var n=this._x0,r=this._y0,i=this._x1,l=this._y1;if(isNaN(n))i=(n=Math.floor(e))+1,l=(r=Math.floor(t))+1;else{for(var o,a,s=i-n||1,c=this._root;n>e||e>=i||r>t||t>=l;)switch(a=(t<r)<<1|e<n,(o=[,,,,])[a]=c,c=o,s*=2,a){case 0:i=n+s,l=r+s;break;case 1:n=i-s,l=r+s;break;case 2:i=n+s,r=l-s;break;case 3:n=i-s,r=l-s}this._root&&this._root.length&&(this._root=c)}return this._x0=n,this._y0=r,this._x1=i,this._y1=l,this},u.data=function(){var e=[];return this.visit(function(t){if(!t.length)do e.push(t.data);while(t=t.next)}),e},u.extent=function(e){return arguments.length?this.cover(+e[0][0],+e[0][1]).cover(+e[1][0],+e[1][1]):isNaN(this._x0)?void 0:[[this._x0,this._y0],[this._x1,this._y1]]},u.find=function(e,t,n){var r,l,o,a,s,c,u,d=this._x0,h=this._y0,p=this._x1,f=this._y1,m=[],x=this._root;for(x&&m.push(new i(x,d,h,p,f)),null==n?n=1/0:(d=e-n,h=t-n,p=e+n,f=t+n,n*=n);c=m.pop();)if((x=c.node)&&!((l=c.x0)>p)&&!((o=c.y0)>f)&&!((a=c.x1)<d)&&!((s=c.y1)<h)){if(x.length){var g=(l+a)/2,y=(o+s)/2;m.push(new i(x[3],g,y,a,s),new i(x[2],l,y,g,s),new i(x[1],g,o,a,y),new i(x[0],l,o,g,y)),(u=(t>=y)<<1|e>=g)&&(c=m[m.length-1],m[m.length-1]=m[m.length-1-u],m[m.length-1-u]=c)}else{var b=e-+this._x.call(null,x.data),v=t-+this._y.call(null,x.data),k=b*b+v*v;if(k<n){var w=Math.sqrt(n=k);d=e-w,h=t-w,p=e+w,f=t+w,r=x.data}}}return r},u.remove=function(e){if(isNaN(l=+this._x.call(null,e))||isNaN(o=+this._y.call(null,e)))return this;var t,n,r,i,l,o,a,s,c,u,d,h,p=this._root,f=this._x0,m=this._y0,x=this._x1,g=this._y1;if(!p)return this;if(p.length)for(;;){if((c=l>=(a=(f+x)/2))?f=a:x=a,(u=o>=(s=(m+g)/2))?m=s:g=s,t=p,!(p=p[d=u<<1|c]))return this;if(!p.length)break;(t[d+1&3]||t[d+2&3]||t[d+3&3])&&(n=t,h=d)}for(;p.data!==e;)if(r=p,!(p=p.next))return this;return((i=p.next)&&delete p.next,r)?i?r.next=i:delete r.next:t?(i?t[d]=i:delete t[d],(p=t[0]||t[1]||t[2]||t[3])&&p===(t[3]||t[2]||t[1]||t[0])&&!p.length&&(n?n[h]=p:this._root=p)):this._root=i,this},u.removeAll=function(e){for(var t=0,n=e.length;t<n;++t)this.remove(e[t]);return this},u.root=function(){return this._root},u.size=function(){var e=0;return this.visit(function(t){if(!t.length)do++e;while(t=t.next)}),e},u.visit=function(e){var t,n,r,l,o,a,s=[],c=this._root;for(c&&s.push(new i(c,this._x0,this._y0,this._x1,this._y1));t=s.pop();)if(!e(c=t.node,r=t.x0,l=t.y0,o=t.x1,a=t.y1)&&c.length){var u=(r+o)/2,d=(l+a)/2;(n=c[3])&&s.push(new i(n,u,d,o,a)),(n=c[2])&&s.push(new i(n,r,d,u,a)),(n=c[1])&&s.push(new i(n,u,l,o,d)),(n=c[0])&&s.push(new i(n,r,l,u,d))}return this},u.visitAfter=function(e){var t,n=[],r=[];for(this._root&&n.push(new i(this._root,this._x0,this._y0,this._x1,this._y1));t=n.pop();){var l=t.node;if(l.length){var o,a=t.x0,s=t.y0,c=t.x1,u=t.y1,d=(a+c)/2,h=(s+u)/2;(o=l[0])&&n.push(new i(o,a,s,d,h)),(o=l[1])&&n.push(new i(o,d,s,c,h)),(o=l[2])&&n.push(new i(o,a,h,d,u)),(o=l[3])&&n.push(new i(o,d,h,c,u))}r.push(t)}for(;t=r.pop();)e(t.node,t.x0,t.y0,t.x1,t.y1);return this},u.x=function(e){return arguments.length?(this._x=e,this):this._x},u.y=function(e){return arguments.length?(this._y=e,this):this._y}}};var t=require("../webpack-runtime.js");t.C(e);var n=e=>t(t.s=e),r=t.X(0,[719,251],()=>n(32143));module.exports=r})();
|