2&&void 0!==arguments[2]?arguments[2]:1;ep(n<=Og,'Max CSS variable fallback depth detected in property "'.concat(e,'". This may indicate a circular fallback dependency.'));var r=function(e){var t=_g.exec(e);if(!t)return[,];var n=(0,v.Z)(t,3);return[n[1],n[2]]}(e),o=(0,v.Z)(r,2),a=o[0],i=o[1];if(a){var s=window.getComputedStyle(t).getPropertyValue(a);if(s){var u=s.trim();return $h(u)?parseFloat(u):u}return pf(i)?Ig(i,t,n+1):i}}var Ng=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),Pg=function(e){return Ng.has(e)},Ag=function(e){return e===vf||e===_f},jg=function(e,t){return parseFloat(e.split(", ")[t])},Rg=function(e,t){return function(n,r){var o=r.transform;if("none"===o||!o)return 0;var a=o.match(/^matrix3d\((.+)\)$/);if(a)return jg(a[1],t);var i=o.match(/^matrix\((.+)\)$/);return i?jg(i[1],e):0}},Dg=new Set(["x","y","z"]),Fg=of.filter((function(e){return!Dg.has(e)}));var Lg={width:function(e,t){var n=e.x,r=t.paddingLeft,o=void 0===r?"0":r,a=t.paddingRight,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},height:function(e,t){var n=e.y,r=t.paddingTop,o=void 0===r?"0":r,a=t.paddingBottom,i=void 0===a?"0":a;return n.max-n.min-parseFloat(o)-parseFloat(i)},top:function(e,t){var n=t.top;return parseFloat(n)},left:function(e,t){var n=t.left;return parseFloat(n)},bottom:function(e,t){var n=e.y,r=t.top;return parseFloat(r)+(n.max-n.min)},right:function(e,t){var n=e.x,r=t.left;return parseFloat(r)+(n.max-n.min)},x:Rg(4,13),y:Rg(5,14)};Lg.translateX=Lg.x,Lg.translateY=Lg.y;var Mg=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};t=f({},t),r=f({},r);var o=Object.keys(t).filter(Pg),a=[],i=!1,s=[];if(o.forEach((function(o){var u=e.getValue(o);if(e.hasValue(o)){var l,c=n[o],f=im(c),d=t[o];if(ad(d)){var p=d.length,h=null===d[0]?1:0;c=d[h],f=im(c);for(var m=h;m=0?window.pageYOffset:null,l=function(e,t,n){var r=t.measureViewportBox(),o=t.current,a=getComputedStyle(o),i=a.display,s={};"none"===i&&t.setStaticValue("display",e.display||"block"),n.forEach((function(e){s[e]=Lg[e](r,a)})),t.render();var u=t.measureViewportBox();return n.forEach((function(n){var r=t.getValue(n);r&&r.jump(s[n]),e[n]=Lg[n](u,a)})),e}(t,e,s);return a.length&&a.forEach((function(t){var n=(0,v.Z)(t,2),r=n[0],o=n[1];e.getValue(r).set(o)})),e.render(),jc&&null!==u&&window.scrollTo({top:u}),{target:l,transitionEnd:r}}return{target:t,transitionEnd:r}};function Bg(e,t,n,r){return function(e){return Object.keys(e).some(Pg)}(t)?Mg(e,t,n,r):{target:t,transitionEnd:r}}var zg=function(e,t,n,r){var o=function(e,t,n){var r=Object.assign({},(Cg(t),t)),o=e.current;if(!(o instanceof Element))return{target:r,transitionEnd:n};for(var a in n&&(n=f({},n)),e.values.forEach((function(e){var t=e.get();if(pf(t)){var n=Ig(t,o);n&&e.set(n)}})),r){var i=r[a];if(pf(i)){var s=Ig(i,o);s&&(r[a]=s,n||(n={}),void 0===n[a]&&(n[a]=i))}}return{target:r,transitionEnd:n}}(e,t,r);return Bg(e,t=o.target,n,r=o.transitionEnd)},Zg={current:null},Ug={current:!1};var Vg=new WeakMap,qg=["willChange"],Hg=["children"],Wg=Object.keys(Wc),Jg=Wg.length,Gg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Yg=zc.length,Xg=function(){function e(t){var n=this,r=t.parent,o=t.props,a=t.presenceContext,i=t.reducedMotionConfig,s=t.visualState,l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,Vr.Z)(this,e),this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=function(){return n.notify("Update",n.latestValues)},this.render=function(){n.current&&(n.triggerBuild(),n.renderInstance(n.current,n.renderState,n.props.style,n.projection))},this.scheduleRender=function(){return vd.render(n.render,!1,!0)};var c=s.latestValues,d=s.renderState;this.latestValues=c,this.baseTarget=f({},c),this.initialValues=o.initial?f({},c):{},this.renderState=d,this.parent=r,this.props=o,this.presenceContext=a,this.depth=r?r.depth+1:0,this.reducedMotionConfig=i,this.options=l,this.isControllingVariants=Zc(o),this.isVariantNode=Uc(o),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(r&&r.current);var p=this.scrapeMotionValuesFromProps(o,{}),h=p.willChange,m=u(p,qg);for(var v in m){var g=m[v];void 0!==c[v]&&uf(g)&&(g.set(c[v],!1),Xh(h)&&h.add(v))}}return(0,qr.Z)(e,[{key:"scrapeMotionValuesFromProps",value:function(e,t){return{}}},{key:"mount",value:function(e){var t=this;this.current=e,Vg.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((function(e,n){return t.bindToMotionValue(n,e)})),Ug.current||function(){if(Ug.current=!0,jc)if(window.matchMedia){var e=window.matchMedia("(prefers-reduced-motion)"),t=function(){return Zg.current=e.matches};e.addListener(t),t()}else Zg.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Zg.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}},{key:"unmount",value:function(){for(var e in Vg.delete(this.current),this.projection&&this.projection.unmount(),gd(this.notifyUpdate),gd(this.render),this.valueSubscriptions.forEach((function(e){return e()})),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this),this.events)this.events[e].clear();for(var t in this.features)this.features[t].unmount();this.current=null}},{key:"bindToMotionValue",value:function(e,t){var n=this,r=af.has(e),o=t.on("change",(function(t){n.latestValues[e]=t,n.props.onUpdate&&vd.update(n.notifyUpdate,!1,!0),r&&n.projection&&(n.projection.isTransformDirty=!0)})),a=t.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(e,(function(){o(),a()}))}},{key:"sortNodePosition",value:function(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}},{key:"loadFeatures",value:function(e,t,n,r){for(var o,a,i=this,s=(e.children,u(e,Hg)),l=0;l1&&void 0!==arguments[1])||arguments[1];return this.makeTargetAnimatableFromInstance(e,this.props,t)}},{key:"update",value:function(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(var n=0;n0&&void 0!==arguments[0]&&arguments[0])return this.parent?this.parent.getVariantContext():void 0;if(!this.isControllingVariants){var e=this.parent&&this.parent.getVariantContext()||{};return void 0!==this.props.initial&&(e.initial=this.props.initial),e}for(var t={},n=0;n1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e),o=(0,y.Z)(n);try{for(o.s();!(t=o.n()).done;){var a=t.value;a in r&&delete r[a]}}catch(i){o.e(i)}finally{o.f()}return r}(I,["role","id"]):I,P=function(e,t){var n,r={},o=(0,y.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;a in e&&(r[a]=e[a])}}catch(i){o.e(i)}finally{o.f()}return r}(I,["role","id"]);return c?(0,gr.jsxs)(gr.Fragment,{children:[E,(0,gr.jsx)(dy,{children:C.isOpen&&(0,gr.jsx)(Ic,f(f({},v),{},{children:(0,gr.jsx)(vr.div,f(f({},C.getTooltipPositionerProps()),{},{__css:{zIndex:a.zIndex,pointerEvents:"none"},children:(0,gr.jsxs)(hy,f(f(f({variants:mu,initial:"exit",animate:"enter",exit:"exit"},w),N),{},{__css:a,children:[c,O&&(0,gr.jsx)(vr.span,f(f({srOnly:!0},P),{},{children:p})),h&&(0,gr.jsx)(vr.div,{"data-popper-arrow":!0,className:"chakra-tooltip__arrow-wrapper",children:(0,gr.jsx)(vr.div,{"data-popper-arrow-inner":!0,className:"chakra-tooltip__arrow",__css:{bg:a.bg}})})]}))}))}))})]}):(0,gr.jsx)(gr.Fragment,{children:l})}));my.displayName="Tooltip";n(2110);var vy=Kn((function(e,t){var n=e.styles,o=Jn([n],void 0,r.useContext(Qn)),a=r.useRef();return Xn((function(){var e=t.key+"-global",n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),r=!1,i=document.querySelector('style[data-emotion="'+e+" "+o.name+'"]');return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),null!==i&&(r=!0,i.setAttribute("data-emotion",e),n.hydrate([i])),a.current=[n,r],function(){n.flush()}}),[t]),Xn((function(){var e=a.current,n=e[0];if(e[1])e[1]=!1;else{if(void 0!==o.next&&rr(t,o.next,!0),n.tags.length){var r=n.tags[n.tags.length-1].nextElementSibling;n.before=r,n.flush()}t.insert("",o,n,!1)}}),[t,o.name]),null}));function gy(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=(0,r.useState)(!1),o=(0,v.Z)(n,2),a=o[0],i=o[1],s=(0,r.useState)(e),l=(0,v.Z)(s,2),c=l[0],f=l[1];(0,r.useEffect)((function(){return f(e)}),[e]);var d="number"===typeof t?{timeout:t}:t,p=d.timeout,h=void 0===p?1500:p,m=u(d,Sy),g=(0,r.useCallback)((function(){var e=xy(c,m);i(e)}),[c,m]);return(0,r.useEffect)((function(){var e=null;return a&&(e=window.setTimeout((function(){i(!1)}),h)),function(){e&&window.clearTimeout(e)}}),[h,a]),{value:c,setValue:f,onCopy:g,hasCopied:a}}var Ey=["direction","align","justify","wrap","basis","grow","shrink"],Cy=g((function(e,t){var n=e.direction,r=e.align,o=e.justify,a=e.wrap,i=e.basis,s=e.grow,l=e.shrink,c=u(e,Ey),d={display:"flex",flexDirection:n,alignItems:r,justifyContent:o,flexWrap:a,flexBasis:i,flexGrow:s,flexShrink:l};return(0,gr.jsx)(vr.div,f({ref:t,__css:d},c))}));Cy.displayName="Flex";var _y=vr("div",{baseStyle:{flex:1,justifySelf:"stretch",alignSelf:"stretch"}});_y.displayName="Spacer";var Oy=n(6854),Iy=(Oy.domToReact,Oy.htmlToDOM,Oy.attributesToProps,Oy.Comment,Oy.Element,Oy.ProcessingInstruction,Oy.Text,Oy);function Ny(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).onlyFirst,t=void 0!==e&&e,n=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(n,t?void 0:"g")}var Py=Ny({onlyFirst:!0});var Ay=Ny();function jy(e){if("string"!==typeof e)throw new TypeError("Expected a `string`, got `".concat(typeof e,"`"));return e.replace(Ay,"")}var Ry,Dy=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.elementName?n.elementName:"a",o=n.fileType?n.fileType:"text/plain",a=new Blob([e],{type:o}),i=document.createElement(r);i.download=t,i.innerHTML="Download File",window.webkitURL?i.href=window.webkitURL.createObjectURL(a):(i.href=window.URL.createObjectURL(a),i.onclick=function(e){e.target&&document.body.removeChild(e.target)},i.style.display="none",document.body.appendChild(i)),i.click(),window.webkitURL?window.webkitURL.revokeObjectURL(i.href):window.URL.revokeObjectURL(i.href)},Fy=["children"],Ly=["behavior","align"],My=["done","behavior","align","calculateViewLocation"],By=["listState","topItemsIndexes"],zy=["style","children"],Zy=["style","children"],Uy=0,Vy=1,qy=2,Hy=4;function Wy(e,t){return function(n){return e(t(n))}}function Jy(e,t){return t(e)}function Gy(e,t){return function(n){return e(t,n)}}function Yy(e,t){return function(){return e(t)}}function Xy(e,t){return t(e),e}function $y(){for(var e=arguments.length,t=new Array(e),n=0;n-1&&e.splice(t,1)};case Uy:return void e.slice().forEach((function(e){e(n)}));default:throw new Error("unrecognized action ".concat(t))}}}function cb(e){var t=e,n=lb();return function(e,r){switch(e){case Vy:r(t);break;case Uy:t=r;break;case Hy:return t}return n(e,r)}}function fb(e){return Xy(lb(),(function(t){return sb(e,t)}))}function db(e,t){return Xy(cb(t),(function(t){return sb(e,t)}))}function pb(){for(var e=arguments.length,t=new Array(e),n=0;n1?t-1:0),r=1;r0&&void 0!==arguments[0]?arguments[0]:mb;return function(n){return function(r){t(e,r)||(e=r,n(r))}}}function gb(e){return function(t){return function(n){e(n)&&t(n)}}}function yb(e){return function(t){return Wy(t,e)}}function bb(e){return function(t){return function(){return t(e)}}}function kb(e,t){return function(n){return function(r){return n(t=e(t,r))}}}function wb(e){return function(t){return function(n){e>0?e--:t(n)}}}function xb(e){var t,n=null;return function(r){return function(o){n=o,t||(t=setTimeout((function(){t=void 0,r(n)}),e))}}}function Sb(e){var t,n;return function(r){return function(o){t=o,n&&clearTimeout(n),n=setTimeout((function(){r(t)}),e)}}}function Tb(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]?arguments[1]:mb))}function _b(){for(var e=lb(),t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:[],n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{singleton:!0}).singleton;return{id:Ib(),constructor:e,dependencies:t,singleton:n}}var Ib=function(){return Symbol()};var Nb="undefined"!==typeof document?r.useLayoutEffect:r.useEffect;function Pb(e,t,n){var o=Object.keys(t.required||{}),a=Object.keys(t.optional||{}),i=Object.keys(t.methods||{}),s=Object.keys(t.events||{}),l=r.createContext({});function c(e,n){e.propsReady&&ob(e.propsReady,!1);for(var r=0,i=o;r2&&void 0!==arguments[2]?arguments[2]:1;o>=(null!=(r=("undefined"===typeof globalThis?window:globalThis).VIRTUOSO_LOG_LEVEL)?r:ib(e))&&console[Rb[o]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",t,n)}));return{log:t,logLevel:e}}),[],{singleton:!0});function Fb(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=r.useRef(null),o=function(e){};if("undefined"!==typeof ResizeObserver){var a=r.useMemo((function(){return new ResizeObserver((function(t){var n=t[0].target;null!==n.offsetParent&&e(n)}))}),[e]);o=function(e){e&&t?(a.observe(e),n.current=e):(n.current&&a.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:o}}function Lb(e){return Fb(e,!(arguments.length>1&&void 0!==arguments[1])||arguments[1]).callbackRef}function Mb(e,t,n,o,a,i,s){var u=r.useCallback((function(n){for(var r=function(e,t,n,r){var o=e.length;if(0===o)return null;for(var a=[],i=0;i3&&void 0!==arguments[3]?arguments[3]:nb,a=arguments.length>4?arguments[4]:void 0,i=r.useRef(null),s=r.useRef(null),u=r.useRef(null),l=r.useCallback((function(n){var r=n.target,o=r===window||r===document,a=o?window.pageYOffset||document.documentElement.scrollTop:r.scrollTop,i=o?document.documentElement.scrollHeight:r.scrollHeight,l=o?window.innerHeight:r.offsetHeight,c=function(){e({scrollTop:Math.max(a,0),scrollHeight:i,viewportHeight:l})};n.suppressFlushSync?c():bc.flushSync(c),null!==s.current&&(a===s.current||a<=0||a===i-l)&&(s.current=null,t(!0),u.current&&(clearTimeout(u.current),u.current=null))}),[e,t]);return r.useEffect((function(){var e=a||i.current;return o(a||i.current),l({target:e,suppressFlushSync:!0}),e.addEventListener("scroll",l,{passive:!0}),function(){o(null),e.removeEventListener("scroll",l)}}),[i,l,n,o,a]),{scrollerRef:i,scrollByCallback:function(e){i.current.scrollBy(e)},scrollToCallback:function(n){var r=i.current;if(r&&(!("offsetHeight"in r)||0!==r.offsetHeight)){var o,a,l,c="smooth"===n.behavior;r===window?(a=Math.max(Bb(document.documentElement,"height"),document.documentElement.scrollHeight),o=window.innerHeight,l=document.documentElement.scrollTop):(a=r.scrollHeight,o=Bb(r,"height"),l=r.scrollTop);var f=a-o;if(n.top=Math.ceil(Math.max(Math.min(f,n.top),0)),zb(o,a)||n.top===l)return e({scrollTop:l,scrollHeight:a,viewportHeight:o}),void(c&&t(!0));c?(s.current=n.top,u.current&&clearTimeout(u.current),u.current=setTimeout((function(){u.current=null,s.current=null,t(!0)}),1e3)):s.current=null,r.scrollTo(n)}}}}var Ub=Ob((function(){var e=lb(),t=lb(),n=cb(0),r=lb(),o=cb(0),a=lb(),i=lb(),s=cb(0),u=cb(0),l=cb(0),c=cb(0),f=lb(),d=lb(),p=cb(!1);return sb(hb(e,yb((function(e){return e.scrollTop}))),t),sb(hb(e,yb((function(e){return e.scrollHeight}))),i),sb(t,o),{scrollContainerState:e,scrollTop:t,viewportHeight:a,headerHeight:s,fixedHeaderHeight:u,fixedFooterHeight:l,footerHeight:c,scrollHeight:i,smoothScrollTargetReached:r,scrollTo:f,scrollBy:d,statefulScrollTop:o,deviation:n,scrollingInProgress:p}}),[],{singleton:!0}),Vb={lvl:0};function qb(e,t,n){return{k:e,v:t,lvl:n,l:arguments.length>3&&void 0!==arguments[3]?arguments[3]:Vb,r:arguments.length>4&&void 0!==arguments[4]?arguments[4]:Vb}}function Hb(e){return e===Vb}function Wb(){return Vb}function Jb(e,t){if(Hb(e))return Vb;var n=e.k,r=e.l,o=e.r;if(t===n){if(Hb(r))return o;if(Hb(o))return r;var a=Qb(r),i=(0,v.Z)(a,2);return ok(tk(e,{k:i[0],v:i[1],l:ek(r)}))}return ok(tk(e,t2&&void 0!==arguments[2]?arguments[2]:"k";if(Hb(e))return[-1/0,void 0];if(Number(e[n])===t)return[e.k,e.v];if(Number(e[n])t&&(s=s.concat($b(a,t,n))),r>=t&&r<=n&&s.push({k:r,v:o}),r<=n&&(s=s.concat($b(i,t,n))),s}function Kb(e){return Hb(e)?[]:[].concat((0,i.Z)(Kb(e.l)),[{k:e.k,v:e.v}],(0,i.Z)(Kb(e.r)))}function Qb(e){return Hb(e.r)?[e.k,e.v]:Qb(e.r)}function ek(e){return Hb(e.r)?e.l:ok(tk(e,{r:ek(e.r)}))}function tk(e,t){return qb(void 0!==t.k?t.k:e.k,void 0!==t.v?t.v:e.v,void 0!==t.lvl?t.lvl:e.lvl,void 0!==t.l?t.l:e.l,void 0!==t.r?t.r:e.r)}function nk(e){return Hb(e)||e.lvl>e.r.lvl}function rk(e){return sk(uk(e))}function ok(e){var t=e.l,n=e.r,r=e.lvl;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(nk(t))return uk(tk(e,{lvl:r-1}));if(Hb(t)||Hb(t.r))throw new Error("Unexpected empty nodes");return tk(t.r,{l:tk(t,{r:t.r.l}),r:tk(e,{l:t.r.r,lvl:r-1}),lvl:r})}if(nk(e))return sk(tk(e,{lvl:r-1}));if(Hb(n)||Hb(n.l))throw new Error("Unexpected empty nodes");var o=n.l,a=nk(o)?n.lvl-1:n.lvl;return tk(o,{l:tk(e,{r:o.l,lvl:r-1}),r:sk(tk(n,{l:o.r,lvl:a})),lvl:o.lvl+1})}function ak(e,t,n){if(Hb(e))return[];var r=Yb(e,t)[0];return ik($b(e,r,n),(function(e){return{index:e.k,value:e.v}}))}function ik(e,t){var n=e.length;if(0===n)return[];for(var r=t(e[0]),o=r.index,a=r.value,i=[],s=1;s3&&void 0!==arguments[3]?arguments[3]:0,o=e.length-1;r<=o;){var a=Math.floor((r+o)/2),i=n(e[a],t);if(0===i)return a;if(-1===i){if(o-r<2)return a-1;o=a-1}else{if(o===r)return a;r=a+1}}throw new Error("Failed binary finding record in array - ".concat(e.join(","),", searched for ").concat(t))}function ck(e,t,n){return e[lk(e,t,n)]}var fk=Ob((function(){return{recalcInProgress:cb(!1)}}),[],{singleton:!0});function dk(e){var t=e.size,n=e.startIndex,r=e.endIndex;return function(e){return e.start===n&&(e.end===r||e.end===1/0)&&e.value===t}}function pk(e,t){for(var n=0,r=0;n3&&void 0!==arguments[3]?arguments[3]:0;return r>0&&(t=Math.max(t,ck(e,r,hk).offset)),ik(function(e,t,n,r){var o=lk(e,t,r),a=lk(e,n,r,o);return e.slice(o,a+1)}(e,t,n,mk),vk)}function yk(e,t,n,r){var o=e,a=0,i=0,s=0,u=0;if(0!==t){s=o[u=lk(o,t-1,hk)].offset;var l=Yb(n,t-1);a=l[0],i=l[1],o.length&&o[u].size===Yb(n,t)[1]&&(u-=1),o=o.slice(0,u+1)}else o=[];var c,f=(0,y.Z)(ak(n,t,1/0));try{for(f.s();!(c=f.n()).done;){var d=c.value,p=d.start,h=d.value,m=p-a,v=m*i+s+m*r;o.push({offset:v,size:h,index:p}),a=p,s=v,i=h}}catch(g){f.e(g)}finally{f.f()}return{offsetTree:o,lastIndex:a,lastOffset:s,lastSize:i}}function bk(e,t){var n=(0,v.Z)(t,4),r=n[0],o=n[1],a=n[2],i=n[3];r.length>0&&a("received item sizes",r,jb.DEBUG);var s=e.sizeTree,u=s,l=0;if(o.length>0&&Hb(s)&&2===r.length){var c=r[0].size,f=r[1].size;u=o.reduce((function(e,t){return Xb(Xb(e,t,c),t+1,f)}),u)}else{var d=function(e,t){var n,r=Hb(e)?0:1/0,o=(0,y.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,i=a.size,s=a.startIndex,u=a.endIndex;if(r=Math.min(r,s),Hb(e))e=Xb(e,0,i);else{var l=ak(e,s-1,u+1);if(!l.some(dk(a))){var c,f=!1,d=!1,p=(0,y.Z)(l);try{for(p.s();!(c=p.n()).done;){var h=c.value,m=h.start,v=h.end,g=h.value;f?(u>=m||i===g)&&(e=Jb(e,m)):(d=g!==i,f=!0),v>u&&u>=m&&g!==i&&(e=Xb(e,u+1,g))}}catch(b){p.e(b)}finally{p.f()}d&&(e=Xb(e,s,i))}}}}catch(b){o.e(b)}finally{o.f()}return[e,r]}(u,r),p=(0,v.Z)(d,2);u=p[0],l=p[1]}if(u===s)return e;var h=yk(e.offsetTree,l,u,i),m=h.offsetTree,g=h.lastIndex,b=h.lastSize,k=h.lastOffset;return{sizeTree:u,offsetTree:m,lastIndex:g,lastOffset:k,lastSize:b,groupOffsetTree:o.reduce((function(e,t){return Xb(e,t,kk(t,m,i))}),Wb()),groupIndices:o}}function kk(e,t,n){if(0===t.length)return 0;var r=ck(t,e,hk),o=r.offset,a=e-r.index,i=r.size*a+(a-1)*n+o;return i>0?i+n:i}function wk(e,t,n){if(function(e){return"undefined"!==typeof e.groupIndex}(e))return t.groupIndices[e.groupIndex]+1;var r=xk("LAST"===e.index?n:e.index,t);return r=Math.max(0,r,Math.min(n,r))}function xk(e,t){if(!Sk(t))return e;for(var n=0;t.groupIndices[n]<=e+n;)n++;return e+n}function Sk(e){return!Hb(e.groupOffsetTree)}var Tk={offsetHeight:"height",offsetWidth:"width"},Ek=Ob((function(e){var t=(0,v.Z)(e,2),n=t[0].log,r=t[1].recalcInProgress,o=lb(),a=lb(),s=db(a,0),u=lb(),l=lb(),c=cb(0),d=cb([]),p=cb(void 0),h=cb(void 0),m=cb((function(e,t){return Bb(e,Tk[t])})),g=cb(void 0),y=cb(0),b={offsetTree:[],sizeTree:Wb(),groupOffsetTree:Wb(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]},k=db(hb(o,Tb(d,n,y),kb(bk,b),vb()),b),w=db(hb(d,vb(),kb((function(e,t){return{prev:e.current,current:t}}),{prev:[],current:[]}),yb((function(e){return e.prev}))),[]);sb(hb(d,gb((function(e){return e.length>0})),Tb(k,y),yb((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1],o=t[2],a=n.reduce((function(e,t,n){return Xb(e,t,kk(t,r.offsetTree,o)||n)}),Wb());return f(f({},r),{},{groupIndices:n,groupOffsetTree:a})}))),k),sb(hb(a,Tb(k),gb((function(e){var t=(0,v.Z)(e,2);return t[0]0)ob(r,!0),ob(u,e+pk(e,t));else if(e<0){var n=ib(w);n.length>0&&(e-=pk(-e,n)),ob(l,e)}})),rb(hb(c,Tb(n)),(function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];n<0&&r("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:c},jb.ERROR)}));var T=fb(u);sb(hb(u,Tb(k),yb((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1],o=r.groupIndices.length>0,a=[],s=r.lastSize;if(o){for(var u=Gb(r.sizeTree,0),l=0,c=0;l0){if(Hb(r.sizeTree))return r;for(var a=Wb(),i=ib(w),s=0,u=0,l=0;s<-n;){l=i[u];var c=i[u+1]-l-1;u++,s+=c+1}if(a=Kb(r.sizeTree).reduce((function(e,t){var r=t.k,o=t.v;return Xb(e,Math.max(0,r+n),o)}),a),s!==-n)a=Xb(a,0,Gb(r.sizeTree,l)),a=Xb(a,1,Yb(r.sizeTree,1-n)[1]);return f(f({},r),{},{sizeTree:a},yk(r.offsetTree,0,a,o))}var d=Kb(r.sizeTree).reduce((function(e,t){var r=t.k,o=t.v;return Xb(e,Math.max(0,r+n),o)}),Wb());return f(f({},r),{},{sizeTree:d},yk(r.offsetTree,0,d,o))}))),k),{data:g,totalCount:a,sizeRanges:o,groupIndices:d,defaultItemSize:h,fixedItemSize:p,unshiftWith:u,shiftWith:l,shiftWithOffset:E,beforeUnshiftWith:T,firstItemIndex:c,gap:y,sizes:k,listRefresh:S,statefulTotalCount:s,trackItemSizes:x,itemSize:m}}),$y(Db,fk),{singleton:!0}),Ck="undefined"!==typeof document&&"scrollBehavior"in document.documentElement.style;function _k(e){var t="number"===typeof e?{index:e}:e;return t.align||(t.align="start"),t.behavior&&Ck||(t.behavior="auto"),t.offset||(t.offset=0),t}var Ok=Ob((function(e){var t=(0,v.Z)(e,3),n=t[0],r=n.sizes,o=n.totalCount,a=n.listRefresh,i=n.gap,s=t[1],u=s.scrollingInProgress,l=s.viewportHeight,c=s.scrollTo,f=s.smoothScrollTargetReached,d=s.headerHeight,p=s.footerHeight,h=s.fixedHeaderHeight,m=s.fixedFooterHeight,g=t[2].log,y=lb(),b=cb(0),k=null,w=null,x=null;function S(){k&&(k(),k=null),x&&(x(),x=null),w&&(clearTimeout(w),w=null),ob(u,!1)}return sb(hb(y,Tb(r,l,o,b,d,p,g),Tb(i,h,m),yb((function(e){var t=(0,v.Z)(e,4),n=(0,v.Z)(t[0],8),r=n[0],o=n[1],i=n[2],s=n[3],l=n[4],c=n[5],d=n[6],p=n[7],h=t[1],m=t[2],g=t[3],b=_k(r),T=b.align,E=b.behavior,C=b.offset,_=s-1,O=wk(b,o,_),I=kk(O,o.offsetTree,h)+c;"end"===T?(I+=m+Yb(o.sizeTree,O)[1]-i+g,O===_&&(I+=d)):"center"===T?I+=(m+Yb(o.sizeTree,O)[1]-i+g)/2:I-=l,C&&(I+=C);var N,P=function(e){S(),e?(p("retrying to scroll to",{location:r},jb.DEBUG),ob(y,r)):p("list did not change, scroll successful",{},jb.DEBUG)};if(S(),"smooth"===E){var A=!1;x=rb(a,(function(e){A=A||e})),k=ub(f,(function(){P(A)}))}else k=ub(hb(a,(N=150,function(e){var t=setTimeout((function(){e(!1)}),N);return function(n){n&&(e(!0),clearTimeout(t))}})),P);return w=setTimeout((function(){S()}),1200),ob(u,!0),p("scrolling from index to",{index:O,top:I,behavior:E},jb.DEBUG),{top:I,behavior:E}}))),c),{scrollToIndex:y,topListHeight:b}}),$y(Ek,Ub,Db),{singleton:!0});var Ik="up",Nk="down",Pk={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},Ak=Ob((function(e){var t=(0,v.Z)(e,1)[0],n=t.scrollContainerState,r=t.scrollTop,o=t.viewportHeight,a=t.headerHeight,i=t.footerHeight,s=t.scrollBy,u=cb(!1),l=cb(!0),c=lb(),f=lb(),d=cb(4),p=cb(0),h=db(hb(Eb(hb(Cb(r),wb(1),bb(!0)),hb(Cb(r),wb(1),bb(!1),Sb(100))),vb()),!1),m=db(hb(Eb(hb(s,bb(!0)),hb(s,bb(!1),Sb(200))),vb()),!1);sb(hb(_b(Cb(r),Cb(p)),yb((function(e){var t=(0,v.Z)(e,2);return t[0]<=t[1]})),vb()),l),sb(hb(l,xb(50)),f);var g=fb(hb(_b(n,Cb(o),Cb(a),Cb(i),Cb(d)),kb((function(e,t){var n,r,o=(0,v.Z)(t,5),a=o[0],i=a.scrollTop,s=a.scrollHeight,u=o[1],l=(o[2],o[3],{viewportHeight:u,scrollTop:i,scrollHeight:s});return i+u-s>-o[4]?(i>e.state.scrollTop?(n="SCROLLED_DOWN",r=e.state.scrollTop-i):(n="SIZE_DECREASED",r=e.state.scrollTop-i||e.scrollTopDelta),{atBottom:!0,state:l,atBottomBecause:n,scrollTopDelta:r}):{atBottom:!1,notAtBottomBecause:l.scrollHeight>e.state.scrollHeight?"SIZE_INCREASED":un+h-y&&(g=Ik),(s-=f)0){l=e[0].offset;var f=e[e.length-1];c=f.offset+f.size}var d=n-u,p=l,h=s+d*i+(d-1)*r-c;return{items:Xk(e,o,a),topItems:Xk(t,o,a),topListHeight:t.reduce((function(e,t){return t.size+e}),0),offsetTop:l,offsetBottom:h,top:p,bottom:c,totalCount:n,firstItemIndex:a}}function Kk(e,t,n,r,o,a){var i=0;if(n.groupIndices.length>0){var s,u=(0,y.Z)(n.groupIndices);try{for(u.s();!(s=u.n()).done;){if(s.value-i>=e)break;i++}}catch(d){u.e(d)}finally{u.f()}}var l=e+i,c=Dk(t,l),f=Array.from({length:l}).map((function(e,t){return{index:t+c,size:0,offset:0,data:a[t+c]}}));return $k(f,[],l,o,n,r)}var Qk=Ob((function(e){var t=(0,v.Z)(e,8),n=t[0],r=n.sizes,o=n.totalCount,a=n.data,i=n.firstItemIndex,s=n.gap,u=t[1],l=t[2],c=l.visibleRange,d=l.listBoundary,p=l.topListHeight,h=t[3],m=h.scrolledToInitialItem,g=h.initialTopMostItemIndex,b=t[4].topListHeight,k=t[5],w=t[6].didMount,x=t[7].recalcInProgress,S=cb([]),T=cb(0),E=lb();sb(u.topItemsIndexes,S);var C=db(hb(_b(w,x,Cb(c,Zk),Cb(o),Cb(r),Cb(g),m,Cb(S),Cb(i),Cb(s),a),gb((function(e){var t=(0,v.Z)(e,11),n=t[0],r=t[1],o=t[3],a=t[10],i=a&&a.length!==o;return n&&!r&&!i})),yb((function(e){var t=(0,v.Z)(e,11),n=(0,v.Z)(t[2],2),r=n[0],o=n[1],a=t[3],i=t[4],s=t[5],u=t[6],l=t[7],c=t[8],d=t[9],p=t[10],h=i,m=h.sizeTree,g=h.offsetTree,b=ib(T);if(0===a)return f(f({},Yk),{},{totalCount:a});if(0===r&&0===o)return 0===b?f(f({},Yk),{},{totalCount:a}):Kk(b,s,i,c,d,p||[]);if(Hb(m)){if(b>0)return null;var k=$k(function(e,t,n){if(Sk(t)){var r=xk(e,t);return[{index:Yb(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}(Dk(s,a),h,p),[],a,d,h,c);return k}var w=[];if(l.length>0){var x,S=l[0],E=l[l.length-1],C=0,_=(0,y.Z)(ak(m,S,E));try{for(_.s();!(x=_.n()).done;)for(var O=x.value,I=O.value,N=Math.max(O.start,S),P=Math.min(O.end,E),A=N;A<=P;A++)w.push({index:A,size:I,offset:C,data:p&&p[A]}),C+=I}catch(L){_.e(L)}finally{_.f()}}if(!u)return $k([],w,a,d,h,c);var j=l.length>0?l[l.length-1]+1:0,R=gk(g,r,o,j);if(0===R.length)return null;var D=a-1,F=Xy([],(function(e){var t,n=(0,y.Z)(R);try{for(n.s();!(t=n.n()).done;){var a=t.value,i=a.value,s=i.offset,u=a.start,l=i.size;if(i.offset=o);h++)e.push({index:h,size:l,offset:s,data:p&&p[h]}),s+=l+d}}catch(L){n.e(L)}finally{n.f()}}));return $k(F,w,a,d,h,c)})),gb((function(e){return null!==e})),vb()),Yk);return sb(hb(a,gb(tb),yb((function(e){return null==e?void 0:e.length}))),o),sb(hb(C,yb((function(e){return e.topListHeight}))),b),sb(b,p),sb(hb(C,yb((function(e){return[e.top,e.bottom]}))),d),sb(hb(C,yb((function(e){return e.items}))),E),f({listState:C,topItemsIndexes:S,endReached:fb(hb(C,gb((function(e){return e.items.length>0})),Tb(o,a),gb((function(e){var t=(0,v.Z)(e,2),n=t[0].items,r=t[1];return n[n.length-1].originalIndex===r-1})),yb((function(e){var t=(0,v.Z)(e,3);return[t[1]-1,t[2]]})),vb(Zk),yb((function(e){return(0,v.Z)(e,1)[0]})))),startReached:fb(hb(C,xb(200),gb((function(e){var t=e.items,n=e.topItems;return t.length>0&&t[0].originalIndex===n.length})),yb((function(e){return e.items[0].index})),vb())),rangeChanged:fb(hb(C,gb((function(e){return e.items.length>0})),yb((function(e){for(var t=e.items,n=0,r=t.length-1;"group"===t[n].type&&nn;)r--;return{startIndex:t[n].index,endIndex:t[r].index}})),vb(Uk))),itemsRendered:E,initialItemCount:T},k)}),$y(Ek,zk,Gk,Fk,Ok,Ak,jk,fk),{singleton:!0}),ew=Ob((function(e){var t=(0,v.Z)(e,4),n=t[0],r=n.sizes,o=n.firstItemIndex,a=n.data,i=n.gap,s=t[1].initialTopMostItemIndex,u=t[2],l=u.initialItemCount,c=u.listState;return sb(hb(t[3].didMount,Tb(l),gb((function(e){return 0!==(0,v.Z)(e,2)[1]})),Tb(s,r,o,i,a),yb((function(e){var t=(0,v.Z)(e,6),n=(0,v.Z)(t[0],2)[1],r=t[1],o=t[2],a=t[3],i=t[4],s=t[5];return Kk(n,r,o,a,i,void 0===s?[]:s)}))),c),{}}),$y(Ek,Fk,Qk,jk),{singleton:!0}),tw=Ob((function(e){var t=(0,v.Z)(e,1)[0].scrollVelocity,n=cb(!1),r=lb(),o=cb(!1);return sb(hb(t,Tb(o,n,r),gb((function(e){var t=(0,v.Z)(e,2);t[0];return!!t[1]})),yb((function(e){var t=(0,v.Z)(e,4),n=t[0],r=t[1],o=t[2],a=t[3],i=r.exit,s=r.enter;if(o){if(i(n,a))return!1}else if(s(n,a))return!0;return o})),vb()),n),rb(hb(_b(n,t,r),Tb(o)),(function(e){var t=(0,v.Z)(e,2),n=(0,v.Z)(t[0],3),r=n[0],o=n[1],a=n[2],i=t[1];return r&&i&&i.change&&i.change(o,a)})),{isSeeking:n,scrollSeekConfiguration:o,scrollVelocity:t,scrollSeekRangeChanged:r}}),$y(Ak),{singleton:!0}),nw=Ob((function(e){var t=(0,v.Z)(e,1)[0].topItemsIndexes,n=cb(0);return sb(hb(n,gb((function(e){return e>0})),yb((function(e){return Array.from({length:e}).map((function(e,t){return t}))}))),t),{topItemCount:n}}),$y(Qk)),rw=Ob((function(e){var t=(0,v.Z)(e,2),n=t[0],r=n.footerHeight,o=n.headerHeight,a=n.fixedHeaderHeight,i=n.fixedFooterHeight,s=t[1].listState,u=lb(),l=db(hb(_b(r,i,o,a,s),yb((function(e){var t=(0,v.Z)(e,5),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4];return n+r+o+a+i.offsetBottom+i.bottom}))),0);return sb(Cb(l),u),{totalListHeight:l,totalListHeightChanged:u}}),$y(Ub,Qk),{singleton:!0});function ow(e){var t,n=!1;return function(){return n||(n=!0,t=e()),t}}var aw=ow((function(){return/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)})),iw=Ob((function(e){var t=(0,v.Z)(e,6),n=t[0],r=n.scrollBy,o=n.scrollTop,a=n.deviation,i=n.scrollingInProgress,s=t[1],u=s.isScrolling,l=s.isAtBottom,c=s.scrollDirection,f=s.lastJumpDueToItemResize,d=t[2].listState,p=t[3],h=p.beforeUnshiftWith,m=p.shiftWithOffset,g=p.sizes,y=p.gap,b=t[4].log,k=t[5].recalcInProgress,w=fb(hb(d,Tb(f),kb((function(e,t){var n=(0,v.Z)(e,4),r=n[1],o=n[2],a=n[3],i=(0,v.Z)(t,2),s=i[0],u=s.items,l=s.totalCount,c=s.bottom,f=s.offsetBottom,d=i[1],p=c+f,h=0;o===l&&(r.length>0&&u.length>0&&(0===u[0].originalIndex&&0===r[0].originalIndex||0!==(h=p-a)&&(h+=d)));return[h,u,l,p]}),[0,[],0,0]),gb((function(e){return 0!==(0,v.Z)(e,1)[0]})),Tb(o,c,i,l,b,k),gb((function(e){var t=(0,v.Z)(e,7),n=t[1],r=t[2],o=t[3];return!t[6]&&!o&&0!==n&&r===Ik})),yb((function(e){var t=(0,v.Z)(e,6),n=(0,v.Z)(t[0],1)[0];return(0,t[5])("Upward scrolling compensation",{amount:n},jb.DEBUG),n}))));function x(e){e>0?(ob(r,{top:-e,behavior:"auto"}),ob(a,0)):(ob(a,0),ob(r,{top:-e,behavior:"auto"}))}return rb(hb(w,Tb(a,u)),(function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1];t[2]&&aw()?ob(a,r-n):x(-n)})),rb(hb(_b(db(u,!1),a,k),gb((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1],o=t[2];return!n&&!o&&0!==r})),yb((function(e){var t=(0,v.Z)(e,2);t[0];return t[1]})),xb(1)),x),sb(hb(m,yb((function(e){return{top:-e}}))),r),rb(hb(h,Tb(g,y),yb((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1],o=r.lastSize,a=r.groupIndices,i=r.sizeTree,s=t[2];function u(e){return e*(o+s)}if(0===a.length)return u(n);for(var l=0,c=Gb(i,0),f=0,d=0;fn&&(l-=c,p=n-f+1),f+=p,l+=u(p),d++}return l}))),(function(e){ob(a,e),requestAnimationFrame((function(){ob(r,{top:e}),requestAnimationFrame((function(){ob(a,0),ob(k,!1)}))}))})),{deviation:a}}),$y(Ub,Ak,Qk,Ek,Db,fk)),sw=Ob((function(e){var t=(0,v.Z)(e,3),n=t[0].didMount,r=t[1].scrollTo,o=t[2].listState,a=cb(0);return rb(hb(n,Tb(a),gb((function(e){return 0!==(0,v.Z)(e,2)[1]})),yb((function(e){return{top:(0,v.Z)(e,2)[1]}}))),(function(e){ub(hb(o,wb(1),gb((function(e){return e.items.length>1}))),(function(){requestAnimationFrame((function(){ob(r,e)}))}))})),{initialScrollTop:a}}),$y(jk,Ub,Qk),{singleton:!0}),uw=Ob((function(e){var t=(0,v.Z)(e,2),n=t[0].viewportHeight,r=t[1].totalListHeight,o=cb(!1);return{alignToBottom:o,paddingTopAddition:db(hb(_b(o,n,r),gb((function(e){return(0,v.Z)(e,1)[0]})),yb((function(e){var t=(0,v.Z)(e,3),n=t[1],r=t[2];return Math.max(0,n-r)})),xb(0),vb()),0)}}),$y(Ub,rw),{singleton:!0}),lw=Ob((function(e){var t=(0,v.Z)(e,1)[0],n=t.scrollTo,r=t.scrollContainerState,o=lb(),a=lb(),i=lb(),s=cb(!1),u=cb(void 0);return sb(hb(_b(o,a),yb((function(e){var t=(0,v.Z)(e,2),n=t[0],r=n.viewportHeight,o=n.scrollTop,a=n.scrollHeight,i=t[1].offsetTop;return{scrollTop:Math.max(0,o-i),scrollHeight:a,viewportHeight:r}}))),r),sb(hb(n,Tb(a),yb((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1].offsetTop;return f(f({},n),{},{top:n.top+r})}))),i),{useWindowScroll:s,customScrollParent:u,windowScrollContainerState:o,windowViewportRect:a,windowScrollTo:i}}),$y(Ub)),cw=function(e){var t=e.itemTop,n=e.itemBottom,r=e.viewportTop,o=e.viewportBottom,a=e.locationParams,i=a.behavior,s=a.align,l=u(a,Ly);return to?f(f({},l),{},{behavior:i,align:null!=s?s:"end"}):null},fw=Ob((function(e){var t=(0,v.Z)(e,3),n=t[0],r=n.sizes,o=n.totalCount,a=n.gap,i=t[1],s=i.scrollTop,l=i.viewportHeight,c=i.headerHeight,d=i.fixedHeaderHeight,p=i.fixedFooterHeight,h=i.scrollingInProgress,m=t[2].scrollToIndex,g=lb();return sb(hb(g,Tb(r,l,o,c,d,p,s),Tb(a),yb((function(e){var t=(0,v.Z)(e,2),n=(0,v.Z)(t[0],8),r=n[0],o=n[1],a=n[2],i=n[3],s=n[4],l=n[5],c=n[6],d=n[7],p=t[1],m=r.done,g=r.behavior,y=r.align,b=r.calculateViewLocation,k=void 0===b?cw:b,w=u(r,My),x=wk(r,o,i-1),S=kk(x,o.offsetTree,p)+s+l,T=k({itemTop:S,itemBottom:S+Yb(o.sizeTree,x)[1],viewportTop:d+l,viewportBottom:d+a-c,locationParams:f({behavior:g,align:y},w)});return T?m&&ub(hb(h,gb((function(e){return!1===e})),wb(ib(h)?1:2)),m):m&&m(),T})),gb((function(e){return null!==e}))),m),{scrollIntoView:g}}),$y(Ek,Ub,Ok,Qk,Db),{singleton:!0}),dw=Ob((function(e){var t=(0,v.Z)(e,5),n=t[0],r=n.sizes,o=n.sizeRanges,a=t[1].scrollTop,i=t[2].initialTopMostItemIndex,s=t[3].didMount,u=t[4],l=u.useWindowScroll,c=u.windowScrollContainerState,f=u.windowViewportRect,d=lb(),p=cb(void 0),h=cb(null),m=cb(null);return sb(c,h),sb(f,m),rb(hb(d,Tb(r,a,l,h,m)),(function(e){var t=(0,v.Z)(e,6),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],s=t[5],u=Kb(r.sizeTree).map((function(e,t,n){var r=e.k,o=e.v,a=n[t+1];return{startIndex:r,endIndex:a?a.k-1:1/0,size:o}}));a&&null!==i&&null!==s&&(o=i.scrollTop-s.offsetTop),n({ranges:u,scrollTop:o})})),sb(hb(p,gb(tb),yb(pw)),i),sb(hb(s,Tb(p),gb((function(e){return void 0!==(0,v.Z)(e,2)[1]})),vb(),yb((function(e){return(0,v.Z)(e,2)[1].ranges}))),o),{getState:d,restoreStateFrom:p}}),$y(Ek,Ub,Fk,jk,lw));function pw(e){return{offset:e.scrollTop,index:0,align:"start"}}var hw=Ob((function(e){var t=(0,v.Z)(e,10),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],s=t[5],u=t[6],l=t[7],c=t[8],d=t[9];return f(f(f(f(f(f(f(f(f(f({},n),r),o),a),i),s),u),l),c),d)}),$y(Gk,ew,jk,tw,rw,sw,uw,lw,fw,Db)),mw=Ob((function(e){var t=(0,v.Z)(e,11),n=t[0],r=n.totalCount,o=n.sizeRanges,a=n.fixedItemSize,i=n.defaultItemSize,s=n.trackItemSizes,l=n.itemSize,c=n.data,d=n.firstItemIndex,p=n.groupIndices,h=n.statefulTotalCount,m=n.gap,g=n.sizes,y=t[1],b=y.initialTopMostItemIndex,k=y.scrolledToInitialItem,w=t[2],x=t[3],S=t[4],T=t[5],E=T.listState,C=T.topItemsIndexes,_=u(T,By),O=t[6].scrollToIndex,I=(t[7],t[8].topItemCount),N=t[9].groupCounts,P=t[10];return sb(_.rangeChanged,P.scrollSeekRangeChanged),sb(hb(P.windowViewportRect,yb((function(e){return e.visibleHeight}))),w.viewportHeight),f(f(f(f(f({totalCount:r,data:c,firstItemIndex:d,sizeRanges:o,initialTopMostItemIndex:b,scrolledToInitialItem:k,topItemsIndexes:C,topItemCount:I,groupCounts:N,fixedItemHeight:a,defaultItemHeight:i,gap:m},S),{},{statefulTotalCount:h,listState:E,scrollToIndex:O,trackItemSizes:s,itemSize:l,groupIndices:p},_),P),w),{},{sizes:g},x)}),$y(Ek,Fk,Ub,dw,Mk,Qk,Ok,iw,nw,zk,hw)),vw="-webkit-sticky",gw="sticky",yw=ow((function(){if("undefined"===typeof document)return gw;var e=document.createElement("div");return e.style.position=vw,e.style.position===vw?vw:gw}));function bw(e,t){var n=r.useRef(null),o=r.useCallback((function(r){if(null!==r&&r.offsetParent){var o,a,i=r.getBoundingClientRect(),s=i.width;if(t){var u=t.getBoundingClientRect(),l=i.top-u.top;o=u.height-Math.max(0,l),a=l+t.scrollTop}else o=window.innerHeight-Math.max(0,i.top),a=i.top+window.pageYOffset;n.current={offsetTop:a,visibleHeight:o,visibleWidth:s},e(n.current)}}),[e,t]),a=Fb(o),i=a.callbackRef,s=a.ref,u=r.useCallback((function(){o(s.current)}),[o,s]);return r.useEffect((function(){if(t){t.addEventListener("scroll",u);var e=new ResizeObserver(u);return e.observe(t),function(){t.removeEventListener("scroll",u),e.unobserve(t)}}return window.addEventListener("scroll",u),window.addEventListener("resize",u),function(){window.removeEventListener("scroll",u),window.removeEventListener("resize",u)}}),[u,t]),i}var kw=r.createContext(void 0),ww=r.createContext(void 0);function xw(e){return e}var Sw=Ob((function(){var e=cb((function(e){return"Item ".concat(e)})),t=cb(null),n=cb((function(e){return"Group ".concat(e)})),r=cb({}),o=cb(xw),a=cb("div"),i=cb(nb),s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return db(hb(r,yb((function(t){return t[e]})),vb()),t)};return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:o,headerFooterTag:a,scrollerRef:i,FooterComponent:s("Footer"),HeaderComponent:s("Header"),TopItemListComponent:s("TopItemList"),ListComponent:s("List","div"),ItemComponent:s("Item","div"),GroupComponent:s("Group","div"),ScrollerComponent:s("Scroller","div"),EmptyPlaceholder:s("EmptyPlaceholder"),ScrollSeekPlaceholder:s("ScrollSeekPlaceholder")}})),Tw=Ob((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return f(f({},n),r)}),$y(mw,Sw)),Ew=function(e){var t=e.height;return r.createElement("div",{style:{height:t}})},Cw={position:yw(),zIndex:1,overflowAnchor:"none"},_w={overflowAnchor:"none"},Ow=r.memo((function(e){var t=e.showTopList,n=void 0!==t&&t,o=Vw("listState"),a=Uw("sizeRanges"),i=Vw("useWindowScroll"),s=Vw("customScrollParent"),u=Uw("windowScrollContainerState"),l=Uw("scrollContainerState"),c=s||i?u:l,d=Vw("itemContent"),p=Vw("context"),h=Vw("groupContent"),m=Vw("trackItemSizes"),g=Mb(a,Vw("itemSize"),m,n?nb:c,Vw("log"),Uw("gap"),s).callbackRef,y=r.useState(0),b=(0,v.Z)(y,2),k=b[0],w=b[1];qw("deviation",(function(e){k!==e&&w(e)}));var x=Vw("EmptyPlaceholder"),S=Vw("ScrollSeekPlaceholder")||Ew,T=Vw("ListComponent"),E=Vw("ItemComponent"),C=Vw("GroupComponent"),_=Vw("computeItemKey"),O=Vw("isSeeking"),I=Vw("groupIndices").length>0,N=Vw("paddingTopAddition"),P=Vw("scrolledToInitialItem"),A=n?{}:f({boxSizing:"border-box",paddingTop:o.offsetTop+N,paddingBottom:o.offsetBottom,marginTop:k},P?{}:{visibility:"hidden"});return!n&&0===o.totalCount&&x?r.createElement(x,Aw(x,p)):r.createElement(T,f(f({},Aw(T,p)),{},{ref:g,style:A,"data-test-id":n?"virtuoso-top-item-list":"virtuoso-item-list"}),(n?o.topItems:o.items).map((function(e){var t=e.originalIndex,n=_(t+o.firstItemIndex,e.data,p);return O?r.createElement(S,f(f({},Aw(S,p)),{},{key:n,index:e.index,height:e.size,type:e.type||"item"},"group"===e.type?{}:{groupIndex:e.groupIndex})):"group"===e.type?r.createElement(C,f(f({},Aw(C,p)),{},{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,style:Cw}),h(e.index,p)):r.createElement(E,f(f({},Aw(E,p)),{},{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,"data-item-group-index":e.groupIndex,item:e.data,style:_w}),I?d(e.index,e.groupIndex,e.data,p):d(e.index,e.data,p))})))})),Iw={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},Nw={width:"100%",height:"100%",position:"absolute",top:0},Pw={width:"100%",position:yw(),top:0,zIndex:1};function Aw(e,t){if("string"!==typeof e)return{context:t}}var jw=r.memo((function(){var e=Vw("HeaderComponent"),t=Uw("headerHeight"),n=Vw("headerFooterTag"),o=Lb((function(e){return t(Bb(e,"height"))})),a=Vw("context");return e?r.createElement(n,{ref:o},r.createElement(e,Aw(e,a))):null})),Rw=r.memo((function(){var e=Vw("FooterComponent"),t=Uw("footerHeight"),n=Vw("headerFooterTag"),o=Lb((function(e){return t(Bb(e,"height"))})),a=Vw("context");return e?r.createElement(n,{ref:o},r.createElement(e,Aw(e,a))):null}));function Dw(e){var t=e.usePublisher,n=e.useEmitter,o=e.useEmitterValue;return r.memo((function(e){var a=e.style,i=e.children,s=u(e,zy),l=t("scrollContainerState"),c=o("ScrollerComponent"),d=t("smoothScrollTargetReached"),p=o("scrollerRef"),h=o("context"),m=Zb(l,d,c,p),v=m.scrollerRef,g=m.scrollByCallback,y=m.scrollToCallback;return n("scrollTo",y),n("scrollBy",g),r.createElement(c,f(f({ref:v,style:f(f({},Iw),a),"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0},s),Aw(c,h)),i)}))}function Fw(e){var t=e.usePublisher,n=e.useEmitter,o=e.useEmitterValue;return r.memo((function(e){var a=e.style,i=e.children,s=u(e,Zy),l=t("windowScrollContainerState"),c=o("ScrollerComponent"),d=t("smoothScrollTargetReached"),p=o("totalListHeight"),h=o("deviation"),m=o("customScrollParent"),v=o("context"),g=Zb(l,d,c,nb,m),y=g.scrollerRef,b=g.scrollByCallback,k=g.scrollToCallback;return Ab((function(){return y.current=m||window,function(){y.current=null}}),[y,m]),n("windowScrollTo",k),n("scrollBy",b),r.createElement(c,f(f({style:f(f({position:"relative"},a),0!==p?{height:p+h}:{}),"data-virtuoso-scroller":!0},s),Aw(c,v)),i)}))}var Lw=function(e){var t=e.children,n=r.useContext(kw),o=Uw("viewportHeight"),a=Uw("fixedItemHeight"),i=Lb(Wy(o,(function(e){return Bb(e,"height")})));return r.useEffect((function(){n&&(o(n.viewportHeight),a(n.itemHeight))}),[n,o,a]),r.createElement("div",{style:Nw,ref:i,"data-viewport-type":"element"},t)},Mw=function(e){var t=e.children,n=r.useContext(kw),o=Uw("windowViewportRect"),a=Uw("fixedItemHeight"),i=Vw("customScrollParent"),s=bw(o,i);return r.useEffect((function(){n&&(a(n.itemHeight),o({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,o,a]),r.createElement("div",{ref:s,style:Nw,"data-viewport-type":"window"},t)},Bw=function(e){var t=e.children,n=Vw("TopItemListComponent"),o=Vw("headerHeight"),a=f(f({},Pw),{},{marginTop:"".concat(o,"px")}),i=Vw("context");return r.createElement(n||"div",{style:a,context:i},t)},zw=Pb(Tw,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo((function(e){var t=Vw("useWindowScroll"),n=Vw("topItemsIndexes").length>0,o=Vw("customScrollParent"),a=o||t?Ww:Hw,i=o||t?Mw:Lw;return r.createElement(a,f({},e),n&&r.createElement(Bw,null,r.createElement(Ow,{showTopList:!0})),r.createElement(i,null,r.createElement(jw,null),r.createElement(Ow,null),r.createElement(Rw,null)))}))),Zw=zw.Component,Uw=zw.usePublisher,Vw=zw.useEmitterValue,qw=zw.useEmitter,Hw=Dw({usePublisher:Uw,useEmitterValue:Vw,useEmitter:qw}),Ww=Fw({usePublisher:Uw,useEmitterValue:Vw,useEmitter:qw}),Jw=Zw,Gw={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Yw={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},Xw=Math.round,$w=Math.ceil,Kw=Math.floor,Qw=Math.min,ex=Math.max;function tx(e,t,n){return Array.from({length:t-e+1}).map((function(t,r){var o=null===n?null:n[r+e];return{index:r+e,data:o}}))}function nx(e,t){return e&&e.column===t.column&&e.row===t.row}function rx(e,t){return e&&e.width===t.width&&e.height===t.height}var ox=Ob((function(e){var t=(0,v.Z)(e,7),n=t[0],r=n.overscan,o=n.visibleRange,a=n.listBoundary,i=t[1],s=i.scrollTop,u=i.viewportHeight,l=i.scrollBy,c=i.scrollTo,d=i.smoothScrollTargetReached,p=i.scrollContainerState,h=i.footerHeight,m=i.headerHeight,g=t[2],y=t[3],b=t[4],k=b.propsReady,w=b.didMount,x=t[5],S=x.windowViewportRect,T=x.useWindowScroll,E=x.customScrollParent,C=x.windowScrollContainerState,_=x.windowScrollTo,O=t[6],I=cb(0),N=cb(0),P=cb(Gw),A=cb({height:0,width:0}),j=cb({height:0,width:0}),R=lb(),D=lb(),F=cb(0),L=cb(null),M=cb({row:0,column:0}),B=lb(),z=lb(),Z=cb(!1),U=cb(0),V=cb(!0),q=cb(!1);rb(hb(w,Tb(U),gb((function(e){var t=(0,v.Z)(e,2);t[0];return!!t[1]}))),(function(){ob(V,!1),ob(N,0)})),rb(hb(_b(w,V,j,A,U,q),gb((function(e){var t=(0,v.Z)(e,6),n=t[0],r=t[1],o=t[2],a=t[3],i=t[5];return n&&!r&&0!==o.height&&0!==a.height&&!i}))),(function(e){var t=(0,v.Z)(e,5)[4];ob(q,!0),Rk(1,(function(){ob(R,t)})),ub(hb(s),(function(){ob(a,[0,0]),ob(V,!0)}))})),sb(hb(z,gb((function(e){return void 0!==e&&null!==e&&e.scrollTop>0})),bb(0)),N),rb(hb(w,Tb(z),gb((function(e){var t=(0,v.Z)(e,2)[1];return void 0!==t&&null!==t}))),(function(e){var t=(0,v.Z)(e,2)[1];t&&(ob(A,t.viewport),ob(j,null==t?void 0:t.item),ob(M,t.gap),t.scrollTop>0&&(ob(Z,!0),ub(hb(s,wb(1)),(function(e){ob(Z,!1)})),ob(c,{top:t.scrollTop})))})),sb(hb(A,yb((function(e){return e.height}))),u),sb(hb(_b(Cb(A,rx),Cb(j,rx),Cb(M,(function(e,t){return e&&e.column===t.column&&e.row===t.row})),Cb(s)),yb((function(e){var t=(0,v.Z)(e,4);return{viewport:t[0],item:t[1],gap:t[2],scrollTop:t[3]}}))),B),sb(hb(_b(Cb(I),o,Cb(M,nx),Cb(j,rx),Cb(A,rx),Cb(L),Cb(N),Cb(Z),Cb(V),Cb(U)),gb((function(e){return!(0,v.Z)(e,8)[7]})),yb((function(e){var t=(0,v.Z)(e,10),n=t[0],r=(0,v.Z)(t[1],2),o=r[0],a=r[1],i=t[2],s=t[3],u=t[4],l=t[5],c=t[6],d=t[8],p=t[9],h=i.row,m=i.column,g=s.height,y=s.width,b=u.width;if(0===c&&(0===n||0===b))return Gw;if(0===y){var k=Dk(p,n);return function(e){return f(f({},Yw),{},{items:e})}(tx(k,0===k?Math.max(c-1,0):k,l))}var w,x,S=sx(b,y,m);d?0===o&&0===a&&c>0?(w=0,x=c-1):(w=S*Kw((o+h)/(g+h)),x=S*$w((a+h)/(g+h))-1,x=Qw(n-1,ex(x,S-1)),w=Qw(x,ex(0,w))):(w=0,x=-1);var T=tx(w,x,l),E=ax(u,i,s,T),C=E.top,_=E.bottom,O=$w(n/S);return{items:T,offsetTop:C,offsetBottom:O*g+(O-1)*h-_,top:C,bottom:_,itemHeight:g,itemWidth:y}}))),P),sb(hb(L,gb((function(e){return null!==e})),yb((function(e){return e.length}))),I),sb(hb(_b(A,j,P,M),gb((function(e){var t=(0,v.Z)(e,3),n=t[0],r=t[1];return t[2].items.length>0&&0!==r.height&&0!==n.height})),yb((function(e){var t=(0,v.Z)(e,4),n=t[0],r=t[1],o=t[2].items,a=ax(n,t[3],r,o);return[a.top,a.bottom]})),vb(Zk)),a);var H=cb(!1);sb(hb(s,Tb(H),yb((function(e){var t=(0,v.Z)(e,2),n=t[0];return t[1]||0!==n}))),H);var W=fb(hb(Cb(P),gb((function(e){return e.items.length>0})),Tb(I,H),gb((function(e){var t=(0,v.Z)(e,3),n=t[0].items,r=t[1];return t[2]&&n[n.length-1].index===r-1})),yb((function(e){return(0,v.Z)(e,2)[1]-1})),vb())),J=fb(hb(Cb(P),gb((function(e){var t=e.items;return t.length>0&&0===t[0].index})),bb(0),vb())),G=fb(hb(Cb(P),Tb(Z),gb((function(e){var t=(0,v.Z)(e,2),n=t[0].items,r=t[1];return n.length>0&&!r})),yb((function(e){var t=(0,v.Z)(e,1)[0].items;return{startIndex:t[0].index,endIndex:t[t.length-1].index}})),vb(Uk),xb(0)));sb(G,y.scrollSeekRangeChanged),sb(hb(R,Tb(A,j,I,M),yb((function(e){var t=(0,v.Z)(e,5),n=t[0],r=t[1],o=t[2],a=t[3],i=t[4],s=_k(n),u=s.align,l=s.behavior,c=s.offset,f=s.index;"LAST"===f&&(f=a-1);var d=ix(r,i,o,f=ex(0,f,Qw(a-1,f)));return"end"===u?d=Xw(d-r.height+o.height):"center"===u&&(d=Xw(d-r.height/2+o.height/2)),c&&(d+=c),{top:d,behavior:l}}))),c);var Y=db(hb(P,yb((function(e){return e.offsetBottom+e.bottom}))),0);return sb(hb(S,yb((function(e){return{width:e.visibleWidth,height:e.visibleHeight}}))),A),f(f(f({data:L,totalCount:I,viewportDimensions:A,itemDimensions:j,scrollTop:s,scrollHeight:D,overscan:r,scrollBy:l,scrollTo:c,scrollToIndex:R,smoothScrollTargetReached:d,windowViewportRect:S,windowScrollTo:_,useWindowScroll:T,customScrollParent:E,windowScrollContainerState:C,deviation:F,scrollContainerState:p,footerHeight:h,headerHeight:m,initialItemCount:N,gap:M,restoreStateFrom:z},y),{},{initialTopMostItemIndex:U,gridState:P,totalListHeight:Y},g),{},{startReached:J,endReached:W,rangeChanged:G,stateChanged:B,propsReady:k,stateRestoreInProgress:Z},O)}),$y(Gk,Ub,Ak,tw,jk,lw,Db));function ax(e,t,n,r){var o=n.height;return void 0===o||0===r.length?{top:0,bottom:0}:{top:ix(e,t,n,r[0].index),bottom:ix(e,t,n,r[r.length-1].index)+o}}function ix(e,t,n,r){var o=sx(e.width,n.width,t.column),a=Kw(r/o),i=a*n.height+ex(0,a-1)*t.row;return i>0?i+t.row:i}function sx(e,t,n){return ex(1,Kw((e+n)/(Kw(t)+n)))}var ux=Ob((function(){var e=cb((function(e){return"Item ".concat(e)})),t=cb({}),n=cb(null),r=cb("virtuoso-grid-item"),o=cb("virtuoso-grid-list"),a=cb(xw),i=cb("div"),s=cb(nb),u=function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return db(hb(t,yb((function(t){return t[e]})),vb()),n)};return{context:n,itemContent:e,components:t,computeItemKey:a,itemClassName:r,listClassName:o,headerFooterTag:i,scrollerRef:s,FooterComponent:u("Footer"),HeaderComponent:u("Header"),ListComponent:u("List","div"),ItemComponent:u("Item","div"),ScrollerComponent:u("Scroller","div"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder","div")}})),lx=Ob((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return f(f({},n),r)}),$y(ox,ux)),cx=r.memo((function(){var e=gx("gridState"),t=gx("listClassName"),n=gx("itemClassName"),o=gx("itemContent"),a=gx("computeItemKey"),i=gx("isSeeking"),s=vx("scrollHeight"),u=gx("ItemComponent"),l=gx("ListComponent"),c=gx("ScrollSeekPlaceholder"),d=gx("context"),p=vx("itemDimensions"),h=vx("gap"),m=gx("log"),v=gx("stateRestoreInProgress"),g=Lb((function(e){var t=e.parentElement.parentElement.scrollHeight;s(t);var n=e.firstChild;if(n){var r=n.getBoundingClientRect(),o=r.width,a=r.height;p({width:o,height:a})}h({row:wx("row-gap",getComputedStyle(e).rowGap,m),column:wx("column-gap",getComputedStyle(e).columnGap,m)})}));return v?null:r.createElement(l,f(f({ref:g,className:t},Aw(l,d)),{},{style:{paddingTop:e.offsetTop,paddingBottom:e.offsetBottom},"data-test-id":"virtuoso-item-list"}),e.items.map((function(t){var s=a(t.index,t.data,d);return i?r.createElement(c,f(f({key:s},Aw(c,d)),{},{index:t.index,height:e.itemHeight,width:e.itemWidth})):r.createElement(u,f(f({},Aw(u,d)),{},{className:n,"data-index":t.index,key:s}),o(t.index,t.data,d))})))})),fx=r.memo((function(){var e=gx("HeaderComponent"),t=vx("headerHeight"),n=gx("headerFooterTag"),o=Lb((function(e){return t(Bb(e,"height"))})),a=gx("context");return e?r.createElement(n,{ref:o},r.createElement(e,Aw(e,a))):null})),dx=r.memo((function(){var e=gx("FooterComponent"),t=vx("footerHeight"),n=gx("headerFooterTag"),o=Lb((function(e){return t(Bb(e,"height"))})),a=gx("context");return e?r.createElement(n,{ref:o},r.createElement(e,Aw(e,a))):null})),px=function(e){var t=e.children,n=r.useContext(ww),o=vx("itemDimensions"),a=vx("viewportDimensions"),i=Lb((function(e){a(e.getBoundingClientRect())}));return r.useEffect((function(){n&&(a({height:n.viewportHeight,width:n.viewportWidth}),o({height:n.itemHeight,width:n.itemWidth}))}),[n,a,o]),r.createElement("div",{style:Nw,ref:i},t)},hx=function(e){var t=e.children,n=r.useContext(ww),o=vx("windowViewportRect"),a=vx("itemDimensions"),i=gx("customScrollParent"),s=bw(o,i);return r.useEffect((function(){n&&(a({height:n.itemHeight,width:n.itemWidth}),o({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:n.viewportWidth}))}),[n,o,a]),r.createElement("div",{ref:s,style:Nw},t)},mx=Pb(lx,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},r.memo((function(e){var t=Object.assign({},(Cg(e),e)),n=gx("useWindowScroll"),o=gx("customScrollParent"),a=o||n?kx:bx,i=o||n?hx:px;return r.createElement(a,f({},t),r.createElement(i,null,r.createElement(fx,null),r.createElement(cx,null),r.createElement(dx,null)))}))),vx=(mx.Component,mx.usePublisher),gx=mx.useEmitterValue,yx=mx.useEmitter,bx=Dw({usePublisher:vx,useEmitterValue:gx,useEmitter:yx}),kx=Fw({usePublisher:vx,useEmitterValue:gx,useEmitter:yx});function wx(e,t,n){return"normal"===t||(null==t?void 0:t.endsWith("px"))||n("".concat(e," was not resolved to pixel value correctly"),t,jb.WARN),"normal"===t?0:parseInt(null!=t?t:"0",10)}var xx=Ob((function(){var e=cb((function(e){return r.createElement("td",null,"Item $",e)})),t=cb(null),n=cb(null),o=cb(null),a=cb({}),i=cb(xw),s=cb(nb),u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return db(hb(a,yb((function(t){return t[e]})),vb()),t)};return{context:t,itemContent:e,fixedHeaderContent:n,fixedFooterContent:o,components:a,computeItemKey:i,scrollerRef:s,TableComponent:u("Table","table"),TableHeadComponent:u("TableHead","thead"),TableFooterComponent:u("TableFoot","tfoot"),TableBodyComponent:u("TableBody","tbody"),TableRowComponent:u("TableRow","tr"),ScrollerComponent:u("Scroller","div"),EmptyPlaceholder:u("EmptyPlaceholder"),ScrollSeekPlaceholder:u("ScrollSeekPlaceholder"),FillerRow:u("FillerRow")}})),Sx=Ob((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];return f(f({},n),r)}),$y(mw,xx)),Tx=function(e){var t=e.height;return r.createElement("tr",null,r.createElement("td",{style:{height:t}}))},Ex=function(e){var t=e.height;return r.createElement("tr",null,r.createElement("td",{style:{height:t,padding:0,border:0}}))},Cx={overflowAnchor:"none"},_x=r.memo((function(){var e=Ax("listState"),t=Px("sizeRanges"),n=Ax("useWindowScroll"),o=Ax("customScrollParent"),a=Px("windowScrollContainerState"),s=Px("scrollContainerState"),u=o||n?a:s,l=Ax("itemContent"),c=Ax("trackItemSizes"),d=Mb(t,Ax("itemSize"),c,u,Ax("log"),void 0,o),p=d.callbackRef,h=d.ref,m=r.useState(0),g=(0,v.Z)(m,2),y=g[0],b=g[1];jx("deviation",(function(e){y!==e&&(h.current.style.marginTop="".concat(e,"px"),b(e))}));var k=Ax("EmptyPlaceholder"),w=Ax("ScrollSeekPlaceholder")||Tx,x=Ax("FillerRow")||Ex,S=Ax("TableBodyComponent"),T=Ax("TableRowComponent"),E=Ax("computeItemKey"),C=Ax("isSeeking"),_=Ax("paddingTopAddition"),O=Ax("firstItemIndex"),I=Ax("statefulTotalCount"),N=Ax("context");if(0===I&&k)return r.createElement(k,Aw(k,N));var P=e.offsetTop+_+y,A=e.offsetBottom,j=P>0?r.createElement(x,{height:P,key:"padding-top",context:N}):null,R=A>0?r.createElement(x,{height:A,key:"padding-bottom",context:N}):null,D=e.items.map((function(e){var t=e.originalIndex,n=E(t+O,e.data,N);return C?r.createElement(w,f(f({},Aw(w,N)),{},{key:n,index:e.index,height:e.size,type:e.type||"item"})):r.createElement(T,f(f({},Aw(T,N)),{},{key:n,"data-index":t,"data-known-size":e.size,"data-item-index":e.index,item:e.data,style:Cx}),l(e.index,e.data,N))}));return r.createElement(S,f({ref:p,"data-test-id":"virtuoso-item-list"},Aw(S,N)),[j].concat((0,i.Z)(D),[R]))})),Ox=function(e){var t=e.children,n=r.useContext(kw),o=Px("viewportHeight"),a=Px("fixedItemHeight"),i=Lb(Wy(o,(function(e){return Bb(e,"height")})));return r.useEffect((function(){n&&(o(n.viewportHeight),a(n.itemHeight))}),[n,o,a]),r.createElement("div",{style:Nw,ref:i,"data-viewport-type":"element"},t)},Ix=function(e){var t=e.children,n=r.useContext(kw),o=Px("windowViewportRect"),a=Px("fixedItemHeight"),i=Ax("customScrollParent"),s=bw(o,i);return r.useEffect((function(){n&&(a(n.itemHeight),o({offsetTop:0,visibleHeight:n.viewportHeight,visibleWidth:100}))}),[n,o,a]),r.createElement("div",{ref:s,style:Nw,"data-viewport-type":"window"},t)},Nx=Pb(Sx,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",firstItemIndex:"firstItemIndex",itemContent:"itemContent",fixedHeaderContent:"fixedHeaderContent",fixedFooterContent:"fixedFooterContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",topItemCount:"topItemCount",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",groupCounts:"groupCounts",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},r.memo((function(e){var t=Ax("useWindowScroll"),n=Ax("customScrollParent"),o=Px("fixedHeaderHeight"),a=Px("fixedFooterHeight"),i=Ax("fixedHeaderContent"),s=Ax("fixedFooterContent"),u=Ax("context"),l=Lb(Wy(o,(function(e){return Bb(e,"height")}))),c=Lb(Wy(a,(function(e){return Bb(e,"height")}))),d=n||t?Dx:Rx,p=n||t?Ix:Ox,h=Ax("TableComponent"),m=Ax("TableHeadComponent"),v=Ax("TableFooterComponent"),g=i?r.createElement(m,f({key:"TableHead",style:{zIndex:2,position:"sticky",top:0},ref:l},Aw(m,u)),i()):null,y=s?r.createElement(v,f({key:"TableFoot",style:{zIndex:1,position:"sticky",bottom:0},ref:c},Aw(v,u)),s()):null;return r.createElement(d,f({},e),r.createElement(p,null,r.createElement(h,f({style:{borderSpacing:0,overflowAnchor:"none"}},Aw(h,u)),[g,r.createElement(_x,{key:"TableBody"}),y])))}))),Px=(Nx.Component,Nx.usePublisher),Ax=Nx.useEmitterValue,jx=Nx.useEmitter,Rx=Dw({usePublisher:Px,useEmitterValue:Ax,useEmitter:jx}),Dx=Fw({usePublisher:Px,useEmitterValue:Ax,useEmitter:jx}),Fx=["as","viewBox","color","focusable","children","className","__css"],Lx={path:(0,gr.jsxs)("g",{stroke:"currentColor",strokeWidth:"1.5",children:[(0,gr.jsx)("path",{strokeLinecap:"round",fill:"none",d:"M9,9a3,3,0,1,1,4,2.829,1.5,1.5,0,0,0-1,1.415V14.25"}),(0,gr.jsx)("path",{fill:"currentColor",strokeLinecap:"round",d:"M12,17.25a.375.375,0,1,0,.375.375A.375.375,0,0,0,12,17.25h0"}),(0,gr.jsx)("circle",{fill:"none",strokeMiterlimit:"10",cx:"12",cy:"12",r:"11.25"})]}),viewBox:"0 0 24 24"},Mx=g((function(e,t){var n=e.as,r=e.viewBox,o=e.color,a=void 0===o?"currentColor":o,i=e.focusable,s=void 0!==i&&i,l=e.children,c=e.className,d=e.__css,p=u(e,Fx),h=T("chakra-icon",c),m=jr("Icon",e),v={ref:t,focusable:s,className:h,__css:f(f({w:"1em",h:"1em",display:"inline-block",lineHeight:"1em",flexShrink:0,color:a},d),m)},g=null!=r?r:Lx.viewBox;if(n&&"string"!==typeof n)return(0,gr.jsx)(vr.svg,f(f({as:n},v),p));var y=null!=l?l:Lx.path;return(0,gr.jsx)(vr.svg,f(f(f({verticalAlign:"middle",viewBox:g},v),p),{},{children:y}))}));Mx.displayName="Icon";function Bx(e){var t=e.viewBox,n=void 0===t?"0 0 24 24":t,o=e.d,a=e.displayName,i=e.defaultProps,s=void 0===i?{}:i,u=r.Children.toArray(e.path),l=g((function(e,t){return(0,gr.jsx)(Mx,f(f(f({ref:t,viewBox:n},s),e),{},{children:u.length?u:(0,gr.jsx)("path",{fill:"currentColor",d:o})}))}));return l.displayName=a,l}var zx=Bx({viewBox:"0 0 14 14",path:(0,gr.jsx)("g",{fill:"currentColor",children:(0,gr.jsx)("polygon",{points:"5.5 11.9993304 14 3.49933039 12.5 2 5.5 8.99933039 1.5 4.9968652 0 6.49933039"})})}),Zx=Bx({d:"M11.983,0a12.206,12.206,0,0,0-8.51,3.653A11.8,11.8,0,0,0,0,12.207,11.779,11.779,0,0,0,11.8,24h.214A12.111,12.111,0,0,0,24,11.791h0A11.766,11.766,0,0,0,11.983,0ZM10.5,16.542a1.476,1.476,0,0,1,1.449-1.53h.027a1.527,1.527,0,0,1,1.523,1.47,1.475,1.475,0,0,1-1.449,1.53h-.027A1.529,1.529,0,0,1,10.5,16.542ZM11,12.5v-6a1,1,0,0,1,2,0v6a1,1,0,1,1-2,0Z",displayName:"WarningIcon"}),Ux=Bx({d:"M11.2857,6.05714 L10.08571,4.85714 L7.85714,7.14786 L7.85714,1 L6.14286,1 L6.14286,7.14786 L3.91429,4.85714 L2.71429,6.05714 L7,10.42857 L11.2857,6.05714 Z M1,11.2857 L1,13 L13,13 L13,11.2857 L1,11.2857 Z",displayName:"DownloadIcon",viewBox:"0 0 14 14"}),Vx=Bx({d:"M21,5H3C2.621,5,2.275,5.214,2.105,5.553C1.937,5.892,1.973,6.297,2.2,6.6l9,12 c0.188,0.252,0.485,0.4,0.8,0.4s0.611-0.148,0.8-0.4l9-12c0.228-0.303,0.264-0.708,0.095-1.047C21.725,5.214,21.379,5,21,5z",displayName:"TriangleDownIcon"}),qx=function(){var e=m(p().mark((function e(t,n){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Vs(t,n);case 2:if(!("enclaveInfo"in(r=e.sent))){e.next=5;break}return e.abrupt("return",Object.keys(r.enclaveInfo).map((function(e){var t=r.enclaveInfo[e];return t.containersStatus?{uuid:t.enclaveUuid,name:t.name,created:t.creationTime,status:t.apiContainerStatus,host:t.apiContainerInfo.bridgeIpAddress,port:t.apiContainerInfo.grpcPortInsideEnclave,mode:t.mode}:{}})));case 5:return e.abrupt("return",[]);case 6:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),Hx=function(){var e=m(p().mark((function e(t,n,r){var o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Js(r,t,n);case 2:return o=e.sent,o.enclaveInfo,e.abrupt("return",{});case 5:case"end":return e.stop()}}),e)})));return function(t,n,r){return e.apply(this,arguments)}}(),Wx=function(){var e=m(p().mark((function e(t,n,r,o){var a,i;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return"","info",e.next=4,Gs(r,"info","",t,n,o);case 4:return a=e.sent,i=a.enclaveInfo,e.abrupt("return",{uuid:i.enclaveUuid,name:i.name,created:i.creationTime,status:i.apiContainerStatus,host:i.apiContainerInfo.bridgeIpAddress,port:i.apiContainerInfo.grpcPortInsideEnclave});case 7:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),Jx=function(){var e=m(p().mark((function e(t,n,r,o,a,i){var s,u;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return s=Zs(o),u={enclaveIdentifier:n,serviceUuidSet:(0,l.Z)({},r,!0),followLogs:a,returnAllLogs:!1,numLogLines:i},e.abrupt("return",s.getServiceLogs(u,{signal:t.signal}));case 3:case"end":return e.stop()}}),e)})));return function(t,n,r,o,a,i){return e.apply(this,arguments)}}(),Gx=function(){var e=m(p().mark((function e(t,n,r,o,a,i){var s;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Ys(t,n,r,o,a,i);case 2:return s=e.sent,e.abrupt("return",s);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r,o,a,i){return e.apply(this,arguments)}}(),Yx="error",Xx="progressInfo",$x="runFinishedEvent",Kx=Xx,Qx=function(e){var t=e.packageId,n=e.enclave,o=e.args,a=e.appData,s=Ga(),u=(0,r.useState)(!1),l=(0,v.Z)(u,2),c=l[0],f=l[1],d=(0,r.useState)([]),h=(0,v.Z)(d,2),g=h[0],y=h[1],b=(0,r.useState)(""),k=(0,v.Z)(b,2),w=k[0],x=k[1],S=(0,r.useState)(""),T=(0,v.Z)(S,2),E=T[0],C=T[1],_=(0,r.useState)([]),O=(0,v.Z)(_,2),I=O[0],N=O[1],P=function(){var e=m(p().mark((function e(t){var n,r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,eu(t.host,t.port,a.jwtToken,a.apiHost);case 2:n=e.sent,(r=n.services).length>I.length&&N(r);case 5:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),A=function(e){if("instruction"===e.case&&y((function(t){return[].concat((0,i.Z)(t),[e.value.executableInstruction])})),e.case===Xx&&e.value.currentStepInfo.length>0&&(x(Kx),void 0!==e.value.currentStepInfo[e.value.currentStepNumber]&&y((function(t){return[].concat((0,i.Z)(t),[e.value.currentStepInfo[e.value.currentStepNumber]])}))),"instructionResult"===e.case&&e.value.serializedInstructionResult&&(e.value.serializedInstructionResult.includes("added with service")&&P(n),y((function(t){return[].concat((0,i.Z)(t),[e.value.serializedInstructionResult])}))),e.case===Yx){var t=e.value.error.value.errorMessage;y((function(e){return[].concat((0,i.Z)(e),[t])})),x(Yx),C(Yx)}e.case===$x&&x($x)};(0,r.useEffect)((function(){var e;f(!0);var r=function(){var r=m(p().mark((function r(){var i,s,u,l,c,d,h;return p().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:return r.prev=0,r.next=3,Gx(n.host,n.port,t,o,a.jwtToken,a.apiHost);case 3:e=r.sent,i=!1,s=!1,r.prev=6,l=fu(e);case 8:return r.next=10,l.next();case 10:if(!(i=!(c=r.sent).done)){r.next=17;break}d=c.value,h=d.runResponseLine,A(h);case 14:i=!1,r.next=8;break;case 17:r.next=23;break;case 19:r.prev=19,r.t0=r.catch(6),s=!0,u=r.t0;case 23:if(r.prev=23,r.prev=24,!i||null==l.return){r.next=28;break}return r.next=28,l.return();case 28:if(r.prev=28,!s){r.next=31;break}throw u;case 31:return r.finish(28);case 32:return r.finish(23);case 33:r.next=38;break;case 35:r.prev=35,r.t1=r.catch(0),console.error("Error occurred while reading data from the enclave: ",n.name);case 38:return r.prev=38,f(!1),r.finish(38);case 41:case"end":return r.stop()}}),r,null,[[0,35,38,41],[6,19,23,33],[24,,28,32]])})));return function(){return r.apply(this,arguments)}}();r()}),[t]);var j=function(e){s("/enclaves/".concat(n.name,"/services/").concat(e.serviceUuid),{state:{services:I,selected:e}})};return(0,gr.jsx)("div",{className:"flex h-full",children:(0,gr.jsxs)("div",{className:"flex h-full",children:[(0,gr.jsx)(tu,{home:!1,heading:"Services",isServiceInfo:!0,renderList:function(){return function(e,t){return e.map((function(e){return(0,gr.jsx)("div",{className:"flex items-center justify-center h-14 text-base bg-[#24BA27]",onClick:function(){return t(e)},children:(0,gr.jsxs)("div",{className:"cursor-default text-lg text-white",children:[" ",e.name," "]})},e.name)}))}(I,j)}}),(0,gr.jsx)("div",{className:"flex h-full w-[calc(100vw-39rem)] flex-col space-y-5",children:(0,gr.jsxs)("div",{className:"flex flex-col h-full space-y-1 bg-[#171923]",children:[(0,gr.jsxs)(Cy,{bg:"#171923",height:"80px",children:[(0,gr.jsx)(_r,{p:"2",m:"4",children:(0,gr.jsxs)(Ur,{color:"white",fontSize:"xl",as:"b",children:["Logs for ",n.name]})}),(0,gr.jsx)(_y,{})]}),c&&0===g.length?(0,gr.jsx)(ru,{}):g.length>0?(0,gr.jsx)(rS,{logs:g,fileName:n.name,currentExecutionStatus:w,errorStatus:E}):(0,gr.jsx)(Mr,{color:"white",children:" No Logs Available"})]})}),(0,gr.jsx)(nu,{home:!1,isServiceInfo:!c,enclaveName:n.name})]})})},eS=n(1842),tS=new(n(5304)),nS=function(e){var t=e.log;if(void 0!==t&&0!==t.length){var n=t;if(function(e){return Py.test(e)}(n)){var r=tS.toHtml(n);n=Iy(r)}return(0,gr.jsx)(_r,{style:oS.row,children:n})}return(0,gr.jsx)(gr.Fragment,{})},rS=function(e){var t=e.logs,n=e.fileName,o=e.currentExecutionStatus,a=e.errorStatus,i=(0,r.useState)(t),s=(0,v.Z)(i,2),u=s[0],l=s[1],c=(0,r.useRef)(null),f=hu().height,d=Ty(""),p=d.onCopy,h=d.setValue,m=d.hasCopied,g=(0,r.useState)((0,gr.jsx)(gr.Fragment,{})),y=(0,v.Z)(g,2),b=y[0],k=y[1];(0,r.useEffect)((function(){l(t);var e=t.map((function(e){return jy(e)}));h(e.join(eS.EOL)),k(function(e,t){return e===$x&&""===t?(0,gr.jsx)(gr.Fragment,{children:(0,gr.jsx)(my,{label:"Success! Script finished successfully",children:(0,gr.jsx)(zx,{color:"green"})})}):e===Kx?(0,gr.jsx)(gr.Fragment,{children:(0,gr.jsx)(my,{label:"Script is running...",children:(0,gr.jsx)(wy,{})})}):e===$x&&t?(0,gr.jsx)(gr.Fragment,{children:(0,gr.jsx)(my,{label:"Error! Script finished with an error",children:(0,gr.jsx)(Zx,{color:"red"})})}):(0,gr.jsx)(gr.Fragment,{})}(o,a))}),[t]);return(0,gr.jsxs)("div",{className:"flex flex-col bg-black",children:[(0,gr.jsx)(Jw,{style:{height:.8*(f-100),backgroundColor:"black"},ref:c,data:u,totalCount:u.length-1,itemContent:function(e,t){return(0,gr.jsx)(nS,{index:e,log:t})},followOutput:"smooth"}),(0,gr.jsxs)(Cy,{className:"bg-black",style:{height:"80px"},children:[(0,gr.jsx)(_y,{}),(0,gr.jsx)(_r,{p:"2",m:"4",height:"40px",children:(0,gr.jsx)(_r,{children:b})}),(0,gr.jsx)(my,{label:"".concat(m?"Copied!":"Copy to clipboard"),placement:"top-end",closeOnClick:!1,children:(0,gr.jsx)(_r,{p:"2",m:"4",onClick:p,height:"40px",children:(0,gr.jsxs)("svg",{className:"w-6 h-6 text-gray-800 dark:text-white","aria-hidden":"true",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor",viewBox:"0 0 18 20",children:[(0,gr.jsx)("path",{d:"M5 9V4.13a2.96 2.96 0 0 0-1.293.749L.879 7.707A2.96 2.96 0 0 0 .13 9H5Zm11.066-9H9.829a2.98 2.98 0 0 0-2.122.879L7 1.584A.987.987 0 0 0 6.766 2h4.3A3.972 3.972 0 0 1 15 6v10h1.066A1.97 1.97 0 0 0 18 14V2a1.97 1.97 0 0 0-1.934-2Z"}),(0,gr.jsx)("path",{d:"M11.066 4H7v5a2 2 0 0 1-2 2H0v7a1.969 1.969 0 0 0 1.933 2h9.133A1.97 1.97 0 0 0 13 18V6a1.97 1.97 0 0 0-1.934-2Z"})]})})}),(0,gr.jsx)(my,{label:"Download to file",placement:"top",children:(0,gr.jsx)(_r,{p:"2",m:"4",onClick:function(){var e=t.map((function(e){return jy(e)})).join(eS.EOL);Dy(e,n)},height:"40px",children:(0,gr.jsx)(Ux,{textColor:"white"})})}),(0,gr.jsx)(my,{label:"Autoscroll to bottom",placement:"top",children:(0,gr.jsx)(_r,{p:"2",m:"4",height:"40px",onClick:function(){c.current.scrollToIndex({index:u.length-1,behavior:"smooth",align:"end"})},children:(0,gr.jsx)(Vx,{textColor:"white"})})})]})]})},oS={row:{fontSize:"10pt",fontFamily:"Menlo, Monaco, Inconsolata, Consolas, Courier, monospace",boxSizing:"border-box",borderBottom:"1px solid #222",padding:"1em",color:"white"}};var aS=dc({strict:!1,name:"ButtonGroupContext"}),iS=(0,v.Z)(aS,2),sS=(iS[0],iS[1]),uS=["children","className"];function lS(e){var t=e.children,n=e.className,o=u(e,uS),a=(0,r.isValidElement)(t)?(0,r.cloneElement)(t,{"aria-hidden":!0,focusable:!1}):t,i=T("chakra-button__icon",n);return(0,gr.jsx)(vr.span,f(f({display:"inline-flex",alignSelf:"center",flexShrink:0},o),{},{className:i,children:a}))}lS.displayName="ButtonIcon";var cS=["label","placement","spacing","children","className","__css"];function fS(e){var t=e.label,n=e.placement,o=e.spacing,a=void 0===o?"0.5rem":o,i=e.children,s=void 0===i?(0,gr.jsx)(wy,{color:"currentColor",width:"1em",height:"1em"}):i,c=e.className,d=e.__css,p=u(e,cS),h=T("chakra-button__spinner",c),m="start"===n?"marginEnd":"marginStart",v=(0,r.useMemo)((function(){var e;return f((e={display:"flex",alignItems:"center",position:t?"relative":"absolute"},(0,l.Z)(e,m,t?a:0),(0,l.Z)(e,"fontSize","1em"),(0,l.Z)(e,"lineHeight","normal"),e),d)}),[d,t,m,a]);return(0,gr.jsx)(vr.div,f(f({className:h},p),{},{__css:v,children:s}))}fS.displayName="ButtonSpinner";var dS=["isDisabled","isLoading","isActive","children","leftIcon","rightIcon","loadingText","iconSpacing","type","spinner","spinnerPlacement","className","as"],pS=g((function(e,t){var n=sS(),o=jr("Button",f(f({},n),e)),a=yt(e),i=a.isDisabled,s=void 0===i?null==n?void 0:n.isDisabled:i,l=a.isLoading,c=a.isActive,d=a.children,p=a.leftIcon,h=a.rightIcon,m=a.loadingText,g=a.iconSpacing,y=void 0===g?"0.5rem":g,b=a.type,k=a.spinner,w=a.spinnerPlacement,x=void 0===w?"start":w,S=a.className,E=a.as,C=u(a,dS),_=(0,r.useMemo)((function(){var e=f(f({},null==o?void 0:o._focus),{},{zIndex:1});return f(f({display:"inline-flex",appearance:"none",alignItems:"center",justifyContent:"center",userSelect:"none",position:"relative",whiteSpace:"nowrap",verticalAlign:"middle",outline:"none"},o),!!n&&{_focus:e})}),[o,n]),I=function(e){var t=(0,r.useState)(!e),n=(0,v.Z)(t,2),o=n[0],a=n[1],i=(0,r.useCallback)((function(e){e&&a("BUTTON"===e.tagName)}),[]);return{ref:i,type:o?"button":void 0}}(E),N=I.ref,P=I.type,A={rightIcon:h,leftIcon:p,iconSpacing:y,children:d};return(0,gr.jsxs)(vr.button,f(f({ref:Ru(t,N),as:E,type:null!=b?b:P,"data-active":O(c),"data-loading":O(l),__css:_,className:T("chakra-button",S)},C),{},{disabled:s||l,children:[l&&"start"===x&&(0,gr.jsx)(fS,{className:"chakra-button__spinner--start",label:m,placement:"start",spacing:y,children:k}),l?m||(0,gr.jsx)(vr.span,{opacity:0,children:(0,gr.jsx)(hS,f({},A))}):(0,gr.jsx)(hS,f({},A)),l&&"end"===x&&(0,gr.jsx)(fS,{className:"chakra-button__spinner--end",label:m,placement:"end",spacing:y,children:k})]}))}));function hS(e){var t=e.leftIcon,n=e.rightIcon,r=e.children,o=e.iconSpacing;return(0,gr.jsxs)(gr.Fragment,{children:[t&&(0,gr.jsx)(lS,{marginEnd:o,children:t}),r,n&&(0,gr.jsx)(lS,{marginStart:o,children:n})]})}pS.displayName="Button";var mS=["className"],vS=g((function(e,t){var n=jr("Badge",e),r=yt(e),o=(r.className,u(r,mS));return(0,gr.jsx)(vr.span,f(f({ref:t,className:T("chakra-badge",e.className)},o),{},{__css:f({display:"inline-block",whiteSpace:"nowrap",verticalAlign:"middle"},n)}))}));vS.displayName="Badge";var gS=["className","layout"],yS=dc({name:"TableStylesContext",errorMessage:"useTableStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),bS=(0,v.Z)(yS,2),kS=bS[0],wS=bS[1],xS=g((function(e,t){var n=Rr("Table",e),r=yt(e),o=r.className,a=r.layout,i=u(r,gS);return(0,gr.jsx)(kS,{value:n,children:(0,gr.jsx)(vr.table,f({ref:t,__css:f({tableLayout:a},n.table),className:T("chakra-table",o)},i))})}));xS.displayName="Table";var SS=g((function(e,t){var n=wS();return(0,gr.jsx)(vr.tr,f(f({},e),{},{ref:t,__css:n.tr}))})),TS=["isNumeric"],ES=g((function(e,t){var n=e.isNumeric,r=u(e,TS),o=wS();return(0,gr.jsx)(vr.td,f(f({},r),{},{ref:t,__css:o.td,"data-is-numeric":n}))})),CS=["overflow","overflowX","className"],_S=g((function(e,t){var n,r=e.overflow,o=e.overflowX,a=e.className,i=u(e,CS);return(0,gr.jsx)(vr.div,f(f({ref:t,className:T("chakra-table__container",a)},i),{},{__css:{display:"block",whiteSpace:"nowrap",WebkitOverflowScrolling:"touch",overflowX:null!=(n=null!=r?r:o)?n:"auto",overflowY:"hidden",maxWidth:"100%"}}))})),OS=g((function(e,t){var n=wS();return(0,gr.jsx)(vr.tbody,f(f({},e),{},{ref:t,__css:n.tbody}))}));function IS(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NS(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function PS(e){for(var t=1;t=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function jS(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),a=0;a1&&void 0!==arguments[1]?arguments[1]:{};ZS.initial(e),ZS.handler(t);var n={current:e},r=LS(qS)(n,t),o=LS(VS)(n),a=LS(ZS.changes)(e),i=LS(US)(n);return[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(e){return e};return ZS.selector(e),e(n.current)},function(e){!function(){for(var e=arguments.length,t=new Array(e),n=0;n=e.length?e.apply(this,o):function(){for(var e=arguments.length,r=new Array(e),a=0;a2&&void 0!==arguments[2])||arguments[2],o=(0,r.useRef)(!0);(0,r.useEffect)(o.current||!n?function(){o.current=!1}:e,t)};function xT(){}function ST(e,t,n,r){return function(e,t){return e.editor.getModel(TT(e,t))}(e,r)||function(e,t,n,r){return e.editor.createModel(t,n,r?TT(e,r):void 0)}(e,t,n,r)}function TT(e,t){return e.Uri.parse(t)}var ET=function(e){var t=e.original,n=e.modified,o=e.language,a=e.originalLanguage,i=e.modifiedLanguage,s=e.originalModelPath,u=e.modifiedModelPath,l=e.keepCurrentOriginalModel,c=void 0!==l&&l,d=e.keepCurrentModifiedModel,p=void 0!==d&&d,h=e.theme,m=void 0===h?"light":h,g=e.loading,y=void 0===g?"Loading...":g,b=e.options,k=void 0===b?{}:b,w=e.height,x=void 0===w?"100%":w,S=e.width,T=void 0===S?"100%":S,E=e.className,C=e.wrapperProps,_=void 0===C?{}:C,O=e.beforeMount,I=void 0===O?xT:O,N=e.onMount,P=void 0===N?xT:N,A=(0,r.useState)(!1),j=(0,v.Z)(A,2),R=j[0],D=j[1],F=(0,r.useState)(!0),L=(0,v.Z)(F,2),M=L[0],B=L[1],z=(0,r.useRef)(null),Z=(0,r.useRef)(null),U=(0,r.useRef)(null),V=(0,r.useRef)(P),q=(0,r.useRef)(I),H=(0,r.useRef)(!1);kT((function(){var e=pT.init();return e.then((function(e){return(Z.current=e)&&B(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return z.current?function(){var e,t,n,r,o=null===(e=z.current)||void 0===e?void 0:e.getModel();c||null!==o&&void 0!==o&&null!==(t=o.original)&&void 0!==t&&t.dispose(),p||null!==o&&void 0!==o&&null!==(n=o.modified)&&void 0!==n&&n.dispose(),null===(r=z.current)||void 0===r||r.dispose()}():e.cancel()}})),wT((function(){if(z.current&&Z.current){var e=z.current.getOriginalEditor(),n=ST(Z.current,t||"",a||o||"text",s||"");n!==e.getModel()&&e.setModel(n)}}),[s],R),wT((function(){if(z.current&&Z.current){var e=z.current.getModifiedEditor(),t=ST(Z.current,n||"",i||o||"text",u||"");t!==e.getModel()&&e.setModel(t)}}),[u],R),wT((function(){var e=z.current.getModifiedEditor();e.getOption(Z.current.editor.EditorOption.readOnly)?e.setValue(n||""):n!==e.getValue()&&(e.executeEdits("",[{range:e.getModel().getFullModelRange(),text:n||"",forceMoveMarkers:!0}]),e.pushUndoStop())}),[n],R),wT((function(){var e;null===(e=z.current)||void 0===e||null===(e=e.getModel())||void 0===e||e.original.setValue(t||"")}),[t],R),wT((function(){var e=z.current.getModel(),t=e.original,n=e.modified;Z.current.editor.setModelLanguage(t,a||o||"text"),Z.current.editor.setModelLanguage(n,i||o||"text")}),[o,a,i],R),wT((function(){var e;null===(e=Z.current)||void 0===e||e.editor.setTheme(m)}),[m],R),wT((function(){var e;null===(e=z.current)||void 0===e||e.updateOptions(k)}),[k],R);var W=(0,r.useCallback)((function(){var e;if(Z.current){q.current(Z.current);var r=ST(Z.current,t||"",a||o||"text",s||""),l=ST(Z.current,n||"",i||o||"text",u||"");null===(e=z.current)||void 0===e||e.setModel({original:r,modified:l})}}),[o,n,i,t,a,s,u]),J=(0,r.useCallback)((function(){var e;!H.current&&U.current&&(z.current=Z.current.editor.createDiffEditor(U.current,f({automaticLayout:!0},k)),W(),null!==(e=Z.current)&&void 0!==e&&e.editor.setTheme(m),D(!0),H.current=!0)}),[k,m,W]);return(0,r.useEffect)((function(){R&&V.current(z.current,Z.current)}),[R]),(0,r.useEffect)((function(){!M&&!R&&J()}),[M,R,J]),r.createElement(bT,{width:T,height:x,isEditorReady:R,loading:y,_ref:U,className:E,wrapperProps:_})};(0,r.memo)(ET);var CT=function(e){var t=(0,r.useRef)();return(0,r.useEffect)((function(){t.current=e}),[e]),t.current},_T=new Map;var OT=function(e){var t=e.defaultValue,n=e.defaultLanguage,o=e.defaultPath,a=e.value,i=e.language,s=e.path,u=e.theme,l=void 0===u?"light":u,c=e.line,d=e.loading,p=void 0===d?"Loading...":d,h=e.options,m=void 0===h?{}:h,g=e.overrideServices,y=void 0===g?{}:g,b=e.saveViewState,k=void 0===b||b,w=e.keepCurrentModel,x=void 0!==w&&w,S=e.width,T=void 0===S?"100%":S,E=e.height,C=void 0===E?"100%":E,_=e.className,O=e.wrapperProps,I=void 0===O?{}:O,N=e.beforeMount,P=void 0===N?xT:N,A=e.onMount,j=void 0===A?xT:A,R=e.onChange,D=e.onValidate,F=void 0===D?xT:D,L=(0,r.useState)(!1),M=(0,v.Z)(L,2),B=M[0],z=M[1],Z=(0,r.useState)(!0),U=(0,v.Z)(Z,2),V=U[0],q=U[1],H=(0,r.useRef)(null),W=(0,r.useRef)(null),J=(0,r.useRef)(null),G=(0,r.useRef)(j),Y=(0,r.useRef)(P),X=(0,r.useRef)(),$=(0,r.useRef)(a),K=CT(s),Q=(0,r.useRef)(!1),ee=(0,r.useRef)(!1);kT((function(){var e=pT.init();return e.then((function(e){return(H.current=e)&&q(!1)})).catch((function(e){return"cancelation"!==(null===e||void 0===e?void 0:e.type)&&console.error("Monaco initialization: error:",e)})),function(){return W.current?function(){var e,t;null!==(e=X.current)&&void 0!==e&&e.dispose(),x?k&&_T.set(s,W.current.saveViewState()):null===(t=W.current.getModel())||void 0===t||t.dispose(),W.current.dispose()}():e.cancel()}})),wT((function(){var e,r,u,l,c=ST(H.current,t||a||"",n||i||"",s||o||"");c!==(null===(e=W.current)||void 0===e?void 0:e.getModel())&&(k&&_T.set(K,null===(r=W.current)||void 0===r?void 0:r.saveViewState()),null!==(u=W.current)&&void 0!==u&&u.setModel(c),k&&(null===(l=W.current)||void 0===l||l.restoreViewState(_T.get(s))))}),[s],B),wT((function(){var e;null===(e=W.current)||void 0===e||e.updateOptions(m)}),[m],B),wT((function(){!W.current||void 0===a||(W.current.getOption(H.current.editor.EditorOption.readOnly)?W.current.setValue(a):a!==W.current.getValue()&&(ee.current=!0,W.current.executeEdits("",[{range:W.current.getModel().getFullModelRange(),text:a,forceMoveMarkers:!0}]),W.current.pushUndoStop(),ee.current=!1))}),[a],B),wT((function(){var e,t,n=null===(e=W.current)||void 0===e?void 0:e.getModel();n&&i&&(null===(t=H.current)||void 0===t||t.editor.setModelLanguage(n,i))}),[i],B),wT((function(){var e;void 0!==c&&(null===(e=W.current)||void 0===e||e.revealLine(c))}),[c],B),wT((function(){var e;null===(e=H.current)||void 0===e||e.editor.setTheme(l)}),[l],B);var te=(0,r.useCallback)((function(){if(J.current&&H.current&&!Q.current){var e;Y.current(H.current);var r=s||o,u=ST(H.current,a||t||"",n||i||"",r||"");W.current=null===(e=H.current)||void 0===e?void 0:e.editor.create(J.current,f({model:u,automaticLayout:!0},m),y),k&&W.current.restoreViewState(_T.get(r)),H.current.editor.setTheme(l),z(!0),Q.current=!0}}),[t,n,o,a,i,s,m,y,k,l]);return(0,r.useEffect)((function(){B&&G.current(W.current,H.current)}),[B]),(0,r.useEffect)((function(){!V&&!B&&te()}),[V,B,te]),$.current=a,(0,r.useEffect)((function(){var e,t;B&&R&&(null!==(e=X.current)&&void 0!==e&&e.dispose(),X.current=null===(t=W.current)||void 0===t?void 0:t.onDidChangeModelContent((function(e){ee.current||R(W.current.getValue(),e)})))}),[B,R]),(0,r.useEffect)((function(){if(B){var e=H.current.editor.onDidChangeMarkers((function(e){var t,n=null===(t=W.current.getModel())||void 0===t?void 0:t.uri;if(n&&e.find((function(e){return e.path===n.path}))){var r=H.current.editor.getModelMarkers({resource:n});null===F||void 0===F||F(r)}}));return function(){null===e||void 0===e||e.dispose()}}return function(){}}),[B,F]),r.createElement(bT,{width:T,height:C,isEditorReady:B,loading:p,_ref:J,className:_,wrapperProps:I})},IT=(0,r.memo)(OT),NT=function(e){var t=e.uniqueId,n=e.dataCallback,o=void 0===n?function(e){}:n,a=e.readOnly,i=void 0!==a&&a,s=e.languages,u=void 0===s?["json"]:s,l=e.defaultWidthPx,c=void 0===l?500:l,f=e.defaultState,d=void 0===f?u.includes("json")?"{\n}":"":f,p=e.autoFormat,h=void 0!==p&&p,m=e.lineNumbers,g=void 0!==m&&m,y=e.showCopyButton,b=void 0===y||y,k=e.showDownloadButton,w=void 0===k||k,x=e.showFormatButton,S=void 0===x||x,T=e.buttonSizes,E=void 0===T?"sm":T,C=e.border,_=void 0===C?"1px":C,O=e.theme,I=void 0===O?"vs-dark":O,N=(0,r.useRef)(null),P=hu(),A=(0,r.useState)(!1),j=(0,v.Z)(A,2),R=j[0],D=j[1],F=(0,r.useState)(!1),L=(0,v.Z)(F,2),M=L[0],B=L[1],z=Ty(""),Z=(0,r.useRef)(i),U=(0,r.useState)(i),V=(0,v.Z)(U,2),q=V[0],H=V[1],W=function(){return N.current?J(t):null},J=function(e){return N.current.editor.getEditors().find((function(t){return t.getModel().uri.toString()==="file:///".concat(e)}))};(0,r.useEffect)((function(){W()&&W().updateOptions({readOnly:q})}),[q]),(0,r.useEffect)((function(){R&&(!function(){try{return W().getOption(86)}catch(e){return}}()?W()&&W().getAction("editor.action.formatDocument").run().then((function(){H(Z.current),D(!1)})).catch((function(e){console.error("An error happened",e)})):H(!1))}),[R,M]),(0,r.useEffect)((function(){return G()}),[P]),(0,r.useEffect)((function(){return Y(d)}),[d]);var G=function(){if(W()){var e=Math.min(750,W().getContentHeight());W().layout({width:c,height:e}),W().layout()}},Y=function(e){G(),o(e),z.setValue(e)},X=function(){D(!0)};return G(),(0,gr.jsxs)(_r,{border:_,borderColor:"gray.700",borderRadius:"7",margin:"1px",padding:1,children:[(0,gr.jsx)(IT,{margin:1,defaultLanguage:"json",value:d,theme:I,path:t,onMount:function(e,t){var n,r;N.current=t,G(),W().onDidChangeConfiguration((function(e){e.hasChanged(86)&&B(!M)})),h&&X(),n="kurtosis-theme",r={base:I,inherit:!0,rules:[],colors:{"editor.background":"#171923"}},N.current.editor.defineTheme(n,r),N.current.editor.setTheme(n)},onChange:Y,options:{automaticLayout:!1,selectOnLineNumbers:g,lineNumbers:g,languages:u,readOnly:q,minimap:{enabled:!1},scrollBeyondLastLine:!1,scrollbar:{verticalScrollbarSize:function(e){return e?0:10}(q),alwaysConsumeMouseWheel:!i},renderLineHighlight:function(e){return e?"none":"line"}(q)}}),(0,gr.jsxs)(_r,{marginTop:1,children:[b&&(0,gr.jsx)(pS,{margin:1,onClick:function(){z.setValue(d),z.onCopy()},size:E,children:z.hasCopied?"Copied!":"Copy"}),w&&(0,gr.jsx)(pS,{margin:1,onClick:function(){Dy(function(){var e;return null===(e=W())||void 0===e?void 0:e.getModel().getValue()}(),t)},size:E,children:"Download"}),S&&(0,gr.jsx)(pS,{margin:1,onClick:X,isDisabled:!u.includes("json"),size:E,children:"Format"})]})]})},PT=function(e,t){var n="";try{n=t()}catch(r){console.error("Error while processing row",r),n="Error while retrieving information"}return(0,gr.jsxs)(SS,{color:"white",children:[(0,gr.jsx)(ES,{children:(0,gr.jsx)("p",{children:(0,gr.jsx)("b",{children:e})})}),(0,gr.jsx)(ES,{children:n})]},e)},AT=function(e,t,n,r){var o=JSON.stringify(r,null,2),a="".concat(e,"-").concat(t,"-").concat(n,".json");return(0,gr.jsx)(_r,{children:(0,gr.jsx)(NT,{uniqueId:a,readOnly:!0,defaultWidthPx:250,defaultState:o,autoFormat:!0,showFormatButton:!1,buttonSizes:"xs"})})},jT=function(e){var t=e.service;return(0,gr.jsx)(_S,{children:(0,gr.jsx)(xS,{variant:"simple",size:"sm",children:(0,gr.jsxs)(OS,{children:[PT("Name",(function(){return t.name})),PT("UUID",(function(){return(0,gr.jsx)("pre",{children:t.serviceUuid})})),PT("Status",(function(){return function(e){var t="",n="";if("RUNNING"===e||1===e)t="green",n="RUNNING";else if("STOPPED"===e||0===e)t="red",n="STOPPED";else{if("UNKNOWN"!==e&&2!==e)return(0,gr.jsx)(vS,{children:"N/A"});t="yellow",n="UNKNOWN"}return(0,gr.jsx)(vS,{colorScheme:t,children:n})}(t.serviceStatus)})),PT("Image",(function(){return t.container.imageName})),PT("Ports",(function(){return AT(t.shortenedUuid,t.name,"ports",t.ports)})),PT("ENTRYPOINT",(function(){return AT(t.shortenedUuid,t.name,"entrypoint",t.container.entrypointArgs)})),PT("CMD",(function(){return AT(t.shortenedUuid,t.name,"cmd",t.container.cmdArgs)})),PT("ENV",(function(){return AT(t.shortenedUuid,t.name,"env",t.container.envVars)}))]})})})},RT=function(){var e=Ga(),t=(0,r.useState)([]),n=(0,v.Z)(t,2),o=n[0],a=n[1],s=Wa().state,u=s.services,l=s.selected,c=su().appData,f=Xa(),d=f.name,h=f.uuid;(0,r.useEffect)((function(){var e=new AbortController;return function(e){var t,n=function(){var n=m(p().mark((function n(){var r,o,s,u,l,f;return p().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return n.next=2,Jx(e,d,h,c.apiHost,!0,1500);case 2:t=n.sent,n.prev=3,r=!1,o=!1,n.prev=6,u=p().mark((function e(){var t,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=f.value,""!==(n=t.serviceLogsByServiceUuid[h].line[0])&&a((function(e){return[].concat((0,i.Z)(e),[n])}));case 3:case"end":return e.stop()}}),e)})),l=fu(t);case 9:return n.next=11,l.next();case 11:if(!(r=!(f=n.sent).done)){n.next=16;break}return n.delegateYield(u(),"t0",13);case 13:r=!1,n.next=9;break;case 16:n.next=22;break;case 18:n.prev=18,n.t1=n.catch(6),o=!0,s=n.t1;case 22:if(n.prev=22,n.prev=23,!r||null==l.return){n.next=27;break}return n.next=27,l.return();case 27:if(n.prev=27,!o){n.next=30;break}throw s;case 30:return n.finish(27);case 31:return n.finish(22);case 32:n.next=37;break;case 34:n.prev=34,n.t2=n.catch(3),console.error("Abort Initial Log Stream! with error ",n.t2);case 37:case"end":return n.stop()}}),n,null,[[3,34],[6,18,22,32],[23,,27,31]])})));return function(){return n.apply(this,arguments)}}();n()}(e),function(){a([]),e.abort()}}),[h]);var g=function(t){var n="/enclaves/".concat(d,"/services/").concat(t.serviceUuid);e(n,{state:{services:u,selected:t}})},y=function(){return"logs"===f["*"]};return(0,gr.jsxs)("div",{className:"flex h-full",children:[(0,gr.jsx)(tu,{home:!1,isServiceInfo:!0,heading:"Services",renderList:function(){return function(e,t){return e.map((function(e){return(0,gr.jsx)("div",{className:"flex items-center justify-center h-14 text-base bg-[#24BA27]",onClick:function(){return t(e)},children:(0,gr.jsxs)("div",{className:"cursor-default text-lg text-white",children:[" ",e.name," "]})},e.name)}))}(u,g)}}),(0,gr.jsx)("div",{className:"flex h-full w-[calc(100vw-39rem)] flex-col space-y-5",children:(0,gr.jsxs)("div",{className:"flex-col flex space-y-1 bg-[#171923]",children:[(0,gr.jsxs)(Cy,{bg:"#171923",height:"80px",children:[(0,gr.jsx)(_r,{p:"2",m:"4",children:(0,gr.jsxs)(Ur,{color:"white",fontSize:"xl",as:"b",children:[" ",y()?"Logs ":"Detailed Info "," for ",l.name," "]})}),(0,gr.jsx)(_y,{}),(0,gr.jsxs)(pS,{m:"4",onClick:function(){y()?e("/enclaves/".concat(d,"/services/").concat(l.serviceUuid),{state:{services:u,selected:l}}):e("/enclaves/".concat(d,"/services/").concat(l.serviceUuid,"/logs"),{state:{services:u,selected:l}})},children:[" ",y()?"Service":"Logs"," "]})]}),(0,gr.jsxs)(mi,{children:[(0,gr.jsx)(pi,{path:"/logs",element:o.length>0?(0,gr.jsx)(rS,{logs:o,fileName:"".concat(d,"-").concat(l.name)}):(0,gr.jsx)(Mr,{color:"white",children:" No Logs Available"})}),(0,gr.jsx)(pi,{path:"/",element:(0,gr.jsx)(jT,{service:l})})]})]})}),(0,gr.jsx)(nu,{home:!1,isServiceInfo:!0,enclaveName:d})]})},DT=function(e){var t=e.currentPath,n=e.handleOnClick,r=e.handleCleanButton,o=t.length,a=function(e){var t=e.text,n=e.last,r=e.color,o=void 0===r?"text-white":r,a=e.index,i=e.handleOnClick;return(0,gr.jsxs)("div",{className:"".concat(o," cursor-default font-bold"),onClick:function(){return i(a)},children:[t," ",n?"":"/"]})};return(0,gr.jsxs)("div",{className:"flex flex-row py-2 px-5 flex-wrap",children:[t.map((function(e,t){return(0,gr.jsx)(a,{text:e,last:o-1===t,index:t,handleOnClick:n},t)})),t.length>0?(0,gr.jsx)("div",{className:"mx-3",onClick:r,children:(0,gr.jsx)("svg",{className:"h-6 w-6",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,gr.jsx)("path",{color:"gray",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M6 18L18 6M6 6l12 12"})})}):null]})},FT=function(e,t){return 0===e.length?(0,gr.jsx)(ji,{text:"No File Preview Available",size:"text-xl",color:"text-red-400"}):Object.keys(e).map((function(n,r){var o="".concat(n,"-").concat(r);return(0,gr.jsx)("div",{className:"border-2 bg-[#171923] text-lg align-middle text-center h-16 p-3 text-[#24BA27]",onClick:function(){return t(n,e[n])},children:(0,gr.jsxs)("div",{children:[" ",n," "]})},o)}))},LT=function(e){var t=e.enclaves,n=Ga(),o=Xa(),a=o.name,s=o.fileArtifactName,u=(0,r.useState)(!1),l=(0,v.Z)(u,2),c=l[0],d=l[1],h=(0,r.useState)({}),g=(0,v.Z)(h,2),y=g[0],b=g[1],k=(0,r.useState)({}),w=(0,v.Z)(k,2),x=w[0],S=w[1],T=(0,r.useState)([]),E=(0,v.Z)(T,2),C=E[0],_=E[1],O=(0,r.useState)({}),I=(0,v.Z)(O,2),N=I[0],P=I[1],A=Wa().state.fileArtifacts,j=su().appData;(0,r.useEffect)((function(){if(0===t.length)n("/enclaves/".concat(a));else{d(!0);var e=function(){var e=m(p().mark((function e(){var n,r,o;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!((n=t.filter((function(e){return e.name===a}))).length>0)){e.next=10;break}return e.next=4,Qs(n[0].host,n[0].port,s,j.jwtToken,j.apiHost);case 4:r=e.sent,o=r.files,S(o),b(o),_([]),P({});case 10:d(!1);case 11:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}}),[s,j.jwtToken]);var R=function(e){n("/enclaves/".concat(a,"/files/").concat(e),{replace:!0,state:{fileArtifacts:A}})},D=function(e){var t,n=e.files,r=e.handleFileClick,o=e.detailInfo,a=e.enclaveName,i="".concat(a,"-").concat(o.path);return(0,gr.jsx)("div",{className:"flex flex-col h-full space-y-1 overflow-auto",children:0!==Object.keys(o).length?(0,gr.jsxs)("div",{className:"flex h-3/4 flex-col text-white",children:[(0,gr.jsxs)("p",{className:"text-sm font-bold text-left",children:[" Size: ",null===(t=o.size)||void 0===t?void 0:t.toString()," B "]}),(0,gr.jsxs)("p",{className:"text-sm font-bold text-left",children:[" Type: ",o.extension," "]}),o.textPreview.length>0?(0,gr.jsx)(_r,{children:(0,gr.jsx)(NT,{uniqueId:i,readOnly:!0,languages:[o.extension],defaultState:o.textPreview,lineNumbers:!1})}):(0,gr.jsx)("p",{className:"break-all overflow-y-auto",children:(0,gr.jsx)("h2",{className:"text-2xl text-center mt-20 text-red-800 font-bold",children:"No Preview Available"})})]}):(0,gr.jsxs)("div",{className:"flex flex-col h-[85%] min-h-[85%] border-2",children:[(0,gr.jsx)(Di,{color:"text-white",content:"Files",size:"text-xl"}),(0,gr.jsx)("div",{className:"overflow-auto space-y-2",children:FT(n,r)})]})})};return(0,gr.jsxs)("div",{className:"flex h-full",children:[(0,gr.jsx)(tu,{home:!1,heading:"File Artifacts",renderList:function(){return function(e,t){return e.map((function(e,n){var r="".concat(e.name,"-").concat(n);return(0,gr.jsx)("div",{className:"flex items-center justify-center h-14 text-base bg-[#24BA27]",onClick:function(){return t(e.name)},children:(0,gr.jsxs)("div",{className:"cursor-default text-lg text-white",children:[" ",e.name," "]})},r)}))}(A,R)}}),(0,gr.jsxs)("div",{className:"flex bg-[#171923] w-[calc(100vw-39rem)] flex-col space-y-5",children:[(0,gr.jsx)("div",{className:"h-[3rem] flex items-center justify-center m-2",children:(0,gr.jsx)(Di,{color:"text-white",content:"".concat(a," - ").concat(s)})}),(0,gr.jsx)(DT,{currentPath:C,handleOnClick:function(e){if(e===C.length-1);else{var t=C.slice(0,e+1),n=x;t.map((function(e){n=n[e]})),b(n),_(t),P({})}},handleCleanButton:function(){_([]),P({}),b(x)}}),c?(0,gr.jsx)(ru,{}):(0,gr.jsx)(D,{files:y,handleFileClick:function(e,t){var n=function(e){if(e)return e.split(".").pop()}(t.path);if((t=f(f({},t),{},{extension:n})).path){P(t);var r=x;C.map((function(e){r=r[e]})),_((function(t){return[].concat((0,i.Z)(t),[e])}))}else{var o=x;C.map((function(e){o=o[e]})),_((function(t){return[].concat((0,i.Z)(t),[e])})),b(o[e]),P({})}},detailInfo:N,enclaveName:a})]}),(0,gr.jsx)(nu,{isServiceInfo:!0,enclaveName:a})]})},MT=["id","isRequired","isInvalid","isDisabled","isReadOnly"],BT=["getRootProps","htmlProps"],zT=dc({name:"FormControlStylesContext",errorMessage:"useFormControlStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),ZT=(0,v.Z)(zT,2),UT=ZT[0],VT=ZT[1],qT=dc({strict:!1,name:"FormControlContext"}),HT=(0,v.Z)(qT,2),WT=HT[0],JT=HT[1];var GT=g((function(e,t){var n=Rr("Form",e),o=function(e){var t=e.id,n=e.isRequired,o=e.isInvalid,a=e.isDisabled,i=e.isReadOnly,s=u(e,MT),l=(0,r.useId)(),c=t||"field-".concat(l),d="".concat(c,"-label"),p="".concat(c,"-feedback"),h="".concat(c,"-helptext"),m=(0,r.useState)(!1),g=(0,v.Z)(m,2),y=g[0],b=g[1],k=(0,r.useState)(!1),w=(0,v.Z)(k,2),x=w[0],S=w[1],T=(0,r.useState)(!1),E=(0,v.Z)(T,2),C=E[0],_=E[1],I=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({id:h},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{ref:ju(e,(function(e){e&&S(!0)}))})}),[h]),N=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,"data-focus":O(C),"data-disabled":O(a),"data-invalid":O(o),"data-readonly":O(i),id:void 0!==e.id?e.id:d,htmlFor:void 0!==e.htmlFor?e.htmlFor:c})}),[c,a,C,o,i,d]),P=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({id:p},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{ref:ju(e,(function(e){e&&b(!0)})),"aria-live":"polite"})}),[p]),A=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),s),{},{ref:e,role:"group"})}),[s]),j=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,role:"presentation","aria-hidden":!0,children:e.children||"*"})}),[]);return{isRequired:!!n,isInvalid:!!o,isReadOnly:!!i,isDisabled:!!a,isFocused:!!C,onFocus:function(){return _(!0)},onBlur:function(){return _(!1)},hasFeedbackText:y,setHasFeedbackText:b,hasHelpText:x,setHasHelpText:S,id:c,labelId:d,feedbackId:p,helpTextId:h,htmlProps:s,getHelpTextProps:I,getErrorMessageProps:P,getRootProps:A,getLabelProps:N,getRequiredIndicatorProps:j}}(yt(e)),a=o.getRootProps,i=(o.htmlProps,u(o,BT)),s=T("chakra-form-control",e.className);return(0,gr.jsx)(WT,{value:i,children:(0,gr.jsx)(UT,{value:n,children:(0,gr.jsx)(vr.div,f(f({},a({},t)),{},{className:s,__css:n.container}))})})}));GT.displayName="FormControl";var YT=g((function(e,t){var n=JT(),r=VT(),o=T("chakra-form__helper-text",e.className);return(0,gr.jsx)(vr.div,f(f({},null==n?void 0:n.getHelpTextProps(e,t)),{},{__css:r.helperText,className:o}))}));YT.displayName="FormHelperText";var XT=["isDisabled","isInvalid","isReadOnly","isRequired"],$T=["id","disabled","readOnly","required","isRequired","isInvalid","isReadOnly","isDisabled","onFocus","onBlur"];function KT(e){var t,n,r,o=JT(),a=e.id,i=e.disabled,s=e.readOnly,l=e.required,c=e.isRequired,d=e.isInvalid,p=e.isReadOnly,h=e.isDisabled,m=e.onFocus,v=e.onBlur,g=u(e,$T),y=e["aria-describedby"]?[e["aria-describedby"]]:[];return(null==o?void 0:o.hasFeedbackText)&&(null==o?void 0:o.isInvalid)&&y.push(o.feedbackId),(null==o?void 0:o.hasHelpText)&&y.push(o.helpTextId),f(f({},g),{},{"aria-describedby":y.join(" ")||void 0,id:null!=a?a:null==o?void 0:o.id,isDisabled:null!=(t=null!=i?i:h)?t:null==o?void 0:o.isDisabled,isReadOnly:null!=(n=null!=s?s:p)?n:null==o?void 0:o.isReadOnly,isRequired:null!=(r=null!=l?l:c)?r:null==o?void 0:o.isRequired,isInvalid:null!=d?d:null==o?void 0:o.isInvalid,onFocus:N(null==o?void 0:o.onFocus,m),onBlur:N(null==o?void 0:o.onBlur,v)})}var QT=["htmlSize"],eE=g((function(e,t){var n=e.htmlSize,r=u(e,QT),o=Rr("Input",r),a=function(e){var t=KT(e),n=t.isDisabled,r=t.isInvalid,o=t.isReadOnly,a=t.isRequired;return f(f({},u(t,XT)),{},{disabled:n,readOnly:o,required:a,"aria-invalid":I(r),"aria-required":I(a),"aria-readonly":I(o)})}(yt(r)),i=T("chakra-input",e.className);return(0,gr.jsx)(vr.input,f(f({size:n},a),{},{__css:o.field,ref:t,className:i}))}));eE.displayName="Input",eE.id="Input";var tE=["area","colSpan","colStart","colEnd","rowEnd","rowSpan","rowStart"];function nE(e){return xr(e,(function(e){return"auto"===e?"auto":"span ".concat(e,"/span ").concat(e)}))}var rE=g((function(e,t){var n=e.area,r=e.colSpan,o=e.colStart,a=e.colEnd,i=e.rowEnd,s=e.rowSpan,l=e.rowStart,c=u(e,tE),d=zr({gridArea:n,gridColumn:nE(r),gridRow:nE(s),gridColumnStart:o,gridColumnEnd:a,gridRowStart:l,gridRowEnd:i});return(0,gr.jsx)(vr.div,f({ref:t,__css:d},c))}));rE.displayName="GridItem";var oE=dc({name:"CheckboxGroupContext",strict:!1}),aE=(0,v.Z)(oE,2),iE=(aE[0],aE[1]),sE=["isIndeterminate","isChecked"];function uE(e){return(0,gr.jsx)(vr.svg,f(f({width:"1.2em",viewBox:"0 0 12 10",style:{fill:"none",strokeWidth:2,stroke:"currentColor",strokeDasharray:16}},e),{},{children:(0,gr.jsx)("polyline",{points:"1.5 6 4.5 9 10.5 1"})}))}function lE(e){return(0,gr.jsx)(vr.svg,f(f({width:"1.2em",viewBox:"0 0 24 24",style:{stroke:"currentColor",strokeWidth:4}},e),{},{children:(0,gr.jsx)("line",{x1:"21",x2:"3",y1:"12",y2:"12"})}))}function cE(e){var t=e.isIndeterminate,n=e.isChecked,r=u(e,sE),o=t?lE:uE;return n||t?(0,gr.jsx)(vr.div,{style:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%"},children:(0,gr.jsx)(o,f({},r))}):null}function fE(e,t){var n=(0,r.useRef)(!1),o=(0,r.useRef)(!1);(0,r.useEffect)((function(){if(n.current&&o.current)return e();o.current=!0}),t),(0,r.useEffect)((function(){return n.current=!0,function(){n.current=!1}}),[])}var dE={border:"0",clip:"rect(0, 0, 0, 0)",height:"1px",width:"1px",margin:"-1px",padding:"0",overflow:"hidden",whiteSpace:"nowrap",position:"absolute"};var pE=function(){return"undefined"!==typeof document};var hE=!1,mE=null,vE=!1,gE=!1,yE=new Set;function bE(e,t){yE.forEach((function(n){return n(e,t)}))}var kE="undefined"!==typeof window&&null!=window.navigator&&/^Mac/.test(window.navigator.platform);function wE(e){var t;vE=!0,(t=e).metaKey||!kE&&t.altKey||t.ctrlKey||"Control"===t.key||"Shift"===t.key||"Meta"===t.key||(mE="keyboard",bE("keyboard",e))}function xE(e){if(mE="pointer","mousedown"===e.type||"pointerdown"===e.type){vE=!0;var t=e.composedPath?e.composedPath()[0]:e.target,n=!1;try{n=t.matches(":focus-visible")}catch(r){}if(n)return;bE("pointer",e)}}function SE(e){var t;(0===(t=e).mozInputSource&&t.isTrusted||0===t.detail&&!t.pointerType)&&(vE=!0,mE="virtual")}function TE(e){e.target!==window&&e.target!==document&&(vE||gE||(mE="virtual",bE("virtual",e)),vE=!1,gE=!1)}function EE(){vE=!1,gE=!0}function CE(){return"pointer"!==mE}function _E(){if(pE()&&!hE){var e=HTMLElement.prototype.focus;HTMLElement.prototype.focus=function(){vE=!0;for(var t=arguments.length,n=new Array(t),r=0;r0&&void 0!==arguments[0]?arguments[0]:{},t=KT(e),n=t.isDisabled,o=t.isReadOnly,a=t.isRequired,i=t.isInvalid,s=t.id,l=t.onBlur,c=t.onFocus,d=t["aria-describedby"],p=e.defaultChecked,h=e.isChecked,m=e.isFocusable,g=e.onChange,b=e.isIndeterminate,k=e.name,w=e.value,x=e.tabIndex,S=void 0===x?void 0:x,T=e["aria-label"],E=e["aria-labelledby"],C=e["aria-invalid"],_=function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Object.assign({},e),o=(0,y.Z)(n);try{for(o.s();!(t=o.n()).done;){var a=t.value;a in r&&delete r[a]}}catch(i){o.e(i)}finally{o.f()}return r}(u(e,IE),["isDisabled","isReadOnly","isRequired","isInvalid","id","onBlur","onFocus","aria-describedby"]),I=ac(g),P=ac(l),A=ac(c),j=(0,r.useState)(!1),R=(0,v.Z)(j,2),D=R[0],F=R[1],L=(0,r.useState)(!1),M=(0,v.Z)(L,2),B=M[0],z=M[1],Z=(0,r.useState)(!1),U=(0,v.Z)(Z,2),V=U[0],q=U[1],H=(0,r.useState)(!1),W=(0,v.Z)(H,2),J=W[0],G=W[1];(0,r.useEffect)((function(){return OE(F)}),[]);var Y=(0,r.useRef)(null),X=(0,r.useState)(!0),$=(0,v.Z)(X,2),K=$[0],Q=$[1],ee=(0,r.useState)(!!p),te=(0,v.Z)(ee,2),ne=te[0],re=te[1],oe=void 0!==h,ae=oe?h:ne,ie=(0,r.useCallback)((function(e){o||n?e.preventDefault():(oe||re(ae?e.target.checked:!!b||e.target.checked),null==I||I(e))}),[o,n,ae,oe,b,I]);yc((function(){Y.current&&(Y.current.indeterminate=Boolean(b))}),[b]),fE((function(){n&&z(!1)}),[n,z]),yc((function(){var e=Y.current;if(null==e?void 0:e.form){var t=function(){re(!!p)};return e.form.addEventListener("reset",t),function(){var n;return null==(n=e.form)?void 0:n.removeEventListener("reset",t)}}}),[]);var se=n&&!m,ue=(0,r.useCallback)((function(e){" "===e.key&&G(!0)}),[G]),le=(0,r.useCallback)((function(e){" "===e.key&&G(!1)}),[G]);yc((function(){Y.current&&(Y.current.checked!==ae&&re(Y.current.checked))}),[Y.current]);var ce=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,"data-active":O(J),"data-hover":O(V),"data-checked":O(ae),"data-focus":O(B),"data-focus-visible":O(B&&D),"data-indeterminate":O(b),"data-disabled":O(n),"data-invalid":O(i),"data-readonly":O(o),"aria-hidden":!0,onMouseDown:N(e.onMouseDown,(function(e){B&&e.preventDefault(),G(!0)})),onMouseUp:N(e.onMouseUp,(function(){return G(!1)})),onMouseEnter:N(e.onMouseEnter,(function(){return q(!0)})),onMouseLeave:N(e.onMouseLeave,(function(){return q(!1)}))})}),[J,ae,n,B,D,V,b,i,o]),fe=(0,r.useCallback)((function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{ref:e,"data-active":O(J),"data-hover":O(V),"data-checked":O(ae),"data-focus":O(B),"data-focus-visible":O(B&&D),"data-indeterminate":O(b),"data-disabled":O(n),"data-invalid":O(i),"data-readonly":O(o)})}),[J,ae,n,B,D,V,b,i,o]),de=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f(f({},_),e),{},{ref:ju(t,(function(e){e&&Q("LABEL"===e.tagName)})),onClick:N(e.onClick,(function(){var e;K||(null==(e=Y.current)||e.click(),requestAnimationFrame((function(){var e;null==(e=Y.current)||e.focus({preventScroll:!0})})))})),"data-disabled":O(n),"data-checked":O(ae),"data-invalid":O(i)})}),[_,n,ae,i,K]),pe=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:ju(Y,t),type:"checkbox",name:k,value:w,id:s,tabIndex:S,onChange:N(e.onChange,ie),onBlur:N(e.onBlur,P,(function(){return z(!1)})),onFocus:N(e.onFocus,A,(function(){return z(!0)})),onKeyDown:N(e.onKeyDown,ue),onKeyUp:N(e.onKeyUp,le),required:a,checked:ae,disabled:se,readOnly:o,"aria-label":T,"aria-labelledby":E,"aria-invalid":C?Boolean(C):i,"aria-describedby":d,"aria-disabled":n,style:dE})}),[k,w,s,ie,P,A,ue,le,a,ae,se,o,T,E,C,i,d,n,S]),he=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:t,onMouseDown:N(e.onMouseDown,PE),"data-disabled":O(n),"data-checked":O(ae),"data-invalid":O(i)})}),[ae,n,i]);return{state:{isInvalid:i,isFocused:B,isChecked:ae,isActive:J,isHovered:V,isIndeterminate:b,isDisabled:n,isReadOnly:o,isRequired:a},getRootProps:de,getCheckboxProps:ce,getIndicatorProps:fe,getInputProps:pe,getLabelProps:he,htmlProps:_}}function PE(e){e.preventDefault(),e.stopPropagation()}var AE=["spacing","className","children","iconColor","iconSize","icon","isChecked","isDisabled","onChange","inputProps"],jE={display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",userSelect:"none",flexShrink:0},RE={cursor:"pointer",display:"inline-flex",alignItems:"center",verticalAlign:"top",position:"relative"},DE=yy({from:{opacity:0,strokeDashoffset:16,transform:"scale(0.95)"},to:{opacity:1,strokeDashoffset:0,transform:"scale(1)"}}),FE=yy({from:{opacity:0},to:{opacity:1}}),LE=yy({from:{transform:"scaleX(0.65)"},to:{transform:"scaleX(1)"}}),ME=g((function(e,t){var n=iE(),o=Rr("Checkbox",f(f({},n),e)),a=yt(e),i=a.spacing,s=void 0===i?"0.5rem":i,l=a.className,c=a.children,d=a.iconColor,p=a.iconSize,h=a.icon,m=void 0===h?(0,gr.jsx)(cE,{}):h,g=a.isChecked,y=a.isDisabled,b=void 0===y?null==n?void 0:n.isDisabled:y,k=a.onChange,w=a.inputProps,x=u(a,AE),S=g;(null==n?void 0:n.value)&&a.value&&(S=n.value.includes(a.value));var E=k;(null==n?void 0:n.onChange)&&a.value&&(E=function(){for(var e=arguments.length,t=new Array(e),n=0;n\" "}),XE=(0,v.Z)(YE,2),$E=XE[0],KE=XE[1],QE=g((function(e,t){var n=Rr("Input",e),o=yt(e),a=o.children,i=o.className,s=u(o,GE),l=T("chakra-input__group",i),c={},d=zE(a),p=n.field;d.forEach((function(e){var t,r;n&&(p&&"InputLeftElement"===e.type.id&&(c.paddingStart=null!=(t=p.height)?t:p.h),p&&"InputRightElement"===e.type.id&&(c.paddingEnd=null!=(r=p.height)?r:p.h),"InputRightAddon"===e.type.id&&(c.borderEndRadius=0),"InputLeftAddon"===e.type.id&&(c.borderStartRadius=0))}));var h=d.map((function(t){var n,o,a=zr({size:(null==(n=t.props)?void 0:n.size)||e.size,variant:(null==(o=t.props)?void 0:o.variant)||e.variant});return"Input"!==t.type.id?(0,r.cloneElement)(t,a):(0,r.cloneElement)(t,Object.assign(a,c,t.props))}));return(0,gr.jsx)(vr.div,f(f({className:l,ref:t,__css:f({width:"100%",display:"flex",position:"relative",isolation:"isolate"},n.group),"data-group":!0},s),{},{children:(0,gr.jsx)($E,{value:n,children:h})}))}));QE.displayName="InputGroup";var eC=["placement"],tC={left:{marginEnd:"-1px",borderEndRadius:0,borderEndColor:"transparent"},right:{marginStart:"-1px",borderStartRadius:0,borderStartColor:"transparent"}},nC=vr("div",{baseStyle:{flex:"0 0 auto",width:"auto",display:"flex",alignItems:"center",whiteSpace:"nowrap"}}),rC=g((function(e,t){var n,r=e.placement,o=void 0===r?"left":r,a=u(e,eC),i=null!=(n=tC[o])?n:{},s=KE();return(0,gr.jsx)(nC,f(f({ref:t},a),{},{__css:f(f({},s.addon),i)}))}));rC.displayName="InputAddon";var oC=g((function(e,t){return(0,gr.jsx)(rC,f(f({ref:t,placement:"left"},e),{},{className:T("chakra-input__left-addon",e.className)}))}));oC.displayName="InputLeftAddon",oC.id="InputLeftAddon";var aC=g((function(e,t){return(0,gr.jsx)(rC,f(f({ref:t,placement:"right"},e),{},{className:T("chakra-input__right-addon",e.className)}))}));function iC(){return iC=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:{}).allOwnKeys,a=void 0!==o&&o;if(null!==e&&"undefined"!==typeof e)if("object"!==typeof e&&(e=[e]),vC(e))for(n=0,r=e.length;n0;)if(t===(n=r[o]).toLowerCase())return n;return null}var PC="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof self?self:"undefined"!==typeof window?window:global,AC=function(e){return!gC(e)&&e!==PC};var jC,RC=(jC="undefined"!==typeof Uint8Array&&dC(Uint8Array),function(e){return jC&&e instanceof jC}),DC=hC("HTMLFormElement"),FC=function(e){var t=Object.prototype.hasOwnProperty;return function(e,n){return t.call(e,n)}}(),LC=hC("RegExp"),MC=function(e,t){var n=Object.getOwnPropertyDescriptors(e),r={};IC(n,(function(n,o){var a;!1!==(a=t(n,o,e))&&(r[o]=a||n)})),Object.defineProperties(e,r)},BC="abcdefghijklmnopqrstuvwxyz",zC="0123456789",ZC={DIGIT:zC,ALPHA:BC,ALPHA_DIGIT:BC+BC.toUpperCase()+zC};var UC=hC("AsyncFunction"),VC={isArray:vC,isArrayBuffer:yC,isBuffer:function(e){return null!==e&&!gC(e)&&null!==e.constructor&&!gC(e.constructor)&&kC(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:function(e){var t;return e&&("function"===typeof FormData&&e instanceof FormData||kC(e.append)&&("formdata"===(t=pC(e))||"object"===t&&kC(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!==typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&yC(e.buffer)},isString:bC,isNumber:wC,isBoolean:function(e){return!0===e||!1===e},isObject:xC,isPlainObject:SC,isUndefined:gC,isDate:TC,isFile:EC,isBlob:CC,isRegExp:LC,isFunction:kC,isStream:function(e){return xC(e)&&kC(e.pipe)},isURLSearchParams:OC,isTypedArray:RC,isFileList:_C,forEach:IC,merge:function e(){for(var t=(AC(this)&&this||{}).caseless,n={},r=function(r,o){var a=t&&NC(n,o)||o;SC(n[a])&&SC(r)?n[a]=e(n[a],r):SC(r)?n[a]=e({},r):vC(r)?n[a]=r.slice():n[a]=r},o=0,a=arguments.length;o3&&void 0!==arguments[3]?arguments[3]:{}).allOwnKeys}),e},trim:function(e){return e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n,r){var o,a,i,s={};if(t=t||{},null==e)return t;do{for(a=(o=Object.getOwnPropertyNames(e)).length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&dC(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:pC,kindOfTest:hC,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return-1!==r&&r===n},toArray:function(e){if(!e)return null;if(vC(e))return e;var t=e.length;if(!wC(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},forEachEntry:function(e,t){for(var n,r=(e&&e[Symbol.iterator]).call(e);(n=r.next())&&!n.done;){var o=n.value;t.call(e,o[0],o[1])}},matchAll:function(e,t){for(var n,r=[];null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:DC,hasOwnProperty:FC,hasOwnProp:FC,reduceDescriptors:MC,freezeMethods:function(e){MC(e,(function(t,n){if(kC(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;var r=e[n];kC(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=function(){throw Error("Can not rewrite read-only method '"+n+"'")}))}))},toObjectSet:function(e,t){var n={},r=function(e){e.forEach((function(e){n[e]=!0}))};return vC(e)?r(e):r(String(e).split(t)),n},toCamelCase:function(e){return e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))},noop:function(){},toFiniteNumber:function(e,t){return e=+e,Number.isFinite(e)?e:t},findKey:NC,global:PC,isContextDefined:AC,ALPHABET:ZC,generateString:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:16,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ZC.ALPHA_DIGIT,n="",r=t.length;e--;)n+=t[Math.random()*r|0];return n},isSpecCompliantForm:function(e){return!!(e&&kC(e.append)&&"FormData"===e[Symbol.toStringTag]&&e[Symbol.iterator])},toJSONObject:function(e){var t=new Array(10);return function e(n,r){if(xC(n)){if(t.indexOf(n)>=0)return;if(!("toJSON"in n)){t[r]=n;var o=vC(n)?[]:{};return IC(n,(function(t,n){var a=e(t,r+1);!gC(a)&&(o[n]=a)})),t[r]=void 0,o}}return n}(e,0)},isAsyncFn:UC,isThenable:function(e){return e&&(xC(e)||kC(e))&&kC(e.then)&&kC(e.catch)}};function qC(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o)}VC.inherits(qC,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:VC.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var HC=qC.prototype,WC={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach((function(e){WC[e]={value:e}})),Object.defineProperties(qC,WC),Object.defineProperty(HC,"isAxiosError",{value:!0}),qC.from=function(e,t,n,r,o,a){var i=Object.create(HC);return VC.toFlatObject(e,i,(function(e){return e!==Error.prototype}),(function(e){return"isAxiosError"!==e})),qC.call(i,e.message,t,n,r,o),i.cause=e,i.name=e.name,a&&Object.assign(i,a),i};var JC=qC;function GC(e){return VC.isPlainObject(e)||VC.isArray(e)}function YC(e){return VC.endsWith(e,"[]")?e.slice(0,-2):e}function XC(e,t,n){return e?e.concat(t).map((function(e,t){return e=YC(e),!n&&t?"["+e+"]":e})).join(n?".":""):t}var $C=VC.toFlatObject(VC,{},null,(function(e){return/^is[A-Z]/.test(e)}));var KC=function(e,t,n){if(!VC.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;var r=(n=VC.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,(function(e,t){return!VC.isUndefined(t[e])}))).metaTokens,o=n.visitor||l,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!==typeof Blob&&Blob)&&VC.isSpecCompliantForm(t);if(!VC.isFunction(o))throw new TypeError("visitor must be a function");function u(e){if(null===e)return"";if(VC.isDate(e))return e.toISOString();if(!s&&VC.isBlob(e))throw new JC("Blob is not supported. Use a Buffer instead.");return VC.isArrayBuffer(e)||VC.isTypedArray(e)?s&&"function"===typeof Blob?new Blob([e]):Buffer.from(e):e}function l(e,n,o){var s=e;if(e&&!o&&"object"===typeof e)if(VC.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(VC.isArray(e)&&function(e){return VC.isArray(e)&&!e.some(GC)}(e)||(VC.isFileList(e)||VC.endsWith(n,"[]"))&&(s=VC.toArray(e)))return n=YC(n),s.forEach((function(e,r){!VC.isUndefined(e)&&null!==e&&t.append(!0===i?XC([n],r,a):null===i?n:n+"[]",u(e))})),!1;return!!GC(e)||(t.append(XC(o,n,a),u(e)),!1)}var c=[],f=Object.assign($C,{defaultVisitor:l,convertValue:u,isVisitable:GC});if(!VC.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!VC.isUndefined(n)){if(-1!==c.indexOf(n))throw Error("Circular reference detected in "+r.join("."));c.push(n),VC.forEach(n,(function(n,a){!0===(!(VC.isUndefined(n)||null===n)&&o.call(t,n,VC.isString(a)?a.trim():a,r,f))&&e(n,r?r.concat(a):[a])})),c.pop()}}(e),t};function QC(e){var t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,(function(e){return t[e]}))}function e_(e,t){this._pairs=[],e&&KC(e,this,t)}var t_=e_.prototype;t_.append=function(e,t){this._pairs.push([e,t])},t_.toString=function(e){var t=e?function(t){return e.call(this,t,QC)}:QC;return this._pairs.map((function(e){return t(e[0])+"="+t(e[1])}),"").join("&")};var n_=e_;function r_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function o_(e,t,n){if(!t)return e;var r,o=n&&n.encode||r_,a=n&&n.serialize;if(r=a?a(t,n):VC.isURLSearchParams(t)?t.toString():new n_(t,n).toString(o)){var i=e.indexOf("#");-1!==i&&(e=e.slice(0,i)),e+=(-1===e.indexOf("?")?"?":"&")+r}return e}var a_=function(){function e(){(0,Vr.Z)(this,e),this.handlers=[]}return(0,qr.Z)(e,[{key:"use",value:function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}},{key:"eject",value:function(e){this.handlers[e]&&(this.handlers[e]=null)}},{key:"clear",value:function(){this.handlers&&(this.handlers=[])}},{key:"forEach",value:function(e){VC.forEach(this.handlers,(function(t){null!==t&&e(t)}))}}]),e}(),i_=a_,s_={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},u_={isBrowser:!0,classes:{URLSearchParams:"undefined"!==typeof URLSearchParams?URLSearchParams:n_,FormData:"undefined"!==typeof FormData?FormData:null,Blob:"undefined"!==typeof Blob?Blob:null},isStandardBrowserEnv:function(){var e;return("undefined"===typeof navigator||"ReactNative"!==(e=navigator.product)&&"NativeScript"!==e&&"NS"!==e)&&("undefined"!==typeof window&&"undefined"!==typeof document)}(),isStandardBrowserWebWorkerEnv:"undefined"!==typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"===typeof self.importScripts,protocols:["http","https","file","blob","url","data"]};var l_=function(e){function t(e,n,r,o){var a=e[o++],i=Number.isFinite(+a),s=o>=e.length;return a=!a&&VC.isArray(r)?r.length:a,s?(VC.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i):(r[a]&&VC.isObject(r[a])||(r[a]=[]),t(e,n,r[a],o)&&VC.isArray(r[a])&&(r[a]=function(e){var t,n,r={},o=Object.keys(e),a=o.length;for(t=0;t-1,a=VC.isObject(e);if(a&&VC.isHTMLForm(e)&&(e=new FormData(e)),VC.isFormData(e))return o&&o?JSON.stringify(l_(e)):e;if(VC.isArrayBuffer(e)||VC.isBuffer(e)||VC.isStream(e)||VC.isFile(e)||VC.isBlob(e))return e;if(VC.isArrayBufferView(e))return e.buffer;if(VC.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return KC(e,new u_.classes.URLSearchParams,Object.assign({visitor:function(e,t,n,r){return u_.isNode&&VC.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)}},t))}(e,this.formSerializer).toString();if((n=VC.isFileList(e))||r.indexOf("multipart/form-data")>-1){var i=this.env&&this.env.FormData;return KC(n?{"files[]":e}:e,i&&new i,this.formSerializer)}}return a||o?(t.setContentType("application/json",!1),function(e,t,n){if(VC.isString(e))try{return(t||JSON.parse)(e),VC.trim(e)}catch(r){if("SyntaxError"!==r.name)throw r}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||c_.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(e&&VC.isString(e)&&(n&&!this.responseType||r)){var o=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(o){if("SyntaxError"===a.name)throw JC.from(a,JC.ERR_BAD_RESPONSE,this,null,this.response);throw a}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:u_.classes.FormData,Blob:u_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};VC.forEach(["delete","get","head","post","put","patch"],(function(e){c_.headers[e]={}}));var f_=c_,d_=VC.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),p_=Symbol("internals");function h_(e){return e&&String(e).trim().toLowerCase()}function m_(e){return!1===e||null==e?e:VC.isArray(e)?e.map(m_):String(e)}function v_(e,t,n,r,o){return VC.isFunction(r)?r.call(this,t,n):(o&&(t=n),VC.isString(t)?VC.isString(r)?-1!==t.indexOf(r):VC.isRegExp(r)?r.test(t):void 0:void 0)}var g_=function(e,t){function n(e){(0,Vr.Z)(this,n),e&&this.set(e)}return(0,qr.Z)(n,[{key:"set",value:function(e,t,n){var r=this;function o(e,t,n){var o=h_(t);if(!o)throw new Error("header name must be a non-empty string");var a=VC.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=m_(e))}var a=function(e,t){return VC.forEach(e,(function(e,n){return o(e,n,t)}))};return VC.isPlainObject(e)||e instanceof this.constructor?a(e,t):VC.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim())?a(function(e){var t,n,r,o={};return e&&e.split("\n").forEach((function(e){r=e.indexOf(":"),t=e.substring(0,r).trim().toLowerCase(),n=e.substring(r+1).trim(),!t||o[t]&&d_[t]||("set-cookie"===t?o[t]?o[t].push(n):o[t]=[n]:o[t]=o[t]?o[t]+", "+n:n)})),o}(e),t):null!=e&&o(t,e,n),this}},{key:"get",value:function(e,t){if(e=h_(e)){var n=VC.findKey(this,e);if(n){var r=this[n];if(!t)return r;if(!0===t)return function(e){for(var t,n=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;t=r.exec(e);)n[t[1]]=t[2];return n}(r);if(VC.isFunction(t))return t.call(this,r,n);if(VC.isRegExp(t))return t.exec(r);throw new TypeError("parser must be boolean|regexp|function")}}}},{key:"has",value:function(e,t){if(e=h_(e)){var n=VC.findKey(this,e);return!(!n||void 0===this[n]||t&&!v_(0,this[n],n,t))}return!1}},{key:"delete",value:function(e,t){var n=this,r=!1;function o(e){if(e=h_(e)){var o=VC.findKey(n,e);!o||t&&!v_(0,n[o],o,t)||(delete n[o],r=!0)}}return VC.isArray(e)?e.forEach(o):o(e),r}},{key:"clear",value:function(e){for(var t=Object.keys(this),n=t.length,r=!1;n--;){var o=t[n];e&&!v_(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}},{key:"normalize",value:function(e){var t=this,n={};return VC.forEach(this,(function(r,o){var a=VC.findKey(n,o);if(a)return t[a]=m_(r),void delete t[o];var i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(function(e,t,n){return t.toUpperCase()+n}))}(o):String(o).trim();i!==o&&delete t[o],t[i]=m_(r),n[i]=!0})),this}},{key:"concat",value:function(){for(var e,t=arguments.length,n=new Array(t),r=0;r1?n-1:0),o=1;o1?"since :\n"+s.map(N_).join("\n"):" "+N_(s[0]):"as no adapter specified";throw new JC("There is no suitable adapter to dispatch the request "+u,"ERR_NOT_SUPPORT")}return n};function j_(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new x_(null,e)}function R_(e){return j_(e),e.headers=y_.from(e.headers),e.data=b_.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),A_(e.adapter||f_.adapter)(e).then((function(t){return j_(e),t.data=b_.call(e,e.transformResponse,t),t.headers=y_.from(t.headers),t}),(function(t){return k_(t)||(j_(e),t&&t.response&&(t.response.data=b_.call(e,e.transformResponse,t.response),t.response.headers=y_.from(t.response.headers))),Promise.reject(t)}))}var D_=function(e){return e instanceof y_?e.toJSON():e};function F_(e,t){t=t||{};var n={};function r(e,t,n){return VC.isPlainObject(e)&&VC.isPlainObject(t)?VC.merge.call({caseless:n},e,t):VC.isPlainObject(t)?VC.merge({},t):VC.isArray(t)?t.slice():t}function o(e,t,n){return VC.isUndefined(t)?VC.isUndefined(e)?void 0:r(void 0,e,n):r(e,t,n)}function a(e,t){if(!VC.isUndefined(t))return r(void 0,t)}function i(e,t){return VC.isUndefined(t)?VC.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}var u={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:function(e,t){return o(D_(e),D_(t),!0)}};return VC.forEach(Object.keys(Object.assign({},e,t)),(function(r){var a=u[r]||o,i=a(e[r],t[r],r);VC.isUndefined(i)&&a!==s||(n[r]=i)})),n}var L_="1.5.1",M_={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){M_[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var B_={};M_.transitional=function(e,t,n){function r(e,t){return"[Axios v1.5.1] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,o,a){if(!1===e)throw new JC(r(o," has been removed"+(t?" in "+t:"")),JC.ERR_DEPRECATED);return t&&!B_[o]&&(B_[o]=!0,console.warn(r(o," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,o,a)}};var z_={assertOptions:function(e,t,n){if("object"!==typeof e)throw new JC("options must be an object",JC.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),o=r.length;o-- >0;){var a=r[o],i=t[a];if(i){var s=e[a],u=void 0===s||i(s,a,e);if(!0!==u)throw new JC("option "+a+" must be "+u,JC.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new JC("Unknown option "+a,JC.ERR_BAD_OPTION)}},validators:M_},Z_=z_.validators,U_=function(){function e(t){(0,Vr.Z)(this,e),this.defaults=t,this.interceptors={request:new i_,response:new i_}}return(0,qr.Z)(e,[{key:"request",value:function(e,t){"string"===typeof e?(t=t||{}).url=e:t=e||{};var n=t=F_(this.defaults,t),r=n.transitional,o=n.paramsSerializer,a=n.headers;void 0!==r&&z_.assertOptions(r,{silentJSONParsing:Z_.transitional(Z_.boolean),forcedJSONParsing:Z_.transitional(Z_.boolean),clarifyTimeoutError:Z_.transitional(Z_.boolean)},!1),null!=o&&(VC.isFunction(o)?t.paramsSerializer={serialize:o}:z_.assertOptions(o,{encode:Z_.function,serialize:Z_.function},!0)),t.method=(t.method||this.defaults.method||"get").toLowerCase();var i=a&&VC.merge(a.common,a[t.method]);a&&VC.forEach(["delete","get","head","post","put","patch","common"],(function(e){delete a[e]})),t.headers=y_.concat(i,a);var s=[],u=!0;this.interceptors.request.forEach((function(e){"function"===typeof e.runWhen&&!1===e.runWhen(t)||(u=u&&e.synchronous,s.unshift(e.fulfilled,e.rejected))}));var l,c=[];this.interceptors.response.forEach((function(e){c.push(e.fulfilled,e.rejected)}));var f,d=0;if(!u){var p=[R_.bind(this),void 0];for(p.unshift.apply(p,s),p.push.apply(p,c),f=p.length,l=Promise.resolve(t);d0;)r._listeners[t](e);r._listeners=null}})),this.promise.then=function(e){var t,n=new Promise((function(e){r.subscribe(e),t=e})).then(e);return n.cancel=function(){r.unsubscribe(t)},n},t((function(e,t,o){r.reason||(r.reason=new x_(e,t,o),n(r.reason))}))}return(0,qr.Z)(e,[{key:"throwIfRequested",value:function(){if(this.reason)throw this.reason}},{key:"subscribe",value:function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}},{key:"unsubscribe",value:function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}}}],[{key:"source",value:function(){var t;return{token:new e((function(e){t=e})),cancel:t}}}]),e}(),H_=q_;var W_={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(W_).forEach((function(e){var t=(0,v.Z)(e,2),n=t[0],r=t[1];W_[r]=n}));var J_=W_;var G_=function e(t){var n=new V_(t),r=lC(V_.prototype.request,n);return VC.extend(r,V_.prototype,n,{allOwnKeys:!0}),VC.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(F_(t,n))},r}(f_);G_.Axios=V_,G_.CanceledError=x_,G_.CancelToken=H_,G_.isCancel=k_,G_.VERSION=L_,G_.toFormData=KC,G_.AxiosError=JC,G_.Cancel=G_.CanceledError,G_.all=function(e){return Promise.all(e)},G_.spread=function(e){return function(t){return e.apply(null,t)}},G_.isAxiosError=function(e){return VC.isObject(e)&&!0===e.isAxiosError},G_.mergeConfig=F_,G_.AxiosHeaders=y_,G_.formToJSON=function(e){return l_(VC.isHTMLForm(e)?new FormData(e):e)},G_.getAdapter=A_,G_.HttpStatusCode=J_,G_.default=G_;var Y_=G_,X_=function(){var e=m(p().mark((function e(){var t,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Y_.post("https://cloud.kurtosis.com:9770/kurtosis_package_indexer.KurtosisPackageIndexer/GetPackages",{field:""},{headers:{"Content-Type":"application/json"}});case 3:if(t=e.sent,!("packages"in(n=t.data))){e.next=7;break}return e.abrupt("return",n.packages);case 7:return e.abrupt("return",[]);case 10:return e.prev=10,e.t0=e.catch(0),console.error("error occurred"),e.abrupt("return",[]);case 14:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(){return e.apply(this,arguments)}}(),$_=n(4234),K_=function(e,t){if("LIST"===e)try{var n=eO(t);return void 0===n?"LIST":"".concat(n," LIST").toLowerCase()}catch(a){return"LIST".toLowerCase()}if("DICT"===e)try{var r=tO(t),o=nO(t);return void 0===r||void 0===o?"DICT":"".concat(r," -> ").concat(o).toLowerCase()}catch(a){return"DICT".toLowerCase()}return e.toLowerCase()},Q_=function(e){return e.name},eO=function(e){return e.typeV2.topLevelType},tO=function(e){return e.typeV2.innerType1},nO=function(e){return e.typeV2.innerType2},rO=function(e){return e.isRequired},oO=function(e,t,n,r,o,a,i){var s="".concat(i,"-").concat(e),u=function(e){return a(e,o)};switch(t){case"INTEGER":case"STRING":case"BOOL":case"LIST":case"FLOAT":return(0,gr.jsx)(eE,{color:"gray.300",onChange:function(e){return a(e.target.value,o)},value:r[o],borderColor:n[o]?"red.400":null});case"JSON":var l=""===r[o]?"{}":r[o];return(0,gr.jsx)(_r,{border:n[o]?"1px":null,borderColor:n[o]?"red.400":null,children:(0,gr.jsx)(NT,{uniqueId:s,dataCallback:u,defaultState:l})});case"DICT":return(0,gr.jsx)(_r,{border:n[o]?"1px":null,borderColor:n[o]?"red.400":null,children:(0,gr.jsx)(uC,{dataCallback:u,defaultState:r[o]})});default:return(0,gr.jsx)("p",{children:"Unsupported data type encountered"},"data-".concat(o))}},aO=function(e,t){if("string"===typeof e)try{var n=JSON.parse(e);return!(t&&Object.keys(n).length<1)}catch(r){return console.error("Data is not serialized json",e),!1}else if("object"===typeof e)try{return!(t&&Object.keys(e).length<1)}catch(r){return!1}console.error("Data is unknown type ".concat(typeof e),e)},iO=function(e,t){var n=function(e){switch(e.trim().toLowerCase()){case"int":case"integer":case"float":return"number";case"str":case"string":return"string";case"bool":case"boolean":return"boolean";case"dict":case"json":return"object"}}(t),r=e.trim(),o="[".concat(r,"]"),a=JSON.parse(o);return a.forEach((function(e){var t=typeof e;if(t!==n)throw"Invalid datatype: Expected ".concat(n," but got ").concat(t)})),a},sO=function(){var e=m(p().mark((function e(t,n,r,o){var a;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Xs(t,n,r,o);case 2:return a=e.sent,e.abrupt("return",a);case 4:case"end":return e.stop()}}),e)})));return function(t,n,r,o){return e.apply(this,arguments)}}(),uO=function(e){var t=e.createEnclave,n=e.mode,o=su().appData,a=Ga(),i=Wa().state,s=(0,r.useState)(!1),u=(0,v.Z)(s,2),c=u[0],d=u[1],h=(0,r.useState)(""),g=(0,v.Z)(h,2),y=g[0],b=g[1],k=(0,r.useState)(!1),w=(0,v.Z)(k,2),x=w[0],S=w[1],T=(0,r.useState)({}),E=(0,v.Z)(T,2),C=E[0],_=E[1],O=(0,r.useState)({}),I=(0,v.Z)(O,2),N=I[0],P=I[1],A=(0,r.useState)({}),j=(0,v.Z)(A,2),R=j[0],D=j[1],F=function(){return"edit"===n},L=function(e,t,n,r){var o={},a={};e.args.forEach((function(e,t){"plan"!==e.name&&(o[t]=""),r&&r[e.name]&&(o[t]=function(e){var t=e;try{"object"===typeof t&&(t=JSON.stringify(t))}catch(n){}return t}(r[e.name]))})),e.args.forEach((function(e,t){"plan"!==e.name&&(a[t]="")})),P(o),D(a),_(e)};(0,r.useEffect)((function(){if("create"===n){var e=i.kurtosisPackage;L(e,0,0,null)}else if(F()){var t=i.name,r=i.host,a=i.port;i.enclave;X_().then((function(e){sO(r,a,o.jwtToken,o.apiHost).then((function(n){var r=e.find((function(e){return e.name===n.packageId}));b(t);var o=JSON.parse(n.serializedParams||"{}");r?L(r,0,0,o):console.error("Was not able to match a package to the running enclave ".concat(n.name," for package id: ").concat(n.packageId))}))}))}else console.error("Unsupported package configuration mode: ".concat(n))}),[]);var M=function(e,t){var n=f(f({},N),{},(0,l.Z)({},t,e));if(P(n),R[t]){var r=f(f({},R),{},(0,l.Z)({},t,!1));D(r)}},B=function(){var e=m(p().mark((function e(n,r,o,a,i){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,t(n,r,o,a,i);case 2:d(!1);case 3:case"end":return e.stop()}}),e)})));return function(t,n,r,o,a){return e.apply(this,arguments)}}(),z=(0,r.useState)((0,gr.jsx)(gr.Fragment,{})),Z=(0,v.Z)(z,2),U=Z[0],V=Z[1];return(0,r.useEffect)((function(){C.args&&N&&R&&V(function(e,t,n,r,o){return e.map((function(e,a){if("plan"!==Q_(e)){var i="JSON";try{switch(eO(e)){case"INTEGER":i="INTEGER";break;case"STRING":i="STRING";break;case"BOOL":i="BOOL";break;case"FLOAT":i="FLOAT";break;case"DICT":i="DICT";break;case"LIST":i="LIST";break;default:i="JSON"}}catch(s){}return(0,gr.jsxs)(Cy,{color:"white",children:[(0,gr.jsxs)(Cy,{mr:"3",direction:"column",w:"15%",children:[(0,gr.jsxs)(Ur,{marginLeft:3,align:"right",fontSize:"l",children:[HE()(e.name),(0,gr.jsx)(Ur,{fontSize:"l",as:"span",color:"red",children:(0,gr.jsx)(my,{label:"Required variable",children:(0,gr.jsx)("span",{children:e.isRequired?" *":null})})}),(0,gr.jsx)(my,{label:e.description,children:(0,gr.jsx)(WE,{marginLeft:2})})]}),(0,gr.jsx)(Ur,{marginLeft:3,as:"kbd",fontSize:"xs",align:"right",children:K_(i,e)})]}),(0,gr.jsxs)(Cy,{flex:"1",mr:"3",direction:"column",children:[r&&r[a]&&r[a].length>0?(0,gr.jsx)(Ur,{marginLeft:3,align:"left",fontSize:"xs",color:"red.500",children:r[a]}):null,oO(e.name,i,r,n,a,t,o)]})]},"entry-".concat(a))}}))}(C.args,M,N,R,C.name))}),[C.args,N,R,C.name]),(0,gr.jsx)("div",{className:"w-screen",children:(0,gr.jsxs)(br,{templateAreas:'"option"\n "packageId"\n "main"\n "configure"',gridTemplateRows:"60px 60px 1fr 60px",gridTemplateColumns:"1fr",h:"100%",w:"100%",color:"blackAlpha.700",fontWeight:"bold",gap:2,children:[(0,gr.jsx)(rE,{area:"option",pt:"1",children:(0,gr.jsx)(VE,{catalog:!0})}),(0,gr.jsx)(rE,{area:"packageId",p:"1",children:(0,gr.jsxs)(Cy,{direction:"column",gap:"2",children:[(0,gr.jsx)(Mr,{children:(0,gr.jsxs)(Ur,{color:"white",fontSize:"2xl",children:[" ",C.name," "]})}),(0,gr.jsx)(ME,{marginLeft:2,color:"white",fontSize:"xl",isChecked:x,onChange:function(e){return S(e.target.checked)},children:(0,gr.jsxs)(Ur,{children:["Restart services",(0,gr.jsx)(my,{label:"When enabled, Kurtosis will automatically restart any services that crash inside the enclave",children:(0,gr.jsx)(WE,{marginLeft:2})})]})})]})}),(0,gr.jsx)(rE,{area:"main",h:"90%",overflowY:"scroll",mt:"10",children:(0,gr.jsxs)(UE,{spacing:4,children:[(0,gr.jsxs)(Cy,{color:"white",children:[(0,gr.jsx)(Cy,{mr:"3",direction:"column",w:"15%",children:(0,gr.jsxs)(Ur,{marginLeft:3,align:"right",fontSize:"l",children:["Enclave Name",(0,gr.jsx)(my,{label:"Leave empty to auto-generate an enclave name",children:(0,gr.jsx)(WE,{marginLeft:2})})]})}),(0,gr.jsx)(Cy,{flex:"1",mr:"3",direction:"column",children:(0,gr.jsx)(eE,{color:"gray.300",value:y,onChange:function(e){return b(e.target.value)},disabled:F()})})]}),U]})}),(0,gr.jsx)(rE,{area:"configure",m:"10px",children:(0,gr.jsxs)(Cy,{gap:5,children:[(0,gr.jsx)(pS,{colorScheme:"red",w:"50%",onClick:function(){a("/catalog")},children:" Cancel "}),(0,gr.jsx)(pS,{bg:"#24BA27",w:"50%",onClick:function(){var e={};if(Object.keys(N).filter((function(t){var n=C.args[t],r="";try{r=eO(n)}catch(u){}var o=rO(n);if(o||0!==N[t].length){var a,i=!0;if("STRING"===r)i=function(e){if("undefined"===e||0===e.length)return!1;try{return"string"===typeof JSON.parse(e)}catch(t){return!e.includes('"')&&!e.includes("'")}}(N[t]);else if("INTEGER"===r)i=function(e){if("undefined"===e)return!1;try{var t=e.trim();return/^-?\d+$/.test(t)}catch(n){return!1}}(N[t]);else if("BOOL"===r)i=function(e){var t=e.trim();return["TRUE","FALSE"].includes(t.toUpperCase())}(N[t]);else if("FLOAT"===r)i=function(e){if("undefined"===e)return!1;var t=e.trim();return 0!==t.length&&!isNaN(Number(t))}(N[t]);else if("LIST"===r){var s=tO(n);i=function(e,t){if("undefined"===e)return!1;try{return iO(e,t),!0}catch(n){return!1}}(N[t],s)}else i="DICT"===r?aO(N[t],o):"JSON"===r?aO(N[t],!1):function(e){try{$_.load(e)}catch(t){return!1}return!0}(N[t]);a=void 0===r?"JSON":"BOOL"===r?"BOOLEAN (TRUE/FALSE)":K_(r,C.args[t]),i||(e[t]="Incorrect type: expected ".concat(a))}})),Object.keys(N).filter((function(t){var n=!0;rO(C.args[t])&&0===N[t].length&&(n=!1),n||(e[t]="This field is required and cannot be empty")})),0===Object.keys(e).length){d(!0);var t={};Object.keys(N).map((function(e){var n=C.args[e],r=Q_(n),o="";try{o=eO(n)}catch(u){}var a,i=N[e];if(i.length>0)if("INTEGER"===o)a=parseInt(i),t[r]=a;else if("BOOL"===o)a=i.trim().toUpperCase(),t[r]="TRUE"===a;else if("FLOAT"===o)a=parseFloat(i),t[r]=a;else if("LIST"===o){var s=tO(C,e);a=iO(i,s),t[r]=a}else if("STRING"===o)t[r]=i;else if("DICT"===o)if("string"===typeof i)try{a=JSON.parse(i),Object.keys(a).length>0&&(t[r]=a)}catch(l){console.error("Expected data to be serialized json, but parsing failed. arg=".concat(r,", value=").concat(i))}else"object"===typeof i?Object.keys(i).length>0&&(t[r]=i):console.error("Data field '".concat(r,"' was not a valid object but was type ").concat(typeof i,". Contained value: '").concat(i,"'"));else try{a=JSON.parse(i),t[r]=a}catch(c){console.error("Data field '".concat(r,"' was not a valid object but was type ").concat(typeof i,". Contained value: '").concat(i,"'"))}})),console.log("raw args",t);var r=JSON.stringify(t),o={packageId:C.name,args:r};if(console.log("Creating enclave with package args",o),F()){var a=i.enclave;B(o,y,x,n,a)}else B(o,y,x,n,null)}else{var s=f(f({},R),e);D(s)}},isLoading:c,loadingText:"Running...",children:"Run"})]})})]})})},lO=["children","styleType","stylePosition","spacing"],cO=["as"],fO=["as"],dO=dc({name:"ListStylesContext",errorMessage:"useListStyles returned is 'undefined'. Seems you forgot to wrap the components in \"
\" "}),pO=(0,v.Z)(dO,2),hO=pO[0],mO=pO[1],vO=g((function(e,t){var n=Rr("List",e),r=yt(e),o=r.children,a=r.styleType,i=void 0===a?"none":a,s=r.stylePosition,c=r.spacing,d=u(r,lO),p=zE(o),h=c?(0,l.Z)({},"& > *:not(style) ~ *:not(style)",{mt:c}):{};return(0,gr.jsx)(hO,{value:n,children:(0,gr.jsx)(vr.ul,f(f({ref:t,listStyleType:i,listStylePosition:s,role:"list",__css:f(f({},n.container),h)},d),{},{children:p}))})}));vO.displayName="List",g((function(e,t){e.as;var n=u(e,cO);return(0,gr.jsx)(vO,f({ref:t,as:"ol",styleType:"decimal",marginStart:"1em"},n))})).displayName="OrderedList",g((function(e,t){e.as;var n=u(e,fO);return(0,gr.jsx)(vO,f({ref:t,as:"ul",styleType:"initial",marginStart:"1em"},n))})).displayName="UnorderedList";var gO=g((function(e,t){var n=mO();return(0,gr.jsx)(vr.li,f(f({ref:t},e),{},{__css:n.item}))}));gO.displayName="ListItem";var yO=g((function(e,t){var n=mO();return(0,gr.jsx)(Mx,f(f({ref:t,role:"presentation"},e),{},{__css:n.icon}))}));yO.displayName="ListIcon";var bO=["placement"],kO=["className"],wO=["className"],xO=vr("div",{baseStyle:{display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",top:"0",zIndex:2}}),SO=g((function(e,t){var n,r,o,a=e.placement,i=void 0===a?"left":a,s=u(e,bO),c=KE(),d=c.field,p="left"===i?"insetStart":"insetEnd",h=f((n={},(0,l.Z)(n,p,"0"),(0,l.Z)(n,"width",null!=(r=null==d?void 0:d.height)?r:null==d?void 0:d.h),(0,l.Z)(n,"height",null!=(o=null==d?void 0:d.height)?o:null==d?void 0:d.h),(0,l.Z)(n,"fontSize",null==d?void 0:d.fontSize),n),c.element);return(0,gr.jsx)(xO,f({ref:t,__css:h},s))}));SO.id="InputElement",SO.displayName="InputElement";var TO=g((function(e,t){var n=e.className,r=u(e,kO),o=T("chakra-input__left-element",n);return(0,gr.jsx)(SO,f({ref:t,placement:"left",className:o},r))}));TO.id="InputLeftElement",TO.displayName="InputLeftElement";var EO=g((function(e,t){var n=e.className,r=u(e,wO),o=T("chakra-input__right-element",n);return(0,gr.jsx)(SO,f({ref:t,placement:"right",className:o},r))}));EO.id="InputRightElement",EO.displayName="InputRightElement";var CO=Bx({d:"M23.384,21.619,16.855,15.09a9.284,9.284,0,1,0-1.768,1.768l6.529,6.529a1.266,1.266,0,0,0,1.768,0A1.251,1.251,0,0,0,23.384,21.619ZM2.75,9.5a6.75,6.75,0,1,1,6.75,6.75A6.758,6.758,0,0,1,2.75,9.5Z",displayName:"SearchIcon"}),_O=n(5586);function OO(e){return e&&"object"===typeof e?"position"in e||"type"in e?NO(e.position):"start"in e||"end"in e?NO(e):"line"in e||"column"in e?IO(e):"":""}function IO(e){return PO(e&&e.line)+":"+PO(e&&e.column)}function NO(e){return IO(e&&e.start)+"-"+IO(e&&e.end)}function PO(e){return e&&"number"===typeof e?e:1}var AO=function(e){(0,Hr.Z)(n,e);var t=(0,Wr.Z)(n);function n(e,r,o){var a;(0,Vr.Z)(this,n);var i=[null,null],s={start:{line:null,column:null},end:{line:null,column:null}};if(a=t.call(this),"string"===typeof r&&(o=r,r=void 0),"string"===typeof o){var u=o.indexOf(":");-1===u?i[1]=o:(i[0]=o.slice(0,u),i[1]=o.slice(u+1))}return r&&("type"in r||"position"in r?r.position&&(s=r.position):"start"in r||"end"in r?s=r:("line"in r||"column"in r)&&(s.start=r)),a.name=OO(r)||"1:1",a.message="object"===typeof e?e.message:e,a.stack="","object"===typeof e&&e.stack&&(a.stack=e.stack),a.reason=a.message,a.fatal,a.line=s.start.line,a.column=s.start.column,a.position=s,a.source=i[0],a.ruleId=i[1],a.file,a.actual,a.expected,a.url,a.note,a}return(0,qr.Z)(n)}(Kr(Error));AO.prototype.file="",AO.prototype.name="",AO.prototype.reason="",AO.prototype.message="",AO.prototype.stack="",AO.prototype.fatal=null,AO.prototype.column=null,AO.prototype.line=null,AO.prototype.source=null,AO.prototype.ruleId=null,AO.prototype.position=null;var jO={basename:function(e,t){if(void 0!==t&&"string"!==typeof t)throw new TypeError('"ext" argument must be a string');RO(e);var n,r=0,o=-1,a=e.length;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else o<0&&(n=!0,o=a+1);return o<0?"":e.slice(r,o)}if(t===e)return"";var i=-1,s=t.length-1;for(;a--;)if(47===e.charCodeAt(a)){if(n){r=a+1;break}}else i<0&&(n=!0,i=a+1),s>-1&&(e.charCodeAt(a)===t.charCodeAt(s--)?s<0&&(o=a):(s=-1,o=i));r===o?o=i:o<0&&(o=e.length);return e.slice(r,o)},dirname:function(e){if(RO(e),0===e.length)return".";var t,n=-1,r=e.length;for(;--r;)if(47===e.charCodeAt(r)){if(t){n=r;break}}else t||(t=!0);return n<0?47===e.charCodeAt(0)?"/":".":1===n&&47===e.charCodeAt(0)?"//":e.slice(0,n)},extname:function(e){RO(e);var t,n=e.length,r=-1,o=0,a=-1,i=0;for(;n--;){var s=e.charCodeAt(n);if(47!==s)r<0&&(t=!0,r=n+1),46===s?a<0?a=n:1!==i&&(i=1):a>-1&&(i=-1);else if(t){o=n+1;break}}if(a<0||r<0||0===i||1===i&&a===r-1&&a===o+1)return"";return e.slice(a,r)},join:function(){for(var e,t=-1,n=arguments.length,r=new Array(n),o=0;o2){if((r=o.lastIndexOf("/"))!==o.length-1){r<0?(o="",a=0):a=(o=o.slice(0,r)).length-1-o.lastIndexOf("/"),i=u,s=0;continue}}else if(o.length>0){o="",a=0,i=u,s=0;continue}t&&(o=o.length>0?o+"/..":"..",a=2)}else o.length>0?o+="/"+e.slice(i+1,u):o=e.slice(i+1,u),a=u-i-1;i=u,s=0}else 46===n&&s>-1?s++:s=-1}return o}(e,!t);0!==n.length||t||(n=".");n.length>0&&47===e.charCodeAt(e.length-1)&&(n+="/");return t?"/"+n:n}(e)},sep:"/"};function RO(e){if("string"!==typeof e)throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}var DO={cwd:function(){return"/"}};function FO(e){return null!==e&&"object"===typeof e&&e.href&&e.origin}function LO(e){if("string"===typeof e)e=new URL(e);else if(!FO(e)){var 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("file:"!==e.protocol){var n=new TypeError("The URL must be of scheme file");throw n.code="ERR_INVALID_URL_SCHEME",n}return function(e){if(""!==e.hostname){var t=new TypeError('File URL host must be "localhost" or empty on darwin');throw t.code="ERR_INVALID_FILE_URL_HOST",t}var n=e.pathname,r=-1;for(;++r1?u-1:0),c=1;co.length;l&&o.push(a);try{u=e.apply(this,o)}catch(r){if(l&&n)throw r;return a(r)}l||(u instanceof Promise?u.then(i,a):u instanceof Error?a(u):i(u))}function a(e){if(!n){n=!0;for(var r=arguments.length,o=new Array(r>1?r-1:0),a=1;a1?n-1:0),u=1;ua?0:a+t:t>a?a:t,n=n>0?n:0,r.length<1e4)(o=Array.from(r)).unshift(t,n),e.splice.apply(e,(0,i.Z)(o));else for(n&&e.splice(t,n);s0?(aI(e,e.length,0,t),e):t}var sI={}.hasOwnProperty;function uI(e){for(var t={},n=-1;++nr))return;for(var l,c,f=o.events.length,d=f;d--;)if("exit"===o.events[d][0]&&"chunkFlow"===o.events[d][1].type){if(l){c=o.events[d][1].end;break}l=!0}for(g(i),u=f;ut;){var r=a[n];o.containerState=r[1],r[0].exit.call(o,e)}a.length=t}function y(){t.write([null]),n=void 0,t=void 0,o.containerState._closeFlow=void 0}}},_I={tokenize:function(e,t,n){return TI(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}};var OI={tokenize:function(e,t,n){return function(t){return kI(t)?TI(e,r,"linePrefix")(t):r(t)};function r(e){return null===e||yI(e)?t(e):n(e)}},partial:!0};function II(e){for(var t,n,r,o,a,i,s,u={},l=-1;++l=4?t(o):e.interrupt(r.parser.constructs.flow,n,t)(o)}},partial:!0};var jI={tokenize:function(e){var t=this,n=e.attempt(OI,(function(r){if(null===r)return void e.consume(r);return e.enter("lineEndingBlank"),e.consume(r),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}),e.attempt(this.parser.constructs.flowInitial,r,TI(e,e.attempt(this.parser.constructs.flow,r,e.attempt(PI,r)),"linePrefix")));return n;function r(r){if(null!==r)return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),t.currentConstruct=void 0,n;e.consume(r)}}};var RI={resolveAll:MI()},DI=LI("string"),FI=LI("text");function LI(e){return{tokenize:function(t){var n=this,r=this.parser.constructs[e],o=t.attempt(r,a,i);return a;function a(e){return u(e)?o(e):i(e)}function i(e){if(null!==e)return t.enter("data"),t.consume(e),s;t.consume(e)}function s(e){return u(e)?(t.exit("data"),o(e)):(t.consume(e),s)}function u(e){if(null===e)return!0;var t=r[e],o=-1;if(t)for(;++o-1){var s=n[0];"string"===typeof s?n[0]=s.slice(o):n.shift()}i>0&&n.push(e[a].slice(0,i))}return n}(s,e)}function p(){var e=r;return{line:e.line,column:e.column,offset:e.offset,_index:e._index,_bufferIndex:e._bufferIndex}}function h(){for(var e;r._index=3&&(null===a||yI(a))?(e.exit("thematicBreak"),t(a)):n(a)}function i(t){return t===r?(e.consume(t),o++,i):(e.exit("thematicBreakSequence"),kI(t)?TI(e,a,"whitespace")(t):a(t))}}};var VI={name:"list",tokenize:function(e,t,n){var r=this,o=r.events[r.events.length-1],a=o&&"linePrefix"===o[1].type?o[2].sliceSerialize(o[1],!0).length:0,i=0;return function(t){var o=r.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===o?!r.containerState.marker||t===r.containerState.marker:mI(t)){if(r.containerState.type||(r.containerState.type=o,e.enter(o,{_container:!0})),"listUnordered"===o)return e.enter("listItemPrefix"),42===t||45===t?e.check(UI,n,u)(t):u(t);if(!r.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),s(t)}return n(t)};function s(t){return mI(t)&&++i<10?(e.consume(t),s):(!r.interrupt||i<2)&&(r.containerState.marker?t===r.containerState.marker:41===t||46===t)?(e.exit("listItemValue"),u(t)):n(t)}function u(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||t,e.check(OI,r.interrupt?n:l,e.attempt(qI,f,c))}function l(e){return r.containerState.initialBlankLine=!0,a++,f(e)}function c(t){return kI(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),f):n(t)}function f(n){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}},continuation:{tokenize:function(e,t,n){var r=this;return r.containerState._closeFlow=void 0,e.check(OI,o,a);function o(n){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,TI(e,t,"listItemIndent",r.containerState.size+1)(n)}function a(n){return r.containerState.furtherBlankLines||!kI(n)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,i(n)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(HI,t,i)(n))}function i(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,TI(e,e.attempt(VI,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}},exit:function(e){e.exit(this.containerState.type)}},qI={tokenize:function(e,t,n){var r=this;return TI(e,(function(e){var o=r.events[r.events.length-1];return!kI(e)&&o&&"listItemPrefixWhitespace"===o[1].type?t(e):n(e)}),"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5)},partial:!0},HI={tokenize:function(e,t,n){var r=this;return TI(e,(function(e){var o=r.events[r.events.length-1];return o&&"listItemIndent"===o[1].type&&o[2].sliceSerialize(o[1],!0).length===r.containerState.size?t(e):n(e)}),"listItemIndent",r.containerState.size+1)},partial:!0};var WI={name:"blockQuote",tokenize:function(e,t,n){var r=this;return function(t){if(62===t){var a=r.containerState;return a.open||(e.enter("blockQuote",{_container:!0}),a.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),o}return n(t)};function o(n){return kI(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}},continuation:{tokenize:function(e,t,n){var r=this;return function(t){if(kI(t))return TI(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t);return o(t)};function o(r){return e.attempt(WI,t,n)(r)}}},exit:function(e){e.exit("blockQuote")}};function JI(e,t,n,r,o,a,i,s,u){var l=u||Number.POSITIVE_INFINITY,c=0;return function(t){if(60===t)return e.enter(r),e.enter(o),e.enter(a),e.consume(t),e.exit(a),f;if(null===t||32===t||41===t||hI(t))return n(t);return e.enter(r),e.enter(i),e.enter(s),e.enter("chunkString",{contentType:"string"}),h(t)};function f(n){return 62===n?(e.enter(a),e.consume(n),e.exit(a),e.exit(o),e.exit(r),t):(e.enter(s),e.enter("chunkString",{contentType:"string"}),d(n))}function d(t){return 62===t?(e.exit("chunkString"),e.exit(s),f(t)):null===t||60===t||yI(t)?n(t):(e.consume(t),92===t?p:d)}function p(t){return 60===t||62===t||92===t?(e.consume(t),d):d(t)}function h(o){return c||null!==o&&41!==o&&!bI(o)?c999||null===f||91===f||93===f&&!i||94===f&&!u&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):93===f?(e.exit(a),e.enter(o),e.consume(f),e.exit(o),e.exit(r),t):yI(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),l):(e.enter("chunkString",{contentType:"string"}),c(f))}function c(t){return null===t||91===t||93===t||yI(t)||u++>999?(e.exit("chunkString"),l(t)):(e.consume(t),i||(i=!kI(t)),92===t?f:c)}function f(t){return 91===t||92===t||93===t?(e.consume(t),u++,c):c(t)}}function YI(e,t,n,r,o,a){var i;return function(t){if(34===t||39===t||40===t)return e.enter(r),e.enter(o),e.consume(t),e.exit(o),i=40===t?41:t,s;return n(t)};function s(n){return n===i?(e.enter(o),e.consume(n),e.exit(o),e.exit(r),t):(e.enter(a),u(n))}function u(t){return t===i?(e.exit(a),s(i)):null===t?n(t):yI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),TI(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),l(t))}function l(t){return t===i||null===t||yI(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return t===i||92===t?(e.consume(t),l):l(t)}}function XI(e,t){var n;return function r(o){if(yI(o))return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),n=!0,r;if(kI(o))return TI(e,r,n?"linePrefix":"lineSuffix")(o);return t(o)}}function $I(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}var KI={name:"definition",tokenize:function(e,t,n){var r,o=this;return function(t){return e.enter("definition"),function(t){return GI.call(o,e,a,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)}(t)};function a(t){return r=$I(o.sliceSerialize(o.events[o.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i):n(t)}function i(t){return bI(t)?XI(e,s)(t):s(t)}function s(t){return JI(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(QI,l,l)(t)}function l(t){return kI(t)?TI(e,c,"whitespace")(t):c(t)}function c(a){return null===a||yI(a)?(e.exit("definition"),o.parser.defined.push(r),t(a)):n(a)}}},QI={tokenize:function(e,t,n){return function(t){return bI(t)?XI(e,r)(t):n(t)};function r(t){return YI(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function o(t){return kI(t)?TI(e,a,"whitespace")(t):a(t)}function a(e){return null===e||yI(e)?t(e):n(e)}},partial:!0};var eN={name:"codeIndented",tokenize:function(e,t,n){var r=this;return function(t){return e.enter("codeIndented"),TI(e,o,"linePrefix",5)(t)};function o(e){var t=r.events[r.events.length-1];return t&&"linePrefix"===t[1].type&&t[2].sliceSerialize(t[1],!0).length>=4?a(e):n(e)}function a(t){return null===t?s(t):yI(t)?e.attempt(tN,a,s)(t):(e.enter("codeFlowValue"),i(t))}function i(t){return null===t||yI(t)?(e.exit("codeFlowValue"),a(t)):(e.consume(t),i)}function s(n){return e.exit("codeIndented"),t(n)}}},tN={tokenize:function(e,t,n){var r=this;return o;function o(t){return r.parser.lazy[r.now().line]?n(t):yI(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o):TI(e,a,"linePrefix",5)(t)}function a(e){var a=r.events[r.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?t(e):yI(e)?o(e):n(e)}},partial:!0};var nN={name:"headingAtx",tokenize:function(e,t,n){var r=0;return function(t){return e.enter("atxHeading"),function(t){return e.enter("atxHeadingSequence"),o(t)}(t)};function o(t){return 35===t&&r++<6?(e.consume(t),o):null===t||bI(t)?(e.exit("atxHeadingSequence"),a(t)):n(t)}function a(n){return 35===n?(e.enter("atxHeadingSequence"),i(n)):null===n||yI(n)?(e.exit("atxHeading"),t(n)):kI(n)?TI(e,a,"whitespace")(n):(e.enter("atxHeadingText"),s(n))}function i(t){return 35===t?(e.consume(t),i):(e.exit("atxHeadingSequence"),a(t))}function s(t){return null===t||35===t||bI(t)?(e.exit("atxHeadingText"),a(t)):(e.consume(t),s)}},resolve:function(e,t){var n,r,o=e.length-2,a=3;"whitespace"===e[a][1].type&&(a+=2);o-2>a&&"whitespace"===e[o][1].type&&(o-=2);"atxHeadingSequence"===e[o][1].type&&(a===o-1||o-4>a&&"whitespace"===e[o-2][1].type)&&(o-=a+1===o?2:4);o>a&&aI(e,a,o-a+1,[["enter",n={type:"atxHeadingText",start:e[a][1].start,end:e[o][1].end},t],["enter",r={type:"chunkText",start:e[a][1].start,end:e[o][1].end,contentType:"text"},t],["exit",r,t],["exit",n,t]]);return e}};var rN={name:"setextUnderline",tokenize:function(e,t,n){var r,o=this;return function(t){var i,s=o.events.length;for(;s--;)if("lineEnding"!==o.events[s][1].type&&"linePrefix"!==o.events[s][1].type&&"content"!==o.events[s][1].type){i="paragraph"===o.events[s][1].type;break}if(!o.parser.lazy[o.now().line]&&(o.interrupt||i))return e.enter("setextHeadingLine"),r=t,function(t){return e.enter("setextHeadingLineSequence"),a(t)}(t);return n(t)};function a(t){return t===r?(e.consume(t),a):(e.exit("setextHeadingLineSequence"),kI(t)?TI(e,i,"lineSuffix")(t):i(t))}function i(r){return null===r||yI(r)?(e.exit("setextHeadingLine"),t(r)):n(r)}},resolveTo:function(e,t){var n,r,o,a=e.length;for(;a--;)if("enter"===e[a][0]){if("content"===e[a][1].type){n=a;break}"paragraph"===e[a][1].type&&(r=a)}else"content"===e[a][1].type&&e.splice(a,1),o||"definition"!==e[a][1].type||(o=a);var i={type:"setextHeading",start:Object.assign({},e[r][1].start),end:Object.assign({},e[e.length-1][1].end)};e[r][1].type="setextHeadingText",o?(e.splice(r,0,["enter",i,t]),e.splice(o+1,0,["exit",e[n][1],t]),e[n][1].end=Object.assign({},e[o][1].end)):e[n][1]=i;return e.push(["exit",i,t]),e}};var oN=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],aN=["pre","script","style","textarea"],iN={name:"htmlFlow",tokenize:function(e,t,n){var r,o,a,i,s,u=this;return function(t){return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),l}(t)};function l(i){return 33===i?(e.consume(i),c):47===i?(e.consume(i),o=!0,p):63===i?(e.consume(i),r=3,u.interrupt?t:R):fI(i)?(e.consume(i),a=String.fromCharCode(i),h):n(i)}function c(o){return 45===o?(e.consume(o),r=2,f):91===o?(e.consume(o),r=5,i=0,d):fI(o)?(e.consume(o),r=4,u.interrupt?t:R):n(o)}function f(r){return 45===r?(e.consume(r),u.interrupt?t:R):n(r)}function d(r){var o="CDATA[";return r===o.charCodeAt(i++)?(e.consume(r),6===i?u.interrupt?t:C:d):n(r)}function p(t){return fI(t)?(e.consume(t),a=String.fromCharCode(t),h):n(t)}function h(i){if(null===i||47===i||62===i||bI(i)){var s=47===i,l=a.toLowerCase();return s||o||!aN.includes(l)?oN.includes(a.toLowerCase())?(r=6,s?(e.consume(i),m):u.interrupt?t(i):C(i)):(r=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(i):o?v(i):g(i)):(r=1,u.interrupt?t(i):C(i))}return 45===i||dI(i)?(e.consume(i),a+=String.fromCharCode(i),h):n(i)}function m(r){return 62===r?(e.consume(r),u.interrupt?t:C):n(r)}function v(t){return kI(t)?(e.consume(t),v):T(t)}function g(t){return 47===t?(e.consume(t),T):58===t||95===t||fI(t)?(e.consume(t),y):kI(t)?(e.consume(t),g):T(t)}function y(t){return 45===t||46===t||58===t||95===t||dI(t)?(e.consume(t),y):b(t)}function b(t){return 61===t?(e.consume(t),k):kI(t)?(e.consume(t),b):g(t)}function k(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),s=t,w):kI(t)?(e.consume(t),k):x(t)}function w(t){return t===s?(e.consume(t),s=null,S):null===t||yI(t)?n(t):(e.consume(t),w)}function x(t){return null===t||34===t||39===t||47===t||60===t||61===t||62===t||96===t||bI(t)?b(t):(e.consume(t),x)}function S(e){return 47===e||62===e||kI(e)?g(e):n(e)}function T(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||yI(t)?C(t):kI(t)?(e.consume(t),E):n(t)}function C(t){return 45===t&&2===r?(e.consume(t),N):60===t&&1===r?(e.consume(t),P):62===t&&4===r?(e.consume(t),D):63===t&&3===r?(e.consume(t),R):93===t&&5===r?(e.consume(t),j):!yI(t)||6!==r&&7!==r?null===t||yI(t)?(e.exit("htmlFlowData"),_(t)):(e.consume(t),C):(e.exit("htmlFlowData"),e.check(sN,F,_)(t))}function _(t){return e.check(uN,O,F)(t)}function O(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||yI(t)?_(t):(e.enter("htmlFlowData"),C(t))}function N(t){return 45===t?(e.consume(t),R):C(t)}function P(t){return 47===t?(e.consume(t),a="",A):C(t)}function A(t){if(62===t){var n=a.toLowerCase();return aN.includes(n)?(e.consume(t),D):C(t)}return fI(t)&&a.length<8?(e.consume(t),a+=String.fromCharCode(t),A):C(t)}function j(t){return 93===t?(e.consume(t),R):C(t)}function R(t){return 62===t?(e.consume(t),D):45===t&&2===r?(e.consume(t),R):C(t)}function D(t){return null===t||yI(t)?(e.exit("htmlFlowData"),F(t)):(e.consume(t),D)}function F(n){return e.exit("htmlFlow"),t(n)}},resolveTo:function(e){var t=e.length;for(;t--&&("enter"!==e[t][0]||"htmlFlow"!==e[t][1].type););t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2));return e},concrete:!0},sN={tokenize:function(e,t,n){return function(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),e.attempt(OI,t,n)}},partial:!0},uN={tokenize:function(e,t,n){var r=this;return function(t){if(yI(t))return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o;return n(t)};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0};var lN={tokenize:function(e,t,n){var r=this;return function(t){if(null===t)return n(t);return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};function o(e){return r.parser.lazy[r.now().line]?n(e):t(e)}},partial:!0},cN={name:"codeFenced",tokenize:function(e,t,n){var r,o=this,a={tokenize:function(e,t,n){var a=0;return i;function i(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),u}function u(t){return e.enter("codeFencedFence"),kI(t)?TI(e,l,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):l(t)}function l(t){return t===r?(e.enter("codeFencedFenceSequence"),c(t)):n(t)}function c(t){return t===r?(a++,e.consume(t),c):a>=s?(e.exit("codeFencedFenceSequence"),kI(t)?TI(e,f,"whitespace")(t):f(t)):n(t)}function f(r){return null===r||yI(r)?(e.exit("codeFencedFence"),t(r)):n(r)}},partial:!0},i=0,s=0;return function(t){return function(t){var n=o.events[o.events.length-1];return i=n&&"linePrefix"===n[1].type?n[2].sliceSerialize(n[1],!0).length:0,r=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),u(t)}(t)};function u(t){return t===r?(s++,e.consume(t),u):s<3?n(t):(e.exit("codeFencedFenceSequence"),kI(t)?TI(e,l,"whitespace")(t):l(t))}function l(n){return null===n||yI(n)?(e.exit("codeFencedFence"),o.interrupt?t(n):e.check(lN,p,y)(n)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),c(n))}function c(t){return null===t||yI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),l(t)):kI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),TI(e,f,"whitespace")(t)):96===t&&t===r?n(t):(e.consume(t),c)}function f(t){return null===t||yI(t)?l(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),d(t))}function d(t){return null===t||yI(t)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),l(t)):96===t&&t===r?n(t):(e.consume(t),d)}function p(t){return e.attempt(a,y,h)(t)}function h(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),m}function m(t){return i>0&&kI(t)?TI(e,v,"linePrefix",i+1)(t):v(t)}function v(t){return null===t||yI(t)?e.check(lN,p,y)(t):(e.enter("codeFlowValue"),g(t))}function g(t){return null===t||yI(t)?(e.exit("codeFlowValue"),v(t)):(e.consume(t),g)}function y(n){return e.exit("codeFenced"),t(n)}},concrete:!0};var fN=document.createElement("i");function dN(e){var t="&"+e+";";fN.innerHTML=t;var n=fN.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&(n!==t&&n)}var pN={name:"characterReference",tokenize:function(e,t,n){var r,o,a=this,i=0;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),s};function s(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),r=31,o=dI,l(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),r=6,o=vI,l):(e.enter("characterReferenceValue"),r=7,o=mI,l(t))}function l(s){if(59===s&&i){var u=e.exit("characterReferenceValue");return o!==dI||dN(a.sliceSerialize(u))?(e.enter("characterReferenceMarker"),e.consume(s),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(s)}return o(s)&&i++1&&e[c][1].end.offset-e[c][1].start.offset>1?2:1;var f=Object.assign({},e[n][1].end),d=Object.assign({},e[c][1].start);SN(f,-s),SN(d,s),a={type:s>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[n][1].end)},i={type:s>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[c][1].start),end:d},o={type:s>1?"strongText":"emphasisText",start:Object.assign({},e[n][1].end),end:Object.assign({},e[c][1].start)},r={type:s>1?"strong":"emphasis",start:Object.assign({},a.start),end:Object.assign({},i.end)},e[n][1].end=Object.assign({},a.start),e[c][1].start=Object.assign({},i.end),u=[],e[n][1].end.offset-e[n][1].start.offset&&(u=iI(u,[["enter",e[n][1],t],["exit",e[n][1],t]])),u=iI(u,[["enter",r,t],["enter",a,t],["exit",a,t],["enter",o,t]]),u=iI(u,zI(t.parser.constructs.insideSpan.null,e.slice(n+1,c),t)),u=iI(u,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",r,t]]),e[c][1].end.offset-e[c][1].start.offset?(l=2,u=iI(u,[["enter",e[c][1],t],["exit",e[c][1],t]])):l=0,aI(e,n-1,c-n+3,u),c=n+u.length-l-2;break}c=-1;for(;++c13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||65535===(65535&n)||65534===(65535&n)||n>1114111?"\ufffd":String.fromCharCode(n)}var HN=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function WN(e){return e.replace(HN,JN)}function JN(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){var r=n.charCodeAt(1),o=120===r||88===r;return qN(n.slice(o?2:1),o?16:10)}return dN(n)||e}var GN={}.hasOwnProperty,YN=function(t,n,r){return"string"!==typeof n&&(r=n,n=void 0),function(e){var t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:s(ne),autolinkProtocol:_,autolinkEmail:_,atxHeading:s(K),blockQuote:s(J),characterEscape:_,characterReference:_,codeFenced:s(G),codeFencedFenceInfo:u,codeFencedFenceMeta:u,codeIndented:s(G,u),codeText:s(Y,u),codeTextData:_,data:_,codeFlowValue:_,definition:s(X),definitionDestinationString:u,definitionLabelString:u,definitionTitleString:u,emphasis:s($),hardBreakEscape:s(Q),hardBreakTrailing:s(Q),htmlFlow:s(ee,u),htmlFlowData:_,htmlText:s(ee,u),htmlTextData:_,image:s(te),label:u,link:s(ne),listItem:s(oe),listItemValue:h,listOrdered:s(re,p),listUnordered:s(re),paragraph:s(ae),reference:Z,referenceString:u,resourceDestinationString:u,resourceTitleString:u,setextHeading:s(K),strong:s(ie),thematicBreak:s(ue)},exit:{atxHeading:c(),atxHeadingSequence:S,autolink:c(),autolinkEmail:W,autolinkProtocol:H,blockQuote:c(),characterEscapeValue:O,characterReferenceMarkerHexadecimal:V,characterReferenceMarkerNumeric:V,characterReferenceValue:q,codeFenced:c(y),codeFencedFence:g,codeFencedFenceInfo:m,codeFencedFenceMeta:v,codeFlowValue:O,codeIndented:c(b),codeText:c(j),codeTextData:O,data:O,definition:c(),definitionDestinationString:x,definitionLabelString:k,definitionTitleString:w,emphasis:c(),hardBreakEscape:c(N),hardBreakTrailing:c(N),htmlFlow:c(P),htmlFlowData:O,htmlText:c(A),htmlTextData:O,image:c(D),label:L,labelText:F,lineEnding:I,link:c(R),listItem:c(),listOrdered:c(),listUnordered:c(),paragraph:c(),referenceString:U,resourceDestinationString:M,resourceTitleString:B,resource:z,setextHeading:c(C),setextHeadingLineSequence:E,setextHeadingText:T,strong:c(),thematicBreak:c()}};$N(t,(e||{}).mdastExtensions||[]);var n={};return r;function r(e){for(var n={type:"root",children:[]},r={stack:[n],tokenStack:[],config:t,enter:l,exit:f,buffer:u,resume:d,setData:a,getData:i},s=[],c=-1;++c0){var h=r.tokenStack[r.tokenStack.length-1];(h[1]||QN).call(r,void 0,h[0])}for(n.position={start:XN(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:XN(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},c=-1;++c55295&&a<57344){var s=e.charCodeAt(n+1);a<56320&&s>56319&&s<57344?(i=String.fromCharCode(a,s),o=1):i="\ufffd"}else i=String.fromCharCode(a);i&&(t.push(e.slice(r,n),encodeURIComponent(i)),r=n+o+1,i=""),o&&(n+=o,o=0)}return t.join("")+e.slice(r)}var nP=function(e){if(void 0===e||null===e)return oP;if("string"===typeof e)return function(e){return rP(t);function t(t){return t&&t.type===e}}(e);if("object"===typeof e)return Array.isArray(e)?function(e){var t=[],n=-1;for(;++n1?n-1:0),o=1;o":"")+")"})}return f;function f(){var l,c,f,d=[];if((!t||o(i,s,u[u.length-1]||null))&&(d=function(e){if(Array.isArray(e))return e;if("number"===typeof e)return[true,e];return[e]}(n(i,u)),false===d[0]))return d;if(i.children&&"skip"!==d[0])for(c=(r?i.children.length:-1)+a,f=u.concat(i);c>-1&&c-1?n.offset:null}}}var cP={}.hasOwnProperty;function fP(e){return String(e||"").toUpperCase()}function dP(e,t){var n,r=String(t.identifier).toUpperCase(),o=tP(r.toLowerCase()),a=e.footnoteOrder.indexOf(r);-1===a?(e.footnoteOrder.push(r),e.footnoteCounts[r]=1,n=e.footnoteOrder.length):(e.footnoteCounts[r]++,n=a+1);var i=e.footnoteCounts[r],s={type:"element",tagName:"a",properties:{href:"#"+e.clobberPrefix+"fn-"+o,id:e.clobberPrefix+"fnref-"+o+(i>1?"-"+i:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(n)}]};e.patch(t,s);var u={type:"element",tagName:"sup",properties:{},children:[s]};return e.patch(t,u),e.applyData(t,u)}function pP(e,t){var n=t.referenceType,r="]";if("collapsed"===n?r+="[]":"full"===n&&(r+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return{type:"text",value:"!["+t.alt+r};var o=e.all(t),a=o[0];a&&"text"===a.type?a.value="["+a.value:o.unshift({type:"text",value:"["});var i=o[o.length-1];return i&&"text"===i.type?i.value+=r:o.push({type:"text",value:r}),o}function hP(e){var t=e.spread;return void 0===t||null===t?e.children.length>1:t}var mP=9,vP=32;function gP(e){for(var t=String(e),n=/\r?\n|\r/g,r=n.exec(t),o=0,a=[];r;)a.push(yP(t.slice(o,r.index),o>0,!0),r[0]),o=r.index+r[0].length,r=n.exec(t);return a.push(yP(t.slice(o),o>0,!1)),a.join("")}function yP(e,t,n){var r=0,o=e.length;if(t)for(var a=e.codePointAt(r);a===mP||a===vP;)r++,a=e.codePointAt(r);if(n)for(var i=e.codePointAt(o-1);i===mP||i===vP;)o--,i=e.codePointAt(o-1);return o>r?e.slice(r,o):""}var bP={blockquote:function(e,t){var n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){var n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:"\n"}]},code:function(e,t){var n=t.value?t.value+"\n":"",r=t.lang?t.lang.match(/^[^ \t]+(?=[ \t]|$)/):null,o={};r&&(o.className=["language-"+r]);var a={type:"element",tagName:"code",properties:o,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a={type:"element",tagName:"pre",properties:{},children:[a=e.applyData(t,a)]},e.patch(t,a),a},delete:function(e,t){var n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){var n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},footnoteReference:dP,footnote:function(e,t){for(var n=e.footnoteById,r=1;r in n;)r++;var o=String(r);return n[o]={type:"footnoteDefinition",identifier:o,children:[{type:"paragraph",children:t.children}],position:t.position},dP(e,{type:"footnoteReference",identifier:o,position:t.position})},heading:function(e,t){var n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.dangerous){var n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}return null},imageReference:function(e,t){var n=e.definition(t.identifier);if(!n)return pP(e,t);var r={src:tP(n.url||""),alt:t.alt};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"img",properties:r,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){var n={src:tP(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)},inlineCode:function(e,t){var n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);var r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)},linkReference:function(e,t){var n=e.definition(t.identifier);if(!n)return pP(e,t);var r={href:tP(n.url||"")};null!==n.title&&void 0!==n.title&&(r.title=n.title);var o={type:"element",tagName:"a",properties:r,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){var n={href:tP(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);var r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)},listItem:function(e,t,n){var r=e.all(t),o=n?function(e){var t=!1;if("list"===e.type){t=e.spread||!1;for(var n=e.children,r=-1;!t&&++r0&&u.children.unshift({type:"text",value:" "}),u.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}for(var c=-1;++c0){var i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},s=sP(t.children[1]),u=uP(t.children[t.children.length-1]);s.line&&u.line&&(i.position={start:s,end:u}),o.push(i)}var l={type:"element",tagName:"table",properties:{},children:e.wrap(o,!0)};return e.patch(t,l),e.applyData(t,l)},tableCell:function(e,t){var n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){for(var r=n?n.children:void 0,o=0===(r?r.indexOf(t):1)?"th":"td",a=n&&"table"===n.type?n.align:void 0,i=a?a.length:t.children.length,s=-1,u=[];++s0&&n.push({type:"text",value:"\n"}),n}function OP(e,t){var n=xP(e,t),r=n.one(e,null),o=function(e){for(var t=[],n=-1;++n1?"-"+s:""),dataFootnoteBackref:!0,className:["data-footnote-backref"],ariaLabel:e.footnoteBackLabel},children:[{type:"text",value:"\u21a9"}]};s>1&&l.children.push({type:"element",tagName:"sup",children:[{type:"text",value:String(s)}]}),u.length>0&&u.push({type:"text",value:" "}),u.push(l)}var c=o[o.length-1];if(c&&"element"===c.type&&"p"===c.tagName){var d,p=c.children[c.children.length-1];p&&"text"===p.type?p.value+=" ":c.children.push({type:"text",value:" "}),(d=c.children).push.apply(d,u)}else o.push.apply(o,u);var h={type:"element",tagName:"li",properties:{id:e.clobberPrefix+"fn-"+i},children:e.wrap(o,!0)};e.patch(r,h),t.push(h)}}if(0!==t.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:e.footnoteLabelTagName,properties:f(f({},JSON.parse(JSON.stringify(e.footnoteLabelProperties))),{},{id:"footnote-label"}),children:[{type:"text",value:e.footnoteLabel}]},{type:"text",value:"\n"},{type:"element",tagName:"ol",properties:{},children:e.wrap(t,!0)},{type:"text",value:"\n"}]}}(n);return o&&r.children.push({type:"text",value:"\n"},o),Array.isArray(r)?{type:"root",children:r}:r}var IP=function(e,t){return e&&"run"in e?function(e,t){return function(n,r,o){e.run(OP(n,t),r,(function(e){o(e)}))}}(e,t):function(e){return function(t){return OP(t,e)}}(e||t)};var NP=n(2007),PP=(0,qr.Z)((function e(t,n,r){(0,Vr.Z)(this,e),this.property=t,this.normal=n,r&&(this.space=r)}));function AP(e,t){for(var n={},r={},o=-1;++oo||-1!==(o=t.indexOf("#"))&&r>o?t:"javascript:void(0)"}var gA={}.hasOwnProperty,yA=new Set(["table","thead","tbody","tfoot","tr"]);function bA(e,t){for(var n,r=[],o=-1;++o0?r.createElement(m,c,d):r.createElement(m,c)}function wA(e,t){for(var n=-1,r=0;++n4&&"data"===n.slice(0,4)&&uA.test(t)){if("-"===t.charAt(4)){var a=t.slice(5).replace(lA,dA);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{var i=t.slice(4);if(!lA.test(i)){var s=i.replace(cA,fA);"-"!==s.charAt(0)&&(s="-"+s),t="data"+s}}o=HP}return new o(r,t)}(r.schema,t),a=n;null!==a&&void 0!==a&&a===a&&(Array.isArray(a)&&(a=o.commaSeparated?function(e,t){var n=t||{};return(""===e[e.length-1]?[].concat((0,i.Z)(e),[""]):e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}(a):a.join(" ").trim()),"style"===o.property&&"string"===typeof a&&(a=function(e){var t={};try{hA(e,n)}catch(r){}return t;function n(e,n){var r="-ms-"===e.slice(0,4)?"ms-".concat(e.slice(4)):e;t[r.replace(/-([a-z])/g,SA)]=n}}(a)),o.space&&o.property?e[gA.call(pA,o.property)?pA[o.property]:o.property]=a:o.attribute&&(e[o.attribute]=a))}function SA(e,t){return t.toUpperCase()}var TA={}.hasOwnProperty,EA={plugins:{to:"remarkPlugins",id:"change-plugins-to-remarkplugins"},renderers:{to:"components",id:"change-renderers-to-components"},astPlugins:{id:"remove-buggy-html-in-markdown-parser"},allowDangerousHtml:{id:"remove-buggy-html-in-markdown-parser"},escapeHtml:{id:"remove-buggy-html-in-markdown-parser"},source:{to:"children",id:"change-source-to-children"},allowNode:{to:"allowElement",id:"replace-allownode-allowedtypes-and-disallowedtypes"},allowedTypes:{to:"allowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},disallowedTypes:{to:"disallowedElements",id:"replace-allownode-allowedtypes-and-disallowedtypes"},includeNodeIndex:{to:"includeElementIndex",id:"change-includenodeindex-to-includeelementindex"}};function CA(e){for(var t in EA)if(TA.call(EA,t)&&TA.call(e,t)){var n=EA[t];console.warn("[react-markdown] Warning: please ".concat(n.to?"use `".concat(n.to,"` instead of"):"remove"," `").concat(t,"` (see <").concat("https://github.com/remarkjs/react-markdown/blob/main/changelog.md","#").concat(n.id,"> for more info)")),delete EA[t]}var o=JO().use(eP).use(e.remarkPlugins||[]).use(IP,f(f({},e.remarkRehypeOptions),{},{allowDangerousHtml:!0})).use(e.rehypePlugins||[]).use(aA,e),a=new BO;"string"===typeof e.children?a.value=e.children:void 0!==e.children&&null!==e.children&&console.warn("[react-markdown] Warning: please pass a string as `children` (not: `".concat(e.children,"`)"));var i=o.runSync(o.parse(a),a);if("root"!==i.type)throw new TypeError("Expected a `root` node");var s=r.createElement(r.Fragment,{},bA({options:e,schema:rA,listDepth:0},i));return e.className&&(s=r.createElement("div",{className:e.className},s)),s}CA.propTypes={children:NP.string,className:NP.string,allowElement:NP.func,allowedElements:NP.arrayOf(NP.string),disallowedElements:NP.arrayOf(NP.string),unwrapDisallowed:NP.bool,remarkPlugins:NP.arrayOf(NP.oneOfType([NP.object,NP.func,NP.arrayOf(NP.oneOfType([NP.bool,NP.string,NP.object,NP.func,NP.arrayOf(NP.any)]))])),rehypePlugins:NP.arrayOf(NP.oneOfType([NP.object,NP.func,NP.arrayOf(NP.oneOfType([NP.bool,NP.string,NP.object,NP.func,NP.arrayOf(NP.any)]))])),sourcePos:NP.bool,rawSourcePos:NP.bool,skipHtml:NP.bool,includeElementIndex:NP.bool,transformLinkUri:NP.oneOfType([NP.func,NP.bool]),linkTarget:NP.oneOfType([NP.func,NP.string]),transformImageUri:NP.func,components:NP.object};for(var _A={tokenize:function(e,t,n){var r=0;return function t(a){if((87===a||119===a)&&r<3)return r++,e.consume(a),t;if(46===a&&3===r)return e.consume(a),o;return n(a)};function o(e){return null===e?n(e):t(e)}},partial:!0},OA={tokenize:function(e,t,n){var r,o,a;return i;function i(t){return 46===t||95===t?e.check(NA,u,s)(t):null===t||bI(t)||xI(t)||45!==t&&wI(t)?u(t):(a=!0,e.consume(t),i)}function s(t){return 95===t?r=!0:(o=r,r=void 0),e.consume(t),i}function u(e){return o||r||!a?n(e):t(e)}},partial:!0},IA={tokenize:function(e,t){var n=0,r=0;return o;function o(i){return 40===i?(n++,e.consume(i),o):41===i&&r0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}DA[43]=RA,DA[45]=RA,DA[46]=RA,DA[95]=RA,DA[72]=[RA,jA],DA[104]=[RA,jA],DA[87]=[RA,AA],DA[119]=[RA,AA];var VA={tokenize:function(e,t,n){var r=this;return TI(e,(function(e){var o=r.events[r.events.length-1];return o&&"gfmFootnoteDefinitionIndent"===o[1].type&&4===o[2].sliceSerialize(o[1],!0).length?t(e):n(e)}),"gfmFootnoteDefinitionIndent",5)},partial:!0};function qA(){var e;return{document:(0,l.Z)({},91,{tokenize:GA,continuation:{tokenize:YA},exit:XA}),text:(e={},(0,l.Z)(e,91,{tokenize:JA}),(0,l.Z)(e,93,{add:"after",tokenize:HA,resolveTo:WA}),e)}}function HA(e,t,n){for(var r,o=this,a=o.events.length,i=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]);a--;){var s=o.events[a][1];if("labelImage"===s.type){r=s;break}if("gfmFootnoteCall"===s.type||"labelLink"===s.type||"label"===s.type||"image"===s.type||"link"===s.type)break}return function(a){if(!r||!r._balanced)return n(a);var s=$I(o.sliceSerialize({start:r.end,end:o.now()}));if(94!==s.codePointAt(0)||!i.includes(s.slice(1)))return n(a);return e.enter("gfmFootnoteCallLabelMarker"),e.consume(a),e.exit("gfmFootnoteCallLabelMarker"),t(a)}}function WA(e,t){for(var n=e.length;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";var r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},o={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};o.end.column++,o.end.offset++,o.end._bufferIndex++;var a={type:"gfmFootnoteCallString",start:Object.assign({},o.end),end:Object.assign({},e[e.length-1][1].start)},i={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},s=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",o,t],["exit",o,t],["enter",a,t],["enter",i,t],["exit",i,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice.apply(e,[n,e.length-n+1].concat(s)),e}function JA(e,t,n){var r,o=this,a=o.parser.gfmFootnotes||(o.parser.gfmFootnotes=[]),i=0;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),s};function s(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(s){if(i>999||93===s&&!r||null===s||91===s||bI(s))return n(s);if(93===s){e.exit("chunkString");var c=e.exit("gfmFootnoteCallString");return a.includes($I(o.sliceSerialize(c)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(s),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(s)}return bI(s)||(r=!0),i++,e.consume(s),92===s?l:u}function l(t){return 91===t||92===t||93===t?(e.consume(t),i++,u):u(t)}}function GA(e,t,n){var r,o,a=this,i=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]),s=0;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",l):n(t)}function l(t){if(s>999||93===t&&!o||null===t||91===t||bI(t))return n(t);if(93===t){e.exit("chunkString");var i=e.exit("gfmFootnoteDefinitionLabelString");return r=$I(a.sliceSerialize(i)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),f}return bI(t)||(o=!0),s++,e.consume(t),92===t?c:l}function c(t){return 91===t||92===t||93===t?(e.consume(t),s++,l):l(t)}function f(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),i.includes(r)||i.push(r),TI(e,d,"gfmFootnoteDefinitionWhitespace")):n(t)}function d(e){return t(e)}}function YA(e,t,n){return e.check(OI,t,e.attempt(VA,t,n))}function XA(e){e.exit("gfmFootnoteDefinition")}function $A(e){var t=(e||{}).singleTilde,n={tokenize:function(e,n,r){var o=this.previous,a=this.events,i=0;return function(t){if(126===o&&"characterEscape"!==a[a.length-1][1].type)return r(t);return e.enter("strikethroughSequenceTemporary"),s(t)};function s(a){var u=wN(o);if(126===a)return i>1?r(a):(e.consume(a),i++,s);if(i<2&&!t)return r(a);var l=e.exit("strikethroughSequenceTemporary"),c=wN(a);return l._open=!c||2===c&&Boolean(u),l._close=!u||2===u&&Boolean(c),n(a)}},resolveAll:function(e,t){var n=-1;for(;++n0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1])),n.push(this.map[t][2]),e.length=this.map[t][0];n.push((0,i.Z)(e)),e.length=0;for(var r=n.pop();r;)e.push.apply(e,(0,i.Z)(r)),r=n.pop();this.map.length=0}}}]),e}();function QA(e,t){for(var n=!1,r=[];t-1;){var r=o.events[t][1].type;if("lineEnding"!==r&&"linePrefix"!==r)break;t--}var a=t>-1?o.events[t][1].type:null,i="tableHead"===a||"tableRow"===a?k:s;if(i===k&&o.parser.lazy[o.now().line])return n(e);return i(e)};function s(t){return e.enter("tableHead"),e.enter("tableRow"),function(e){if(124===e)return u(e);return r=!0,i+=1,u(e)}(t)}function u(t){return null===t?n(t):yI(t)?i>1?(i=0,o.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),f):n(t):kI(t)?TI(e,u,"whitespace")(t):(i+=1,r&&(r=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),r=!0,u):(e.enter("data"),l(t)))}function l(t){return null===t||124===t||bI(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?c:l)}function c(t){return 92===t||124===t?(e.consume(t),l):l(t)}function f(t){return o.interrupt=!1,o.parser.lazy[o.now().line]?n(t):(e.enter("tableDelimiterRow"),r=!1,kI(t)?TI(e,d,"linePrefix",o.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):d(t))}function d(t){return 45===t||58===t?h(t):124===t?(r=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),p):b(t)}function p(t){return kI(t)?TI(e,h,"whitespace")(t):h(t)}function h(t){return 58===t?(i+=1,r=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),m):45===t?(i+=1,m(t)):null===t||yI(t)?y(t):b(t)}function m(t){return 45===t?(e.enter("tableDelimiterFiller"),v(t)):b(t)}function v(t){return 45===t?(e.consume(t),v):58===t?(r=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):(e.exit("tableDelimiterFiller"),g(t))}function g(t){return kI(t)?TI(e,y,"whitespace")(t):y(t)}function y(n){return 124===n?d(n):(null===n||yI(n))&&r&&a===i?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(n)):b(n)}function b(e){return n(e)}function k(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||yI(n)?(e.exit("tableRow"),t(n)):kI(n)?TI(e,w,"whitespace")(n):(e.enter("data"),x(n))}function x(t){return null===t||124===t||bI(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?S:x)}function S(t){return 92===t||124===t?(e.consume(t),x):x(t)}},resolveAll:function(e,t){var n,r,o,a=-1,i=!0,s=0,u=[0,0,0,0],l=[0,0,0,0],c=!1,f=0,d=new KA;for(;++an[2]+1){var p=n[2]+1,h=n[3]-n[2]-1;e.add(p,h,[])}}e.add(n[3]+1,0,[["exit",c,t]])}return void 0!==o&&(a.end=Object.assign({},rj(t.events,o)),e.add(o,0,[["exit",a,t]]),a=void 0),a}function nj(e,t,n,r,o){var a=[],i=rj(t.events,n);o&&(o.end=Object.assign({},i),a.push(["exit",o,t])),r.end=Object.assign({},i),a.push(["exit",r,t]),e.add(n+1,0,a)}function rj(e,t){var n=e[t],r="enter"===n[0]?"start":"end";return n[1][r]}var oj={tokenize:function(e,t,n){var r=this;return function(t){if(null!==r.previous||!r._gfmTasklistFirstContentOfListItem)return n(t);return e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),o};function o(t){return bI(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),a):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),a):n(t)}function a(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),i):n(t)}function i(r){return yI(r)?t(r):kI(r)?e.check({tokenize:ij},t,n)(r):n(r)}}},aj={text:(0,l.Z)({},91,oj)};function ij(e,t,n){return TI(e,(function(e){return null===e?n(e):t(e)}),"whitespace")}function sj(e,t){var n=String(e);if("string"!==typeof t)throw new TypeError("Expected character");for(var r=0,o=n.indexOf(t);-1!==o;)r++,o=n.indexOf(t,o+t.length);return r}var uj={}.hasOwnProperty,lj=function(e,t,n,r){var o,a;"string"===typeof t||t instanceof RegExp?(a=[[t,n]],o=r):(a=t,o=n),o||(o={});for(var s=nP(o.ignore||[]),u=function(e){var t=[];if("object"!==typeof e)throw new TypeError("Expected array or object as schema");if(Array.isArray(e))for(var n=-1;++n0?{type:"text",value:m}:void 0),!1!==m){var v;if(a!==p&&f.push({type:"text",value:e.value.slice(a,p)}),Array.isArray(m))(v=f).push.apply(v,(0,i.Z)(m));else m&&f.push(m);a=p+d[0].length,c=!0}if(!r.global)break;d=r.exec(e.value)}if(c){var g;a?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);var n=t[0],r=n.indexOf(")"),o=sj(e,"("),a=sj(e,")");for(;-1!==r&&o>a;)e+=n.slice(0,r+1),r=(n=n.slice(r+1)).indexOf(")"),a++;return[e,n]}(n+r);if(!i[0])return!1;var s={type:"link",title:null,url:a+t+i[0],children:[{type:"text",value:t+i[0]}]};return i[1]?[s,{type:"text",value:i[1]}]:s}function yj(e,t,n,r){return!(!bj(r,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function bj(e,t){var n=e.input.charCodeAt(e.index-1);return(0===e.index||xI(n)||wI(n))&&(!t||47!==n)}function kj(e){return e.label||!e.identifier?e.label||"":WN(e.identifier)}function wj(e,t,n,r){for(var o=r.join.length;o--;){var a=r.join[o](e,t,n,r);if(!0===a||1===a)break;if("number"===typeof a)return"\n".repeat(1+a);if(!1===a)return"\n\n\x3c!----\x3e\n\n"}return"\n\n"}var xj=/\r?\n|\r/g;function Sj(e){if(!e._compiled){var t=(e.atBreak?"[\\r\\n][\\t ]*":"")+(e.before?"(?:"+e.before+")":"");e._compiled=new RegExp((t?"("+t+")":"")+(/[|\\{}()[\]^$+*?.-]/.test(e.character)?"\\":"")+e.character+(e.after?"(?:"+e.after+")":""),"g")}return e._compiled}function Tj(e,t){return Ej(e,t.inConstruct,!0)&&!Ej(e,t.notInConstruct,!1)}function Ej(e,t,n){if("string"===typeof t&&(t=[t]),!t||0===t.length)return n;for(var r=-1;++r=m||(v+10?" ":"")),o.shift(4),a+=o.move(function(e,t){for(var n,r=[],o=0,a=0;n=xj.exec(e);)i(e.slice(o,n.index)),r.push(n[0]),o=n.index+n[0].length,a++;return i(e.slice(o)),r.join("");function i(e){r.push(t(e,a,!e))}}(function(e,t,n){var r=t.indexStack,o=e.children||[],a=t.createTracker(n),i=[],s=-1;for(r.push(-1);++s0&&("\r"===s||"\n"===s)&&"html"===l.type&&(a[a.length-1]=a[a.length-1].replace(/(\r?\n|\r)$/," "),s=" ",(u=t.createTracker(n)).move(a.join(""))),a.push(u.move(t.handle(l,e,t,f(f({},u.current()),{},{before:s,after:c})))),s=a[a.length-1].slice(-1)}return r.pop(),a.join("")}Mj.peek=function(){return"["};qj.peek=function(){return"~"};var Uj={canContainEols:["delete"],enter:{strikethrough:function(e){this.enter({type:"delete",children:[]},e)}},exit:{strikethrough:function(e){this.exit(e)}}},Vj={unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"]}],handlers:{delete:qj}};function qj(e,t,n,r){var o=Ij(r),a=n.enter("strikethrough"),i=o.move("~~");return i+=Zj(e,n,f(f({},o.current()),{},{before:i,after:"~"})),i+=o.move("~~"),a(),i}function Hj(e,t,n){for(var r=e.value||"",o="`",a=-1;new RegExp("(^|[^`])"+o+"([^`]|$)").test(r);)o+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a1&&void 0!==arguments[1]?arguments[1]:{},r=(n.align||[]).concat(),o=n.stringLength||Wj,a=[],i=[],s=[],u=[],l=0,c=-1;++cl&&(l=e[c].length);++pu[p])&&(u[p]=m)}f.push(h)}i[c]=f,s[c]=d}var v=-1;if("object"===typeof r&&"length"in r)for(;++vu[v]&&(u[v]=S),b[v]=S),y[v]=T}i.splice(1,0,y),s.splice(1,0,b),c=-1;for(var E=[];++c-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+a);var i=a.length+1;("tab"===o||"mixed"===o&&(t&&"list"===t.type&&t.spread||e.spread))&&(i=4*Math.ceil(i/4));var s=n.createTracker(r);s.move(a+" ".repeat(i-a.length)),s.shift(i);var u=n.enter("listItem"),l=n.indentLines(n.containerFlow(e,s.current()),(function(e,t,n){if(t)return(n?"":" ".repeat(i))+e;return(n?a:a+" ".repeat(i-a.length))+e}));return u(),l}var eR={exit:{taskListCheckValueChecked:nR,taskListCheckValueUnchecked:nR,paragraph:function(e){var t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"===typeof t.checked){var n=this.stack[this.stack.length-1],r=n.children[0];if(r&&"text"===r.type){for(var o,a=t.children,i=-1;++i0&&void 0!==arguments[0]?arguments[0]:{},t=this.data();function n(e,n){(t[e]?t[e]:t[e]=[]).push(n)}n("micromarkExtensions",function(e){return uI([FA,qA(),$A(e),ej,aj])}(e)),n("fromMarkdownExtensions",[hj,{enter:{gfmFootnoteDefinition:Nj,gfmFootnoteDefinitionLabelString:Pj,gfmFootnoteCall:Rj,gfmFootnoteCallString:Dj},exit:{gfmFootnoteDefinition:jj,gfmFootnoteDefinitionLabelString:Aj,gfmFootnoteCall:Lj,gfmFootnoteCallString:Fj}},Uj,Gj,eR]),n("toMarkdownExtensions",function(e){return{extensions:[mj,{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Bj,footnoteReference:Mj}},Vj,Kj(e),tR]}}(e))}var oR=function(e){var t=e.content;return(0,gr.jsx)("div",{className:"markdown bg-white prose m-5",style:{height:"100%"},children:(0,gr.jsx)(CA,{children:t,remarkPlugins:[rR]})})},aR=function(e){var t=e.renderKurtosisPackages,n=e.selectedKurtosisPackage;return(0,gr.jsxs)(br,{templateAreas:'"enclaves description"',gridTemplateRows:"1fr",gridTemplateColumns:"1fr 1fr",h:"100%",w:"100%",color:"blackAlpha.700",fontWeight:"bold",gap:2,children:[(0,gr.jsx)(rE,{area:"enclaves",h:"100%",overflowY:"scroll",children:(0,gr.jsx)(vO,{spacing:1,padding:"10px",h:"100%",children:t()})}),(0,gr.jsx)(rE,{area:"description",h:"100%",overflowY:"scroll",className:"bg-white",children:n.description?(0,gr.jsx)(oR,{content:n.description}):(0,gr.jsx)(oR,{content:"No Description found for: ".concat(n.name)})})]})},iR=function(e){var t=e.kurtosisPackages,n=Ga(),o=(0,r.useState)([]),a=(0,v.Z)(o,2),i=a[0],s=a[1],u=(0,r.useState)({}),l=(0,v.Z)(u,2),c=l[0],f=l[1];(0,r.useEffect)((function(){s(t)}),[t.length]);var d=function(){return i.map((function(e,t){var n=e.name===c.name?"#24BA27":"gray.300";if("name"in e)return(0,gr.jsx)(gO,{bg:n,onClick:function(){var t;(t=e).name===c.name?f({}):f(t)},children:(0,gr.jsx)(Mr,{h:"70px",w:"100%",children:(0,gr.jsxs)(Ur,{fontSize:"2xl",color:"blue.800",fontWeight:"bold",children:[" ",e.name," "]})})},t)}))};return(0,gr.jsx)("div",{className:"w-screen",children:(0,gr.jsxs)(br,{templateAreas:'"option"\n "search"\n "main"\n "configure"',gridTemplateRows:"60px 60px 1fr 60px",gridTemplateColumns:"1fr",h:"100%",w:"100%",color:"blackAlpha.700",fontWeight:"bold",gap:2,children:[(0,gr.jsx)(rE,{area:"option",pt:"1",children:(0,gr.jsx)(VE,{catalog:!0})}),(0,gr.jsx)(rE,{area:"search",m:"10px",children:(0,gr.jsxs)(QE,{children:[(0,gr.jsx)(TO,{pointerEvents:"none",children:(0,gr.jsx)(CO,{color:"gray.300"})}),(0,gr.jsx)(eE,{placeholder:"Package Name",color:"gray.300",onChange:function(e){var n=e.target.value;""===n&&s(t);var r=t.filter((function(e){if("name"in e){var t=n.trim();return e.name.toLowerCase().includes(t)}return!1}));s(r)}})]})}),(0,gr.jsx)(rE,{area:"main",h:"100%",overflowY:"scroll",children:"name"in c?(0,gr.jsx)(aR,{renderKurtosisPackages:d,selectedKurtosisPackage:c}):(0,gr.jsx)(vO,{spacing:1,padding:"10px",h:"100%",children:d()})}),(0,gr.jsx)(rE,{area:"configure",m:"10px",children:(0,gr.jsx)(pS,{bg:"#24BA27",w:"100%",isDisabled:0===Object.keys(c).length,onClick:function(){n("/catalog/create",{state:{kurtosisPackage:c}})},children:"Configure >> "})})]})})},sR=function(e){var t=e.appData,n=Wa().state,r=n.enclave,o=n.runArgs.packageId,a=n.runArgs.args;return(0,gr.jsx)("div",{className:"h-full w-full flex",children:(0,gr.jsx)(Qx,{args:a,packageId:o,enclave:r,appData:t})})},uR=function(e){var t=e.addEnclave,n=Ga(),o=su().appData,a=(0,r.useState)([]),i=(0,v.Z)(a,2),s=i[0],u=i[1];(0,r.useEffect)((function(){var e=function(){var e=m(p().mark((function e(){var t;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,X_();case 2:t=e.sent,u(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var l=function(){var e=m(p().mark((function e(r,a,i,s,u){var l;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return l=function(){var e=m(p().mark((function e(){var l;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.prev=0,"create"!==s){e.next=9;break}return e.next=4,Wx(o.jwtToken,o.apiHost,a,i);case 4:l=e.sent,t(l),n("/catalog/progress",{state:{enclave:l,runArgs:r}}),e.next=10;break;case 9:n("/catalog/progress",{state:{enclave:u,runArgs:r}});case 10:e.next=16;break;case 12:e.prev=12,e.t0=e.catch(0),console.error(e.t0),alert("Error occurred while creating enclave for package. An error message should be printed in console, please share it with us to help debug this problem");case 16:case"end":return e.stop()}}),e,null,[[0,12]])})));return function(){return e.apply(this,arguments)}}(),e.next=3,l();case 3:case"end":return e.stop()}}),e)})));return function(t,n,r,o,a){return e.apply(this,arguments)}}();return(0,gr.jsx)("div",{className:"h-full w-full flex",children:(0,gr.jsxs)(mi,{children:[(0,gr.jsx)(pi,{path:"/progress",element:(0,gr.jsx)(sR,{appData:o})}),(0,gr.jsx)(pi,{path:"/create",element:(0,gr.jsx)(uO,{createEnclave:l,mode:"create"})}),(0,gr.jsx)(pi,{path:"/edit/",element:(0,gr.jsx)(uO,{createEnclave:l,mode:"edit"})}),(0,gr.jsx)(pi,{path:"/",element:(0,gr.jsx)(iR,{kurtosisPackages:s})})]})})},lR={ease:[.25,.1,.25,1],easeIn:[.4,0,1,1],easeOut:[0,0,.2,1],easeInOut:[.4,0,.2,1]};var cR={enter:{duration:.2,ease:lR.easeOut},exit:{duration:.1,ease:lR.easeIn}},fR=function(e,t){return f(f({},e),{},{delay:"number"===typeof t?t:null==t?void 0:t.enter})},dR=function(e,t){return f(f({},e),{},{delay:"number"===typeof t?t:null==t?void 0:t.exit})},pR=["unmountOnExit","in","reverse","className","offsetX","offsetY","transition","transitionEnd","delay"],hR={initial:function(e){var t,n=e.offsetX,r=e.offsetY,o=e.transition,a=e.transitionEnd,i=e.delay;return{opacity:0,x:n,y:r,transition:null!=(t=null==o?void 0:o.exit)?t:dR(cR.exit,i),transitionEnd:null==a?void 0:a.exit}},enter:function(e){var t,n=e.transition,r=e.transitionEnd,o=e.delay;return{opacity:1,x:0,y:0,transition:null!=(t=null==n?void 0:n.enter)?t:fR(cR.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(e){var t,n=e.offsetY,r=e.offsetX,o=e.transition,a=e.transitionEnd,i=e.reverse,s=e.delay,u={x:r,y:n};return f({opacity:0,transition:null!=(t=null==o?void 0:o.exit)?t:dR(cR.exit,s)},i?f(f({},u),{},{transitionEnd:null==a?void 0:a.exit}):{transitionEnd:f(f({},u),null==a?void 0:a.exit)})}},mR={initial:"initial",animate:"enter",exit:"exit",variants:hR},vR=(0,r.forwardRef)((function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.className,s=e.offsetX,l=void 0===s?0:s,c=e.offsetY,d=void 0===c?8:c,p=e.transition,h=e.transitionEnd,m=e.delay,v=u(e,pR),g=!n||r&&n,y=r||n?"enter":"exit",b={offsetX:l,offsetY:d,reverse:a,transition:p,transitionEnd:h,delay:m};return(0,gr.jsx)(dy,{custom:b,children:g&&(0,gr.jsx)(ay.div,f(f({ref:t,className:T("chakra-offset-slide",i),custom:b},mR),{},{animate:y},v))})}));vR.displayName="SlideFade";var gR=["unmountOnExit","in","reverse","initialScale","className","transition","transitionEnd","delay"],yR={exit:function(e){var t,n=e.reverse,r=e.initialScale,o=e.transition,a=e.transitionEnd,i=e.delay;return f(f({opacity:0},n?{scale:r,transitionEnd:null==a?void 0:a.exit}:{transitionEnd:f({scale:r},null==a?void 0:a.exit)}),{},{transition:null!=(t=null==o?void 0:o.exit)?t:dR(cR.exit,i)})},enter:function(e){var t,n=e.transitionEnd,r=e.transition,o=e.delay;return{opacity:1,scale:1,transition:null!=(t=null==r?void 0:r.enter)?t:fR(cR.enter,o),transitionEnd:null==n?void 0:n.enter}}},bR={initial:"exit",animate:"enter",exit:"exit",variants:yR},kR=(0,r.forwardRef)((function(e,t){var n=e.unmountOnExit,r=e.in,o=e.reverse,a=void 0===o||o,i=e.initialScale,s=void 0===i?.95:i,l=e.className,c=e.transition,d=e.transitionEnd,p=e.delay,h=u(e,gR),m=!n||r&&n,v=r||n?"enter":"exit",g={initialScale:s,reverse:a,transition:c,transitionEnd:d,delay:p};return(0,gr.jsx)(dy,{custom:g,children:m&&(0,gr.jsx)(ay.div,f(f({ref:t,className:T("chakra-offset-slide",l)},bR),{},{animate:v,custom:g},h))})}));kR.displayName="ScaleFade";var wR=["preset","motionProps"],xR={slideInBottom:f(f({},mR),{},{custom:{offsetY:16,reverse:!0}}),slideInRight:f(f({},mR),{},{custom:{offsetX:16,reverse:!0}}),slideInTop:f(f({},mR),{},{custom:{offsetY:-16,reverse:!0}}),slideInLeft:f(f({},mR),{},{custom:{offsetX:-16,reverse:!0}}),scale:f(f({},bR),{},{custom:{initialScale:.95,reverse:!0}}),none:{}},SR=vr(ay.section),TR=(0,r.forwardRef)((function(e,t){var n=e.preset,r=e.motionProps,o=void 0===r?function(e){return xR[e||"none"]}(n):r,a=u(e,wR);return(0,gr.jsx)(SR,f(f({ref:t},o),a))}));TR.displayName="ModalTransition";var ER=Object.defineProperty,CR=function(e,t,n){return function(e,t,n){t in e?ER(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n}(e,"symbol"!==typeof t?t+"":t,n),n},_R=new(function(){function e(){(0,Vr.Z)(this,e),CR(this,"modals"),this.modals=new Map}return(0,qr.Z)(e,[{key:"add",value:function(e){return this.modals.set(e,this.modals.size+1),this.modals.size}},{key:"remove",value:function(e){this.modals.delete(e)}},{key:"isTopModal",value:function(e){return!!e&&this.modals.get(e)===this.modals.size}}]),e}());function OR(e,t){var n=(0,r.useState)(0),o=(0,v.Z)(n,2),a=o[0],i=o[1];return(0,r.useEffect)((function(){var n=e.current;if(n){if(t){var r=_R.add(n);i(r)}return function(){_R.remove(n),i(0)}}}),[t,e]),a}var IR=function(e){return"undefined"===typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},NR=new WeakMap,PR=new WeakMap,AR={},jR=0,RR=function e(t){return t&&(t.host||e(t.parentNode))},DR=function(e,t,n,r){var o=function(e,t){return t.map((function(t){if(e.contains(t))return t;var n=RR(t);return n&&e.contains(n)?n:(console.error("aria-hidden",t,"in not contained inside",e,". Doing nothing"),null)})).filter((function(e){return Boolean(e)}))}(t,Array.isArray(e)?e:[e]);AR[n]||(AR[n]=new WeakMap);var a=AR[n],i=[],s=new Set,u=new Set(o);o.forEach((function e(t){t&&!s.has(t)&&(s.add(t),e(t.parentNode))}));return function e(t){t&&!u.has(t)&&Array.prototype.forEach.call(t.children,(function(t){if(s.has(t))e(t);else{var o=t.getAttribute(r),u=null!==o&&"false"!==o,l=(NR.get(t)||0)+1,c=(a.get(t)||0)+1;NR.set(t,l),a.set(t,c),i.push(t),1===l&&u&&PR.set(t,!0),1===c&&t.setAttribute(n,"true"),u||t.setAttribute(r,"true")}}))}(t),s.clear(),jR++,function(){i.forEach((function(e){var t=NR.get(e)-1,o=a.get(e)-1;NR.set(e,t),a.set(e,o),t||(PR.has(e)||e.removeAttribute(r),PR.delete(e)),o||e.removeAttribute(n)})),--jR||(NR=new WeakMap,NR=new WeakMap,PR=new WeakMap,AR={})}},FR=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||IR(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live]"))),DR(r,o,n,"aria-hidden")):function(){return null}};function LR(e){var t=e.isOpen,n=e.onClose,o=e.id,a=e.closeOnOverlayClick,i=void 0===a||a,s=e.closeOnEsc,u=void 0===s||s,l=e.useInert,c=void 0===l||l,d=e.onOverlayClick,p=e.onEsc,h=(0,r.useRef)(null),m=(0,r.useRef)(null),g=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({role:"dialog"},e),{},{ref:ju(t,h),id:b,tabIndex:-1,"aria-modal":!0,"aria-labelledby":O?k:void 0,"aria-describedby":j?w:void 0,onClick:N(e.onClick,(function(e){return e.stopPropagation()}))})}),[w,j,b,k,O]),F=(0,r.useCallback)((function(e){e.stopPropagation(),S.current===e.target&&_R.isTopModal(h.current)&&(i&&(null==n||n()),null==d||d())}),[n,i,d]),L=(0,r.useCallback)((function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return f(f({},e),{},{ref:ju(t,m),onClick:N(e.onClick,F),onKeyDown:N(e.onKeyDown,E),onMouseDown:N(e.onMouseDown,T)})}),[E,T,F]);return{isOpen:t,onClose:n,headerId:k,bodyId:w,setBodyMounted:R,setHeaderMounted:I,dialogRef:h,overlayRef:m,getDialogProps:D,getDialogContainerProps:L,index:x}}var MR=dc({name:"ModalStylesContext",errorMessage:"useModalStyles returned is 'undefined'. Seems you forgot to wrap the components in \"\" "}),BR=(0,v.Z)(MR,2),zR=BR[0],ZR=BR[1],UR=dc({strict:!0,name:"ModalContext",errorMessage:"useModalContext: `context` is undefined. Seems you forgot to wrap modal components in ``"}),VR=(0,v.Z)(UR,2),qR=VR[0],HR=VR[1],WR=function(e){var t=f({scrollBehavior:"outside",autoFocus:!0,trapFocus:!0,returnFocusOnClose:!0,blockScrollOnMount:!0,allowPinchZoom:!1,motionPreset:"scale",lockFocusAcrossFrames:!0},e),n=t.portalProps,r=t.children,o=t.autoFocus,a=t.trapFocus,i=t.initialFocusRef,s=t.finalFocusRef,u=t.returnFocusOnClose,l=t.blockScrollOnMount,c=t.allowPinchZoom,d=t.preserveScrollBarGap,p=t.motionPreset,h=t.lockFocusAcrossFrames,m=t.onCloseComplete,v=Rr("Modal",t),g=f(f({},LR(t)),{},{autoFocus:o,trapFocus:a,initialFocusRef:i,finalFocusRef:s,returnFocusOnClose:u,blockScrollOnMount:l,allowPinchZoom:c,preserveScrollBarGap:d,motionPreset:p,lockFocusAcrossFrames:h});return(0,gr.jsx)(qR,{value:g,children:(0,gr.jsx)(zR,{value:v,children:(0,gr.jsx)(dy,{onExitComplete:m,children:g.isOpen&&(0,gr.jsx)(Ic,f(f({},n),{},{children:r}))})})})};WR.displayName="Modal";var JR="data-focus-lock",GR="data-focus-lock-disabled";function YR(e,t){return function(e,t){var n=(0,r.useState)((function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}}))[0];return n.callback=t,n.facade}(t||null,(function(t){return e.forEach((function(e){return function(e,t){return"function"===typeof e?e(t):e&&(e.current=t),e}(e,t)}))}))}var XR={width:"1px",height:"0px",padding:0,overflow:"hidden",position:"fixed",top:"1px",left:"1px"},$R=function(e){var t=e.children;return r.createElement(r.Fragment,null,r.createElement("div",{key:"guard-first","data-focus-guard":!0,"data-focus-auto-guard":!0,style:XR}),t,t&&r.createElement("div",{key:"guard-last","data-focus-guard":!0,"data-focus-auto-guard":!0,style:XR}))};$R.propTypes={},$R.defaultProps={children:null};var KR=function(){return KR=Object.assign||function(e){for(var t,n=1,r=arguments.length;n=0})).sort(OD)},ND=["button:enabled","select:enabled","textarea:enabled","input:enabled","a[href]","area[href]","summary","iframe","object","embed","audio[controls]","video[controls]","[tabindex]","[contenteditable]","[autofocus]"].join(","),PD="".concat(ND,", [data-focus-guard]"),AD=function e(t,n){return pD((t.shadowRoot||t).children).reduce((function(t,r){return t.concat(r.matches(n?PD:ND)?[r]:[],e(r))}),[])},jD=function(e,t){var n;return e instanceof HTMLIFrameElement&&(null===(n=e.contentDocument)||void 0===n?void 0:n.body)?RD([e.contentDocument.body],t):[e]},RD=function(e,t){return e.reduce((function(e,n){var r,o=AD(n,t),a=(r=[]).concat.apply(r,o.map((function(e){return jD(e,t)})));return e.concat(a,n.parentNode?pD(n.parentNode.querySelectorAll(ND)).filter((function(e){return e===n})):[])}),[])},DD=function(e,t){return pD(e).filter((function(e){return bD(t,e)})).filter((function(e){return function(e){return!((xD(e)||function(e){return"BUTTON"===e.tagName}(e))&&("hidden"===e.type||e.disabled))}(e)}))},FD=function(e,t){return void 0===t&&(t=new Map),pD(e).filter((function(e){return kD(t,e)}))},LD=function(e,t,n){return ID(DD(RD(e,n),t),!0,n)},MD=function(e,t){return ID(DD(RD(e),t),!1)},BD=function(e,t){return DD(function(e){var t=e.querySelectorAll("[".concat("data-autofocus-inside","]"));return pD(t).map((function(e){return RD([e])})).reduce((function(e,t){return e.concat(t)}),[])}(e),t)},zD=function e(t,n){return t.shadowRoot?e(t.shadowRoot,n):!(void 0===Object.getPrototypeOf(t).contains||!Object.getPrototypeOf(t).contains.call(t,n))||pD(t.children).some((function(t){var r;if(t instanceof HTMLIFrameElement){var o=null===(r=t.contentDocument)||void 0===r?void 0:r.body;return!!o&&e(o,n)}return e(t,n)}))},ZD=function e(t){if(void 0===t&&(t=document),t&&t.activeElement){var n=t.activeElement;return n.shadowRoot?e(n.shadowRoot):n instanceof HTMLIFrameElement&&function(e){try{return e()}catch(t){return}}((function(){return n.contentWindow.document}))?e(n.contentWindow.document):n}},UD=function e(t){return t.parentNode?e(t.parentNode):t},VD=function(e){return hD(e).filter(Boolean).reduce((function(e,t){var n=t.getAttribute(JR);return e.push.apply(e,n?function(e){for(var t=new Set,n=e.length,r=0;r0&&t.add(o),(a&Node.DOCUMENT_POSITION_CONTAINS)>0&&t.add(r)}return e.filter((function(e,n){return!t.has(n)}))}(pD(UD(t).querySelectorAll("[".concat(JR,'="').concat(n,'"]:not([').concat(GR,'="disabled"])')))):[t]),e}),[])},qD=function(e,t){return void 0===t&&(t=ZD(mD(e).ownerDocument)),!(!t||t.dataset&&t.dataset.focusGuard)&&VD(e).some((function(e){return zD(e,t)||function(e,t){return Boolean(pD(e.querySelectorAll("iframe")).some((function(e){return function(e,t){return e===t}(e,t)})))}(e,t)}))},HD=function(e,t){return SD(e)&&e.name?function(e,t){return t.filter(SD).filter((function(t){return t.name===e.name})).filter((function(e){return e.checked}))[0]||e}(e,t):e},WD=function(e){return e[0]&&e.length>1?HD(e[0],e):e[0]},JD=function(e,t){return e.length>1?e.indexOf(HD(e[t],e)):t},GD="NEW_FOCUS",YD=function(e,t,n,r){var o=e.length,a=e[0],i=e[o-1],s=ED(n);if(!(n&&e.indexOf(n)>=0)){var u=void 0!==n?t.indexOf(n):-1,l=r?t.indexOf(r):u,c=r?e.indexOf(r):-1,f=u-l,d=t.indexOf(a),p=t.indexOf(i),h=function(e){var t=new Set;return e.forEach((function(n){return t.add(HD(n,e))})),e.filter((function(e){return t.has(e)}))}(t),m=(void 0!==n?h.indexOf(n):-1)-(r?h.indexOf(r):u),v=JD(e,0),g=JD(e,o-1);return-1===u||-1===c?GD:!f&&c>=0?c:u<=d&&s&&Math.abs(f)>1?g:u>=p&&s&&Math.abs(f)>1?v:f&&Math.abs(m)>1?c:u<=d?g:u>p?v:f?Math.abs(f)>1?c:(o+c+f)%o:void 0}},XD=function(e,t,n){var r,o=e.map((function(e){return e.node})),a=FD(o.filter((r=n,function(e){var t,n=null===(t=wD(e))||void 0===t?void 0:t.autofocus;return e.autofocus||void 0!==n&&"false"!==n||r.indexOf(e)>=0})));return a&&a.length?WD(a):WD(FD(t))},$D=function e(t,n){return void 0===n&&(n=[]),n.push(t),t.parentNode&&e(t.parentNode.host||t.parentNode,n),n},KD=function(e,t){for(var n=$D(e),r=$D(t),o=0;o=0)return a}return!1},QD=function(e,t,n){var r=hD(e),o=hD(t),a=r[0],i=!1;return o.filter(Boolean).forEach((function(e){i=KD(i||e,e)||i,n.filter(Boolean).forEach((function(e){var t=KD(a,e);t&&(i=!i||zD(t,i)?t:KD(t,i))}))})),i},eF=function(e,t){var n=ZD(hD(e).length>0?document:mD(e).ownerDocument),r=VD(e).filter(CD),o=QD(n||e,e,r),a=new Map,i=MD(r,a),s=LD(r,a).filter((function(e){var t=e.node;return CD(t)}));if(s[0]||(s=i)[0]){var u=MD([o],a).map((function(e){return e.node})),l=function(e,t){var n=new Map;return t.forEach((function(e){return n.set(e.node,e)})),e.map((function(e){return n.get(e)})).filter(_D)}(u,s),c=l.map((function(e){return e.node})),f=YD(c,u,n,t);if(f===GD){var d=XD(i,c,function(e,t){return e.reduce((function(e,n){return e.concat(BD(n,t))}),[])}(r,a));return d?{node:d}:void console.warn("focus-lock: cannot find any node to move focus into")}return void 0===f?f:l[f]}},tF=0,nF=!1,rF=function(e,t,n){void 0===n&&(n={});var r,o,a=eF(e,t);if(!nF&&a){if(tF>2)return console.error("FocusLock: focus-fighting detected. Only one focus management system could be active. See https://github.com/theKashey/focus-lock/#focus-fighting"),nF=!0,void setTimeout((function(){nF=!1}),1);tF++,r=a.node,o=n.focusOptions,"focus"in r&&r.focus(o),"contentWindow"in r&&r.contentWindow&&r.contentWindow.focus(),tF--}},oF=function(e){var t=VD(e).filter(CD),n=QD(e,e,t),r=new Map,o=LD([n],r,!0),a=LD(t,r).filter((function(e){var t=e.node;return CD(t)})).map((function(e){return e.node}));return o.map((function(e){var t=e.node;return{node:t,index:e.index,lockItem:a.indexOf(t)>=0,guard:ED(t)}}))};function aF(e){setTimeout(e,1)}var iF=function(){return document&&document.activeElement===document.body||function(e){void 0===e&&(e=document);var t=ZD(e);return!!t&&pD(e.querySelectorAll("[".concat("data-no-focus-lock","]"))).some((function(e){return zD(e,t)}))}()},sF=null,uF=null,lF=null,cF=!1,fF=function(){return!0};function dF(e,t,n,r){var o=null,a=e;do{var i=r[a];if(i.guard)i.node.dataset.focusAutoGuard&&(o=i);else{if(!i.lockItem)break;if(a!==e)return;o=null}}while((a+=n)!==t);o&&(o.node.tabIndex=0)}var pF=function(e){return e&&"current"in e?e.current:e},hF=function e(t,n,r){return n&&(n.host===t&&(!n.activeElement||r.contains(n.activeElement))||n.parentNode&&e(t,n.parentNode,r))},mF=function(){var e,t=!1;if(sF){var n=sF,r=n.observed,o=n.persistentFocus,a=n.autoFocus,i=n.shards,s=n.crossFrame,u=n.focusOptions,l=r||lF&&lF.portaledElement,c=document&&document.activeElement;if(l){var f=[l].concat(i.map(pF).filter(Boolean));if(c&&!function(e){return(sF.whiteList||fF)(e)}(c)||(o||(s?Boolean(cF):"meanwhile"===cF)||!iF()||!uF&&a)&&(l&&!(qD(f)||c&&function(e,t){return t.some((function(t){return hF(e,t,t)}))}(c,f)||(e=c,lF&&lF.portaledElement===e))&&(document&&!uF&&c&&!a?(c.blur&&c.blur(),document.body.focus()):(t=rF(f,uF,{focusOptions:u}),lF={})),cF=!1,uF=document&&document.activeElement),document){var d=document&&document.activeElement,p=oF(f),h=p.map((function(e){return e.node})).indexOf(d);h>-1&&(p.filter((function(e){var t=e.guard,n=e.node;return t&&n.dataset.focusAutoGuard})).forEach((function(e){return e.node.removeAttribute("tabIndex")})),dF(h,p.length,1,p),dF(h,-1,-1,p))}}}return t},vF=function(e){mF()&&e&&(e.stopPropagation(),e.preventDefault())},gF=function(){return aF(mF)},yF=function(e){var t=e.target,n=e.currentTarget;n.contains(t)||(lF={observerNode:n,portaledElement:t})},bF=function(){cF="just",aF((function(){cF="meanwhile"}))};aD.assignSyncMedium(yF),iD.assignMedium(gF),sD.assignMedium((function(e){return e({moveFocusInside:rF,focusInside:qD})}));var kF=dD((function(e){return e.filter((function(e){return!e.disabled}))}),(function(e){var t=e.slice(-1)[0];t&&!sF&&(document.addEventListener("focusin",vF),document.addEventListener("focusout",gF),window.addEventListener("blur",bF));var n=sF,r=n&&t&&t.id===n.id;sF=t,n&&!r&&(n.onDeactivation(),e.filter((function(e){return e.id===n.id})).length||n.returnFocus(!t)),t?(uF=null,r&&n.observed===t.observed||t.onActivation(),mF(),aF(mF)):(document.removeEventListener("focusin",vF),document.removeEventListener("focusout",gF),window.removeEventListener("blur",bF),uF=null)}))((function(){return null})),wF=r.forwardRef((function(e,t){return r.createElement(fD,It({sideCar:kF,ref:t},e))})),xF=fD.propTypes||{};xF.sideCar,s(xF,["sideCar"]);wF.propTypes={};var SF=wF,TF=function(e){return e.hasAttribute("tabindex")};function EF(e){return!(!e.parentElement||!EF(e.parentElement))||e.hidden}function CF(e){if(!gu(e)||EF(e)||function(e){return!0===Boolean(e.getAttribute("disabled"))||!0===Boolean(e.getAttribute("aria-disabled"))}(e))return!1;var t=e.localName;if(["input","select","textarea","button"].indexOf(t)>=0)return!0;var n={a:function(){return e.hasAttribute("href")},audio:function(){return e.hasAttribute("controls")},video:function(){return e.hasAttribute("controls")}};return t in n?n[t]():!!function(e){var t=e.getAttribute("contenteditable");return"false"!==t&&null!=t}(e)||TF(e)}var _F,OF=["input:not(:disabled):not([disabled])","select:not(:disabled):not([disabled])","textarea:not(:disabled):not([disabled])","embed","iframe","object","a[href]","area[href]","button:not(:disabled):not([disabled])","[tabindex]","audio[controls]","video[controls]","*[tabindex]:not([aria-disabled])","*[contenteditable]"].join(),IF=function(e){return e.offsetWidth>0&&e.offsetHeight>0};function NF(e){var t=Array.from(e.querySelectorAll(OF));return t.unshift(e),t.filter((function(e){return CF(e)&&IF(e)}))}var PF=null!=(_F=SF.default)?_F:SF,AF=function(e){var t=e.initialFocusRef,n=e.finalFocusRef,o=e.contentRef,a=e.restoreFocus,i=e.children,s=e.isDisabled,u=e.autoFocus,l=e.persistentFocus,c=e.lockFocusAcrossFrames,f=(0,r.useCallback)((function(){if(null==t?void 0:t.current)t.current.focus();else if(null==o?void 0:o.current){0===NF(o.current).length&&requestAnimationFrame((function(){var e;null==(e=o.current)||e.focus()}))}}),[t,o]),d=(0,r.useCallback)((function(){var e;null==(e=null==n?void 0:n.current)||e.focus()}),[n]),p=a&&!n;return(0,gr.jsx)(PF,{crossFrame:c,persistentFocus:l,autoFocus:u,disabled:s,onActivation:f,onDeactivation:d,returnFocus:p,children:i})};AF.displayName="FocusLock";var jF="right-scroll-bar-position",RF="width-before-scroll-bar",DF=oD(),FF=function(){},LF=r.forwardRef((function(e,t){var n=r.useRef(null),o=r.useState({onScrollCapture:FF,onWheelCapture:FF,onTouchMoveCapture:FF}),a=o[0],i=o[1],s=e.forwardProps,u=e.children,l=e.className,c=e.removeScrollBar,f=e.enabled,d=e.shards,p=e.sideCar,h=e.noIsolation,m=e.inert,v=e.allowPinchZoom,g=e.as,y=void 0===g?"div":g,b=e.gapMode,k=QR(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noIsolation","inert","allowPinchZoom","as","gapMode"]),w=p,x=YR([n,t]),S=KR(KR({},k),a);return r.createElement(r.Fragment,null,f&&r.createElement(w,{sideCar:DF,removeScrollBar:c,shards:d,noIsolation:h,inert:m,setCallbacks:i,allowPinchZoom:!!v,lockRef:n,gapMode:b}),s?r.cloneElement(r.Children.only(u),KR(KR({},S),{ref:x})):r.createElement(y,KR({},S,{className:l,ref:x}),u))}));LF.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},LF.classNames={fullWidth:RF,zeroRight:jF};var MF,BF=function(e){var t=e.sideCar,n=QR(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var o=t.read();if(!o)throw new Error("Sidecar medium not found");return r.createElement(o,KR({},n))};BF.isSideCarExport=!0;function zF(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=MF||n.nc;return t&&e.setAttribute("nonce",t),e}var ZF=function(){var e=0,t=null;return{add:function(n){var r;0==e&&(t=zF())&&(!function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}(t,n),r=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(r)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},UF=function(){var e=function(){var e=ZF();return function(t,n){r.useEffect((function(){return e.add(t),function(){e.remove()}}),[t&&n])}}();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},VF={left:0,top:0,right:0,gap:0},qF=function(e){return parseInt(e||"",10)||0},HF=function(e){if(void 0===e&&(e="margin"),"undefined"===typeof window)return VF;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[qF(n),qF(r),qF(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},WF=UF(),JF=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(jF," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(RF," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(jF," .").concat(jF," {\n right: 0 ").concat(r,";\n }\n \n .").concat(RF," .").concat(RF," {\n margin-right: 0 ").concat(r,";\n }\n \n body {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},GF=function(e){var t=e.noRelative,n=e.noImportant,o=e.gapMode,a=void 0===o?"margin":o,i=r.useMemo((function(){return HF(a)}),[a]);return r.createElement(WF,{styles:JF(i,!t,a,n?"":"!important")})},YF=!1;if("undefined"!==typeof window)try{var XF=Object.defineProperty({},"passive",{get:function(){return YF=!0,!0}});window.addEventListener("test",XF,XF),window.removeEventListener("test",XF,XF)}catch(nJ){YF=!1}var $F=!!YF&&{passive:!1},KF=function(e,t){var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},QF=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!==typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),eL(e,r)){var o=tL(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},eL=function(e,t){return"v"===e?function(e){return KF(e,"overflowY")}(t):function(e){return KF(e,"overflowX")}(t)},tL=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},nL=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},rL=function(e){return[e.deltaX,e.deltaY]},oL=function(e){return e&&"current"in e?e.current:e},aL=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},iL=0,sL=[];var uL,lL=(uL=function(e){var t=r.useRef([]),n=r.useRef([0,0]),o=r.useRef(),a=r.useState(iL++)[0],i=r.useState(UF)[0],s=r.useRef(e);r.useEffect((function(){s.current=e}),[e]),r.useEffect((function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=eD([e.lockRef.current],(e.shards||[]).map(oL),!0).filter(Boolean);return t.forEach((function(e){return e.classList.add("allow-interactivity-".concat(a))})),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach((function(e){return e.classList.remove("allow-interactivity-".concat(a))}))}}}),[e.inert,e.lockRef.current,e.shards]);var u=r.useCallback((function(e,t){if("touches"in e&&2===e.touches.length)return!s.current.allowPinchZoom;var r,a=nL(e),i=n.current,u="deltaX"in e?e.deltaX:i[0]-a[0],l="deltaY"in e?e.deltaY:i[1]-a[1],c=e.target,f=Math.abs(u)>Math.abs(l)?"h":"v";if("touches"in e&&"h"===f&&"range"===c.type)return!1;var d=QF(f,c);if(!d)return!0;if(d?r=f:(r="v"===f?"h":"v",d=QF(f,c)),!d)return!1;if(!o.current&&"changedTouches"in e&&(u||l)&&(o.current=r),!r)return!0;var p=o.current||r;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,u=t.contains(s),l=!1,c=i>0,f=0,d=0;do{var p=tL(e,s),h=p[0],m=p[1]-p[2]-a*h;(h||m)&&eL(e,s)&&(f+=m,d+=h),s=s.parentNode}while(!u&&s!==document.body||u&&(t.contains(s)||t===s));return(c&&(o&&0===f||!o&&i>f)||!c&&(o&&0===d||!o&&-i>d))&&(l=!0),l}(p,t,e,"h"===p?u:l,!0)}),[]),l=r.useCallback((function(e){var n=e;if(sL.length&&sL[sL.length-1]===i){var r="deltaY"in n?rL(n):nL(n),o=t.current.filter((function(e){return e.name===n.type&&e.target===n.target&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o}))[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var a=(s.current.shards||[]).map(oL).filter(Boolean).filter((function(e){return e.contains(n.target)}));(a.length>0?u(n,a[0]):!s.current.noIsolation)&&n.cancelable&&n.preventDefault()}}}),[]),c=r.useCallback((function(e,n,r,o){var a={name:e,delta:n,target:r,should:o};t.current.push(a),setTimeout((function(){t.current=t.current.filter((function(e){return e!==a}))}),1)}),[]),f=r.useCallback((function(e){n.current=nL(e),o.current=void 0}),[]),d=r.useCallback((function(t){c(t.type,rL(t),t.target,u(t,e.lockRef.current))}),[]),p=r.useCallback((function(t){c(t.type,nL(t),t.target,u(t,e.lockRef.current))}),[]);r.useEffect((function(){return sL.push(i),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:p}),document.addEventListener("wheel",l,$F),document.addEventListener("touchmove",l,$F),document.addEventListener("touchstart",f,$F),function(){sL=sL.filter((function(e){return e!==i})),document.removeEventListener("wheel",l,$F),document.removeEventListener("touchmove",l,$F),document.removeEventListener("touchstart",f,$F)}}),[]);var h=e.removeScrollBar,m=e.inert;return r.createElement(r.Fragment,null,m?r.createElement(i,{styles:aL(a)}):null,h?r.createElement(GF,{gapMode:e.gapMode}):null)},DF.useMedium(uL),BF),cL=r.forwardRef((function(e,t){return r.createElement(LF,KR({},e,{ref:t,sideCar:lL}))}));cL.classNames=LF.classNames;var fL=cL;function dL(e){var t=HR(),n=t.autoFocus,o=t.trapFocus,a=t.dialogRef,i=t.initialFocusRef,s=t.blockScrollOnMount,u=t.allowPinchZoom,l=t.finalFocusRef,c=t.returnFocusOnClose,f=t.preserveScrollBarGap,d=t.lockFocusAcrossFrames,p=t.isOpen,h=bv(),m=(0,v.Z)(h,2),g=m[0],y=m[1];(0,r.useEffect)((function(){!g&&y&&setTimeout(y)}),[g,y]);var b=OR(a,p);return(0,gr.jsx)(AF,{autoFocus:n,isDisabled:!o,initialFocusRef:i,finalFocusRef:l,restoreFocus:c,contentRef:a,lockFocusAcrossFrames:d,children:(0,gr.jsx)(fL,{removeScrollBar:!f,allowPinchZoom:u,enabled:1===b&&s,forwardProps:!0,children:e.children})})}var pL=["className","children","containerProps","motionProps"],hL=g((function(e,t){var n=e.className,r=e.children,o=e.containerProps,a=e.motionProps,i=u(e,pL),s=HR(),l=s.getDialogProps,c=s.getDialogContainerProps,d=l(i,t),p=c(o),h=T("chakra-modal__content",n),m=ZR(),v=f({display:"flex",flexDirection:"column",position:"relative",width:"100%",outline:0},m.dialog),g=f({display:"flex",width:"100vw",height:"$100vh",position:"fixed",left:0,top:0},m.dialogContainer),y=HR().motionPreset;return(0,gr.jsx)(dL,{children:(0,gr.jsx)(vr.div,f(f({},p),{},{className:"chakra-modal__content-container",tabIndex:-1,__css:g,children:(0,gr.jsx)(TR,f(f({preset:y,motionProps:a,className:h},d),{},{__css:v,children:r}))}))})}));hL.displayName="ModalContent";var mL=["leastDestructiveRef"];function vL(e){var t=e.leastDestructiveRef,n=u(e,mL);return(0,gr.jsx)(WR,f(f({},n),{},{initialFocusRef:t}))}var gL=g((function(e,t){return(0,gr.jsx)(hL,f({ref:t,role:"alertdialog"},e))})),yL=["unmountOnExit","in","className","transition","transitionEnd","delay"],bL={enter:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.transition,r=t.transitionEnd,o=t.delay;return{opacity:1,transition:null!=(e=null==n?void 0:n.enter)?e:fR(cR.enter,o),transitionEnd:null==r?void 0:r.enter}},exit:function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.transition,r=t.transitionEnd,o=t.delay;return{opacity:0,transition:null!=(e=null==n?void 0:n.exit)?e:dR(cR.exit,o),transitionEnd:null==r?void 0:r.exit}}},kL={initial:"exit",animate:"enter",exit:"exit",variants:bL},wL=(0,r.forwardRef)((function(e,t){var n=e.unmountOnExit,r=e.in,o=e.className,a=e.transition,i=e.transitionEnd,s=e.delay,l=u(e,yL),c=r||n?"enter":"exit",d=!n||r&&n,p={transition:a,transitionEnd:i,delay:s};return(0,gr.jsx)(dy,{custom:p,children:d&&(0,gr.jsx)(ay.div,f(f({ref:t,className:T("chakra-fade",o),custom:p},kL),{},{animate:c},l))})}));wL.displayName="Fade";var xL=["className","transition","motionProps"],SL=vr(ay.div),TL=g((function(e,t){var n=e.className,r=(e.transition,e.motionProps),o=u(e,xL),a=T("chakra-modal__overlay",n),i=f({pos:"fixed",left:"0",top:"0",w:"100vw",h:"100vh"},ZR().overlay),s=HR().motionPreset,l=r||("none"===s?{}:kL);return(0,gr.jsx)(SL,f(f({},l),{},{__css:i,ref:t,className:a},o))}));TL.displayName="ModalOverlay";var EL=["className"],CL=g((function(e,t){var n=e.className,o=u(e,EL),a=HR(),i=a.headerId,s=a.setHeaderMounted;(0,r.useEffect)((function(){return s(!0),function(){return s(!1)}}),[s]);var l=T("chakra-modal__header",n),c=f({flex:0},ZR().header);return(0,gr.jsx)(vr.header,f(f({ref:t,className:l,id:i},o),{},{__css:c}))}));CL.displayName="ModalHeader";var _L=["className"],OL=g((function(e,t){var n=e.className,o=u(e,_L),a=HR(),i=a.bodyId,s=a.setBodyMounted;(0,r.useEffect)((function(){return s(!0),function(){return s(!1)}}),[s]);var l=T("chakra-modal__body",n),c=ZR();return(0,gr.jsx)(vr.div,f(f({ref:t,className:l,id:i},o),{},{__css:c.body}))}));OL.displayName="ModalBody";var IL=["className"],NL=g((function(e,t){var n=e.className,r=u(e,IL),o=T("chakra-modal__footer",n),a=f({display:"flex",alignItems:"center",justifyContent:"flex-end"},ZR().footer);return(0,gr.jsx)(vr.footer,f(f({ref:t},r),{},{__css:a,className:o}))}));NL.displayName="ModalFooter";var PL=["icon","children","isRound","aria-label"],AL=g((function(e,t){var n=e.icon,o=e.children,a=e.isRound,i=e["aria-label"],s=u(e,PL),l=n||o,c=(0,r.isValidElement)(l)?(0,r.cloneElement)(l,{"aria-hidden":!0,focusable:!1}):null;return(0,gr.jsx)(pS,f(f({padding:"0",borderRadius:a?"full":void 0,ref:t,"aria-label":i},s),{},{children:c}))}));function jL(e,t){var n=(0,r.useId)();return(0,r.useMemo)((function(){return e||[t,n].filter(Boolean).join("-")}),[e,t,n])}function RL(){return!("undefined"===typeof window||!window.document||!window.document.createElement)}AL.displayName="IconButton";var DL=RL()?r.useLayoutEffect:r.useEffect;function FL(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(e);return DL((function(){n.current=e})),(0,r.useCallback)((function(){for(var e,t,r=arguments.length,o=new Array(r),a=0;a0&&void 0!==arguments[0]?arguments[0]:{},t=e.onClose,n=e.onOpen,o=e.isOpen,a=e.id,i=FL(n),s=FL(t),u=(0,r.useState)(e.defaultIsOpen||!1),l=(0,v.Z)(u,2),c=l[0],d=l[1],p=function(e,t){var n=void 0!==e;return[n,n&&"undefined"!==typeof e?e:t]}(o,c),h=(0,v.Z)(p,2),m=h[0],g=h[1],y=jL(a,"disclosure"),b=(0,r.useCallback)((function(){m||d(!1),null==s||s()}),[m,s]),k=(0,r.useCallback)((function(){m||d(!0),null==i||i()}),[m,i]),w=(0,r.useCallback)((function(){(g?b:k)()}),[g,k,b]);return{isOpen:!!g,onOpen:k,onClose:b,onToggle:w,isControlled:m,getButtonProps:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f(f({},e),{},{"aria-expanded":g,"aria-controls":y,onClick:Ot(e.onClick,w)})},getDisclosureProps:function(){return f(f({},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),{},{hidden:!g,id:y})}}}(),p=d.isOpen,h=d.onOpen,m=d.onClose;return(0,gr.jsxs)("div",{className:"flex h-full flex-grow",children:[n?(0,gr.jsx)(ru,{}):(0,gr.jsx)(qL,{setEnclave:c,onOpen:h,enclaves:t,handleClick:function(e){a("/enclaves/".concat(e))},handleCreateEnvClick:function(){a("/catalog")},handleDeleteClick:o,handleEditEvent:function(e,t,n,r){a("/catalog/edit",{state:{name:e,host:t,port:n,enclave:r}})}}),(0,gr.jsx)(ZL,{isOpen:p,onOpen:h,onClose:m,cancelRef:i,enclaveToDelete:l,setEnclave:c,handleDeleteClick:o})]})},WL=function(e){var t=e.enclaveName,n=e.handleSubmit,o=e.name,a=e.setName,i=e.args,s=e.setArgs,u=e.addEnclave,l=e.token,c=e.apiHost,f=e.setEnclaveName,d=e.productionMode,h=e.setProductionMode,g=(0,r.useState)(""),y=(0,v.Z)(g,2),b=y[0],k=y[1],w=Ga(),x=(0,r.useState)(!1),S=(0,v.Z)(x,2),T=S[0],E=S[1];return(0,gr.jsx)("div",{className:"flex justify-center w-full h-fit m-14",children:(0,gr.jsx)("form",{className:"bg-gray-100 p-6 rounded-lg shadow-md w-1/3",on:!0,children:(0,gr.jsxs)("div",{className:"text-center",children:[(0,gr.jsxs)("label",{className:"block mb-4 text-2xl text-black",children:["Enclave Name:",(0,gr.jsx)("input",{type:"text",placeholder:"Optional",value:t,onChange:function(e){return f(e.target.value)},className:"block w-full rounded-md border-gray-300 py-2 px-3 mt-1 focus:outline-none focus:ring-blue-500 focus:border-blue-500"})]}),(0,gr.jsx)("label",{className:"block mb-4 text-2xl text-black space-x-2",children:(0,gr.jsx)(ME,{colorScheme:"blue",border:"black",isChecked:d,onChange:function(e){return h(e.target.checked)},children:(0,gr.jsx)("div",{className:"text-xl text-black",children:" Production Mode "})})}),(0,gr.jsxs)("label",{className:"block mb-4 text-2xl text-black",children:["Package Id:",(0,gr.jsx)("input",{type:"text",placeholder:"Required",value:o,onChange:function(e){return a(e.target.value)},className:"block w-full rounded-md border-gray-300 py-2 px-3 mt-1 focus:outline-none focus:ring-blue-500 focus:border-blue-500"})]}),(0,gr.jsxs)("label",{className:"block mb-4 text-black",children:["Args: (Json)",(0,gr.jsx)("textarea",{value:i,onChange:function(e){s(e.target.value),k("")},className:"block w-full rounded-md border-gray-300 py-2 px-3 mt-1 resize-none focus:outline-none focus:ring-blue-500 focus:border-blue-500",rows:4}),(0,gr.jsx)("p",{className:"text-red-300 font-bold",children:b})]}),(0,gr.jsxs)("div",{className:"flex row gap-10",children:[(0,gr.jsx)(pS,{onClick:function(e){e.preventDefault();var r=function(){var e=m(p().mark((function e(){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,Wx(l,c,t,d);case 3:r=e.sent,u(r),n(r),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(0),console.error(e.t0),alert("Error occurred while creating enclave for package: ".concat(o,". An error message should be printed in console, please share it with us to help debug this problem"));case 12:return e.prev=12,E(!1),e.finish(12);case 15:case"end":return e.stop()}}),e,null,[[0,8,12,15]])})));return function(){return e.apply(this,arguments)}}();try{k(""),JSON.parse(i),E(!0),r()}catch(a){k("Invalid Json")}},type:"submit",bg:"blue.500",_hover:{bg:"gray.500",svg:{fill:"black"}},w:"50%",isLoading:T,loadingText:"Running...",children:"Run"}),(0,gr.jsx)("button",{type:"back",className:"w-[50%] bg-gray-500 text-white py-2 px-4 rounded-md hover:bg-gray-700 focus:outline-none focus:ring-blue-500 focus:ring-2 focus:ring-offset-2",onClick:function(){return w("/catalog",{replace:!0})},children:"Package Catalog"})]})]})})})},JL=function(e){var t=e.addEnclave,n=Ga(),o=(0,r.useState)(""),a=(0,v.Z)(o,2),i=a[0],s=a[1],u=(0,r.useState)(""),l=(0,v.Z)(u,2),c=l[0],f=l[1],d=(0,r.useState)("{}"),p=(0,v.Z)(d,2),h=p[0],m=p[1],g=(0,r.useState)(null),y=(0,v.Z)(g,2),b=y[0],k=y[1],w=(0,r.useState)(!1),x=(0,v.Z)(w,2),S=x[0],T=x[1],E=su().appData;return(0,gr.jsx)("div",{className:"h-full w-full flex",children:(0,gr.jsxs)(mi,{children:[(0,gr.jsx)(pi,{path:"/create",element:(0,gr.jsx)(WL,{enclaveName:i,addEnclave:t,name:c,setName:f,setEnclaveName:s,args:h,setArgs:m,handleSubmit:function(e){k(e),n("/enclave/progress")},token:E.jwtToken,apiHost:E.apiHost,productionMode:S,setProductionMode:T})}),(0,gr.jsx)(pi,{path:"/progress",element:(0,gr.jsx)(Qx,{args:h,packageId:c,enclave:b,appData:E})})]})})},GL=["created"],YL=function(){return(0,gr.jsxs)(gr.Fragment,{children:[(0,gr.jsx)(Ai,{}),(0,gr.jsx)("div",{className:"flex h-[calc(100vh-4rem)]",children:(0,gr.jsx)(di,{})})]})},XL=function(){var e=(0,r.useState)([]),t=(0,v.Z)(e,2),n=t[0],o=t[1],a=(0,r.useState)(!1),s=(0,v.Z)(a,2),l=s[0],c=s[1],d=su(),h=d.appData,g=d.setAppData,y=function(){var e=m(p().mark((function e(t){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=function(){var e=m(p().mark((function e(){var r;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,r=n.filter((function(e){return e.name!==t})),e.next=4,Hx(h.jwtToken,h.apiHost,t);case 4:o(r),e.next=11;break;case 7:e.prev=7,e.t0=e.catch(0),console.error(e.t0),alert("Sorry, unexpected error occurred while removing enclave with name: ".concat(t));case 11:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}(),e.next=3,r();case 3:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),b=(0,gr.jsxs)("div",{className:"flex-grow bg-#181926-100 flex-row flex mt-28 w-screen",children:[(0,gr.jsx)("div",{className:"w-1/3"}),(0,gr.jsx)("div",{className:"flex flex-col min-w-fit w-1/3",children:(0,gr.jsx)("div",{className:"flex justify-center items-center w-full",children:(0,gr.jsxs)("div",{className:"text-center w-full",children:[(0,gr.jsx)("h1",{className:"text-3xl font-bold text-[#24BA27]",children:"Loading credentials..."}),(0,gr.jsx)("br",{}),(0,gr.jsx)(ru,{})]})})}),(0,gr.jsx)("div",{className:"w-1/3"})]}),k=(0,r.useMemo)((function(){return function(){var e=window.location.pathname;return e&&0!==e.length?("/"!==e.charAt(0)&&(e+="/"),e):"/"}()}),[]);window.addEventListener("message",(function(e){if("jwtToken"===e.data.message){var t=e.data.value;null!==t&&void 0!==t&&g(f(f({},h),{},{jwtToken:t}))}}));var w=new URLSearchParams(window.location.search),x="true"===(w.get("require_authentication")+"").toLowerCase(),S=w.get("api_host");(0,r.useEffect)((function(){var e=function(e,t){return t?"https://cloud.kurtosis.com/gateway/ips/".concat(e,"/ports/").concat(8081):"http://".concat("localhost",":").concat(8081)}(S,x);e&&e.length>0&&g(f(f({},h),{},{apiHost:e}))}),[]);var T=function(){return h.apiHost&&h.apiHost.length>0},E=function(){var e=m(p().mark((function e(){var t,n;return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,qx(h.jwtToken,h.apiHost);case 2:t=e.sent,n=t.filter((function(e){return e.name})),o(n),c(!1);case 6:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();(0,r.useEffect)((function(){x&&h.jwtToken&&h.jwtToken.length>0&&T()&&(c(!0),E())}),[h.jwtToken,h.apiHost]),(0,r.useEffect)((function(){!x&&T()&&E()}),[h.apiHost]);var C,_=function(e){e.created;var t=u(e,GL);o((function(e){return[].concat((0,i.Z)(e),[t])}))},O=function(e,t){return Yo({basename:null==t?void 0:t.basename,future:ki({},null==t?void 0:t.future,{v7_prependBasename:!0}),history:no({window:null==t?void 0:t.window}),hydrationData:(null==t?void 0:t.hydrationData)||Si(),routes:e,mapRouteProperties:bi}).initialize()}(yi((0,gr.jsx)(gr.Fragment,{children:(0,gr.jsxs)(pi,{path:"/",element:(C=(0,gr.jsx)(YL,{}),!x&&h.apiHost||x&&h.jwtToken&&h.apiHost||!x||h.jwtToken&&!h.apiHost?C:b),children:[(0,gr.jsx)(pi,{path:"/enclaves",element:(0,gr.jsx)(HL,{enclaves:n,isLoading:l,handleDeleteClick:y})}),(0,gr.jsx)(pi,{path:"/enclave/*",element:(0,gr.jsx)(JL,{addEnclave:_})}),(0,gr.jsx)(pi,{path:"/enclaves/:name",element:(0,gr.jsx)(cu,{enclaves:n})}),(0,gr.jsx)(pi,{path:"/enclaves/:name/services/:uuid/*",element:(0,gr.jsx)(RT,{})}),(0,gr.jsx)(pi,{path:"/enclaves/:name/files/:fileArtifactName",element:(0,gr.jsx)(LT,{enclaves:n})}),(0,gr.jsx)(pi,{path:"/catalog/*",element:(0,gr.jsx)(uR,{addEnclave:_})}),(0,gr.jsx)(pi,{exact:!0,path:"/",element:(0,gr.jsx)(Ri,{totalEnclaves:n.length})})]})})),{basename:k});return(0,gr.jsx)("div",{className:"h-screen flex flex-col bg-[#171923]",children:(0,gr.jsx)(ci,{router:O})})};function $L(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var KL=String.raw,QL=KL(LL||(LL=$L(["\n :root,\n :host {\n --chakra-vh: 100vh;\n }\n\n @supports (height: -webkit-fill-available) {\n :root,\n :host {\n --chakra-vh: -webkit-fill-available;\n }\n }\n\n @supports (height: -moz-fill-available) {\n :root,\n :host {\n --chakra-vh: -moz-fill-available;\n }\n }\n\n @supports (height: 100dvh) {\n :root,\n :host {\n --chakra-vh: 100dvh;\n }\n }\n"]))),eM=function(){return(0,gr.jsx)(vy,{styles:QL})},tM=function(e){var t=e.scope,n=void 0===t?"":t;return(0,gr.jsx)(vy,{styles:KL(ML||(ML=$L(['\n html {\n line-height: 1.5;\n -webkit-text-size-adjust: 100%;\n font-family: system-ui, sans-serif;\n -webkit-font-smoothing: antialiased;\n text-rendering: optimizeLegibility;\n -moz-osx-font-smoothing: grayscale;\n touch-action: manipulation;\n }\n\n body {\n position: relative;\n min-height: 100%;\n margin: 0;\n font-feature-settings: "kern";\n }\n\n '," :where(*, *::before, *::after) {\n border-width: 0;\n border-style: solid;\n box-sizing: border-box;\n word-wrap: break-word;\n }\n\n main {\n display: block;\n }\n\n "," hr {\n border-top-width: 1px;\n box-sizing: content-box;\n height: 0;\n overflow: visible;\n }\n\n "," :where(pre, code, kbd,samp) {\n font-family: SFMono-Regular, Menlo, Monaco, Consolas, monospace;\n font-size: 1em;\n }\n\n "," a {\n background-color: transparent;\n color: inherit;\n text-decoration: inherit;\n }\n\n "," abbr[title] {\n border-bottom: none;\n text-decoration: underline;\n -webkit-text-decoration: underline dotted;\n text-decoration: underline dotted;\n }\n\n "," :where(b, strong) {\n font-weight: bold;\n }\n\n "," small {\n font-size: 80%;\n }\n\n "," :where(sub,sup) {\n font-size: 75%;\n line-height: 0;\n position: relative;\n vertical-align: baseline;\n }\n\n "," sub {\n bottom: -0.25em;\n }\n\n "," sup {\n top: -0.5em;\n }\n\n "," img {\n border-style: none;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n font-family: inherit;\n font-size: 100%;\n line-height: 1.15;\n margin: 0;\n }\n\n "," :where(button, input) {\n overflow: visible;\n }\n\n "," :where(button, select) {\n text-transform: none;\n }\n\n ",' :where(\n button::-moz-focus-inner,\n [type="button"]::-moz-focus-inner,\n [type="reset"]::-moz-focus-inner,\n [type="submit"]::-moz-focus-inner\n ) {\n border-style: none;\n padding: 0;\n }\n\n '," fieldset {\n padding: 0.35em 0.75em 0.625em;\n }\n\n "," legend {\n box-sizing: border-box;\n color: inherit;\n display: table;\n max-width: 100%;\n padding: 0;\n white-space: normal;\n }\n\n "," progress {\n vertical-align: baseline;\n }\n\n "," textarea {\n overflow: auto;\n }\n\n ",' :where([type="checkbox"], [type="radio"]) {\n box-sizing: border-box;\n padding: 0;\n }\n\n ',' input[type="number"]::-webkit-inner-spin-button,\n ',' input[type="number"]::-webkit-outer-spin-button {\n -webkit-appearance: none !important;\n }\n\n ',' input[type="number"] {\n -moz-appearance: textfield;\n }\n\n ',' input[type="search"] {\n -webkit-appearance: textfield;\n outline-offset: -2px;\n }\n\n ',' input[type="search"]::-webkit-search-decoration {\n -webkit-appearance: none !important;\n }\n\n '," ::-webkit-file-upload-button {\n -webkit-appearance: button;\n font: inherit;\n }\n\n "," details {\n display: block;\n }\n\n "," summary {\n display: list-item;\n }\n\n template {\n display: none;\n }\n\n [hidden] {\n display: none !important;\n }\n\n "," :where(\n blockquote,\n dl,\n dd,\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n hr,\n figure,\n p,\n pre\n ) {\n margin: 0;\n }\n\n "," button {\n background: transparent;\n padding: 0;\n }\n\n "," fieldset {\n margin: 0;\n padding: 0;\n }\n\n "," :where(ol, ul) {\n margin: 0;\n padding: 0;\n }\n\n "," textarea {\n resize: vertical;\n }\n\n ",' :where(button, [role="button"]) {\n cursor: pointer;\n }\n\n '," button::-moz-focus-inner {\n border: 0 !important;\n }\n\n "," table {\n border-collapse: collapse;\n }\n\n "," :where(h1, h2, h3, h4, h5, h6) {\n font-size: inherit;\n font-weight: inherit;\n }\n\n "," :where(button, input, optgroup, select, textarea) {\n padding: 0;\n line-height: inherit;\n color: inherit;\n }\n\n "," :where(img, svg, video, canvas, audio, iframe, embed, object) {\n display: block;\n }\n\n "," :where(img, video) {\n max-width: 100%;\n height: auto;\n }\n\n [data-js-focus-visible]\n :focus:not([data-focus-visible-added]):not(\n [data-focus-visible-disabled]\n ) {\n outline: none;\n box-shadow: none;\n }\n\n "," select::-ms-expand {\n display: none;\n }\n\n ","\n "])),n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,n,QL)})};function nM(e){var t=e.cssVarsRoot,n=e.theme,o=e.children,a=(0,r.useMemo)((function(){return it(n)}),[n]);return(0,gr.jsxs)(tr,{theme:a,children:[(0,gr.jsx)(rM,{root:t}),o]})}function rM(e){var t=e.root,n=[void 0===t?":host, :root":t,"[data-theme]"].join(",");return(0,gr.jsx)(vy,{styles:function(e){return(0,l.Z)({},n,e.__cssVars)}})}var oM=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.strict,n=void 0===t||t,o=e.errorMessage,a=void 0===o?"useContext: `context` is undefined. Seems you forgot to wrap component within the Provider":o,i=e.name,s=(0,r.createContext)(void 0);return s.displayName=i,[s.Provider,function e(){var t,o=(0,r.useContext)(s);if(!o&&n){var i=new Error(a);throw i.name="ContextError",null==(t=Error.captureStackTrace)||t.call(Error,i,e),i}return o},s]}({name:"StylesContext",errorMessage:"useStyles: `styles` is undefined. Seems you forgot to wrap the components in `` "}),aM=(0,v.Z)(oM,2);aM[0],aM[1];function iM(){var e=St().colorMode;return(0,gr.jsx)(vy,{styles:function(t){var n=_t(Tt(t,"styles.global"),{theme:t,colorMode:e});if(n){var r=mt(n)(t);return r}}})}var sM={light:"chakra-ui-light",dark:"chakra-ui-dark"};var uM="chakra-ui-color-mode";var lM=function(e){return{ssr:!1,type:"localStorage",get:function(t){if(!(null==globalThis?void 0:globalThis.document))return t;var n;try{n=localStorage.getItem(e)||t}catch(r){}return n||t},set:function(t){try{localStorage.setItem(e,t)}catch(n){}}}}(uM);function cM(e,t){var n=e.match(new RegExp("(^| )".concat(t,"=([^;]+)")));return null==n?void 0:n[2]}function fM(e,t){return{ssr:!!t,type:"cookie",get:function(n){return t?cM(t,e):(null==globalThis?void 0:globalThis.document)&&cM(document.cookie,e)||n},set:function(t){document.cookie="".concat(e,"=").concat(t,"; max-age=31536000; path=/")}}}fM(uM);var dM=function(){};function pM(e,t){return"cookie"===e.type&&e.ssr?e.get(t):t}function hM(e){var t=e.value,n=e.children,o=e.options,a=void 0===o?{}:o,i=a.useSystemColorMode,s=a.initialColorMode,u=a.disableTransitionOnChange,l=e.colorModeManager,c=void 0===l?lM:l,f="dark"===s?"dark":"light",d=(0,r.useState)((function(){return pM(c,f)})),p=(0,v.Z)(d,2),h=p[0],m=p[1],g=(0,r.useState)((function(){return pM(c)})),y=(0,v.Z)(g,2),b=y[0],k=y[1],w=(0,r.useMemo)((function(){return function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).preventTransition,t=void 0===e||e,n={setDataset:function(e){var r=t?n.preventTransition():void 0;document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e,null==r||r()},setClassName:function(e){document.body.classList.add(e?sM.dark:sM.light),document.body.classList.remove(e?sM.light:sM.dark)},query:function(){return window.matchMedia("(prefers-color-scheme: dark)")},getSystemTheme:function(e){var t;return(null!=(t=n.query().matches)?t:"dark"===e)?"dark":"light"},addListener:function(e){var t=n.query(),r=function(t){e(t.matches?"dark":"light")};return"function"===typeof t.addListener?t.addListener(r):t.addEventListener("change",r),function(){"function"===typeof t.removeListener?t.removeListener(r):t.removeEventListener("change",r)}},preventTransition:function(){var e=document.createElement("style");return e.appendChild(document.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),document.head.appendChild(e),function(){window.getComputedStyle(document.body),requestAnimationFrame((function(){requestAnimationFrame((function(){document.head.removeChild(e)}))}))}}};return n}({preventTransition:u})}),[u]),x=w.getSystemTheme,S=w.setClassName,T=w.setDataset,E=w.addListener,C="system"!==s||h?h:b,_=(0,r.useCallback)((function(e){var t="system"===e?x():e;m(t),S("dark"===t),T(t),c.set(t)}),[c,x,S,T]);yc((function(){"system"===s&&k(x())}),[]),(0,r.useEffect)((function(){var e=c.get();_(e||("system"!==s?f:"system"))}),[c,f,s,_]);var O=(0,r.useCallback)((function(){_("dark"===C?"light":"dark")}),[C,_]);(0,r.useEffect)((function(){if(i)return E(_)}),[i,E,_]);var I=(0,r.useMemo)((function(){return{colorMode:null!=t?t:C,toggleColorMode:t?dM:O,setColorMode:t?dM:_,forced:void 0!==t}}),[C,O,_,t]);return(0,gr.jsx)(xt.Provider,{value:I,children:n})}hM.displayName="ColorModeProvider";var mM=(0,r.createContext)({getDocument:function(){return document},getWindow:function(){return window}});function vM(e){var t=e.children,n=e.environment,o=e.disabled,a=(0,r.useRef)(null),i=(0,r.useMemo)((function(){return n||{getDocument:function(){var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument)?t:document},getWindow:function(){var e,t;return null!=(t=null==(e=a.current)?void 0:e.ownerDocument.defaultView)?t:window}}}),[n]),s=!o||!n;return(0,gr.jsxs)(mM.Provider,{value:i,children:[t,s&&(0,gr.jsx)("span",{id:"__chakra_env",hidden:!0,ref:a})]})}mM.displayName="EnvironmentContext",vM.displayName="EnvironmentProvider";var gM,yM,bM,kM,wM=function(e){var t=e.children,n=e.colorModeManager,r=e.portalZIndex,o=e.resetScope,a=e.resetCSS,i=void 0===a||a,s=e.theme,u=void 0===s?{}:s,l=e.environment,c=e.cssVarsRoot,f=e.disableEnvironment,d=e.disableGlobalStyle,p=(0,gr.jsx)(vM,{environment:l,disabled:f,children:t});return(0,gr.jsx)(nM,{theme:u,cssVarsRoot:c,children:(0,gr.jsxs)(hM,{colorModeManager:n,options:u.config,children:[i?(0,gr.jsx)(tM,{scope:o}):(0,gr.jsx)(eM,{}),!d&&(0,gr.jsx)(iM,{}),r?(0,gr.jsx)(gc,{zIndex:r,children:p}):p]})})},xM={property:{common:"background-color, border-color, color, fill, stroke, opacity, box-shadow, transform",colors:"background-color, border-color, color, fill, stroke",dimensions:"width, height",position:"left, right, top, bottom",background:"background-color, background-image, background-position"},easing:{"ease-in":"cubic-bezier(0.4, 0, 1, 1)","ease-out":"cubic-bezier(0, 0, 0.2, 1)","ease-in-out":"cubic-bezier(0.4, 0, 0.2, 1)"},duration:{"ultra-fast":"50ms",faster:"100ms",fast:"150ms",normal:"200ms",slow:"300ms",slower:"400ms","ultra-slow":"500ms"}},SM={hide:-1,auto:"auto",base:0,docked:10,dropdown:1e3,sticky:1100,banner:1200,overlay:1300,modal:1400,popover:1500,skipLink:1600,toast:1700,tooltip:1800},TM={none:0,"1px":"1px solid","2px":"2px solid","4px":"4px solid","8px":"8px solid"},EM={base:"0em",sm:"30em",md:"48em",lg:"62em",xl:"80em","2xl":"96em"},CM={transparent:"transparent",current:"currentColor",black:"#000000",white:"#FFFFFF",whiteAlpha:{50:"rgba(255, 255, 255, 0.04)",100:"rgba(255, 255, 255, 0.06)",200:"rgba(255, 255, 255, 0.08)",300:"rgba(255, 255, 255, 0.16)",400:"rgba(255, 255, 255, 0.24)",500:"rgba(255, 255, 255, 0.36)",600:"rgba(255, 255, 255, 0.48)",700:"rgba(255, 255, 255, 0.64)",800:"rgba(255, 255, 255, 0.80)",900:"rgba(255, 255, 255, 0.92)"},blackAlpha:{50:"rgba(0, 0, 0, 0.04)",100:"rgba(0, 0, 0, 0.06)",200:"rgba(0, 0, 0, 0.08)",300:"rgba(0, 0, 0, 0.16)",400:"rgba(0, 0, 0, 0.24)",500:"rgba(0, 0, 0, 0.36)",600:"rgba(0, 0, 0, 0.48)",700:"rgba(0, 0, 0, 0.64)",800:"rgba(0, 0, 0, 0.80)",900:"rgba(0, 0, 0, 0.92)"},gray:{50:"#F7FAFC",100:"#EDF2F7",200:"#E2E8F0",300:"#CBD5E0",400:"#A0AEC0",500:"#718096",600:"#4A5568",700:"#2D3748",800:"#1A202C",900:"#171923"},red:{50:"#FFF5F5",100:"#FED7D7",200:"#FEB2B2",300:"#FC8181",400:"#F56565",500:"#E53E3E",600:"#C53030",700:"#9B2C2C",800:"#822727",900:"#63171B"},orange:{50:"#FFFAF0",100:"#FEEBC8",200:"#FBD38D",300:"#F6AD55",400:"#ED8936",500:"#DD6B20",600:"#C05621",700:"#9C4221",800:"#7B341E",900:"#652B19"},yellow:{50:"#FFFFF0",100:"#FEFCBF",200:"#FAF089",300:"#F6E05E",400:"#ECC94B",500:"#D69E2E",600:"#B7791F",700:"#975A16",800:"#744210",900:"#5F370E"},green:{50:"#F0FFF4",100:"#C6F6D5",200:"#9AE6B4",300:"#68D391",400:"#48BB78",500:"#38A169",600:"#2F855A",700:"#276749",800:"#22543D",900:"#1C4532"},teal:{50:"#E6FFFA",100:"#B2F5EA",200:"#81E6D9",300:"#4FD1C5",400:"#38B2AC",500:"#319795",600:"#2C7A7B",700:"#285E61",800:"#234E52",900:"#1D4044"},blue:{50:"#ebf8ff",100:"#bee3f8",200:"#90cdf4",300:"#63b3ed",400:"#4299e1",500:"#3182ce",600:"#2b6cb0",700:"#2c5282",800:"#2a4365",900:"#1A365D"},cyan:{50:"#EDFDFD",100:"#C4F1F9",200:"#9DECF9",300:"#76E4F7",400:"#0BC5EA",500:"#00B5D8",600:"#00A3C4",700:"#0987A0",800:"#086F83",900:"#065666"},purple:{50:"#FAF5FF",100:"#E9D8FD",200:"#D6BCFA",300:"#B794F4",400:"#9F7AEA",500:"#805AD5",600:"#6B46C1",700:"#553C9A",800:"#44337A",900:"#322659"},pink:{50:"#FFF5F7",100:"#FED7E2",200:"#FBB6CE",300:"#F687B3",400:"#ED64A6",500:"#D53F8C",600:"#B83280",700:"#97266D",800:"#702459",900:"#521B41"},linkedin:{50:"#E8F4F9",100:"#CFEDFB",200:"#9BDAF3",300:"#68C7EC",400:"#34B3E4",500:"#00A0DC",600:"#008CC9",700:"#0077B5",800:"#005E93",900:"#004471"},facebook:{50:"#E8F4F9",100:"#D9DEE9",200:"#B7C2DA",300:"#6482C0",400:"#4267B2",500:"#385898",600:"#314E89",700:"#29487D",800:"#223B67",900:"#1E355B"},messenger:{50:"#D0E6FF",100:"#B9DAFF",200:"#A2CDFF",300:"#7AB8FF",400:"#2E90FF",500:"#0078FF",600:"#0063D1",700:"#0052AC",800:"#003C7E",900:"#002C5C"},whatsapp:{50:"#dffeec",100:"#b9f5d0",200:"#90edb3",300:"#65e495",400:"#3cdd78",500:"#22c35e",600:"#179848",700:"#0c6c33",800:"#01421c",900:"#001803"},twitter:{50:"#E5F4FD",100:"#C8E9FB",200:"#A8DCFA",300:"#83CDF7",400:"#57BBF5",500:"#1DA1F2",600:"#1A94DA",700:"#1681BF",800:"#136B9E",900:"#0D4D71"},telegram:{50:"#E3F2F9",100:"#C5E4F3",200:"#A2D4EC",300:"#7AC1E4",400:"#47A9DA",500:"#0088CC",600:"#007AB8",700:"#006BA1",800:"#005885",900:"#003F5E"}},_M={none:"0",sm:"0.125rem",base:"0.25rem",md:"0.375rem",lg:"0.5rem",xl:"0.75rem","2xl":"1rem","3xl":"1.5rem",full:"9999px"},OM={xs:"0 0 0 1px rgba(0, 0, 0, 0.05)",sm:"0 1px 2px 0 rgba(0, 0, 0, 0.05)",base:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)",md:"0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06)",lg:"0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)",xl:"0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)","2xl":"0 25px 50px -12px rgba(0, 0, 0, 0.25)",outline:"0 0 0 3px rgba(66, 153, 225, 0.6)",inner:"inset 0 2px 4px 0 rgba(0,0,0,0.06)",none:"none","dark-lg":"rgba(0, 0, 0, 0.1) 0px 0px 0px 1px, rgba(0, 0, 0, 0.2) 0px 5px 10px, rgba(0, 0, 0, 0.4) 0px 15px 40px"},IM={none:0,sm:"4px",base:"8px",md:"12px",lg:"16px",xl:"24px","2xl":"40px","3xl":"64px"},NM={letterSpacings:{tighter:"-0.05em",tight:"-0.025em",normal:"0",wide:"0.025em",wider:"0.05em",widest:"0.1em"},lineHeights:{normal:"normal",none:1,shorter:1.25,short:1.375,base:1.5,tall:1.625,taller:"2",3:".75rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem"},fontWeights:{hairline:100,thin:200,light:300,normal:400,medium:500,semibold:600,bold:700,extrabold:800,black:900},fonts:{heading:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',body:'-apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',mono:'SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace'},fontSizes:{"3xs":"0.45rem","2xs":"0.625rem",xs:"0.75rem",sm:"0.875rem",md:"1rem",lg:"1.125rem",xl:"1.25rem","2xl":"1.5rem","3xl":"1.875rem","4xl":"2.25rem","5xl":"3rem","6xl":"3.75rem","7xl":"4.5rem","8xl":"6rem","9xl":"8rem"}},PM={px:"1px",.5:"0.125rem",1:"0.25rem",1.5:"0.375rem",2:"0.5rem",2.5:"0.625rem",3:"0.75rem",3.5:"0.875rem",4:"1rem",5:"1.25rem",6:"1.5rem",7:"1.75rem",8:"2rem",9:"2.25rem",10:"2.5rem",12:"3rem",14:"3.5rem",16:"4rem",20:"5rem",24:"6rem",28:"7rem",32:"8rem",36:"9rem",40:"10rem",44:"11rem",48:"12rem",52:"13rem",56:"14rem",60:"15rem",64:"16rem",72:"18rem",80:"20rem",96:"24rem"},AM=f(f(f({},PM),{max:"max-content",min:"min-content",full:"100%","3xs":"14rem","2xs":"16rem",xs:"20rem",sm:"24rem",md:"28rem",lg:"32rem",xl:"36rem","2xl":"42rem","3xl":"48rem","4xl":"56rem","5xl":"64rem","6xl":"72rem","7xl":"80rem","8xl":"90rem",prose:"60ch"}),{},{container:{sm:"640px",md:"768px",lg:"1024px",xl:"1280px"}}),jM=f(f({breakpoints:EM,zIndices:SM,radii:_M,blur:IM,colors:CM},NM),{},{sizes:AM,shadows:OM,space:PM,borders:TM,transition:xM}),RM=vt(["stepper","step","title","description","indicator","separator","icon","number"]),DM=RM.defineMultiStyleConfig,FM=RM.definePartsStyle,LM=Pe("stepper-indicator-size"),MM=Pe("stepper-icon-size"),BM=Pe("stepper-title-font-size"),zM=Pe("stepper-description-font-size"),ZM=Pe("stepper-accent-color"),UM=FM((function(e){var t,n=e.colorScheme;return{stepper:(t={display:"flex",justifyContent:"space-between",gap:"4","&[data-orientation=vertical]":{flexDirection:"column",alignItems:"flex-start"},"&[data-orientation=horizontal]":{flexDirection:"row",alignItems:"center"}},(0,l.Z)(t,ZM.variable,"colors.".concat(n,".500")),(0,l.Z)(t,"_dark",(0,l.Z)({},ZM.variable,"colors.".concat(n,".200"))),t),title:{fontSize:BM.reference,fontWeight:"medium"},description:{fontSize:zM.reference,color:"chakra-subtle-text"},number:{fontSize:BM.reference},step:{flexShrink:0,position:"relative",display:"flex",gap:"2","&[data-orientation=horizontal]":{alignItems:"center"},flex:"1","&:last-of-type:not([data-stretch])":{flex:"initial"}},icon:{flexShrink:0,width:MM.reference,height:MM.reference},indicator:{flexShrink:0,borderRadius:"full",width:LM.reference,height:LM.reference,display:"flex",justifyContent:"center",alignItems:"center","&[data-status=active]":{borderWidth:"2px",borderColor:ZM.reference},"&[data-status=complete]":{bg:ZM.reference,color:"chakra-inverse-text"},"&[data-status=incomplete]":{borderWidth:"2px"}},separator:{bg:"chakra-border-color",flex:"1","&[data-status=complete]":{bg:ZM.reference},"&[data-orientation=horizontal]":{width:"100%",height:"2px",marginStart:"2"},"&[data-orientation=vertical]":{width:"2px",position:"absolute",height:"100%",maxHeight:"calc(100% - ".concat(LM.reference," - 8px)"),top:"calc(".concat(LM.reference," + 4px)"),insetStart:"calc(".concat(LM.reference," / 2 - 1px)")}}}})),VM=DM({baseStyle:UM,sizes:{xs:FM({stepper:(gM={},(0,l.Z)(gM,LM.variable,"sizes.4"),(0,l.Z)(gM,MM.variable,"sizes.3"),(0,l.Z)(gM,BM.variable,"fontSizes.xs"),(0,l.Z)(gM,zM.variable,"fontSizes.xs"),gM)}),sm:FM({stepper:(yM={},(0,l.Z)(yM,LM.variable,"sizes.6"),(0,l.Z)(yM,MM.variable,"sizes.4"),(0,l.Z)(yM,BM.variable,"fontSizes.sm"),(0,l.Z)(yM,zM.variable,"fontSizes.xs"),yM)}),md:FM({stepper:(bM={},(0,l.Z)(bM,LM.variable,"sizes.8"),(0,l.Z)(bM,MM.variable,"sizes.5"),(0,l.Z)(bM,BM.variable,"fontSizes.md"),(0,l.Z)(bM,zM.variable,"fontSizes.sm"),bM)}),lg:FM({stepper:(kM={},(0,l.Z)(kM,LM.variable,"sizes.10"),(0,l.Z)(kM,MM.variable,"sizes.6"),(0,l.Z)(kM,BM.variable,"fontSizes.lg"),(0,l.Z)(kM,zM.variable,"fontSizes.md"),kM)})},defaultProps:{size:"md",colorScheme:"blue"}});function qM(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=!1;function r(t){var n=(["container","root"].includes(null!=t?t:"")?[e]:[e,t]).filter(Boolean).join("__"),r="chakra-".concat(n);return{className:r,selector:".".concat(r),toString:function(){return t}}}return{parts:function(){!function(){if(n)throw new Error("[anatomy] .part(...) should only be called once. Did you mean to use .extend(...) ?");n=!0}();for(var o=arguments.length,a=new Array(o),i=0;i1&&void 0!==arguments[1]?arguments[1]:"-";return e.replace(/\s+/g,t)}(e.toString());return t.includes("\\.")?e:function(e){return!Number.isInteger(parseFloat(e.toString()))}(e)?t.replace(".","\\."):e}function gB(e,t){return"var(".concat(vB(e)).concat(t?", ".concat(t):"",")")}function yB(e){return"--".concat(function(e){return[arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",vB(e)].filter(Boolean).join("-")}(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:""))}function bB(e,t){var n=yB(e,null==t?void 0:t.prefix);return{variable:n,reference:gB(n,kB(null==t?void 0:t.fallback))}}function kB(e){return"string"===typeof e?e:null==e?void 0:e.reference}function wB(e){return E(e)&&e.reference?e.reference:String(e)}var xB,SB,TB,EB=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r>>0)%2341}(t)];if(!n)throw new tz(e);return"#".concat(n)}(e):e;var n=iz.exec(t);if(n){var r=Array.from(n).slice(1);return[].concat((0,i.Z)(r.slice(0,3).map((function(e){return parseInt(az(e,2),16)}))),[parseInt(az(r[3]||"f",2),16)/255])}var o=sz.exec(t);if(o){var a=Array.from(o).slice(1);return[].concat((0,i.Z)(a.slice(0,3).map((function(e){return parseInt(e,16)}))),[parseInt(a[3]||"ff",16)/255])}var s=uz.exec(t);if(s){var u=Array.from(s).slice(1);return[].concat((0,i.Z)(u.slice(0,3).map((function(e){return parseInt(e,10)}))),[parseFloat(u[3]||"1")])}var l=lz.exec(t);if(l){var c=Array.from(l).slice(1).map(parseFloat),f=(0,v.Z)(c,4),d=f[0],p=f[1],h=f[2],m=f[3];if(QB(0,100,p)!==p)throw new tz(e);if(QB(0,100,h)!==h)throw new tz(e);return[].concat((0,i.Z)(dz(d,p,h)),[Number.isNaN(m)?1:m])}throw new tz(e)}var rz=function(e){return parseInt(e.replace(/_/g,""),36)},oz="1q29ehhb 1n09sgk7 1kl1ekf_ _yl4zsno 16z9eiv3 1p29lhp8 _bd9zg04 17u0____ _iw9zhe5 _to73___ _r45e31e _7l6g016 _jh8ouiv _zn3qba8 1jy4zshs 11u87k0u 1ro9yvyo 1aj3xael 1gz9zjz0 _3w8l4xo 1bf1ekf_ _ke3v___ _4rrkb__ 13j776yz _646mbhl _nrjr4__ _le6mbhl 1n37ehkb _m75f91n _qj3bzfz 1939yygw 11i5z6x8 _1k5f8xs 1509441m 15t5lwgf _ae2th1n _tg1ugcv 1lp1ugcv 16e14up_ _h55rw7n _ny9yavn _7a11xb_ 1ih442g9 _pv442g9 1mv16xof 14e6y7tu 1oo9zkds 17d1cisi _4v9y70f _y98m8kc 1019pq0v 12o9zda8 _348j4f4 1et50i2o _8epa8__ _ts6senj 1o350i2o 1mi9eiuo 1259yrp0 1ln80gnw _632xcoy 1cn9zldc _f29edu4 1n490c8q _9f9ziet 1b94vk74 _m49zkct 1kz6s73a 1eu9dtog _q58s1rz 1dy9sjiq __u89jo3 _aj5nkwg _ld89jo3 13h9z6wx _qa9z2ii _l119xgq _bs5arju 1hj4nwk9 1qt4nwk9 1ge6wau6 14j9zlcw 11p1edc_ _ms1zcxe _439shk6 _jt9y70f _754zsow 1la40eju _oq5p___ _x279qkz 1fa5r3rv _yd2d9ip _424tcku _8y1di2_ _zi2uabw _yy7rn9h 12yz980_ __39ljp6 1b59zg0x _n39zfzp 1fy9zest _b33k___ _hp9wq92 1il50hz4 _io472ub _lj9z3eo 19z9ykg0 _8t8iu3a 12b9bl4a 1ak5yw0o _896v4ku _tb8k8lv _s59zi6t _c09ze0p 1lg80oqn 1id9z8wb _238nba5 1kq6wgdi _154zssg _tn3zk49 _da9y6tc 1sg7cv4f _r12jvtt 1gq5fmkz 1cs9rvci _lp9jn1c _xw1tdnb 13f9zje6 16f6973h _vo7ir40 _bt5arjf _rc45e4t _hr4e100 10v4e100 _hc9zke2 _w91egv_ _sj2r1kk 13c87yx8 _vqpds__ _ni8ggk8 _tj9yqfb 1ia2j4r4 _7x9b10u 1fc9ld4j 1eq9zldr _5j9lhpx _ez9zl6o _md61fzm".split(" ").reduce((function(e,t){for(var n=rz(t.substring(0,3)),r=rz(t.substring(3)).toString(16),o="",a=0;a<6-r.length;a++)o+="0";return e[n]="".concat(o).concat(r),e}),{});var az=function(e,t){return Array.from(Array(t)).map((function(){return e})).join("")},iz=new RegExp("^#".concat(az("([a-f0-9])",3),"([a-f0-9])?$"),"i"),sz=new RegExp("^#".concat(az("([a-f0-9]{2})",3),"([a-f0-9]{2})?$"),"i"),uz=new RegExp("^rgba?\\(\\s*(\\d+)\\s*".concat(az(",\\s*(\\d+)\\s*",2),"(?:,\\s*([\\d.]+))?\\s*\\)$"),"i"),lz=/^hsla?\(\s*([\d.]+)\s*,\s*([\d.]+)%\s*,\s*([\d.]+)%(?:\s*,\s*([\d.]+))?\s*\)$/i,cz=/^[a-z]+$/i,fz=function(e){return Math.round(255*e)},dz=function(e,t,n){var r=n/100;if(0===t)return[r,r,r].map(fz);var o=(e%360+360)%360/60,a=(1-Math.abs(2*r-1))*(t/100),i=a*(1-Math.abs(o%2-1)),s=0,u=0,l=0;o>=0&&o<1?(s=a,u=i):o>=1&&o<2?(s=i,u=a):o>=2&&o<3?(u=a,l=i):o>=3&&o<4?(u=i,l=a):o>=4&&o<5?(s=i,l=a):o>=5&&o<6&&(s=a,l=i);var c=r-a/2;return[s+c,u+c,l+c].map(fz)};function pz(e,t,n,r){return"rgba(".concat(QB(0,255,e).toFixed(),", ").concat(QB(0,255,t).toFixed(),", ").concat(QB(0,255,n).toFixed(),", ").concat(parseFloat(QB(0,1,r).toFixed(3)),")")}function hz(e,t){var n=nz(e),r=(0,v.Z)(n,4);return pz(r[0],r[1],r[2],r[3]-t)}var mz=function(e,t,n){var r=function(e,t,n,r,o){for(t=t.split?t.split("."):t,r=0;r0&&void 0!==arguments[0]?arguments[0]:"1rem",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"rgba(255, 255, 255, 0.15)";return{backgroundImage:"linear-gradient(\n 45deg,\n ".concat(t," 25%,\n transparent 25%,\n transparent 50%,\n ").concat(t," 50%,\n ").concat(t," 75%,\n transparent 75%,\n transparent\n )"),backgroundSize:"".concat(e," ").concat(e)}}function bz(e){var t,n="#".concat(Math.floor(16777215*Math.random()).toString(16).padEnd(6,"0"));return e&&(t=e,0!==Object.keys(t).length)?e.string&&e.colors?function(e,t){var n=0;if(0===e.length)return t[0];for(var r=0;r>8*o&255).toString(16)).substr(-2)}return r}(e.string):e.colors&&!e.string?function(e){return e[Math.floor(Math.random()*e.length)]}(e.colors):n:n}var kz,wz,xz,Sz,Tz,Ez,Cz,_z,Oz=Pe("tabs-color"),Iz=Pe("tabs-bg"),Nz=Pe("tabs-border-color"),Pz=vt(pB.keys),Az=Pz.defineMultiStyleConfig,jz=Pz.definePartsStyle,Rz=function(e){return{display:"vertical"===e.orientation?"flex":"block"}},Dz=function(e){return{flex:e.isFitted?1:void 0,transitionProperty:"common",transitionDuration:"normal",_focusVisible:{zIndex:1,boxShadow:"outline"},_disabled:{cursor:"not-allowed",opacity:.4}}},Fz=function(e){var t=e.align,n=void 0===t?"start":t,r=e.orientation;return{justifyContent:{end:"flex-end",center:"center",start:"flex-start"}[n],flexDirection:"vertical"===r?"column":"row"}},Lz={p:4},Mz=jz((function(e){return{root:Rz(e),tab:Dz(e),tablist:Fz(e),tabpanel:Lz}})),Bz={sm:jz({tab:{py:1,px:4,fontSize:"sm"}}),md:jz({tab:{fontSize:"md",py:2,px:4}}),lg:jz({tab:{fontSize:"lg",py:3,px:4}})},zz=jz((function(e){var t,n,r,o,a=e.colorScheme,i="vertical"===e.orientation,s=i?"borderStart":"borderBottom",u=i?"marginStart":"marginBottom";return{tablist:(t={},(0,l.Z)(t,s,"2px solid"),(0,l.Z)(t,"borderColor","inherit"),t),tab:(o={},(0,l.Z)(o,s,"2px solid"),(0,l.Z)(o,"borderColor","transparent"),(0,l.Z)(o,u,"-2px"),(0,l.Z)(o,"_selected",(n={},(0,l.Z)(n,Oz.variable,"colors.".concat(a,".600")),(0,l.Z)(n,"_dark",(0,l.Z)({},Oz.variable,"colors.".concat(a,".300"))),(0,l.Z)(n,"borderColor","currentColor"),n)),(0,l.Z)(o,"_active",(r={},(0,l.Z)(r,Iz.variable,"colors.gray.200"),(0,l.Z)(r,"_dark",(0,l.Z)({},Iz.variable,"colors.whiteAlpha.300")),r)),(0,l.Z)(o,"_disabled",{_active:{bg:"none"}}),(0,l.Z)(o,"color",Oz.reference),(0,l.Z)(o,"bg",Iz.reference),o)}})),Zz=jz((function(e){var t,n,r,o=e.colorScheme;return{tab:(r={borderTopRadius:"md",border:"1px solid",borderColor:"transparent",mb:"-1px"},(0,l.Z)(r,Nz.variable,"transparent"),(0,l.Z)(r,"_selected",(n={},(0,l.Z)(n,Oz.variable,"colors.".concat(o,".600")),(0,l.Z)(n,Nz.variable,"colors.white"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,Oz.variable,"colors.".concat(o,".300")),(0,l.Z)(t,Nz.variable,"colors.gray.800"),t)),(0,l.Z)(n,"borderColor","inherit"),(0,l.Z)(n,"borderBottomColor",Nz.reference),n)),(0,l.Z)(r,"color",Oz.reference),r),tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Uz=jz((function(e){var t,n,r,o=e.colorScheme;return{tab:(r={border:"1px solid",borderColor:"inherit"},(0,l.Z)(r,Iz.variable,"colors.gray.50"),(0,l.Z)(r,"_dark",(0,l.Z)({},Iz.variable,"colors.whiteAlpha.50")),(0,l.Z)(r,"mb","-1px"),(0,l.Z)(r,"_notLast",{marginEnd:"-1px"}),(0,l.Z)(r,"_selected",(n={},(0,l.Z)(n,Iz.variable,"colors.white"),(0,l.Z)(n,Oz.variable,"colors.".concat(o,".600")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,Iz.variable,"colors.gray.800"),(0,l.Z)(t,Oz.variable,"colors.".concat(o,".300")),t)),(0,l.Z)(n,"borderColor","inherit"),(0,l.Z)(n,"borderTopColor","currentColor"),(0,l.Z)(n,"borderBottomColor","transparent"),n)),(0,l.Z)(r,"color",Oz.reference),(0,l.Z)(r,"bg",Iz.reference),r),tablist:{mb:"-1px",borderBottom:"1px solid",borderColor:"inherit"}}})),Vz=jz((function(e){var t=e.colorScheme,n=e.theme;return{tab:{borderRadius:"full",fontWeight:"semibold",color:"gray.600",_selected:{color:mz(n,"".concat(t,".700")),bg:mz(n,"".concat(t,".100"))}}}})),qz=Az({baseStyle:Mz,sizes:Bz,variants:{line:zz,enclosed:Zz,"enclosed-colored":Uz,"soft-rounded":Vz,"solid-rounded":jz((function(e){var t,n,r,o=e.colorScheme;return{tab:(r={borderRadius:"full",fontWeight:"semibold"},(0,l.Z)(r,Oz.variable,"colors.gray.600"),(0,l.Z)(r,"_dark",(0,l.Z)({},Oz.variable,"inherit")),(0,l.Z)(r,"_selected",(n={},(0,l.Z)(n,Oz.variable,"colors.white"),(0,l.Z)(n,Iz.variable,"colors.".concat(o,".600")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,Oz.variable,"colors.gray.800"),(0,l.Z)(t,Iz.variable,"colors.".concat(o,".300")),t)),n)),(0,l.Z)(r,"color",Oz.reference),(0,l.Z)(r,"bg",Iz.reference),r)}})),unstyled:jz({})},defaultProps:{size:"md",variant:"line",colorScheme:"blue"}}),Hz=function(e,t){var n,r={},o=(0,y.Z)(t);try{for(o.s();!(n=o.n()).done;){var a=n.value;if(Array.isArray(a)){var i=(0,v.Z)(a,2),s=i[0],u=i[1];r[s]=Pe("".concat(e,"-").concat(s),u)}else r[a]=Pe("".concat(e,"-").concat(a))}}catch(nJ){o.e(nJ)}finally{o.f()}return r}("badge",["bg","color","shadow"]),Wz=function(e){var t,n,r=e.colorScheme,o=e.theme,a=gz("".concat(r,".500"),.6)(o);return n={},(0,l.Z)(n,Hz.bg.variable,"colors.".concat(r,".500")),(0,l.Z)(n,Hz.color.variable,"colors.white"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,Hz.bg.variable,a),(0,l.Z)(t,Hz.color.variable,"colors.whiteAlpha.800"),t)),n},Jz=function(e){var t,n,r=e.colorScheme,o=e.theme,a=gz("".concat(r,".200"),.16)(o);return n={},(0,l.Z)(n,Hz.bg.variable,"colors.".concat(r,".100")),(0,l.Z)(n,Hz.color.variable,"colors.".concat(r,".800")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,Hz.bg.variable,a),(0,l.Z)(t,Hz.color.variable,"colors.".concat(r,".200")),t)),n},Gz=function(e){var t,n=e.colorScheme,r=e.theme,o=gz("".concat(n,".200"),.8)(r);return t={},(0,l.Z)(t,Hz.color.variable,"colors.".concat(n,".500")),(0,l.Z)(t,"_dark",(0,l.Z)({},Hz.color.variable,o)),(0,l.Z)(t,Hz.shadow.variable,"inset 0 0 0px 1px ".concat(Hz.color.reference)),t},Yz={baseStyle:{px:1,textTransform:"uppercase",fontSize:"xs",borderRadius:"sm",fontWeight:"bold",bg:Hz.bg.reference,color:Hz.color.reference,boxShadow:Hz.shadow.reference},variants:{solid:Wz,subtle:Jz,outline:Gz},defaultProps:{variant:"subtle",colorScheme:"gray"}},Xz=vt(hB.keys),$z=Xz.defineMultiStyleConfig,Kz=Xz.definePartsStyle,Qz=Pe("tag-bg"),eZ=Pe("tag-color"),tZ=Pe("tag-shadow"),nZ=Pe("tag-min-height"),rZ=Pe("tag-min-width"),oZ=Pe("tag-font-size"),aZ=Pe("tag-padding-inline"),iZ=Kz({container:(kz={fontWeight:"medium",lineHeight:1.2,outline:0},(0,l.Z)(kz,eZ.variable,Hz.color.reference),(0,l.Z)(kz,Qz.variable,Hz.bg.reference),(0,l.Z)(kz,tZ.variable,Hz.shadow.reference),(0,l.Z)(kz,"color",eZ.reference),(0,l.Z)(kz,"bg",Qz.reference),(0,l.Z)(kz,"boxShadow",tZ.reference),(0,l.Z)(kz,"borderRadius","md"),(0,l.Z)(kz,"minH",nZ.reference),(0,l.Z)(kz,"minW",rZ.reference),(0,l.Z)(kz,"fontSize",oZ.reference),(0,l.Z)(kz,"px",aZ.reference),(0,l.Z)(kz,"_focusVisible",(0,l.Z)({},tZ.variable,"shadows.outline")),kz),label:{lineHeight:1.2,overflow:"visible"},closeButton:{fontSize:"lg",w:"5",h:"5",transitionProperty:"common",transitionDuration:"normal",borderRadius:"full",marginStart:"1.5",marginEnd:"-1",opacity:.5,_disabled:{opacity:.4},_focusVisible:{boxShadow:"outline",bg:"rgba(0, 0, 0, 0.14)"},_hover:{opacity:.8},_active:{opacity:1}}}),sZ={sm:Kz({container:(wz={},(0,l.Z)(wz,nZ.variable,"sizes.5"),(0,l.Z)(wz,rZ.variable,"sizes.5"),(0,l.Z)(wz,oZ.variable,"fontSizes.xs"),(0,l.Z)(wz,aZ.variable,"space.2"),wz),closeButton:{marginEnd:"-2px",marginStart:"0.35rem"}}),md:Kz({container:(xz={},(0,l.Z)(xz,nZ.variable,"sizes.6"),(0,l.Z)(xz,rZ.variable,"sizes.6"),(0,l.Z)(xz,oZ.variable,"fontSizes.sm"),(0,l.Z)(xz,aZ.variable,"space.2"),xz)}),lg:Kz({container:(Sz={},(0,l.Z)(Sz,nZ.variable,"sizes.8"),(0,l.Z)(Sz,rZ.variable,"sizes.8"),(0,l.Z)(Sz,oZ.variable,"fontSizes.md"),(0,l.Z)(Sz,aZ.variable,"space.3"),Sz)})},uZ={subtle:Kz((function(e){var t;return{container:null==(t=Yz.variants)?void 0:t.subtle(e)}})),solid:Kz((function(e){var t;return{container:null==(t=Yz.variants)?void 0:t.solid(e)}})),outline:Kz((function(e){var t;return{container:null==(t=Yz.variants)?void 0:t.outline(e)}}))},lZ=$z({variants:uZ,baseStyle:iZ,sizes:sZ,defaultProps:{size:"md",variant:"subtle",colorScheme:"gray"}}),cZ=vt(eB.keys),fZ=cZ.definePartsStyle,dZ=cZ.defineMultiStyleConfig,pZ=Pe("input-height"),hZ=Pe("input-font-size"),mZ=Pe("input-padding"),vZ=Pe("input-border-radius"),gZ=fZ({addon:{height:pZ.reference,fontSize:hZ.reference,px:mZ.reference,borderRadius:vZ.reference},field:{width:"100%",height:pZ.reference,fontSize:hZ.reference,px:mZ.reference,borderRadius:vZ.reference,minWidth:0,outline:0,position:"relative",appearance:"none",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed"}}}),yZ={lg:(Tz={},(0,l.Z)(Tz,hZ.variable,"fontSizes.lg"),(0,l.Z)(Tz,mZ.variable,"space.4"),(0,l.Z)(Tz,vZ.variable,"radii.md"),(0,l.Z)(Tz,pZ.variable,"sizes.12"),Tz),md:(Ez={},(0,l.Z)(Ez,hZ.variable,"fontSizes.md"),(0,l.Z)(Ez,mZ.variable,"space.4"),(0,l.Z)(Ez,vZ.variable,"radii.md"),(0,l.Z)(Ez,pZ.variable,"sizes.10"),Ez),sm:(Cz={},(0,l.Z)(Cz,hZ.variable,"fontSizes.sm"),(0,l.Z)(Cz,mZ.variable,"space.3"),(0,l.Z)(Cz,vZ.variable,"radii.sm"),(0,l.Z)(Cz,pZ.variable,"sizes.8"),Cz),xs:(_z={},(0,l.Z)(_z,hZ.variable,"fontSizes.xs"),(0,l.Z)(_z,mZ.variable,"space.2"),(0,l.Z)(_z,vZ.variable,"radii.sm"),(0,l.Z)(_z,pZ.variable,"sizes.6"),_z)},bZ={lg:fZ({field:yZ.lg,group:yZ.lg}),md:fZ({field:yZ.md,group:yZ.md}),sm:fZ({field:yZ.sm,group:yZ.sm}),xs:fZ({field:yZ.xs,group:yZ.xs})};function kZ(e){var t=e.focusBorderColor,n=e.errorBorderColor;return{focusBorderColor:t||HB("blue.500","blue.300")(e),errorBorderColor:n||HB("red.500","red.300")(e)}}var wZ,xZ,SZ,TZ,EZ,CZ,_Z,OZ,IZ,NZ,PZ,AZ,jZ,RZ=fZ((function(e){var t=e.theme,n=kZ(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{border:"1px solid",borderColor:"inherit",bg:"inherit",_hover:{borderColor:HB("gray.300","whiteAlpha.400")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mz(t,o),boxShadow:"0 0 0 1px ".concat(mz(t,o))},_focusVisible:{zIndex:1,borderColor:mz(t,r),boxShadow:"0 0 0 1px ".concat(mz(t,r))}},addon:{border:"1px solid",borderColor:HB("inherit","whiteAlpha.50")(e),bg:HB("gray.100","whiteAlpha.300")(e)}}})),DZ=fZ((function(e){var t=e.theme,n=kZ(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{border:"2px solid",borderColor:"transparent",bg:HB("gray.100","whiteAlpha.50")(e),_hover:{bg:HB("gray.200","whiteAlpha.100")(e)},_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mz(t,o)},_focusVisible:{bg:"transparent",borderColor:mz(t,r)}},addon:{border:"2px solid",borderColor:"transparent",bg:HB("gray.100","whiteAlpha.50")(e)}}})),FZ=fZ((function(e){var t=e.theme,n=kZ(e),r=n.focusBorderColor,o=n.errorBorderColor;return{field:{borderBottom:"1px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent",_readOnly:{boxShadow:"none !important",userSelect:"all"},_invalid:{borderColor:mz(t,o),boxShadow:"0px 1px 0px 0px ".concat(mz(t,o))},_focusVisible:{borderColor:mz(t,r),boxShadow:"0px 1px 0px 0px ".concat(mz(t,r))}},addon:{borderBottom:"2px solid",borderColor:"inherit",borderRadius:"0",px:"0",bg:"transparent"}}})),LZ=dZ({baseStyle:gZ,sizes:bZ,variants:{outline:RZ,filled:DZ,flushed:FZ,unstyled:fZ({field:{bg:"transparent",px:"0",height:"auto"},addon:{bg:"transparent",px:"0",height:"auto"}})},defaultProps:{size:"md",variant:"outline"}}),MZ=f(f({},null==(wZ=LZ.baseStyle)?void 0:wZ.field),{},{paddingY:"2",minHeight:"20",lineHeight:"short",verticalAlign:"top"}),BZ={outline:function(e){var t,n;return null!=(n=null==(t=LZ.variants)?void 0:t.outline(e).field)?n:{}},flushed:function(e){var t,n;return null!=(n=null==(t=LZ.variants)?void 0:t.flushed(e).field)?n:{}},filled:function(e){var t,n;return null!=(n=null==(t=LZ.variants)?void 0:t.filled(e).field)?n:{}},unstyled:null!=(SZ=null==(xZ=LZ.variants)?void 0:xZ.unstyled.field)?SZ:{}},zZ={baseStyle:MZ,sizes:{xs:null!=(EZ=null==(TZ=LZ.sizes)?void 0:TZ.xs.field)?EZ:{},sm:null!=(_Z=null==(CZ=LZ.sizes)?void 0:CZ.sm.field)?_Z:{},md:null!=(IZ=null==(OZ=LZ.sizes)?void 0:OZ.md.field)?IZ:{},lg:null!=(PZ=null==(NZ=LZ.sizes)?void 0:NZ.lg.field)?PZ:{}},variants:BZ,defaultProps:{size:"md",variant:"outline"}},ZZ=bB("tooltip-bg"),UZ=bB("tooltip-fg"),VZ=bB("popper-arrow-bg"),qZ={baseStyle:(jZ={bg:ZZ.reference,color:UZ.reference},(0,l.Z)(jZ,ZZ.variable,"colors.gray.700"),(0,l.Z)(jZ,UZ.variable,"colors.whiteAlpha.900"),(0,l.Z)(jZ,"_dark",(AZ={},(0,l.Z)(AZ,ZZ.variable,"colors.gray.300"),(0,l.Z)(AZ,UZ.variable,"colors.gray.900"),AZ)),(0,l.Z)(jZ,VZ.variable,ZZ.reference),(0,l.Z)(jZ,"px","2"),(0,l.Z)(jZ,"py","0.5"),(0,l.Z)(jZ,"borderRadius","sm"),(0,l.Z)(jZ,"fontWeight","medium"),(0,l.Z)(jZ,"fontSize","sm"),(0,l.Z)(jZ,"boxShadow","md"),(0,l.Z)(jZ,"maxW","xs"),(0,l.Z)(jZ,"zIndex","tooltip"),jZ)},HZ=vt(iB.keys),WZ=HZ.defineMultiStyleConfig,JZ=HZ.definePartsStyle,GZ=function(e){var t=e.colorScheme,n=e.theme,r=e.isIndeterminate,o=e.hasStripe,a=HB(yz(),yz("1rem","rgba(0,0,0,0.1)"))(e),i=HB("".concat(t,".500"),"".concat(t,".200"))(e),s="linear-gradient(\n to right,\n transparent 0%,\n ".concat(mz(n,i)," 50%,\n transparent 100%\n )");return f(f({},!r&&o&&a),r?{bgImage:s}:{bgColor:i})},YZ={lineHeight:"1",fontSize:"0.25em",fontWeight:"bold",color:"white"},XZ=function(e){return{bg:HB("gray.100","whiteAlpha.300")(e)}},$Z=function(e){return f({transitionProperty:"common",transitionDuration:"slow"},GZ(e))},KZ=JZ((function(e){return{label:YZ,filledTrack:$Z(e),track:XZ(e)}})),QZ=WZ({sizes:{xs:JZ({track:{h:"1"}}),sm:JZ({track:{h:"2"}}),md:JZ({track:{h:"3"}}),lg:JZ({track:{h:"4"}})},baseStyle:KZ,defaultProps:{size:"md",colorScheme:"blue"}});function eU(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r option, > optgroup",{bg:ZU.reference}),tU)),icon:{width:"6",height:"100%",insetEnd:"2",position:"relative",color:"currentColor",fontSize:"xl",_disabled:{opacity:.5}}}),sizes:{lg:f(f({},null==(rU=LZ.sizes)?void 0:rU.lg),{},{field:f(f({},null==(oU=LZ.sizes)?void 0:oU.lg.field),UU)}),md:f(f({},null==(aU=LZ.sizes)?void 0:aU.md),{},{field:f(f({},null==(iU=LZ.sizes)?void 0:iU.md.field),UU)}),sm:f(f({},null==(sU=LZ.sizes)?void 0:sU.sm),{},{field:f(f({},null==(uU=LZ.sizes)?void 0:uU.sm.field),UU)}),xs:f(f({},null==(lU=LZ.sizes)?void 0:lU.xs),{},{field:f(f({},null==(cU=LZ.sizes)?void 0:cU.xs.field),UU),icon:{insetEnd:"1"}})},variants:LZ.variants,defaultProps:LZ.defaultProps}),qU=Pe("skeleton-start-color"),HU=Pe("skeleton-end-color"),WU={baseStyle:(dU={},(0,l.Z)(dU,qU.variable,"colors.gray.100"),(0,l.Z)(dU,HU.variable,"colors.gray.400"),(0,l.Z)(dU,"_dark",(fU={},(0,l.Z)(fU,qU.variable,"colors.gray.800"),(0,l.Z)(fU,HU.variable,"colors.gray.600"),fU)),(0,l.Z)(dU,"background",qU.reference),(0,l.Z)(dU,"borderColor",HU.reference),(0,l.Z)(dU,"opacity",.7),(0,l.Z)(dU,"borderRadius","sm"),dU)},JU=Pe("skip-link-bg"),GU={baseStyle:{borderRadius:"md",fontWeight:"semibold",_focusVisible:(pU={boxShadow:"outline",padding:"4",position:"fixed",top:"6",insetStart:"6"},(0,l.Z)(pU,JU.variable,"colors.white"),(0,l.Z)(pU,"_dark",(0,l.Z)({},JU.variable,"colors.gray.700")),(0,l.Z)(pU,"bg",JU.reference),pU)}},YU=vt(lB.keys),XU=YU.defineMultiStyleConfig,$U=YU.definePartsStyle,KU=Pe("slider-thumb-size"),QU=Pe("slider-track-size"),eV=Pe("slider-bg"),tV=function(e){return f({display:"inline-block",position:"relative",cursor:"pointer",_disabled:{opacity:.6,cursor:"default",pointerEvents:"none"}},WB({orientation:e.orientation,vertical:{h:"100%"},horizontal:{w:"100%"}}))},nV=function(e){var t,n;return f(f({},WB({orientation:e.orientation,horizontal:{h:QU.reference},vertical:{w:QU.reference}})),{},(n={overflow:"hidden",borderRadius:"sm"},(0,l.Z)(n,eV.variable,"colors.gray.200"),(0,l.Z)(n,"_dark",(0,l.Z)({},eV.variable,"colors.whiteAlpha.200")),(0,l.Z)(n,"_disabled",(t={},(0,l.Z)(t,eV.variable,"colors.gray.300"),(0,l.Z)(t,"_dark",(0,l.Z)({},eV.variable,"colors.whiteAlpha.300")),t)),(0,l.Z)(n,"bg",eV.reference),n))},rV=function(e){return f(f({},WB({orientation:e.orientation,vertical:{left:"50%",transform:"translateX(-50%)",_active:{transform:"translateX(-50%) scale(1.15)"}},horizontal:{top:"50%",transform:"translateY(-50%)",_active:{transform:"translateY(-50%) scale(1.15)"}}})),{},{w:KU.reference,h:KU.reference,display:"flex",alignItems:"center",justifyContent:"center",position:"absolute",outline:0,zIndex:1,borderRadius:"full",bg:"white",boxShadow:"base",border:"1px solid",borderColor:"transparent",transitionProperty:"transform",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{bg:"gray.300"}})},oV=function(e){var t,n=e.colorScheme;return t={width:"inherit",height:"inherit"},(0,l.Z)(t,eV.variable,"colors.".concat(n,".500")),(0,l.Z)(t,"_dark",(0,l.Z)({},eV.variable,"colors.".concat(n,".200"))),(0,l.Z)(t,"bg",eV.reference),t},aV=XU({baseStyle:$U((function(e){return{container:tV(e),track:nV(e),thumb:rV(e),filledTrack:oV(e)}})),sizes:{lg:$U({container:(hU={},(0,l.Z)(hU,KU.variable,"sizes.4"),(0,l.Z)(hU,QU.variable,"sizes.1"),hU)}),md:$U({container:(mU={},(0,l.Z)(mU,KU.variable,"sizes.3.5"),(0,l.Z)(mU,QU.variable,"sizes.1"),mU)}),sm:$U({container:(vU={},(0,l.Z)(vU,KU.variable,"sizes.2.5"),(0,l.Z)(vU,QU.variable,"sizes.0.5"),vU)})},defaultProps:{size:"md",colorScheme:"blue"}}),iV=bB("spinner-size"),sV={baseStyle:{width:[iV.reference],height:[iV.reference]},sizes:{xs:(0,l.Z)({},iV.variable,"sizes.3"),sm:(0,l.Z)({},iV.variable,"sizes.4"),md:(0,l.Z)({},iV.variable,"sizes.6"),lg:(0,l.Z)({},iV.variable,"sizes.8"),xl:(0,l.Z)({},iV.variable,"sizes.12")},defaultProps:{size:"md"}},uV=vt(cB.keys),lV=uV.defineMultiStyleConfig,cV=uV.definePartsStyle,fV=lV({baseStyle:cV({container:{},label:{fontWeight:"medium"},helpText:{opacity:.8,marginBottom:"2"},number:{verticalAlign:"baseline",fontWeight:"semibold"},icon:{marginEnd:1,w:"3.5",h:"3.5",verticalAlign:"middle"}}),sizes:{md:cV({label:{fontSize:"sm"},helpText:{fontSize:"sm"},number:{fontSize:"2xl"}})},defaultProps:{size:"md"}}),dV=Pe("kbd-bg"),pV={baseStyle:(gU={},(0,l.Z)(gU,dV.variable,"colors.gray.100"),(0,l.Z)(gU,"_dark",(0,l.Z)({},dV.variable,"colors.whiteAlpha.100")),(0,l.Z)(gU,"bg",dV.reference),(0,l.Z)(gU,"borderRadius","md"),(0,l.Z)(gU,"borderWidth","1px"),(0,l.Z)(gU,"borderBottomWidth","3px"),(0,l.Z)(gU,"fontSize","0.8em"),(0,l.Z)(gU,"fontWeight","bold"),(0,l.Z)(gU,"lineHeight","normal"),(0,l.Z)(gU,"px","0.4em"),(0,l.Z)(gU,"whiteSpace","nowrap"),gU)},hV={baseStyle:{transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",cursor:"pointer",textDecoration:"none",outline:"none",color:"inherit",_hover:{textDecoration:"underline"},_focusVisible:{boxShadow:"outline"}}},mV=vt(tB.keys),vV=(0,mV.defineMultiStyleConfig)({baseStyle:(0,mV.definePartsStyle)({icon:{marginEnd:"2",display:"inline",verticalAlign:"text-bottom"}})}),gV=vt(nB.keys),yV=gV.defineMultiStyleConfig,bV=gV.definePartsStyle,kV=Pe("menu-bg"),wV=Pe("menu-shadow"),xV=yV({baseStyle:bV({button:{transitionProperty:"common",transitionDuration:"normal"},list:(bU={},(0,l.Z)(bU,kV.variable,"#fff"),(0,l.Z)(bU,wV.variable,"shadows.sm"),(0,l.Z)(bU,"_dark",(yU={},(0,l.Z)(yU,kV.variable,"colors.gray.700"),(0,l.Z)(yU,wV.variable,"shadows.dark-lg"),yU)),(0,l.Z)(bU,"color","inherit"),(0,l.Z)(bU,"minW","3xs"),(0,l.Z)(bU,"py","2"),(0,l.Z)(bU,"zIndex",1),(0,l.Z)(bU,"borderRadius","md"),(0,l.Z)(bU,"borderWidth","1px"),(0,l.Z)(bU,"bg",kV.reference),(0,l.Z)(bU,"boxShadow",wV.reference),bU),item:{py:"1.5",px:"3",transitionProperty:"background",transitionDuration:"ultra-fast",transitionTimingFunction:"ease-in",_focus:(kU={},(0,l.Z)(kU,kV.variable,"colors.gray.100"),(0,l.Z)(kU,"_dark",(0,l.Z)({},kV.variable,"colors.whiteAlpha.100")),kU),_active:(wU={},(0,l.Z)(wU,kV.variable,"colors.gray.200"),(0,l.Z)(wU,"_dark",(0,l.Z)({},kV.variable,"colors.whiteAlpha.200")),wU),_expanded:(xU={},(0,l.Z)(xU,kV.variable,"colors.gray.100"),(0,l.Z)(xU,"_dark",(0,l.Z)({},kV.variable,"colors.whiteAlpha.100")),xU),_disabled:{opacity:.4,cursor:"not-allowed"},bg:kV.reference},groupTitle:{mx:4,my:2,fontWeight:"semibold",fontSize:"sm"},icon:{display:"inline-flex",alignItems:"center",justifyContent:"center",flexShrink:0},command:{opacity:.6},divider:{border:0,borderBottom:"1px solid",borderColor:"inherit",my:"2",opacity:.6}})}),SV=vt(rB.keys),TV=SV.defineMultiStyleConfig,EV=SV.definePartsStyle,CV=Pe("modal-bg"),_V=Pe("modal-shadow"),OV={bg:"blackAlpha.600",zIndex:"modal"},IV=function(e){return{display:"flex",zIndex:"modal",justifyContent:"center",alignItems:e.isCentered?"center":"flex-start",overflow:"inside"===e.scrollBehavior?"hidden":"auto",overscrollBehaviorY:"none"}},NV=function(e){var t,n,r=e.isCentered;return n={borderRadius:"md",color:"inherit",my:r?"auto":"16",mx:r?"auto":void 0,zIndex:"modal",maxH:"inside"===e.scrollBehavior?"calc(100% - 7.5rem)":void 0},(0,l.Z)(n,CV.variable,"colors.white"),(0,l.Z)(n,_V.variable,"shadows.lg"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,CV.variable,"colors.gray.700"),(0,l.Z)(t,_V.variable,"shadows.dark-lg"),t)),(0,l.Z)(n,"bg",CV.reference),(0,l.Z)(n,"boxShadow",_V.reference),n},PV={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},AV={position:"absolute",top:"2",insetEnd:"3"},jV=function(e){return{px:"6",py:"2",flex:"1",overflow:"inside"===e.scrollBehavior?"auto":void 0}},RV={px:"6",py:"4"};function DV(e){return EV("full"===e?{dialog:{maxW:"100vw",minH:"$100vh",my:"0",borderRadius:"0"}}:{dialog:{maxW:e}})}var FV,LV,MV,BV,zV=TV({baseStyle:EV((function(e){return{overlay:OV,dialogContainer:eU(IV,e),dialog:eU(NV,e),header:PV,closeButton:AV,body:eU(jV,e),footer:RV}})),sizes:{xs:DV("xs"),sm:DV("sm"),md:DV("md"),lg:DV("lg"),xl:DV("xl"),"2xl":DV("2xl"),"3xl":DV("3xl"),"4xl":DV("4xl"),"5xl":DV("5xl"),"6xl":DV("6xl"),full:DV("full")},defaultProps:{size:"md"}}),ZV=vt(oB.keys),UV=ZV.defineMultiStyleConfig,VV=ZV.definePartsStyle,qV=bB("number-input-stepper-width"),HV=bB("number-input-input-padding"),WV=PB(qV).add("0.5rem").toString(),JV=bB("number-input-bg"),GV=bB("number-input-color"),YV=bB("number-input-border-color"),XV=(FV={},(0,l.Z)(FV,qV.variable,"sizes.6"),(0,l.Z)(FV,HV.variable,WV),FV),$V=function(e){var t,n;return null!=(n=null==(t=eU(LZ.baseStyle,e))?void 0:t.field)?n:{}},KV={width:qV.reference},QV=(BV={borderStart:"1px solid",borderStartColor:YV.reference,color:GV.reference,bg:JV.reference},(0,l.Z)(BV,GV.variable,"colors.chakra-body-text"),(0,l.Z)(BV,YV.variable,"colors.chakra-border-color"),(0,l.Z)(BV,"_dark",(LV={},(0,l.Z)(LV,GV.variable,"colors.whiteAlpha.800"),(0,l.Z)(LV,YV.variable,"colors.whiteAlpha.300"),LV)),(0,l.Z)(BV,"_active",(MV={},(0,l.Z)(MV,JV.variable,"colors.gray.200"),(0,l.Z)(MV,"_dark",(0,l.Z)({},JV.variable,"colors.whiteAlpha.300")),MV)),(0,l.Z)(BV,"_disabled",{opacity:.4,cursor:"not-allowed"}),BV),eq=VV((function(e){var t;return{root:XV,field:null!=(t=eU($V,e))?t:{},stepperGroup:KV,stepper:QV}}));function tq(e){var t,n,r,o=null==(t=LZ.sizes)?void 0:t[e],a={lg:"md",md:"md",sm:"sm",xs:"sm"},i=null!=(r=null==(n=o.field)?void 0:n.fontSize)?r:"md",s=NM.fontSizes[i];return VV({field:f(f({},o.field),{},{paddingInlineEnd:HV.reference,verticalAlign:"top"}),stepper:{fontSize:PB(s).multiply(.75).toString(),_first:{borderTopEndRadius:a[e]},_last:{borderBottomEndRadius:a[e],mt:"-1px",borderTopWidth:1}}})}var nq,rq,oq,aq,iq,sq=UV({baseStyle:eq,sizes:{xs:tq("xs"),sm:tq("sm"),md:tq("md"),lg:tq("lg")},variants:LZ.variants,defaultProps:LZ.defaultProps}),uq=f(f({},null==(nq=LZ.baseStyle)?void 0:nq.field),{},{textAlign:"center"}),lq={lg:{fontSize:"lg",w:12,h:12,borderRadius:"md"},md:{fontSize:"md",w:10,h:10,borderRadius:"md"},sm:{fontSize:"sm",w:8,h:8,borderRadius:"sm"},xs:{fontSize:"xs",w:6,h:6,borderRadius:"sm"}},cq={outline:function(e){var t,n,r;return null!=(r=null==(n=eU(null==(t=LZ.variants)?void 0:t.outline,e))?void 0:n.field)?r:{}},flushed:function(e){var t,n,r;return null!=(r=null==(n=eU(null==(t=LZ.variants)?void 0:t.flushed,e))?void 0:n.field)?r:{}},filled:function(e){var t,n,r;return null!=(r=null==(n=eU(null==(t=LZ.variants)?void 0:t.filled,e))?void 0:n.field)?r:{}},unstyled:null!=(oq=null==(rq=LZ.variants)?void 0:rq.unstyled.field)?oq:{}},fq={baseStyle:uq,sizes:lq,variants:cq,defaultProps:LZ.defaultProps},dq=vt(aB.keys),pq=dq.defineMultiStyleConfig,hq=dq.definePartsStyle,mq=bB("popper-bg"),vq=bB("popper-arrow-bg"),gq=bB("popper-arrow-shadow-color"),yq=pq({baseStyle:hq({popper:{zIndex:10},content:(iq={},(0,l.Z)(iq,mq.variable,"colors.white"),(0,l.Z)(iq,"bg",mq.reference),(0,l.Z)(iq,vq.variable,mq.reference),(0,l.Z)(iq,gq.variable,"colors.gray.200"),(0,l.Z)(iq,"_dark",(aq={},(0,l.Z)(aq,mq.variable,"colors.gray.700"),(0,l.Z)(aq,gq.variable,"colors.whiteAlpha.300"),aq)),(0,l.Z)(iq,"width","xs"),(0,l.Z)(iq,"border","1px solid"),(0,l.Z)(iq,"borderColor","inherit"),(0,l.Z)(iq,"borderRadius","md"),(0,l.Z)(iq,"boxShadow","sm"),(0,l.Z)(iq,"zIndex","inherit"),(0,l.Z)(iq,"_focusVisible",{outline:0,boxShadow:"outline"}),iq),header:{px:3,py:2,borderBottomWidth:"1px"},body:{px:3,py:2},footer:{px:3,py:2,borderTopWidth:"1px"},closeButton:{position:"absolute",borderRadius:"md",top:1,insetEnd:2,padding:2}})}),bq=vt(XM.keys),kq=bq.definePartsStyle,wq=bq.defineMultiStyleConfig,xq=Pe("drawer-bg"),Sq=Pe("drawer-box-shadow");function Tq(e){return kq("full"===e?{dialog:{maxW:"100vw",h:"100vh"}}:{dialog:{maxW:e}})}var Eq,Cq,_q,Oq,Iq,Nq,Pq,Aq,jq,Rq,Dq,Fq,Lq,Mq,Bq,zq,Zq={bg:"blackAlpha.600",zIndex:"modal"},Uq={display:"flex",zIndex:"modal",justifyContent:"center"},Vq=function(e){var t,n;return f(f({},e.isFullHeight&&{height:"100vh"}),{},(n={zIndex:"modal",maxH:"100vh",color:"inherit"},(0,l.Z)(n,xq.variable,"colors.white"),(0,l.Z)(n,Sq.variable,"shadows.lg"),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,xq.variable,"colors.gray.700"),(0,l.Z)(t,Sq.variable,"shadows.dark-lg"),t)),(0,l.Z)(n,"bg",xq.reference),(0,l.Z)(n,"boxShadow",Sq.reference),n))},qq={px:"6",py:"4",fontSize:"xl",fontWeight:"semibold"},Hq={position:"absolute",top:"2",insetEnd:"3"},Wq={px:"6",py:"2",flex:"1",overflow:"auto"},Jq={px:"6",py:"4"},Gq=wq({baseStyle:kq((function(e){return{overlay:Zq,dialogContainer:Uq,dialog:eU(Vq,e),header:qq,closeButton:Hq,body:Wq,footer:Jq}})),sizes:{xs:Tq("xs"),sm:Tq("md"),md:Tq("lg"),lg:Tq("2xl"),xl:Tq("4xl"),full:Tq("full")},defaultProps:{size:"xs"}}),Yq=vt($M.keys),Xq=Yq.definePartsStyle,$q=(0,Yq.defineMultiStyleConfig)({baseStyle:Xq({preview:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal"},input:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}},textarea:{borderRadius:"md",py:"1",transitionProperty:"common",transitionDuration:"normal",width:"full",_focusVisible:{boxShadow:"outline"},_placeholder:{opacity:.6}}})}),Kq=vt(KM.keys),Qq=Kq.definePartsStyle,eH=Kq.defineMultiStyleConfig,tH=Pe("form-control-color"),nH=eH({baseStyle:Qq({container:{width:"100%",position:"relative"},requiredIndicator:(Eq={marginStart:"1"},(0,l.Z)(Eq,tH.variable,"colors.red.500"),(0,l.Z)(Eq,"_dark",(0,l.Z)({},tH.variable,"colors.red.300")),(0,l.Z)(Eq,"color",tH.reference),Eq),helperText:(Cq={mt:"2"},(0,l.Z)(Cq,tH.variable,"colors.gray.600"),(0,l.Z)(Cq,"_dark",(0,l.Z)({},tH.variable,"colors.whiteAlpha.600")),(0,l.Z)(Cq,"color",tH.reference),(0,l.Z)(Cq,"lineHeight","normal"),(0,l.Z)(Cq,"fontSize","sm"),Cq)})}),rH=vt(QM.keys),oH=rH.definePartsStyle,aH=rH.defineMultiStyleConfig,iH=Pe("form-error-color"),sH=aH({baseStyle:oH({text:(_q={},(0,l.Z)(_q,iH.variable,"colors.red.500"),(0,l.Z)(_q,"_dark",(0,l.Z)({},iH.variable,"colors.red.300")),(0,l.Z)(_q,"color",iH.reference),(0,l.Z)(_q,"mt","2"),(0,l.Z)(_q,"fontSize","sm"),(0,l.Z)(_q,"lineHeight","normal"),_q),icon:(Oq={marginEnd:"0.5em"},(0,l.Z)(Oq,iH.variable,"colors.red.500"),(0,l.Z)(Oq,"_dark",(0,l.Z)({},iH.variable,"colors.red.300")),(0,l.Z)(Oq,"color",iH.reference),Oq)})}),uH={baseStyle:{fontSize:"md",marginEnd:"3",mb:"2",fontWeight:"medium",transitionProperty:"common",transitionDuration:"normal",opacity:1,_disabled:{opacity:.4}}},lH={baseStyle:{fontFamily:"heading",fontWeight:"bold"},sizes:{"4xl":{fontSize:["6xl",null,"7xl"],lineHeight:1},"3xl":{fontSize:["5xl",null,"6xl"],lineHeight:1},"2xl":{fontSize:["4xl",null,"5xl"],lineHeight:[1.2,null,1]},xl:{fontSize:["3xl",null,"4xl"],lineHeight:[1.33,null,1.2]},lg:{fontSize:["2xl",null,"3xl"],lineHeight:[1.33,null,1.2]},md:{fontSize:"xl",lineHeight:1.2},sm:{fontSize:"md",lineHeight:1.2},xs:{fontSize:"sm",lineHeight:1.2}},defaultProps:{size:"xl"}},cH=vt(GM.keys),fH=cH.defineMultiStyleConfig,dH=cH.definePartsStyle,pH=Pe("breadcrumb-link-decor"),hH=fH({baseStyle:dH({link:(Iq={transitionProperty:"common",transitionDuration:"fast",transitionTimingFunction:"ease-out",outline:"none",color:"inherit",textDecoration:pH.reference},(0,l.Z)(Iq,pH.variable,"none"),(0,l.Z)(Iq,"&:not([aria-current=page])",{cursor:"pointer",_hover:(0,l.Z)({},pH.variable,"underline"),_focusVisible:{boxShadow:"outline"}}),Iq)})}),mH=function(e){var t=e.colorScheme,n=e.theme;if("gray"===t)return{color:HB("gray.800","whiteAlpha.900")(e),_hover:{bg:HB("gray.100","whiteAlpha.200")(e)},_active:{bg:HB("gray.200","whiteAlpha.300")(e)}};var r=gz("".concat(t,".200"),.12)(n),o=gz("".concat(t,".200"),.24)(n);return{color:HB("".concat(t,".600"),"".concat(t,".200"))(e),bg:"transparent",_hover:{bg:HB("".concat(t,".50"),r)(e)},_active:{bg:HB("".concat(t,".100"),o)(e)}}},vH={yellow:{bg:"yellow.400",color:"black",hoverBg:"yellow.500",activeBg:"yellow.600"},cyan:{bg:"cyan.400",color:"black",hoverBg:"cyan.500",activeBg:"cyan.600"}},gH=function(e){var t,n=e.colorScheme;if("gray"===n){var r=HB("gray.100","whiteAlpha.200")(e);return{bg:r,color:HB("gray.800","whiteAlpha.900")(e),_hover:{bg:HB("gray.200","whiteAlpha.300")(e),_disabled:{bg:r}},_active:{bg:HB("gray.300","whiteAlpha.400")(e)}}}var o=null!=(t=vH[n])?t:{},a=o.bg,i=void 0===a?"".concat(n,".500"):a,s=o.color,u=void 0===s?"white":s,l=o.hoverBg,c=void 0===l?"".concat(n,".600"):l,f=o.activeBg,d=void 0===f?"".concat(n,".700"):f,p=HB(i,"".concat(n,".200"))(e);return{bg:p,color:HB(u,"gray.800")(e),_hover:{bg:HB(c,"".concat(n,".300"))(e),_disabled:{bg:p}},_active:{bg:HB(d,"".concat(n,".400"))(e)}}},yH={baseStyle:{lineHeight:"1.2",borderRadius:"md",fontWeight:"semibold",transitionProperty:"common",transitionDuration:"normal",_focusVisible:{boxShadow:"outline"},_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:{_disabled:{bg:"initial"}}},variants:{ghost:mH,outline:function(e){var t=e.colorScheme,n=HB("gray.200","whiteAlpha.300")(e);return f({border:"1px solid",borderColor:"gray"===t?n:"currentColor",".chakra-button__group[data-attached][data-orientation=horizontal] > &:not(:last-of-type)":{marginEnd:"-1px"},".chakra-button__group[data-attached][data-orientation=vertical] > &:not(:last-of-type)":{marginBottom:"-1px"}},eU(mH,e))},solid:gH,link:function(e){var t=e.colorScheme;return{padding:0,height:"auto",lineHeight:"normal",verticalAlign:"baseline",color:HB("".concat(t,".500"),"".concat(t,".200"))(e),_hover:{textDecoration:"underline",_disabled:{textDecoration:"none"}},_active:{color:HB("".concat(t,".700"),"".concat(t,".500"))(e)}}},unstyled:{bg:"none",color:"inherit",display:"inline",lineHeight:"inherit",m:"0",p:"0"}},sizes:{lg:{h:"12",minW:"12",fontSize:"lg",px:"6"},md:{h:"10",minW:"10",fontSize:"md",px:"4"},sm:{h:"8",minW:"8",fontSize:"sm",px:"3"},xs:{h:"6",minW:"6",fontSize:"xs",px:"2"}},defaultProps:{variant:"solid",size:"md",colorScheme:"gray"}},bH=vt(mB.keys),kH=bH.definePartsStyle,wH=bH.defineMultiStyleConfig,xH=Pe("card-bg"),SH=Pe("card-padding"),TH=Pe("card-shadow"),EH=Pe("card-radius"),CH=Pe("card-border-width","0"),_H=Pe("card-border-color"),OH=kH({container:(Nq={},(0,l.Z)(Nq,xH.variable,"colors.chakra-body-bg"),(0,l.Z)(Nq,"backgroundColor",xH.reference),(0,l.Z)(Nq,"boxShadow",TH.reference),(0,l.Z)(Nq,"borderRadius",EH.reference),(0,l.Z)(Nq,"color","chakra-body-text"),(0,l.Z)(Nq,"borderWidth",CH.reference),(0,l.Z)(Nq,"borderColor",_H.reference),Nq),body:{padding:SH.reference,flex:"1 1 0%"},header:{padding:SH.reference},footer:{padding:SH.reference}}),IH={sm:kH({container:(Pq={},(0,l.Z)(Pq,EH.variable,"radii.base"),(0,l.Z)(Pq,SH.variable,"space.3"),Pq)}),md:kH({container:(Aq={},(0,l.Z)(Aq,EH.variable,"radii.md"),(0,l.Z)(Aq,SH.variable,"space.5"),Aq)}),lg:kH({container:(jq={},(0,l.Z)(jq,EH.variable,"radii.xl"),(0,l.Z)(jq,SH.variable,"space.7"),jq)})},NH=wH({baseStyle:OH,variants:{elevated:kH({container:(Rq={},(0,l.Z)(Rq,TH.variable,"shadows.base"),(0,l.Z)(Rq,"_dark",(0,l.Z)({},xH.variable,"colors.gray.700")),Rq)}),outline:kH({container:(Dq={},(0,l.Z)(Dq,CH.variable,"1px"),(0,l.Z)(Dq,_H.variable,"colors.chakra-border-color"),Dq)}),filled:kH({container:(0,l.Z)({},xH.variable,"colors.chakra-subtle-bg")}),unstyled:{body:(0,l.Z)({},SH.variable,0),header:(0,l.Z)({},SH.variable,0),footer:(0,l.Z)({},SH.variable,0)}},sizes:IH,defaultProps:{variant:"elevated",size:"md"}}),PH=bB("close-button-size"),AH=bB("close-button-bg"),jH={baseStyle:{w:[PH.reference],h:[PH.reference],borderRadius:"md",transitionProperty:"common",transitionDuration:"normal",_disabled:{opacity:.4,cursor:"not-allowed",boxShadow:"none"},_hover:(Fq={},(0,l.Z)(Fq,AH.variable,"colors.blackAlpha.100"),(0,l.Z)(Fq,"_dark",(0,l.Z)({},AH.variable,"colors.whiteAlpha.100")),Fq),_active:(Lq={},(0,l.Z)(Lq,AH.variable,"colors.blackAlpha.200"),(0,l.Z)(Lq,"_dark",(0,l.Z)({},AH.variable,"colors.whiteAlpha.200")),Lq),_focusVisible:{boxShadow:"outline"},bg:AH.reference},sizes:{lg:(Mq={},(0,l.Z)(Mq,PH.variable,"sizes.10"),(0,l.Z)(Mq,"fontSize","md"),Mq),md:(Bq={},(0,l.Z)(Bq,PH.variable,"sizes.8"),(0,l.Z)(Bq,"fontSize","xs"),Bq),sm:(zq={},(0,l.Z)(zq,PH.variable,"sizes.6"),(0,l.Z)(zq,"fontSize","2xs"),zq)},defaultProps:{size:"md"}},RH=Yz.variants,DH=Yz.defaultProps,FH={baseStyle:{fontFamily:"mono",fontSize:"sm",px:"0.2em",borderRadius:"sm",bg:Hz.bg.reference,color:Hz.color.reference,boxShadow:Hz.shadow.reference},variants:RH,defaultProps:DH},LH={baseStyle:{w:"100%",mx:"auto",maxW:"prose",px:"4"}},MH={baseStyle:{opacity:.6,borderColor:"inherit"},variants:{solid:{borderStyle:"solid"},dashed:{borderStyle:"dashed"}},defaultProps:{variant:"solid"}},BH=vt(HM.keys),zH=BH.definePartsStyle,ZH=(0,BH.defineMultiStyleConfig)({baseStyle:zH({container:{borderTopWidth:"1px",borderColor:"inherit",_last:{borderBottomWidth:"1px"}},button:{transitionProperty:"common",transitionDuration:"normal",fontSize:"md",_focusVisible:{boxShadow:"outline"},_hover:{bg:"blackAlpha.50"},_disabled:{opacity:.4,cursor:"not-allowed"},px:"4",py:"2"},panel:{pt:"2",px:"4",pb:"5"},icon:{fontSize:"1.25em"}})}),UH=vt(WM.keys),VH=UH.definePartsStyle,qH=UH.defineMultiStyleConfig,HH=Pe("alert-fg"),WH=Pe("alert-bg"),JH=VH({container:{bg:WH.reference,px:"4",py:"3"},title:{fontWeight:"bold",lineHeight:"6",marginEnd:"2"},description:{lineHeight:"6"},icon:{color:HH.reference,flexShrink:0,marginEnd:"3",w:"5",h:"6"},spinner:{color:HH.reference,flexShrink:0,marginEnd:"3",w:"5",h:"5"}});function GH(e){var t=e.theme,n=e.colorScheme,r=gz("".concat(n,".200"),.16)(t);return{light:"colors.".concat(n,".100"),dark:r}}var YH,XH,$H=VH((function(e){var t,n,r=e.colorScheme,o=GH(e);return{container:(n={},(0,l.Z)(n,HH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,WH.variable,o.light),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,HH.variable,"colors.".concat(r,".200")),(0,l.Z)(t,WH.variable,o.dark),t)),n)}})),KH=VH((function(e){var t,n,r=e.colorScheme,o=GH(e);return{container:(n={},(0,l.Z)(n,HH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,WH.variable,o.light),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,HH.variable,"colors.".concat(r,".200")),(0,l.Z)(t,WH.variable,o.dark),t)),(0,l.Z)(n,"paddingStart","3"),(0,l.Z)(n,"borderStartWidth","4px"),(0,l.Z)(n,"borderStartColor",HH.reference),n)}})),QH=VH((function(e){var t,n,r=e.colorScheme,o=GH(e);return{container:(n={},(0,l.Z)(n,HH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,WH.variable,o.light),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,HH.variable,"colors.".concat(r,".200")),(0,l.Z)(t,WH.variable,o.dark),t)),(0,l.Z)(n,"pt","2"),(0,l.Z)(n,"borderTopWidth","4px"),(0,l.Z)(n,"borderTopColor",HH.reference),n)}})),eW=VH((function(e){var t,n,r=e.colorScheme;return{container:(n={},(0,l.Z)(n,HH.variable,"colors.white"),(0,l.Z)(n,WH.variable,"colors.".concat(r,".500")),(0,l.Z)(n,"_dark",(t={},(0,l.Z)(t,HH.variable,"colors.gray.900"),(0,l.Z)(t,WH.variable,"colors.".concat(r,".200")),t)),(0,l.Z)(n,"color",HH.reference),n)}})),tW=qH({baseStyle:JH,variants:{subtle:$H,"left-accent":KH,"top-accent":QH,solid:eW},defaultProps:{variant:"subtle",colorScheme:"blue"}}),nW=vt(JM.keys),rW=nW.definePartsStyle,oW=nW.defineMultiStyleConfig,aW=Pe("avatar-border-color"),iW=Pe("avatar-bg"),sW=Pe("avatar-font-size"),uW=Pe("avatar-size"),lW=(YH={borderRadius:"full",border:"0.2em solid",borderColor:aW.reference},(0,l.Z)(YH,aW.variable,"white"),(0,l.Z)(YH,"_dark",(0,l.Z)({},aW.variable,"colors.gray.800")),YH),cW=(XH={bg:iW.reference,fontSize:sW.reference,width:uW.reference,height:uW.reference,lineHeight:"1"},(0,l.Z)(XH,iW.variable,"colors.gray.200"),(0,l.Z)(XH,"_dark",(0,l.Z)({},iW.variable,"colors.whiteAlpha.400")),XH),fW=function(e){var t,n=e.name,r=e.theme,o=n?bz({string:n}):"colors.gray.400",a=function(e){return function(t){return"dark"===vz(e)(t)}}(o)(r),i="white";return a||(i="gray.800"),t={bg:iW.reference,fontSize:sW.reference,color:i,borderColor:aW.reference,verticalAlign:"top",width:uW.reference,height:uW.reference,"&:not([data-loaded])":(0,l.Z)({},iW.variable,o)},(0,l.Z)(t,aW.variable,"colors.white"),(0,l.Z)(t,"_dark",(0,l.Z)({},aW.variable,"colors.gray.800")),t},dW={fontSize:sW.reference,lineHeight:"1"};function pW(e){var t,n,r="100%"!==e?AM[e]:void 0;return rW({container:(t={},(0,l.Z)(t,uW.variable,null!=r?r:e),(0,l.Z)(t,sW.variable,"calc(".concat(null!=r?r:e," / 2.5)")),t),excessLabel:(n={},(0,l.Z)(n,uW.variable,null!=r?r:e),(0,l.Z)(n,sW.variable,"calc(".concat(null!=r?r:e," / 2.5)")),n)})}var hW={Accordion:ZH,Alert:tW,Avatar:oW({baseStyle:rW((function(e){return{badge:eU(lW,e),excessLabel:eU(cW,e),container:eU(fW,e),label:dW}})),sizes:{"2xs":pW(4),xs:pW(6),sm:pW(8),md:pW(12),lg:pW(16),xl:pW(24),"2xl":pW(32),full:pW("100%")},defaultProps:{size:"md"}}),Badge:Yz,Breadcrumb:hH,Button:yH,Checkbox:PU,CloseButton:jH,Code:FH,Container:LH,Divider:MH,Drawer:Gq,Editable:$q,Form:nH,FormError:sH,FormLabel:uH,Heading:lH,Input:LZ,Kbd:pV,Link:hV,List:vV,Menu:xV,Modal:zV,NumberInput:sq,PinInput:fq,Popover:yq,Progress:QZ,Radio:LU,Select:VU,Skeleton:WU,SkipLink:GU,Slider:aV,Spinner:sV,Stat:fV,Switch:qB,Table:KB,Tabs:qz,Tag:lZ,Textarea:zZ,Tooltip:qZ,Card:NH,Stepper:VM},mW={colors:{"chakra-body-text":{_light:"gray.800",_dark:"whiteAlpha.900"},"chakra-body-bg":{_light:"white",_dark:"gray.800"},"chakra-border-color":{_light:"gray.200",_dark:"whiteAlpha.300"},"chakra-inverse-text":{_light:"white",_dark:"gray.800"},"chakra-subtle-bg":{_light:"gray.100",_dark:"gray.700"},"chakra-subtle-text":{_light:"gray.600",_dark:"gray.400"},"chakra-placeholder-color":{_light:"gray.500",_dark:"whiteAlpha.400"}}},vW={global:{body:{fontFamily:"body",color:"chakra-body-text",bg:"chakra-body-bg",transitionProperty:"background-color",transitionDuration:"normal",lineHeight:"base"},"*::placeholder":{color:"chakra-placeholder-color"},"*, *::before, &::after":{borderColor:"chakra-border-color"}}},gW={useSystemColorMode:!1,initialColorMode:"light",cssVarPrefix:"chakra"},yW=f(f({semanticTokens:mW,direction:"ltr"},jM),{},{components:hW,styles:vW,config:gW}),bW=f(f({semanticTokens:mW,direction:"ltr",components:{}},jM),{},{styles:vW,config:gW}),kW=function(e,t){return e.find((function(e){return e.id===t}))};function wW(e,t){var n=xW(e,t);return{position:n,index:n?e[n].findIndex((function(e){return e.id===t})):-1}}function xW(e,t){for(var n=0,r=Object.entries(e);n"}),OW=(0,v.Z)(_W,2),IW=OW[0],NW=OW[1],PW=dc({name:"AlertStylesContext",hookName:"useAlertStyles",providerName:""}),AW=(0,v.Z)(PW,2),jW=AW[0],RW=AW[1],DW={info:{icon:function(e){return(0,gr.jsx)(Mx,f(f({viewBox:"0 0 24 24"},e),{},{children:(0,gr.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.013,12.013,0,0,0,12,0Zm.25,5a1.5,1.5,0,1,1-1.5,1.5A1.5,1.5,0,0,1,12.25,5ZM14.5,18.5h-4a1,1,0,0,1,0-2h.75a.25.25,0,0,0,.25-.25v-4.5a.25.25,0,0,0-.25-.25H10.5a1,1,0,0,1,0-2h1a2,2,0,0,1,2,2v4.75a.25.25,0,0,0,.25.25h.75a1,1,0,1,1,0,2Z"})}))},colorScheme:"blue"},warning:{icon:CW,colorScheme:"orange"},success:{icon:function(e){return(0,gr.jsx)(Mx,f(f({viewBox:"0 0 24 24"},e),{},{children:(0,gr.jsx)("path",{fill:"currentColor",d:"M12,0A12,12,0,1,0,24,12,12.014,12.014,0,0,0,12,0Zm6.927,8.2-6.845,9.289a1.011,1.011,0,0,1-1.43.188L5.764,13.769a1,1,0,1,1,1.25-1.562l4.076,3.261,6.227-8.451A1,1,0,1,1,18.927,8.2Z"})}))},colorScheme:"green"},error:{icon:CW,colorScheme:"red"},loading:{icon:wy,colorScheme:"blue"}};var FW=["status","addRole"],LW=g((function(e,t){var n,r=yt(e),o=r.status,a=void 0===o?"info":o,i=r.addRole,s=void 0===i||i,l=u(r,FW),c=null!=(n=e.colorScheme)?n:function(e){return DW[e].colorScheme}(a),d=Rr("Alert",f(f({},e),{},{colorScheme:c})),p=f({width:"100%",display:"flex",alignItems:"center",position:"relative",overflow:"hidden"},d.container);return(0,gr.jsx)(IW,{value:{status:a},children:(0,gr.jsx)(jW,{value:d,children:(0,gr.jsx)(vr.div,f(f({"data-status":a,role:s?"alert":void 0,ref:t},l),{},{className:T("chakra-alert",e.className),__css:p}))})})}));function MW(e){var t=NW().status,n=function(e){return DW[e].icon}(t),r=RW(),o="loading"===t?r.spinner:r.icon;return(0,gr.jsx)(vr.span,f(f({display:"inherit","data-status":t},e),{},{className:T("chakra-alert__icon",e.className),__css:o,children:e.children||(0,gr.jsx)(n,{h:"100%",w:"100%"})}))}LW.displayName="Alert",MW.displayName="AlertIcon";var BW=g((function(e,t){var n=RW(),r=NW().status;return(0,gr.jsx)(vr.div,f(f({ref:t,"data-status":r},e),{},{className:T("chakra-alert__title",e.className),__css:n.title}))}));BW.displayName="AlertTitle";var zW=g((function(e,t){var n=RW(),r=NW().status,o=f({display:"inline"},n.description);return(0,gr.jsx)(vr.div,f(f({ref:t,"data-status":r},e),{},{className:T("chakra-alert__desc",e.className),__css:o}))}));zW.displayName="AlertDescription";var ZW=["children","isDisabled","__css"];function UW(e){return(0,gr.jsx)(Mx,f(f({focusable:"false","aria-hidden":!0},e),{},{children:(0,gr.jsx)("path",{fill:"currentColor",d:"M.439,21.44a1.5,1.5,0,0,0,2.122,2.121L11.823,14.3a.25.25,0,0,1,.354,0l9.262,9.263a1.5,1.5,0,1,0,2.122-2.121L14.3,12.177a.25.25,0,0,1,0-.354l9.263-9.262A1.5,1.5,0,0,0,21.439.44L12.177,9.7a.25.25,0,0,1-.354,0L2.561.44A1.5,1.5,0,0,0,.439,2.561L9.7,11.823a.25.25,0,0,1,0,.354Z"})}))}var VW=g((function(e,t){var n=jr("CloseButton",e),r=yt(e),o=r.children,a=r.isDisabled,i=r.__css,s=u(r,ZW);return(0,gr.jsx)(vr.button,f(f({type:"button","aria-label":"Close",ref:t,disabled:a,__css:f(f(f({},{outline:0,display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0}),n),i)},s),{},{children:o||(0,gr.jsx)(UW,{width:"1em",height:"1em"})}))}));VW.displayName="CloseButton";var qW=function(e){var t=e,n=new Set,r=function(e){t=e(t),n.forEach((function(e){return e()}))};return{getState:function(){return t},subscribe:function(t){return n.add(t),function(){r((function(){return e})),n.delete(t)}},removeToast:function(e,t){r((function(n){return f(f({},n),{},(0,l.Z)({},t,n[t].filter((function(t){return t.id!=e}))))}))},notify:function(e,t){var n=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};HW+=1;var o=null!=(t=r.id)?t:HW,a=null!=(n=r.position)?n:"bottom";return{id:o,message:e,position:a,duration:r.duration,onCloseComplete:r.onCloseComplete,onRequestRemove:function(){return qW.removeToast(String(o),a)},status:r.status,requestClose:!1,containerStyle:r.containerStyle}}(e,t),o=n.position,a=n.id;return r((function(e){var t,r,a=o.includes("top")?[n].concat((0,i.Z)(null!=(t=e[o])?t:[])):[].concat((0,i.Z)(null!=(r=e[o])?r:[]),[n]);return f(f({},e),{},(0,l.Z)({},o,a))})),a},update:function(e,t){e&&r((function(n){var r=f({},n),o=wW(r,e),a=o.position,i=o.index;return a&&-1!==i&&(r[a][i]=f(f(f({},r[a][i]),t),{},{message:JW(t)})),r}))},closeAll:function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).positions;r((function(t){return(null!=e?e:["bottom","bottom-right","bottom-left","top","top-left","top-right"]).reduce((function(e,n){return e[n]=t[n].map((function(e){return f(f({},e),{},{requestClose:!0})})),e}),f({},t))}))},close:function(e){r((function(t){var n=xW(t,e);return n?f(f({},t),{},(0,l.Z)({},n,t[n].map((function(t){return t.id==e?f(f({},t),{},{requestClose:!0}):t})))):t}))},isActive:function(e){return Boolean(wW(qW.getState(),e).position)}}}({top:[],"top-left":[],"top-right":[],"bottom-left":[],bottom:[],"bottom-right":[]});var HW=0;var WW=function(e){var t=e.status,n=e.variant,r=void 0===n?"solid":n,o=e.id,a=e.title,i=e.isClosable,s=e.onClose,u=e.description,l=e.colorScheme,c=e.icon,f=o?{root:"toast-".concat(o),title:"toast-".concat(o,"-title"),description:"toast-".concat(o,"-description")}:void 0;return(0,gr.jsxs)(LW,{addRole:!1,status:t,variant:r,id:null==f?void 0:f.root,alignItems:"start",borderRadius:"md",boxShadow:"lg",paddingEnd:8,textAlign:"start",width:"auto",colorScheme:l,children:[(0,gr.jsx)(MW,{children:c}),(0,gr.jsxs)(vr.div,{flex:"1",maxWidth:"100%",children:[a&&(0,gr.jsx)(BW,{id:null==f?void 0:f.title,children:a}),u&&(0,gr.jsx)(zW,{id:null==f?void 0:f.description,display:"block",children:u})]}),i&&(0,gr.jsx)(VW,{size:"sm",onClick:s,position:"absolute",insetEnd:1,top:1})]})};function JW(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.render,n=e.toastComponent,r=void 0===n?WW:n;return function(n){return"function"===typeof t?t(f(f({},n),e)):(0,gr.jsx)(r,f(f({},n),e))}}var GW=dc({name:"ToastOptionsContext",strict:!1}),YW=(0,v.Z)(GW,2),XW=YW[0],$W=(YW[1],function(e){var t=(0,r.useSyncExternalStore)(qW.subscribe,qW.getState,qW.getState),n=e.motionVariants,o=e.component,a=void 0===o?EW:o,i=e.portalProps,s=Object.keys(t).map((function(e){var r=t[e];return(0,gr.jsx)("div",{role:"region","aria-live":"polite","aria-label":"Notifications",id:"chakra-toast-manager-".concat(e),style:SW(e),children:(0,gr.jsx)(dy,{initial:!1,children:r.map((function(e){return(0,gr.jsx)(a,f({motionVariants:n},e),e.id)}))})},e)}));return(0,gr.jsx)(Ic,f(f({},i),{},{children:s}))}),KW=["children","theme","toastOptions"],QW=function(e){return function(t){var n=t.children,r=t.theme,o=void 0===r?e:r,a=t.toastOptions,i=u(t,KW);return(0,gr.jsxs)(wM,f(f({theme:o},i),{},{children:[(0,gr.jsx)(XW,{value:null==a?void 0:a.defaultOptions,children:n}),(0,gr.jsx)($W,f({},a))]}))}},eJ=QW(yW),tJ=(QW(bW),function(){return console.log("Enclave Manager version: 2023-10-12-01"),(0,gr.jsx)(eJ,{children:(0,gr.jsx)("div",{className:"h-screen w-screen bg-[#171923]",children:(0,gr.jsx)(XL,{})})})});a.createRoot(document.getElementById("root")).render((0,gr.jsx)(iu,{children:(0,gr.jsx)(tJ,{})}))}()}();
-//# sourceMappingURL=main.fd7e75a2.js.map
\ No newline at end of file
+/*! For license information please see main.3ba42e25.js.LICENSE.txt */
+!function(){var e={6782:function(e,t,n){"use strict";n.r(t),n.d(t,{Connect:function(){return a},ConnectServicesArgs:function(){return Y},ConnectServicesResponse:function(){return X},Container:function(){return c},Container_Status:function(){return f},DataChunkMetadata:function(){return L},DownloadFilesArtifactArgs:function(){return B},ExecCommandArgs:function(){return A},ExecCommandResponse:function(){return j},FileArtifactContentsFileDescription:function(){return G},FilesArtifactNameAndUuid:function(){return q},GetExistingAndHistoricalServiceIdentifiersResponse:function(){return P},GetServicesArgs:function(){return O},GetServicesResponse:function(){return I},GetStarlarkRunResponse:function(){return $},InspectFilesArtifactContentsRequest:function(){return W},InspectFilesArtifactContentsResponse:function(){return J},KurtosisFeatureFlag:function(){return i},ListFilesArtifactNamesAndUuidsResponse:function(){return H},Port:function(){return u},Port_TransportProtocol:function(){return l},RestartPolicy:function(){return s},RunStarlarkPackageArgs:function(){return h},RunStarlarkScriptArgs:function(){return p},ServiceIdentifiers:function(){return N},ServiceInfo:function(){return d},ServiceStatus:function(){return o},StarlarkError:function(){return w},StarlarkExecutionError:function(){return E},StarlarkInfo:function(){return v},StarlarkInstruction:function(){return y},StarlarkInstructionArg:function(){return k},StarlarkInstructionPosition:function(){return x},StarlarkInstructionResult:function(){return b},StarlarkInterpretationError:function(){return S},StarlarkRunFinishedEvent:function(){return _},StarlarkRunProgress:function(){return C},StarlarkRunResponseLine:function(){return m},StarlarkValidationError:function(){return T},StarlarkWarning:function(){return g},StoreFilesArtifactFromServiceArgs:function(){return U},StoreFilesArtifactFromServiceResponse:function(){return V},StoreWebFilesArtifactArgs:function(){return z},StoreWebFilesArtifactResponse:function(){return Z},StreamedDataChunk:function(){return F},UploadFilesArtifactResponse:function(){return M},WaitForHttpGetEndpointAvailabilityArgs:function(){return R},WaitForHttpPostEndpointAvailabilityArgs:function(){return D}});var r=n(6688),o=r.w.makeEnum("api_container_api.ServiceStatus",[{no:0,name:"STOPPED"},{no:1,name:"RUNNING"},{no:2,name:"UNKNOWN"}]),a=r.w.makeEnum("api_container_api.Connect",[{no:0,name:"CONNECT"},{no:1,name:"NO_CONNECT"}]),i=r.w.makeEnum("api_container_api.KurtosisFeatureFlag",[{no:0,name:"NO_INSTRUCTIONS_CACHING"}]),s=r.w.makeEnum("api_container_api.RestartPolicy",[{no:0,name:"NEVER"},{no:1,name:"ALWAYS"}]),u=r.w.makeMessageType("api_container_api.Port",(function(){return[{no:1,name:"number",kind:"scalar",T:13},{no:2,name:"transport_protocol",kind:"enum",T:r.w.getEnumType(l)},{no:3,name:"maybe_application_protocol",kind:"scalar",T:9},{no:4,name:"maybe_wait_timeout",kind:"scalar",T:9}]})),l=r.w.makeEnum("api_container_api.Port.TransportProtocol",[{no:0,name:"TCP"},{no:1,name:"SCTP"},{no:2,name:"UDP"}]),c=r.w.makeMessageType("api_container_api.Container",(function(){return[{no:1,name:"status",kind:"enum",T:r.w.getEnumType(f)},{no:2,name:"image_name",kind:"scalar",T:9},{no:3,name:"entrypoint_args",kind:"scalar",T:9,repeated:!0},{no:4,name:"cmd_args",kind:"scalar",T:9,repeated:!0},{no:5,name:"env_vars",kind:"map",K:9,V:{kind:"scalar",T:9}}]})),f=r.w.makeEnum("api_container_api.Container.Status",[{no:0,name:"STOPPED"},{no:1,name:"RUNNING"},{no:2,name:"UNKNOWN"}]),d=r.w.makeMessageType("api_container_api.ServiceInfo",(function(){return[{no:1,name:"service_uuid",kind:"scalar",T:9},{no:2,name:"private_ip_addr",kind:"scalar",T:9},{no:3,name:"private_ports",kind:"map",K:9,V:{kind:"message",T:u}},{no:4,name:"maybe_public_ip_addr",kind:"scalar",T:9},{no:5,name:"maybe_public_ports",kind:"map",K:9,V:{kind:"message",T:u}},{no:6,name:"name",kind:"scalar",T:9},{no:7,name:"shortened_uuid",kind:"scalar",T:9},{no:8,name:"service_status",kind:"enum",T:r.w.getEnumType(o)},{no:9,name:"container",kind:"message",T:c}]})),p=r.w.makeMessageType("api_container_api.RunStarlarkScriptArgs",(function(){return[{no:1,name:"serialized_script",kind:"scalar",T:9},{no:2,name:"serialized_params",kind:"scalar",T:9},{no:3,name:"dry_run",kind:"scalar",T:8,opt:!0},{no:4,name:"parallelism",kind:"scalar",T:5,opt:!0},{no:5,name:"main_function_name",kind:"scalar",T:9},{no:6,name:"experimental_features",kind:"enum",T:r.w.getEnumType(i),repeated:!0},{no:7,name:"cloud_instance_id",kind:"scalar",T:9,opt:!0},{no:8,name:"cloud_user_id",kind:"scalar",T:9,opt:!0}]})),h=r.w.makeMessageType("api_container_api.RunStarlarkPackageArgs",(function(){return[{no:1,name:"package_id",kind:"scalar",T:9},{no:3,name:"local",kind:"scalar",T:12,oneof:"starlark_package_content"},{no:4,name:"remote",kind:"scalar",T:8,oneof:"starlark_package_content"},{no:5,name:"serialized_params",kind:"scalar",T:9},{no:6,name:"dry_run",kind:"scalar",T:8,opt:!0},{no:7,name:"parallelism",kind:"scalar",T:5,opt:!0},{no:8,name:"clone_package",kind:"scalar",T:8,opt:!0},{no:9,name:"relative_path_to_main_file",kind:"scalar",T:9},{no:10,name:"main_function_name",kind:"scalar",T:9},{no:11,name:"experimental_features",kind:"enum",T:r.w.getEnumType(i),repeated:!0},{no:12,name:"cloud_instance_id",kind:"scalar",T:9,opt:!0},{no:13,name:"cloud_user_id",kind:"scalar",T:9,opt:!0}]})),m=r.w.makeMessageType("api_container_api.StarlarkRunResponseLine",(function(){return[{no:1,name:"instruction",kind:"message",T:y,oneof:"run_response_line"},{no:2,name:"error",kind:"message",T:w,oneof:"run_response_line"},{no:3,name:"progress_info",kind:"message",T:C,oneof:"run_response_line"},{no:4,name:"instruction_result",kind:"message",T:b,oneof:"run_response_line"},{no:5,name:"run_finished_event",kind:"message",T:_,oneof:"run_response_line"},{no:6,name:"warning",kind:"message",T:g,oneof:"run_response_line"},{no:7,name:"info",kind:"message",T:v,oneof:"run_response_line"}]})),v=r.w.makeMessageType("api_container_api.StarlarkInfo",(function(){return[{no:1,name:"info_message",kind:"scalar",T:9}]})),g=r.w.makeMessageType("api_container_api.StarlarkWarning",(function(){return[{no:1,name:"warning_message",kind:"scalar",T:9}]})),y=r.w.makeMessageType("api_container_api.StarlarkInstruction",(function(){return[{no:1,name:"position",kind:"message",T:x},{no:2,name:"instruction_name",kind:"scalar",T:9},{no:3,name:"arguments",kind:"message",T:k,repeated:!0},{no:4,name:"executable_instruction",kind:"scalar",T:9},{no:5,name:"is_skipped",kind:"scalar",T:8}]})),b=r.w.makeMessageType("api_container_api.StarlarkInstructionResult",(function(){return[{no:1,name:"serialized_instruction_result",kind:"scalar",T:9}]})),k=r.w.makeMessageType("api_container_api.StarlarkInstructionArg",(function(){return[{no:1,name:"serialized_arg_value",kind:"scalar",T:9},{no:2,name:"arg_name",kind:"scalar",T:9,opt:!0},{no:3,name:"is_representative",kind:"scalar",T:8}]})),x=r.w.makeMessageType("api_container_api.StarlarkInstructionPosition",(function(){return[{no:1,name:"filename",kind:"scalar",T:9},{no:2,name:"line",kind:"scalar",T:5},{no:3,name:"column",kind:"scalar",T:5}]})),w=r.w.makeMessageType("api_container_api.StarlarkError",(function(){return[{no:1,name:"interpretation_error",kind:"message",T:S,oneof:"error"},{no:2,name:"validation_error",kind:"message",T:T,oneof:"error"},{no:3,name:"execution_error",kind:"message",T:E,oneof:"error"}]})),S=r.w.makeMessageType("api_container_api.StarlarkInterpretationError",(function(){return[{no:1,name:"error_message",kind:"scalar",T:9}]})),T=r.w.makeMessageType("api_container_api.StarlarkValidationError",(function(){return[{no:1,name:"error_message",kind:"scalar",T:9}]})),E=r.w.makeMessageType("api_container_api.StarlarkExecutionError",(function(){return[{no:1,name:"error_message",kind:"scalar",T:9}]})),C=r.w.makeMessageType("api_container_api.StarlarkRunProgress",(function(){return[{no:1,name:"current_step_info",kind:"scalar",T:9,repeated:!0},{no:2,name:"total_steps",kind:"scalar",T:13},{no:3,name:"current_step_number",kind:"scalar",T:13}]})),_=r.w.makeMessageType("api_container_api.StarlarkRunFinishedEvent",(function(){return[{no:1,name:"is_run_successful",kind:"scalar",T:8},{no:2,name:"serialized_output",kind:"scalar",T:9,opt:!0}]})),O=r.w.makeMessageType("api_container_api.GetServicesArgs",(function(){return[{no:1,name:"service_identifiers",kind:"map",K:9,V:{kind:"scalar",T:8}}]})),I=r.w.makeMessageType("api_container_api.GetServicesResponse",(function(){return[{no:1,name:"service_info",kind:"map",K:9,V:{kind:"message",T:d}}]})),N=r.w.makeMessageType("api_container_api.ServiceIdentifiers",(function(){return[{no:1,name:"service_uuid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"shortened_uuid",kind:"scalar",T:9}]})),P=r.w.makeMessageType("api_container_api.GetExistingAndHistoricalServiceIdentifiersResponse",(function(){return[{no:1,name:"allIdentifiers",kind:"message",T:N,repeated:!0}]})),A=r.w.makeMessageType("api_container_api.ExecCommandArgs",(function(){return[{no:1,name:"service_identifier",kind:"scalar",T:9},{no:2,name:"command_args",kind:"scalar",T:9,repeated:!0}]})),j=r.w.makeMessageType("api_container_api.ExecCommandResponse",(function(){return[{no:1,name:"exit_code",kind:"scalar",T:5},{no:2,name:"log_output",kind:"scalar",T:9}]})),R=r.w.makeMessageType("api_container_api.WaitForHttpGetEndpointAvailabilityArgs",(function(){return[{no:1,name:"service_identifier",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:13},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"initial_delay_milliseconds",kind:"scalar",T:13},{no:5,name:"retries",kind:"scalar",T:13},{no:6,name:"retries_delay_milliseconds",kind:"scalar",T:13},{no:7,name:"body_text",kind:"scalar",T:9}]})),D=r.w.makeMessageType("api_container_api.WaitForHttpPostEndpointAvailabilityArgs",(function(){return[{no:1,name:"service_identifier",kind:"scalar",T:9},{no:2,name:"port",kind:"scalar",T:13},{no:3,name:"path",kind:"scalar",T:9},{no:4,name:"request_body",kind:"scalar",T:9},{no:5,name:"initial_delay_milliseconds",kind:"scalar",T:13},{no:6,name:"retries",kind:"scalar",T:13},{no:7,name:"retries_delay_milliseconds",kind:"scalar",T:13},{no:8,name:"body_text",kind:"scalar",T:9}]})),F=r.w.makeMessageType("api_container_api.StreamedDataChunk",(function(){return[{no:1,name:"data",kind:"scalar",T:12},{no:2,name:"previous_chunk_hash",kind:"scalar",T:9},{no:3,name:"metadata",kind:"message",T:L}]})),L=r.w.makeMessageType("api_container_api.DataChunkMetadata",(function(){return[{no:1,name:"name",kind:"scalar",T:9}]})),M=r.w.makeMessageType("api_container_api.UploadFilesArtifactResponse",(function(){return[{no:1,name:"uuid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]})),B=r.w.makeMessageType("api_container_api.DownloadFilesArtifactArgs",(function(){return[{no:1,name:"identifier",kind:"scalar",T:9}]})),z=r.w.makeMessageType("api_container_api.StoreWebFilesArtifactArgs",(function(){return[{no:1,name:"url",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9}]})),Z=r.w.makeMessageType("api_container_api.StoreWebFilesArtifactResponse",(function(){return[{no:1,name:"uuid",kind:"scalar",T:9}]})),U=r.w.makeMessageType("api_container_api.StoreFilesArtifactFromServiceArgs",(function(){return[{no:1,name:"service_identifier",kind:"scalar",T:9},{no:2,name:"source_path",kind:"scalar",T:9},{no:3,name:"name",kind:"scalar",T:9}]})),V=r.w.makeMessageType("api_container_api.StoreFilesArtifactFromServiceResponse",(function(){return[{no:1,name:"uuid",kind:"scalar",T:9}]})),q=r.w.makeMessageType("api_container_api.FilesArtifactNameAndUuid",(function(){return[{no:1,name:"fileName",kind:"scalar",T:9},{no:2,name:"fileUuid",kind:"scalar",T:9}]})),H=r.w.makeMessageType("api_container_api.ListFilesArtifactNamesAndUuidsResponse",(function(){return[{no:1,name:"file_names_and_uuids",kind:"message",T:q,repeated:!0}]})),W=r.w.makeMessageType("api_container_api.InspectFilesArtifactContentsRequest",(function(){return[{no:1,name:"file_names_and_uuid",kind:"message",T:q}]})),J=r.w.makeMessageType("api_container_api.InspectFilesArtifactContentsResponse",(function(){return[{no:1,name:"file_descriptions",kind:"message",T:G,repeated:!0}]})),G=r.w.makeMessageType("api_container_api.FileArtifactContentsFileDescription",(function(){return[{no:1,name:"path",kind:"scalar",T:9},{no:2,name:"size",kind:"scalar",T:4},{no:3,name:"text_preview",kind:"scalar",T:9,opt:!0}]})),Y=r.w.makeMessageType("api_container_api.ConnectServicesArgs",(function(){return[{no:1,name:"connect",kind:"enum",T:r.w.getEnumType(a)}]})),X=r.w.makeMessageType("api_container_api.ConnectServicesResponse",[]),$=r.w.makeMessageType("api_container_api.GetStarlarkRunResponse",(function(){return[{no:1,name:"package_id",kind:"scalar",T:9},{no:2,name:"serialized_script",kind:"scalar",T:9},{no:3,name:"serialized_params",kind:"scalar",T:9},{no:4,name:"parallelism",kind:"scalar",T:5},{no:5,name:"relative_path_to_main_file",kind:"scalar",T:9},{no:6,name:"main_function_name",kind:"scalar",T:9},{no:7,name:"experimental_features",kind:"enum",T:r.w.getEnumType(i),repeated:!0},{no:8,name:"restart_policy",kind:"enum",T:r.w.getEnumType(s)}]}))},4148:function(e,t,n){"use strict";n.r(t),n.d(t,{CleanArgs:function(){return _},CleanResponse:function(){return I},CreateEnclaveArgs:function(){return g},CreateEnclaveResponse:function(){return y},DestroyEnclaveArgs:function(){return C},EnclaveAPIContainerHostMachineInfo:function(){return k},EnclaveAPIContainerInfo:function(){return b},EnclaveAPIContainerStatus:function(){return h},EnclaveContainersStatus:function(){return p},EnclaveIdentifiers:function(){return S},EnclaveInfo:function(){return x},EnclaveMode:function(){return d},EnclaveNameAndUuid:function(){return O},GetEnclavesResponse:function(){return w},GetEngineInfoResponse:function(){return v},GetExistingAndHistoricalEnclaveIdentifiersResponse:function(){return T},GetServiceLogsArgs:function(){return N},GetServiceLogsResponse:function(){return P},LogLine:function(){return A},LogLineFilter:function(){return j},LogLineOperator:function(){return m},StopEnclaveArgs:function(){return E}});var r=n(6688),o=n(5671),a=n(3144),i=n(7326),s=n(136),u=n(7277),l=n(4971),c=n(2646),f=function(e){(0,s.Z)(n,e);var t=(0,u.Z)(n);function n(e){var a;return(0,o.Z)(this,n),(a=t.call(this)).seconds=c.q.zero,a.nanos=0,r.w.util.initPartial(e,(0,i.Z)(a)),a}return(0,a.Z)(n,[{key:"fromJson",value:function(e,t){if("string"!==typeof e)throw new Error("cannot decode google.protobuf.Timestamp from JSON: ".concat(r.w.json.debug(e)));var n=e.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!n)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");var o=Date.parse(n[1]+"-"+n[2]+"-"+n[3]+"T"+n[4]+":"+n[5]+":"+n[6]+(n[8]?n[8]:"Z"));if(Number.isNaN(o))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(oDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=c.q.parse(o/1e3),this.nanos=0,n[7]&&(this.nanos=parseInt("1"+n[7]+"0".repeat(9-n[7].length))-1e9),this}},{key:"toJson",value:function(e){var t=1e3*Number(this.seconds);if(tDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");var n="Z";if(this.nanos>0){var r=(this.nanos+1e9).toString().substring(1);n="000000"===r.substring(3)?"."+r.substring(0,3)+"Z":"000"===r.substring(6)?"."+r.substring(0,6)+"Z":"."+r+"Z"}return new Date(t).toISOString().replace(".000Z",n)}},{key:"toDate",value:function(){return new Date(1e3*Number(this.seconds)+Math.ceil(this.nanos/1e6))}}],[{key:"now",value:function(){return n.fromDate(new Date)}},{key:"fromDate",value:function(e){var t=e.getTime();return new n({seconds:c.q.parse(Math.floor(t/1e3)),nanos:t%1e3*1e6})}},{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return r.w.util.equals(n,e,t)}}]),n}(l.v);f.runtime=r.w,f.typeName="google.protobuf.Timestamp",f.fields=r.w.util.newFieldList((function(){return[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]}));var d=r.w.makeEnum("engine_api.EnclaveMode",[{no:0,name:"TEST"},{no:1,name:"PRODUCTION"}]),p=r.w.makeEnum("engine_api.EnclaveContainersStatus",[{no:0,name:"EnclaveContainersStatus_EMPTY"},{no:1,name:"EnclaveContainersStatus_RUNNING"},{no:2,name:"EnclaveContainersStatus_STOPPED"}]),h=r.w.makeEnum("engine_api.EnclaveAPIContainerStatus",[{no:0,name:"EnclaveAPIContainerStatus_NONEXISTENT"},{no:1,name:"EnclaveAPIContainerStatus_RUNNING"},{no:2,name:"EnclaveAPIContainerStatus_STOPPED"}]),m=r.w.makeEnum("engine_api.LogLineOperator",[{no:0,name:"LogLineOperator_DOES_CONTAIN_TEXT"},{no:1,name:"LogLineOperator_DOES_NOT_CONTAIN_TEXT"},{no:2,name:"LogLineOperator_DOES_CONTAIN_MATCH_REGEX"},{no:3,name:"LogLineOperator_DOES_NOT_CONTAIN_MATCH_REGEX"}]),v=r.w.makeMessageType("engine_api.GetEngineInfoResponse",(function(){return[{no:1,name:"engine_version",kind:"scalar",T:9}]})),g=r.w.makeMessageType("engine_api.CreateEnclaveArgs",(function(){return[{no:1,name:"enclave_name",kind:"scalar",T:9},{no:2,name:"api_container_version_tag",kind:"scalar",T:9},{no:3,name:"api_container_log_level",kind:"scalar",T:9},{no:4,name:"mode",kind:"enum",T:r.w.getEnumType(d)}]})),y=r.w.makeMessageType("engine_api.CreateEnclaveResponse",(function(){return[{no:1,name:"enclave_info",kind:"message",T:x}]})),b=r.w.makeMessageType("engine_api.EnclaveAPIContainerInfo",(function(){return[{no:1,name:"container_id",kind:"scalar",T:9},{no:2,name:"ip_inside_enclave",kind:"scalar",T:9},{no:3,name:"grpc_port_inside_enclave",kind:"scalar",T:13},{no:6,name:"bridge_ip_address",kind:"scalar",T:9}]})),k=r.w.makeMessageType("engine_api.EnclaveAPIContainerHostMachineInfo",(function(){return[{no:4,name:"ip_on_host_machine",kind:"scalar",T:9},{no:5,name:"grpc_port_on_host_machine",kind:"scalar",T:13}]})),x=r.w.makeMessageType("engine_api.EnclaveInfo",(function(){return[{no:1,name:"enclave_uuid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"shortened_uuid",kind:"scalar",T:9},{no:4,name:"containers_status",kind:"enum",T:r.w.getEnumType(p)},{no:5,name:"api_container_status",kind:"enum",T:r.w.getEnumType(h)},{no:6,name:"api_container_info",kind:"message",T:b},{no:7,name:"api_container_host_machine_info",kind:"message",T:k},{no:8,name:"creation_time",kind:"message",T:f},{no:9,name:"mode",kind:"enum",T:r.w.getEnumType(d)}]})),w=r.w.makeMessageType("engine_api.GetEnclavesResponse",(function(){return[{no:1,name:"enclave_info",kind:"map",K:9,V:{kind:"message",T:x}}]})),S=r.w.makeMessageType("engine_api.EnclaveIdentifiers",(function(){return[{no:1,name:"enclave_uuid",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"shortened_uuid",kind:"scalar",T:9}]})),T=r.w.makeMessageType("engine_api.GetExistingAndHistoricalEnclaveIdentifiersResponse",(function(){return[{no:1,name:"allIdentifiers",kind:"message",T:S,repeated:!0}]})),E=r.w.makeMessageType("engine_api.StopEnclaveArgs",(function(){return[{no:1,name:"enclave_identifier",kind:"scalar",T:9}]})),C=r.w.makeMessageType("engine_api.DestroyEnclaveArgs",(function(){return[{no:1,name:"enclave_identifier",kind:"scalar",T:9}]})),_=r.w.makeMessageType("engine_api.CleanArgs",(function(){return[{no:1,name:"should_clean_all",kind:"scalar",T:8}]})),O=r.w.makeMessageType("engine_api.EnclaveNameAndUuid",(function(){return[{no:1,name:"name",kind:"scalar",T:9},{no:2,name:"uuid",kind:"scalar",T:9}]})),I=r.w.makeMessageType("engine_api.CleanResponse",(function(){return[{no:1,name:"removed_enclave_name_and_uuids",kind:"message",T:O,repeated:!0}]})),N=r.w.makeMessageType("engine_api.GetServiceLogsArgs",(function(){return[{no:1,name:"enclave_identifier",kind:"scalar",T:9},{no:2,name:"service_uuid_set",kind:"map",K:9,V:{kind:"scalar",T:8}},{no:3,name:"follow_logs",kind:"scalar",T:8},{no:4,name:"conjunctive_filters",kind:"message",T:j,repeated:!0},{no:5,name:"return_all_logs",kind:"scalar",T:8},{no:6,name:"num_log_lines",kind:"scalar",T:13}]})),P=r.w.makeMessageType("engine_api.GetServiceLogsResponse",(function(){return[{no:1,name:"service_logs_by_service_uuid",kind:"map",K:9,V:{kind:"message",T:A}},{no:2,name:"not_found_service_uuid_set",kind:"map",K:9,V:{kind:"scalar",T:8}}]})),A=r.w.makeMessageType("engine_api.LogLine",(function(){return[{no:1,name:"line",kind:"scalar",T:9,repeated:!0}]})),j=r.w.makeMessageType("engine_api.LogLineFilter",(function(){return[{no:1,name:"operator",kind:"enum",T:r.w.getEnumType(m)},{no:2,name:"text_pattern",kind:"scalar",T:9}]}))},7885:function(e,t,n){"use strict";t.q=void 0;var r=n(3773),o=n(1633),a=n(4148),i=n(6782);t.q={typeName:"kurtosis_enclave_manager.KurtosisEnclaveManagerServer",methods:{check:{name:"Check",I:r.HealthCheckRequest,O:r.HealthCheckResponse,kind:o.MethodKind.Unary},getEnclaves:{name:"GetEnclaves",I:o.Empty,O:a.GetEnclavesResponse,kind:o.MethodKind.Unary},getServices:{name:"GetServices",I:r.GetServicesRequest,O:i.GetServicesResponse,kind:o.MethodKind.Unary},getServiceLogs:{name:"GetServiceLogs",I:a.GetServiceLogsArgs,O:a.GetServiceLogsResponse,kind:o.MethodKind.ServerStreaming},listFilesArtifactNamesAndUuids:{name:"ListFilesArtifactNamesAndUuids",I:r.GetListFilesArtifactNamesAndUuidsRequest,O:i.ListFilesArtifactNamesAndUuidsResponse,kind:o.MethodKind.Unary},runStarlarkPackage:{name:"RunStarlarkPackage",I:r.RunStarlarkPackageRequest,O:i.StarlarkRunResponseLine,kind:o.MethodKind.ServerStreaming},createEnclave:{name:"CreateEnclave",I:a.CreateEnclaveArgs,O:a.CreateEnclaveResponse,kind:o.MethodKind.Unary},inspectFilesArtifactContents:{name:"InspectFilesArtifactContents",I:r.InspectFilesArtifactContentsRequest,O:i.InspectFilesArtifactContentsResponse,kind:o.MethodKind.Unary},destroyEnclave:{name:"DestroyEnclave",I:a.DestroyEnclaveArgs,O:o.Empty,kind:o.MethodKind.Unary},getStarlarkRun:{name:"GetStarlarkRun",I:r.GetStarlarkRunRequest,O:i.GetStarlarkRunResponse,kind:o.MethodKind.Unary}}}},3773:function(e,t,n){"use strict";var r=n(6690).default,o=n(9728).default,a=n(6115).default,i=n(1655).default,s=n(6389).default;Object.defineProperty(t,"__esModule",{value:!0}),t.GetStarlarkRunRequest=t.InspectFilesArtifactContentsRequest=t.RunStarlarkPackageRequest=t.GetListFilesArtifactNamesAndUuidsRequest=t.GetServicesRequest=t.HealthCheckResponse_ServingStatus=t.HealthCheckResponse=t.HealthCheckRequest=void 0;var u=n(1633),l=n(6782),c=function(e){i(n,e);var t=s(n);function n(e){var o;return r(this,n),(o=t.call(this)).service="",u.proto3.util.initPartial(e,a(o)),o}return o(n,null,[{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return u.proto3.util.equals(n,e,t)}}]),n}(u.Message);t.HealthCheckRequest=c,c.runtime=u.proto3,c.typeName="kurtosis_enclave_manager.HealthCheckRequest",c.fields=u.proto3.util.newFieldList((function(){return[{no:1,name:"service",kind:"scalar",T:9}]}));var f,d=function(e){i(n,e);var t=s(n);function n(e){var o;return r(this,n),(o=t.call(this)).status=f.UNKNOWN,u.proto3.util.initPartial(e,a(o)),o}return o(n,null,[{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return u.proto3.util.equals(n,e,t)}}]),n}(u.Message);t.HealthCheckResponse=d,d.runtime=u.proto3,d.typeName="kurtosis_enclave_manager.HealthCheckResponse",d.fields=u.proto3.util.newFieldList((function(){return[{no:1,name:"status",kind:"enum",T:u.proto3.getEnumType(f)}]})),function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.SERVING=1]="SERVING",e[e.NOT_SERVING=2]="NOT_SERVING",e[e.SERVICE_UNKNOWN=3]="SERVICE_UNKNOWN"}(f=t.HealthCheckResponse_ServingStatus||(t.HealthCheckResponse_ServingStatus={})),u.proto3.util.setEnumType(f,"kurtosis_enclave_manager.HealthCheckResponse.ServingStatus",[{no:0,name:"UNKNOWN"},{no:1,name:"SERVING"},{no:2,name:"NOT_SERVING"},{no:3,name:"SERVICE_UNKNOWN"}]);var p=function(e){i(n,e);var t=s(n);function n(e){var o;return r(this,n),(o=t.call(this)).apicIpAddress="",o.apicPort=0,u.proto3.util.initPartial(e,a(o)),o}return o(n,null,[{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return u.proto3.util.equals(n,e,t)}}]),n}(u.Message);t.GetServicesRequest=p,p.runtime=u.proto3,p.typeName="kurtosis_enclave_manager.GetServicesRequest",p.fields=u.proto3.util.newFieldList((function(){return[{no:1,name:"apic_ip_address",kind:"scalar",T:9},{no:2,name:"apic_port",kind:"scalar",T:5}]}));var h=function(e){i(n,e);var t=s(n);function n(e){var o;return r(this,n),(o=t.call(this)).apicIpAddress="",o.apicPort=0,u.proto3.util.initPartial(e,a(o)),o}return o(n,null,[{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return u.proto3.util.equals(n,e,t)}}]),n}(u.Message);t.GetListFilesArtifactNamesAndUuidsRequest=h,h.runtime=u.proto3,h.typeName="kurtosis_enclave_manager.GetListFilesArtifactNamesAndUuidsRequest",h.fields=u.proto3.util.newFieldList((function(){return[{no:1,name:"apic_ip_address",kind:"scalar",T:9},{no:2,name:"apic_port",kind:"scalar",T:5}]}));var m=function(e){i(n,e);var t=s(n);function n(e){var o;return r(this,n),(o=t.call(this)).apicIpAddress="",o.apicPort=0,u.proto3.util.initPartial(e,a(o)),o}return o(n,null,[{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return u.proto3.util.equals(n,e,t)}}]),n}(u.Message);t.RunStarlarkPackageRequest=m,m.runtime=u.proto3,m.typeName="kurtosis_enclave_manager.RunStarlarkPackageRequest",m.fields=u.proto3.util.newFieldList((function(){return[{no:1,name:"apic_ip_address",kind:"scalar",T:9},{no:2,name:"apic_port",kind:"scalar",T:5},{no:3,name:"RunStarlarkPackageArgs",kind:"message",T:l.RunStarlarkPackageArgs}]}));var v=function(e){i(n,e);var t=s(n);function n(e){var o;return r(this,n),(o=t.call(this)).apicIpAddress="",o.apicPort=0,u.proto3.util.initPartial(e,a(o)),o}return o(n,null,[{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return u.proto3.util.equals(n,e,t)}}]),n}(u.Message);t.InspectFilesArtifactContentsRequest=v,v.runtime=u.proto3,v.typeName="kurtosis_enclave_manager.InspectFilesArtifactContentsRequest",v.fields=u.proto3.util.newFieldList((function(){return[{no:1,name:"apic_ip_address",kind:"scalar",T:9},{no:2,name:"apic_port",kind:"scalar",T:5},{no:3,name:"file_names_and_uuid",kind:"message",T:l.FilesArtifactNameAndUuid}]}));var g=function(e){i(n,e);var t=s(n);function n(e){var o;return r(this,n),(o=t.call(this)).apicIpAddress="",o.apicPort=0,u.proto3.util.initPartial(e,a(o)),o}return o(n,null,[{key:"fromBinary",value:function(e,t){return(new n).fromBinary(e,t)}},{key:"fromJson",value:function(e,t){return(new n).fromJson(e,t)}},{key:"fromJsonString",value:function(e,t){return(new n).fromJsonString(e,t)}},{key:"equals",value:function(e,t){return u.proto3.util.equals(n,e,t)}}]),n}(u.Message);t.GetStarlarkRunRequest=g,g.runtime=u.proto3,g.typeName="kurtosis_enclave_manager.GetStarlarkRunRequest",g.fields=u.proto3.util.newFieldList((function(){return[{no:1,name:"apic_ip_address",kind:"scalar",T:9},{no:2,name:"apic_port",kind:"scalar",T:5}]}))},5304:function(e,t,n){"use strict";function r(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,s=!0,u=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){u=!0,i=e},f:function(){try{s||null==n.return||n.return()}finally{if(u)throw i}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0?40*e+55:0,s=t>0?40*t+55:0,l=n>0?40*n+55:0;r[a]=function(e){var t,n=[],r=o(e);try{for(r.s();!(t=r.n()).done;){var a=t.value;n.push(u(a))}}catch(i){r.e(i)}finally{r.f()}return"#"+n.join("")}([i,s,l])}(t,n,r,e)}))}))})),f(0,23).forEach((function(t){var n=t+232,r=u(10*t+8);e[n]="#"+r+r+r})),e}()};function u(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t}function l(e,t,n,r){var o;return"text"===t?o=function(e,t){if(t.escapeXML)return i.encodeXML(e);return e}(n,r):"display"===t?o=function(e,t,n){t=parseInt(t,10);var r,o={"-1":function(){return"