https://hix.ai/cdn/_next/static/chunks/2wvebs471xbko.js?dpl=caeb3f7576cede78962678e87458b3b879430978
1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,309018,e=>{"use strict";let t,n;var r=e.i(659638);let l=(0,r.createContext)(null);l.displayName="PanelGroupContext";let a="data-panel-group-direction",i="data-panel-group-id",o="data-resize-handle",u="data-panel-resize-handle-id",s=r.useLayoutEffect,c=r["useId".toString()],d="function"==typeof c?c:()=>null,f=0;function p(e=null){let t=d(),n=(0,r.useRef)(e||t||null);return null===n.current&&(n.current=""+f++),null!=e?e:n.current}function h({children:e,className:t="",collapsedSize:n,collapsible:a,defaultSize:o,forwardedRef:u,id:c,maxSize:d,minSize:f,onCollapse:m,onExpand:g,onResize:v,order:y,style:b,tagName:x="div",...w}){let z=(0,r.useContext)(l);if(null===z)throw Error("Panel components must be rendered within a PanelGroup container");let{collapsePanel:E,expandPanel:C,getPanelSize:S,getPanelStyle:k,groupId:I,isPanelCollapsed:P,reevaluatePanelConstraints:A,registerPanel:$,resizePanel:R,unregisterPanel:N}=z,M=p(c),L=(0,r.useRef)({callbacks:{onCollapse:m,onExpand:g,onResize:v},constraints:{collapsedSize:n,collapsible:a,defaultSize:o,maxSize:d,minSize:f},id:M,idIsFromProps:void 0!==c,order:y});(0,r.useRef)({didLogMissingDefaultSizeWarning:!1}),s(()=>{let{callbacks:e,constraints:t}=L.current,r={...t};L.current.id=M,L.current.idIsFromProps=void 0!==c,L.current.order=y,e.onCollapse=m,e.onExpand=g,e.onResize=v,t.collapsedSize=n,t.collapsible=a,t.defaultSize=o,t.maxSize=d,t.minSize=f,(r.collapsedSize!==t.collapsedSize||r.collapsible!==t.collapsible||r.maxSize!==t.maxSize||r.minSize!==t.minSize)&&A(L.current,r)}),s(()=>{let e=L.current;return $(e),()=>{N(e)}},[y,M,$,N]),(0,r.useImperativeHandle)(u,()=>({collapse:()=>{E(L.current)},expand:e=>{C(L.current,e)},getId:()=>M,getSize:()=>S(L.current),isCollapsed:()=>P(L.current),isExpanded:()=>!P(L.current),resize:e=>{R(L.current,e)}}),[E,C,S,P,M,R]);let D=k(L.current,o);return(0,r.createElement)(x,{...w,children:e,className:t,id:M,style:{...D,...b},[i]:I,"data-panel":"","data-panel-collapsible":a||void 0,"data-panel-id":M,"data-panel-size":parseFloat(""+D.flexGrow).toFixed(1)})}let m=(0,r.forwardRef)((e,t)=>(0,r.createElement)(h,{...e,forwardedRef:t}));h.displayName="Panel",m.displayName="forwardRef(Panel)";let g=null,v=-1,y=null;function b(e,n,r){var l,a,i;let o=function(e,t){let n=(t&A)!=0,r=(t&$)!=0,l=(t&R)!=0,a=(t&N)!=0;if(t){if(n)if(l)return"se-resize";else if(a)return"ne-resize";else return"e-resize";else if(r)if(l)return"sw-resize";else if(a)return"nw-resize";else return"w-resize";else if(l)return"s-resize";else if(a)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}(e,n);g!==o&&(g=o,null===y&&(y=document.createElement("style"),t&&y.setAttribute("nonce",t),document.head.appendChild(y)),v>=0&&(null==(i=y.sheet)||i.removeRule(v)),v=null!=(l=null==(a=y.sheet)?void 0:a.insertRule(`*{cursor: ${o} !important;}`))?l:-1)}function x(e){return"keydown"===e.type}function w(e){return e.type.startsWith("pointer")}function z(e){return e.type.startsWith("mouse")}function E(e){if(w(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(z(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}let C=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function S(e){let t=e.length;for(;t--;){let n=e[t];if(q(n,"Missing node"),function(e){var t;let n,r=getComputedStyle(e);return"fixed"===r.position||!!("auto"!==r.zIndex&&("static"!==r.position||"flex"===(n=getComputedStyle(null!=(t=P(e))?t:e).display)||"inline-flex"===n)||1>+r.opacity||"transform"in r&&"none"!==r.transform||"webkitTransform"in r&&"none"!==r.webkitTransform||"mixBlendMode"in r&&"normal"!==r.mixBlendMode||"filter"in r&&"none"!==r.filter||"webkitFilter"in r&&"none"!==r.webkitFilter||"isolation"in r&&"isolate"===r.isolation||C.test(r.willChange))||"touch"===r.webkitOverflowScrolling}(n))return n}return null}function k(e){return e&&Number(getComputedStyle(e).zIndex)||0}function I(e){let t=[];for(;e;)t.push(e),e=P(e);return t}function P(e){let{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}let A=1,$=2,R=4,N=8,M="coarse"===function(){if("function"==typeof matchMedia)return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}(),L=[],D=!1,F=new Map,T=new Map,G=new Set;function H(e){let{target:t}=e,{x:n,y:r}=E(e);D=!0,W({target:t,x:n,y:r}
1),J(),L.length>0&&(K("down",e),U(),e.preventDefault(),j(t)||e.stopImmediatePropagation())}function O(e){let{x:t,y:n}=E(e);if(D&&"pointerleave"!==e.type&&0===e.buttons&&(D=!1,K("up",e)),!D){let{target:r}=e;W({target:r,x:t,y:n})}K("move",e),U(),L.length>0&&e.preventDefault()}function B(e){let{target:t}=e,{x:n,y:r}=E(e);T.clear(),D=!1,L.length>0&&(e.preventDefault(),j(t)||e.stopImmediatePropagation()),K("up",e),W({target:t,x:n,y:r}),U(),J()}function j(e){let t=e;for(;t;){if(t.hasAttribute(o))return!0;t=t.parentElement}return!1}function W({target:e,x:t,y:n}){L.splice(0);let r=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(r=e),G.forEach(e=>{let{element:l,hitAreaMargins:a}=e,i=l.getBoundingClientRect(),{bottom:o,left:u,right:s,top:c}=i,d=M?a.coarse:a.fine;if(t>=u-d&&t<=s+d&&n>=c-d&&n<=o+d){if(null!==r&&document.contains(r)&&l!==r&&!l.contains(r)&&!r.contains(l)&&function(e,t){let n;if(e===t)throw Error("Cannot compare node with itself");let r={a:I(e),b:I(t)};for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),n=e;q(n,"Stacking order can only be calculated for elements with a common ancestor");let l={a:k(S(r.a)),b:k(S(r.b))};if(l.a===l.b){let e=n.childNodes,t={a:r.a.at(-1),b:r.b.at(-1)},l=e.length;for(;l--;){let n=e[l];if(n===t.a)return 1;if(n===t.b)return -1}}return Math.sign(l.a-l.b)}(r,l)>0){let e=r,t=!1;for(;e;){var f;if(e.contains(l))break;if(f=e.getBoundingClientRect(),f.x<i.x+i.width&&f.x+f.width>i.x&&f.y<i.y+i.height&&f.y+f.height>i.y){t=!0;break}e=e.parentElement}if(t)return}L.push(e)}})}function U(){let e=!1,t=!1;L.forEach(n=>{let{direction:r}=n;"horizontal"===r?e=!0:t=!0});let n=0;T.forEach(e=>{n|=e}),e&&t?b("intersection",n,D):e?b("horizontal",n,D):t?b("vertical",n,D):null!==y&&(document.head.removeChild(y),g=null,y=null,v=-1)}function J(){var e;null==(e=n)||e.abort();let t={capture:!0,signal:(n=new AbortController).signal};G.size&&(D?(L.length>0&&F.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("contextmenu",B,t),r.addEventListener("pointerleave",O,t),r.addEventListener("pointermove",O,t))}),F.forEach((e,n)=>{let{body:r}=n;r.addEventListener("pointerup",B,t),r.addEventListener("pointercancel",B,t)})):F.forEach((e,n)=>{let{body:r}=n;e>0&&(r.addEventListener("pointerdown",H,t),r.addEventListener("pointermove",O,t))}))}function K(e,t){G.forEach(n=>{let{setResizeHandlerState:r}=n;r(e,L.includes(n),t)})}function q(e,t){if(!e)throw console.error(t),Error(t)}function V(e,t,n=10){return e.toFixed(n)===t.toFixed(n)?0:e>t?1:-1}function X(e,t,n=10){return 0===V(e,t,n)}function Y(e,t,n){return 0===V(e,t,n)}function Q({panelConstraints:e,panelIndex:t,size:n}){let r=e[t];q(null!=r,`Panel constraints not found for index ${t}`);let{collapsedSize:l=0,collapsible:a,maxSize:i=100,minSize:o=0}=r;return 0>V(n,o)&&(n=a&&0>V(n,(l+o)/2)?l:o),n=parseFloat((n=Math.min(i,n)).toFixed(10))}function Z({delta:e,initialLayout:t,panelConstraints:n,pivotIndices:r,prevLayout:l,trigger:a}){if(Y(e,0))return t;let i=[...t],[o,u]=r;q(null!=o,"Invalid first pivot index"),q(null!=u,"Invalid second pivot index");let s=0;if("keyboard"===a){{let r=e<0?u:o,l=n[r];q(l,`Panel constraints not found for index ${r}`);let{collapsedSize:a=0,collapsible:i,minSize:s=0}=l;if(i){let n=t[r];if(q(null!=n,`Previous layout not found for panel index ${r}`),Y(n,a)){let t=s-n;V(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}{let r=e<0?o:u,l=n[r];q(l,`No panel constraints found for index ${r}`);let{collapsedSize:a=0,collapsible:i,minSize:s=0}=l;if(i){let n=t[r];if(q(null!=n,`Previous layout not found for panel index ${r}`),Y(n,s)){let t=n-a;V(t,Math.abs(e))>0&&(e=e<0?0-t:t)}}}}{let r=e<0?1:-1,l=e<0?u:o,a=0;for(;;){let e=t[l];if(q(null!=e,`Previous layout not found for panel index ${l}`),a+=Q({panelConstraints:n,panelIndex:l,size:100})-e,(l+=r)<0||l>=n.length)break}let i=Math.min(Math.abs(e),Math.abs(a));e=e<0?0-i:i}{let r=e<0?o:u;for(;r>=0&&r<n.length;){let l=Math.abs(e)-Math.abs(s),a=t[r];q(null!=a,`Previous layout not found for panel index ${r}`);let o=Q({panelConstraints:n,panelIndex:r,size:a-l});if(!Y(a,o)&&(s+=a-o,i[r]=o,s.toFixed(3).localeCompare(Math.abs(e).toFixed(3),void 0,{numeric:!0})>=0))break;e<0?r--:r++}}if(function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!Y(e[n],t[n],void 0))return!1;return!0}(l,i))return l;{let r=e<0?u:o,l=t[r];q(null!=l,`Previous layout not found for panel index ${r}`);let a=l+s,c=Q({panelConstraints:n,panelIndex:r,size:a});if(i[r]=c,!Y(c,a)){let t=a-c,r=e<0?u:o;for(;r>=0&&r<n.length;){let l=i[r];q(null!=l,`Previous layout not found for panel index ${r}`);let a=Q({panelConstraints:n,panelIndex:r,size:l+t});if(Y(l,a)||(t-=a-l,i[r]=a),Y(t,0))break;e>0?r--:r++}}}return Y(i.reduce((e,t)=>
1t+e,0),100)?i:l}function _(e,t=document){return Array.from(t.querySelectorAll(`[${u}][data-panel-group-id="${e}"]`))}function ee(e,t,n=document){let r=_(e,n).findIndex(e=>e.getAttribute(u)===t);return null!=r?r:null}function et(e,t,n){let r=ee(e,t,n);return null!=r?[r,r+1]:[-1,-1]}function en(e,t=document){if((t instanceof HTMLElement||"object"==typeof t&&null!==t&&"tagName"in t&&"getAttribute"in t)&&t.dataset.panelGroupId==e)return t;let n=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return n||null}function er(e,t=document){let n=t.querySelector(`[${u}="${e}"]`);return n||null}function el(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function ea(e,t){let{x:n,y:r}=E(t);return"horizontal"===e?n:r}function ei(e,t,n){t.forEach((t,r)=>{let l=e[r];q(l,`Panel data not found for index ${r}`);let{callbacks:a,constraints:i,id:o}=l,{collapsedSize:u=0,collapsible:s}=i,c=n[o];if(null==c||t!==c){n[o]=t;let{onCollapse:e,onExpand:r,onResize:l}=a;l&&l(t,c),s&&(e||r)&&(r&&(null==c||X(c,u))&&!X(t,u)&&r(),e&&(null==c||!X(c,u))&&X(t,u)&&e())}})}function eo(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!=t[n])return!1;return!0}function eu(e){try{if("u">typeof localStorage)e.getItem=e=>localStorage.getItem(e),e.setItem=(e,t)=>{localStorage.setItem(e,t)};else throw Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}function es(e){return`react-resizable-panels:${e}`}function ec(e){return e.map(e=>{let{constraints:t,id:n,idIsFromProps:r,order:l}=e;return r?n:l?`${l}:${JSON.stringify(t)}`:JSON.stringify(t)}).sort((e,t)=>e.localeCompare(t)).join(",")}function ed(e,t){try{let n=es(e),r=t.getItem(n);if(r){let e=JSON.parse(r);if("object"==typeof e&&null!=e)return e}}catch(e){}return null}function ef(e,t,n,r,l){var a;let i=es(e),o=ec(t),u=null!=(a=ed(e,l))?a:{};u[o]={expandToSizes:Object.fromEntries(n.entries()),layout:r};try{l.setItem(i,JSON.stringify(u))}catch(e){console.error(e)}}function ep({layout:e,panelConstraints:t}){let n=[...e],r=n.reduce((e,t)=>e+t,0);if(n.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${n.map(e=>`${e}%`).join(", ")}`);if(!Y(r,100)&&n.length>0)for(let e=0;e<t.length;e++){let t=n[e];q(null!=t,`No layout data found for index ${e}`);let l=100/r*t;n[e]=l}let l=0;for(let e=0;e<t.length;e++){let r=n[e];q(null!=r,`No layout data found for index ${e}`);let a=Q({panelConstraints:t,panelIndex:e,size:r});r!=a&&(l+=r-a,n[e]=a)}if(!Y(l,0))for(let e=0;e<t.length;e++){let r=n[e];q(null!=r,`No layout data found for index ${e}`);let a=Q({panelConstraints:t,panelIndex:e,size:r+l});if(r!==a&&(l-=a-r,n[e]=a,Y(l,0)))break}return n}let eh={getItem:e=>(eu(eh),eh.getItem(e)),setItem:(e,t)=>{eu(eh),eh.setItem(e,t)}},em={};function eg({autoSaveId:e=null,children:t,className:n="",direction:o,forwardedRef:c,id:d=null,onLayout:f=null,keyboardResizeBy:h=null,storage:m=eh,style:g,tagName:v="div",...y}){let b=p(d),E=(0,r.useRef)(null),[C,S]=(0,r.useState)(null),[k,I]=(0,r.useState)([]),P=function(){let[e,t]=(0,r.useState)(0);return(0,r.useCallback)(()=>t(e=>e+1),[])}(),M=(0,r.useRef)({}),L=(0,r.useRef)(new Map),D=(0,r.useRef)(0),F=(0,r.useRef)({autoSaveId:e,direction:o,dragState:C,id:b,keyboardResizeBy:h,onLayout:f,storage:m}),G=(0,r.useRef)({layout:k,panelDataArray:[],panelDataArrayChanged:!1});(0,r.useRef)({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),(0,r.useImperativeHandle)(c,()=>({getId:()=>F.current.id,getLayout:()=>{let{layout:e}=G.current;return e},setLayout:e=>{let{onLayout:t}=F.current,{layout:n,panelDataArray:r}=G.current,l=ep({layout:e,panelConstraints:r.map(e=>e.constraints)});el(n,l)||(I(l),G.current.layout=l,t&&t(l),ei(r,l,M.current))}}),[]),s(()=>{F.current.autoSaveId=e,F.current.direction=o,F.current.dragState=C,F.current.id=b,F.current.onLayout=f,F.current.storage=m}),function({committedValuesRef:e,eagerValuesRef:t,groupId:n,layout:l,panelDataArray:a,panelGroupElement:i,setLayout:o}){(0,r.useRef)({didWarnAboutMissingResizeHandle:!1}),s(()=>
1{if(!i)return;let e=_(n,i);for(let t=0;t<a.length-1;t++){let{valueMax:n,valueMin:r,valueNow:i}=function({layout:e,panelsArray:t,pivotIndices:n}){let r=0,l=100,a=0,i=0,o=n[0];return q(null!=o,"No pivot index found"),t.forEach((e,t)=>{let{constraints:n}=e,{maxSize:u=100,minSize:s=0}=n;t===o?(r=s,l=u):(a+=s,i+=u)}),{valueMax:Math.min(l,100-a),valueMin:Math.max(r,100-i),valueNow:e[o]}}({layout:l,panelsArray:a,pivotIndices:[t,t+1]}),o=e[t];if(null==o);else{let e=a[t];q(e,`No panel data found for index "${t}"`),o.setAttribute("aria-controls",e.id),o.setAttribute("aria-valuemax",""+Math.round(n)),o.setAttribute("aria-valuemin",""+Math.round(r)),o.setAttribute("aria-valuenow",null!=i?""+Math.round(i):"")}}return()=>{e.forEach((e,t)=>{e.removeAttribute("aria-controls"),e.removeAttribute("aria-valuemax"),e.removeAttribute("aria-valuemin"),e.removeAttribute("aria-valuenow")})}},[n,l,a,i]),(0,r.useEffect)(()=>{if(!i)return;let e=t.current;q(e,"Eager values not found");let{panelDataArray:r}=e;q(null!=en(n,i),`No group found for id "${n}"`);let a=_(n,i);q(a,`No resize handles found for group id "${n}"`);let s=a.map(e=>{let t=e.getAttribute(u);q(t,"Resize handle element has no handle id attribute");let[a,s]=function(e,t,n,r=document){var l,a,i,o;let u=er(t,r),s=_(e,r),c=u?s.indexOf(u):-1;return[null!=(l=null==(a=n[c])?void 0:a.id)?l:null,null!=(i=null==(o=n[c+1])?void 0:o.id)?i:null]}(n,t,r,i);if(null==a||null==s)return()=>{};let c=e=>{if(!e.defaultPrevented&&"Enter"===e.key){e.preventDefault();let u=r.findIndex(e=>e.id===a);if(u>=0){let e=r[u];q(e,`No panel data found for index ${u}`);let a=l[u],{collapsedSize:s=0,collapsible:c,minSize:d=0}=e.constraints;if(null!=a&&c){let e=Z({delta:Y(a,s)?d-s:s-a,initialLayout:l,panelConstraints:r.map(e=>e.constraints),pivotIndices:et(n,t,i),prevLayout:l,trigger:"keyboard"});l!==e&&o(e)}}}};return e.addEventListener("keydown",c),()=>{e.removeEventListener("keydown",c)}});return()=>{s.forEach(e=>e())}},[i,e,t,n,l,a,o])}({committedValuesRef:F,eagerValuesRef:G,groupId:b,layout:k,panelDataArray:G.current.panelDataArray,setLayout:I,panelGroupElement:E.current}),(0,r.useEffect)(()=>{let{panelDataArray:t}=G.current;if(e){if(0===k.length||k.length!==t.length)return;let n=em[e];null==n&&(n=function(e,t=10){let n=null;return(...r)=>{null!==n&&clearTimeout(n),n=setTimeout(()=>{e(...r)},t)}}(ef,100),em[e]=n),n(e,[...t],new Map(L.current),k,m)}},[e,k,m]),(0,r.useEffect)(()=>{});let H=(0,r.useCallback)(e=>{let{onLayout:t}=F.current,{layout:n,panelDataArray:r}=G.current;if(e.constraints.collapsible){let l=r.map(e=>e.constraints),{collapsedSize:a=0,panelSize:i,pivotIndices:o}=eb(r,e,n);if(q(null!=i,`Panel size not found for panel "${e.id}"`),!X(i,a)){L.current.set(e.id,i);let u=Z({delta:ey(r,e)===r.length-1?i-a:a-i,initialLayout:n,panelConstraints:l,pivotIndices:o,prevLayout:n,trigger:"imperative-api"});eo(n,u)||(I(u),G.current.layout=u,t&&t(u),ei(r,u,M.current))}}},[]),O=(0,r.useCallback)((e,t)=>{let{onLayout:n}=F.current,{layout:r,panelDataArray:l}=G.current;if(e.constraints.collapsible){let a=l.map(e=>e.constraints),{collapsedSize:i=0,panelSize:o=0,minSize:u=0,pivotIndices:s}=eb(l,e,r),c=null!=t?t:u;if(X(o,i)){let t=L.current.get(e.id),i=null!=t&&t>=c?t:c,u=Z({delta:ey(l,e)===l.length-1?o-i:i-o,initialLayout:r,panelConstraints:a,pivotIndices:s,prevLayout:r,trigger:"imperative-api"});eo(r,u)||(I(u),G.current.layout=u,n&&n(u),ei(l,u,M.current))}}},[]),B=(0,r.useCallback)(e=>{let{layout:t,panelDataArray:n}=G.current,{panelSize:r}=eb(n,e,t);return q(null!=r,`Panel size not found for panel "${e.id}"`),r},[]),j=(0,r.useCallback)((e,t)=>{let{panelDataArray:n}=G.current,r=ey(n,e);return function({defaultSize:e,dragState:t,layout:n,panelData:r,panelIndex:l,precision:a=3}){let i=n[l];return{flexBasis:0,flexGrow:null==i?void 0!=e?e.toFixed(a):"1":1===r.length?"1":i.toFixed(a),flexShrink:1,overflow:"hidden",pointerEvents:null!==t?"none":void 0}}({defaultSize:t,dragState:C,layout:k,panelData:n,panelIndex:r})},[C,k]),W=(0,r.useCallback)(e=>{let{layout:t,panelDataArray:n}=G.current,{collapsedSize:r=0,collapsible:l,panelSize:a}=eb(n,e,t);return q(null!=a,`Panel size not found for panel "${e.id}"`),!0===l&&X(a,r)},[]),U=(0,r.useCallback)(e=>{let{layout:t,panelDataArray:n}=G.current,{collapsedSize:r=0,collapsible:l,panelSize:a}=eb(n,e,t);return q(null!=a,`Panel size not found for panel "${e.id}"`),!l||V(a,r)>0},[]),J=(0,r.useCallback)(e=>{let{panelDataArray:t}=G.current;t.push(e),t.sort((e,t)=>
1{let n=e.order,r=t.order;return null==n&&null==r?0:null==n?-1:null==r?1:n-r}),G.current.panelDataArrayChanged=!0,P()},[P]);s(()=>{if(G.current.panelDataArrayChanged){G.current.panelDataArrayChanged=!1;let{autoSaveId:n,onLayout:r,storage:l}=F.current,{layout:a,panelDataArray:i}=G.current,o=null;if(n){var e,t;let r=null!=(t=(null!=(e=ed(n,l))?e:{})[ec(i)])?t:null;r&&(L.current=new Map(Object.entries(r.expandToSizes)),o=r.layout)}null==o&&(o=function({panelDataArray:e}){let t=Array(e.length),n=e.map(e=>e.constraints),r=0,l=100;for(let a=0;a<e.length;a++){let e=n[a];q(e,`Panel constraints not found for index ${a}`);let{defaultSize:i}=e;null!=i&&(r++,t[a]=i,l-=i)}for(let a=0;a<e.length;a++){let i=n[a];q(i,`Panel constraints not found for index ${a}`);let{defaultSize:o}=i;if(null!=o)continue;let u=l/(e.length-r);r++,t[a]=u,l-=u}return t}({panelDataArray:i}));let u=ep({layout:o,panelConstraints:i.map(e=>e.constraints)});el(a,u)||(I(u),G.current.layout=u,r&&r(u),ei(i,u,M.current))}}),s(()=>{let e=G.current;return()=>{e.layout=[]}},[]);let K=(0,r.useCallback)(e=>{let t=!1,n=E.current;return n&&"rtl"===window.getComputedStyle(n,null).getPropertyValue("direction")&&(t=!0),function(n){var r,l;n.preventDefault();let a=E.current;if(!a)return()=>null;let{direction:o,dragState:u,id:s,keyboardResizeBy:c,onLayout:d}=F.current,{layout:f,panelDataArray:p}=G.current,{initialLayout:h}=null!=u?u:{},m=et(s,e,a),g=function(e,t,n,r,l,a){if(x(e)){let t="horizontal"===n,r=0;r=e.shiftKey?100:null!=l?l:10;let a=0;switch(e.key){case"ArrowDown":a=t?0:r;break;case"ArrowLeft":a=t?-r:0;break;case"ArrowRight":a=t?r:0;break;case"ArrowUp":a=t?0:-r;break;case"End":a=100;break;case"Home":a=-100}return a}return null==r?0:function(e,t,n,r,l){let a="horizontal"===n,o=er(t,l);q(o,`No resize handle element found for id "${t}"`);let u=o.getAttribute(i);q(u,"Resize handle element has no group id attribute");let{initialCursorPosition:s}=r,c=ea(n,e),d=en(u,l);q(d,`No group element found for id "${u}"`);let f=d.getBoundingClientRect();return(c-s)/(a?f.width:f.height)*100}(e,t,n,r,a)}(n,e,o,u,c,a),v="horizontal"===o;v&&t&&(g=-g);let y=Z({delta:g,initialLayout:null!=h?h:f,panelConstraints:p.map(e=>e.constraints),pivotIndices:m,prevLayout:f,trigger:x(n)?"keyboard":"mouse-or-touch"}),b=!eo(f,y);(w(n)||z(n))&&D.current!=g&&((D.current=g,b||0===g)?T.set(e,0):v?(r=g<0?A:$,T.set(e,r)):(l=g<0?R:N,T.set(e,l))),b&&(I(y),G.current.layout=y,d&&d(y),ei(p,y,M.current))}},[]),Q=(0,r.useCallback)((e,t)=>{let{onLayout:n}=F.current,{layout:r,panelDataArray:l}=G.current,a=l.map(e=>e.constraints),{panelSize:i,pivotIndices:o}=eb(l,e,r);q(null!=i,`Panel size not found for panel "${e.id}"`);let u=Z({delta:ey(l,e)===l.length-1?i-t:t-i,initialLayout:r,panelConstraints:a,pivotIndices:o,prevLayout:r,trigger:"imperative-api"});eo(r,u)||(I(u),G.current.layout=u,n&&n(u),ei(l,u,M.current))},[]),ee=(0,r.useCallback)((e,t)=>{let{layout:n,panelDataArray:r}=G.current,{collapsedSize:l=0,collapsible:a}=t,{collapsedSize:i=0,collapsible:o,maxSize:u=100,minSize:s=0}=e.constraints,{panelSize:c}=eb(r,e,n);null!=c&&(a&&o&&X(c,l)?X(l,i)||Q(e,i):c<s?Q(e,s):c>u&&Q(e,u))},[Q]),eu=(0,r.useCallback)((e,t)=>{let{direction:n}=F.current,{layout:r}=G.current;if(!E.current)return;let l=er(e,E.current);q(l,`Drag handle element not found for id "${e}"`);let a=ea(n,t);S({dragHandleId:e,dragHandleRect:l.getBoundingClientRect(),initialCursorPosition:a,initialLayout:r})},[]),es=(0,r.useCallback)(()=>{S(null)},[]),ev=(0,r.useCallback)(e=>{let{panelDataArray:t}=G.current,n=ey(t,e);n>=0&&(t.splice(n,1),delete M.current[e.id],G.current.panelDataArrayChanged=!0,P())},[P]),ex=(0,r.useMemo)(()=>({collapsePanel:H,direction:o,dragState:C,expandPanel:O,getPanelSize:B,getPanelStyle:j,groupId:b,isPanelCollapsed:W,isPanelExpanded:U,reevaluatePanelConstraints:ee,registerPanel:J,registerResizeHandle:K,resizePanel:Q,startDragging:eu,stopDragging:es,unregisterPanel:ev,panelGroupElement:E.current}),[H,C,o,O,B,j,b,W,U,ee,J,K,Q,eu,es,ev]);return(0,r.createElement)(l.Provider,{value:ex},(0,r.createElement)(v,{...y,children:t,className:n,id:d,ref:E,style:{display:"flex",flexDirection:"horizontal"===o?"row":"column",height:"100%",overflow:"hidden",
1width:"100%",...g},"data-panel-group":"",[a]:o,[i]:b}))}let ev=(0,r.forwardRef)((e,t)=>(0,r.createElement)(eg,{...e,forwardedRef:t}));function ey(e,t){return e.findIndex(e=>e===t||e.id===t.id)}function eb(e,t,n){let r=ey(e,t),l=r===e.length-1,a=n[r];return{...t.constraints,panelSize:a,pivotIndices:l?[r-1,r]:[r,r+1]}}function ex({children:e=null,className:t="",disabled:n=!1,hitAreaMargins:c,id:d,onBlur:f,onClick:h,onDragging:m,onFocus:g,onPointerDown:v,onPointerUp:y,style:b={},tabIndex:x=0,tagName:w="div",...z}){var E,C;let S=(0,r.useRef)(null),k=(0,r.useRef)({onClick:h,onDragging:m,onPointerDown:v,onPointerUp:y});(0,r.useEffect)(()=>{k.current.onClick=h,k.current.onDragging=m,k.current.onPointerDown=v,k.current.onPointerUp=y});let I=(0,r.useContext)(l);if(null===I)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");let{direction:P,groupId:A,registerResizeHandle:$,startDragging:R,stopDragging:N,panelGroupElement:M}=I,D=p(d),[H,O]=(0,r.useState)("inactive"),[B,j]=(0,r.useState)(!1),[W,K]=(0,r.useState)(null),V=(0,r.useRef)({state:H});s(()=>{V.current.state=H}),(0,r.useEffect)(()=>{if(n)K(null);else{let e=$(D);K(()=>e)}},[n,D,$]);let X=null!=(E=null==c?void 0:c.coarse)?E:15,Y=null!=(C=null==c?void 0:c.fine)?C:5;return(0,r.useEffect)(()=>{if(n||null==W)return;let e=S.current;q(e,"Element ref not attached");let t=!1;return function(e,t,n,r,l){var a;let{ownerDocument:i}=t,o={direction:n,element:t,hitAreaMargins:r,setResizeHandlerState:l},u=null!=(a=F.get(i))?a:0;return F.set(i,u+1),G.add(o),J(),function(){var t;T.delete(e),G.delete(o);let n=null!=(t=F.get(i))?t:1;if(F.set(i,n-1),J(),1===n&&F.delete(i),L.includes(o)){let e=L.indexOf(o);e>=0&&L.splice(e,1),U(),l("up",!0,null)}}}(D,e,P,{coarse:X,fine:Y},(e,n,r)=>{if(!n)return void O("inactive");switch(e){case"down":{O("drag"),t=!1,q(r,'Expected event to be defined for "down" action'),R(D,r);let{onDragging:e,onPointerDown:n}=k.current;null==e||e(!0),null==n||n();break}case"move":{let{state:e}=V.current;t=!0,"drag"!==e&&O("hover"),q(r,'Expected event to be defined for "move" action'),W(r);break}case"up":{O("hover"),N();let{onClick:e,onDragging:n,onPointerUp:r}=k.current;null==n||n(!1),null==r||r(),t||null==e||e()}}})},[X,P,n,Y,$,D,W,R,N]),!function({disabled:e,handleId:t,resizeHandler:n,panelGroupElement:l}){(0,r.useEffect)(()=>{if(e||null==n||null==l)return;let r=er(t,l);if(null==r)return;let a=e=>{if(!e.defaultPrevented)switch(e.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":e.preventDefault(),n(e);break;case"F6":{e.preventDefault();let n=r.getAttribute(i);q(n,`No group element found for id "${n}"`);let a=_(n,l),o=ee(n,t,l);q(null!==o,`No resize element found for id "${t}"`);let u=e.shiftKey?o>0?o-1:a.length-1:o+1<a.length?o+1:0;a[u].focus()}}};return r.addEventListener("keydown",a),()=>{r.removeEventListener("keydown",a)}},[l,e,t,n])}({disabled:n,handleId:D,resizeHandler:W,panelGroupElement:M}),(0,r.createElement)(w,{...z,children:e,className:t,id:d,onBlur:()=>{j(!1),null==f||f()},onFocus:()=>{j(!0),null==g||g()},ref:S,role:"separator",style:{touchAction:"none",userSelect:"none",...b},tabIndex:x,[a]:P,[i]:A,[o]:"","data-resize-handle-active":"drag"===H?"pointer":B?"keyboard":void 0,"data-panel-resize-handle-enabled":!n,[u]:D,"data-resize-handle-state":H})}eg.displayName="PanelGroup",ev.displayName="forwardRef(PanelGroup)",ex.displayName="PanelResizeHandle",e.s(["Panel",0,m,"PanelGroup",0,ev,"PanelResizeHandle",0,ex])}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.