@elizaos/client 1.6.0-beta.1 → 1.6.1-alpha.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.
- package/dist/assets/{main-eWX6ruOp.js → main-BNtEiK3o.js} +65 -65
- package/dist/assets/main-BNtEiK3o.js.map +1 -0
- package/dist/assets/{main-CkbfKgca.css → main-BOBWcKWW.css} +119 -1
- package/dist/assets/{main-BXR0yfv8.js → main-C4q5_rtN.js} +3 -3
- package/dist/assets/{main-BXR0yfv8.js.map → main-C4q5_rtN.js.map} +1 -1
- package/dist/assets/{react-vendor-D5Td5IIA.js → react-vendor-pe76PXQl.js} +2 -2
- package/dist/assets/{react-vendor-D5Td5IIA.js.map → react-vendor-pe76PXQl.js.map} +1 -1
- package/dist/index.html +1 -1
- package/package.json +6 -4
- package/src/components/agent-runs/AgentRunTimeline.tsx +700 -0
- package/src/components/agent-sidebar.tsx +18 -2
- package/src/hooks/use-query-hooks.ts +58 -0
- package/src/index.css +24 -0
- package/src/routes/agent-detail.tsx +3 -3
- package/dist/assets/main-eWX6ruOp.js.map +0 -1
|
@@ -542,5 +542,5 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
|
|
|
542
542
|
`});++o<e.length;)o&&r.push({type:"text",value:`
|
|
543
543
|
`}),r.push(e[o]);return t&&e.length>0&&r.push({type:"text",value:`
|
|
544
544
|
`}),r}a(P9,"wrap$1");function zS(e){let t=0,r=e.charCodeAt(t);for(;r===9||r===32;)t++,r=e.charCodeAt(t);return e.slice(t)}a(zS,"trimMarkdownSpaceStart");function IS(e,t){const r=_9(e,t),o=r.one(e,void 0),l=b9(r),u=Array.isArray(o)?{type:"root",children:o}:o||{type:"root",children:[]};return l&&u.children.push({type:"text",value:`
|
|
545
|
-
`},l),u}a(IS,"toHast");function L9(e,t){return e&&"run"in e?async function(r,o){const l=IS(r,{file:o,...t});await e.run(l,o)}:function(r,o){return IS(r,{file:o,...e||t})}}a(L9,"remarkRehype");function jS(e){if(e)throw e}a(jS,"bail");var lh,US;function z9(){if(US)return lh;US=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=a(function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},"isArray"),u=a(function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},"isPlainObject"),c=a(function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},"setProperty"),d=a(function(h,m){if(m==="__proto__")if(e.call(h,m)){if(o)return o(h,m).value}else return;return h[m]},"getProperty");return lh=a(function p(){var h,m,y,b,x,E,w=arguments[0],R=1,C=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},R=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});R<C;++R)if(h=arguments[R],h!=null)for(m in h)y=d(w,m),b=d(h,m),w!==b&&(A&&b&&(u(b)||(x=l(b)))?(x?(x=!1,E=y&&l(y)?y:[]):E=y&&u(y)?y:{},c(w,{name:m,newValue:p(A,E,b)})):typeof b<"u"&&c(w,{name:m,newValue:b}));return w},"extend"),lh}a(z9,"requireExtend");var I9=z9();const sh=Vr(I9);function sm(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}a(sm,"isPlainObject");function j9(){const e=[],t={run:r,use:o};return t;function r(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(p,...h){const m=e[++u];let y=-1;if(p){c(p);return}for(;++y<l.length;)(h[y]===null||h[y]===void 0)&&(h[y]=l[y]);l=h,m?U9(m,d)(...h):c(null,...h)}a(d,"next")}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}a(j9,"trough");function U9(e,t){let r;return o;function o(...c){const d=e.length>c.length;let p;d&&c.push(l);try{p=e.apply(this,c)}catch(h){const m=h;if(d&&r)throw m;return l(m)}d||(p&&p.then&&typeof p.then=="function"?p.then(u,l):p instanceof Error?l(p):u(p))}function l(c,...d){r||(r=!0,t(c,...d))}function u(c){l(null,c)}}a(U9,"wrap");const ir={basename:B9,dirname:H9,extname:F9,join:q9,sep:"/"};function B9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rs(e);let r=0,o=-1,l=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else o<0&&(u=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else c<0&&(u=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=c));return r===o?o=c:o<0&&(o=e.length),e.slice(r,o)}a(B9,"basename");function H9(e){if(Rs(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}a(H9,"dirname");function F9(e){Rs(e);let t=e.length,r=-1,o=0,l=-1,u=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){o=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||r<0||u===0||u===1&&l===r-1&&l===o+1?"":e.slice(l,r)}a(F9,"extname");function q9(...e){let t=-1,r;for(;++t<e.length;)Rs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":V9(r)}a(q9,"join");function V9(e){Rs(e);const t=e.codePointAt(0)===47;let r=G9(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}a(V9,"normalize");function G9(e,t){let r="",o=0,l=-1,u=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",o=0):(r=r.slice(0,p),o=r.length-1-r.lastIndexOf("/")),l=c,u=0;continue}}else if(r.length>0){r="",o=0,l=c,u=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),o=c-l-1;l=c,u=0}else d===46&&u>-1?u++:u=-1}return r}a(G9,"normalizeString");function Rs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}a(Rs,"assertPath$1");const $9={cwd:Y9};function Y9(){return"/"}a(Y9,"cwd");function um(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}a(um,"isUrl");function K9(e){if(typeof e=="string")e=new URL(e);else if(!um(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Q9(e)}a(K9,"urlToPath");function Q9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}a(Q9,"getPathFromURLPosix");const uh=["history","path","basename","stem","extname","dirname"];class wR{static{a(this,"VFile")}constructor(t){let r;t?um(t)?r={path:t}:typeof t=="string"||X9(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":$9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<uh.length;){const u=uh[o];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let l;for(l in r)uh.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){fh(t,"basename"),ch(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){BS(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(ch(t,"extname"),BS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){um(t)&&(t=K9(t)),fh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){fh(t,"stem"),ch(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new qt(t,r,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ch(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}a(ch,"assertPart");function fh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}a(fh,"assertNonEmpty");function BS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}a(BS,"assertPath");function X9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(X9,"isUint8Array$1");const W9=a((function(e){const o=this.constructor.prototype,l=o[e],u=a(function(){return l.apply(u,arguments)},"apply");return Object.setPrototypeOf(u,o),u}),"CallableInstance"),Z9={}.hasOwnProperty;class Og extends W9{static{a(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j9()}copy(){const t=new Og;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(sh(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(hh("data",this.frozen),this.namespace[t]=r,this):Z9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Qu(t),o=this.parser||this.Parser;return dh("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),dh("process",this.parser||this.Parser),ph("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(u,c){const d=Qu(t),p=o.parse(d);o.run(p,d,function(m,y,b){if(m||!y||!b)return h(m);const x=y,E=o.stringify(x,b);t8(E)?b.value=E:b.result=E,h(m,b)});function h(m,y){m||!y?c(m):u?u(y):r(void 0,y)}a(h,"realDone")}a(l,"executor")}processSync(t){let r=!1,o;return this.freeze(),dh("processSync",this.parser||this.Parser),ph("processSync",this.compiler||this.Compiler),this.process(t,l),FS("processSync","process",r),o;function l(u,c){r=!0,jS(u),o=c}a(l,"realDone")}run(t,r,o){HS(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?u(void 0,o):new Promise(u);function u(c,d){const p=Qu(r);l.run(t,p,h);function h(m,y,b){const x=y||t;m?d(m):c?c(x):o(void 0,x,b)}a(h,"realDone")}a(u,"executor")}runSync(t,r){let o=!1,l;return this.run(t,r,u),FS("runSync","run",o),l;function u(c,d){jS(c),l=d,o=!0}a(u,"realDone")}stringify(t,r){this.freeze();const o=Qu(r),l=this.compiler||this.Compiler;return ph("stringify",l),HS(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(hh("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;p(m,y)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(l.settings=sh(!0,l.settings,h.settings))}function d(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];u(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,m){let y=-1,b=-1;for(;++y<o.length;)if(o[y][0]===h){b=y;break}if(b===-1)o.push([h,...m]);else if(m.length>0){let[x,...E]=m;const w=o[b][1];sm(w)&&sm(x)&&(x=sh(!0,w,x)),o[b]=[h,x,...E]}}}}const J9=new Og().freeze();function dh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}a(dh,"assertParser");function ph(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}a(ph,"assertCompiler");function hh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}a(hh,"assertUnfrozen");function HS(e){if(!sm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}a(HS,"assertNode");function FS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}a(FS,"assertDone");function Qu(e){return e8(e)?e:new wR(e)}a(Qu,"vfile");function e8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}a(e8,"looksLikeAVFile");function t8(e){return typeof e=="string"||n8(e)}a(t8,"looksLikeAValue");function n8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(n8,"isUint8Array");const r8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qS=[],VS={allowDangerousHtml:!0},i8=/^(https?|ircs?|mailto|xmpp)$/i,o8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function AB(e){const t=a8(e),r=l8(e);return s8(t.runSync(t.parse(r),r),e)}a(AB,"Markdown");function a8(e){const t=e.rehypePlugins||qS,r=e.remarkPlugins||qS,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...VS}:VS;return J9().use(Bj).use(r).use(L9,o).use(t)}a(a8,"createProcessor");function l8(e){const t=e.children||"",r=new wR;return typeof t=="string"&&(r.value=t),r}a(l8,"createFile");function s8(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,u=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||u8;for(const m of o8)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+r8+m.id,void 0);return xR(e,h),bI(e,{Fragment:D.Fragment,components:l,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let x;for(x in ih)if(Object.hasOwn(ih,x)&&Object.hasOwn(m.properties,x)){const E=m.properties[x],w=ih[x];(w===null||w.includes(m.tagName))&&(m.properties[x]=p(String(E||""),x,m))}}if(m.type==="element"){let x=r?!r.includes(m.tagName):u?u.includes(m.tagName):!1;if(!x&&o&&typeof y=="number"&&(x=!o(m,y,b)),x&&b&&typeof y=="number")return d&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}a(h,"transform")}a(s8,"post");function u8(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||i8.test(e.slice(0,t))?e:""}a(u8,"defaultUrlTransform");const lf=S.createContext(null);lf.displayName="PanelGroupContext";const gt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ag=10,Xi=S.useLayoutEffect,GS=fm.useId,c8=typeof GS=="function"?GS:()=>null;let f8=0;function Mg(e=null){const t=c8(),r=S.useRef(e||t||null);return r.current===null&&(r.current=""+f8++),e??r.current}a(Mg,"useUniqueId");function ER({children:e,className:t="",collapsedSize:r,collapsible:o,defaultSize:l,forwardedRef:u,id:c,maxSize:d,minSize:p,onCollapse:h,onExpand:m,onResize:y,order:b,style:x,tagName:E="div",...w}){const R=S.useContext(lf);if(R===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:A,getPanelSize:k,getPanelStyle:z,groupId:L,isPanelCollapsed:N,reevaluatePanelConstraints:j,registerPanel:$,resizePanel:W,unregisterPanel:J}=R,X=Mg(c),Z=S.useRef({callbacks:{onCollapse:h,onExpand:m,onResize:y},constraints:{collapsedSize:r,collapsible:o,defaultSize:l,maxSize:d,minSize:p},id:X,idIsFromProps:c!==void 0,order:b});S.useRef({didLogMissingDefaultSizeWarning:!1}),Xi(()=>{const{callbacks:q,constraints:ae}=Z.current,I={...ae};Z.current.id=X,Z.current.idIsFromProps=c!==void 0,Z.current.order=b,q.onCollapse=h,q.onExpand=m,q.onResize=y,ae.collapsedSize=r,ae.collapsible=o,ae.defaultSize=l,ae.maxSize=d,ae.minSize=p,(I.collapsedSize!==ae.collapsedSize||I.collapsible!==ae.collapsible||I.maxSize!==ae.maxSize||I.minSize!==ae.minSize)&&j(Z.current,I)}),Xi(()=>{const q=Z.current;return $(q),()=>{J(q)}},[b,X,$,J]),S.useImperativeHandle(u,()=>({collapse:a(()=>{C(Z.current)},"collapse"),expand:a(q=>{A(Z.current,q)},"expand"),getId(){return X},getSize(){return k(Z.current)},isCollapsed(){return N(Z.current)},isExpanded(){return!N(Z.current)},resize:a(q=>{W(Z.current,q)},"resize")}),[C,A,k,N,X,W]);const ce=z(Z.current,l);return S.createElement(E,{...w,children:e,className:t,id:X,style:{...ce,...x},[gt.groupId]:L,[gt.panel]:"",[gt.panelCollapsible]:o||void 0,[gt.panelId]:X,[gt.panelSize]:parseFloat(""+ce.flexGrow).toFixed(1)})}a(ER,"PanelWithForwardedRef");const d8=S.forwardRef((e,t)=>S.createElement(ER,{...e,forwardedRef:t}));ER.displayName="Panel";d8.displayName="forwardRef(Panel)";let cm=null,oc=-1,bi=null;function p8(e,t){if(t){const r=(t&AR)!==0,o=(t&MR)!==0,l=(t&_R)!==0,u=(t&kR)!==0;if(r)return l?"se-resize":u?"ne-resize":"e-resize";if(o)return l?"sw-resize":u?"nw-resize":"w-resize";if(l)return"s-resize";if(u)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}a(p8,"getCursorStyle");function h8(){bi!==null&&(document.head.removeChild(bi),cm=null,bi=null,oc=-1)}a(h8,"resetGlobalCursorStyle");function mh(e,t){var r,o;const l=p8(e,t);if(cm!==l){if(cm=l,bi===null&&(bi=document.createElement("style"),document.head.appendChild(bi)),oc>=0){var u;(u=bi.sheet)===null||u===void 0||u.removeRule(oc)}oc=(r=(o=bi.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${l} !important;}`))!==null&&r!==void 0?r:-1}}a(mh,"setGlobalCursorStyle");function CR(e){return e.type==="keydown"}a(CR,"isKeyDown");function TR(e){return e.type.startsWith("pointer")}a(TR,"isPointerEvent");function RR(e){return e.type.startsWith("mouse")}a(RR,"isMouseEvent");function sf(e){if(TR(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(RR(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}a(sf,"getResizeEventCoordinates");function m8(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}a(m8,"getInputType");function g8(e,t,r){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}a(g8,"intersects");function y8(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:KS(e),b:KS(t)};let o;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),o=e;Be(o,"Stacking order can only be calculated for elements with a common ancestor");const l={a:YS($S(r.a)),b:YS($S(r.b))};if(l.a===l.b){const u=o.childNodes,c={a:r.a.at(-1),b:r.b.at(-1)};let d=u.length;for(;d--;){const p=u[d];if(p===c.a)return 1;if(p===c.b)return-1}}return Math.sign(l.a-l.b)}a(y8,"compare");const v8=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function b8(e){var t;const r=getComputedStyle((t=OR(e))!==null&&t!==void 0?t:e).display;return r==="flex"||r==="inline-flex"}a(b8,"is_flex_item");function S8(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||b8(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||v8.test(t.willChange)||t.webkitOverflowScrolling==="touch")}a(S8,"creates_stacking_context");function $S(e){let t=e.length;for(;t--;){const r=e[t];if(Be(r,"Missing node"),S8(r))return r}return null}a($S,"find_stacking_context");function YS(e){return e&&Number(getComputedStyle(e).zIndex)||0}a(YS,"get_z_index");function KS(e){const t=[];for(;e;)t.push(e),e=OR(e);return t}a(KS,"get_ancestors");function OR(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}a(OR,"get_parent");const AR=1,MR=2,_R=4,kR=8,x8=m8()==="coarse";let Gn=[],pa=!1,Yi=new Map,uf=new Map;const as=new Set;function w8(e,t,r,o,l){var u;const{ownerDocument:c}=t,d={direction:r,element:t,hitAreaMargins:o,setResizeHandlerState:l},p=(u=Yi.get(c))!==null&&u!==void 0?u:0;return Yi.set(c,p+1),as.add(d),Tc(),a(function(){var m;uf.delete(e),as.delete(d);const y=(m=Yi.get(c))!==null&&m!==void 0?m:1;if(Yi.set(c,y-1),Tc(),y===1&&Yi.delete(c),Gn.includes(d)){const b=Gn.indexOf(d);b>=0&&Gn.splice(b,1),kg(),l("up",!0,null)}},"unregisterResizeHandle")}a(w8,"registerResizeHandle");function E8(e){const{target:t}=e,{x:r,y:o}=sf(e);pa=!0,_g({target:t,x:r,y:o}),Tc(),Gn.length>0&&(Rc("down",e),e.preventDefault(),DR(t)||e.stopImmediatePropagation())}a(E8,"handlePointerDown");function gh(e){const{x:t,y:r}=sf(e);if(pa&&e.buttons===0&&(pa=!1,Rc("up",e)),!pa){const{target:o}=e;_g({target:o,x:t,y:r})}Rc("move",e),kg(),Gn.length>0&&e.preventDefault()}a(gh,"handlePointerMove");function yh(e){const{target:t}=e,{x:r,y:o}=sf(e);uf.clear(),pa=!1,Gn.length>0&&(e.preventDefault(),DR(t)||e.stopImmediatePropagation()),Rc("up",e),_g({target:t,x:r,y:o}),kg(),Tc()}a(yh,"handlePointerUp");function DR(e){let t=e;for(;t;){if(t.hasAttribute(gt.resizeHandle))return!0;t=t.parentElement}return!1}a(DR,"isWithinResizeHandle");function _g({target:e,x:t,y:r}){Gn.splice(0);let o=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(o=e),as.forEach(l=>{const{element:u,hitAreaMargins:c}=l,d=u.getBoundingClientRect(),{bottom:p,left:h,right:m,top:y}=d,b=x8?c.coarse:c.fine;if(t>=h-b&&t<=m+b&&r>=y-b&&r<=p+b){if(o!==null&&document.contains(o)&&u!==o&&!u.contains(o)&&!o.contains(u)&&y8(o,u)>0){let E=o,w=!1;for(;E&&!E.contains(u);){if(g8(E.getBoundingClientRect(),d)){w=!0;break}E=E.parentElement}if(w)return}Gn.push(l)}})}a(_g,"recalculateIntersectingHandles");function vh(e,t){uf.set(e,t)}a(vh,"reportConstraintsViolation");function kg(){let e=!1,t=!1;Gn.forEach(o=>{const{direction:l}=o;l==="horizontal"?e=!0:t=!0});let r=0;uf.forEach(o=>{r|=o}),e&&t?mh("intersection",r):e?mh("horizontal",r):t?mh("vertical",r):h8()}a(kg,"updateCursor");let bh=new AbortController;function Tc(){bh.abort(),bh=new AbortController;const e={capture:!0,signal:bh.signal};as.size&&(pa?(Gn.length>0&&Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("contextmenu",yh,e),o.addEventListener("pointerleave",gh,e),o.addEventListener("pointermove",gh,e))}),window.addEventListener("pointerup",yh,e),window.addEventListener("pointercancel",yh,e)):Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("pointerdown",E8,e),o.addEventListener("pointermove",gh,e))}))}a(Tc,"updateListeners");function Rc(e,t){as.forEach(r=>{const{setResizeHandlerState:o}=r,l=Gn.includes(r);o(e,l,t)})}a(Rc,"updateResizeHandlerStates");function C8(){const[e,t]=S.useState(0);return S.useCallback(()=>t(r=>r+1),[])}a(C8,"useForceUpdate");function Be(e,t){if(!e)throw console.error(t),Error(t)}a(Be,"assert");function oo(e,t,r=Ag){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}a(oo,"fuzzyCompareNumbers");function jr(e,t,r=Ag){return oo(e,t,r)===0}a(jr,"fuzzyNumbersEqual$1");function yn(e,t,r){return oo(e,t,r)===0}a(yn,"fuzzyNumbersEqual");function T8(e,t,r){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const l=e[o],u=t[o];if(!yn(l,u,r))return!1}return!0}a(T8,"fuzzyLayoutsEqual");function la({panelConstraints:e,panelIndex:t,size:r}){const o=e[t];Be(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:l=0,collapsible:u,maxSize:c=100,minSize:d=0}=o;if(oo(r,d)<0)if(u){const p=(l+d)/2;oo(r,p)<0?r=l:r=d}else r=d;return r=Math.min(c,r),r=parseFloat(r.toFixed(Ag)),r}a(la,"resizePanel");function ql({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:o,prevLayout:l,trigger:u}){if(yn(e,0))return t;const c=[...t],[d,p]=o;Be(d!=null,"Invalid first pivot index"),Be(p!=null,"Invalid second pivot index");let h=0;if(u==="keyboard"){{const y=e<0?p:d,b=r[y];Be(b,`Panel constraints not found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,x)){const C=w-R;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}{const y=e<0?d:p,b=r[y];Be(b,`No panel constraints found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,w)){const C=R-x;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const y=e<0?1:-1;let b=e<0?p:d,x=0;for(;;){const w=t[b];Be(w!=null,`Previous layout not found for panel index ${b}`);const C=la({panelConstraints:r,panelIndex:b,size:100})-w;if(x+=C,b+=y,b<0||b>=r.length)break}const E=Math.min(Math.abs(e),Math.abs(x));e=e<0?0-E:E}{let b=e<0?d:p;for(;b>=0&&b<r.length;){const x=Math.abs(e)-Math.abs(h),E=t[b];Be(E!=null,`Previous layout not found for panel index ${b}`);const w=E-x,R=la({panelConstraints:r,panelIndex:b,size:w});if(!yn(E,R)&&(h+=E-R,c[b]=R,h.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?b--:b++}}if(T8(l,c))return l;{const y=e<0?p:d,b=t[y];Be(b!=null,`Previous layout not found for panel index ${y}`);const x=b+h,E=la({panelConstraints:r,panelIndex:y,size:x});if(c[y]=E,!yn(E,x)){let w=x-E,C=e<0?p:d;for(;C>=0&&C<r.length;){const A=c[C];Be(A!=null,`Previous layout not found for panel index ${C}`);const k=A+w,z=la({panelConstraints:r,panelIndex:C,size:k});if(yn(A,z)||(w-=z-A,c[C]=z),yn(w,0))break;e>0?C--:C++}}}const m=c.reduce((y,b)=>b+y,0);return yn(m,100)?c:l}a(ql,"adjustLayoutByDelta");function R8({layout:e,panelsArray:t,pivotIndices:r}){let o=0,l=100,u=0,c=0;const d=r[0];Be(d!=null,"No pivot index found"),t.forEach((y,b)=>{const{constraints:x}=y,{maxSize:E=100,minSize:w=0}=x;b===d?(o=w,l=E):(u+=w,c+=E)});const p=Math.min(l,100-u),h=Math.max(o,100-c),m=e[d];return{valueMax:p,valueMin:h,valueNow:m}}a(R8,"calculateAriaValues");function ls(e,t=document){return Array.from(t.querySelectorAll(`[${gt.resizeHandleId}][data-panel-group-id="${e}"]`))}a(ls,"getResizeHandleElementsForGroup");function NR(e,t,r=document){const l=ls(e,r).findIndex(u=>u.getAttribute(gt.resizeHandleId)===t);return l??null}a(NR,"getResizeHandleElementIndex");function PR(e,t,r){const o=NR(e,t,r);return o!=null?[o,o+1]:[-1,-1]}a(PR,"determinePivotIndices");function LR(e,t=document){var r;if(t instanceof HTMLElement&&(t==null||(r=t.dataset)===null||r===void 0?void 0:r.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}a(LR,"getPanelGroupElement");function cf(e,t=document){const r=t.querySelector(`[${gt.resizeHandleId}="${e}"]`);return r||null}a(cf,"getResizeHandleElement");function O8(e,t,r,o=document){var l,u,c,d;const p=cf(t,o),h=ls(e,o),m=p?h.indexOf(p):-1,y=(l=(u=r[m])===null||u===void 0?void 0:u.id)!==null&&l!==void 0?l:null,b=(c=(d=r[m+1])===null||d===void 0?void 0:d.id)!==null&&c!==void 0?c:null;return[y,b]}a(O8,"getResizeHandlePanelIds");function A8({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:o,panelDataArray:l,panelGroupElement:u,setLayout:c}){S.useRef({didWarnAboutMissingResizeHandle:!1}),Xi(()=>{if(!u)return;const d=ls(r,u);for(let p=0;p<l.length-1;p++){const{valueMax:h,valueMin:m,valueNow:y}=R8({layout:o,panelsArray:l,pivotIndices:[p,p+1]}),b=d[p];if(b!=null){const x=l[p];Be(x,`No panel data found for index "${p}"`),b.setAttribute("aria-controls",x.id),b.setAttribute("aria-valuemax",""+Math.round(h)),b.setAttribute("aria-valuemin",""+Math.round(m)),b.setAttribute("aria-valuenow",y!=null?""+Math.round(y):"")}}return()=>{d.forEach((p,h)=>{p.removeAttribute("aria-controls"),p.removeAttribute("aria-valuemax"),p.removeAttribute("aria-valuemin"),p.removeAttribute("aria-valuenow")})}},[r,o,l,u]),S.useEffect(()=>{if(!u)return;const d=t.current;Be(d,"Eager values not found");const{panelDataArray:p}=d,h=LR(r,u);Be(h!=null,`No group found for id "${r}"`);const m=ls(r,u);Be(m,`No resize handles found for group id "${r}"`);const y=m.map(b=>{const x=b.getAttribute(gt.resizeHandleId);Be(x,"Resize handle element has no handle id attribute");const[E,w]=O8(r,x,p,u);if(E==null||w==null)return()=>{};const R=a(C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const A=p.findIndex(k=>k.id===E);if(A>=0){const k=p[A];Be(k,`No panel data found for index ${A}`);const z=o[A],{collapsedSize:L=0,collapsible:N,minSize:j=0}=k.constraints;if(z!=null&&N){const $=ql({delta:yn(z,L)?j-L:L-z,initialLayout:o,panelConstraints:p.map(W=>W.constraints),pivotIndices:PR(r,x,u),prevLayout:o,trigger:"keyboard"});o!==$&&c($)}}break}}},"onKeyDown");return b.addEventListener("keydown",R),()=>{b.removeEventListener("keydown",R)}});return()=>{y.forEach(b=>b())}},[u,e,t,r,o,l,c])}a(A8,"useWindowSplitterPanelGroupBehavior");function QS(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}a(QS,"areEqual");function zR(e,t){const r=e==="horizontal",{x:o,y:l}=sf(t);return r?o:l}a(zR,"getResizeEventCursorPosition");function M8(e,t,r,o,l){const u=r==="horizontal",c=cf(t,l);Be(c,`No resize handle element found for id "${t}"`);const d=c.getAttribute(gt.groupId);Be(d,"Resize handle element has no group id attribute");let{initialCursorPosition:p}=o;const h=zR(r,e),m=LR(d,l);Be(m,`No group element found for id "${d}"`);const y=m.getBoundingClientRect(),b=u?y.width:y.height;return(h-p)/b*100}a(M8,"calculateDragOffsetPercentage");function _8(e,t,r,o,l,u){if(CR(e)){const c=r==="horizontal";let d=0;e.shiftKey?d=100:l!=null?d=l:d=10;let p=0;switch(e.key){case"ArrowDown":p=c?0:d;break;case"ArrowLeft":p=c?-d:0;break;case"ArrowRight":p=c?d:0;break;case"ArrowUp":p=c?0:-d;break;case"End":p=100;break;case"Home":p=-100;break}return p}else return o==null?0:M8(e,t,r,o,u)}a(_8,"calculateDeltaPercentage");function k8({panelDataArray:e}){const t=Array(e.length),r=e.map(u=>u.constraints);let o=0,l=100;for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;d!=null&&(o++,t[u]=d,l-=d)}for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;if(d!=null)continue;const p=e.length-o,h=l/p;o++,t[u]=h,l-=h}return t}a(k8,"calculateUnsafeDefaultLayout");function oa(e,t,r){t.forEach((o,l)=>{const u=e[l];Be(u,`Panel data not found for index ${l}`);const{callbacks:c,constraints:d,id:p}=u,{collapsedSize:h=0,collapsible:m}=d,y=r[p];if(y==null||o!==y){r[p]=o;const{onCollapse:b,onExpand:x,onResize:E}=c;E&&E(o,y),m&&(b||x)&&(x&&(y==null||jr(y,h))&&!jr(o,h)&&x(),b&&(y==null||!jr(y,h))&&jr(o,h)&&b())}})}a(oa,"callPanelCallbacks");function Xu(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}a(Xu,"compareLayouts");function D8({defaultSize:e,dragState:t,layout:r,panelData:o,panelIndex:l,precision:u=3}){const c=r[l];let d;return c==null?d=e!=null?e.toPrecision(u):"1":o.length===1?d="1":d=c.toPrecision(u),{flexBasis:0,flexGrow:d,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}a(D8,"computePanelFlexBoxStyle");function N8(e,t=10){let r=null;return a((...l)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...l)},t)},"callable")}a(N8,"debounce");function XS(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}a(XS,"initializeDefaultStorage");function IR(e){return`react-resizable-panels:${e}`}a(IR,"getPanelGroupKey");function jR(e){return e.map(t=>{const{constraints:r,id:o,idIsFromProps:l,order:u}=t;return l?o:u?`${u}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}a(jR,"getPanelKey");function UR(e,t){try{const r=IR(e),o=t.getItem(r);if(o){const l=JSON.parse(o);if(typeof l=="object"&&l!=null)return l}}catch{}return null}a(UR,"loadSerializedPanelGroupState");function P8(e,t,r){var o,l;const u=(o=UR(e,r))!==null&&o!==void 0?o:{},c=jR(t);return(l=u[c])!==null&&l!==void 0?l:null}a(P8,"loadPanelGroupState");function L8(e,t,r,o,l){var u;const c=IR(e),d=jR(t),p=(u=UR(e,l))!==null&&u!==void 0?u:{};p[d]={expandToSizes:Object.fromEntries(r.entries()),layout:o};try{l.setItem(c,JSON.stringify(p))}catch(h){console.error(h)}}a(L8,"savePanelGroupState");function WS({layout:e,panelConstraints:t}){const r=[...e],o=r.reduce((u,c)=>u+c,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(u=>`${u}%`).join(", ")}`);if(!yn(o,100)&&r.length>0)for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=100/o*c;r[u]=d}let l=0;for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=la({panelConstraints:t,panelIndex:u,size:c});c!=d&&(l+=c-d,r[u]=d)}if(!yn(l,0))for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=c+l,p=la({panelConstraints:t,panelIndex:u,size:d});if(c!==p&&(l-=p-c,r[u]=p,yn(l,0)))break}return r}a(WS,"validatePanelGroupLayout");const z8=100,Vl={getItem:a(e=>(XS(Vl),Vl.getItem(e)),"getItem"),setItem:a((e,t)=>{XS(Vl),Vl.setItem(e,t)},"setItem")},ZS={};function BR({autoSaveId:e=null,children:t,className:r="",direction:o,forwardedRef:l,id:u=null,onLayout:c=null,keyboardResizeBy:d=null,storage:p=Vl,style:h,tagName:m="div",...y}){const b=Mg(u),x=S.useRef(null),[E,w]=S.useState(null),[R,C]=S.useState([]),A=C8(),k=S.useRef({}),z=S.useRef(new Map),L=S.useRef(0),N=S.useRef({autoSaveId:e,direction:o,dragState:E,id:b,keyboardResizeBy:d,onLayout:c,storage:p}),j=S.useRef({layout:R,panelDataArray:[],panelDataArrayChanged:!1});S.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),S.useImperativeHandle(l,()=>({getId:a(()=>N.current.id,"getId"),getLayout:a(()=>{const{layout:M}=j.current;return M},"getLayout"),setLayout:a(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current,K=WS({layout:M,panelConstraints:oe.map(fe=>fe.constraints)});QS(me,K)||(C(K),j.current.layout=K,ne&&ne(K),oa(oe,K,k.current))},"setLayout")}),[]),Xi(()=>{N.current.autoSaveId=e,N.current.direction=o,N.current.dragState=E,N.current.id=b,N.current.onLayout=c,N.current.storage=p}),A8({committedValuesRef:N,eagerValuesRef:j,groupId:b,layout:R,panelDataArray:j.current.panelDataArray,setLayout:C,panelGroupElement:x.current}),S.useEffect(()=>{const{panelDataArray:M}=j.current;if(e){if(R.length===0||R.length!==M.length)return;let ne=ZS[e];ne==null&&(ne=N8(L8,z8),ZS[e]=ne);const me=[...M],oe=new Map(z.current);ne(e,me,oe,R,p)}},[e,R,p]),S.useEffect(()=>{});const $=S.useCallback(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current;if(M.constraints.collapsible){const K=oe.map(Pe=>Pe.constraints),{collapsedSize:fe=0,panelSize:Ce,pivotIndices:Te}=$i(oe,M,me);if(Be(Ce!=null,`Panel size not found for panel "${M.id}"`),!jr(Ce,fe)){z.current.set(M.id,Ce);const qe=aa(oe,M)===oe.length-1?Ce-fe:fe-Ce,Ie=ql({delta:qe,initialLayout:me,panelConstraints:K,pivotIndices:Te,prevLayout:me,trigger:"imperative-api"});Xu(me,Ie)||(C(Ie),j.current.layout=Ie,ne&&ne(Ie),oa(oe,Ie,k.current))}}},[]),W=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current;if(M.constraints.collapsible){const fe=K.map(ut=>ut.constraints),{collapsedSize:Ce=0,panelSize:Te=0,minSize:Pe=0,pivotIndices:qe}=$i(K,M,oe),Ie=ne??Pe;if(jr(Te,Ce)){const ut=z.current.get(M.id),Kt=ut!=null&&ut>=Ie?ut:Ie,St=aa(K,M)===K.length-1?Te-Kt:Kt-Te,At=ql({delta:St,initialLayout:oe,panelConstraints:fe,pivotIndices:qe,prevLayout:oe,trigger:"imperative-api"});Xu(oe,At)||(C(At),j.current.layout=At,me&&me(At),oa(K,At,k.current))}}},[]),J=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{panelSize:oe}=$i(me,M,ne);return Be(oe!=null,`Panel size not found for panel "${M.id}"`),oe},[]),X=S.useCallback((M,ne)=>{const{panelDataArray:me}=j.current,oe=aa(me,M);return D8({defaultSize:ne,dragState:E,layout:R,panelData:me,panelIndex:oe})},[E,R]),Z=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),K===!0&&jr(fe,oe)},[]),ce=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),!K||oo(fe,oe)>0},[]),q=S.useCallback(M=>{const{panelDataArray:ne}=j.current;ne.push(M),ne.sort((me,oe)=>{const K=me.order,fe=oe.order;return K==null&&fe==null?0:K==null?-1:fe==null?1:K-fe}),j.current.panelDataArrayChanged=!0,A()},[A]);Xi(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;const{autoSaveId:M,onLayout:ne,storage:me}=N.current,{layout:oe,panelDataArray:K}=j.current;let fe=null;if(M){const Te=P8(M,K,me);Te&&(z.current=new Map(Object.entries(Te.expandToSizes)),fe=Te.layout)}fe==null&&(fe=k8({panelDataArray:K}));const Ce=WS({layout:fe,panelConstraints:K.map(Te=>Te.constraints)});QS(oe,Ce)||(C(Ce),j.current.layout=Ce,ne&&ne(Ce),oa(K,Ce,k.current))}}),Xi(()=>{const M=j.current;return()=>{M.layout=[]}},[]);const ae=S.useCallback(M=>{let ne=!1;const me=x.current;return me&&window.getComputedStyle(me,null).getPropertyValue("direction")==="rtl"&&(ne=!0),a(function(K){K.preventDefault();const fe=x.current;if(!fe)return()=>null;const{direction:Ce,dragState:Te,id:Pe,keyboardResizeBy:qe,onLayout:Ie}=N.current,{layout:ut,panelDataArray:Kt}=j.current,{initialLayout:an}=Te??{},St=PR(Pe,M,fe);let At=_8(K,M,Ce,Te,qe,fe);const $r=Ce==="horizontal";$r&&ne&&(At=-At);const Ai=Kt.map(po=>po.constraints),xn=ql({delta:At,initialLayout:an??ut,panelConstraints:Ai,pivotIndices:St,prevLayout:ut,trigger:CR(K)?"keyboard":"mouse-or-touch"}),fo=!Xu(ut,xn);(TR(K)||RR(K))&&L.current!=At&&(L.current=At,!fo&&At!==0?$r?vh(M,At<0?AR:MR):vh(M,At<0?_R:kR):vh(M,0)),fo&&(C(xn),j.current.layout=xn,Ie&&Ie(xn),oa(Kt,xn,k.current))},"resizeHandler")},[]),I=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current,fe=K.map(ut=>ut.constraints),{panelSize:Ce,pivotIndices:Te}=$i(K,M,oe);Be(Ce!=null,`Panel size not found for panel "${M.id}"`);const qe=aa(K,M)===K.length-1?Ce-ne:ne-Ce,Ie=ql({delta:qe,initialLayout:oe,panelConstraints:fe,pivotIndices:Te,prevLayout:oe,trigger:"imperative-api"});Xu(oe,Ie)||(C(Ie),j.current.layout=Ie,me&&me(Ie),oa(K,Ie,k.current))},[]),Q=S.useCallback((M,ne)=>{const{layout:me,panelDataArray:oe}=j.current,{collapsedSize:K=0,collapsible:fe}=ne,{collapsedSize:Ce=0,collapsible:Te,maxSize:Pe=100,minSize:qe=0}=M.constraints,{panelSize:Ie}=$i(oe,M,me);Ie!=null&&(fe&&Te&&jr(Ie,K)?jr(K,Ce)||I(M,Ce):Ie<qe?I(M,qe):Ie>Pe&&I(M,Pe))},[I]),te=S.useCallback((M,ne)=>{const{direction:me}=N.current,{layout:oe}=j.current;if(!x.current)return;const K=cf(M,x.current);Be(K,`Drag handle element not found for id "${M}"`);const fe=zR(me,ne);w({dragHandleId:M,dragHandleRect:K.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:oe})},[]),se=S.useCallback(()=>{w(null)},[]),O=S.useCallback(M=>{const{panelDataArray:ne}=j.current,me=aa(ne,M);me>=0&&(ne.splice(me,1),delete k.current[M.id],j.current.panelDataArrayChanged=!0,A())},[A]),Y=S.useMemo(()=>({collapsePanel:$,direction:o,dragState:E,expandPanel:W,getPanelSize:J,getPanelStyle:X,groupId:b,isPanelCollapsed:Z,isPanelExpanded:ce,reevaluatePanelConstraints:Q,registerPanel:q,registerResizeHandle:ae,resizePanel:I,startDragging:te,stopDragging:se,unregisterPanel:O,panelGroupElement:x.current}),[$,E,o,W,J,X,b,Z,ce,Q,q,ae,I,te,se,O]),de={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return S.createElement(lf.Provider,{value:Y},S.createElement(m,{...y,children:t,className:r,id:u,ref:x,style:{...de,...h},[gt.group]:"",[gt.groupDirection]:o,[gt.groupId]:b}))}a(BR,"PanelGroupWithForwardedRef");const I8=S.forwardRef((e,t)=>S.createElement(BR,{...e,forwardedRef:t}));BR.displayName="PanelGroup";I8.displayName="forwardRef(PanelGroup)";function aa(e,t){return e.findIndex(r=>r===t||r.id===t.id)}a(aa,"findPanelDataIndex");function $i(e,t,r){const o=aa(e,t),u=o===e.length-1?[o-1,o]:[o,o+1],c=r[o];return{...t.constraints,panelSize:c,pivotIndices:u}}a($i,"panelDataHelper");function j8({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:o}){S.useEffect(()=>{if(e||r==null||o==null)return;const l=cf(t,o);if(l==null)return;const u=a(c=>{if(!c.defaultPrevented)switch(c.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{c.preventDefault(),r(c);break}case"F6":{c.preventDefault();const d=l.getAttribute(gt.groupId);Be(d,`No group element found for id "${d}"`);const p=ls(d,o),h=NR(d,t,o);Be(h!==null,`No resize element found for id "${t}"`);const m=c.shiftKey?h>0?h-1:p.length-1:h+1<p.length?h+1:0;p[m].focus();break}}},"onKeyDown");return l.addEventListener("keydown",u),()=>{l.removeEventListener("keydown",u)}},[o,e,t,r])}a(j8,"useWindowSplitterResizeHandlerBehavior");function U8({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:o,id:l,onBlur:u,onClick:c,onDragging:d,onFocus:p,onPointerDown:h,onPointerUp:m,style:y={},tabIndex:b=0,tagName:x="div",...E}){var w,R;const C=S.useRef(null),A=S.useRef({onClick:c,onDragging:d,onPointerDown:h,onPointerUp:m});S.useEffect(()=>{A.current.onClick=c,A.current.onDragging=d,A.current.onPointerDown=h,A.current.onPointerUp=m});const k=S.useContext(lf);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:L,registerResizeHandle:N,startDragging:j,stopDragging:$,panelGroupElement:W}=k,J=Mg(l),[X,Z]=S.useState("inactive"),[ce,q]=S.useState(!1),[ae,I]=S.useState(null),Q=S.useRef({state:X});Xi(()=>{Q.current.state=X}),S.useEffect(()=>{if(r)I(null);else{const Y=N(J);I(()=>Y)}},[r,J,N]);const te=(w=o?.coarse)!==null&&w!==void 0?w:15,se=(R=o?.fine)!==null&&R!==void 0?R:5;S.useEffect(()=>{if(r||ae==null)return;const Y=C.current;Be(Y,"Element ref not attached");let de=!1;return w8(J,Y,z,{coarse:te,fine:se},a((ne,me,oe)=>{if(!me){Z("inactive");return}switch(ne){case"down":{Z("drag"),de=!1,Be(oe,'Expected event to be defined for "down" action'),j(J,oe);const{onDragging:K,onPointerDown:fe}=A.current;K?.(!0),fe?.();break}case"move":{const{state:K}=Q.current;de=!0,K!=="drag"&&Z("hover"),Be(oe,'Expected event to be defined for "move" action'),ae(oe);break}case"up":{Z("hover"),$();const{onClick:K,onDragging:fe,onPointerUp:Ce}=A.current;fe?.(!1),Ce?.(),de||K?.();break}}},"setResizeHandlerState"))},[te,z,r,se,N,J,ae,j,$]),j8({disabled:r,handleId:J,resizeHandler:ae,panelGroupElement:W});const O={touchAction:"none",userSelect:"none"};return S.createElement(x,{...E,children:e,className:t,id:l,onBlur:a(()=>{q(!1),u?.()},"onBlur"),onFocus:a(()=>{q(!0),p?.()},"onFocus"),ref:C,role:"separator",style:{...O,...y},tabIndex:b,[gt.groupDirection]:z,[gt.groupId]:L,[gt.resizeHandle]:"",[gt.resizeHandleActive]:X==="drag"?"pointer":ce?"keyboard":void 0,[gt.resizeHandleEnabled]:!r,[gt.resizeHandleId]:J,[gt.resizeHandleState]:X})}a(U8,"PanelResizeHandle");U8.displayName="PanelResizeHandle";var ff="Collapsible",[B8]=$t(ff),[H8,Dg]=B8(ff),HR=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:l,disabled:u,onOpenChange:c,...d}=e,[p,h]=hr({prop:o,defaultProp:l??!1,onChange:c,caller:ff});return D.jsx(H8,{scope:r,disabled:u,contentId:Ln(),open:p,onOpenToggle:S.useCallback(()=>h(m=>!m),[h]),children:D.jsx(Ee.div,{"data-state":Pg(p),"data-disabled":u?"":void 0,...d,ref:t})})});HR.displayName=ff;var FR="CollapsibleTrigger",F8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,l=Dg(FR,r);return D.jsx(Ee.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":Pg(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...o,ref:t,onClick:ye(e.onClick,l.onOpenToggle)})});F8.displayName=FR;var Ng="CollapsibleContent",q8=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=Dg(Ng,e.__scopeCollapsible);return D.jsx(It,{present:r||l.open,children:a(({present:u})=>D.jsx(V8,{...o,ref:t,present:u}),"children")})});q8.displayName=Ng;var V8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:l,...u}=e,c=Dg(Ng,r),[d,p]=S.useState(o),h=S.useRef(null),m=ze(t,h),y=S.useRef(0),b=y.current,x=S.useRef(0),E=x.current,w=c.open||d,R=S.useRef(w),C=S.useRef(void 0);return S.useEffect(()=>{const A=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(A)},[]),bt(()=>{const A=h.current;if(A){C.current=C.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const k=A.getBoundingClientRect();y.current=k.height,x.current=k.width,R.current||(A.style.transitionDuration=C.current.transitionDuration,A.style.animationName=C.current.animationName),p(o)}},[c.open,o]),D.jsx(Ee.div,{"data-state":Pg(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...u,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:w&&l})});function Pg(e){return e?"open":"closed"}a(Pg,"getState$1");var MB=HR,df="Switch",[G8]=$t(df),[$8,Y8]=G8(df),qR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:o,checked:l,defaultChecked:u,required:c,disabled:d,value:p="on",onCheckedChange:h,form:m,...y}=e,[b,x]=S.useState(null),E=ze(t,k=>x(k)),w=S.useRef(!1),R=b?m||!!b.closest("form"):!0,[C,A]=hr({prop:l,defaultProp:u??!1,onChange:h,caller:df});return D.jsxs($8,{scope:r,checked:C,disabled:d,children:[D.jsx(Ee.button,{type:"button",role:"switch","aria-checked":C,"aria-required":c,"data-state":YR(C),"data-disabled":d?"":void 0,disabled:d,value:p,...y,ref:E,onClick:ye(e.onClick,k=>{A(z=>!z),R&&(w.current=k.isPropagationStopped(),w.current||k.stopPropagation())})}),R&&D.jsx($R,{control:b,bubbles:!w.current,name:o,value:p,checked:C,required:c,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});qR.displayName=df;var VR="SwitchThumb",GR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...o}=e,l=Y8(VR,r);return D.jsx(Ee.span,{"data-state":YR(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t})});GR.displayName=VR;var K8="SwitchBubbleInput",$R=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...l},u)=>{const c=S.useRef(null),d=ze(c,u),p=cE(r),h=$x(t);return S.useEffect(()=>{const m=c.current;if(!m)return;const y=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&x){const E=new Event("click",{bubbles:o});x.call(m,r),m.dispatchEvent(E)}},[p,r,o]),D.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$R.displayName=K8;function YR(e){return e?"checked":"unchecked"}a(YR,"getState");var _B=qR,kB=GR;export{sB as $,XU as A,VU as B,X_ as C,Z_ as D,KU as E,p7 as F,qU as G,QU as H,UU as I,TU as J,ZU as K,NU as L,JU as M,eB as N,Q_ as O,K_ as P,tB as Q,e7 as R,J8 as S,Y_ as T,rB as U,jU as V,iB as W,hU as X,nB as Y,oB as Z,aB as _,$_ as a,RB as a$,fB as a0,dB as a1,cB as a2,uB as a3,lB as a4,h7 as a5,W8 as a6,f7 as a7,d7 as a8,R7 as a9,gB as aA,yB as aB,vB as aC,CU as aD,RU as aE,Ci as aF,a7 as aG,lU as aH,x7 as aI,W7 as aJ,EP as aK,M7 as aL,iU as aM,C7 as aN,J7 as aO,N7 as aP,nU as aQ,v7 as aR,H7 as aS,bB as aT,$e as aU,Ze as aV,TB as aW,SB as aX,wB as aY,EB as aZ,CB as a_,n7 as aa,o7 as ab,B7 as ac,g7 as ad,uU as ae,eU as af,tU as ag,j7 as ah,fU as ai,U7 as aj,pB as ak,hB as al,mB as am,L3 as an,H3 as ao,D7 as ap,P7 as aq,_7 as ar,k7 as as,K7 as at,sU as au,b7 as av,E7 as aw,Iw as ax,jm as ay,m7 as az,Dx as b,EU as b$,xB as b0,Z7 as b1,X7 as b2,pU as b3,T7 as b4,aU as b5,s7 as b6,O7 as b7,bR as b8,O9 as b9,q8 as bA,y7 as bB,mU as bC,l7 as bD,I7 as bE,t7 as bF,cU as bG,Q7 as bH,dU as bI,w7 as bJ,S7 as bK,_e as bL,q7 as bM,rU as bN,Y7 as bO,r7 as bP,G7 as bQ,A7 as bR,$7 as bS,oU as bT,OU as bU,_B as bV,kB as bW,Vw as bX,z7 as bY,i7 as bZ,_U as b_,OB as ba,GI as bb,VI as bc,da as bd,xS as be,xR as bf,zI as bg,LS as bh,bn as bi,sr as bj,rn as bk,im as bl,rf as bm,st as bn,gr as bo,xg as bp,Ne as bq,We as br,jI as bs,AB as bt,d8 as bu,I8 as bv,U8 as bw,L7 as bx,MB as by,F8 as bz,W_ as c,wU as c0,MU as c1,F7 as c2,AU as c3,ZN as c4,Z8 as c5,gU as d,yU as e,vU as f,Vr as g,bU as h,SU as i,D as j,V7 as k,kU as l,DU as m,PU as n,LU as o,zU as p,IU as q,S as r,c7 as s,BU as t,HU as u,FU as v,GU as w,YU as x,u7 as y,$U as z};
|
|
546
|
-
//# sourceMappingURL=react-vendor-
|
|
545
|
+
`},l),u}a(IS,"toHast");function L9(e,t){return e&&"run"in e?async function(r,o){const l=IS(r,{file:o,...t});await e.run(l,o)}:function(r,o){return IS(r,{file:o,...e||t})}}a(L9,"remarkRehype");function jS(e){if(e)throw e}a(jS,"bail");var lh,US;function z9(){if(US)return lh;US=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=a(function(h){return typeof Array.isArray=="function"?Array.isArray(h):t.call(h)==="[object Array]"},"isArray"),u=a(function(h){if(!h||t.call(h)!=="[object Object]")return!1;var m=e.call(h,"constructor"),y=h.constructor&&h.constructor.prototype&&e.call(h.constructor.prototype,"isPrototypeOf");if(h.constructor&&!m&&!y)return!1;var b;for(b in h);return typeof b>"u"||e.call(h,b)},"isPlainObject"),c=a(function(h,m){r&&m.name==="__proto__"?r(h,m.name,{enumerable:!0,configurable:!0,value:m.newValue,writable:!0}):h[m.name]=m.newValue},"setProperty"),d=a(function(h,m){if(m==="__proto__")if(e.call(h,m)){if(o)return o(h,m).value}else return;return h[m]},"getProperty");return lh=a(function p(){var h,m,y,b,x,E,w=arguments[0],R=1,C=arguments.length,A=!1;for(typeof w=="boolean"&&(A=w,w=arguments[1]||{},R=2),(w==null||typeof w!="object"&&typeof w!="function")&&(w={});R<C;++R)if(h=arguments[R],h!=null)for(m in h)y=d(w,m),b=d(h,m),w!==b&&(A&&b&&(u(b)||(x=l(b)))?(x?(x=!1,E=y&&l(y)?y:[]):E=y&&u(y)?y:{},c(w,{name:m,newValue:p(A,E,b)})):typeof b<"u"&&c(w,{name:m,newValue:b}));return w},"extend"),lh}a(z9,"requireExtend");var I9=z9();const sh=Vr(I9);function sm(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}a(sm,"isPlainObject");function j9(){const e=[],t={run:r,use:o};return t;function r(...l){let u=-1;const c=l.pop();if(typeof c!="function")throw new TypeError("Expected function as last argument, not "+c);d(null,...l);function d(p,...h){const m=e[++u];let y=-1;if(p){c(p);return}for(;++y<l.length;)(h[y]===null||h[y]===void 0)&&(h[y]=l[y]);l=h,m?U9(m,d)(...h):c(null,...h)}a(d,"next")}function o(l){if(typeof l!="function")throw new TypeError("Expected `middelware` to be a function, not "+l);return e.push(l),t}}a(j9,"trough");function U9(e,t){let r;return o;function o(...c){const d=e.length>c.length;let p;d&&c.push(l);try{p=e.apply(this,c)}catch(h){const m=h;if(d&&r)throw m;return l(m)}d||(p&&p.then&&typeof p.then=="function"?p.then(u,l):p instanceof Error?l(p):u(p))}function l(c,...d){r||(r=!0,t(c,...d))}function u(c){l(null,c)}}a(U9,"wrap");const ir={basename:B9,dirname:H9,extname:F9,join:q9,sep:"/"};function B9(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');Rs(e);let r=0,o=-1,l=e.length,u;if(t===void 0||t.length===0||t.length>e.length){for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else o<0&&(u=!0,o=l+1);return o<0?"":e.slice(r,o)}if(t===e)return"";let c=-1,d=t.length-1;for(;l--;)if(e.codePointAt(l)===47){if(u){r=l+1;break}}else c<0&&(u=!0,c=l+1),d>-1&&(e.codePointAt(l)===t.codePointAt(d--)?d<0&&(o=l):(d=-1,o=c));return r===o?o=c:o<0&&(o=e.length),e.slice(r,o)}a(B9,"basename");function H9(e){if(Rs(e),e.length===0)return".";let t=-1,r=e.length,o;for(;--r;)if(e.codePointAt(r)===47){if(o){t=r;break}}else o||(o=!0);return t<0?e.codePointAt(0)===47?"/":".":t===1&&e.codePointAt(0)===47?"//":e.slice(0,t)}a(H9,"dirname");function F9(e){Rs(e);let t=e.length,r=-1,o=0,l=-1,u=0,c;for(;t--;){const d=e.codePointAt(t);if(d===47){if(c){o=t+1;break}continue}r<0&&(c=!0,r=t+1),d===46?l<0?l=t:u!==1&&(u=1):l>-1&&(u=-1)}return l<0||r<0||u===0||u===1&&l===r-1&&l===o+1?"":e.slice(l,r)}a(F9,"extname");function q9(...e){let t=-1,r;for(;++t<e.length;)Rs(e[t]),e[t]&&(r=r===void 0?e[t]:r+"/"+e[t]);return r===void 0?".":V9(r)}a(q9,"join");function V9(e){Rs(e);const t=e.codePointAt(0)===47;let r=G9(e,!t);return r.length===0&&!t&&(r="."),r.length>0&&e.codePointAt(e.length-1)===47&&(r+="/"),t?"/"+r:r}a(V9,"normalize");function G9(e,t){let r="",o=0,l=-1,u=0,c=-1,d,p;for(;++c<=e.length;){if(c<e.length)d=e.codePointAt(c);else{if(d===47)break;d=47}if(d===47){if(!(l===c-1||u===1))if(l!==c-1&&u===2){if(r.length<2||o!==2||r.codePointAt(r.length-1)!==46||r.codePointAt(r.length-2)!==46){if(r.length>2){if(p=r.lastIndexOf("/"),p!==r.length-1){p<0?(r="",o=0):(r=r.slice(0,p),o=r.length-1-r.lastIndexOf("/")),l=c,u=0;continue}}else if(r.length>0){r="",o=0,l=c,u=0;continue}}t&&(r=r.length>0?r+"/..":"..",o=2)}else r.length>0?r+="/"+e.slice(l+1,c):r=e.slice(l+1,c),o=c-l-1;l=c,u=0}else d===46&&u>-1?u++:u=-1}return r}a(G9,"normalizeString");function Rs(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}a(Rs,"assertPath$1");const $9={cwd:Y9};function Y9(){return"/"}a(Y9,"cwd");function um(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}a(um,"isUrl");function K9(e){if(typeof e=="string")e=new URL(e);else if(!um(e)){const t=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if(e.protocol!=="file:"){const t=new TypeError("The URL must be of scheme file");throw t.code="ERR_INVALID_URL_SCHEME",t}return Q9(e)}a(K9,"urlToPath");function Q9(e){if(e.hostname!==""){const o=new TypeError('File URL host must be "localhost" or empty on darwin');throw o.code="ERR_INVALID_FILE_URL_HOST",o}const t=e.pathname;let r=-1;for(;++r<t.length;)if(t.codePointAt(r)===37&&t.codePointAt(r+1)===50){const o=t.codePointAt(r+2);if(o===70||o===102){const l=new TypeError("File URL path must not include encoded / characters");throw l.code="ERR_INVALID_FILE_URL_PATH",l}}return decodeURIComponent(t)}a(Q9,"getPathFromURLPosix");const uh=["history","path","basename","stem","extname","dirname"];class wR{static{a(this,"VFile")}constructor(t){let r;t?um(t)?r={path:t}:typeof t=="string"||X9(t)?r={value:t}:r=t:r={},this.cwd="cwd"in r?"":$9.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let o=-1;for(;++o<uh.length;){const u=uh[o];u in r&&r[u]!==void 0&&r[u]!==null&&(this[u]=u==="history"?[...r[u]]:r[u])}let l;for(l in r)uh.includes(l)||(this[l]=r[l])}get basename(){return typeof this.path=="string"?ir.basename(this.path):void 0}set basename(t){fh(t,"basename"),ch(t,"basename"),this.path=ir.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?ir.dirname(this.path):void 0}set dirname(t){BS(this.basename,"dirname"),this.path=ir.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?ir.extname(this.path):void 0}set extname(t){if(ch(t,"extname"),BS(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=ir.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){um(t)&&(t=K9(t)),fh(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?ir.basename(this.path,this.extname):void 0}set stem(t){fh(t,"stem"),ch(t,"stem"),this.path=ir.join(this.dirname||"",t+(this.extname||""))}fail(t,r,o){const l=this.message(t,r,o);throw l.fatal=!0,l}info(t,r,o){const l=this.message(t,r,o);return l.fatal=void 0,l}message(t,r,o){const l=new qt(t,r,o);return this.path&&(l.name=this.path+":"+l.name,l.file=this.path),l.fatal=!1,this.messages.push(l),l}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function ch(e,t){if(e&&e.includes(ir.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+ir.sep+"`")}a(ch,"assertPart");function fh(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}a(fh,"assertNonEmpty");function BS(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}a(BS,"assertPath");function X9(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(X9,"isUint8Array$1");const W9=a((function(e){const o=this.constructor.prototype,l=o[e],u=a(function(){return l.apply(u,arguments)},"apply");return Object.setPrototypeOf(u,o),u}),"CallableInstance"),Z9={}.hasOwnProperty;class Og extends W9{static{a(this,"Processor")}constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=j9()}copy(){const t=new Og;let r=-1;for(;++r<this.attachers.length;){const o=this.attachers[r];t.use(...o)}return t.data(sh(!0,{},this.namespace)),t}data(t,r){return typeof t=="string"?arguments.length===2?(hh("data",this.frozen),this.namespace[t]=r,this):Z9.call(this.namespace,t)&&this.namespace[t]||void 0:t?(hh("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[r,...o]=this.attachers[this.freezeIndex];if(o[0]===!1)continue;o[0]===!0&&(o[0]=void 0);const l=r.call(t,...o);typeof l=="function"&&this.transformers.use(l)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const r=Qu(t),o=this.parser||this.Parser;return dh("parse",o),o(String(r),r)}process(t,r){const o=this;return this.freeze(),dh("process",this.parser||this.Parser),ph("process",this.compiler||this.Compiler),r?l(void 0,r):new Promise(l);function l(u,c){const d=Qu(t),p=o.parse(d);o.run(p,d,function(m,y,b){if(m||!y||!b)return h(m);const x=y,E=o.stringify(x,b);t8(E)?b.value=E:b.result=E,h(m,b)});function h(m,y){m||!y?c(m):u?u(y):r(void 0,y)}a(h,"realDone")}a(l,"executor")}processSync(t){let r=!1,o;return this.freeze(),dh("processSync",this.parser||this.Parser),ph("processSync",this.compiler||this.Compiler),this.process(t,l),FS("processSync","process",r),o;function l(u,c){r=!0,jS(u),o=c}a(l,"realDone")}run(t,r,o){HS(t),this.freeze();const l=this.transformers;return!o&&typeof r=="function"&&(o=r,r=void 0),o?u(void 0,o):new Promise(u);function u(c,d){const p=Qu(r);l.run(t,p,h);function h(m,y,b){const x=y||t;m?d(m):c?c(x):o(void 0,x,b)}a(h,"realDone")}a(u,"executor")}runSync(t,r){let o=!1,l;return this.run(t,r,u),FS("runSync","run",o),l;function u(c,d){jS(c),l=d,o=!0}a(u,"realDone")}stringify(t,r){this.freeze();const o=Qu(r),l=this.compiler||this.Compiler;return ph("stringify",l),HS(t),l(t,o)}use(t,...r){const o=this.attachers,l=this.namespace;if(hh("use",this.frozen),t!=null)if(typeof t=="function")p(t,r);else if(typeof t=="object")Array.isArray(t)?d(t):c(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function u(h){if(typeof h=="function")p(h,[]);else if(typeof h=="object")if(Array.isArray(h)){const[m,...y]=h;p(m,y)}else c(h);else throw new TypeError("Expected usable value, not `"+h+"`")}function c(h){if(!("plugins"in h)&&!("settings"in h))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");d(h.plugins),h.settings&&(l.settings=sh(!0,l.settings,h.settings))}function d(h){let m=-1;if(h!=null)if(Array.isArray(h))for(;++m<h.length;){const y=h[m];u(y)}else throw new TypeError("Expected a list of plugins, not `"+h+"`")}function p(h,m){let y=-1,b=-1;for(;++y<o.length;)if(o[y][0]===h){b=y;break}if(b===-1)o.push([h,...m]);else if(m.length>0){let[x,...E]=m;const w=o[b][1];sm(w)&&sm(x)&&(x=sh(!0,w,x)),o[b]=[h,x,...E]}}}}const J9=new Og().freeze();function dh(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}a(dh,"assertParser");function ph(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}a(ph,"assertCompiler");function hh(e,t){if(t)throw new Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}a(hh,"assertUnfrozen");function HS(e){if(!sm(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}a(HS,"assertNode");function FS(e,t,r){if(!r)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}a(FS,"assertDone");function Qu(e){return e8(e)?e:new wR(e)}a(Qu,"vfile");function e8(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}a(e8,"looksLikeAVFile");function t8(e){return typeof e=="string"||n8(e)}a(t8,"looksLikeAValue");function n8(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}a(n8,"isUint8Array");const r8="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",qS=[],VS={allowDangerousHtml:!0},i8=/^(https?|ircs?|mailto|xmpp)$/i,o8=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"className",id:"remove-classname"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function AB(e){const t=a8(e),r=l8(e);return s8(t.runSync(t.parse(r),r),e)}a(AB,"Markdown");function a8(e){const t=e.rehypePlugins||qS,r=e.remarkPlugins||qS,o=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...VS}:VS;return J9().use(Bj).use(r).use(L9,o).use(t)}a(a8,"createProcessor");function l8(e){const t=e.children||"",r=new wR;return typeof t=="string"&&(r.value=t),r}a(l8,"createFile");function s8(e,t){const r=t.allowedElements,o=t.allowElement,l=t.components,u=t.disallowedElements,c=t.skipHtml,d=t.unwrapDisallowed,p=t.urlTransform||u8;for(const m of o8)Object.hasOwn(t,m.from)&&(""+m.from+(m.to?"use `"+m.to+"` instead":"remove it")+r8+m.id,void 0);return xR(e,h),bI(e,{Fragment:D.Fragment,components:l,ignoreInvalidStyle:!0,jsx:D.jsx,jsxs:D.jsxs,passKeys:!0,passNode:!0});function h(m,y,b){if(m.type==="raw"&&b&&typeof y=="number")return c?b.children.splice(y,1):b.children[y]={type:"text",value:m.value},y;if(m.type==="element"){let x;for(x in ih)if(Object.hasOwn(ih,x)&&Object.hasOwn(m.properties,x)){const E=m.properties[x],w=ih[x];(w===null||w.includes(m.tagName))&&(m.properties[x]=p(String(E||""),x,m))}}if(m.type==="element"){let x=r?!r.includes(m.tagName):u?u.includes(m.tagName):!1;if(!x&&o&&typeof y=="number"&&(x=!o(m,y,b)),x&&b&&typeof y=="number")return d&&m.children?b.children.splice(y,1,...m.children):b.children.splice(y,1),y}}a(h,"transform")}a(s8,"post");function u8(e){const t=e.indexOf(":"),r=e.indexOf("?"),o=e.indexOf("#"),l=e.indexOf("/");return t===-1||l!==-1&&t>l||r!==-1&&t>r||o!==-1&&t>o||i8.test(e.slice(0,t))?e:""}a(u8,"defaultUrlTransform");const lf=S.createContext(null);lf.displayName="PanelGroupContext";const gt={group:"data-panel-group",groupDirection:"data-panel-group-direction",groupId:"data-panel-group-id",panel:"data-panel",panelCollapsible:"data-panel-collapsible",panelId:"data-panel-id",panelSize:"data-panel-size",resizeHandle:"data-resize-handle",resizeHandleActive:"data-resize-handle-active",resizeHandleEnabled:"data-panel-resize-handle-enabled",resizeHandleId:"data-panel-resize-handle-id",resizeHandleState:"data-resize-handle-state"},Ag=10,Xi=S.useLayoutEffect,GS=fm.useId,c8=typeof GS=="function"?GS:()=>null;let f8=0;function Mg(e=null){const t=c8(),r=S.useRef(e||t||null);return r.current===null&&(r.current=""+f8++),e??r.current}a(Mg,"useUniqueId");function ER({children:e,className:t="",collapsedSize:r,collapsible:o,defaultSize:l,forwardedRef:u,id:c,maxSize:d,minSize:p,onCollapse:h,onExpand:m,onResize:y,order:b,style:x,tagName:E="div",...w}){const R=S.useContext(lf);if(R===null)throw Error("Panel components must be rendered within a PanelGroup container");const{collapsePanel:C,expandPanel:A,getPanelSize:k,getPanelStyle:z,groupId:L,isPanelCollapsed:N,reevaluatePanelConstraints:j,registerPanel:$,resizePanel:W,unregisterPanel:J}=R,X=Mg(c),Z=S.useRef({callbacks:{onCollapse:h,onExpand:m,onResize:y},constraints:{collapsedSize:r,collapsible:o,defaultSize:l,maxSize:d,minSize:p},id:X,idIsFromProps:c!==void 0,order:b});S.useRef({didLogMissingDefaultSizeWarning:!1}),Xi(()=>{const{callbacks:q,constraints:ae}=Z.current,I={...ae};Z.current.id=X,Z.current.idIsFromProps=c!==void 0,Z.current.order=b,q.onCollapse=h,q.onExpand=m,q.onResize=y,ae.collapsedSize=r,ae.collapsible=o,ae.defaultSize=l,ae.maxSize=d,ae.minSize=p,(I.collapsedSize!==ae.collapsedSize||I.collapsible!==ae.collapsible||I.maxSize!==ae.maxSize||I.minSize!==ae.minSize)&&j(Z.current,I)}),Xi(()=>{const q=Z.current;return $(q),()=>{J(q)}},[b,X,$,J]),S.useImperativeHandle(u,()=>({collapse:a(()=>{C(Z.current)},"collapse"),expand:a(q=>{A(Z.current,q)},"expand"),getId(){return X},getSize(){return k(Z.current)},isCollapsed(){return N(Z.current)},isExpanded(){return!N(Z.current)},resize:a(q=>{W(Z.current,q)},"resize")}),[C,A,k,N,X,W]);const ce=z(Z.current,l);return S.createElement(E,{...w,children:e,className:t,id:X,style:{...ce,...x},[gt.groupId]:L,[gt.panel]:"",[gt.panelCollapsible]:o||void 0,[gt.panelId]:X,[gt.panelSize]:parseFloat(""+ce.flexGrow).toFixed(1)})}a(ER,"PanelWithForwardedRef");const d8=S.forwardRef((e,t)=>S.createElement(ER,{...e,forwardedRef:t}));ER.displayName="Panel";d8.displayName="forwardRef(Panel)";let cm=null,oc=-1,bi=null;function p8(e,t){if(t){const r=(t&AR)!==0,o=(t&MR)!==0,l=(t&_R)!==0,u=(t&kR)!==0;if(r)return l?"se-resize":u?"ne-resize":"e-resize";if(o)return l?"sw-resize":u?"nw-resize":"w-resize";if(l)return"s-resize";if(u)return"n-resize"}switch(e){case"horizontal":return"ew-resize";case"intersection":return"move";case"vertical":return"ns-resize"}}a(p8,"getCursorStyle");function h8(){bi!==null&&(document.head.removeChild(bi),cm=null,bi=null,oc=-1)}a(h8,"resetGlobalCursorStyle");function mh(e,t){var r,o;const l=p8(e,t);if(cm!==l){if(cm=l,bi===null&&(bi=document.createElement("style"),document.head.appendChild(bi)),oc>=0){var u;(u=bi.sheet)===null||u===void 0||u.removeRule(oc)}oc=(r=(o=bi.sheet)===null||o===void 0?void 0:o.insertRule(`*{cursor: ${l} !important;}`))!==null&&r!==void 0?r:-1}}a(mh,"setGlobalCursorStyle");function CR(e){return e.type==="keydown"}a(CR,"isKeyDown");function TR(e){return e.type.startsWith("pointer")}a(TR,"isPointerEvent");function RR(e){return e.type.startsWith("mouse")}a(RR,"isMouseEvent");function sf(e){if(TR(e)){if(e.isPrimary)return{x:e.clientX,y:e.clientY}}else if(RR(e))return{x:e.clientX,y:e.clientY};return{x:1/0,y:1/0}}a(sf,"getResizeEventCoordinates");function m8(){if(typeof matchMedia=="function")return matchMedia("(pointer:coarse)").matches?"coarse":"fine"}a(m8,"getInputType");function g8(e,t,r){return e.x<t.x+t.width&&e.x+e.width>t.x&&e.y<t.y+t.height&&e.y+e.height>t.y}a(g8,"intersects");function y8(e,t){if(e===t)throw new Error("Cannot compare node with itself");const r={a:KS(e),b:KS(t)};let o;for(;r.a.at(-1)===r.b.at(-1);)e=r.a.pop(),t=r.b.pop(),o=e;Be(o,"Stacking order can only be calculated for elements with a common ancestor");const l={a:YS($S(r.a)),b:YS($S(r.b))};if(l.a===l.b){const u=o.childNodes,c={a:r.a.at(-1),b:r.b.at(-1)};let d=u.length;for(;d--;){const p=u[d];if(p===c.a)return 1;if(p===c.b)return-1}}return Math.sign(l.a-l.b)}a(y8,"compare");const v8=/\b(?:position|zIndex|opacity|transform|webkitTransform|mixBlendMode|filter|webkitFilter|isolation)\b/;function b8(e){var t;const r=getComputedStyle((t=OR(e))!==null&&t!==void 0?t:e).display;return r==="flex"||r==="inline-flex"}a(b8,"is_flex_item");function S8(e){const t=getComputedStyle(e);return!!(t.position==="fixed"||t.zIndex!=="auto"&&(t.position!=="static"||b8(e))||+t.opacity<1||"transform"in t&&t.transform!=="none"||"webkitTransform"in t&&t.webkitTransform!=="none"||"mixBlendMode"in t&&t.mixBlendMode!=="normal"||"filter"in t&&t.filter!=="none"||"webkitFilter"in t&&t.webkitFilter!=="none"||"isolation"in t&&t.isolation==="isolate"||v8.test(t.willChange)||t.webkitOverflowScrolling==="touch")}a(S8,"creates_stacking_context");function $S(e){let t=e.length;for(;t--;){const r=e[t];if(Be(r,"Missing node"),S8(r))return r}return null}a($S,"find_stacking_context");function YS(e){return e&&Number(getComputedStyle(e).zIndex)||0}a(YS,"get_z_index");function KS(e){const t=[];for(;e;)t.push(e),e=OR(e);return t}a(KS,"get_ancestors");function OR(e){const{parentNode:t}=e;return t&&t instanceof ShadowRoot?t.host:t}a(OR,"get_parent");const AR=1,MR=2,_R=4,kR=8,x8=m8()==="coarse";let Gn=[],pa=!1,Yi=new Map,uf=new Map;const as=new Set;function w8(e,t,r,o,l){var u;const{ownerDocument:c}=t,d={direction:r,element:t,hitAreaMargins:o,setResizeHandlerState:l},p=(u=Yi.get(c))!==null&&u!==void 0?u:0;return Yi.set(c,p+1),as.add(d),Tc(),a(function(){var m;uf.delete(e),as.delete(d);const y=(m=Yi.get(c))!==null&&m!==void 0?m:1;if(Yi.set(c,y-1),Tc(),y===1&&Yi.delete(c),Gn.includes(d)){const b=Gn.indexOf(d);b>=0&&Gn.splice(b,1),kg(),l("up",!0,null)}},"unregisterResizeHandle")}a(w8,"registerResizeHandle");function E8(e){const{target:t}=e,{x:r,y:o}=sf(e);pa=!0,_g({target:t,x:r,y:o}),Tc(),Gn.length>0&&(Rc("down",e),e.preventDefault(),DR(t)||e.stopImmediatePropagation())}a(E8,"handlePointerDown");function gh(e){const{x:t,y:r}=sf(e);if(pa&&e.buttons===0&&(pa=!1,Rc("up",e)),!pa){const{target:o}=e;_g({target:o,x:t,y:r})}Rc("move",e),kg(),Gn.length>0&&e.preventDefault()}a(gh,"handlePointerMove");function yh(e){const{target:t}=e,{x:r,y:o}=sf(e);uf.clear(),pa=!1,Gn.length>0&&(e.preventDefault(),DR(t)||e.stopImmediatePropagation()),Rc("up",e),_g({target:t,x:r,y:o}),kg(),Tc()}a(yh,"handlePointerUp");function DR(e){let t=e;for(;t;){if(t.hasAttribute(gt.resizeHandle))return!0;t=t.parentElement}return!1}a(DR,"isWithinResizeHandle");function _g({target:e,x:t,y:r}){Gn.splice(0);let o=null;(e instanceof HTMLElement||e instanceof SVGElement)&&(o=e),as.forEach(l=>{const{element:u,hitAreaMargins:c}=l,d=u.getBoundingClientRect(),{bottom:p,left:h,right:m,top:y}=d,b=x8?c.coarse:c.fine;if(t>=h-b&&t<=m+b&&r>=y-b&&r<=p+b){if(o!==null&&document.contains(o)&&u!==o&&!u.contains(o)&&!o.contains(u)&&y8(o,u)>0){let E=o,w=!1;for(;E&&!E.contains(u);){if(g8(E.getBoundingClientRect(),d)){w=!0;break}E=E.parentElement}if(w)return}Gn.push(l)}})}a(_g,"recalculateIntersectingHandles");function vh(e,t){uf.set(e,t)}a(vh,"reportConstraintsViolation");function kg(){let e=!1,t=!1;Gn.forEach(o=>{const{direction:l}=o;l==="horizontal"?e=!0:t=!0});let r=0;uf.forEach(o=>{r|=o}),e&&t?mh("intersection",r):e?mh("horizontal",r):t?mh("vertical",r):h8()}a(kg,"updateCursor");let bh=new AbortController;function Tc(){bh.abort(),bh=new AbortController;const e={capture:!0,signal:bh.signal};as.size&&(pa?(Gn.length>0&&Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("contextmenu",yh,e),o.addEventListener("pointerleave",gh,e),o.addEventListener("pointermove",gh,e))}),window.addEventListener("pointerup",yh,e),window.addEventListener("pointercancel",yh,e)):Yi.forEach((t,r)=>{const{body:o}=r;t>0&&(o.addEventListener("pointerdown",E8,e),o.addEventListener("pointermove",gh,e))}))}a(Tc,"updateListeners");function Rc(e,t){as.forEach(r=>{const{setResizeHandlerState:o}=r,l=Gn.includes(r);o(e,l,t)})}a(Rc,"updateResizeHandlerStates");function C8(){const[e,t]=S.useState(0);return S.useCallback(()=>t(r=>r+1),[])}a(C8,"useForceUpdate");function Be(e,t){if(!e)throw console.error(t),Error(t)}a(Be,"assert");function oo(e,t,r=Ag){return e.toFixed(r)===t.toFixed(r)?0:e>t?1:-1}a(oo,"fuzzyCompareNumbers");function jr(e,t,r=Ag){return oo(e,t,r)===0}a(jr,"fuzzyNumbersEqual$1");function yn(e,t,r){return oo(e,t,r)===0}a(yn,"fuzzyNumbersEqual");function T8(e,t,r){if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++){const l=e[o],u=t[o];if(!yn(l,u,r))return!1}return!0}a(T8,"fuzzyLayoutsEqual");function la({panelConstraints:e,panelIndex:t,size:r}){const o=e[t];Be(o!=null,`Panel constraints not found for index ${t}`);let{collapsedSize:l=0,collapsible:u,maxSize:c=100,minSize:d=0}=o;if(oo(r,d)<0)if(u){const p=(l+d)/2;oo(r,p)<0?r=l:r=d}else r=d;return r=Math.min(c,r),r=parseFloat(r.toFixed(Ag)),r}a(la,"resizePanel");function ql({delta:e,initialLayout:t,panelConstraints:r,pivotIndices:o,prevLayout:l,trigger:u}){if(yn(e,0))return t;const c=[...t],[d,p]=o;Be(d!=null,"Invalid first pivot index"),Be(p!=null,"Invalid second pivot index");let h=0;if(u==="keyboard"){{const y=e<0?p:d,b=r[y];Be(b,`Panel constraints not found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,x)){const C=w-R;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}{const y=e<0?d:p,b=r[y];Be(b,`No panel constraints found for index ${y}`);const{collapsedSize:x=0,collapsible:E,minSize:w=0}=b;if(E){const R=t[y];if(Be(R!=null,`Previous layout not found for panel index ${y}`),yn(R,w)){const C=R-x;oo(C,Math.abs(e))>0&&(e=e<0?0-C:C)}}}}{const y=e<0?1:-1;let b=e<0?p:d,x=0;for(;;){const w=t[b];Be(w!=null,`Previous layout not found for panel index ${b}`);const C=la({panelConstraints:r,panelIndex:b,size:100})-w;if(x+=C,b+=y,b<0||b>=r.length)break}const E=Math.min(Math.abs(e),Math.abs(x));e=e<0?0-E:E}{let b=e<0?d:p;for(;b>=0&&b<r.length;){const x=Math.abs(e)-Math.abs(h),E=t[b];Be(E!=null,`Previous layout not found for panel index ${b}`);const w=E-x,R=la({panelConstraints:r,panelIndex:b,size:w});if(!yn(E,R)&&(h+=E-R,c[b]=R,h.toPrecision(3).localeCompare(Math.abs(e).toPrecision(3),void 0,{numeric:!0})>=0))break;e<0?b--:b++}}if(T8(l,c))return l;{const y=e<0?p:d,b=t[y];Be(b!=null,`Previous layout not found for panel index ${y}`);const x=b+h,E=la({panelConstraints:r,panelIndex:y,size:x});if(c[y]=E,!yn(E,x)){let w=x-E,C=e<0?p:d;for(;C>=0&&C<r.length;){const A=c[C];Be(A!=null,`Previous layout not found for panel index ${C}`);const k=A+w,z=la({panelConstraints:r,panelIndex:C,size:k});if(yn(A,z)||(w-=z-A,c[C]=z),yn(w,0))break;e>0?C--:C++}}}const m=c.reduce((y,b)=>b+y,0);return yn(m,100)?c:l}a(ql,"adjustLayoutByDelta");function R8({layout:e,panelsArray:t,pivotIndices:r}){let o=0,l=100,u=0,c=0;const d=r[0];Be(d!=null,"No pivot index found"),t.forEach((y,b)=>{const{constraints:x}=y,{maxSize:E=100,minSize:w=0}=x;b===d?(o=w,l=E):(u+=w,c+=E)});const p=Math.min(l,100-u),h=Math.max(o,100-c),m=e[d];return{valueMax:p,valueMin:h,valueNow:m}}a(R8,"calculateAriaValues");function ls(e,t=document){return Array.from(t.querySelectorAll(`[${gt.resizeHandleId}][data-panel-group-id="${e}"]`))}a(ls,"getResizeHandleElementsForGroup");function NR(e,t,r=document){const l=ls(e,r).findIndex(u=>u.getAttribute(gt.resizeHandleId)===t);return l??null}a(NR,"getResizeHandleElementIndex");function PR(e,t,r){const o=NR(e,t,r);return o!=null?[o,o+1]:[-1,-1]}a(PR,"determinePivotIndices");function LR(e,t=document){var r;if(t instanceof HTMLElement&&(t==null||(r=t.dataset)===null||r===void 0?void 0:r.panelGroupId)==e)return t;const o=t.querySelector(`[data-panel-group][data-panel-group-id="${e}"]`);return o||null}a(LR,"getPanelGroupElement");function cf(e,t=document){const r=t.querySelector(`[${gt.resizeHandleId}="${e}"]`);return r||null}a(cf,"getResizeHandleElement");function O8(e,t,r,o=document){var l,u,c,d;const p=cf(t,o),h=ls(e,o),m=p?h.indexOf(p):-1,y=(l=(u=r[m])===null||u===void 0?void 0:u.id)!==null&&l!==void 0?l:null,b=(c=(d=r[m+1])===null||d===void 0?void 0:d.id)!==null&&c!==void 0?c:null;return[y,b]}a(O8,"getResizeHandlePanelIds");function A8({committedValuesRef:e,eagerValuesRef:t,groupId:r,layout:o,panelDataArray:l,panelGroupElement:u,setLayout:c}){S.useRef({didWarnAboutMissingResizeHandle:!1}),Xi(()=>{if(!u)return;const d=ls(r,u);for(let p=0;p<l.length-1;p++){const{valueMax:h,valueMin:m,valueNow:y}=R8({layout:o,panelsArray:l,pivotIndices:[p,p+1]}),b=d[p];if(b!=null){const x=l[p];Be(x,`No panel data found for index "${p}"`),b.setAttribute("aria-controls",x.id),b.setAttribute("aria-valuemax",""+Math.round(h)),b.setAttribute("aria-valuemin",""+Math.round(m)),b.setAttribute("aria-valuenow",y!=null?""+Math.round(y):"")}}return()=>{d.forEach((p,h)=>{p.removeAttribute("aria-controls"),p.removeAttribute("aria-valuemax"),p.removeAttribute("aria-valuemin"),p.removeAttribute("aria-valuenow")})}},[r,o,l,u]),S.useEffect(()=>{if(!u)return;const d=t.current;Be(d,"Eager values not found");const{panelDataArray:p}=d,h=LR(r,u);Be(h!=null,`No group found for id "${r}"`);const m=ls(r,u);Be(m,`No resize handles found for group id "${r}"`);const y=m.map(b=>{const x=b.getAttribute(gt.resizeHandleId);Be(x,"Resize handle element has no handle id attribute");const[E,w]=O8(r,x,p,u);if(E==null||w==null)return()=>{};const R=a(C=>{if(!C.defaultPrevented)switch(C.key){case"Enter":{C.preventDefault();const A=p.findIndex(k=>k.id===E);if(A>=0){const k=p[A];Be(k,`No panel data found for index ${A}`);const z=o[A],{collapsedSize:L=0,collapsible:N,minSize:j=0}=k.constraints;if(z!=null&&N){const $=ql({delta:yn(z,L)?j-L:L-z,initialLayout:o,panelConstraints:p.map(W=>W.constraints),pivotIndices:PR(r,x,u),prevLayout:o,trigger:"keyboard"});o!==$&&c($)}}break}}},"onKeyDown");return b.addEventListener("keydown",R),()=>{b.removeEventListener("keydown",R)}});return()=>{y.forEach(b=>b())}},[u,e,t,r,o,l,c])}a(A8,"useWindowSplitterPanelGroupBehavior");function QS(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}a(QS,"areEqual");function zR(e,t){const r=e==="horizontal",{x:o,y:l}=sf(t);return r?o:l}a(zR,"getResizeEventCursorPosition");function M8(e,t,r,o,l){const u=r==="horizontal",c=cf(t,l);Be(c,`No resize handle element found for id "${t}"`);const d=c.getAttribute(gt.groupId);Be(d,"Resize handle element has no group id attribute");let{initialCursorPosition:p}=o;const h=zR(r,e),m=LR(d,l);Be(m,`No group element found for id "${d}"`);const y=m.getBoundingClientRect(),b=u?y.width:y.height;return(h-p)/b*100}a(M8,"calculateDragOffsetPercentage");function _8(e,t,r,o,l,u){if(CR(e)){const c=r==="horizontal";let d=0;e.shiftKey?d=100:l!=null?d=l:d=10;let p=0;switch(e.key){case"ArrowDown":p=c?0:d;break;case"ArrowLeft":p=c?-d:0;break;case"ArrowRight":p=c?d:0;break;case"ArrowUp":p=c?0:-d;break;case"End":p=100;break;case"Home":p=-100;break}return p}else return o==null?0:M8(e,t,r,o,u)}a(_8,"calculateDeltaPercentage");function k8({panelDataArray:e}){const t=Array(e.length),r=e.map(u=>u.constraints);let o=0,l=100;for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;d!=null&&(o++,t[u]=d,l-=d)}for(let u=0;u<e.length;u++){const c=r[u];Be(c,`Panel constraints not found for index ${u}`);const{defaultSize:d}=c;if(d!=null)continue;const p=e.length-o,h=l/p;o++,t[u]=h,l-=h}return t}a(k8,"calculateUnsafeDefaultLayout");function oa(e,t,r){t.forEach((o,l)=>{const u=e[l];Be(u,`Panel data not found for index ${l}`);const{callbacks:c,constraints:d,id:p}=u,{collapsedSize:h=0,collapsible:m}=d,y=r[p];if(y==null||o!==y){r[p]=o;const{onCollapse:b,onExpand:x,onResize:E}=c;E&&E(o,y),m&&(b||x)&&(x&&(y==null||jr(y,h))&&!jr(o,h)&&x(),b&&(y==null||!jr(y,h))&&jr(o,h)&&b())}})}a(oa,"callPanelCallbacks");function Xu(e,t){if(e.length!==t.length)return!1;for(let r=0;r<e.length;r++)if(e[r]!=t[r])return!1;return!0}a(Xu,"compareLayouts");function D8({defaultSize:e,dragState:t,layout:r,panelData:o,panelIndex:l,precision:u=3}){const c=r[l];let d;return c==null?d=e!=null?e.toPrecision(u):"1":o.length===1?d="1":d=c.toPrecision(u),{flexBasis:0,flexGrow:d,flexShrink:1,overflow:"hidden",pointerEvents:t!==null?"none":void 0}}a(D8,"computePanelFlexBoxStyle");function N8(e,t=10){let r=null;return a((...l)=>{r!==null&&clearTimeout(r),r=setTimeout(()=>{e(...l)},t)},"callable")}a(N8,"debounce");function XS(e){try{if(typeof localStorage<"u")e.getItem=t=>localStorage.getItem(t),e.setItem=(t,r)=>{localStorage.setItem(t,r)};else throw new Error("localStorage not supported in this environment")}catch(t){console.error(t),e.getItem=()=>null,e.setItem=()=>{}}}a(XS,"initializeDefaultStorage");function IR(e){return`react-resizable-panels:${e}`}a(IR,"getPanelGroupKey");function jR(e){return e.map(t=>{const{constraints:r,id:o,idIsFromProps:l,order:u}=t;return l?o:u?`${u}:${JSON.stringify(r)}`:JSON.stringify(r)}).sort((t,r)=>t.localeCompare(r)).join(",")}a(jR,"getPanelKey");function UR(e,t){try{const r=IR(e),o=t.getItem(r);if(o){const l=JSON.parse(o);if(typeof l=="object"&&l!=null)return l}}catch{}return null}a(UR,"loadSerializedPanelGroupState");function P8(e,t,r){var o,l;const u=(o=UR(e,r))!==null&&o!==void 0?o:{},c=jR(t);return(l=u[c])!==null&&l!==void 0?l:null}a(P8,"loadPanelGroupState");function L8(e,t,r,o,l){var u;const c=IR(e),d=jR(t),p=(u=UR(e,l))!==null&&u!==void 0?u:{};p[d]={expandToSizes:Object.fromEntries(r.entries()),layout:o};try{l.setItem(c,JSON.stringify(p))}catch(h){console.error(h)}}a(L8,"savePanelGroupState");function WS({layout:e,panelConstraints:t}){const r=[...e],o=r.reduce((u,c)=>u+c,0);if(r.length!==t.length)throw Error(`Invalid ${t.length} panel layout: ${r.map(u=>`${u}%`).join(", ")}`);if(!yn(o,100)&&r.length>0)for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=100/o*c;r[u]=d}let l=0;for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=la({panelConstraints:t,panelIndex:u,size:c});c!=d&&(l+=c-d,r[u]=d)}if(!yn(l,0))for(let u=0;u<t.length;u++){const c=r[u];Be(c!=null,`No layout data found for index ${u}`);const d=c+l,p=la({panelConstraints:t,panelIndex:u,size:d});if(c!==p&&(l-=p-c,r[u]=p,yn(l,0)))break}return r}a(WS,"validatePanelGroupLayout");const z8=100,Vl={getItem:a(e=>(XS(Vl),Vl.getItem(e)),"getItem"),setItem:a((e,t)=>{XS(Vl),Vl.setItem(e,t)},"setItem")},ZS={};function BR({autoSaveId:e=null,children:t,className:r="",direction:o,forwardedRef:l,id:u=null,onLayout:c=null,keyboardResizeBy:d=null,storage:p=Vl,style:h,tagName:m="div",...y}){const b=Mg(u),x=S.useRef(null),[E,w]=S.useState(null),[R,C]=S.useState([]),A=C8(),k=S.useRef({}),z=S.useRef(new Map),L=S.useRef(0),N=S.useRef({autoSaveId:e,direction:o,dragState:E,id:b,keyboardResizeBy:d,onLayout:c,storage:p}),j=S.useRef({layout:R,panelDataArray:[],panelDataArrayChanged:!1});S.useRef({didLogIdAndOrderWarning:!1,didLogPanelConstraintsWarning:!1,prevPanelIds:[]}),S.useImperativeHandle(l,()=>({getId:a(()=>N.current.id,"getId"),getLayout:a(()=>{const{layout:M}=j.current;return M},"getLayout"),setLayout:a(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current,K=WS({layout:M,panelConstraints:oe.map(fe=>fe.constraints)});QS(me,K)||(C(K),j.current.layout=K,ne&&ne(K),oa(oe,K,k.current))},"setLayout")}),[]),Xi(()=>{N.current.autoSaveId=e,N.current.direction=o,N.current.dragState=E,N.current.id=b,N.current.onLayout=c,N.current.storage=p}),A8({committedValuesRef:N,eagerValuesRef:j,groupId:b,layout:R,panelDataArray:j.current.panelDataArray,setLayout:C,panelGroupElement:x.current}),S.useEffect(()=>{const{panelDataArray:M}=j.current;if(e){if(R.length===0||R.length!==M.length)return;let ne=ZS[e];ne==null&&(ne=N8(L8,z8),ZS[e]=ne);const me=[...M],oe=new Map(z.current);ne(e,me,oe,R,p)}},[e,R,p]),S.useEffect(()=>{});const $=S.useCallback(M=>{const{onLayout:ne}=N.current,{layout:me,panelDataArray:oe}=j.current;if(M.constraints.collapsible){const K=oe.map(Pe=>Pe.constraints),{collapsedSize:fe=0,panelSize:Ce,pivotIndices:Te}=$i(oe,M,me);if(Be(Ce!=null,`Panel size not found for panel "${M.id}"`),!jr(Ce,fe)){z.current.set(M.id,Ce);const qe=aa(oe,M)===oe.length-1?Ce-fe:fe-Ce,Ie=ql({delta:qe,initialLayout:me,panelConstraints:K,pivotIndices:Te,prevLayout:me,trigger:"imperative-api"});Xu(me,Ie)||(C(Ie),j.current.layout=Ie,ne&&ne(Ie),oa(oe,Ie,k.current))}}},[]),W=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current;if(M.constraints.collapsible){const fe=K.map(ut=>ut.constraints),{collapsedSize:Ce=0,panelSize:Te=0,minSize:Pe=0,pivotIndices:qe}=$i(K,M,oe),Ie=ne??Pe;if(jr(Te,Ce)){const ut=z.current.get(M.id),Kt=ut!=null&&ut>=Ie?ut:Ie,St=aa(K,M)===K.length-1?Te-Kt:Kt-Te,At=ql({delta:St,initialLayout:oe,panelConstraints:fe,pivotIndices:qe,prevLayout:oe,trigger:"imperative-api"});Xu(oe,At)||(C(At),j.current.layout=At,me&&me(At),oa(K,At,k.current))}}},[]),J=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{panelSize:oe}=$i(me,M,ne);return Be(oe!=null,`Panel size not found for panel "${M.id}"`),oe},[]),X=S.useCallback((M,ne)=>{const{panelDataArray:me}=j.current,oe=aa(me,M);return D8({defaultSize:ne,dragState:E,layout:R,panelData:me,panelIndex:oe})},[E,R]),Z=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),K===!0&&jr(fe,oe)},[]),ce=S.useCallback(M=>{const{layout:ne,panelDataArray:me}=j.current,{collapsedSize:oe=0,collapsible:K,panelSize:fe}=$i(me,M,ne);return Be(fe!=null,`Panel size not found for panel "${M.id}"`),!K||oo(fe,oe)>0},[]),q=S.useCallback(M=>{const{panelDataArray:ne}=j.current;ne.push(M),ne.sort((me,oe)=>{const K=me.order,fe=oe.order;return K==null&&fe==null?0:K==null?-1:fe==null?1:K-fe}),j.current.panelDataArrayChanged=!0,A()},[A]);Xi(()=>{if(j.current.panelDataArrayChanged){j.current.panelDataArrayChanged=!1;const{autoSaveId:M,onLayout:ne,storage:me}=N.current,{layout:oe,panelDataArray:K}=j.current;let fe=null;if(M){const Te=P8(M,K,me);Te&&(z.current=new Map(Object.entries(Te.expandToSizes)),fe=Te.layout)}fe==null&&(fe=k8({panelDataArray:K}));const Ce=WS({layout:fe,panelConstraints:K.map(Te=>Te.constraints)});QS(oe,Ce)||(C(Ce),j.current.layout=Ce,ne&&ne(Ce),oa(K,Ce,k.current))}}),Xi(()=>{const M=j.current;return()=>{M.layout=[]}},[]);const ae=S.useCallback(M=>{let ne=!1;const me=x.current;return me&&window.getComputedStyle(me,null).getPropertyValue("direction")==="rtl"&&(ne=!0),a(function(K){K.preventDefault();const fe=x.current;if(!fe)return()=>null;const{direction:Ce,dragState:Te,id:Pe,keyboardResizeBy:qe,onLayout:Ie}=N.current,{layout:ut,panelDataArray:Kt}=j.current,{initialLayout:an}=Te??{},St=PR(Pe,M,fe);let At=_8(K,M,Ce,Te,qe,fe);const $r=Ce==="horizontal";$r&&ne&&(At=-At);const Ai=Kt.map(po=>po.constraints),xn=ql({delta:At,initialLayout:an??ut,panelConstraints:Ai,pivotIndices:St,prevLayout:ut,trigger:CR(K)?"keyboard":"mouse-or-touch"}),fo=!Xu(ut,xn);(TR(K)||RR(K))&&L.current!=At&&(L.current=At,!fo&&At!==0?$r?vh(M,At<0?AR:MR):vh(M,At<0?_R:kR):vh(M,0)),fo&&(C(xn),j.current.layout=xn,Ie&&Ie(xn),oa(Kt,xn,k.current))},"resizeHandler")},[]),I=S.useCallback((M,ne)=>{const{onLayout:me}=N.current,{layout:oe,panelDataArray:K}=j.current,fe=K.map(ut=>ut.constraints),{panelSize:Ce,pivotIndices:Te}=$i(K,M,oe);Be(Ce!=null,`Panel size not found for panel "${M.id}"`);const qe=aa(K,M)===K.length-1?Ce-ne:ne-Ce,Ie=ql({delta:qe,initialLayout:oe,panelConstraints:fe,pivotIndices:Te,prevLayout:oe,trigger:"imperative-api"});Xu(oe,Ie)||(C(Ie),j.current.layout=Ie,me&&me(Ie),oa(K,Ie,k.current))},[]),Q=S.useCallback((M,ne)=>{const{layout:me,panelDataArray:oe}=j.current,{collapsedSize:K=0,collapsible:fe}=ne,{collapsedSize:Ce=0,collapsible:Te,maxSize:Pe=100,minSize:qe=0}=M.constraints,{panelSize:Ie}=$i(oe,M,me);Ie!=null&&(fe&&Te&&jr(Ie,K)?jr(K,Ce)||I(M,Ce):Ie<qe?I(M,qe):Ie>Pe&&I(M,Pe))},[I]),te=S.useCallback((M,ne)=>{const{direction:me}=N.current,{layout:oe}=j.current;if(!x.current)return;const K=cf(M,x.current);Be(K,`Drag handle element not found for id "${M}"`);const fe=zR(me,ne);w({dragHandleId:M,dragHandleRect:K.getBoundingClientRect(),initialCursorPosition:fe,initialLayout:oe})},[]),se=S.useCallback(()=>{w(null)},[]),O=S.useCallback(M=>{const{panelDataArray:ne}=j.current,me=aa(ne,M);me>=0&&(ne.splice(me,1),delete k.current[M.id],j.current.panelDataArrayChanged=!0,A())},[A]),Y=S.useMemo(()=>({collapsePanel:$,direction:o,dragState:E,expandPanel:W,getPanelSize:J,getPanelStyle:X,groupId:b,isPanelCollapsed:Z,isPanelExpanded:ce,reevaluatePanelConstraints:Q,registerPanel:q,registerResizeHandle:ae,resizePanel:I,startDragging:te,stopDragging:se,unregisterPanel:O,panelGroupElement:x.current}),[$,E,o,W,J,X,b,Z,ce,Q,q,ae,I,te,se,O]),de={display:"flex",flexDirection:o==="horizontal"?"row":"column",height:"100%",overflow:"hidden",width:"100%"};return S.createElement(lf.Provider,{value:Y},S.createElement(m,{...y,children:t,className:r,id:u,ref:x,style:{...de,...h},[gt.group]:"",[gt.groupDirection]:o,[gt.groupId]:b}))}a(BR,"PanelGroupWithForwardedRef");const I8=S.forwardRef((e,t)=>S.createElement(BR,{...e,forwardedRef:t}));BR.displayName="PanelGroup";I8.displayName="forwardRef(PanelGroup)";function aa(e,t){return e.findIndex(r=>r===t||r.id===t.id)}a(aa,"findPanelDataIndex");function $i(e,t,r){const o=aa(e,t),u=o===e.length-1?[o-1,o]:[o,o+1],c=r[o];return{...t.constraints,panelSize:c,pivotIndices:u}}a($i,"panelDataHelper");function j8({disabled:e,handleId:t,resizeHandler:r,panelGroupElement:o}){S.useEffect(()=>{if(e||r==null||o==null)return;const l=cf(t,o);if(l==null)return;const u=a(c=>{if(!c.defaultPrevented)switch(c.key){case"ArrowDown":case"ArrowLeft":case"ArrowRight":case"ArrowUp":case"End":case"Home":{c.preventDefault(),r(c);break}case"F6":{c.preventDefault();const d=l.getAttribute(gt.groupId);Be(d,`No group element found for id "${d}"`);const p=ls(d,o),h=NR(d,t,o);Be(h!==null,`No resize element found for id "${t}"`);const m=c.shiftKey?h>0?h-1:p.length-1:h+1<p.length?h+1:0;p[m].focus();break}}},"onKeyDown");return l.addEventListener("keydown",u),()=>{l.removeEventListener("keydown",u)}},[o,e,t,r])}a(j8,"useWindowSplitterResizeHandlerBehavior");function U8({children:e=null,className:t="",disabled:r=!1,hitAreaMargins:o,id:l,onBlur:u,onClick:c,onDragging:d,onFocus:p,onPointerDown:h,onPointerUp:m,style:y={},tabIndex:b=0,tagName:x="div",...E}){var w,R;const C=S.useRef(null),A=S.useRef({onClick:c,onDragging:d,onPointerDown:h,onPointerUp:m});S.useEffect(()=>{A.current.onClick=c,A.current.onDragging=d,A.current.onPointerDown=h,A.current.onPointerUp=m});const k=S.useContext(lf);if(k===null)throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");const{direction:z,groupId:L,registerResizeHandle:N,startDragging:j,stopDragging:$,panelGroupElement:W}=k,J=Mg(l),[X,Z]=S.useState("inactive"),[ce,q]=S.useState(!1),[ae,I]=S.useState(null),Q=S.useRef({state:X});Xi(()=>{Q.current.state=X}),S.useEffect(()=>{if(r)I(null);else{const Y=N(J);I(()=>Y)}},[r,J,N]);const te=(w=o?.coarse)!==null&&w!==void 0?w:15,se=(R=o?.fine)!==null&&R!==void 0?R:5;S.useEffect(()=>{if(r||ae==null)return;const Y=C.current;Be(Y,"Element ref not attached");let de=!1;return w8(J,Y,z,{coarse:te,fine:se},a((ne,me,oe)=>{if(!me){Z("inactive");return}switch(ne){case"down":{Z("drag"),de=!1,Be(oe,'Expected event to be defined for "down" action'),j(J,oe);const{onDragging:K,onPointerDown:fe}=A.current;K?.(!0),fe?.();break}case"move":{const{state:K}=Q.current;de=!0,K!=="drag"&&Z("hover"),Be(oe,'Expected event to be defined for "move" action'),ae(oe);break}case"up":{Z("hover"),$();const{onClick:K,onDragging:fe,onPointerUp:Ce}=A.current;fe?.(!1),Ce?.(),de||K?.();break}}},"setResizeHandlerState"))},[te,z,r,se,N,J,ae,j,$]),j8({disabled:r,handleId:J,resizeHandler:ae,panelGroupElement:W});const O={touchAction:"none",userSelect:"none"};return S.createElement(x,{...E,children:e,className:t,id:l,onBlur:a(()=>{q(!1),u?.()},"onBlur"),onFocus:a(()=>{q(!0),p?.()},"onFocus"),ref:C,role:"separator",style:{...O,...y},tabIndex:b,[gt.groupDirection]:z,[gt.groupId]:L,[gt.resizeHandle]:"",[gt.resizeHandleActive]:X==="drag"?"pointer":ce?"keyboard":void 0,[gt.resizeHandleEnabled]:!r,[gt.resizeHandleId]:J,[gt.resizeHandleState]:X})}a(U8,"PanelResizeHandle");U8.displayName="PanelResizeHandle";var ff="Collapsible",[B8]=$t(ff),[H8,Dg]=B8(ff),HR=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,open:o,defaultOpen:l,disabled:u,onOpenChange:c,...d}=e,[p,h]=hr({prop:o,defaultProp:l??!1,onChange:c,caller:ff});return D.jsx(H8,{scope:r,disabled:u,contentId:Ln(),open:p,onOpenToggle:S.useCallback(()=>h(m=>!m),[h]),children:D.jsx(Ee.div,{"data-state":Pg(p),"data-disabled":u?"":void 0,...d,ref:t})})});HR.displayName=ff;var FR="CollapsibleTrigger",F8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,...o}=e,l=Dg(FR,r);return D.jsx(Ee.button,{type:"button","aria-controls":l.contentId,"aria-expanded":l.open||!1,"data-state":Pg(l.open),"data-disabled":l.disabled?"":void 0,disabled:l.disabled,...o,ref:t,onClick:ye(e.onClick,l.onOpenToggle)})});F8.displayName=FR;var Ng="CollapsibleContent",q8=S.forwardRef((e,t)=>{const{forceMount:r,...o}=e,l=Dg(Ng,e.__scopeCollapsible);return D.jsx(It,{present:r||l.open,children:a(({present:u})=>D.jsx(V8,{...o,ref:t,present:u}),"children")})});q8.displayName=Ng;var V8=S.forwardRef((e,t)=>{const{__scopeCollapsible:r,present:o,children:l,...u}=e,c=Dg(Ng,r),[d,p]=S.useState(o),h=S.useRef(null),m=ze(t,h),y=S.useRef(0),b=y.current,x=S.useRef(0),E=x.current,w=c.open||d,R=S.useRef(w),C=S.useRef(void 0);return S.useEffect(()=>{const A=requestAnimationFrame(()=>R.current=!1);return()=>cancelAnimationFrame(A)},[]),bt(()=>{const A=h.current;if(A){C.current=C.current||{transitionDuration:A.style.transitionDuration,animationName:A.style.animationName},A.style.transitionDuration="0s",A.style.animationName="none";const k=A.getBoundingClientRect();y.current=k.height,x.current=k.width,R.current||(A.style.transitionDuration=C.current.transitionDuration,A.style.animationName=C.current.animationName),p(o)}},[c.open,o]),D.jsx(Ee.div,{"data-state":Pg(c.open),"data-disabled":c.disabled?"":void 0,id:c.contentId,hidden:!w,...u,ref:m,style:{"--radix-collapsible-content-height":b?`${b}px`:void 0,"--radix-collapsible-content-width":E?`${E}px`:void 0,...e.style},children:w&&l})});function Pg(e){return e?"open":"closed"}a(Pg,"getState$1");var MB=HR,df="Switch",[G8]=$t(df),[$8,Y8]=G8(df),qR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,name:o,checked:l,defaultChecked:u,required:c,disabled:d,value:p="on",onCheckedChange:h,form:m,...y}=e,[b,x]=S.useState(null),E=ze(t,k=>x(k)),w=S.useRef(!1),R=b?m||!!b.closest("form"):!0,[C,A]=hr({prop:l,defaultProp:u??!1,onChange:h,caller:df});return D.jsxs($8,{scope:r,checked:C,disabled:d,children:[D.jsx(Ee.button,{type:"button",role:"switch","aria-checked":C,"aria-required":c,"data-state":YR(C),"data-disabled":d?"":void 0,disabled:d,value:p,...y,ref:E,onClick:ye(e.onClick,k=>{A(z=>!z),R&&(w.current=k.isPropagationStopped(),w.current||k.stopPropagation())})}),R&&D.jsx($R,{control:b,bubbles:!w.current,name:o,value:p,checked:C,required:c,disabled:d,form:m,style:{transform:"translateX(-100%)"}})]})});qR.displayName=df;var VR="SwitchThumb",GR=S.forwardRef((e,t)=>{const{__scopeSwitch:r,...o}=e,l=Y8(VR,r);return D.jsx(Ee.span,{"data-state":YR(l.checked),"data-disabled":l.disabled?"":void 0,...o,ref:t})});GR.displayName=VR;var K8="SwitchBubbleInput",$R=S.forwardRef(({__scopeSwitch:e,control:t,checked:r,bubbles:o=!0,...l},u)=>{const c=S.useRef(null),d=ze(c,u),p=cE(r),h=$x(t);return S.useEffect(()=>{const m=c.current;if(!m)return;const y=window.HTMLInputElement.prototype,x=Object.getOwnPropertyDescriptor(y,"checked").set;if(p!==r&&x){const E=new Event("click",{bubbles:o});x.call(m,r),m.dispatchEvent(E)}},[p,r,o]),D.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...l,tabIndex:-1,ref:d,style:{...l.style,...h,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});$R.displayName=K8;function YR(e){return e?"checked":"unchecked"}a(YR,"getState");var _B=qR,kB=GR;export{sB as $,XU as A,VU as B,X_ as C,Z_ as D,KU as E,p7 as F,qU as G,QU as H,UU as I,TU as J,ZU as K,NU as L,JU as M,eB as N,Q_ as O,K_ as P,tB as Q,e7 as R,J8 as S,Y_ as T,rB as U,jU as V,iB as W,hU as X,nB as Y,oB as Z,aB as _,$_ as a,RB as a$,fB as a0,dB as a1,cB as a2,uB as a3,lB as a4,h7 as a5,W8 as a6,f7 as a7,d7 as a8,R7 as a9,gB as aA,yB as aB,vB as aC,CU as aD,RU as aE,Ci as aF,a7 as aG,lU as aH,x7 as aI,W7 as aJ,EP as aK,M7 as aL,iU as aM,C7 as aN,J7 as aO,N7 as aP,nU as aQ,v7 as aR,H7 as aS,bB as aT,$e as aU,Ze as aV,TB as aW,SB as aX,wB as aY,EB as aZ,CB as a_,n7 as aa,o7 as ab,B7 as ac,g7 as ad,uU as ae,eU as af,tU as ag,j7 as ah,fU as ai,U7 as aj,pB as ak,hB as al,mB as am,L3 as an,H3 as ao,D7 as ap,P7 as aq,_7 as ar,k7 as as,K7 as at,sU as au,b7 as av,E7 as aw,Iw as ax,jm as ay,m7 as az,Dx as b,EU as b$,xB as b0,Z7 as b1,X7 as b2,pU as b3,T7 as b4,aU as b5,s7 as b6,O7 as b7,bR as b8,O9 as b9,q8 as bA,y7 as bB,mU as bC,l7 as bD,I7 as bE,t7 as bF,cU as bG,Q7 as bH,dU as bI,_e as bJ,w7 as bK,S7 as bL,q7 as bM,rU as bN,Y7 as bO,r7 as bP,G7 as bQ,A7 as bR,$7 as bS,oU as bT,OU as bU,_B as bV,kB as bW,Vw as bX,z7 as bY,i7 as bZ,_U as b_,OB as ba,GI as bb,VI as bc,da as bd,xS as be,xR as bf,zI as bg,LS as bh,bn as bi,sr as bj,rn as bk,im as bl,rf as bm,st as bn,gr as bo,xg as bp,Ne as bq,We as br,jI as bs,AB as bt,d8 as bu,I8 as bv,U8 as bw,L7 as bx,MB as by,F8 as bz,W_ as c,wU as c0,MU as c1,F7 as c2,AU as c3,ZN as c4,Z8 as c5,gU as d,yU as e,vU as f,Vr as g,bU as h,SU as i,D as j,V7 as k,kU as l,DU as m,PU as n,LU as o,zU as p,IU as q,S as r,c7 as s,BU as t,HU as u,FU as v,GU as w,YU as x,u7 as y,$U as z};
|
|
546
|
+
//# sourceMappingURL=react-vendor-pe76PXQl.js.map
|