gcf-board 0.4.0 → 0.4.1
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.
|
@@ -13,7 +13,7 @@ Error generating stack: `+e.message+`
|
|
|
13
13
|
`},Pe={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function Fe(e){let{announcements:t=Pe,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Ne}=e,{announce:a,announcement:o}=ke(),s=ye(`DndLiveRegion`),[c,l]=(0,v.useState)(!1);if((0,v.useEffect)(()=>{l(!0)},[]),je((0,v.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=v.createElement(v.Fragment,null,v.createElement(De,{id:r,value:i.draggable}),v.createElement(Oe,{id:s,announcement:o}));return n?(0,re.createPortal)(u,n):u}var Ie;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(Ie||={});function Le(){}function Re(e,t){return(0,v.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function ze(){var e=[...arguments];return(0,v.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var Be=Object.freeze({x:0,y:0});function Ve(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function He(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function Ue(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var We=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=Ue(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Ve)};function Ge(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function Ke(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:Be}function qe(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var Je=qe(1);function Ye(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function Xe(e,t,n){let r=Ye(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var Ze={ignoreTransform:!1};function Qe(e,t){t===void 0&&(t=Ze);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=O(e).getComputedStyle(e);t&&(n=Xe(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function $e(e){return Qe(e,{ignoreTransform:!0})}function et(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function tt(e,t){return t===void 0&&(t=O(e).getComputedStyle(e)),t.position===`fixed`}function nt(e,t){t===void 0&&(t=O(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function rt(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(se(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!ce(i)||le(i)||n.includes(i))return n;let a=O(e).getComputedStyle(i);return i!==e&&nt(i,a)&&n.push(i),tt(i,a)?n:r(i.parentNode)}return e?r(e):n}function it(e){let[t]=rt(e,1);return t??null}function at(e){return!ie||!e?null:ae(e)?e:oe(e)?se(e)||e===ue(e).scrollingElement?window:ce(e)?e:null:null}function ot(e){return ae(e)?e.scrollX:e.scrollLeft}function st(e){return ae(e)?e.scrollY:e.scrollTop}function ct(e){return{x:ot(e),y:st(e)}}var lt;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(lt||={});function ut(e){return!ie||!e?!1:e===document.scrollingElement}function dt(e){let t={x:0,y:0},n=ut(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var ft={x:.2,y:.2};function pt(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=ft);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=dt(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=lt.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=lt.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=lt.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=lt.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function mt(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function ht(e){return e.reduce((e,t)=>xe(e,ct(t)),Be)}function gt(e){return e.reduce((e,t)=>e+ot(t),0)}function _t(e){return e.reduce((e,t)=>e+st(t),0)}function vt(e,t){if(t===void 0&&(t=Qe),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);it(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var yt=[[`x`,[`left`,`right`],gt],[`y`,[`top`,`bottom`],_t]],bt=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=rt(t),r=ht(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of yt)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},xt=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function St(e){let{EventTarget:t}=O(e);return e instanceof t?e:ue(e)}function Ct(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var wt;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(wt||={});function Tt(e){e.preventDefault()}function Et(e){e.stopPropagation()}var M;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(M||={});var Dt={start:[M.Space,M.Enter],cancel:[M.Esc],end:[M.Space,M.Enter,M.Tab]},Ot=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case M.Right:return{...n,x:n.x+25};case M.Left:return{...n,x:n.x-25};case M.Down:return{...n,y:n.y+25};case M.Up:return{...n,y:n.y-25}}},kt=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new xt(ue(t)),this.windowListeners=new xt(O(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(wt.Resize,this.handleCancel),this.windowListeners.add(wt.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(wt.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&vt(n),t(Be)}handleKeyDown(e){if(Se(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Dt,coordinateGetter:a=Ot,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:Be;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=k(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=dt(n),p=mt(n),m={x:Math.min(i===M.Right?p.right-p.width/2:p.right,Math.max(i===M.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===M.Down?p.bottom-p.height/2:p.bottom,Math.max(i===M.Down?p.top:p.top+p.height/2,u.y))},h=i===M.Right&&!s||i===M.Left&&!c,g=i===M.Down&&!l||i===M.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===M.Right&&e<=d.x||i===M.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===M.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===M.Down&&e<=d.y||i===M.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===M.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,xe(k(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};kt.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=Dt,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function At(e){return!!(e&&`distance`in e)}function jt(e){return!!(e&&`delay`in e)}var Mt=class{constructor(e,t,n){n===void 0&&(n=St(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=ue(i),this.documentListeners=new xt(this.document),this.listeners=new xt(n),this.windowListeners=new xt(O(i)),this.initialCoordinates=we(r)??Be,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(wt.Resize,this.handleCancel),this.windowListeners.add(wt.DragStart,Tt),this.windowListeners.add(wt.VisibilityChange,this.handleCancel),this.windowListeners.add(wt.ContextMenu,Tt),this.documentListeners.add(wt.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(jt(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(At(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(wt.Click,Et,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(wt.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=we(e)??Be,s=k(n,o);if(!t&&a){if(At(a)){if(a.tolerance!=null&&Ct(s,a.tolerance))return this.handleCancel();if(Ct(s,a.distance))return this.handleStart()}if(jt(a)&&Ct(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===M.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},Nt={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},Pt=class extends Mt{constructor(e){let{event:t}=e,n=ue(t.target);super(e,Nt,n)}};Pt.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var Ft={move:{name:`mousemove`},end:{name:`mouseup`}},It;(function(e){e[e.RightClick=2]=`RightClick`})(It||={});var Lt=class extends Mt{constructor(e){super(e,Ft,ue(e.event.target))}};Lt.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==It.RightClick&&(r?.({event:n}),!0)}}];var Rt={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},zt=class extends Mt{constructor(e){super(e,Rt)}static setup(){return window.addEventListener(Rt.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(Rt.move.name,e)};function e(){}}};zt.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var Bt;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(Bt||={});var Vt;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(Vt||={});function Ht(e){let{acceleration:t,activator:n=Bt.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=Vt.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=Wt({delta:d,disabled:!a}),[m,h]=pe(),g=(0,v.useRef)({x:0,y:0}),_=(0,v.useRef)({x:0,y:0}),y=(0,v.useMemo)(()=>{switch(n){case Bt.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case Bt.DraggableRect:return i}},[n,i,c]),b=(0,v.useRef)(null),x=(0,v.useCallback)(()=>{let e=b.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),S=(0,v.useMemo)(()=>s===Vt.TreeOrder?[...l].reverse():l,[s,l]);(0,v.useEffect)(()=>{if(!a||!l.length||!y)h();else{for(let e of S){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=pt(e,i,y,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),b.current=e,m(x,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()}},[t,x,r,h,a,o,JSON.stringify(y),JSON.stringify(p),m,l,S,u,JSON.stringify(f)])}var Ut={x:{[lt.Backward]:!1,[lt.Forward]:!1},y:{[lt.Backward]:!1,[lt.Forward]:!1}};function Wt(e){let{delta:t,disabled:n}=e,r=_e(t);return he(e=>{if(n||!r||!e)return Ut;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[lt.Backward]:e.x[lt.Backward]||i.x===-1,[lt.Forward]:e.x[lt.Forward]||i.x===1},y:{[lt.Backward]:e.y[lt.Backward]||i.y===-1,[lt.Forward]:e.y[lt.Forward]||i.y===1}}},[n,t,r])}function Gt(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return he(e=>t==null?null:r??e??null,[r,t])}function Kt(e,t){return(0,v.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var qt;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(qt||={});var Jt;(function(e){e.Optimized=`optimized`})(Jt||={});var Yt=new Map;function Xt(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,v.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,v.useRef)(e),d=g(),f=me(d),p=(0,v.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,v.useRef)(null),h=he(t=>{if(d&&!n)return Yt;if(!t||t===Yt||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new bt(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,v.useEffect)(()=>{u.current=e},[e]),(0,v.useEffect)(()=>{d||p()},[n,d]),(0,v.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,v.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case qt.Always:return!1;case qt.BeforeDragging:return n;default:return!n}}}function Zt(e,t){return he(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function N(e,t){return Zt(e,t)}function Qt(e){let{callback:t,disabled:n}=e,r=fe(t),i=(0,v.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,v.useEffect)(()=>()=>i?.disconnect(),[i]),i}function $t(e){let{callback:t,disabled:n}=e,r=fe(t),i=(0,v.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,v.useEffect)(()=>()=>i?.disconnect(),[i]),i}function en(e){return new bt(Qe(e),e)}function tn(e,t,n){t===void 0&&(t=en);let[r,i]=(0,v.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=Qt({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=$t({callback:a});return de(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function nn(e){return Ke(e,Zt(e))}var rn=[];function an(e){let t=(0,v.useRef)(e),n=he(n=>e?n&&n!==rn&&e&&t.current&&e.parentNode===t.current.parentNode?n:rt(e):rn,[e]);return(0,v.useEffect)(()=>{t.current=e},[e]),n}function on(e){let[t,n]=(0,v.useState)(null),r=(0,v.useRef)(e),i=(0,v.useCallback)(e=>{let t=at(e.target);t&&n(e=>e?(e.set(t,ct(t)),new Map(e)):null)},[]);return(0,v.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=at(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,ct(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{at(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,v.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>xe(e,t),Be):ht(e):Be,[e,t])}function sn(e,t){t===void 0&&(t=[]);let n=(0,v.useRef)(null);return(0,v.useEffect)(()=>{n.current=null},t),(0,v.useEffect)(()=>{let t=e!==Be;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?k(e,n.current):Be}function cn(e){(0,v.useEffect)(()=>{if(!ie)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function ln(e,t){return(0,v.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function un(e){return(0,v.useMemo)(()=>e?et(e):null,[e])}var dn=[];function fn(e,t){t===void 0&&(t=Qe);let[n]=e,r=un(n?O(n):null),[i,a]=(0,v.useState)(dn);function o(){a(()=>e.length?e.map(e=>ut(e)?r:new bt(t(e),e)):dn)}let s=$t({callback:o});return de(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function pn(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return ce(t)?t:e}function mn(e){let{measure:t}=e,[n,r]=(0,v.useState)(null),i=$t({callback:(0,v.useCallback)(e=>{for(let{target:n}of e)if(ce(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=ge((0,v.useCallback)(e=>{let n=pn(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,v.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var hn=[{sensor:Pt,options:{}},{sensor:kt,options:{}}],gn={current:{}},_n={draggable:{measure:$e},droppable:{measure:$e,strategy:qt.WhileDragging,frequency:Jt.Optimized},dragOverlay:{measure:Qe}},vn=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},yn={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new vn,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:Le},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:_n,measureDroppableContainers:Le,windowRect:null,measuringScheduled:!1},bn={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:Le,draggableNodes:new Map,over:null,measureDroppableContainers:Le},xn=(0,v.createContext)(bn),Sn=(0,v.createContext)(yn);function Cn(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new vn}}}function wn(e,t){switch(t.type){case Ie.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case Ie.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case Ie.DragEnd:case Ie.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case Ie.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new vn(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case Ie.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new vn(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case Ie.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new vn(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Tn(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,v.useContext)(xn),a=_e(r),o=_e(n?.id);return(0,v.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!Se(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=Ee(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function En(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function Dn(e){return(0,v.useMemo)(()=>({draggable:{..._n.draggable,...e?.draggable},droppable:{..._n.droppable,...e?.droppable},dragOverlay:{..._n.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function On(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,v.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;de(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=Ke(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=it(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var kn=(0,v.createContext)({...Be,scaleX:1,scaleY:1}),An;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(An||={});var jn=(0,v.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=hn,collisionDetection:o=We,measuring:s,modifiers:c,...l}=e,[u,d]=(0,v.useReducer)(wn,void 0,Cn),[f,p]=Me(),[m,h]=(0,v.useState)(An.Uninitialized),g=m===An.Initialized,{draggable:{active:_,nodes:y,translate:b},droppable:{containers:x}}=u,S=_==null?null:y.get(_),ee=(0,v.useRef)({initial:null,translated:null}),te=(0,v.useMemo)(()=>_==null?null:{id:_,data:S?.data??gn,rect:ee},[_,S]),C=(0,v.useRef)(null),[w,T]=(0,v.useState)(null),[E,D]=(0,v.useState)(null),ne=me(l,Object.values(l)),ie=ye(`DndDescribedBy`,t),ae=(0,v.useMemo)(()=>x.getEnabled(),[x]),oe=Dn(s),{droppableRects:se,measureDroppableContainers:ce,measuringScheduled:le}=Xt(ae,{dragging:g,dependencies:[b.x,b.y],config:oe.droppable}),ue=Gt(y,_),fe=(0,v.useMemo)(()=>E?we(E):null,[E]),pe=$e(),he=N(ue,oe.draggable.measure);On({activeNode:_==null?null:y.get(_),config:pe.layoutShiftCompensation,initialRect:he,measure:oe.draggable.measure});let ge=tn(ue,oe.draggable.measure,he),_e=tn(ue?ue.parentElement:null),ve=(0,v.useRef)({activatorEvent:null,active:null,activeNode:ue,collisionRect:null,collisions:null,droppableRects:se,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:x,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),be=x.getNodeFor(ve.current.over?.id),k=mn({measure:oe.dragOverlay.measure}),A=k.nodeRef.current??ue,Se=g?k.rect??ge:null,Ce=!!(k.nodeRef.current&&k.rect),Te=nn(Ce?null:ge),Ee=un(A?O(A):null),j=an(g?be??ue:null),De=fn(j),Oe=En(c,{transform:{x:b.x-Te.x,y:b.y-Te.y,scaleX:1,scaleY:1},activatorEvent:E,active:te,activeNodeRect:ge,containerNodeRect:_e,draggingNodeRect:Se,over:ve.current.over,overlayNodeRect:k.rect,scrollableAncestors:j,scrollableAncestorRects:De,windowRect:Ee}),ke=fe?xe(fe,b):null,je=on(j),Ne=sn(je),Pe=sn(je,[ge]),Le=xe(Oe,Ne),Re=Se?Je(Se,Oe):null,ze=te&&Re?o({active:te,collisionRect:Re,droppableRects:se,droppableContainers:ae,pointerCoordinates:ke}):null,Be=He(ze,`id`),[Ve,Ue]=(0,v.useState)(null),Ke=Ge(Ce?Oe:xe(Oe,Pe),Ve?.rect??null,ge),qe=(0,v.useRef)(null),Ye=(0,v.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(C.current==null)return;let i=y.get(C.current);if(!i)return;let a=e.nativeEvent,o=new n({active:C.current,activeNode:i,event:a,options:r,context:ve,onAbort(e){if(!y.get(e))return;let{onDragAbort:t}=ne.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!y.get(e))return;let{onDragPending:i}=ne.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=C.current;if(t==null)return;let n=y.get(t);if(!n)return;let{onDragStart:r}=ne.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:ee}};(0,re.unstable_batchedUpdates)(()=>{r?.(i),h(An.Initializing),d({type:Ie.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),T(qe.current),D(a)})},onMove(e){d({type:Ie.DragMove,coordinates:e})},onEnd:s(Ie.DragEnd),onCancel:s(Ie.DragCancel)});qe.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ve.current,o=null;if(t&&i){let{cancelDrop:s}=ne.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===Ie.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=Ie.DragCancel)}C.current=null,(0,re.unstable_batchedUpdates)(()=>{d({type:e}),h(An.Uninitialized),Ue(null),T(null),D(null),qe.current=null;let t=e===Ie.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=ne.current[t];e?.(o),f({type:t,event:o})}})}}},[y]),Xe=Kt(a,(0,v.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=y.get(r);if(C.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},C.current=r,Ye(n,t))},[y,Ye]));cn(a),de(()=>{ge&&m===An.Initializing&&h(An.Initialized)},[ge,m]),(0,v.useEffect)(()=>{let{onDragMove:e}=ne.current,{active:t,activatorEvent:n,collisions:r,over:i}=ve.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:Le.x,y:Le.y},over:i};(0,re.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[Le.x,Le.y]),(0,v.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ve.current;if(!e||C.current==null||!t||!i)return;let{onDragOver:a}=ne.current,o=r.get(Be),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,re.unstable_batchedUpdates)(()=>{Ue(s),a?.(c),f({type:`onDragOver`,event:c})})},[Be]),de(()=>{ve.current={activatorEvent:E,active:te,activeNode:ue,collisionRect:Re,collisions:ze,droppableRects:se,draggableNodes:y,draggingNode:A,draggingNodeRect:Se,droppableContainers:x,over:Ve,scrollableAncestors:j,scrollAdjustedTranslate:Le},ee.current={initial:Se,translated:Re}},[te,ue,ze,Re,y,A,Se,se,x,Ve,j,Le]),Ht({...pe,delta:b,draggingRect:Re,pointerCoordinates:ke,scrollableAncestors:j,scrollableAncestorRects:De});let Ze=(0,v.useMemo)(()=>({active:te,activeNode:ue,activeNodeRect:ge,activatorEvent:E,collisions:ze,containerNodeRect:_e,dragOverlay:k,draggableNodes:y,droppableContainers:x,droppableRects:se,over:Ve,measureDroppableContainers:ce,scrollableAncestors:j,scrollableAncestorRects:De,measuringConfiguration:oe,measuringScheduled:le,windowRect:Ee}),[te,ue,ge,E,ze,_e,k,y,x,se,Ve,ce,j,De,oe,le,Ee]),Qe=(0,v.useMemo)(()=>({activatorEvent:E,activators:Xe,active:te,activeNodeRect:ge,ariaDescribedById:{draggable:ie},dispatch:d,draggableNodes:y,over:Ve,measureDroppableContainers:ce}),[E,Xe,te,ge,d,ie,y,Ve,ce]);return v.createElement(Ae.Provider,{value:p},v.createElement(xn.Provider,{value:Qe},v.createElement(Sn.Provider,{value:Ze},v.createElement(kn.Provider,{value:Ke},i)),v.createElement(Tn,{disabled:n?.restoreFocus===!1})),v.createElement(Fe,{...n,hiddenTextDescribedById:ie}));function $e(){let e=w?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),Mn=(0,v.createContext)(null),Nn=`button`,Pn=`Draggable`;function Fn(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=ye(Pn),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,v.useContext)(xn),{role:p=Nn,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,v.useContext)(g?kn:Mn),[y,b]=ge(),[x,S]=ge(),ee=ln(o,t),te=me(n);return de(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:te}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,v.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===Nn?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:ee,node:y,over:f,setNodeRef:b,setActivatorNodeRef:S,transform:_}}var In=`Droppable`,Ln={timeout:25};function Rn(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=ye(In),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,v.useContext)(xn),u=(0,v.useRef)({disabled:n}),d=(0,v.useRef)(!1),f=(0,v.useRef)(null),p=(0,v.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:g}={...Ln,...i},_=me(h??r),y=$t({callback:(0,v.useCallback)(()=>{d.current?(p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(_.current)?_.current:[_.current]),p.current=null},g)):d.current=!0},[g]),disabled:m||!o}),[b,x]=ge((0,v.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),S=me(t);return(0,v.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),(0,v.useEffect)(()=>(s({type:Ie.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:S}}),()=>s({type:Ie.UnregisterDroppable,key:a,id:r})),[r]),(0,v.useEffect)(()=>{n!==u.current.disabled&&(s({type:Ie.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:b,over:c,setNodeRef:x}}function zn(e,t){if(!t||!Object.hasOwn(e.moves,t))return null;let{args:n,...r}=e.moves[t];return r.kind===`agent`?null:{...r,cmd:t}}var Bn=(e,t)=>e.moves.flatMap(e=>zn(t,e)??[]),Vn=(e,t)=>{let n=e.moves.find(e=>t.moves[e]?.kind===`agent`);return n?t.moves[n]:null},Hn=(e,t)=>!!(t.harness&&Vn(e,t)),Un=(e,t)=>!e.when||e.when.is.includes(String(t[e.when.key]??``)),Wn=e=>String(e??``).split(/[\s,]+/).filter(Boolean);function Gn(e,t){return Object.fromEntries(e.filter(e=>Un(e,t)&&t[e.key]!==void 0).map(e=>{let n=t[e.key];return e.kind===`list`?[e.key,(n??[]).map(e=>e.trim()).filter(Boolean)]:e.kind===`ids`||e.kind===`tags`?[e.key,Wn(n)]:[e.key,n]}))}var Kn=(e,t={})=>({...Object.fromEntries(e.flatMap(e=>e.default===void 0?[]:[[e.key,e.default]])),...t});function qn(e,t){let n=e[t.key];return n==null||n===``||n===0?null:Array.isArray(n)?n.length?n.join(`, `):null:t.kind===`rank`?`#${String(n)}`:String(n)}var Jn=(e,t)=>e.options?.find(e=>e.value===t)?.help??e.help;function Yn(e,t,n){if(t===n||!e.includes(t))return null;let r=e.filter(e=>e!==t),i=n===null?r.length:r.indexOf(n);return i<0?null:(r.splice(i,0,t),r.join()===e.join()?null:r)}var Xn=e=>{let t=e.reason??e.error??e.conflict,n=`${typeof e.cost_usd==`number`?` — $${e.cost_usd.toFixed(2)}`:``}${e.handoffs?`, ${e.handoffs} handoff${e.handoffs>1?`s`:``}`:``}${e.process?` — ${e.process}`:``}${e.lessons?`, ${e.lessons} lesson${e.lessons>1?`s`:``}`:``}`;return`${e.id}: ${e.result??`merged`}${t?` — ${t}`:``}${n}`};function Zn(e,t,n,r,i=``){let a=[...(n?.orphans??[]).map(e=>`picked up ${Xn(e)}`),...n?.gate?[`gate: ${n.gate}`]:[],...(n?.items??[]).map(Xn)],o=r.split(`
|
|
14
14
|
`).filter(Boolean).slice(-3).join(`
|
|
15
15
|
`),s=!t||(n?.items??[]).some(e=>e.result===`error`||e.result===`conflict`),c=a.length?a.join(`
|
|
16
|
-
`):o||(t?`ended`:`failed`);return{text:`run ${e.join(`, `)}:\n${c}${i?`\n${i}`:``}`,bad:s}}function Qn(e,t){return e.map(e=>{let n=t.find(t=>t.id===e);if(!n?.resumable)return e;let r=n.resume?.ended;return`${e} (${r===`limit`?`paused: limit: resumes its session`:r===`handoff`?`paused: context handoff: a fresh session goes on from the plan`:`interrupted: resumes its kept work`})`}).join(`, `)}var $n=e=>({console:`running — console run`,session:`running — your session`})[e.running_kind??``]??`running`,er=e=>{let t=new Date(e);return`${[t.getFullYear(),t.getMonth()+1,t.getDate()].map(e=>String(e).padStart(2,`0`)).join(`-`)} ${tr(e)}`},tr=e=>new Date(e).toTimeString().slice(0,5);function nr(e,t){return t?.ids.includes(e.id)?`Hit the usage limit; the board resumes it at ${tr(t.at)}`:`Its last run stopped; the next run resumes its work`}function rr(e,t){let n={handoff:`context handoff`,limit:`limit`}[e.resume?.ended??``];return n?t?.ids.includes(e.id)?`paused: ${n}, resumes ${tr(t.at)}`:`paused: ${n}`:`interrupted`}var ir=e=>e.running?`running`:e.status,ar={status:`running`,label:`running`,help:`An agent session works on it`};function or(e){return e.plan?`error`in e.plan?(0,w.jsx)(`span`,{className:`plan error`,title:e.plan.error,children:`plan ✘`}):(0,w.jsxs)(`span`,{className:`plan`,children:[e.plan.done,`/`,e.plan.tasks]}):null}var sr=3e5,cr=e=>e<6e4?`${Math.round(e/1e3)} s`:e<36e5?`${Math.round(e/6e4)} min`:`${Math.round(e/36e5)} h`;function lr({at:e}){let[t,n]=(0,v.useState)(Date.now());(0,v.useEffect)(()=>{let e=setInterval(()=>n(Date.now()),5e3);return()=>clearInterval(e)},[]);let r=Math.max(0,t-Date.parse(e)),i=`Its run log was last written at ${new Date(e).toLocaleTimeString()}`;return r<sr?(0,w.jsxs)(`span`,{className:`activity`,title:i,children:[`active `,cr(r),` ago`]}):(0,w.jsxs)(`span`,{className:`quiet`,title:i,children:[`quiet `,cr(r)]})}function ur({item:e,ctx:t,selected:n,onSelect:r}){let{attributes:i,listeners:a,setNodeRef:o,transform:s,isDragging:c}=Fn({id:e.id}),l=Rn({id:`before:${e.id}`,disabled:ir(e)!==t.board.domain.runs_from||!t.board.domain.rank}),u=e=>{o(e),l.setNodeRef(e)},d=s?{transform:`translate(${s.x}px, ${s.y}px)`}:{},f=t.board.runs?.queued.includes(e.id),{domain:p}=t.board,m=p.fields.flatMap(t=>{let n=t.card?qn(e,t):null;return n===null?[]:[{f:t,v:n}]}),h=m.filter(({f:e})=>e.badge).map(({f:e,v:t})=>`${e.key}-${t}`),g=m.filter(({f:e})=>e.badge||e.kind===`rank`),_=m.filter(({f:e})=>e.kind===`longtext`),v=m.filter(e=>!g.includes(e)&&!_.includes(e));return(0,w.jsxs)(`div`,{ref:u,style:d,className:`card ${h.join(` `)} ${c?`dragging`:``} ${l.isOver&&!c?`drop-before`:``}`,...i,...a,onClick:()=>t.openItem(e.id),children:[(0,w.jsxs)(`div`,{className:`card-top`,children:[Hn(e,t.board.domain)&&!f&&(0,w.jsx)(`input`,{type:`checkbox`,checked:n,onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),onChange:e=>r(e.target.checked),"aria-label":`select ${e.id} for a run`}),g.filter(({f:e})=>e.kind===`rank`).map(({f:e,v:t})=>(0,w.jsx)(`span`,{className:`rank`,title:e.help,children:t},e.key)),(0,w.jsx)(`span`,{className:`id`,children:e.id}),g.filter(({f:e})=>e.kind!==`rank`).map(({f:e,v:t})=>(0,w.jsx)(`span`,{className:`${e.key} ${e.key}-${t}`,title:Jn(e,t),children:t},e.key))]}),e.title&&(0,w.jsx)(`div`,{className:`title`,children:e.title}),(0,w.jsxs)(`div`,{className:`card-bottom`,children:[or(e),e.running&&e.running_kind!==`session`&&e.active_at&&(0,w.jsx)(lr,{at:e.active_at}),e.running_kind===`console`&&(0,w.jsx)(`span`,{className:`queued`,children:`console run`}),e.running_kind===`session`&&(0,w.jsx)(`span`,{className:`queued`,title:`Your own agent session works on it; release the mark when you are done`,children:`your session`}),e.verified&&(0,w.jsx)(`span`,{className:`verified`,children:`verified`}),e.resumable&&(0,w.jsx)(`span`,{className:`queued`,title:nr(e,t.board.runs?.resume),children:rr(e,t.board.runs?.resume)}),f&&(0,w.jsx)(`span`,{className:`queued`,title:`Waits for the main run going on; starts after it`,children:`queued`}),v.map(({f:e,v:t})=>(0,w.jsxs)(`span`,{className:`field ${e.key}`,title:e.help,children:[e.label,` `,t]},e.key)),p.sections.lessons&&(e.lessons??0)>0&&(0,w.jsxs)(`span`,{className:`lessons`,title:`What got in its agents' way: lessons in the inbox`,children:[e.lessons,` lesson`,(e.lessons??0)>1?`s`:``]})]}),_.map(({f:e,v:t})=>(0,w.jsx)(`div`,{className:`long ${e.key}`,title:e.help,children:t},e.key))]})}function dr({name:e,label:t,help:n,children:r,count:i}){let{setNodeRef:a,isOver:o}=Rn({id:e});return(0,w.jsxs)(`section`,{ref:a,className:`column ${o?`over`:``}`,children:[(0,w.jsxs)(`h3`,{title:n,children:[t,` `,(0,w.jsx)(`span`,{className:`count`,children:i})]}),r]})}function fr({ctx:e,where:t}){let[n,r]=(0,v.useState)(3),[i,a]=(0,v.useState)(!1),o=async()=>{a(!0);try{let r=await S.next(e.project.name,n);r.length?await D(`Run ${Qn(r,e.board.items)}? One agent session each, ${t}.`,`Run`)&&await e.run(r):e.notify(`nothing can run now: dependencies, WIP or a run in progress`,`error`)}catch(t){e.notify(t.message,`error`)}a(!1)};return(0,w.jsxs)(`span`,{className:`run-next`,children:[(0,w.jsx)(`button`,{disabled:i,onClick:()=>void o(),title:`The framework's gate picks them`,children:`Run next`}),(0,w.jsx)(`input`,{type:`number`,min:1,max:20,value:n,onChange:e=>r(Math.max(1,Math.min(20,Number(e.target.value)||1))),"aria-label":`how many`}),`independent`]})}function pr({label:e}){let{setNodeRef:t,isOver:n}=Rn({id:`graveyard`});return(0,w.jsxs)(`div`,{ref:t,className:`graveyard-zone ${n?`over`:``}`,children:[`drop here → `,e]})}function mr({ctx:e}){let[t,n]=(0,v.useState)(new Set),r=ze(Re(Pt,{activationConstraint:{distance:8}}),Re(zt,{activationConstraint:{delay:300,tolerance:8}})),i=e.board.items,{domain:a}=e.board,o=a.runs_from,s=a.columns.flatMap(e=>e.status===o?[e,ar]:[e]),c=e.board.runs?.queued??[],l=[...t].filter(e=>!c.includes(e)&&i.some(t=>t.id===e&&Hn(t,a))),u=e.board.run_mode===`main`?`in the project folder, one at a time`:`in its own worktree`,d=i.filter(e=>ir(e)===o).map(e=>e.id),f=zn(a,a.rank),p=(t,n)=>{let r=Yn(d,t,n);r&&f&&e.move({cmd:f.cmd,ids:r})};return(0,w.jsxs)(jn,{sensors:r,onDragEnd:t=>{let n=i.find(e=>e.id===t.active.id),r=t.over?.id?String(t.over.id):``;if(!n||!r)return;if(r.startsWith(`before:`)){if(ir(n)===o)return p(n.id,r.slice(7));r=o}if(r===o&&ir(n)===o)return p(n.id,null);if(r===ir(n))return;if(r===`running`&&Hn(n,a)){D(`Run ${Qn([n.id],[n])}? An agent session starts ${u}.`,`Run`).then(t=>{t&&e.run([n.id])});return}let s=Bn(n,a).find(e=>e.drag===r);s?e.openMove({title:`${s.label} ${n.id}`,id:n.id,move:s}):e.notify(`no move takes ${n.id} to ${String(r)}: open it for its moves`,`error`)},children:[(0,w.jsxs)(`div`,{className:`board-actions`,children:[a.harness&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(`button`,{className:`primary`,disabled:!l.length,onClick:async()=>{await D(`Run ${Qn(l,e.board.items)}? One agent session each, ${u}.`,`Run`)&&(e.run(l),n(new Set))},children:[`Run `,l.length||``,` selected`]}),(0,w.jsx)(fr,{ctx:e,where:u})]}),a.sections.graveyard&&(0,w.jsx)(pr,{label:a.sections.graveyard.label??`graveyard`})]}),(0,w.jsx)(`div`,{className:`columns`,children:s.map(({status:r,label:a,help:o})=>{let s=i.filter(e=>ir(e)===r);return(0,w.jsx)(dr,{name:r,label:a,help:o,count:s.length,children:s.map(r=>(0,w.jsx)(ur,{item:r,ctx:e,selected:t.has(r.id),onSelect:e=>n(t=>{let n=new Set(t);return e?n.add(r.id):n.delete(r.id),n})},r.id))},r)})})]})}var hr=e=>e===!0?`✔`:e===!1?`✘`:`?`;function gr({ctx:e,onHelp:t}){let{board:n}=e,{sections:r}=n.domain,i=!n.phase||`error`in n.phase?null:n.phase,a=zn(n.domain,r.phase?.next),o=()=>a&&e.openMove({title:`Phase ${i?.phase} → ${i?.next}`,move:{...a,fields:a.fields.map(e=>e.key===`reason`?{...e,required:!i?.ready}:e)}}),s=zn(n.domain,n.domain.new_item);return(0,w.jsxs)(`section`,{className:`header`,children:[r.phase&&(0,w.jsx)(`div`,{className:`phase`,children:i?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`span`,{className:`badge`,children:i.phase}),i.criteria.map(e=>(0,w.jsxs)(`span`,{className:`criterion met-${String(e.met)}`,title:e.detail,children:[hr(e.met),` `,e.name]},e.name)),i.next&&a&&(0,w.jsxs)(`button`,{title:a.help,onClick:o,children:[`→ `,i.next]})]}):n.phase&&(0,w.jsxs)(`span`,{className:`error`,children:[`phase: `,n.phase.error]})}),(0,w.jsxs)(`div`,{className:`badge`,title:n.run_mode===`main`?`Runs go one at a time in the project folder (run_mode: main)`:`Each run goes in its own worktree, several at once (run_mode: worktree)`,children:[`runs: `,n.run_mode,n.runs?.queued.length?` · ${n.runs.queued.length} queued`:``]}),n.runs?.paused&&!(n.runs.paused_by===`limit`&&n.runs.resume)&&(0,w.jsx)(`button`,{className:`danger`,title:`A run failed in a way the next one would repeat, or hit the usage limit; resume when it is fixed or reset`,onClick:()=>void e.resumeQueue(),children:`queue paused — resume`}),n.runs?.resume&&(0,w.jsxs)(`span`,{className:`badge`,title:`After the usage limit: ${n.runs.resume.ids.join(`, `)}`,children:[`resumes `,tr(n.runs.resume.at),` `,(0,w.jsx)(`button`,{onClick:()=>void e.cancelResume(),children:`cancel`})]}),r.wip&&n.wip&&(0,w.jsxs)(`div`,{className:`wip ${n.wip.over?`over`:``}`,title:r.wip.help,children:[`WIP `,n.wip.count,`/`,n.wip.limit]}),r.release&&n.release&&(0,w.jsxs)(`div`,{className:`release`,children:[`release `,n.release.version,n.release.channel?` · ${n.release.channel}`:``,n.release.date?` · ${n.release.date}`:``]}),s&&(0,w.jsx)(`button`,{className:`primary`,title:s.help,onClick:()=>e.newItem(),children:`+ item`}),(0,w.jsx)(`button`,{onClick:t,title:`Help: the terms, the columns, the moves`,"aria-label":`help`,children:`?`})]})}function _r(e){let t=[e.sections?.includes(`GDD#`)?`from the GDD import${e.lens?` (${e.lens})`:``}`:null,e.sys&&e.sys!==`-`?`systems: ${e.sys}`:null,e.until?`comes back on ${e.until}`:null].filter(Boolean);return t.length?t.join(` · `):`from an agent run`}var vr=e=>e.source===`lesson`,yr=(e,t)=>t===`all`?e:e.filter(e=>vr(e)===(t===`lessons`)),br=(e,t)=>e.filter(e=>vr(e)&&e.item===t),xr=[`all`,`lessons`,`other`];function Sr({ctx:e,e:t,onItem:n,withItem:r=!0}){let i=zn(e.board.domain,e.board.domain.sections.inbox?.drop);return(0,w.jsxs)(`li`,{children:[(0,w.jsx)(`span`,{className:`badge`,children:vr(t)?`lesson: ${t.kind??`other`}`:t.source}),` `,r&&t.item&&(0,w.jsx)(`button`,{className:`link`,onClick:()=>e.openItem(t.item??``),children:t.item}),` `,t.text,(0,w.jsxs)(`span`,{className:`row-actions`,children:[e.board.domain.new_item&&(0,w.jsx)(`button`,{onClick:()=>n(t.id,t.text),children:`→ item`}),i&&(0,w.jsx)(`button`,{className:`danger`,title:i.help,onClick:()=>void e.move({cmd:i.cmd,id:t.id}),children:i.label})]})]})}function Cr({ctx:e,onItem:t}){let{sections:n}=e.board.domain,r=zn(e.board.domain,n.inbox?.add),i=r?.fields.find(e=>e.key===`source`),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(i?.default??``),[l,u]=(0,v.useState)(`all`),d=n.inbox?e.board.inbox??[]:[],f=n.questions?e.board.questions??[]:[],p=!!n.lessons&&d.some(vr),m=p?l:`all`,h=yr(d,m),g=f.filter(e=>e.class!==`D2`),_=f.filter(e=>e.class===`D2`);return(0,w.jsxs)(`section`,{className:`list-view`,children:[r&&(0,w.jsxs)(`form`,{className:`inline-form`,onSubmit:async t=>{t.preventDefault(),r&&await e.move({cmd:r.cmd,text:a,...s?{source:s}:{}})&&o(``)},title:r.help,children:[(0,w.jsx)(`input`,{value:a,onChange:e=>o(e.target.value),placeholder:`An idea, a playtest note, a CI finding`,required:!0}),i?.options&&(0,w.jsx)(`select`,{value:s,onChange:e=>c(e.target.value),children:i.options.map(e=>(0,w.jsx)(`option`,{value:e.value,children:e.label},e.value))}),(0,w.jsx)(`button`,{type:`submit`,className:`primary`,children:r.label})]}),p&&(0,w.jsx)(`nav`,{className:`tabs`,"aria-label":`inbox filter`,children:xr.map(e=>(0,w.jsx)(`button`,{className:e===m?`active`:``,onClick:()=>u(e),children:e},e))}),n.inbox&&!h.length&&(0,w.jsx)(`p`,{className:`muted`,children:`inbox empty`}),(0,w.jsx)(`ul`,{children:h.map(n=>(0,w.jsx)(Sr,{ctx:e,e:n,onItem:t},n.id))}),g.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(`h3`,{children:[`Waiting for your answer (`,g.filter(e=>!e.answer).length,`)`]}),(0,w.jsx)(`p`,{className:`muted`,children:`Only you can answer these (D1). They keep no time limit: a record lives until it is answered, and the audit marks it stale after a while. An answer frees the units it blocks; the next agent on them puts it in place.`}),g.map(t=>(0,w.jsx)(wr,{ctx:e,q:t},t.id))]}),_.length>0&&(0,w.jsxs)(`details`,{children:[(0,w.jsx)(`summary`,{children:(0,w.jsxs)(`h3`,{children:[`Assumptions the agent made (`,_.length,`)`]})}),(0,w.jsxs)(`p`,{className:`muted`,children:[`Not questions (D2): the agent decided these itself and works with them. Each comes back to you when its trigger fires (`,(0,w.jsx)(`code`,{children:`until:`}),`). Answer one only to overrule it.`]}),_.map(t=>(0,w.jsx)(wr,{ctx:e,q:t},t.id))]})]})}function wr({ctx:e,q:t}){let[n,r]=(0,v.useState)(``),i=zn(e.board.domain,e.board.domain.sections.questions?.answer);return(0,w.jsxs)(`article`,{className:`check`,children:[(0,w.jsxs)(`header`,{children:[(0,w.jsx)(`strong`,{children:t.id}),` `,(0,w.jsx)(`span`,{className:`badge`,children:t.class??`?`}),t.blocks&&(0,w.jsxs)(`span`,{className:`muted`,children:[` blocks `,t.blocks]})]}),t.question&&(0,w.jsx)(`p`,{children:t.question}),t.assumed&&(0,w.jsxs)(`p`,{children:[(0,w.jsx)(`b`,{children:`Assumed:`}),` `,t.assumed]}),(0,w.jsx)(`p`,{className:`muted`,children:_r(t)}),t.proposed&&(0,w.jsxs)(`p`,{className:`muted`,children:[(0,w.jsx)(`b`,{children:`Proposed:`}),` `,t.proposed]}),t.answer&&(0,w.jsxs)(`p`,{className:`ok`,children:[(0,w.jsx)(`b`,{children:`Answered:`}),` `,t.answer,` `,(0,w.jsx)(`span`,{className:`muted`,children:`(waits for the agent to apply)`})]}),i&&(0,w.jsxs)(`form`,{className:`inline-form`,onSubmit:async a=>{a.preventDefault(),i&&await e.move({cmd:i.cmd,id:t.id,text:n})&&r(``)},children:[(0,w.jsx)(`input`,{value:n,onChange:e=>r(e.target.value),placeholder:t.answer?`Change the answer`:t.class===`D2`?`What it should be`:`Your answer`,required:!0}),t.proposed&&!t.answer&&t.class!==`D2`&&(0,w.jsx)(`button`,{type:`button`,onClick:()=>r(t.proposed??``),children:`use proposed`}),(0,w.jsx)(`button`,{type:`submit`,className:`primary`,children:t.class===`D2`?`Overrule`:`Answer`})]})]})}function Tr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Er=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Or={};function kr(e,t){return((t||Or).jsx?Dr:Er).test(e)}var Ar=/[ \t\n\f\r]/g;function jr(e){return typeof e==`object`?e.type===`text`&&Mr(e.value):Mr(e)}function Mr(e){return e.replace(Ar,``)===``}var Nr=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Nr.prototype.normal={},Nr.prototype.property={},Nr.prototype.space=void 0;function Pr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Nr(n,r,t)}function Fr(e){return e.toLowerCase()}var Ir=class{constructor(e,t){this.attribute=t,this.property=e}};Ir.prototype.attribute=``,Ir.prototype.booleanish=!1,Ir.prototype.boolean=!1,Ir.prototype.commaOrSpaceSeparated=!1,Ir.prototype.commaSeparated=!1,Ir.prototype.defined=!1,Ir.prototype.mustUseProperty=!1,Ir.prototype.number=!1,Ir.prototype.overloadedBoolean=!1,Ir.prototype.property=``,Ir.prototype.spaceSeparated=!1,Ir.prototype.space=void 0;var Lr=s({boolean:()=>P,booleanish:()=>zr,commaOrSpaceSeparated:()=>Hr,commaSeparated:()=>Vr,number:()=>F,overloadedBoolean:()=>Br,spaceSeparated:()=>I}),Rr=0,P=Ur(),zr=Ur(),Br=Ur(),F=Ur(),I=Ur(),Vr=Ur(),Hr=Ur();function Ur(){return 2**++Rr}var Wr=Object.keys(Lr),Gr=class extends Ir{constructor(e,t,n,r){let i=-1;if(super(e,t),Kr(this,`space`,r),typeof n==`number`)for(;++i<Wr.length;){let e=Wr[i];Kr(this,Wr[i],(n&Lr[e])===Lr[e])}}};Gr.prototype.defined=!0;function Kr(e,t,n){n&&(e[t]=n)}function qr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Gr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Fr(r)]=r,n[Fr(a.attribute)]=r}return new Nr(t,n,e.space)}var Jr=qr({properties:{ariaActiveDescendant:null,ariaAtomic:zr,ariaAutoComplete:null,ariaBusy:zr,ariaChecked:zr,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:zr,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:zr,ariaFlowTo:I,ariaGrabbed:zr,ariaHasPopup:null,ariaHidden:zr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:F,ariaLive:null,ariaModal:zr,ariaMultiLine:zr,ariaMultiSelectable:zr,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:zr,ariaReadOnly:zr,ariaRelevant:null,ariaRequired:zr,ariaRoleDescription:I,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:zr,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Yr(e,t){return t in e?e[t]:t}function Xr(e,t){return Yr(e,t.toLowerCase())}var Zr=qr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Vr,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:P,allowPaymentRequest:P,allowUserMedia:P,alpha:P,alt:null,as:null,async:P,autoCapitalize:null,autoComplete:I,autoFocus:P,autoPlay:P,blocking:I,capture:null,charSet:null,checked:P,cite:null,className:I,closedBy:null,colorSpace:null,cols:F,colSpan:F,command:null,commandFor:null,content:null,contentEditable:zr,controls:P,controlsList:I,coords:F|Vr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:P,defer:P,dir:null,dirName:null,disabled:P,download:Br,draggable:zr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:P,formTarget:null,headers:I,height:F,hidden:Br,high:F,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:P,inputMode:null,integrity:null,is:null,isMap:P,itemId:null,itemProp:I,itemRef:I,itemScope:P,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:P,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:P,muted:P,name:null,nonce:null,noModule:P,noValidate:P,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:P,optimum:F,pattern:null,ping:I,placeholder:null,playsInline:P,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:P,referrerPolicy:null,rel:I,required:P,reversed:P,rows:F,rowSpan:F,sandbox:I,scope:null,scoped:P,seamless:P,selected:P,shadowRootClonable:P,shadowRootCustomElementRegistry:P,shadowRootDelegatesFocus:P,shadowRootMode:null,shadowRootSerializable:P,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:zr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:P,useMap:null,value:zr,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:P,declare:P,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:P,noHref:P,noShade:P,noWrap:P,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:zr,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:P,disablePictureInPicture:P,disableRemotePlayback:P,exportParts:Vr,part:I,prefix:null,property:null,results:F,security:null,unselectable:null},space:`html`,transform:Xr}),Qr=qr({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`,maskType:`mask-type`,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:Hr,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:I,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:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:P,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,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:Vr,g2:Vr,glyphName:Vr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:Hr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:F,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:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hr,rev:Hr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hr,requiredFeatures:Hr,requiredFonts:Hr,requiredFormats:Hr,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:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:Hr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hr,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Yr}),$r=qr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),ei=qr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xr}),ti=qr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ni={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`},ri=/[A-Z]/g,ii=/-[a-z]/g,ai=/^data[-\w.:]+$/i;function oi(e,t){let n=Fr(t),r=t,i=Ir;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ai.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(ii,ci);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ii.test(e)){let n=e.replace(ri,si);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Gr}return new i(r,t)}function si(e){return`-`+e.toLowerCase()}function ci(e){return e.charAt(1).toUpperCase()}var li=Pr([Jr,Zr,$r,ei,ti],`html`),ui=Pr([Jr,Qr,$r,ei,ti],`svg`);function di(e){return e.join(` `).trim()}var fi=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
16
|
+
`):o||(t?`ended`:`failed`);return{text:`run ${e.join(`, `)}:\n${c}${i?`\n${i}`:``}`,bad:s}}function Qn(e,t){return e.map(e=>{let n=t.find(t=>t.id===e);if(!n?.resumable)return e;let r=n.resume?.ended;return`${e} (${r===`limit`?`paused: limit: resumes its session`:r===`handoff`?`paused: context handoff: a fresh session goes on from the plan`:`interrupted: resumes its kept work`})`}).join(`, `)}var $n=e=>({console:`running — console run`,session:`running — your session`})[e.running_kind??``]??`running`,er=e=>{let t=new Date(e);return`${[t.getFullYear(),t.getMonth()+1,t.getDate()].map(e=>String(e).padStart(2,`0`)).join(`-`)} ${tr(e)}`},tr=e=>new Date(e).toTimeString().slice(0,5);function nr(e,t){return t?.ids.includes(e.id)?`Hit the usage limit; the board resumes it at ${tr(t.at)}`:`Its last run stopped; the next run resumes its work`}function rr(e,t){let n={handoff:`context handoff`,limit:`limit`}[e.resume?.ended??``];return n?t?.ids.includes(e.id)?`paused: ${n}, resumes ${tr(t.at)}`:`paused: ${n}`:`interrupted`}var ir=e=>e.running?`running`:e.status,ar={status:`running`,label:`running`,help:`An agent session works on it`};function or(e){return e.plan?`error`in e.plan?(0,w.jsx)(`span`,{className:`plan error`,title:e.plan.error,children:`plan ✘`}):(0,w.jsxs)(`span`,{className:`plan`,children:[e.plan.done,`/`,e.plan.tasks]}):null}var sr=3e5,cr=e=>e<6e4?`${Math.round(e/1e3)} s`:e<36e5?`${Math.round(e/6e4)} min`:`${Math.round(e/36e5)} h`;function lr({at:e}){let[t,n]=(0,v.useState)(Date.now());(0,v.useEffect)(()=>{let e=setInterval(()=>n(Date.now()),5e3);return()=>clearInterval(e)},[]);let r=Math.max(0,t-Date.parse(e)),i=`Its run log was last written at ${new Date(e).toLocaleTimeString()}`;return r<sr?(0,w.jsxs)(`span`,{className:`activity`,title:i,children:[`active `,cr(r),` ago`]}):(0,w.jsxs)(`span`,{className:`quiet`,title:i,children:[`quiet `,cr(r)]})}function ur({item:e,ctx:t,selected:n,onSelect:r}){let{attributes:i,listeners:a,setNodeRef:o,transform:s,isDragging:c}=Fn({id:e.id}),l=Rn({id:`before:${e.id}`,disabled:ir(e)!==t.board.domain.runs_from||!t.board.domain.rank}),u=e=>{o(e),l.setNodeRef(e)},d=s?{transform:`translate(${s.x}px, ${s.y}px)`}:{},f=t.board.runs?.queued.includes(e.id),{domain:p}=t.board,m=p.fields.flatMap(t=>{let n=t.card?qn(e,t):null;return n===null?[]:[{f:t,v:n}]}),h=m.filter(({f:e})=>e.badge).map(({f:e,v:t})=>`${e.key}-${t}`),g=m.filter(({f:e})=>e.badge||e.kind===`rank`),_=m.filter(({f:e})=>e.kind===`longtext`),v=m.filter(e=>!g.includes(e)&&!_.includes(e));return(0,w.jsxs)(`div`,{ref:u,style:d,className:`card ${h.join(` `)} ${c?`dragging`:``} ${l.isOver&&!c?`drop-before`:``}`,...i,...a,onClick:()=>t.openItem(e.id),children:[(0,w.jsxs)(`div`,{className:`card-top`,children:[Hn(e,t.board.domain)&&!f&&(0,w.jsx)(`input`,{type:`checkbox`,checked:n,onClick:e=>e.stopPropagation(),onPointerDown:e=>e.stopPropagation(),onChange:e=>r(e.target.checked),"aria-label":`select ${e.id} for a run`}),g.filter(({f:e})=>e.kind===`rank`).map(({f:e,v:t})=>(0,w.jsx)(`span`,{className:`rank`,title:e.help,children:t},e.key)),(0,w.jsx)(`span`,{className:`id`,children:e.id}),g.filter(({f:e})=>e.kind!==`rank`).map(({f:e,v:t})=>(0,w.jsx)(`span`,{className:`${e.key} ${e.key}-${t}`,title:Jn(e,t),children:t},e.key))]}),e.title&&(0,w.jsx)(`div`,{className:`title`,children:e.title}),(0,w.jsxs)(`div`,{className:`card-bottom`,children:[or(e),e.running&&e.running_kind!==`session`&&e.active_at&&(0,w.jsx)(lr,{at:e.active_at}),e.running_kind===`console`&&(0,w.jsx)(`span`,{className:`queued`,children:`console run`}),e.running_kind===`session`&&(0,w.jsx)(`span`,{className:`queued`,title:`Your own agent session works on it; release the mark when you are done`,children:`your session`}),e.verified&&(0,w.jsx)(`span`,{className:`verified`,children:`verified`}),e.resumable&&(0,w.jsx)(`span`,{className:`queued`,title:nr(e,t.board.runs?.resume),children:rr(e,t.board.runs?.resume)}),f&&(0,w.jsx)(`span`,{className:`queued`,title:`Waits for the main run going on; starts after it`,children:`queued`}),v.map(({f:e,v:t})=>(0,w.jsxs)(`span`,{className:`field ${e.key}`,title:e.help,children:[e.label,` `,t]},e.key)),p.sections.lessons&&(e.lessons??0)>0&&(0,w.jsxs)(`span`,{className:`lessons`,title:`What got in its agents' way: lessons in the inbox`,children:[e.lessons,` lesson`,(e.lessons??0)>1?`s`:``]})]}),_.map(({f:e,v:t})=>(0,w.jsx)(`div`,{className:`long ${e.key}`,title:e.help,children:t},e.key))]})}function dr({name:e,label:t,help:n,children:r,count:i}){let{setNodeRef:a,isOver:o}=Rn({id:e});return(0,w.jsxs)(`section`,{ref:a,className:`column ${o?`over`:``}`,children:[(0,w.jsxs)(`h3`,{title:n,children:[t,` `,(0,w.jsx)(`span`,{className:`count`,children:i})]}),r]})}function fr({ctx:e,where:t}){let[n,r]=(0,v.useState)(3),[i,a]=(0,v.useState)(!1),o=async()=>{a(!0);try{let r=await S.next(e.project.name,n);r.length?await D(`Run ${Qn(r,e.board.items)}? One agent session each, ${t}.`,`Run`)&&await e.run(r):e.notify(`nothing can run now: dependencies, WIP or a run in progress`,`error`)}catch(t){e.notify(t.message,`error`)}a(!1)};return(0,w.jsxs)(`span`,{className:`run-next`,children:[(0,w.jsx)(`button`,{disabled:i,onClick:()=>void o(),title:`The framework's gate picks them`,children:`Run next`}),(0,w.jsx)(`input`,{type:`number`,min:1,max:20,value:n,onChange:e=>r(Math.max(1,Math.min(20,Number(e.target.value)||1))),"aria-label":`how many`}),`independent`]})}function pr({label:e}){let{setNodeRef:t,isOver:n}=Rn({id:`graveyard`});return(0,w.jsxs)(`div`,{ref:t,className:`graveyard-zone ${n?`over`:``}`,children:[`drop here → `,e]})}function mr({ctx:e}){let[t,n]=(0,v.useState)(new Set),r=ze(Re(Pt,{activationConstraint:{distance:8}}),Re(zt,{activationConstraint:{delay:300,tolerance:8}})),i=e.board.items,{domain:a}=e.board,o=a.runs_from,s=a.columns.flatMap(e=>e.status===o?[e,ar]:[e]),c=e.board.runs?.queued??[],l=[...t].filter(e=>!c.includes(e)&&i.some(t=>t.id===e&&Hn(t,a))),u=e.board.run_mode===`main`?`in the project folder, one at a time`:`in its own worktree`,d=i.filter(e=>ir(e)===o).map(e=>e.id),f=zn(a,a.rank),p=(t,n)=>{let r=Yn(d,t,n);r&&f&&e.move({cmd:f.cmd,ids:r})};return(0,w.jsxs)(jn,{sensors:r,onDragEnd:t=>{let n=i.find(e=>e.id===t.active.id),r=t.over?.id?String(t.over.id):``;if(!n||!r)return;if(r.startsWith(`before:`)){if(ir(n)===o)return p(n.id,r.slice(7));r=o}if(r===o&&ir(n)===o)return p(n.id,null);if(r===ir(n))return;if(r===`running`&&Hn(n,a)){D(`Run ${Qn([n.id],[n])}? An agent session starts ${u}.`,`Run`).then(t=>{t&&e.run([n.id])});return}let s=Bn(n,a).find(e=>e.drag===r);s?e.openMove({title:`${s.label} ${n.id}`,id:n.id,move:s}):e.notify(`no move takes ${n.id} to ${String(r)}: open it for its moves`,`error`)},children:[(0,w.jsxs)(`div`,{className:`board-actions`,children:[a.harness&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(`button`,{className:`primary`,disabled:!l.length,onClick:async()=>{await D(`Run ${Qn(l,e.board.items)}? One agent session each, ${u}.`,`Run`)&&(e.run(l),n(new Set))},children:[`Run `,l.length||``,` selected`]}),(0,w.jsx)(fr,{ctx:e,where:u})]}),a.sections.graveyard&&(0,w.jsx)(pr,{label:a.sections.graveyard.label??`graveyard`})]}),(0,w.jsx)(`div`,{className:`columns`,children:s.map(({status:r,label:a,help:o})=>{let s=i.filter(e=>ir(e)===r);return(0,w.jsx)(dr,{name:r,label:a,help:o,count:s.length,children:s.map(r=>(0,w.jsx)(ur,{item:r,ctx:e,selected:t.has(r.id),onSelect:e=>n(t=>{let n=new Set(t);return e?n.add(r.id):n.delete(r.id),n})},r.id))},r)})})]})}var hr=e=>e===!0?`✔`:e===!1?`✘`:`?`;function gr({ctx:e,onHelp:t}){let{board:n}=e,{sections:r}=n.domain,i=!n.phase||`error`in n.phase?null:n.phase,a=zn(n.domain,r.phase?.next),o=()=>a&&e.openMove({title:`Phase ${i?.phase} → ${i?.next}`,move:{...a,fields:a.fields.map(e=>e.key===`reason`?{...e,required:!i?.ready}:e)}}),s=zn(n.domain,n.domain.new_item);return(0,w.jsxs)(`section`,{className:`header`,children:[r.phase&&(0,w.jsx)(`div`,{className:`phase`,children:i?(0,w.jsxs)(w.Fragment,{children:[(0,w.jsx)(`span`,{className:`badge`,children:i.phase}),i.criteria.map(e=>(0,w.jsxs)(`span`,{className:`criterion met-${String(e.met)}`,title:e.detail,children:[hr(e.met),` `,e.name]},e.name)),i.next&&a&&(0,w.jsxs)(`button`,{title:a.help,onClick:o,children:[`→ `,i.next]})]}):n.phase&&(0,w.jsxs)(`span`,{className:`error`,children:[`phase: `,n.phase.error]})}),n.extensions_error&&(0,w.jsx)(`span`,{className:`error`,title:n.extensions_error,children:`.ai-factory.json unreadable: no run buttons`}),(0,w.jsxs)(`div`,{className:`badge`,title:n.run_mode===`main`?`Runs go one at a time in the project folder (run_mode: main)`:`Each run goes in its own worktree, several at once (run_mode: worktree)`,children:[`runs: `,n.run_mode,n.runs?.queued.length?` · ${n.runs.queued.length} queued`:``]}),n.runs?.paused&&!(n.runs.paused_by===`limit`&&n.runs.resume)&&(0,w.jsx)(`button`,{className:`danger`,title:`A run failed in a way the next one would repeat, or hit the usage limit; resume when it is fixed or reset`,onClick:()=>void e.resumeQueue(),children:`queue paused — resume`}),n.runs?.resume&&(0,w.jsxs)(`span`,{className:`badge`,title:`After the usage limit: ${n.runs.resume.ids.join(`, `)}`,children:[`resumes `,tr(n.runs.resume.at),` `,(0,w.jsx)(`button`,{onClick:()=>void e.cancelResume(),children:`cancel`})]}),r.wip&&n.wip&&(0,w.jsxs)(`div`,{className:`wip ${n.wip.over?`over`:``}`,title:r.wip.help,children:[`WIP `,n.wip.count,`/`,n.wip.limit]}),r.release&&n.release&&(0,w.jsxs)(`div`,{className:`release`,children:[`release `,n.release.version,n.release.channel?` · ${n.release.channel}`:``,n.release.date?` · ${n.release.date}`:``]}),s&&(0,w.jsx)(`button`,{className:`primary`,title:s.help,onClick:()=>e.newItem(),children:`+ item`}),(0,w.jsx)(`button`,{onClick:t,title:`Help: the terms, the columns, the moves`,"aria-label":`help`,children:`?`})]})}function _r(e){let t=[e.sections?.includes(`GDD#`)?`from the GDD import${e.lens?` (${e.lens})`:``}`:null,e.sys&&e.sys!==`-`?`systems: ${e.sys}`:null,e.until?`comes back on ${e.until}`:null].filter(Boolean);return t.length?t.join(` · `):`from an agent run`}var vr=e=>e.source===`lesson`,yr=(e,t)=>t===`all`?e:e.filter(e=>vr(e)===(t===`lessons`)),br=(e,t)=>e.filter(e=>vr(e)&&e.item===t),xr=[`all`,`lessons`,`other`];function Sr({ctx:e,e:t,onItem:n,withItem:r=!0}){let i=zn(e.board.domain,e.board.domain.sections.inbox?.drop);return(0,w.jsxs)(`li`,{children:[(0,w.jsx)(`span`,{className:`badge`,children:vr(t)?`lesson: ${t.kind??`other`}`:t.source}),` `,r&&t.item&&(0,w.jsx)(`button`,{className:`link`,onClick:()=>e.openItem(t.item??``),children:t.item}),` `,t.text,(0,w.jsxs)(`span`,{className:`row-actions`,children:[e.board.domain.new_item&&(0,w.jsx)(`button`,{onClick:()=>n(t.id,t.text),children:`→ item`}),i&&(0,w.jsx)(`button`,{className:`danger`,title:i.help,onClick:()=>void e.move({cmd:i.cmd,id:t.id}),children:i.label})]})]})}function Cr({ctx:e,onItem:t}){let{sections:n}=e.board.domain,r=zn(e.board.domain,n.inbox?.add),i=r?.fields.find(e=>e.key===`source`),[a,o]=(0,v.useState)(``),[s,c]=(0,v.useState)(i?.default??``),[l,u]=(0,v.useState)(`all`),d=n.inbox?e.board.inbox??[]:[],f=n.questions?e.board.questions??[]:[],p=!!n.lessons&&d.some(vr),m=p?l:`all`,h=yr(d,m),g=f.filter(e=>e.class!==`D2`),_=f.filter(e=>e.class===`D2`);return(0,w.jsxs)(`section`,{className:`list-view`,children:[r&&(0,w.jsxs)(`form`,{className:`inline-form`,onSubmit:async t=>{t.preventDefault(),r&&await e.move({cmd:r.cmd,text:a,...s?{source:s}:{}})&&o(``)},title:r.help,children:[(0,w.jsx)(`input`,{value:a,onChange:e=>o(e.target.value),placeholder:`An idea, a playtest note, a CI finding`,required:!0}),i?.options&&(0,w.jsx)(`select`,{value:s,onChange:e=>c(e.target.value),children:i.options.map(e=>(0,w.jsx)(`option`,{value:e.value,children:e.label},e.value))}),(0,w.jsx)(`button`,{type:`submit`,className:`primary`,children:r.label})]}),p&&(0,w.jsx)(`nav`,{className:`tabs`,"aria-label":`inbox filter`,children:xr.map(e=>(0,w.jsx)(`button`,{className:e===m?`active`:``,onClick:()=>u(e),children:e},e))}),n.inbox&&!h.length&&(0,w.jsx)(`p`,{className:`muted`,children:`inbox empty`}),(0,w.jsx)(`ul`,{children:h.map(n=>(0,w.jsx)(Sr,{ctx:e,e:n,onItem:t},n.id))}),g.length>0&&(0,w.jsxs)(w.Fragment,{children:[(0,w.jsxs)(`h3`,{children:[`Waiting for your answer (`,g.filter(e=>!e.answer).length,`)`]}),(0,w.jsx)(`p`,{className:`muted`,children:`Only you can answer these (D1). They keep no time limit: a record lives until it is answered, and the audit marks it stale after a while. An answer frees the units it blocks; the next agent on them puts it in place.`}),g.map(t=>(0,w.jsx)(wr,{ctx:e,q:t},t.id))]}),_.length>0&&(0,w.jsxs)(`details`,{children:[(0,w.jsx)(`summary`,{children:(0,w.jsxs)(`h3`,{children:[`Assumptions the agent made (`,_.length,`)`]})}),(0,w.jsxs)(`p`,{className:`muted`,children:[`Not questions (D2): the agent decided these itself and works with them. Each comes back to you when its trigger fires (`,(0,w.jsx)(`code`,{children:`until:`}),`). Answer one only to overrule it.`]}),_.map(t=>(0,w.jsx)(wr,{ctx:e,q:t},t.id))]})]})}function wr({ctx:e,q:t}){let[n,r]=(0,v.useState)(``),i=zn(e.board.domain,e.board.domain.sections.questions?.answer);return(0,w.jsxs)(`article`,{className:`check`,children:[(0,w.jsxs)(`header`,{children:[(0,w.jsx)(`strong`,{children:t.id}),` `,(0,w.jsx)(`span`,{className:`badge`,children:t.class??`?`}),t.blocks&&(0,w.jsxs)(`span`,{className:`muted`,children:[` blocks `,t.blocks]})]}),t.question&&(0,w.jsx)(`p`,{children:t.question}),t.assumed&&(0,w.jsxs)(`p`,{children:[(0,w.jsx)(`b`,{children:`Assumed:`}),` `,t.assumed]}),(0,w.jsx)(`p`,{className:`muted`,children:_r(t)}),t.proposed&&(0,w.jsxs)(`p`,{className:`muted`,children:[(0,w.jsx)(`b`,{children:`Proposed:`}),` `,t.proposed]}),t.answer&&(0,w.jsxs)(`p`,{className:`ok`,children:[(0,w.jsx)(`b`,{children:`Answered:`}),` `,t.answer,` `,(0,w.jsx)(`span`,{className:`muted`,children:`(waits for the agent to apply)`})]}),i&&(0,w.jsxs)(`form`,{className:`inline-form`,onSubmit:async a=>{a.preventDefault(),i&&await e.move({cmd:i.cmd,id:t.id,text:n})&&r(``)},children:[(0,w.jsx)(`input`,{value:n,onChange:e=>r(e.target.value),placeholder:t.answer?`Change the answer`:t.class===`D2`?`What it should be`:`Your answer`,required:!0}),t.proposed&&!t.answer&&t.class!==`D2`&&(0,w.jsx)(`button`,{type:`button`,onClick:()=>r(t.proposed??``),children:`use proposed`}),(0,w.jsx)(`button`,{type:`submit`,className:`primary`,children:t.class===`D2`?`Overrule`:`Answer`})]})]})}function Tr(e,t){let n=t||{};return(e[e.length-1]===``?[...e,``]:e).join((n.padRight?` `:``)+`,`+(n.padLeft===!1?``:` `)).trim()}var Er=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Dr=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Or={};function kr(e,t){return((t||Or).jsx?Dr:Er).test(e)}var Ar=/[ \t\n\f\r]/g;function jr(e){return typeof e==`object`?e.type===`text`&&Mr(e.value):Mr(e)}function Mr(e){return e.replace(Ar,``)===``}var Nr=class{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}};Nr.prototype.normal={},Nr.prototype.property={},Nr.prototype.space=void 0;function Pr(e,t){let n={},r={};for(let t of e)Object.assign(n,t.property),Object.assign(r,t.normal);return new Nr(n,r,t)}function Fr(e){return e.toLowerCase()}var Ir=class{constructor(e,t){this.attribute=t,this.property=e}};Ir.prototype.attribute=``,Ir.prototype.booleanish=!1,Ir.prototype.boolean=!1,Ir.prototype.commaOrSpaceSeparated=!1,Ir.prototype.commaSeparated=!1,Ir.prototype.defined=!1,Ir.prototype.mustUseProperty=!1,Ir.prototype.number=!1,Ir.prototype.overloadedBoolean=!1,Ir.prototype.property=``,Ir.prototype.spaceSeparated=!1,Ir.prototype.space=void 0;var Lr=s({boolean:()=>P,booleanish:()=>zr,commaOrSpaceSeparated:()=>Hr,commaSeparated:()=>Vr,number:()=>F,overloadedBoolean:()=>Br,spaceSeparated:()=>I}),Rr=0,P=Ur(),zr=Ur(),Br=Ur(),F=Ur(),I=Ur(),Vr=Ur(),Hr=Ur();function Ur(){return 2**++Rr}var Wr=Object.keys(Lr),Gr=class extends Ir{constructor(e,t,n,r){let i=-1;if(super(e,t),Kr(this,`space`,r),typeof n==`number`)for(;++i<Wr.length;){let e=Wr[i];Kr(this,Wr[i],(n&Lr[e])===Lr[e])}}};Gr.prototype.defined=!0;function Kr(e,t,n){n&&(e[t]=n)}function qr(e){let t={},n={};for(let[r,i]of Object.entries(e.properties)){let a=new Gr(r,e.transform(e.attributes||{},r),i,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(a.mustUseProperty=!0),t[r]=a,n[Fr(r)]=r,n[Fr(a.attribute)]=r}return new Nr(t,n,e.space)}var Jr=qr({properties:{ariaActiveDescendant:null,ariaAtomic:zr,ariaAutoComplete:null,ariaBusy:zr,ariaChecked:zr,ariaColCount:F,ariaColIndex:F,ariaColSpan:F,ariaControls:I,ariaCurrent:null,ariaDescribedBy:I,ariaDetails:null,ariaDisabled:zr,ariaDropEffect:I,ariaErrorMessage:null,ariaExpanded:zr,ariaFlowTo:I,ariaGrabbed:zr,ariaHasPopup:null,ariaHidden:zr,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:I,ariaLevel:F,ariaLive:null,ariaModal:zr,ariaMultiLine:zr,ariaMultiSelectable:zr,ariaOrientation:null,ariaOwns:I,ariaPlaceholder:null,ariaPosInSet:F,ariaPressed:zr,ariaReadOnly:zr,ariaRelevant:null,ariaRequired:zr,ariaRoleDescription:I,ariaRowCount:F,ariaRowIndex:F,ariaRowSpan:F,ariaSelected:zr,ariaSetSize:F,ariaSort:null,ariaValueMax:F,ariaValueMin:F,ariaValueNow:F,ariaValueText:null,role:null},transform(e,t){return t===`role`?t:`aria-`+t.slice(4).toLowerCase()}});function Yr(e,t){return t in e?e[t]:t}function Xr(e,t){return Yr(e,t.toLowerCase())}var Zr=qr({attributes:{acceptcharset:`accept-charset`,classname:`class`,htmlfor:`for`,httpequiv:`http-equiv`},mustUseProperty:[`checked`,`multiple`,`muted`,`selected`],properties:{abbr:null,accept:Vr,acceptCharset:I,accessKey:I,action:null,allow:null,allowFullScreen:P,allowPaymentRequest:P,allowUserMedia:P,alpha:P,alt:null,as:null,async:P,autoCapitalize:null,autoComplete:I,autoFocus:P,autoPlay:P,blocking:I,capture:null,charSet:null,checked:P,cite:null,className:I,closedBy:null,colorSpace:null,cols:F,colSpan:F,command:null,commandFor:null,content:null,contentEditable:zr,controls:P,controlsList:I,coords:F|Vr,crossOrigin:null,data:null,dateTime:null,decoding:null,default:P,defer:P,dir:null,dirName:null,disabled:P,download:Br,draggable:zr,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:P,formTarget:null,headers:I,height:F,hidden:Br,high:F,href:null,hrefLang:null,htmlFor:I,httpEquiv:I,id:null,imageSizes:null,imageSrcSet:null,inert:P,inputMode:null,integrity:null,is:null,isMap:P,itemId:null,itemProp:I,itemRef:I,itemScope:P,itemType:I,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:P,low:F,manifest:null,max:null,maxLength:F,media:null,method:null,min:null,minLength:F,multiple:P,muted:P,name:null,nonce:null,noModule:P,noValidate:P,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:P,optimum:F,pattern:null,ping:I,placeholder:null,playsInline:P,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:P,referrerPolicy:null,rel:I,required:P,reversed:P,rows:F,rowSpan:F,sandbox:I,scope:null,scoped:P,seamless:P,selected:P,shadowRootClonable:P,shadowRootCustomElementRegistry:P,shadowRootDelegatesFocus:P,shadowRootMode:null,shadowRootSerializable:P,shape:null,size:F,sizes:null,slot:null,span:F,spellCheck:zr,src:null,srcDoc:null,srcLang:null,srcSet:null,start:F,step:null,style:null,tabIndex:F,target:null,title:null,translate:null,type:null,typeMustMatch:P,useMap:null,value:zr,width:F,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:I,axis:null,background:null,bgColor:null,border:F,borderColor:null,bottomMargin:F,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:P,declare:P,event:null,face:null,frame:null,frameBorder:null,hSpace:F,leftMargin:F,link:null,longDesc:null,lowSrc:null,marginHeight:F,marginWidth:F,noResize:P,noHref:P,noShade:P,noWrap:P,object:null,profile:null,prompt:null,rev:null,rightMargin:F,rules:null,scheme:null,scrolling:zr,standby:null,summary:null,text:null,topMargin:F,valueType:null,version:null,vAlign:null,vLink:null,vSpace:F,allowTransparency:null,autoCorrect:null,autoSave:null,credentialless:P,disablePictureInPicture:P,disableRemotePlayback:P,exportParts:Vr,part:I,prefix:null,property:null,results:F,security:null,unselectable:null},space:`html`,transform:Xr}),Qr=qr({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`,maskType:`mask-type`,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:Hr,accentHeight:F,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:F,amplitude:F,arabicForm:null,ascent:F,attributeName:null,attributeType:null,azimuth:F,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:F,by:null,calcMode:null,capHeight:F,className:I,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:F,diffuseConstant:F,direction:null,display:null,dur:null,divisor:F,dominantBaseline:null,download:P,dx:null,dy:null,edgeMode:null,editable:null,elevation:F,enableBackground:null,end:null,event:null,exponent:F,externalResourcesRequired:null,fill:null,fillOpacity:F,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:Vr,g2:Vr,glyphName:Vr,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:F,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:F,horizOriginX:F,horizOriginY:F,id:null,ideographic:F,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:F,k:F,k1:F,k2:F,k3:F,k4:F,kernelMatrix:Hr,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:F,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskType:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:F,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:F,overlineThickness:F,paintOrder:null,panose1:null,path:null,pathLength:F,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:I,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:F,pointsAtY:F,pointsAtZ:F,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Hr,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Hr,rev:Hr,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Hr,requiredFeatures:Hr,requiredFonts:Hr,requiredFormats:Hr,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:F,specularExponent:F,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:F,strikethroughThickness:F,string:null,stroke:null,strokeDashArray:Hr,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:F,strokeOpacity:F,strokeWidth:null,style:null,surfaceScale:F,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Hr,tabIndex:F,tableValues:null,target:null,targetX:F,targetY:F,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Hr,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:F,underlineThickness:F,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:F,values:null,vAlphabetic:F,vMathematical:F,vectorEffect:null,vHanging:F,vIdeographic:F,version:null,vertAdvY:F,vertOriginX:F,vertOriginY:F,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:F,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:`svg`,transform:Yr}),$r=qr({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:`xlink`,transform(e,t){return`xlink:`+t.slice(5).toLowerCase()}}),ei=qr({attributes:{xmlnsxlink:`xmlns:xlink`},properties:{xmlnsXLink:null,xmlns:null},space:`xmlns`,transform:Xr}),ti=qr({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:`xml`,transform(e,t){return`xml:`+t.slice(3).toLowerCase()}}),ni={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`},ri=/[A-Z]/g,ii=/-[a-z]/g,ai=/^data[-\w.:]+$/i;function oi(e,t){let n=Fr(t),r=t,i=Ir;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)===`data`&&ai.test(t)){if(t.charAt(4)===`-`){let e=t.slice(5).replace(ii,ci);r=`data`+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!ii.test(e)){let n=e.replace(ri,si);n.charAt(0)!==`-`&&(n=`-`+n),t=`data`+n}}i=Gr}return new i(r,t)}function si(e){return`-`+e.toLowerCase()}function ci(e){return e.charAt(1).toUpperCase()}var li=Pr([Jr,Zr,$r,ei,ti],`html`),ui=Pr([Jr,Qr,$r,ei,ti],`svg`);function di(e){return e.join(` `).trim()}var fi=o(((e,t)=>{var n=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,i=/^\s*/,a=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,o=/^:\s*/,s=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,c=/^[;\s]*/,l=/^\s+|\s+$/g;function u(e,t){if(typeof e!=`string`)throw TypeError(`First argument must be a string`);if(!e)return[];t||={};var l=1,u=1;function f(e){var t=e.match(r);t&&(l+=t.length);var n=e.lastIndexOf(`
|
|
17
17
|
`);u=~n?e.length-n:u+e.length}function p(){var e={line:l,column:u};return function(t){return t.position=new m(e),_(),t}}function m(e){this.start=e,this.end={line:l,column:u},this.source=t.source}m.prototype.content=e;function h(n){var r=Error(t.source+`:`+l+`:`+u+`: `+n);if(r.reason=n,r.filename=t.source,r.line=l,r.column=u,r.source=e,!t.silent)throw r}function g(t){var n=t.exec(e);if(n){var r=n[0];return f(r),e=e.slice(r.length),n}}function _(){g(i)}function v(e){var t;for(e||=[];t=y();)t!==!1&&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 h(`End of comment missing`);var r=e.slice(2,n-2);return u+=2,f(r),e=e.slice(n),u+=2,t({type:`comment`,comment:r})}}function b(){var e=p(),t=g(a);if(t){if(y(),!g(o))return h(`property missing ':'`);var r=g(s),i=e({type:`declaration`,property:d(t[0].replace(n,``)),value:r?d(r[0].replace(n,``)):``});return g(c),i}}function x(){var e=[];v(e);for(var t;t=b();)t!==!1&&(e.push(t),v(e));return e}return _(),x()}function d(e){return e?e.replace(l,``):``}t.exports=u})),pi=o((e=>{var t=e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(e,"__esModule",{value:!0}),e.default=r;var n=t(fi());function r(e,t){let r=null;if(!e||typeof e!=`string`)return r;let i=(0,n.default)(e),a=typeof t==`function`;return i.forEach(e=>{if(e.type!==`declaration`)return;let{property:n,value:i}=e;a?t(n,i,e):i&&(r||={},r[n]=i)}),r}})),mi=o((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.camelCase=void 0;var t=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,r=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(e){return!e||r.test(e)||t.test(e)},s=function(e,t){return t.toUpperCase()},c=function(e,t){return`${t}-`};e.camelCase=function(e,t){return t===void 0&&(t={}),o(e)?e:(e=e.toLowerCase(),e=t.reactCompat?e.replace(a,c):e.replace(i,c),e.replace(n,s))}})),hi=o(((e,t)=>{var n=(e&&e.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(pi()),r=mi();function i(e,t){var i={};return!e||typeof e!=`string`||(0,n.default)(e,function(e,n){e&&n&&(i[(0,r.camelCase)(e,t)]=n)}),i}i.default=i,t.exports=i})),gi=vi(`end`),_i=vi(`start`);function vi(e){return t;function t(t){let n=t&&t.position&&t.position[e]||{};if(typeof n.line==`number`&&n.line>0&&typeof n.column==`number`&&n.column>0)return{line:n.line,column:n.column,offset:typeof n.offset==`number`&&n.offset>-1?n.offset:void 0}}}function yi(e){let t=_i(e),n=gi(e);if(t&&n)return{start:t,end:n}}function bi(e){return!e||typeof e!=`object`?``:`position`in e||`type`in e?Si(e.position):`start`in e||`end`in e?Si(e):`line`in e||`column`in e?xi(e):``}function xi(e){return Ci(e&&e.line)+`:`+Ci(e&&e.column)}function Si(e){return xi(e&&e.start)+`-`+xi(e&&e.end)}function Ci(e){return e&&typeof e==`number`?e:1}var L=class extends Error{constructor(e,t,n){super(),typeof t==`string`&&(n=t,t=void 0);let r=``,i={},a=!1;if(t&&(i=`line`in t&&`column`in t||`start`in t&&`end`in t?{place:t}:`type`in t?{ancestors:[t],place:t.position}:{...t}),typeof e==`string`?r=e:!i.cause&&e&&(a=!0,r=e.message,i.cause=e),!i.ruleId&&!i.source&&typeof n==`string`){let e=n.indexOf(`:`);e===-1?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=bi(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=a&&i.cause&&typeof i.cause.stack==`string`?i.cause.stack:``,this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}};L.prototype.file=``,L.prototype.name=``,L.prototype.reason=``,L.prototype.message=``,L.prototype.stack=``,L.prototype.column=void 0,L.prototype.line=void 0,L.prototype.ancestors=void 0,L.prototype.cause=void 0,L.prototype.fatal=void 0,L.prototype.place=void 0,L.prototype.ruleId=void 0,L.prototype.source=void 0;var wi=l(hi(),1),Ti={}.hasOwnProperty,Ei=new Map,Di=/[A-Z]/g,Oi=new Set([`table`,`tbody`,`thead`,`tfoot`,`tr`]),ki=new Set([`td`,`th`]),Ai=`https://github.com/syntax-tree/hast-util-to-jsx-runtime`;function ji(e,t){if(!t||t.Fragment===void 0)throw TypeError("Expected `Fragment` in options");let n=t.filePath||void 0,r;if(t.development){if(typeof t.jsxDEV!=`function`)throw TypeError("Expected `jsxDEV` in options when `development: true`");r=Hi(n,t.jsxDEV)}else{if(typeof t.jsx!=`function`)throw TypeError("Expected `jsx` in production options");if(typeof t.jsxs!=`function`)throw TypeError("Expected `jsxs` in production options");r=Vi(n,t.jsx,t.jsxs)}let i={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:r,elementAttributeNameCase:t.elementAttributeNameCase||`react`,evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:n,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:t.passKeys!==!1,passNode:t.passNode||!1,schema:t.space===`svg`?ui:li,stylePropertyNameCase:t.stylePropertyNameCase||`dom`,tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Mi(i,e,void 0);return a&&typeof a!=`string`?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Mi(e,t,n){if(t.type===`element`)return Ni(e,t,n);if(t.type===`mdxFlowExpression`||t.type===`mdxTextExpression`)return Pi(e,t);if(t.type===`mdxJsxFlowElement`||t.type===`mdxJsxTextElement`)return Ii(e,t,n);if(t.type===`mdxjsEsm`)return Fi(e,t);if(t.type===`root`)return Li(e,t,n);if(t.type===`text`)return Ri(e,t)}function Ni(e,t,n){let r=e.schema,i=r;t.tagName.toLowerCase()===`svg`&&r.space===`html`&&(i=ui,e.schema=i),e.ancestors.push(t);let a=Ji(e,t.tagName,!1),o=Ui(e,t),s=Gi(e,t);return Oi.has(t.tagName)&&(s=s.filter(function(e){return typeof e!=`string`||!jr(e)})),zi(e,o,a,t),Bi(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Pi(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)}Yi(e,t.position)}function Fi(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Yi(e,t.position)}function Ii(e,t,n){let r=e.schema,i=r;t.name===`svg`&&r.space===`html`&&(i=ui,e.schema=i),e.ancestors.push(t);let a=t.name===null?e.Fragment:Ji(e,t.name,!0),o=Wi(e,t),s=Gi(e,t);return zi(e,o,a,t),Bi(o,s),e.ancestors.pop(),e.schema=r,e.create(t,a,o,n)}function Li(e,t,n){let r={};return Bi(r,Gi(e,t)),e.create(t,e.Fragment,r,n)}function Ri(e,t){return t.value}function zi(e,t,n,r){typeof n!=`string`&&n!==e.Fragment&&e.passNode&&(t.node=r)}function Bi(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function Vi(e,t,n){return r;function r(e,r,i,a){let o=Array.isArray(i.children)?n:t;return a?o(r,i,a):o(r,i)}}function Hi(e,t){return n;function n(n,r,i,a){let o=Array.isArray(i.children),s=_i(n);return t(r,i,a,o,{columnNumber:s?s.column-1:void 0,fileName:e,lineNumber:s?s.line:void 0},void 0)}}function Ui(e,t){let n={},r,i;for(i in t.properties)if(i!==`children`&&Ti.call(t.properties,i)){let a=Ki(e,i,t.properties[i]);if(a){let[i,o]=a;e.tableCellAlignToStyle&&i===`align`&&typeof o==`string`&&ki.has(t.tagName)?r=o:n[i]=o}}if(r){let t=n.style||={};t[e.stylePropertyNameCase===`css`?`text-align`:`textAlign`]=r}return n}function Wi(e,t){let n={};for(let r of t.attributes)if(r.type===`mdxJsxExpressionAttribute`){if(r.data&&r.data.estree&&e.evaluater){let t=r.data.estree.body[0];t.type;let i=t.expression;i.type;let a=i.properties[0];a.type,Object.assign(n,e.evaluater.evaluateExpression(a.argument))}else Yi(e,t.position)}else{let i=r.name,a;if(r.value&&typeof r.value==`object`){if(r.value.data&&r.value.data.estree&&e.evaluater){let t=r.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else Yi(e,t.position)}else a=r.value===null||r.value;n[i]=a}return n}function Gi(e,t){let n=[],r=-1,i=e.passKeys?new Map:Ei;for(;++r<t.children.length;){let a=t.children[r],o;if(e.passKeys){let e=a.type===`element`?a.tagName:a.type===`mdxJsxFlowElement`||a.type===`mdxJsxTextElement`?a.name:void 0;if(e){let t=i.get(e)||0;o=e+`-`+t,i.set(e,t+1)}}let s=Mi(e,a,o);s!==void 0&&n.push(s)}return n}function Ki(e,t,n){let r=oi(e.schema,t);if(!(n==null||typeof n==`number`&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?Tr(n):di(n)),r.property===`style`){let t=typeof n==`object`?n:qi(e,String(n));return e.stylePropertyNameCase===`css`&&(t=Xi(t)),[`style`,t]}return[e.elementAttributeNameCase===`react`&&r.space?ni[r.property]||r.property:r.attribute,n]}}function qi(e,t){try{return(0,wi.default)(t,{reactCompat:!0})}catch(t){if(e.ignoreInvalidStyle)return{};let n=t,r=new L("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:`style`,source:`hast-util-to-jsx-runtime`});throw r.file=e.filePath||void 0,r.url=Ai+`#cannot-parse-style-attribute`,r}}function Ji(e,t,n){let r;if(!n)r={type:`Literal`,value:t};else if(t.includes(`.`)){let e=t.split(`.`),n=-1,i;for(;++n<e.length;){let t=kr(e[n])?{type:`Identifier`,name:e[n]}:{type:`Literal`,value:e[n]};i=i?{type:`MemberExpression`,object:i,property:t,computed:!!(n&&t.type===`Literal`),optional:!1}:t}r=i}else r=kr(t)&&!/^[a-z]/.test(t)?{type:`Identifier`,name:t}:{type:`Literal`,value:t};if(r.type===`Literal`){let t=r.value;return Ti.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(r);Yi(e)}function Yi(e,t){let n=new L("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=Ai+`#cannot-handle-mdx-estrees-without-createevaluater`,n}function Xi(e){let t={},n;for(n in e)Ti.call(e,n)&&(t[Zi(n)]=e[n]);return t}function Zi(e){let t=e.replace(Di,Qi);return t.slice(0,3)===`ms-`&&(t=`-`+t),t}function Qi(e){return`-`+e.toLowerCase()}var $i={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`]},ea={};function ta(e,t){let n=t||ea;return na(e,typeof n.includeImageAlt!=`boolean`||n.includeImageAlt,typeof n.includeHtml!=`boolean`||n.includeHtml)}function na(e,t,n){if(ia(e)){if(`value`in e)return e.type===`html`&&!n?``:e.value;if(t&&`alt`in e&&e.alt)return e.alt;if(`children`in e)return ra(e.children,t,n)}return Array.isArray(e)?ra(e,t,n):``}function ra(e,t,n){let r=[],i=-1;for(;++i<e.length;)r[i]=na(e[i],t,n);return r.join(``)}function ia(e){return!!(e&&typeof e==`object`)}var aa=document.createElement(`i`);function R(e){let t=`&`+e+`;`;aa.innerHTML=t;let n=aa.textContent;return n.charCodeAt(n.length-1)===59&&e!==`semi`?!1:n!==t&&n}function z(e,t,n,r){let i=e.length,a=0,o;if(t=t<0?-t>i?0:i+t:t>i?i:t,n=n>0?n:0,r.length<1e4)o=Array.from(r),o.unshift(t,n),e.splice(...o);else for(n&&e.splice(t,n);a<r.length;)o=r.slice(a,a+1e4),o.unshift(t,0),e.splice(...o),a+=1e4,t+=1e4}function oa(e,t){return e.length>0?(z(e,e.length,0,t),e):t}var sa={}.hasOwnProperty;function ca(e){let t={},n=-1;for(;++n<e.length;)la(t,e[n]);return t}function la(e,t){let n;for(n in t){let r=(sa.call(e,n)?e[n]:void 0)||(e[n]={}),i=t[n],a;if(i)for(a in i){sa.call(r,a)||(r[a]=[]);let e=i[a];ua(r[a],Array.isArray(e)?e:e?[e]:[])}}}function ua(e,t){let n=-1,r=[];for(;++n<t.length;)(t[n].add===`after`?e:r).push(t[n]);z(e,0,0,r)}function da(e,t){let n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)==65535||(n&65535)==65534||n>1114111?`�`:String.fromCodePoint(n)}function fa(e){return e.replace(/[\t\n\r ]+/g,` `).replace(/^ | $/g,``).toLowerCase().toUpperCase()}var pa=Ca(/[A-Za-z]/),ma=Ca(/[\dA-Za-z]/),ha=Ca(/[#-'*+\--9=?A-Z^-~]/);function ga(e){return e!==null&&(e<32||e===127)}var _a=Ca(/\d/),va=Ca(/[\dA-Fa-f]/),ya=Ca(/[!-/:-@[-`{-~]/);function B(e){return e!==null&&e<-2}function ba(e){return e!==null&&(e<0||e===32)}function V(e){return e===-2||e===-1||e===32}var xa=Ca(/\p{P}|\p{S}/u),Sa=Ca(/\s/);function Ca(e){return t;function t(t){return t!==null&&t>-1&&e.test(String.fromCharCode(t))}}function wa(e){let t=[],n=-1,r=0,i=0;for(;++n<e.length;){let a=e.charCodeAt(n),o=``;if(a===37&&ma(e.charCodeAt(n+1))&&ma(e.charCodeAt(n+2)))i=2;else if(a<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(a))||(o=String.fromCharCode(a));else if(a>55295&&a<57344){let t=e.charCodeAt(n+1);a<56320&&t>56319&&t<57344?(o=String.fromCharCode(a,t),i=1):o=`�`}else o=String.fromCharCode(a);o&&=(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,``),i&&=(n+=i,0)}return t.join(``)+e.slice(r)}function H(e,t,n,r){let i=r?r-1:1/0,a=0;return o;function o(r){return V(r)?(e.enter(n),s(r)):t(r)}function s(r){return V(r)&&a++<i?(e.consume(r),s):(e.exit(n),t(r))}}function Ta(e,t,n,r,i,a){let o=0;return s;function s(t){return a>0&&V(t)?(e.enter(r),c(t)):l(t)}function c(t){return V(t)&&o<a?(e.consume(t),o++,c):(e.exit(r),l(t))}function l(e){return o>=i?t(e):n(e)}}var Ea={tokenize:Da};function Da(e){let t=e.attempt(this.parser.constructs.contentInitial,r,i),n;return t;function r(n){if(n===null)e.consume(n);else return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),H(e,t,`linePrefix`)}function i(t){return e.enter(`paragraph`),a(t)}function a(t){let r=e.enter(`chunkText`,{contentType:`text`,previous:n});return n&&(n.next=r),n=r,o(t)}function o(t){if(t===null)e.exit(`chunkText`),e.exit(`paragraph`),e.consume(t);else return B(t)?(e.consume(t),e.exit(`chunkText`),a):(e.consume(t),o)}}var Oa=class{constructor(){this.index=new Map,this.map=[]}add(e,t,n){ka(this,e,t,n,!1)}addBefore(e,t,n){ka(this,e,t,n,!0)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),this.map.length===0)return;let t=this.map.length,n=[];for(;t>0;)--t,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,this.index.clear()}};function ka(e,t,n,r,i){if(n===0&&r.length===0)return;let a=e.index.get(t);if(a){a[1]+=n,i?(r.push(...a[2]),a[2]=r):a[2].push(...r);return}let o=[t,n,r];e.map.push(o),e.index.set(t,o)}var Aa={tokenize:Ma},ja={tokenize:Na};function Ma(e){let t=this,n=[],r=0,i,a,o;return s;function s(i){if(r<n.length){let a=n[r];return t.containerState=a[1],e.attempt(a[0].continuation,c,l)(i)}return l(i)}function c(e){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,i&&v();let n=t.events.length,a=n,o;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){o=t.events[a][1].end;break}_(r);let s=n;for(;s<t.events.length;)t.events[s][1].end={...o},s++;let c=new Oa;return c.add(a+1,0,t.events.slice(n)),c.add(n,s-n,[]),c.consume(t.events),l(e)}return s(e)}function l(a){if(r===n.length){if(!i)return f(a);if(i.currentConstruct&&i.currentConstruct.concrete)return m(a);t.interrupt=!(!i.currentConstruct||i._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(ja,u,d)(a)}function u(e){return i&&v(),_(r),f(e)}function d(e){return t.parser.lazy[t.now().line]=r!==n.length,o=t.now().offset,m(e)}function f(n){return t.containerState={},e.attempt(ja,p,m)(n)}function p(e){return r++,n.push([t.currentConstruct,t.containerState]),f(e)}function m(n){if(n===null)i&&v(),_(0),e.consume(n);else return i||=t.parser.flow(t.now()),e.enter(`chunkFlow`,{_tokenizer:i,contentType:`flow`,previous:a}),h(n)}function h(n){if(n===null)g(e.exit(`chunkFlow`),!0),_(0),e.consume(n);else return B(n)?(e.consume(n),g(e.exit(`chunkFlow`)),r=0,t.interrupt=void 0,s):(e.consume(n),h)}function g(e,n){let s=t.sliceStream(e);if(n&&s.push(null),e.previous=a,a&&(a.next=e),a=e,i.defineSkip(e.start),i.write(s),t.parser.lazy[e.start.line]){let e=i.events.length;for(;e--;)if(i.events[e][1].start.offset<o&&(!i.events[e][1].end||i.events[e][1].end.offset>o))return;let n=t.events.length,a=n,s,c;for(;a--;)if(t.events[a][0]===`exit`&&t.events[a][1].type===`chunkFlow`){if(s){c=t.events[a][1].end;break}s=!0}for(_(r),e=n;e<t.events.length;)t.events[e][1].end={...c},e++;let l=new Oa;l.add(a+1,0,t.events.slice(n)),l.add(n,e-n,[]),l.consume(t.events)}}function _(r){let i=n.length;for(;i-->r;){let r=n[i];t.containerState=r[1],r[0].exit.call(t,e)}n.length=r}function v(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Na(e,t,n){return H(e,e.attempt(this.parser.constructs.document,t,n),`linePrefix`,this.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)}function Pa(e){if(e===null||ba(e)||Sa(e))return 1;if(xa(e))return 2}function Fa(e,t,n){let r=[],i=-1;for(;++i<e.length;){let a=e[i].resolveAll;a&&!r.includes(a)&&(t=a(t,n),r.push(a))}return t}var Ia={name:`attention`,resolveAll:La,tokenize:Ra};function La(e,t){let n=-1,r;for(;++n<e.length;)if(e[n][0]===`enter`&&e[n][1].type===`attentionSequence`&&e[n][1]._close){let i=n;for(;i--;)if(e[i][0]===`exit`&&e[i][1].type===`attentionSequence`&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;let a=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1,o={...e[i][1].end},s={...e[n][1].start};za(o,-a),za(s,a);let c={type:a>1?`strongSequence`:`emphasisSequence`,start:o,end:{...e[i][1].end}},l={type:a>1?`strongSequence`:`emphasisSequence`,start:{...e[n][1].start},end:s},u={type:a>1?`strongText`:`emphasisText`,start:{...e[i][1].end},end:{...e[n][1].start}},d={type:a>1?`strong`:`emphasis`,start:{...c.start},end:{...l.end}};e[i][1].end={...c.start},e[n][1].start={...l.end},r=[],e[i][1].end.offset-e[i][1].start.offset&&(r=oa(r,[[`enter`,e[i][1],t],[`exit`,e[i][1],t]])),r=oa(r,[[`enter`,d,t],[`enter`,c,t],[`exit`,c,t],[`enter`,u,t]]),r=oa(r,Fa(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),r=oa(r,[[`exit`,u,t],[`enter`,l,t],[`exit`,l,t],[`exit`,d,t]]);let f=0;e[n][1].end.offset-e[n][1].start.offset&&(f=2,r=oa(r,[[`enter`,e[n][1],t],[`exit`,e[n][1],t]])),z(e,i-1,n-i+3,r),n=i+r.length-f-2;break}}for(n=-1;++n<e.length;)e[n][1].type===`attentionSequence`&&(e[n][1].type=`data`);return e}function Ra(e,t){let n=this.parser.constructs.attentionMarkers.null,r=this.previous,i=Pa(r),a;return o;function o(t){return a=t,e.enter(`attentionSequence`),s(t)}function s(o){if(o===a)return e.consume(o),s;let c=e.exit(`attentionSequence`),l=Pa(o),u=!l||l===2&&i||n.includes(o)&&o!==42&&o!==95,d=!i||i===2&&l||n.includes(r)&&r!==42&&r!==95;return c._open=!!(a===42?u:u&&(i||!d)),c._close=!!(a===42?d:d&&(l||!u)),t(o)}}function za(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}var Ba={name:`autolink`,tokenize:Va};function Va(e,t,n){let r=0;return i;function i(t){return e.enter(`autolink`),e.enter(`autolinkMarker`),e.consume(t),e.exit(`autolinkMarker`),e.enter(`autolinkProtocol`),a}function a(t){return pa(t)?(e.consume(t),o):t===64?n(t):l(t)}function o(e){return e===43||e===45||e===46||ma(e)?(r=1,s(e)):l(e)}function s(t){return t===58?(e.consume(t),r=0,c):(t===43||t===45||t===46||ma(t))&&r++<32?(e.consume(t),s):(r=0,l(t))}function c(r){return r===62?(e.exit(`autolinkProtocol`),e.enter(`autolinkMarker`),e.consume(r),e.exit(`autolinkMarker`),e.exit(`autolink`),t):r===null||r===32||r===60||ga(r)?n(r):(e.consume(r),c)}function l(t){return t===64?(e.consume(t),u):ha(t)?(e.consume(t),l):n(t)}function u(e){return ma(e)?d(e):n(e)}function d(n){return n===46?(e.consume(n),r=0,u):n===62?(e.exit(`autolinkProtocol`).type=`autolinkEmail`,e.enter(`autolinkMarker`),e.consume(n),e.exit(`autolinkMarker`),e.exit(`autolink`),t):f(n)}function f(t){if((t===45||ma(t))&&r++<63){let n=t===45?f:d;return e.consume(t),n}return n(t)}}var Ha={partial:!0,tokenize:Ua};function Ua(e,t,n){return r;function r(t){return V(t)?H(e,i,`linePrefix`)(t):i(t)}function i(e){return e===null||B(e)?t(e):n(e)}}var Wa={continuation:{tokenize:Ka},exit:qa,name:`blockQuote`,tokenize:Ga};function Ga(e,t,n){let r=this;return i;function i(t){if(t===62){let n=r.containerState;return n.open||=(e.enter(`blockQuote`,{_container:!0}),!0),e.enter(`blockQuotePrefix`),e.enter(`blockQuoteMarker`),e.consume(t),e.exit(`blockQuoteMarker`),a}return n(t)}function a(n){return V(n)?(e.enter(`blockQuotePrefixWhitespace`),e.consume(n),e.exit(`blockQuotePrefixWhitespace`),e.exit(`blockQuotePrefix`),t):(e.exit(`blockQuotePrefix`),t(n))}}function Ka(e,t,n){let r=this;return i;function i(t){return V(t)?H(e,a,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):a(t)}function a(r){return e.attempt(Wa,t,n)(r)}}function qa(e){e.exit(`blockQuote`)}var Ja={name:`characterEscape`,tokenize:Ya};function Ya(e,t,n){return r;function r(t){return e.enter(`characterEscape`),e.enter(`escapeMarker`),e.consume(t),e.exit(`escapeMarker`),i}function i(r){return ya(r)?(e.enter(`characterEscapeValue`),e.consume(r),e.exit(`characterEscapeValue`),e.exit(`characterEscape`),t):n(r)}}var Xa={name:`characterReference`,tokenize:Za};function Za(e,t,n){let r=this,i=0,a,o;return s;function s(t){return e.enter(`characterReference`),e.enter(`characterReferenceMarker`),e.consume(t),e.exit(`characterReferenceMarker`),c}function c(t){return t===35?(e.enter(`characterReferenceMarkerNumeric`),e.consume(t),e.exit(`characterReferenceMarkerNumeric`),l):(e.enter(`characterReferenceValue`),a=31,o=ma,u(t))}function l(t){return t===88||t===120?(e.enter(`characterReferenceMarkerHexadecimal`),e.consume(t),e.exit(`characterReferenceMarkerHexadecimal`),e.enter(`characterReferenceValue`),a=6,o=va,u):(e.enter(`characterReferenceValue`),a=7,o=_a,u(t))}function u(s){if(s===59&&i){let i=e.exit(`characterReferenceValue`);return o===ma&&!R(r.sliceSerialize(i))?n(s):(e.enter(`characterReferenceMarker`),e.consume(s),e.exit(`characterReferenceMarker`),e.exit(`characterReference`),t)}return o(s)&&i++<a?(e.consume(s),u):n(s)}}var Qa={partial:!0,tokenize:$a};function $a(e,t,n){let r=this;return i;function i(t){return t===null?n(t):(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),a)}function a(e){return r.parser.lazy[r.now().line]?n(e):t(e)}}var eo={concrete:!0,name:`codeFenced`,tokenize:to};function to(e,t,n){let r=this,i={partial:!0,tokenize:x},a=0,o=0,s;return c;function c(e){return l(e)}function l(t){let n=r.events[r.events.length-1];return a=n&&n[1].type===`linePrefix`?n[2].sliceSerialize(n[1],!0).length:0,s=t,e.enter(`codeFenced`),e.enter(`codeFencedFence`),e.enter(`codeFencedFenceSequence`),u(t)}function u(t){return t===s?(o++,e.consume(t),u):o<3?n(t):(e.exit(`codeFencedFenceSequence`),V(t)?H(e,d,`whitespace`)(t):d(t))}function d(n){return n===null||B(n)?(e.exit(`codeFencedFence`),r.interrupt?t(n):e.check(Qa,h,b)(n)):(e.enter(`codeFencedFenceInfo`),e.enter(`chunkString`,{contentType:`string`}),f(n))}function f(t){return t===null||B(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),d(t)):V(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceInfo`),H(e,p,`whitespace`)(t)):t===96&&t===s?n(t):(e.consume(t),f)}function p(t){return t===null||B(t)?d(t):(e.enter(`codeFencedFenceMeta`),e.enter(`chunkString`,{contentType:`string`}),m(t))}function m(t){return t===null||B(t)?(e.exit(`chunkString`),e.exit(`codeFencedFenceMeta`),d(t)):t===96&&t===s?n(t):(e.consume(t),m)}function h(t){return e.attempt(i,b,g)(t)}function g(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),_}function _(t){return a>0&&V(t)?H(e,v,`linePrefix`,a+1)(t):v(t)}function v(t){return t===null||B(t)?e.check(Qa,h,b)(t):(e.enter(`codeFlowValue`),y(t))}function y(t){return t===null||B(t)?(e.exit(`codeFlowValue`),v(t)):(e.consume(t),y)}function b(n){return e.exit(`codeFenced`),t(n)}function x(e,t,n){let i=0;return a;function a(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c}function c(t){return e.enter(`codeFencedFence`),V(t)?H(e,l,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):l(t)}function l(t){return t===s?(e.enter(`codeFencedFenceSequence`),u(t)):n(t)}function u(t){return t===s?(i++,e.consume(t),u):i>=o?(e.exit(`codeFencedFenceSequence`),V(t)?H(e,d,`whitespace`)(t):d(t)):n(t)}function d(r){return r===null||B(r)?(e.exit(`codeFencedFence`),t(r)):n(r)}}}var no={name:`codeIndented`,tokenize:io},ro={partial:!0,tokenize:ao};function io(e,t,n){return r;function r(t){return e.enter(`codeIndented`),Ta(e,i,n,`linePrefix`,4,4)(t)}function i(t){return t===null?o(t):B(t)?e.attempt(ro,i,o)(t):(e.enter(`codeFlowValue`),a(t))}function a(t){return t===null||B(t)?(e.exit(`codeFlowValue`),i(t)):(e.consume(t),a)}function o(n){return e.exit(`codeIndented`),t(n)}}function ao(e,t,n){let r=this;return i;function i(o){return r.parser.lazy[r.now().line]?n(o):B(o)?(e.enter(`lineEnding`),e.consume(o),e.exit(`lineEnding`),i):Ta(e,t,a,`linePrefix`,4,4)(o)}function a(e){return B(e)?i(e):n(e)}}var oo={name:`codeText`,previous:co,resolve:so,tokenize:lo};function so(e){let t=e.length-4,n=3,r,i;if((e[n][1].type===`lineEnding`||e[n][1].type===`space`)&&(e[t][1].type===`lineEnding`||e[t][1].type===`space`)){for(r=n;++r<t;)if(e[r][1].type===`codeTextData`){e[n][1].type=`codeTextPadding`,e[t][1].type=`codeTextPadding`,n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)i===void 0?r!==t&&e[r][1].type!==`lineEnding`&&(i=r):(r===t||e[r][1].type===`lineEnding`)&&(e[i][1].type=`codeTextData`,r!==i+2&&(e[i][1].end=e[r-1][1].end,e.splice(i+2,r-i-2),t-=r-i-2,r=i+2),i=void 0);return e}function co(e){return e!==96||this.events[this.events.length-1][1].type===`characterEscape`}function lo(e,t,n){let r=0,i,a;return o;function o(t){return e.enter(`codeText`),e.enter(`codeTextSequence`),s(t)}function s(t){return t===96?(e.consume(t),r++,s):(e.exit(`codeTextSequence`),c(t))}function c(t){return t===null?n(t):t===32?(e.enter(`space`),e.consume(t),e.exit(`space`),c):t===96?(a=e.enter(`codeTextSequence`),i=0,u(t)):B(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),c):(e.enter(`codeTextData`),l(t))}function l(t){return t===null||t===32||t===96||B(t)?(e.exit(`codeTextData`),c(t)):(e.consume(t),l)}function u(n){return n===96?(e.consume(n),i++,u):i===r?(e.exit(`codeTextSequence`),e.exit(`codeText`),t(n)):(a.type=`codeTextData`,l(n))}}var uo=class{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=t??1/0;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){let r=t||0;this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-r,1/0);return n&&fo(this.left,n),i.reverse()}pop(){return this.setCursor(1/0),this.left.pop()}push(e){this.setCursor(1/0),this.left.push(e)}pushMany(e){this.setCursor(1/0),fo(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),fo(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&this.right.length===0||e<0&&this.left.length===0)){if(e<this.left.length){let t=this.left.splice(e,1/0);fo(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,1/0);fo(this.left,t.reverse())}}}};function fo(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 po(e){let t={},n=-1,r,i,a,o,s,c,l,u=new uo(e);for(;++n<u.length;){for(;n in t;)n=t[n];if(r=u.get(n),n&&r[1].type===`chunkFlow`&&u.get(n-1)[1].type===`listItemPrefix`&&(c=r[1]._tokenizer.events,a=0,a<c.length&&c[a][1].type===`lineEndingBlank`&&(a+=2),a<c.length&&c[a][1].type===`content`))for(;++a<c.length&&c[a][1].type!==`content`;)c[a][1].type===`chunkText`&&(c[a][1]._isInFirstContentOfListItem=!0,a++);if(r[0]===`enter`)r[1].contentType&&(Object.assign(t,mo(u,n)),n=t[n],l=!0);else if(r[1]._container){for(a=n,i=void 0;a--;)if(o=u.get(a),o[1].type===`lineEnding`||o[1].type===`lineEndingBlank`)o[0]===`enter`&&(i&&(u.get(i)[1].type=`lineEndingBlank`),o[1].type=`lineEnding`,i=a);else if(o[1].type!==`linePrefix`&&o[1].type!==`listItemIndent`)break;i&&(r[1].end={...u.get(i)[1].start},s=u.slice(i,n),s.unshift(r),u.splice(i,n-i+1,s))}}return z(e,0,1/0,u.slice(0)),!l}function mo(e,t){let n=e.get(t)[1],r=e.get(t)[2],i=t-1,a=[],o=n._tokenizer;o||(o=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(o._contentTypeTextTrailing=!0));let s=o.events,c=[],l={},u,d,f=-1,p=n,m=0,h=0,g=[h];for(;p;){for(;e.get(++i)[1]!==p;);a.push(i),p._tokenizer||(u=r.sliceStream(p),p.next||u.push(null),d&&o.defineSkip(p.start),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=!0),o.write(u),p._isInFirstContentOfListItem&&(o._gfmTasklistFirstContentOfListItem=void 0)),d=p,p=p.next}for(p=n;++f<s.length;)s[f][0]===`exit`&&s[f-1][0]===`enter`&&s[f][1].type===s[f-1][1].type&&s[f][1].start.line!==s[f][1].end.line&&(h=f+1,g.push(h),p._tokenizer=void 0,p.previous=void 0,p=p.next);for(o.events=[],p?(p._tokenizer=void 0,p.previous=void 0):g.pop(),f=g.length;f--;){let t=s.slice(g[f],g[f+1]),n=a.pop();c.push([n,n+t.length-1]),e.splice(n,2,t)}for(c.reverse(),f=-1;++f<c.length;)l[m+c[f][0]]=m+c[f][1],m+=c[f][1]-c[f][0]-1;return l}var ho={resolve:_o,tokenize:vo},go={partial:!0,tokenize:yo};function _o(e){return po(e),e}function vo(e,t){let n;return r;function r(t){return e.enter(`content`),n=e.enter(`chunkContent`,{contentType:`content`}),i(t)}function i(t){return t===null?a(t):B(t)?e.check(go,o,a)(t):(e.consume(t),i)}function a(n){return e.exit(`chunkContent`),e.exit(`content`),t(n)}function o(t){return e.consume(t),e.exit(`chunkContent`),n.next=e.enter(`chunkContent`,{contentType:`content`,previous:n}),n=n.next,i}}function yo(e,t,n){let r=this;return i;function i(t){return e.exit(`chunkContent`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),H(e,a,`linePrefix`)}function a(i){if(i===null||B(i))return n(i);let a=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes(`codeIndented`)&&a&&a[1].type===`linePrefix`&&a[2].sliceSerialize(a[1],!0).length>=4?t(i):e.interrupt(r.parser.constructs.flow,n,t)(i)}}function bo(e,t,n,r,i,a,o,s,c){let l=c||1/0,u=0;return d;function d(t){return t===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(t),e.exit(a),f):t===null||t===32||t===41||ga(t)?n(t):(e.enter(r),e.enter(o),e.enter(s),e.enter(`chunkString`,{contentType:`string`}),h(t))}function f(n){return n===62?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(s),e.enter(`chunkString`,{contentType:`string`}),p(n))}function p(t){return t===62?(e.exit(`chunkString`),e.exit(s),f(t)):t===null||t===60||B(t)?n(t):(e.consume(t),t===92?m:p)}function m(t){return t===60||t===62||t===92?(e.consume(t),p):p(t)}function h(i){return!u&&(i===null||i===41||ba(i))?(e.exit(`chunkString`),e.exit(s),e.exit(o),e.exit(r),t(i)):u<l&&i===40?(e.consume(i),u++,h):i===41?(e.consume(i),u--,h):i===null||i===32||i===40||ga(i)?n(i):(e.consume(i),i===92?g:h)}function g(t){return t===40||t===41||t===92?(e.consume(t),h):h(t)}}function xo(e,t,n,r,i,a){let o=this,s=0,c;return l;function l(t){return e.enter(r),e.enter(i),e.consume(t),e.exit(i),e.enter(a),u}function u(l){return s>999||l===null||l===91||l===93&&!c||l===94&&!s&&`_hiddenFootnoteSupport`in o.parser.constructs?n(l):l===93?(e.exit(a),e.enter(i),e.consume(l),e.exit(i),e.exit(r),t):B(l)?(e.enter(`lineEnding`),e.consume(l),e.exit(`lineEnding`),u):(e.enter(`chunkString`,{contentType:`string`}),d(l))}function d(t){return t===null||t===91||t===93||B(t)||s++>999?(e.exit(`chunkString`),u(t)):(e.consume(t),c||=!V(t),t===92?f:d)}function f(t){return t===91||t===92||t===93?(e.consume(t),s++,d):d(t)}}function So(e,t,n,r,i,a){let o;return s;function s(t){return t===34||t===39||t===40?(e.enter(r),e.enter(i),e.consume(t),e.exit(i),o=t===40?41:t,c):n(t)}function c(n){return n===o?(e.enter(i),e.consume(n),e.exit(i),e.exit(r),t):(e.enter(a),l(n))}function l(t){return t===o?(e.exit(a),c(o)):t===null?n(t):B(t)?(e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),H(e,l,`linePrefix`)):(e.enter(`chunkString`,{contentType:`string`}),u(t))}function u(t){return t===o||t===null||B(t)?(e.exit(`chunkString`),l(t)):(e.consume(t),t===92?d:u)}function d(t){return t===o||t===92?(e.consume(t),u):u(t)}}function Co(e,t){let n;return r;function r(i){return B(i)?(e.enter(`lineEnding`),e.consume(i),e.exit(`lineEnding`),n=!0,r):V(i)?H(e,r,n?`linePrefix`:`lineSuffix`)(i):t(i)}}var wo={name:`definition`,tokenize:Eo},To={partial:!0,tokenize:Do};function Eo(e,t,n){let r=this,i;return a;function a(t){return e.enter(`definition`),o(t)}function o(t){return xo.call(r,e,s,n,`definitionLabel`,`definitionLabelMarker`,`definitionLabelString`)(t)}function s(t){return i=fa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),t===58?(e.enter(`definitionMarker`),e.consume(t),e.exit(`definitionMarker`),c):n(t)}function c(t){return ba(t)?Co(e,l)(t):l(t)}function l(t){return bo(e,u,n,`definitionDestination`,`definitionDestinationLiteral`,`definitionDestinationLiteralMarker`,`definitionDestinationRaw`,`definitionDestinationString`)(t)}function u(t){return e.attempt(To,d,d)(t)}function d(t){return V(t)?H(e,f,`whitespace`)(t):f(t)}function f(a){return a===null||B(a)?(e.exit(`definition`),r.parser.defined.push(i),t(a)):n(a)}}function Do(e,t,n){return r;function r(t){return ba(t)?Co(e,i)(t):n(t)}function i(t){return So(e,a,n,`definitionTitle`,`definitionTitleMarker`,`definitionTitleString`)(t)}function a(t){return V(t)?H(e,o,`whitespace`)(t):o(t)}function o(e){return e===null||B(e)?t(e):n(e)}}var Oo={name:`hardBreakEscape`,tokenize:ko};function ko(e,t,n){return r;function r(t){return e.enter(`hardBreakEscape`),e.consume(t),i}function i(r){return B(r)?(e.exit(`hardBreakEscape`),t(r)):n(r)}}var Ao={name:`headingAtx`,resolve:jo,tokenize:Mo};function jo(e,t){let n=e.length-2,r=3;if(e[r][1].type===`whitespace`&&(r+=2),n-2>r&&e[n][1].type===`whitespace`&&(n-=2),e[n][1].type===`atxHeadingSequence`&&(r===n-1||n-4>r&&e[n-2][1].type===`whitespace`)&&(n-=r+1===n?2:4),n>r){let i={type:`atxHeadingText`,start:e[r][1].start,end:e[n][1].end},a={type:`chunkText`,start:e[r][1].start,end:e[n][1].end,contentType:`text`};z(e,r,n-r+1,[[`enter`,i,t],[`enter`,a,t],[`exit`,a,t],[`exit`,i,t]])}return e}function Mo(e,t,n){let r=0;return i;function i(t){return e.enter(`atxHeading`),a(t)}function a(t){return e.enter(`atxHeadingSequence`),o(t)}function o(t){return t===35&&r++<6?(e.consume(t),o):t===null||ba(t)?(e.exit(`atxHeadingSequence`),s(t)):n(t)}function s(n){return n===35?(e.enter(`atxHeadingSequence`),c(n)):n===null||B(n)?(e.exit(`atxHeading`),t(n)):V(n)?H(e,s,`whitespace`)(n):(e.enter(`atxHeadingText`),l(n))}function c(t){return t===35?(e.consume(t),c):(e.exit(`atxHeadingSequence`),s(t))}function l(t){return t===null||t===35||ba(t)?(e.exit(`atxHeadingText`),s(t)):(e.consume(t),l)}}var No=`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`.split(`.`),Po=[`pre`,`script`,`style`,`textarea`],Fo={concrete:!0,name:`htmlFlow`,resolveTo:Lo,tokenize:Ro},Io={partial:!0,tokenize:zo};function Lo(e){let t=e.length;for(;t--&&(e[t][0]!==`enter`||e[t][1].type!==`htmlFlow`););return t>1&&e[t-2][1].type===`linePrefix`&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e}function Ro(e,t,n){let r=this,i,a,o,s,c;return l;function l(e){return u(e)}function u(t){return e.enter(`htmlFlow`),e.enter(`htmlFlowData`),e.consume(t),d}function d(s){return s===33?(e.consume(s),f):s===47?(e.consume(s),a=!0,h):s===63?(e.consume(s),i=3,r.interrupt?t:se):pa(s)?(e.consume(s),o=String.fromCharCode(s),g):n(s)}function f(a){return a===45?(e.consume(a),i=2,p):a===91?(e.consume(a),i=5,s=0,m):pa(a)?(e.consume(a),i=4,r.interrupt?t:se):n(a)}function p(i){return i===45?(e.consume(i),r.interrupt?t:se):n(i)}function m(i){return i===`CDATA[`.charCodeAt(s++)?(e.consume(i),s===6?r.interrupt?t:E:m):n(i)}function h(t){return pa(t)?(e.consume(t),o=String.fromCharCode(t),g):n(t)}function g(s){if(s===null||s===47||s===62||ba(s)){let c=s===47,l=o.toLowerCase();return!c&&!a&&Po.includes(l)?(i=1,r.interrupt?t(s):E(s)):No.includes(o.toLowerCase())?(i=6,c?(e.consume(s),_):r.interrupt?t(s):E(s)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(s):a?v(s):y(s))}return s===45||ma(s)?(e.consume(s),o+=String.fromCharCode(s),g):n(s)}function _(i){return i===62?(e.consume(i),r.interrupt?t:E):n(i)}function v(t){return V(t)?(e.consume(t),v):w(t)}function y(t){return t===47?(e.consume(t),w):t===58||t===95||pa(t)?(e.consume(t),b):V(t)?(e.consume(t),y):w(t)}function b(t){return t===45||t===46||t===58||t===95||ma(t)?(e.consume(t),b):x(t)}function x(t){return t===61?(e.consume(t),S):V(t)?(e.consume(t),x):y(t)}function S(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),c=t,ee):V(t)?(e.consume(t),S):te(t)}function ee(t){return t===c?(e.consume(t),c=null,C):t===null||B(t)?n(t):(e.consume(t),ee)}function te(t){return t===null||t===34||t===39||t===47||t===60||t===61||t===62||t===96||ba(t)?x(t):(e.consume(t),te)}function C(e){return e===47||e===62||V(e)?y(e):n(e)}function w(t){return t===62?(e.consume(t),T):n(t)}function T(t){return t===null||B(t)?E(t):V(t)?(e.consume(t),T):n(t)}function E(t){return t===45&&i===2?(e.consume(t),ie):t===60&&i===1?(e.consume(t),ae):t===62&&i===4?(e.consume(t),ce):t===63&&i===3?(e.consume(t),se):t===93&&i===5?(e.consume(t),O):B(t)&&(i===6||i===7)?(e.exit(`htmlFlowData`),e.check(Io,le,D)(t)):t===null||B(t)?(e.exit(`htmlFlowData`),D(t)):(e.consume(t),E)}function D(t){return e.check(Qa,ne,le)(t)}function ne(t){return e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),re}function re(t){return t===null||B(t)?D(t):(e.enter(`htmlFlowData`),E(t))}function ie(t){return t===45?(e.consume(t),se):E(t)}function ae(t){return t===47?(e.consume(t),o=``,oe):E(t)}function oe(t){if(t===62){let n=o.toLowerCase();return Po.includes(n)?(e.consume(t),ce):E(t)}return pa(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),oe):E(t)}function O(t){return t===93?(e.consume(t),se):E(t)}function se(t){return t===62?(e.consume(t),ce):t===45&&i===2?(e.consume(t),se):E(t)}function ce(t){return t===null||B(t)?(e.exit(`htmlFlowData`),le(t)):(e.consume(t),ce)}function le(n){return e.exit(`htmlFlow`),t(n)}}function zo(e,t,n){return r;function r(r){return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),e.attempt(Ha,t,n)}}var Bo={name:`htmlText`,tokenize:U};function U(e,t,n){let r=this,i,a,o;return s;function s(t){return e.enter(`htmlText`),e.enter(`htmlTextData`),e.consume(t),c}function c(t){return t===33?(e.consume(t),l):t===47?(e.consume(t),x):t===63?(e.consume(t),y):pa(t)?(e.consume(t),te):n(t)}function l(t){return t===45?(e.consume(t),u):t===91?(e.consume(t),a=0,m):pa(t)?(e.consume(t),v):n(t)}function u(t){return t===45?(e.consume(t),p):n(t)}function d(t){return t===null?n(t):t===45?(e.consume(t),f):B(t)?(o=d,ae(t)):(e.consume(t),d)}function f(t){return t===45?(e.consume(t),p):d(t)}function p(e){return e===62?ie(e):e===45?f(e):d(e)}function m(t){return t===`CDATA[`.charCodeAt(a++)?(e.consume(t),a===6?h:m):n(t)}function h(t){return t===null?n(t):t===93?(e.consume(t),g):B(t)?(o=h,ae(t)):(e.consume(t),h)}function g(t){return t===93?(e.consume(t),_):h(t)}function _(t){return t===62?ie(t):t===93?(e.consume(t),_):h(t)}function v(t){return t===null||t===62?ie(t):B(t)?(o=v,ae(t)):(e.consume(t),v)}function y(t){return t===null?n(t):t===63?(e.consume(t),b):B(t)?(o=y,ae(t)):(e.consume(t),y)}function b(e){return e===62?ie(e):y(e)}function x(t){return pa(t)?(e.consume(t),S):n(t)}function S(t){return t===45||ma(t)?(e.consume(t),S):ee(t)}function ee(t){return B(t)?(o=ee,ae(t)):V(t)?(e.consume(t),ee):ie(t)}function te(t){return t===45||ma(t)?(e.consume(t),te):t===47||t===62||ba(t)?C(t):n(t)}function C(t){return t===47?(e.consume(t),ie):t===58||t===95||pa(t)?(e.consume(t),w):B(t)?(o=C,ae(t)):V(t)?(e.consume(t),C):ie(t)}function w(t){return t===45||t===46||t===58||t===95||ma(t)?(e.consume(t),w):T(t)}function T(t){return t===61?(e.consume(t),E):B(t)?(o=T,ae(t)):V(t)?(e.consume(t),T):C(t)}function E(t){return t===null||t===60||t===61||t===62||t===96?n(t):t===34||t===39?(e.consume(t),i=t,D):B(t)?(o=E,ae(t)):V(t)?(e.consume(t),E):(e.consume(t),ne)}function D(t){return t===i?(e.consume(t),i=void 0,re):t===null?n(t):B(t)?(o=D,ae(t)):(e.consume(t),D)}function ne(t){return t===null||t===34||t===39||t===60||t===61||t===96?n(t):t===47||t===62||ba(t)?C(t):(e.consume(t),ne)}function re(e){return e===47||e===62||ba(e)?C(e):n(e)}function ie(r){return r===62?(e.consume(r),e.exit(`htmlTextData`),e.exit(`htmlText`),t):n(r)}function ae(t){return e.exit(`htmlTextData`),e.enter(`lineEnding`),e.consume(t),e.exit(`lineEnding`),oe}function oe(t){return V(t)?H(e,O,`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(t):O(t)}function O(t){return e.enter(`htmlTextData`),o(t)}}var W={name:`labelEnd`,resolveAll:Wo,resolveTo:Go,tokenize:Ko},Vo={tokenize:qo},Ho={tokenize:Jo},Uo={tokenize:Yo};function Wo(e){let t=-1,n=[];for(;++t<e.length;){let r=e[t][1];if(n.push(e[t]),r.type===`labelImage`||r.type===`labelLink`||r.type===`labelEnd`){let e=r.type===`labelImage`?4:2;r.type=`data`,t+=e}}return e.length!==n.length&&z(e,0,e.length,n),e}function Go(e,t){let n=e.length,r=0,i,a,o;for(;n--;){let t=e[n][1];if(i){if(t.type===`link`||t.type===`labelLink`&&t._inactive)break;e[n][0]===`enter`&&t.type===`labelLink`&&(t._inactive=!0)}else if(a){if(e[n][0]===`enter`&&(t.type===`labelImage`||t.type===`labelLink`)&&!t._balanced&&(i=n,t.type!==`labelLink`)){r=2;break}}else t.type===`labelEnd`&&(a=n)}let s={type:e[i][1].type===`labelLink`?`link`:`image`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}},c={type:`label`,start:{...e[i][1].start},end:{...e[a][1].end}},l={type:`labelText`,start:{...e[i+r+2][1].end},end:{...e[a-2][1].start}};return o=[[`enter`,s,t],[`enter`,c,t]],o=oa(o,e.slice(i+1,i+r+3)),o=oa(o,[[`enter`,l,t]]),o=oa(o,Fa(t.parser.constructs.insideSpan.null,e.slice(i+r+4,a-3),t)),o=oa(o,[[`exit`,l,t],e[a-2],e[a-1],[`exit`,c,t]]),o=oa(o,e.slice(a+1)),o=oa(o,[[`exit`,s,t]]),z(e,i,e.length,o),e}function Ko(e,t,n){let r=this,i=r._labelStarts,a,o;if(i){for(;i.length>0&&i[i.length-1]._balanced;)i.pop();a=i[i.length-1]}return s;function s(t){return a?a._inactive?d(t):(o=r.parser.defined.includes(fa(r.sliceSerialize({start:a.end,end:r.now()}))),e.enter(`labelEnd`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),e.exit(`labelEnd`),c):n(t)}function c(t){return t===40?e.attempt(Vo,u,o?u:d)(t):t===91?e.attempt(Ho,u,o?l:d)(t):o?u(t):d(t)}function l(t){return e.attempt(Uo,u,d)(t)}function u(e){return i.pop(),t(e)}function d(e){return a._balanced=!0,n(e)}}function qo(e,t,n){return r;function r(t){return e.enter(`resource`),e.enter(`resourceMarker`),e.consume(t),e.exit(`resourceMarker`),i}function i(t){return ba(t)?Co(e,a)(t):a(t)}function a(t){return t===41?u(t):bo(e,o,s,`resourceDestination`,`resourceDestinationLiteral`,`resourceDestinationLiteralMarker`,`resourceDestinationRaw`,`resourceDestinationString`,32)(t)}function o(t){return ba(t)?Co(e,c)(t):u(t)}function s(e){return n(e)}function c(t){return t===34||t===39||t===40?So(e,l,n,`resourceTitle`,`resourceTitleMarker`,`resourceTitleString`)(t):u(t)}function l(t){return ba(t)?Co(e,u)(t):u(t)}function u(r){return r===41?(e.enter(`resourceMarker`),e.consume(r),e.exit(`resourceMarker`),e.exit(`resource`),t):n(r)}}function Jo(e,t,n){let r=this;return i;function i(t){return xo.call(r,e,a,o,`reference`,`referenceMarker`,`referenceString`)(t)}function a(e){return r.parser.defined.includes(fa(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}function Yo(e,t,n){return r;function r(t){return e.enter(`reference`),e.enter(`referenceMarker`),e.consume(t),e.exit(`referenceMarker`),i}function i(r){return r===93?(e.enter(`referenceMarker`),e.consume(r),e.exit(`referenceMarker`),e.exit(`reference`),t):n(r)}}var Xo={name:`labelStartImage`,resolveAll:W.resolveAll,tokenize:Zo};function Zo(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelImage`),e.enter(`labelImageMarker`),e.consume(t),e.exit(`labelImageMarker`),o}function o(t){return t===91?(e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelImage`),s):n(t)}function s(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var Qo={name:`labelStartLink`,resolveAll:W.resolveAll,tokenize:$o};function $o(e,t,n){let r=this,i;return a;function a(t){return e.enter(`labelLink`),e.enter(`labelMarker`),e.consume(t),e.exit(`labelMarker`),i=e.exit(`labelLink`),o}function o(e){return e===94&&`_hiddenFootnoteSupport`in r.parser.constructs?n(e):(r._labelStarts=r._labelStarts||[],r._labelStarts.push(i),t(e))}}var es={name:`lineEnding`,tokenize:ts};function ts(e,t){return n;function n(n){return e.enter(`lineEnding`),e.consume(n),e.exit(`lineEnding`),H(e,t,`linePrefix`)}}var ns={name:`thematicBreak`,tokenize:rs};function rs(e,t,n){let r=0,i;return a;function a(t){return e.enter(`thematicBreak`),o(t)}function o(e){return i=e,s(e)}function s(a){return a===i?(e.enter(`thematicBreakSequence`),c(a)):r>=3&&(a===null||B(a))?(e.exit(`thematicBreak`),t(a)):n(a)}function c(t){return t===i?(e.consume(t),r++,c):(e.exit(`thematicBreakSequence`),V(t)?H(e,s,`whitespace`)(t):s(t))}}var G={continuation:{tokenize:ss},exit:ls,name:`list`,tokenize:os},is={partial:!0,tokenize:us},as={partial:!0,tokenize:cs};function os(e,t,n){let r=this,i=r.events[r.events.length-1],a=i&&i[1].type===`linePrefix`?i[2].sliceSerialize(i[1],!0).length:0,o=0;return s;function s(t){let i=r.containerState.type||(t===42||t===43||t===45?`listUnordered`:`listOrdered`);if(i===`listUnordered`?!r.containerState.marker||t===r.containerState.marker:_a(t)){if(r.containerState.type||(r.containerState.type=i,e.enter(i,{_container:!0})),i===`listUnordered`)return e.enter(`listItemPrefix`),t===42||t===45?e.check(ns,n,l)(t):l(t);if(!r.interrupt||t===49)return e.enter(`listItemPrefix`),e.enter(`listItemValue`),c(t)}return n(t)}function c(t){return _a(t)&&++o<10?(e.consume(t),c):(!r.interrupt||o<2)&&(r.containerState.marker?t===r.containerState.marker:t===41||t===46)?(e.exit(`listItemValue`),l(t)):n(t)}function l(t){return e.enter(`listItemMarker`),e.consume(t),e.exit(`listItemMarker`),r.containerState.marker=r.containerState.marker||t,e.check(Ha,r.interrupt?n:u,e.attempt(is,f,d))}function u(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function d(t){return V(t)?(e.enter(`listItemPrefixWhitespace`),e.consume(t),e.exit(`listItemPrefixWhitespace`),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit(`listItemPrefix`),!0).length,t(n)}}function ss(e,t,n){let r=this;return r.containerState._closeFlow=void 0,e.check(Ha,i,a);function i(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,H(e,t,`listItemIndent`,r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!V(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,o(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(as,t,o)(n))}function o(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,H(e,e.attempt(G,t,n),`linePrefix`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:4)(i)}}function cs(e,t,n){let r=this;return H(e,i,`listItemIndent`,r.containerState.size+1);function i(e){let i=r.events[r.events.length-1];return i&&i[1].type===`listItemIndent`&&i[2].sliceSerialize(i[1],!0).length===r.containerState.size?t(e):n(e)}}function ls(e){e.exit(this.containerState.type)}function us(e,t,n){let r=this;return H(e,i,`listItemPrefixWhitespace`,r.parser.constructs.disable.null.includes(`codeIndented`)?void 0:5);function i(e){let i=r.events[r.events.length-1];return!V(e)&&i&&i[1].type===`listItemPrefixWhitespace`?t(e):n(e)}}var ds={name:`setextUnderline`,resolveTo:fs,tokenize:ps};function fs(e,t){let n=new Oa,r=e.length,i,a,o;for(;r--;)if(e[r][0]===`enter`){if(e[r][1].type===`content`){i=r;break}e[r][1].type===`paragraph`&&(a=r)}else e[r][1].type===`content`&&n.add(r,1,[]),!o&&e[r][1].type===`definition`&&(o=r);let s={type:`setextHeading`,start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type=`setextHeadingText`,o?(n.add(a,0,[[`enter`,s,t]]),n.add(o+1,0,[[`exit`,e[i][1],t]]),e[i][1].end={...e[o][1].end}):e[i][1]=s,n.add(e.length,0,[[`exit`,s,t]]),n.consume(e),e}function ps(e,t,n){let r=this,i;return a;function a(t){let a=r.events.length,s;for(;a--;)if(r.events[a][1].type!==`lineEnding`&&r.events[a][1].type!==`linePrefix`&&r.events[a][1].type!==`content`){s=r.events[a][1].type===`paragraph`;break}return!r.parser.lazy[r.now().line]&&(r.interrupt||s)?(e.enter(`setextHeadingLine`),i=t,o(t)):n(t)}function o(t){return e.enter(`setextHeadingLineSequence`),s(t)}function s(t){return t===i?(e.consume(t),s):(e.exit(`setextHeadingLineSequence`),V(t)?H(e,c,`lineSuffix`)(t):c(t))}function c(r){return r===null||B(r)?(e.exit(`setextHeadingLine`),t(r)):n(r)}}var ms={tokenize:hs};function hs(e){let t=this,n=e.attempt(Ha,r,e.attempt(this.parser.constructs.flowInitial,i,H(e,e.attempt(this.parser.constructs.flow,i,e.attempt(ho,i)),`linePrefix`)));return n;function r(r){if(r===null)e.consume(r);else return e.enter(`lineEndingBlank`),e.consume(r),e.exit(`lineEndingBlank`),t.currentConstruct=void 0,n}function i(r){if(r===null)e.consume(r);else return e.enter(`lineEnding`),e.consume(r),e.exit(`lineEnding`),t.currentConstruct=void 0,n}}var gs={resolveAll:bs()},_s=ys(`string`),vs=ys(`text`);function ys(e){return{resolveAll:bs(e===`text`?xs:void 0),tokenize:t};function t(t){let n=this,r=this.parser.constructs[e],i=t.attempt(r,a,o);return a;function a(e){return c(e)?i(e):o(e)}function o(e){if(e===null)t.consume(e);else return t.enter(`data`),t.consume(e),s}function s(e){return c(e)?(t.exit(`data`),i(e)):(t.consume(e),s)}function c(e){if(e===null)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 bs(e){return t;function t(t,n){let r=-1,i;for(;++r<=t.length;)i===void 0?t[r]&&t[r][1].type===`data`&&(i=r,r++):(!t[r]||t[r][1].type!==`data`)&&(r!==i+2&&(t[i][1].end=t[r-1][1].end,t.splice(i+2,r-i-2),r=i+2),i=void 0);return e?e(t,n):t}}function xs(e,t){let n=new Oa,r=0;for(;++r<=e.length;)if((r===e.length||e[r][1].type===`lineEnding`)&&e[r-1][1].type===`data`){let i=e[r-1][1],a=t.sliceStream(i),o=a.length,s=-1,c=0,l;for(;o--;){let e=a[o];if(typeof e==`string`){for(s=e.length;e.charCodeAt(s-1)===32;)c++,s--;if(s)break;s=-1}else if(e===-2)l=!0,c++;else if(e!==-1){o++;break}}if(t._contentTypeTextTrailing&&r===e.length&&(c=0),c){let a={type:r===e.length||l||c<2?`lineSuffix`:`hardBreakTrailing`,start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-c,offset:i.end.offset-c},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):n.add(r,0,[[`enter`,a,t],[`exit`,a,t]])}r++}return n.consume(e),e}var Ss=s({attentionMarkers:()=>As,contentInitial:()=>ws,disable:()=>js,document:()=>Cs,flow:()=>Es,flowInitial:()=>Ts,insideSpan:()=>ks,string:()=>Ds,text:()=>Os}),Cs={42:G,43:G,45:G,48:G,49:G,50:G,51:G,52:G,53:G,54:G,55:G,56:G,57:G,62:Wa},ws={91:wo},Ts={[-2]:no,[-1]:no,32:no},Es={35:Ao,42:ns,45:[ds,ns],60:Fo,61:ds,95:ns,96:eo,126:eo},Ds={38:Xa,92:Ja},Os={[-5]:es,[-4]:es,[-3]:es,33:Xo,38:Xa,42:Ia,60:[Ba,Bo],91:Qo,92:[Oo,Ja],93:W,95:Ia,96:oo},ks={null:[Ia,gs]},As={null:[42,95]},js={null:[]};function Ms(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={},a=[],o=[],s=[],c={attempt:ee(x),check:ee(S),consume:v,enter:y,exit:b,interrupt:ee(S,{interrupt:!0})},l={code:null,containerState:{},defineSkip:h,events:[],now:m,parser:e,previous:null,sliceSerialize:f,sliceStream:p,write:d},u=t.tokenize.call(l,c);return t.resolveAll&&a.push(t),l;function d(e){return o=oa(o,e),g(),o[o.length-1]===null?(te(t,0),l.events=Fa(a,l.events,l),l.events):[]}function f(e,t){return Ps(p(e),t)}function p(e){return Ns(o,e)}function m(){let{_bufferIndex:e,_index:t,line:n,column:i,offset:a}=r;return{_bufferIndex:e,_index:t,line:n,column:i,offset:a}}function h(e){i[e.line]=e.column,w()}function g(){for(;r._index<o.length;){let e=o[r._index];if(typeof e==`string`){let t=r._index;for(r._bufferIndex<0&&(r._bufferIndex=0);r._index===t&&r._bufferIndex<e.length;)_(e.charCodeAt(r._bufferIndex))}else _(e)}}function _(e){u=u(e)}function v(e){B(e)?(r.line++,r.column=1,r.offset+=e===-3?2:1,w()):e!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===o[r._index].length&&(r._bufferIndex=-1,r._index++)),l.previous=e}function y(e,t){let n=t||{};return n.type=e,n.start=m(),l.events.push([`enter`,n,l]),s.push(n),n}function b(e){let t=s.pop();return t.end=m(),l.events.push([`exit`,t,l]),t}function x(e,t){te(e,t.from)}function S(e,t){t.restore()}function ee(e,t){return n;function n(n,r,i){let a,o,s,u;return Array.isArray(n)?f(n):`tokenize`in n?f([n]):d(n);function d(e){return t;function t(t){let n=t!==null&&e[t],r=t!==null&&e.null;return f([...Array.isArray(n)?n:n?[n]:[],...Array.isArray(r)?r:r?[r]:[]])(t)}}function f(e){return a=e,o=0,e.length===0?i:p(e[o])}function p(e){return n;function n(n){return u=C(),s=e,e.partial||(l.currentConstruct=e),e.name&&l.parser.constructs.disable.null.includes(e.name)?h(n):e.tokenize.call(t?Object.assign(Object.create(l),t):l,c,m,h)(n)}}function m(t){return e(s,u),r}function h(e){return u.restore(),++o<a.length?p(a[o]):i}}}function te(e,t){e.resolveAll&&!a.includes(e)&&a.push(e),e.resolve&&z(l.events,t,l.events.length-t,e.resolve(l.events.slice(t),l)),e.resolveTo&&(l.events=e.resolveTo(l.events,l))}function C(){let e=m(),t=l.previous,n=l.currentConstruct,i=l.events.length,a=Array.from(s);return{from:i,restore:o};function o(){r=e,l.previous=t,l.currentConstruct=n,l.events.length=i,s=a,w()}}function w(){r.line in i&&r.column<2&&(r.column=i[r.line],r.offset+=i[r.line]-1)}}function Ns(e,t){let n=t.start._index,r=t.start._bufferIndex,i=t.end._index,a=t.end._bufferIndex,o;if(n===i)o=[e[n].slice(r,a)];else{if(o=e.slice(n,i),r>-1){let e=o[0];typeof e==`string`?o[0]=e.slice(r):o.shift()}a>0&&o.push(e[i].slice(0,a))}return o}function Ps(e,t){let n=-1,r=[],i;for(;++n<e.length;){let a=e[n],o;if(typeof a==`string`)o=a;else switch(a){case-5:o=`\r`;break;case-4:o=`
|
|
18
18
|
`;break;case-3:o=`\r
|
|
19
19
|
`;break;case-2:o=t?` `:` `;break;case-1:if(!t&&i)continue;o=` `;break;default:o=String.fromCharCode(a)}i=a===-2,r.push(o)}return r.join(``)}function Fs(e){let t={constructs:ca([Ss,...(e||{}).extensions||[]]),content:n(Ea),defined:[],document:n(Aa),flow:n(ms),lazy:{},string:n(_s),text:n(vs)};return t;function n(e){return n;function n(n){return Ms(t,e,n)}}}function Is(e){for(;!po(e););return e}var Ls=/[\0\t\n\r]/g;function Rs(){let e=1,t=``,n=!0,r;return i;function i(i,a,o){i=t+(typeof i==`string`?i.toString():new TextDecoder(a||void 0).decode(i));let s=[],c=0;for(t=``,n&&=(i.charCodeAt(0)===65279&&c++,void 0);c<i.length;){Ls.lastIndex=c;let n=Ls.exec(i),a=n&&n.index!==void 0?n.index:i.length,o=i.charCodeAt(a);if(!n){t=i.slice(c);break}if(o===10&&c===a&&r)s.push(-3),r=void 0;else switch(r&&=(s.push(-5),void 0),c<a&&(s.push(i.slice(c,a)),e+=a-c),o){case 0:s.push(65533),e++;break;case 9:{let t=Math.ceil(e/4)*4;for(s.push(-2);e++<t;)s.push(-1);break}case 10:s.push(-4),e=1;break;default:r=!0,e=1}c=a+1}return o&&(r&&s.push(-5),t&&s.push(t),s.push(null)),s}}var zs=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function Bs(e){return e.replace(zs,Vs)}function Vs(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){let e=n.charCodeAt(1),t=e===120||e===88;return da(n.slice(t?2:1),t?16:10)}return R(n)||e}var Hs={}.hasOwnProperty;function Us(e,t,n){return t&&typeof t==`object`&&(n=t,t=void 0),Ws(n)(Is(Fs(n).document().write(Rs()(e,t,!0))))}function Ws(e){let t={afterExit:[],beforeEnter:[],transforms:[],canContainEols:[`emphasis`,`fragment`,`heading`,`paragraph`,`strong`],enter:{autolink:o(Te),autolinkProtocol:w,autolinkEmail:w,atxHeading:o(A),blockQuote:o(ve),characterEscape:w,characterReference:w,codeFenced:o(ye),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(ye,s),codeText:o(be,s),codeTextData:w,data:w,codeFlowValue:w,definition:o(xe),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(k),hardBreakEscape:o(Se),hardBreakTrailing:o(Se),htmlFlow:o(Ce,s),htmlFlowData:w,htmlText:o(Ce,s),htmlTextData:w,image:o(we),label:s,link:o(Te),listItem:o(j),listItemValue:p,listOrdered:o(Ee,f),listUnordered:o(Ee),paragraph:o(De),reference:de,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(A),strong:o(Oe),thematicBreak:o(Ae)},exit:{atxHeading:l(),atxHeadingSequence:S,autolink:l(),autolinkEmail:_e,autolinkProtocol:ge,blockQuote:l(),characterEscapeValue:T,characterReferenceMarkerHexadecimal:pe,characterReferenceMarkerNumeric:pe,characterReferenceValue:me,characterReference:he,codeFenced:l(_),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:h,codeFlowValue:T,codeIndented:l(v),codeText:l(ie),codeTextData:T,data:T,definition:l(),definitionDestinationString:x,definitionLabelString:y,definitionTitleString:b,emphasis:l(),hardBreakEscape:l(D),hardBreakTrailing:l(D),htmlFlow:l(ne),htmlFlowData:T,htmlText:l(re),htmlTextData:T,image:l(oe),label:se,labelText:O,lineEnding:E,link:l(ae),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:fe,resourceDestinationString:ce,resourceTitleString:le,resource:ue,setextHeading:l(C),setextHeadingLineSequence:te,setextHeadingText:ee,strong:l(),thematicBreak:l()}};Ks(t,(e||{}).mdastExtensions||[]);let n={};return r;function r(e){let r={type:`root`,children:[],position:void 0},o={stack:[r],tokenStack:[],config:t,enter:c,exit:u,buffer:s,resume:d,data:n},l=[],f=[],p=-1;for(;++p<e.length;)f.push(e[p]),(e[p][1].type===`listOrdered`||e[p][1].type===`listUnordered`)&&(e[p][0]===`enter`?l.push(f.length-1):a(f,l.pop()));for(e=f,p=-1;++p<e.length;){let n=t[e[p][0]];e[p][0]===`enter`&&t.beforeEnter.length>0&&i(t.beforeEnter,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),Hs.call(n,e[p][1].type)&&n[e[p][1].type].call({...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1]),e[p][0]===`exit`&&t.afterExit.length>0&&i(t.afterExit,{...o,sliceSerialize:e[p][2].sliceSerialize},e[p][1])}if(o.tokenStack.length>0){let e=o.tokenStack[o.tokenStack.length-1];(e[1]||Js).call(o,void 0,e[0])}for(r.position={start:Gs(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:Gs(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},p=-1;++p<t.transforms.length;)r=t.transforms[p](r)||r;return r}function i(e,t,n){let r=-1;for(;++r<e.length;)e[r].call(t,n)}function a(e,t){let n=e.length-1,r=t-1,i=-1,a=!1,o,s,c,l,u=[];for(;++r<=n;){let t=e[r];switch(t[1].type){case`listUnordered`:case`listOrdered`:case`blockQuote`:t[0]===`enter`?i++:i--,l=void 0;break;case`lineEndingBlank`:t[0]===`enter`&&(o&&!l&&!i&&!c&&(c=r),l=void 0);break;case`linePrefix`:case`listItemValue`:case`listItemMarker`:case`listItemPrefix`:case`listItemPrefixWhitespace`:break;default:l=void 0}if(!i&&t[0]===`enter`&&t[1].type===`listItemPrefix`||i===-1&&t[0]===`exit`&&(t[1].type===`listUnordered`||t[1].type===`listOrdered`)){if(o){let n=r;for(s=void 0;n--;){let t=e[n];if(t[1].type===`lineEnding`||t[1].type===`lineEndingBlank`){if(t[0]===`exit`)continue;s&&(e[s][1].type=`lineEndingBlank`,a=!0),t[1].type=`lineEnding`,s=n}else if(t[1].type!==`linePrefix`&&t[1].type!==`blockQuotePrefix`&&t[1].type!==`blockQuotePrefixWhitespace`&&t[1].type!==`blockQuoteMarker`&&t[1].type!==`listItemIndent`)break}c&&(!s||c<s)&&(o._spread=!0),o.end=Object.assign({},s?e[s][1].start:t[1].end),u.push({at:s||r,event:[`exit`,o,t[2]]})}if(t[1].type===`listItemPrefix`){let e={type:`listItem`,_spread:!1,start:Object.assign({},t[1].start),end:void 0};o=e,u.push({at:r,event:[`enter`,e,t[2]]}),c=void 0,l=!0}}}let d=e.splice(t),f=0;for(r=-1;++r<d.length;){for(;f<u.length&&u[f].at===t+r;)e.push(u[f++].event);e.push(d[r])}e[t][1]._spread=a}function o(e,t){return n;function n(n){c.call(this,e(n),n),t&&t.call(this,n)}}function s(){this.stack.push({type:`fragment`,children:[]})}function c(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:Gs(t.start),end:void 0}}function l(e){return t;function t(t){e&&e.call(this,t),u.call(this,t)}}function u(e,t){let n=this.stack.pop(),r=this.tokenStack.pop();if(!r)throw Error("Cannot close `"+e.type+"` ("+bi({start:e.start,end:e.end})+`): it’s not open`);r[0].type!==e.type&&(t?t.call(this,e,r[0]):(r[1]||Js).call(this,e,r[0])),n.position.end=Gs(e.end)}function d(){return ta(this.stack.pop())}function f(){this.data.expectingFirstListItemValue=!0}function p(e){if(this.data.expectingFirstListItemValue){let t=this.stack[this.stack.length-2];t.start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0}}function m(){let e=this.resume(),t=this.stack[this.stack.length-1];t.lang=e}function h(){let e=this.resume(),t=this.stack[this.stack.length-1];t.meta=e}function g(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function _(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,``),this.data.flowCodeInside=void 0}function v(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e.replace(/(\r?\n|\r)$/g,``)}function y(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fa(this.sliceSerialize(e)).toLowerCase()}function b(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function x(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function S(e){let t=this.stack[this.stack.length-1];t.depth||=this.sliceSerialize(e).length}function ee(){this.data.setextHeadingSlurpLineEnding=!0}function te(e){let t=this.stack[this.stack.length-1];t.depth=this.sliceSerialize(e).codePointAt(0)===61?1:2}function C(){this.data.setextHeadingSlurpLineEnding=void 0}function w(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];(!n||n.type!==`text`)&&(n=ke(),n.position={start:Gs(e.start),end:void 0},t.push(n)),this.stack.push(n)}function T(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=Gs(e.end)}function E(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){let t=n.children[n.children.length-1];t.position.end=Gs(e.end),this.data.atHardBreak=void 0}else!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(w.call(this,e),T.call(this,e))}function D(){this.data.atHardBreak=!0}function ne(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function re(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ie(){let e=this.resume(),t=this.stack[this.stack.length-1];t.value=e}function ae(){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}function oe(){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}function O(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=Bs(t),n.identifier=fa(t).toLowerCase()}function se(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];this.data.inReference=!0,n.type===`link`?n.children=e.children:n.alt=t}function ce(){let e=this.resume(),t=this.stack[this.stack.length-1];t.url=e}function le(){let e=this.resume(),t=this.stack[this.stack.length-1];t.title=e}function ue(){this.data.inReference=void 0}function de(){this.data.referenceType=`collapsed`}function fe(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=fa(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType=`full`}function pe(e){this.data.characterReferenceType=e.type}function me(e){let t=this.sliceSerialize(e),n=this.data.characterReferenceType,r;n?(r=da(t,n===`characterReferenceMarkerNumeric`?10:16),this.data.characterReferenceType=void 0):r=R(t);let i=this.stack[this.stack.length-1];i.value+=r}function he(e){let t=this.stack.pop();t.position.end=Gs(e.end)}function ge(e){T.call(this,e);let t=this.stack[this.stack.length-1];t.url=this.sliceSerialize(e)}function _e(e){T.call(this,e);let t=this.stack[this.stack.length-1];t.url=`mailto:`+this.sliceSerialize(e)}function ve(){return{type:`blockquote`,children:[],position:void 0}}function ye(){return{type:`code`,lang:null,meta:null,value:``,position:void 0}}function be(){return{type:`inlineCode`,value:``,position:void 0}}function xe(){return{type:`definition`,identifier:``,label:null,title:null,url:``,position:void 0}}function k(){return{type:`emphasis`,children:[],position:void 0}}function A(){return{type:`heading`,depth:0,children:[],position:void 0}}function Se(){return{type:`break`,position:void 0}}function Ce(){return{type:`html`,value:``,position:void 0}}function we(){return{type:`image`,title:null,url:``,alt:null,position:void 0}}function Te(){return{type:`link`,title:null,url:``,children:[],position:void 0}}function Ee(e){return{type:`list`,ordered:e.type===`listOrdered`,start:null,spread:e._spread,children:[],position:void 0}}function j(e){return{type:`listItem`,spread:e._spread,checked:null,children:[],position:void 0}}function De(){return{type:`paragraph`,children:[],position:void 0}}function Oe(){return{type:`strong`,children:[],position:void 0}}function ke(){return{type:`text`,value:``,position:void 0}}function Ae(){return{type:`thematicBreak`,position:void 0}}}function Gs(e){return{line:e.line,column:e.column,offset:e.offset}}function Ks(e,t){let n=-1;for(;++n<t.length;){let r=t[n];Array.isArray(r)?Ks(e,r):qs(e,r)}}function qs(e,t){let n;for(n in t)if(Hs.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`afterExit`:case`beforeEnter`:{let r=t[n];r&&e[n].push(r);break}case`enter`:case`exit`:{let r=t[n];r&&Object.assign(e[n],r);break}}}function Js(e,t){throw Error(e?"Cannot close `"+e.type+"` ("+bi({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+bi({start:t.start,end:t.end})+`) is open`:"Cannot close document, a token (`"+t.type+"`, "+bi({start:t.start,end:t.end})+`) is still open`)}function Ys(e){let t=this;t.parser=n;function n(n){return Us(n,{...t.data(`settings`),...e,extensions:t.data(`micromarkExtensions`)||[],mdastExtensions:t.data(`fromMarkdownExtensions`)||[]})}}function Xs(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)}function Zs(e,t){let n={type:`element`,tagName:`br`,properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:`text`,value:`
|
package/dist/web/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>GCF board</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-CCeftHBL.js"></script>
|
|
8
8
|
<link rel="stylesheet" crossorigin href="/assets/index-DCkdSzDJ.css">
|
|
9
9
|
</head>
|
|
10
10
|
<body>
|
package/package.json
CHANGED