@ws-ui/shared 1.13.0-rc1 → 1.13.0-rc2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,40 +1,40 @@
1
- "use strict";var bC=Object.defineProperty;var Yv=e=>{throw TypeError(e)};var yC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>yC(e,typeof t!="symbol"?t+"":t,r),Od=(e,t,r)=>t.has(e)||Yv("Cannot "+r);var le=(e,t,r)=>(Od(e,t,"read from private field"),r?r.call(e):t.get(e)),Ft=(e,t,r)=>t.has(e)?Yv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Qe=(e,t,r,n)=>(Od(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ee=(e,t,r)=>(Od(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),N=require("react"),En=require("react-dom"),Cf=require("@emotion/react");function My(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const V=My(N),wC=My(En),Dy=({children:e,container:t=document.body})=>En.createPortal(e,t);var Xv=function(t){return t.reduce(function(r,n){var i=n[0],s=n[1];return r[i]=s,r},{})},Jv=typeof window<"u"&&window.document&&window.document.createElement?V.useLayoutEffect:V.useEffect,cr="top",$r="bottom",jr="right",ur="left",pp="auto",Sa=[cr,$r,jr,ur],Mo="start",la="end",xC="clippingParents",Ly="viewport",bs="popper",SC="reference",Qv=Sa.reduce(function(e,t){return e.concat([t+"-"+Mo,t+"-"+la])},[]),zy=[].concat(Sa,[pp]).reduce(function(e,t){return e.concat([t,t+"-"+Mo,t+"-"+la])},[]),EC="beforeRead",_C="read",OC="afterRead",kC="beforeMain",AC="main",TC="afterMain",RC="beforeWrite",CC="write",IC="afterWrite",PC=[EC,_C,OC,kC,AC,TC,RC,CC,IC];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Er(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){var t=Er(e).Element;return e instanceof t||e instanceof Element}function zr(e){var t=Er(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function hp(e){if(typeof ShadowRoot>"u")return!1;var t=Er(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},s=t.elements[r];!zr(s)||!Sn(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(l){var c=i[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function MC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],s=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(u,f){return u[f]="",u},{});!zr(i)||!Sn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}const DC={name:"applyStyles",enabled:!0,phase:"write",fn:NC,effect:MC,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var Fi=Math.max,Oc=Math.min,Do=Math.round;function If(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function $y(){return!/^((?!chrome|android).)*safari/i.test(If())}function Lo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,s=1;t&&zr(e)&&(i=e.offsetWidth>0&&Do(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Do(n.height)/e.offsetHeight||1);var l=Wi(e)?Er(e):window,c=l.visualViewport,u=!$y()&&r,f=(n.left+(u&&c?c.offsetLeft:0))/i,g=(n.top+(u&&c?c.offsetTop:0))/s,p=n.width/i,h=n.height/s;return{width:p,height:h,top:g,right:f+p,bottom:g+h,left:f,x:f,y:g}}function gp(e){var t=Lo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function jy(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&hp(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Bn(e){return Er(e).getComputedStyle(e)}function LC(e){return["table","td","th"].indexOf(Sn(e))>=0}function vi(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function qc(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(hp(e)?e.host:null)||vi(e)}function em(e){return!zr(e)||Bn(e).position==="fixed"?null:e.offsetParent}function zC(e){var t=/firefox/i.test(If()),r=/Trident/i.test(If());if(r&&zr(e)){var n=Bn(e);if(n.position==="fixed")return null}var i=qc(e);for(hp(i)&&(i=i.host);zr(i)&&["html","body"].indexOf(Sn(i))<0;){var s=Bn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ea(e){for(var t=Er(e),r=em(e);r&&LC(r)&&Bn(r).position==="static";)r=em(r);return r&&(Sn(r)==="html"||Sn(r)==="body"&&Bn(r).position==="static")?t:r||zC(e)||t}function vp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ra(e,t,r){return Fi(e,Oc(t,r))}function $C(e,t,r){var n=ra(e,t,r);return n>r?r:n}function Fy(){return{top:0,right:0,bottom:0,left:0}}function Hy(e){return Object.assign({},Fy(),e)}function By(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var jC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Hy(typeof t!="number"?t:By(t,Sa))};function FC(e){var t,r=e.state,n=e.name,i=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=wn(r.placement),u=vp(c),f=[ur,jr].indexOf(c)>=0,g=f?"height":"width";if(!(!s||!l)){var p=jC(i.padding,r),h=gp(s),b=u==="y"?cr:ur,S=u==="y"?$r:jr,v=r.rects.reference[g]+r.rects.reference[u]-l[u]-r.rects.popper[g],y=l[u]-r.rects.reference[u],m=Ea(s),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-y/2,O=p[b],_=w-h[g]-p[S],R=w/2-h[g]/2+x,H=ra(O,R,_),I=u;r.modifiersData[n]=(t={},t[I]=H,t.centerOffset=H-R,t)}}function HC(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||jy(t.elements.popper,i)&&(t.elements.arrow=i))}const BC={name:"arrow",enabled:!0,phase:"main",fn:FC,effect:HC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zo(e){return e.split("-")[1]}var WC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VC(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Do(r*i)/i||0,y:Do(n*i)/i||0}}function tm(e){var t,r=e.popper,n=e.popperRect,i=e.placement,s=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,g=e.roundOffsets,p=e.isFixed,h=l.x,b=h===void 0?0:h,S=l.y,v=S===void 0?0:S,y=typeof g=="function"?g({x:b,y:v}):{x:b,y:v};b=y.x,v=y.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=ur,O=cr,_=window;if(f){var R=Ea(r),H="clientHeight",I="clientWidth";if(R===Er(r)&&(R=vi(r),Bn(R).position!=="static"&&c==="absolute"&&(H="scrollHeight",I="scrollWidth")),R=R,i===cr||(i===ur||i===jr)&&s===la){O=$r;var $=p&&R===_&&_.visualViewport?_.visualViewport.height:R[H];v-=$-n.height,v*=u?1:-1}if(i===ur||(i===cr||i===$r)&&s===la){x=jr;var U=p&&R===_&&_.visualViewport?_.visualViewport.width:R[I];b-=U-n.width,b*=u?1:-1}}var j=Object.assign({position:c},f&&WC),M=g===!0?VC({x:b,y:v},Er(r)):{x:b,y:v};if(b=M.x,v=M.y,u){var D;return Object.assign({},j,(D={},D[O]=w?"0":"",D[x]=m?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",D))}return Object.assign({},j,(t={},t[O]=w?v+"px":"",t[x]=m?b+"px":"",t.transform="",t))}function UC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,u=c===void 0?!0:c,f={placement:wn(t.placement),variation:zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,tm(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,tm(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UC,data:{}};var _l={passive:!0};function GC(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,s=i===void 0?!0:i,l=n.resize,c=l===void 0?!0:l,u=Er(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(g){g.addEventListener("scroll",r.update,_l)}),c&&u.addEventListener("resize",r.update,_l),function(){s&&f.forEach(function(g){g.removeEventListener("scroll",r.update,_l)}),c&&u.removeEventListener("resize",r.update,_l)}}const ZC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GC,data:{}};var KC={left:"right",right:"left",bottom:"top",top:"bottom"};function oc(e){return e.replace(/left|right|bottom|top/g,function(t){return KC[t]})}var YC={start:"end",end:"start"};function rm(e){return e.replace(/start|end/g,function(t){return YC[t]})}function mp(e){var t=Er(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function bp(e){return Lo(vi(e)).left+mp(e).scrollLeft}function XC(e,t){var r=Er(e),n=vi(e),i=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,u=0;if(i){s=i.width,l=i.height;var f=$y();(f||!f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:s,height:l,x:c+bp(e),y:u}}function JC(e){var t,r=vi(e),n=mp(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=Fi(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=Fi(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+bp(e),u=-n.scrollTop;return Bn(i||r).direction==="rtl"&&(c+=Fi(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:c,y:u}}function yp(e){var t=Bn(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Wy(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:zr(e)&&yp(e)?e:Wy(qc(e))}function na(e,t){var r;t===void 0&&(t=[]);var n=Wy(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=Er(n),l=i?[s].concat(s.visualViewport||[],yp(n)?n:[]):n,c=t.concat(l);return i?c:c.concat(na(qc(l)))}function Pf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function QC(e,t){var r=Lo(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function nm(e,t,r){return t===Ly?Pf(XC(e,r)):Wi(t)?QC(t,r):Pf(JC(vi(e)))}function e2(e){var t=na(qc(e)),r=["absolute","fixed"].indexOf(Bn(e).position)>=0,n=r&&zr(e)?Ea(e):e;return Wi(n)?t.filter(function(i){return Wi(i)&&jy(i,n)&&Sn(i)!=="body"}):[]}function t2(e,t,r,n){var i=t==="clippingParents"?e2(e):[].concat(t),s=[].concat(i,[r]),l=s[0],c=s.reduce(function(u,f){var g=nm(e,f,n);return u.top=Fi(g.top,u.top),u.right=Oc(g.right,u.right),u.bottom=Oc(g.bottom,u.bottom),u.left=Fi(g.left,u.left),u},nm(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Vy(e){var t=e.reference,r=e.element,n=e.placement,i=n?wn(n):null,s=n?zo(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(i){case cr:u={x:l,y:t.y-r.height};break;case $r:u={x:l,y:t.y+t.height};break;case jr:u={x:t.x+t.width,y:c};break;case ur:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var f=i?vp(i):null;if(f!=null){var g=f==="y"?"height":"width";switch(s){case Mo:u[f]=u[f]-(t[g]/2-r[g]/2);break;case la:u[f]=u[f]+(t[g]/2-r[g]/2);break}}return u}function ca(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,u=c===void 0?xC:c,f=r.rootBoundary,g=f===void 0?Ly:f,p=r.elementContext,h=p===void 0?bs:p,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=Hy(typeof y!="number"?y:By(y,Sa)),w=h===bs?SC:bs,x=e.rects.popper,O=e.elements[S?w:h],_=t2(Wi(O)?O:O.contextElement||vi(e.elements.popper),u,g,l),R=Lo(e.elements.reference),H=Vy({reference:R,element:x,placement:i}),I=Pf(Object.assign({},x,H)),$=h===bs?I:R,U={top:_.top-$.top+m.top,bottom:$.bottom-_.bottom+m.bottom,left:_.left-$.left+m.left,right:$.right-_.right+m.right},j=e.modifiersData.offset;if(h===bs&&j){var M=j[i];Object.keys(U).forEach(function(D){var F=[jr,$r].indexOf(D)>=0?1:-1,P=[cr,$r].indexOf(D)>=0?"y":"x";U[D]+=M[P]*F})}return U}function r2(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?zy:u,g=zo(n),p=g?c?Qv:Qv.filter(function(S){return zo(S)===g}):Sa,h=p.filter(function(S){return f.indexOf(S)>=0});h.length===0&&(h=p);var b=h.reduce(function(S,v){return S[v]=ca(e,{placement:v,boundary:i,rootBoundary:s,padding:l})[wn(v)],S},{});return Object.keys(b).sort(function(S,v){return b[S]-b[v]})}function n2(e){if(wn(e)===pp)return[];var t=oc(e);return[rm(e),t,rm(t)]}function i2(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,f=r.padding,g=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,S=b===void 0?!0:b,v=r.allowedAutoPlacements,y=t.options.placement,m=wn(y),w=m===y,x=u||(w||!S?[oc(y)]:n2(y)),O=[y].concat(x).reduce(function(J,oe){return J.concat(wn(oe)===pp?r2(t,{placement:oe,boundary:g,rootBoundary:p,padding:f,flipVariations:S,allowedAutoPlacements:v}):oe)},[]),_=t.rects.reference,R=t.rects.popper,H=new Map,I=!0,$=O[0],U=0;U<O.length;U++){var j=O[U],M=wn(j),D=zo(j)===Mo,F=[cr,$r].indexOf(M)>=0,P=F?"width":"height",K=ca(t,{placement:j,boundary:g,rootBoundary:p,altBoundary:h,padding:f}),ee=F?D?jr:ur:D?$r:cr;_[P]>R[P]&&(ee=oc(ee));var Y=oc(ee),ve=[];if(s&&ve.push(K[M]<=0),c&&ve.push(K[ee]<=0,K[Y]<=0),ve.every(function(J){return J})){$=j,I=!1;break}H.set(j,ve)}if(I)for(var z=S?3:1,W=function(oe){var ae=O.find(function(ne){var de=H.get(ne);if(de)return de.slice(0,oe).every(function(he){return he})});if(ae)return $=ae,"break"},X=z;X>0;X--){var te=W(X);if(te==="break")break}t.placement!==$&&(t.modifiersData[n]._skip=!0,t.placement=$,t.reset=!0)}}const o2={name:"flip",enabled:!0,phase:"main",fn:i2,requiresIfExists:["offset"],data:{_skip:!1}};function im(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function om(e){return[cr,jr,$r,ur].some(function(t){return e[t]>=0})}function s2(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=ca(t,{elementContext:"reference"}),c=ca(t,{altBoundary:!0}),u=im(l,n),f=im(c,i,s),g=om(u),p=om(f);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:g,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":p})}const a2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s2};function l2(e,t,r){var n=wn(e),i=[ur,cr].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*i,[ur,jr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function c2(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=i===void 0?[0,0]:i,l=zy.reduce(function(g,p){return g[p]=l2(p,t.rects,s),g},{}),c=l[t.placement],u=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=l}const u2={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:c2};function d2(e){var t=e.state,r=e.name;t.modifiersData[r]=Vy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const f2={name:"popperOffsets",enabled:!0,phase:"read",fn:d2,data:{}};function p2(e){return e==="x"?"y":"x"}function h2(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,f=r.rootBoundary,g=r.altBoundary,p=r.padding,h=r.tether,b=h===void 0?!0:h,S=r.tetherOffset,v=S===void 0?0:S,y=ca(t,{boundary:u,rootBoundary:f,padding:p,altBoundary:g}),m=wn(t.placement),w=zo(t.placement),x=!w,O=vp(m),_=p2(O),R=t.modifiersData.popperOffsets,H=t.rects.reference,I=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,U=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(s){var D,F=O==="y"?cr:ur,P=O==="y"?$r:jr,K=O==="y"?"height":"width",ee=R[O],Y=ee+y[F],ve=ee-y[P],z=b?-I[K]/2:0,W=w===Mo?H[K]:I[K],X=w===Mo?-I[K]:-H[K],te=t.elements.arrow,J=b&&te?gp(te):{width:0,height:0},oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Fy(),ae=oe[F],ne=oe[P],de=ra(0,H[K],J[K]),he=x?H[K]/2-z-de-ae-U.mainAxis:W-de-ae-U.mainAxis,fe=x?-H[K]/2+z+de+ne+U.mainAxis:X+de+ne+U.mainAxis,ye=t.elements.arrow&&Ea(t.elements.arrow),Z=ye?O==="y"?ye.clientTop||0:ye.clientLeft||0:0,Te=(D=j==null?void 0:j[O])!=null?D:0,ge=ee+he-Te-Z,at=ee+fe-Te,qt=ra(b?Oc(Y,ge):Y,ee,b?Fi(ve,at):ve);R[O]=qt,M[O]=qt-ee}if(c){var Dt,dr=O==="x"?cr:ur,bi=O==="x"?$r:jr,Lt=R[_],Rt=_==="y"?"height":"width",zt=Lt+y[dr],Qr=Lt-y[bi],Hr=[cr,ur].indexOf(m)!==-1,Vn=(Dt=j==null?void 0:j[_])!=null?Dt:0,fr=Hr?zt:Lt-H[Rt]-I[Rt]-Vn+U.altAxis,er=Hr?Lt+H[Rt]+I[Rt]-Vn-U.altAxis:Qr,en=b&&Hr?$C(fr,Lt,er):ra(b?fr:zt,Lt,b?er:Qr);R[_]=en,M[_]=en-Lt}t.modifiersData[n]=M}}const g2={name:"preventOverflow",enabled:!0,phase:"main",fn:h2,requiresIfExists:["offset"]};function v2(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m2(e){return e===Er(e)||!zr(e)?mp(e):v2(e)}function b2(e){var t=e.getBoundingClientRect(),r=Do(t.width)/e.offsetWidth||1,n=Do(t.height)/e.offsetHeight||1;return r!==1||n!==1}function y2(e,t,r){r===void 0&&(r=!1);var n=zr(t),i=zr(t)&&b2(t),s=vi(t),l=Lo(e,i,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Sn(t)!=="body"||yp(s))&&(c=m2(t)),zr(t)?(u=Lo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=bp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function w2(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function i(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&i(u)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||i(s)}),n}function x2(e){var t=w2(e);return PC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function S2(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function E2(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var sm={placement:"bottom",modifiers:[],strategy:"absolute"};function am(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function _2(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,s=i===void 0?sm:i;return function(c,u,f){f===void 0&&(f=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},sm,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},p=[],h=!1,b={state:g,setOptions:function(m){var w=typeof m=="function"?m(g.options):m;v(),g.options=Object.assign({},s,g.options,w),g.scrollParents={reference:Wi(c)?na(c):c.contextElement?na(c.contextElement):[],popper:na(u)};var x=x2(E2([].concat(n,g.options.modifiers)));return g.orderedModifiers=x.filter(function(O){return O.enabled}),S(),b.update()},forceUpdate:function(){if(!h){var m=g.elements,w=m.reference,x=m.popper;if(am(w,x)){g.rects={reference:y2(w,Ea(x),g.options.strategy==="fixed"),popper:gp(x)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(U){return g.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<g.orderedModifiers.length;O++){if(g.reset===!0){g.reset=!1,O=-1;continue}var _=g.orderedModifiers[O],R=_.fn,H=_.options,I=H===void 0?{}:H,$=_.name;typeof R=="function"&&(g=R({state:g,options:I,name:$,instance:b})||g)}}}},update:S2(function(){return new Promise(function(y){b.forceUpdate(),y(g)})}),destroy:function(){v(),h=!0}};if(!am(c,u))return b;b.setOptions(f).then(function(y){!h&&f.onFirstUpdate&&f.onFirstUpdate(y)});function S(){g.orderedModifiers.forEach(function(y){var m=y.name,w=y.options,x=w===void 0?{}:w,O=y.effect;if(typeof O=="function"){var _=O({state:g,name:m,instance:b,options:x}),R=function(){};p.push(_||R)}})}function v(){p.forEach(function(y){return y()}),p=[]}return b}}var O2=[ZC,f2,qC,DC,u2,o2,g2,BC,a2],k2=_2({defaultModifiers:O2}),Ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Uy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var kd,lm;function A2(){if(lm)return kd;lm=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,u,f;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!i(s[u],l[u]))return!1;return!0}var g;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;for(g=s.entries();!(u=g.next()).done;)if(!i(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(s[u]!==l[u])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(f=Object.keys(s),c=f.length,c!==Object.keys(l).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(l,f[u]))return!1;if(e&&s instanceof Element)return!1;for(u=c;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&s.$$typeof)&&!i(s[f[u]],l[f[u]]))return!1;return!0}return s!==s&&l!==l}return kd=function(l,c){try{return i(l,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},kd}var T2=A2();const R2=Uy(T2);var C2=[],wp=function(t,r,n){n===void 0&&(n={});var i=V.useRef(null),s={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||C2},l=V.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],f=V.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var S=b.state,v=Object.keys(S.elements);wC.flushSync(function(){u({styles:Xv(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:Xv(v.map(function(y){return[y,S.attributes[y]]}))})})},requires:["computeStyles"]}},[]),g=V.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[f,{name:"applyStyles",enabled:!1}])};return R2(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),p=V.useRef();return Jv(function(){p.current&&p.current.setOptions(g)},[g]),Jv(function(){if(!(t==null||r==null)){var h=n.createPopper||k2,b=h(t,r,g);return p.current=b,function(){b.destroy(),p.current=null}}},[t,r,n.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const qy=e=>A.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Gy=N.forwardRef(({children:e,style:t,attributes:r},n)=>A.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),I2=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:i})=>{const[s,l]=N.useState(null),{styles:c,attributes:u}=wp(e,s,{placement:t||"bottom-start"}),f=N.useCallback(()=>{i&&i()},[i]);return r?A.jsxs(Dy,{children:[A.jsx(qy,{onClick:()=>f()}),A.jsx(Gy,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.-left-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-\\[120px\\]:not(#\\#){height:120px}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
2
- `,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const P2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),N2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),M2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Bo=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),D2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M7.105 12.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.024l3.682-3.529a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206-3.377-3.174a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"}),A.jsx("path",{d:"M7.105 6.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.025l3.682-3.528a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206L8.59 6.138a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"})]}),L2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M16.811 11.031a.47.47 0 0 0-.003-.688l-3.714-3.491a.485.485 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.14.524.524 0 0 0-.32.143l-.76.73a.518.518 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"}),A.jsx("path",{d:"M16.811 17.032a.47.47 0 0 0-.003-.689l-3.714-3.491a.514.514 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.139.523.523 0 0 0-.32.142l-.76.73a.563.563 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"})]}),sc=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),Nf=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),z2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),$2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.5 10.889a.5.5 0 0 1 .5.5v1.222a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5V11.39a.5.5 0 0 1 .5-.5h19Z",fill:"currentColor"})}),Zy=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),A.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),j2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.389 2a.5.5 0 0 0-.5.5v8.389H2.5a.5.5 0 0 0-.5.5v1.222a.5.5 0 0 0 .5.5h8.389V21.5a.5.5 0 0 0 .5.5h1.222a.5.5 0 0 0 .5-.5v-8.389H21.5a.5.5 0 0 0 .5-.5V11.39a.5.5 0 0 0-.5-.5h-8.389V2.5a.5.5 0 0 0-.5-.5H11.39Z",fill:"currentColor"})}),F2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),H2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),B2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm1 15.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7ZM11 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",fill:"currentColor"})}),W2=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),V2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),U2=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.774 15.7A7.513 7.513 0 0 1 4.2 4.2a7.511 7.511 0 0 1 10.623 0 7.515 7.515 0 0 1 .876 9.573l6.01 6.01a.995.995 0 0 1 0 1.407l-.52.519a.995.995 0 0 1-1.406 0l-6.009-6.01Zm-1.076-3a4.507 4.507 0 1 1-6.373-6.374 4.507 4.507 0 0 1 6.373 6.373Z",fill:"currentColor"})}),xp=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),q2=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},G2=(e,t)=>({classGroupId:e,validator:t}),Ky=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),kc="-",cm=[],Z2="arbitrary..",K2=e=>{const t=X2(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Y2(i);const s=i.split(kc),l=s[0]===""&&s.length>1?1:0;return Yy(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const l=n[i],c=r[i];return l?c?q2(c,l):l:c||cm}return r[i]||cm}}},Yy=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],i=r.nextPart.get(n);if(i){const u=Yy(e,t+1,i);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(kc):e.slice(t).join(kc),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},Y2=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Z2+n:void 0})(),X2=e=>{const{theme:t,classGroups:r}=e;return J2(r,t)},J2=(e,t)=>{const r=Ky();for(const n in e){const i=e[n];Sp(i,r,n,t)}return r},Sp=(e,t,r,n)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];Q2(l,t,r,n)}},Q2=(e,t,r,n)=>{if(typeof e=="string"){eI(e,t,r);return}if(typeof e=="function"){tI(e,t,r,n);return}rI(e,t,r,n)},eI=(e,t,r)=>{const n=e===""?t:Xy(t,e);n.classGroupId=r},tI=(e,t,r,n)=>{if(nI(e)){Sp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(G2(r,e))},rI=(e,t,r,n)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[c,u]=i[l];Sp(u,Xy(t,c),r,n)}},Xy=(e,t)=>{let r=e;const n=t.split(kc),i=n.length;for(let s=0;s<i;s++){const l=n[s];let c=r.nextPart.get(l);c||(c=Ky(),r.nextPart.set(l,c)),r=c}return r},nI=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,iI=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(s,l)=>{r[s]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let l=r[s];if(l!==void 0)return l;if((l=n[s])!==void 0)return i(s,l),l},set(s,l){s in r?r[s]=l:i(s,l)}}},Mf="!",um=":",oI=[],dm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),sI=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let l=0,c=0,u=0,f;const g=i.length;for(let v=0;v<g;v++){const y=i[v];if(l===0&&c===0){if(y===um){s.push(i.slice(u,v)),u=v+1;continue}if(y==="/"){f=v;continue}}y==="["?l++:y==="]"?l--:y==="("?c++:y===")"&&c--}const p=s.length===0?i:i.slice(u);let h=p,b=!1;p.endsWith(Mf)?(h=p.slice(0,-1),b=!0):p.startsWith(Mf)&&(h=p.slice(1),b=!0);const S=f&&f>u?f-u:void 0;return dm(s,b,h,S)};if(t){const i=t+um,s=n;n=l=>l.startsWith(i)?s(l.slice(i.length)):dm(oI,!1,l,void 0,!0)}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},aI=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let s=0;s<r.length;s++){const l=r[s],c=l[0]==="[",u=t.has(l);c||u?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(l)):i.push(l)}return i.length>0&&(i.sort(),n.push(...i)),n}},lI=e=>({cache:iI(e.cacheSize),parseClassName:sI(e),sortModifiers:aI(e),...K2(e)}),cI=/\s+/,uI=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(cI);let u="";for(let f=c.length-1;f>=0;f-=1){const g=c[f],{isExternal:p,modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}=r(g);if(p){u=g+(u.length>0?" "+u:u);continue}let y=!!v,m=n(y?S.substring(0,v):S);if(!m){if(!y){u=g+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=g+(u.length>0?" "+u:u);continue}y=!1}const w=h.length===0?"":h.length===1?h[0]:s(h).join(":"),x=b?w+Mf:w,O=x+m;if(l.indexOf(O)>-1)continue;l.push(O);const _=i(m,y);for(let R=0;R<_.length;++R){const H=_[R];l.push(x+H)}u=g+(u.length>0?" "+u:u)}return u},dI=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=Jy(r))&&(i&&(i+=" "),i+=n);return i},Jy=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Jy(e[n]))&&(r&&(r+=" "),r+=t);return r},fm=(e,...t)=>{let r,n,i,s;const l=u=>{const f=t.reduce((g,p)=>p(g),e());return r=lI(f),n=r.cache.get,i=r.cache.set,s=c,c(u)},c=u=>{const f=n(u);if(f)return f;const g=uI(u,r);return i(u,g),g};return s=l,(...u)=>s(dI(...u))},fI=[],At=e=>{const t=r=>r[e]||fI;return t.isThemeGetter=!0,t},Qy=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,ew=/^\((?:(\w[\w-]*):)?(.+)\)$/i,pI=/^\d+\/\d+$/,hI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,gI=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,vI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,mI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,bI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vo=e=>pI.test(e),De=e=>!!e&&!Number.isNaN(Number(e)),ni=e=>!!e&&Number.isInteger(Number(e)),Ad=e=>e.endsWith("%")&&De(e.slice(0,-1)),Nn=e=>hI.test(e),yI=()=>!0,wI=e=>gI.test(e)&&!vI.test(e),tw=()=>!1,xI=e=>mI.test(e),SI=e=>bI.test(e),EI=e=>!we(e)&&!xe(e),_I=e=>Wo(e,iw,tw),we=e=>Qy.test(e),Pi=e=>Wo(e,ow,wI),Td=e=>Wo(e,RI,De),pm=e=>Wo(e,rw,tw),OI=e=>Wo(e,nw,SI),kl=e=>Wo(e,sw,xI),xe=e=>ew.test(e),ys=e=>Vo(e,ow),kI=e=>Vo(e,CI),hm=e=>Vo(e,rw),AI=e=>Vo(e,iw),TI=e=>Vo(e,nw),Al=e=>Vo(e,sw,!0),Wo=(e,t,r)=>{const n=Qy.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Vo=(e,t,r=!1)=>{const n=ew.exec(e);return n?n[1]?t(n[1]):r:!1},rw=e=>e==="position"||e==="percentage",nw=e=>e==="image"||e==="url",iw=e=>e==="length"||e==="size"||e==="bg-size",ow=e=>e==="length",RI=e=>e==="number",CI=e=>e==="family-name",sw=e=>e==="shadow",gm=()=>{const e=At("color"),t=At("font"),r=At("text"),n=At("font-weight"),i=At("tracking"),s=At("leading"),l=At("breakpoint"),c=At("container"),u=At("spacing"),f=At("radius"),g=At("shadow"),p=At("inset-shadow"),h=At("text-shadow"),b=At("drop-shadow"),S=At("blur"),v=At("perspective"),y=At("aspect"),m=At("ease"),w=At("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...O(),xe,we],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],I=()=>[xe,we,u],$=()=>[vo,"full","auto",...I()],U=()=>[ni,"none","subgrid",xe,we],j=()=>["auto",{span:["full",ni,xe,we]},ni,xe,we],M=()=>[ni,"auto",xe,we],D=()=>["auto","min","max","fr",xe,we],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],P=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...I()],ee=()=>[vo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...I()],Y=()=>[e,xe,we],ve=()=>[...O(),hm,pm,{position:[xe,we]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",AI,_I,{size:[xe,we]}],X=()=>[Ad,ys,Pi],te=()=>["","none","full",f,xe,we],J=()=>["",De,ys,Pi],oe=()=>["solid","dashed","dotted","double"],ae=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[De,Ad,hm,pm],de=()=>["","none",S,xe,we],he=()=>["none",De,xe,we],fe=()=>["none",De,xe,we],ye=()=>[De,xe,we],Z=()=>[vo,"full",...I()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Nn],breakpoint:[Nn],color:[yI],container:[Nn],"drop-shadow":[Nn],ease:["in","out","in-out"],font:[EI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Nn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Nn],shadow:[Nn],spacing:["px",De],text:[Nn],"text-shadow":[Nn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vo,we,xe,y]}],container:["container"],columns:[{columns:[De,we,xe,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:$()}],"inset-x":[{"inset-x":$()}],"inset-y":[{"inset-y":$()}],start:[{start:$()}],end:[{end:$()}],top:[{top:$()}],right:[{right:$()}],bottom:[{bottom:$()}],left:[{left:$()}],visibility:["visible","invisible","collapse"],z:[{z:[ni,"auto",xe,we]}],basis:[{basis:[vo,"full","auto",c,...I()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,vo,"auto","initial","none",we]}],grow:[{grow:["",De,xe,we]}],shrink:[{shrink:["",De,xe,we]}],order:[{order:[ni,"first","last","none",xe,we]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:j()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:j()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:I()}],"gap-x":[{"gap-x":I()}],"gap-y":[{"gap-y":I()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...P(),"normal"]}],"justify-self":[{"justify-self":["auto",...P()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...P(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...P(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...P(),"baseline"]}],"place-self":[{"place-self":["auto",...P()]}],p:[{p:I()}],px:[{px:I()}],py:[{py:I()}],ps:[{ps:I()}],pe:[{pe:I()}],pt:[{pt:I()}],pr:[{pr:I()}],pb:[{pb:I()}],pl:[{pl:I()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":I()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":I()}],"space-y-reverse":["space-y-reverse"],size:[{size:ee()}],w:[{w:[c,"screen",...ee()]}],"min-w":[{"min-w":[c,"screen","none",...ee()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...ee()]}],h:[{h:["screen","lh",...ee()]}],"min-h":[{"min-h":["screen","lh","none",...ee()]}],"max-h":[{"max-h":["screen","lh",...ee()]}],"font-size":[{text:["base",r,ys,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,xe,Td]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Ad,we]}],"font-family":[{font:[kI,we,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,xe,we]}],"line-clamp":[{"line-clamp":[De,"none",xe,Td]}],leading:[{leading:[s,...I()]}],"list-image":[{"list-image":["none",xe,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...oe(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",xe,Pi]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[De,"auto",xe,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:I()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ni,xe,we],radial:["",xe,we],conic:[ni,xe,we]},TI,OI]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:X()}],"gradient-via-pos":[{via:X()}],"gradient-to-pos":[{to:X()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:te()}],"rounded-s":[{"rounded-s":te()}],"rounded-e":[{"rounded-e":te()}],"rounded-t":[{"rounded-t":te()}],"rounded-r":[{"rounded-r":te()}],"rounded-b":[{"rounded-b":te()}],"rounded-l":[{"rounded-l":te()}],"rounded-ss":[{"rounded-ss":te()}],"rounded-se":[{"rounded-se":te()}],"rounded-ee":[{"rounded-ee":te()}],"rounded-es":[{"rounded-es":te()}],"rounded-tl":[{"rounded-tl":te()}],"rounded-tr":[{"rounded-tr":te()}],"rounded-br":[{"rounded-br":te()}],"rounded-bl":[{"rounded-bl":te()}],"border-w":[{border:J()}],"border-w-x":[{"border-x":J()}],"border-w-y":[{"border-y":J()}],"border-w-s":[{"border-s":J()}],"border-w-e":[{"border-e":J()}],"border-w-t":[{"border-t":J()}],"border-w-r":[{"border-r":J()}],"border-w-b":[{"border-b":J()}],"border-w-l":[{"border-l":J()}],"divide-x":[{"divide-x":J()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":J()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...oe(),"hidden","none"]}],"divide-style":[{divide:[...oe(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...oe(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,xe,we]}],"outline-w":[{outline:["",De,ys,Pi]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",g,Al,kl]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Al,kl]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[De,Pi]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",h,Al,kl]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[De,xe,we]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[xe,we]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",xe,we]}],filter:[{filter:["","none",xe,we]}],blur:[{blur:de()}],brightness:[{brightness:[De,xe,we]}],contrast:[{contrast:[De,xe,we]}],"drop-shadow":[{"drop-shadow":["","none",b,Al,kl]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",De,xe,we]}],"hue-rotate":[{"hue-rotate":[De,xe,we]}],invert:[{invert:["",De,xe,we]}],saturate:[{saturate:[De,xe,we]}],sepia:[{sepia:["",De,xe,we]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,we]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[De,xe,we]}],"backdrop-contrast":[{"backdrop-contrast":[De,xe,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,xe,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,xe,we]}],"backdrop-invert":[{"backdrop-invert":["",De,xe,we]}],"backdrop-opacity":[{"backdrop-opacity":[De,xe,we]}],"backdrop-saturate":[{"backdrop-saturate":[De,xe,we]}],"backdrop-sepia":[{"backdrop-sepia":["",De,xe,we]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":I()}],"border-spacing-x":[{"border-spacing-x":I()}],"border-spacing-y":[{"border-spacing-y":I()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",xe,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",xe,we]}],ease:[{ease:["linear","initial",m,xe,we]}],delay:[{delay:[De,xe,we]}],animate:[{animate:["none",w,xe,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,xe,we]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:he()}],"rotate-x":[{"rotate-x":he()}],"rotate-y":[{"rotate-y":he()}],"rotate-z":[{"rotate-z":he()}],scale:[{scale:fe()}],"scale-x":[{"scale-x":fe()}],"scale-y":[{"scale-y":fe()}],"scale-z":[{"scale-z":fe()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[xe,we,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",xe,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":I()}],"scroll-mx":[{"scroll-mx":I()}],"scroll-my":[{"scroll-my":I()}],"scroll-ms":[{"scroll-ms":I()}],"scroll-me":[{"scroll-me":I()}],"scroll-mt":[{"scroll-mt":I()}],"scroll-mr":[{"scroll-mr":I()}],"scroll-mb":[{"scroll-mb":I()}],"scroll-ml":[{"scroll-ml":I()}],"scroll-p":[{"scroll-p":I()}],"scroll-px":[{"scroll-px":I()}],"scroll-py":[{"scroll-py":I()}],"scroll-ps":[{"scroll-ps":I()}],"scroll-pe":[{"scroll-pe":I()}],"scroll-pt":[{"scroll-pt":I()}],"scroll-pr":[{"scroll-pr":I()}],"scroll-pb":[{"scroll-pb":I()}],"scroll-pl":[{"scroll-pl":I()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",xe,we]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[De,ys,Pi,Td]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},II=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:s={}})=>(Zs(e,"cacheSize",t),Zs(e,"prefix",r),Zs(e,"experimentalParseClassName",n),Tl(e.theme,s.theme),Tl(e.classGroups,s.classGroups),Tl(e.conflictingClassGroups,s.conflictingClassGroups),Tl(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Zs(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Rl(e.theme,i.theme),Rl(e.classGroups,i.classGroups),Rl(e.conflictingClassGroups,i.conflictingClassGroups),Rl(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),aw(e,i,"orderSensitiveModifiers"),e),Zs=(e,t,r)=>{r!==void 0&&(e[t]=r)},Tl=(e,t)=>{if(t)for(const r in t)Zs(e,r,t[r])},Rl=(e,t)=>{if(t)for(const r in t)aw(e,t,r)},aw=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},PI=(e,...t)=>typeof e=="function"?fm(gm,e,...t):fm(()=>II(gm(),e),...t);function lw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vm={exports:{}};/*!
1
+ "use strict";var bC=Object.defineProperty;var em=e=>{throw TypeError(e)};var yC=(e,t,r)=>t in e?bC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Te=(e,t,r)=>yC(e,typeof t!="symbol"?t+"":t,r),Cd=(e,t,r)=>t.has(e)||em("Cannot "+r);var ae=(e,t,r)=>(Cd(e,t,"read from private field"),r?r.call(e):t.get(e)),Ft=(e,t,r)=>t.has(e)?em("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Qe=(e,t,r,n)=>(Cd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),Ee=(e,t,r)=>(Cd(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),N=require("react"),En=require("react-dom"),Mf=require("@emotion/react");function $y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const V=$y(N),wC=$y(En),jy=({children:e,container:t=document.body})=>En.createPortal(e,t);var tm=function(t){return t.reduce(function(r,n){var i=n[0],s=n[1];return r[i]=s,r},{})},rm=typeof window<"u"&&window.document&&window.document.createElement?V.useLayoutEffect:V.useEffect,lr="top",jr="bottom",Fr="right",cr="left",mp="auto",Sa=[lr,jr,Fr,cr],Mo="start",la="end",xC="clippingParents",Fy="viewport",ms="popper",SC="reference",nm=Sa.reduce(function(e,t){return e.concat([t+"-"+Mo,t+"-"+la])},[]),Hy=[].concat(Sa,[mp]).reduce(function(e,t){return e.concat([t,t+"-"+Mo,t+"-"+la])},[]),EC="beforeRead",_C="read",OC="afterRead",kC="beforeMain",AC="main",TC="afterMain",RC="beforeWrite",CC="write",PC="afterWrite",IC=[EC,_C,OC,kC,AC,TC,RC,CC,PC];function Sn(e){return e?(e.nodeName||"").toLowerCase():null}function Sr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wi(e){var t=Sr(e).Element;return e instanceof t||e instanceof Element}function $r(e){var t=Sr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function bp(e){if(typeof ShadowRoot>"u")return!1;var t=Sr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function NC(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},i=t.attributes[r]||{},s=t.elements[r];!$r(s)||!Sn(s)||(Object.assign(s.style,n),Object.keys(i).forEach(function(l){var c=i[l];c===!1?s.removeAttribute(l):s.setAttribute(l,c===!0?"":c)}))})}function MC(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(n){var i=t.elements[n],s=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(u,f){return u[f]="",u},{});!$r(i)||!Sn(i)||(Object.assign(i.style,c),Object.keys(s).forEach(function(u){i.removeAttribute(u)}))})}}const DC={name:"applyStyles",enabled:!0,phase:"write",fn:NC,effect:MC,requires:["computeStyles"]};function wn(e){return e.split("-")[0]}var ji=Math.max,kc=Math.min,Do=Math.round;function Df(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Wy(){return!/^((?!chrome|android).)*safari/i.test(Df())}function Lo(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),i=1,s=1;t&&$r(e)&&(i=e.offsetWidth>0&&Do(n.width)/e.offsetWidth||1,s=e.offsetHeight>0&&Do(n.height)/e.offsetHeight||1);var l=Wi(e)?Sr(e):window,c=l.visualViewport,u=!Wy()&&r,f=(n.left+(u&&c?c.offsetLeft:0))/i,g=(n.top+(u&&c?c.offsetTop:0))/s,p=n.width/i,h=n.height/s;return{width:p,height:h,top:g,right:f+p,bottom:g+h,left:f,x:f,y:g}}function yp(e){var t=Lo(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function By(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&bp(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Vn(e){return Sr(e).getComputedStyle(e)}function LC(e){return["table","td","th"].indexOf(Sn(e))>=0}function vi(e){return((Wi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Gc(e){return Sn(e)==="html"?e:e.assignedSlot||e.parentNode||(bp(e)?e.host:null)||vi(e)}function im(e){return!$r(e)||Vn(e).position==="fixed"?null:e.offsetParent}function zC(e){var t=/firefox/i.test(Df()),r=/Trident/i.test(Df());if(r&&$r(e)){var n=Vn(e);if(n.position==="fixed")return null}var i=Gc(e);for(bp(i)&&(i=i.host);$r(i)&&["html","body"].indexOf(Sn(i))<0;){var s=Vn(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Ea(e){for(var t=Sr(e),r=im(e);r&&LC(r)&&Vn(r).position==="static";)r=im(r);return r&&(Sn(r)==="html"||Sn(r)==="body"&&Vn(r).position==="static")?t:r||zC(e)||t}function wp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ra(e,t,r){return ji(e,kc(t,r))}function $C(e,t,r){var n=ra(e,t,r);return n>r?r:n}function Vy(){return{top:0,right:0,bottom:0,left:0}}function Uy(e){return Object.assign({},Vy(),e)}function qy(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var jC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Uy(typeof t!="number"?t:qy(t,Sa))};function FC(e){var t,r=e.state,n=e.name,i=e.options,s=r.elements.arrow,l=r.modifiersData.popperOffsets,c=wn(r.placement),u=wp(c),f=[cr,Fr].indexOf(c)>=0,g=f?"height":"width";if(!(!s||!l)){var p=jC(i.padding,r),h=yp(s),b=u==="y"?lr:cr,S=u==="y"?jr:Fr,v=r.rects.reference[g]+r.rects.reference[u]-l[u]-r.rects.popper[g],y=l[u]-r.rects.reference[u],m=Ea(s),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-y/2,O=p[b],_=w-h[g]-p[S],R=w/2-h[g]/2+x,H=ra(O,R,_),P=u;r.modifiersData[n]=(t={},t[P]=H,t.centerOffset=H-R,t)}}function HC(e){var t=e.state,r=e.options,n=r.element,i=n===void 0?"[data-popper-arrow]":n;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||By(t.elements.popper,i)&&(t.elements.arrow=i))}const WC={name:"arrow",enabled:!0,phase:"main",fn:FC,effect:HC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function zo(e){return e.split("-")[1]}var BC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function VC(e,t){var r=e.x,n=e.y,i=t.devicePixelRatio||1;return{x:Do(r*i)/i||0,y:Do(n*i)/i||0}}function om(e){var t,r=e.popper,n=e.popperRect,i=e.placement,s=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,f=e.adaptive,g=e.roundOffsets,p=e.isFixed,h=l.x,b=h===void 0?0:h,S=l.y,v=S===void 0?0:S,y=typeof g=="function"?g({x:b,y:v}):{x:b,y:v};b=y.x,v=y.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=cr,O=lr,_=window;if(f){var R=Ea(r),H="clientHeight",P="clientWidth";if(R===Sr(r)&&(R=vi(r),Vn(R).position!=="static"&&c==="absolute"&&(H="scrollHeight",P="scrollWidth")),R=R,i===lr||(i===cr||i===Fr)&&s===la){O=jr;var z=p&&R===_&&_.visualViewport?_.visualViewport.height:R[H];v-=z-n.height,v*=u?1:-1}if(i===cr||(i===lr||i===jr)&&s===la){x=Fr;var U=p&&R===_&&_.visualViewport?_.visualViewport.width:R[P];b-=U-n.width,b*=u?1:-1}}var $=Object.assign({position:c},f&&BC),M=g===!0?VC({x:b,y:v},Sr(r)):{x:b,y:v};if(b=M.x,v=M.y,u){var D;return Object.assign({},$,(D={},D[O]=w?"0":"",D[x]=m?"0":"",D.transform=(_.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",D))}return Object.assign({},$,(t={},t[O]=w?v+"px":"",t[x]=m?b+"px":"",t.transform="",t))}function UC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,i=n===void 0?!0:n,s=r.adaptive,l=s===void 0?!0:s,c=r.roundOffsets,u=c===void 0?!0:c,f={placement:wn(t.placement),variation:zo(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,om(Object.assign({},f,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,om(Object.assign({},f,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const qC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:UC,data:{}};var Ol={passive:!0};function GC(e){var t=e.state,r=e.instance,n=e.options,i=n.scroll,s=i===void 0?!0:i,l=n.resize,c=l===void 0?!0:l,u=Sr(t.elements.popper),f=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&f.forEach(function(g){g.addEventListener("scroll",r.update,Ol)}),c&&u.addEventListener("resize",r.update,Ol),function(){s&&f.forEach(function(g){g.removeEventListener("scroll",r.update,Ol)}),c&&u.removeEventListener("resize",r.update,Ol)}}const ZC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:GC,data:{}};var KC={left:"right",right:"left",bottom:"top",top:"bottom"};function sc(e){return e.replace(/left|right|bottom|top/g,function(t){return KC[t]})}var YC={start:"end",end:"start"};function sm(e){return e.replace(/start|end/g,function(t){return YC[t]})}function xp(e){var t=Sr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Sp(e){return Lo(vi(e)).left+xp(e).scrollLeft}function XC(e,t){var r=Sr(e),n=vi(e),i=r.visualViewport,s=n.clientWidth,l=n.clientHeight,c=0,u=0;if(i){s=i.width,l=i.height;var f=Wy();(f||!f&&t==="fixed")&&(c=i.offsetLeft,u=i.offsetTop)}return{width:s,height:l,x:c+Sp(e),y:u}}function JC(e){var t,r=vi(e),n=xp(e),i=(t=e.ownerDocument)==null?void 0:t.body,s=ji(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=ji(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),c=-n.scrollLeft+Sp(e),u=-n.scrollTop;return Vn(i||r).direction==="rtl"&&(c+=ji(r.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:c,y:u}}function Ep(e){var t=Vn(e),r=t.overflow,n=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Gy(e){return["html","body","#document"].indexOf(Sn(e))>=0?e.ownerDocument.body:$r(e)&&Ep(e)?e:Gy(Gc(e))}function na(e,t){var r;t===void 0&&(t=[]);var n=Gy(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),s=Sr(n),l=i?[s].concat(s.visualViewport||[],Ep(n)?n:[]):n,c=t.concat(l);return i?c:c.concat(na(Gc(l)))}function Lf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function QC(e,t){var r=Lo(e,!1,t==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function am(e,t,r){return t===Fy?Lf(XC(e,r)):Wi(t)?QC(t,r):Lf(JC(vi(e)))}function e5(e){var t=na(Gc(e)),r=["absolute","fixed"].indexOf(Vn(e).position)>=0,n=r&&$r(e)?Ea(e):e;return Wi(n)?t.filter(function(i){return Wi(i)&&By(i,n)&&Sn(i)!=="body"}):[]}function t5(e,t,r,n){var i=t==="clippingParents"?e5(e):[].concat(t),s=[].concat(i,[r]),l=s[0],c=s.reduce(function(u,f){var g=am(e,f,n);return u.top=ji(g.top,u.top),u.right=kc(g.right,u.right),u.bottom=kc(g.bottom,u.bottom),u.left=ji(g.left,u.left),u},am(e,l,n));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Zy(e){var t=e.reference,r=e.element,n=e.placement,i=n?wn(n):null,s=n?zo(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(i){case lr:u={x:l,y:t.y-r.height};break;case jr:u={x:l,y:t.y+t.height};break;case Fr:u={x:t.x+t.width,y:c};break;case cr:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var f=i?wp(i):null;if(f!=null){var g=f==="y"?"height":"width";switch(s){case Mo:u[f]=u[f]-(t[g]/2-r[g]/2);break;case la:u[f]=u[f]+(t[g]/2-r[g]/2);break}}return u}function ca(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=n===void 0?e.placement:n,s=r.strategy,l=s===void 0?e.strategy:s,c=r.boundary,u=c===void 0?xC:c,f=r.rootBoundary,g=f===void 0?Fy:f,p=r.elementContext,h=p===void 0?ms:p,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=Uy(typeof y!="number"?y:qy(y,Sa)),w=h===ms?SC:ms,x=e.rects.popper,O=e.elements[S?w:h],_=t5(Wi(O)?O:O.contextElement||vi(e.elements.popper),u,g,l),R=Lo(e.elements.reference),H=Zy({reference:R,element:x,placement:i}),P=Lf(Object.assign({},x,H)),z=h===ms?P:R,U={top:_.top-z.top+m.top,bottom:z.bottom-_.bottom+m.bottom,left:_.left-z.left+m.left,right:z.right-_.right+m.right},$=e.modifiersData.offset;if(h===ms&&$){var M=$[i];Object.keys(U).forEach(function(D){var F=[Fr,jr].indexOf(D)>=0?1:-1,I=[lr,jr].indexOf(D)>=0?"y":"x";U[D]+=M[I]*F})}return U}function r5(e,t){t===void 0&&(t={});var r=t,n=r.placement,i=r.boundary,s=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,f=u===void 0?Hy:u,g=zo(n),p=g?c?nm:nm.filter(function(S){return zo(S)===g}):Sa,h=p.filter(function(S){return f.indexOf(S)>=0});h.length===0&&(h=p);var b=h.reduce(function(S,v){return S[v]=ca(e,{placement:v,boundary:i,rootBoundary:s,padding:l})[wn(v)],S},{});return Object.keys(b).sort(function(S,v){return b[S]-b[v]})}function n5(e){if(wn(e)===mp)return[];var t=sc(e);return[sm(e),t,sm(t)]}function i5(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,f=r.padding,g=r.boundary,p=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,S=b===void 0?!0:b,v=r.allowedAutoPlacements,y=t.options.placement,m=wn(y),w=m===y,x=u||(w||!S?[sc(y)]:n5(y)),O=[y].concat(x).reduce(function(X,ue){return X.concat(wn(ue)===mp?r5(t,{placement:ue,boundary:g,rootBoundary:p,padding:f,flipVariations:S,allowedAutoPlacements:v}):ue)},[]),_=t.rects.reference,R=t.rects.popper,H=new Map,P=!0,z=O[0],U=0;U<O.length;U++){var $=O[U],M=wn($),D=zo($)===Mo,F=[lr,jr].indexOf(M)>=0,I=F?"width":"height",K=ca(t,{placement:$,boundary:g,rootBoundary:p,altBoundary:h,padding:f}),te=F?D?Fr:cr:D?jr:lr;_[I]>R[I]&&(te=sc(te));var Y=sc(te),ve=[];if(s&&ve.push(K[M]<=0),c&&ve.push(K[te]<=0,K[Y]<=0),ve.every(function(X){return X})){z=$,P=!1;break}H.set($,ve)}if(P)for(var j=S?3:1,W=function(ue){var ie=O.find(function(ne){var de=H.get(ne);if(de)return de.slice(0,ue).every(function(pe){return pe})});if(ie)return z=ie,"break"},ee=j;ee>0;ee--){var Q=W(ee);if(Q==="break")break}t.placement!==z&&(t.modifiersData[n]._skip=!0,t.placement=z,t.reset=!0)}}const o5={name:"flip",enabled:!0,phase:"main",fn:i5,requiresIfExists:["offset"],data:{_skip:!1}};function lm(e,t,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function cm(e){return[lr,Fr,jr,cr].some(function(t){return e[t]>=0})}function s5(e){var t=e.state,r=e.name,n=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=ca(t,{elementContext:"reference"}),c=ca(t,{altBoundary:!0}),u=lm(l,n),f=lm(c,i,s),g=cm(u),p=cm(f);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:f,isReferenceHidden:g,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":p})}const a5={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:s5};function l5(e,t,r){var n=wn(e),i=[cr,lr].indexOf(n)>=0?-1:1,s=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=s[0],c=s[1];return l=l||0,c=(c||0)*i,[cr,Fr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function c5(e){var t=e.state,r=e.options,n=e.name,i=r.offset,s=i===void 0?[0,0]:i,l=Hy.reduce(function(g,p){return g[p]=l5(p,t.rects,s),g},{}),c=l[t.placement],u=c.x,f=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=f),t.modifiersData[n]=l}const u5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:c5};function d5(e){var t=e.state,r=e.name;t.modifiersData[r]=Zy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const f5={name:"popperOffsets",enabled:!0,phase:"read",fn:d5,data:{}};function p5(e){return e==="x"?"y":"x"}function h5(e){var t=e.state,r=e.options,n=e.name,i=r.mainAxis,s=i===void 0?!0:i,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,f=r.rootBoundary,g=r.altBoundary,p=r.padding,h=r.tether,b=h===void 0?!0:h,S=r.tetherOffset,v=S===void 0?0:S,y=ca(t,{boundary:u,rootBoundary:f,padding:p,altBoundary:g}),m=wn(t.placement),w=zo(t.placement),x=!w,O=wp(m),_=p5(O),R=t.modifiersData.popperOffsets,H=t.rects.reference,P=t.rects.popper,z=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,U=typeof z=="number"?{mainAxis:z,altAxis:z}:Object.assign({mainAxis:0,altAxis:0},z),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(R){if(s){var D,F=O==="y"?lr:cr,I=O==="y"?jr:Fr,K=O==="y"?"height":"width",te=R[O],Y=te+y[F],ve=te-y[I],j=b?-P[K]/2:0,W=w===Mo?H[K]:P[K],ee=w===Mo?-P[K]:-H[K],Q=t.elements.arrow,X=b&&Q?yp(Q):{width:0,height:0},ue=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Vy(),ie=ue[F],ne=ue[I],de=ra(0,H[K],X[K]),pe=x?H[K]/2-j-de-ie-U.mainAxis:W-de-ie-U.mainAxis,he=x?-H[K]/2+j+de+ne+U.mainAxis:ee+de+ne+U.mainAxis,xe=t.elements.arrow&&Ea(t.elements.arrow),Z=xe?O==="y"?xe.clientTop||0:xe.clientLeft||0:0,Oe=(D=$==null?void 0:$[O])!=null?D:0,ge=te+pe-Oe-Z,at=te+he-Oe,Kt=ra(b?kc(Y,ge):Y,te,b?ji(ve,at):ve);R[O]=Kt,M[O]=Kt-te}if(c){var Or,ur=O==="x"?lr:cr,bi=O==="x"?jr:Fr,xt=R[_],kr=_==="y"?"height":"width",Lt=xt+y[ur],Ct=xt-y[bi],Ut=[lr,cr].indexOf(m)!==-1,yi=(Or=$==null?void 0:$[_])!=null?Or:0,en=Ut?Lt:xt-H[kr]-P[kr]-yi+U.altAxis,wi=Ut?xt+H[kr]+P[kr]-yi-U.altAxis:Ct,Ar=b&&Ut?$C(en,xt,wi):ra(b?en:Lt,xt,b?wi:Ct);R[_]=Ar,M[_]=Ar-xt}t.modifiersData[n]=M}}const g5={name:"preventOverflow",enabled:!0,phase:"main",fn:h5,requiresIfExists:["offset"]};function v5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function m5(e){return e===Sr(e)||!$r(e)?xp(e):v5(e)}function b5(e){var t=e.getBoundingClientRect(),r=Do(t.width)/e.offsetWidth||1,n=Do(t.height)/e.offsetHeight||1;return r!==1||n!==1}function y5(e,t,r){r===void 0&&(r=!1);var n=$r(t),i=$r(t)&&b5(t),s=vi(t),l=Lo(e,i,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((Sn(t)!=="body"||Ep(s))&&(c=m5(t)),$r(t)?(u=Lo(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=Sp(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function w5(e){var t=new Map,r=new Set,n=[];e.forEach(function(s){t.set(s.name,s)});function i(s){r.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&i(u)}}),n.push(s)}return e.forEach(function(s){r.has(s.name)||i(s)}),n}function x5(e){var t=w5(e);return IC.reduce(function(r,n){return r.concat(t.filter(function(i){return i.phase===n}))},[])}function S5(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function E5(e){var t=e.reduce(function(r,n){var i=r[n.name];return r[n.name]=i?Object.assign({},i,n,{options:Object.assign({},i.options,n.options),data:Object.assign({},i.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var um={placement:"bottom",modifiers:[],strategy:"absolute"};function dm(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(n){return!(n&&typeof n.getBoundingClientRect=="function")})}function _5(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,i=t.defaultOptions,s=i===void 0?um:i;return function(c,u,f){f===void 0&&(f=s);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},um,s),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},p=[],h=!1,b={state:g,setOptions:function(m){var w=typeof m=="function"?m(g.options):m;v(),g.options=Object.assign({},s,g.options,w),g.scrollParents={reference:Wi(c)?na(c):c.contextElement?na(c.contextElement):[],popper:na(u)};var x=x5(E5([].concat(n,g.options.modifiers)));return g.orderedModifiers=x.filter(function(O){return O.enabled}),S(),b.update()},forceUpdate:function(){if(!h){var m=g.elements,w=m.reference,x=m.popper;if(dm(w,x)){g.rects={reference:y5(w,Ea(x),g.options.strategy==="fixed"),popper:yp(x)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(U){return g.modifiersData[U.name]=Object.assign({},U.data)});for(var O=0;O<g.orderedModifiers.length;O++){if(g.reset===!0){g.reset=!1,O=-1;continue}var _=g.orderedModifiers[O],R=_.fn,H=_.options,P=H===void 0?{}:H,z=_.name;typeof R=="function"&&(g=R({state:g,options:P,name:z,instance:b})||g)}}}},update:S5(function(){return new Promise(function(y){b.forceUpdate(),y(g)})}),destroy:function(){v(),h=!0}};if(!dm(c,u))return b;b.setOptions(f).then(function(y){!h&&f.onFirstUpdate&&f.onFirstUpdate(y)});function S(){g.orderedModifiers.forEach(function(y){var m=y.name,w=y.options,x=w===void 0?{}:w,O=y.effect;if(typeof O=="function"){var _=O({state:g,name:m,instance:b,options:x}),R=function(){};p.push(_||R)}})}function v(){p.forEach(function(y){return y()}),p=[]}return b}}var O5=[ZC,f5,qC,DC,u5,o5,g5,WC,a5],k5=_5({defaultModifiers:O5}),kl=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ky(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pd,fm;function A5(){if(fm)return Pd;fm=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function i(s,l){if(s===l)return!0;if(s&&l&&typeof s=="object"&&typeof l=="object"){if(s.constructor!==l.constructor)return!1;var c,u,f;if(Array.isArray(s)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!i(s[u],l[u]))return!1;return!0}var g;if(t&&s instanceof Map&&l instanceof Map){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;for(g=s.entries();!(u=g.next()).done;)if(!i(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&s instanceof Set&&l instanceof Set){if(s.size!==l.size)return!1;for(g=s.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(s)&&ArrayBuffer.isView(l)){if(c=s.length,c!=l.length)return!1;for(u=c;u--!==0;)if(s[u]!==l[u])return!1;return!0}if(s.constructor===RegExp)return s.source===l.source&&s.flags===l.flags;if(s.valueOf!==Object.prototype.valueOf&&typeof s.valueOf=="function"&&typeof l.valueOf=="function")return s.valueOf()===l.valueOf();if(s.toString!==Object.prototype.toString&&typeof s.toString=="function"&&typeof l.toString=="function")return s.toString()===l.toString();if(f=Object.keys(s),c=f.length,c!==Object.keys(l).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(l,f[u]))return!1;if(e&&s instanceof Element)return!1;for(u=c;u--!==0;)if(!((f[u]==="_owner"||f[u]==="__v"||f[u]==="__o")&&s.$$typeof)&&!i(s[f[u]],l[f[u]]))return!1;return!0}return s!==s&&l!==l}return Pd=function(l,c){try{return i(l,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},Pd}var T5=A5();const R5=Ky(T5);var C5=[],_p=function(t,r,n){n===void 0&&(n={});var i=V.useRef(null),s={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||C5},l=V.useState({styles:{popper:{position:s.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],f=V.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var S=b.state,v=Object.keys(S.elements);wC.flushSync(function(){u({styles:tm(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:tm(v.map(function(y){return[y,S.attributes[y]]}))})})},requires:["computeStyles"]}},[]),g=V.useMemo(function(){var h={onFirstUpdate:s.onFirstUpdate,placement:s.placement,strategy:s.strategy,modifiers:[].concat(s.modifiers,[f,{name:"applyStyles",enabled:!1}])};return R5(i.current,h)?i.current||h:(i.current=h,h)},[s.onFirstUpdate,s.placement,s.strategy,s.modifiers,f]),p=V.useRef();return rm(function(){p.current&&p.current.setOptions(g)},[g]),rm(function(){if(!(t==null||r==null)){var h=n.createPopper||k5,b=h(t,r,g);return p.current=b,function(){b.destroy(),p.current=null}}},[t,r,n.createPopper]),{state:p.current?p.current.state:null,styles:c.styles,attributes:c.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}};const Yy=e=>A.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),Xy=N.forwardRef(({children:e,style:t,attributes:r},n)=>A.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),P5=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:i})=>{const[s,l]=N.useState(null),{styles:c,attributes:u}=_p(e,s,{placement:t||"bottom-start"}),f=N.useCallback(()=>{i&&i()},[i]);return r?A.jsxs(jy,{children:[A.jsx(Yy,{onClick:()=>f()}),A.jsx(Xy,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};(function(){try{const e=document.createElement("style");e.setAttribute("data-vite-dev-id","ui-components.css"),e.textContent=`/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-scale-x:1;--tw-scale-y:1;--tw-scale-z:1;--tw-rotate-x:initial;--tw-rotate-y:initial;--tw-rotate-z:initial;--tw-skew-x:initial;--tw-skew-y:initial;--tw-space-y-reverse:0;--tw-space-x-reverse:0;--tw-border-style:solid;--tw-gradient-position:initial;--tw-gradient-from:#0000;--tw-gradient-via:#0000;--tw-gradient-to:#0000;--tw-gradient-stops:initial;--tw-gradient-via-stops:initial;--tw-gradient-from-position:0%;--tw-gradient-via-position:50%;--tw-gradient-to-position:100%;--tw-leading:initial;--tw-font-weight:initial;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000;--tw-outline-style:solid;--tw-blur:initial;--tw-brightness:initial;--tw-contrast:initial;--tw-grayscale:initial;--tw-hue-rotate:initial;--tw-invert:initial;--tw-opacity:initial;--tw-saturate:initial;--tw-sepia:initial;--tw-drop-shadow:initial;--tw-drop-shadow-color:initial;--tw-drop-shadow-alpha:100%;--tw-drop-shadow-size:initial;--tw-duration:initial;--tw-ease:initial}}:root:not(#\\#),:host:not(#\\#){--color-green-500:oklch(72.3% .219 149.579);--color-blue-500:oklch(62.3% .214 259.815);--color-pink-500:oklch(65.6% .241 354.308);--color-gray-50:oklch(98.5% .002 247.839);--color-gray-100:oklch(96.7% .003 264.542);--color-gray-400:oklch(70.7% .022 261.325);--color-gray-500:oklch(55.1% .027 264.364);--color-gray-800:oklch(27.8% .033 256.848);--color-white:#fff;--spacing:.25rem;--container-md:28rem;--text-xs:.65rem;--text-xs--line-height:calc(1/.75);--text-sm:.875rem;--text-sm--line-height:calc(1.25/.875);--text-base:1rem;--text-base--line-height: 1.5 ;--text-lg:1.125rem;--text-lg--line-height:calc(1.75/1.125);--text-xl:1.25rem;--text-xl--line-height:calc(1.75/1.25);--text-2xl:1.5rem;--text-2xl--line-height:calc(2/1.5);--text-3xl:1.875rem;--text-3xl--line-height: 1.2 ;--text-4xl:2.25rem;--text-4xl--line-height:calc(2.5/2.25);--text-5xl:3rem;--text-5xl--line-height:1;--text-6xl:3.75rem;--text-6xl--line-height:1;--text-7xl:4.5rem;--text-7xl--line-height:1;--text-8xl:6rem;--text-8xl--line-height:1;--text-9xl:8rem;--text-9xl--line-height:1;--font-weight-thin:100;--font-weight-medium:500;--font-weight-semibold:600;--font-weight-bold:700;--radius-xs:.125rem;--radius-md:.375rem;--radius-lg:.5rem;--ease-out:cubic-bezier(0,0,.2,1);--ease-in-out:cubic-bezier(.4,0,.2,1);--animate-bounce:bounce 1s infinite;--default-transition-duration:.15s;--default-transition-timing-function:cubic-bezier(.4,0,.2,1);--color-grey-50:var(--ws-grey-50);--color-grey-100:var(--ws-grey-100);--color-grey-200:var(--ws-grey-200);--color-grey-300:var(--ws-grey-300);--color-grey-400:var(--ws-grey-400);--color-grey-500:var(--ws-grey-500);--color-grey-600:var(--ws-grey-600);--color-grey-700:var(--ws-grey-700);--color-grey-800:var(--ws-grey-800);--color-primary-500:var(--ws-primary-500);--color-primary-600:var(--ws-primary-600);--color-primary-700:var(--ws-primary-700);--color-positive-200:var(--ws-positive-200);--color-positive-400:var(--ws-positive-400);--color-positive-500:var(--ws-positive-500);--color-positive-600:var(--ws-positive-600);--color-warning-500:var(--ws-warning-500);--color-negative-400:var(--ws-negative-400);--color-negative-500:var(--ws-negative-500);--text-xxs:.55rem;--text-s:.75rem;--min-height-6:1.5rem;--color-canvas-default:var(--ws-bg-default);--color-canvas-subtle:var(--ws-grey-100);--color-panel:var(--ws-grey-300);--color-panel-subtle:var(--ws-grey-200);--color-card:var(--ws-card-bg);--color-card-border:var(--ws-card-border);--color-body:var(--ws-bg-foreground);--color-body-bg:var(--ws-bg-default);--color-body-light:var(--ws-grey-100);--color-muted:var(--ws-text-muted);--color-neutral:var(--ws-grey-200);--color-button-text:var(--ws-button-fg);--color-primary:var(--ws-primary-default);--color-primary-hover:var(--ws-primary-hover);--color-primary-light:var(--ws-primary-light);--color-primary-dark:var(--ws-primary-dark);--color-positive:var(--ws-positive-500);--color-positive-hover:var(--ws-positive-hover);--color-positive-text:var(--ws-positive-text);--color-positive-bg:var(--ws-positive-bg);--color-positive-light:var(--ws-positive-light);--color-positive-dark:var(--ws-positive-dark);--color-negative:var(--ws-negative-500);--color-negative-hover:var(--ws-negative-hover);--color-negative-text:var(--ws-negative-text);--color-negative-bg:var(--ws-negative-bg);--color-negative-light:var(--ws-negative-light);--color-negative-dark:var(--ws-negative-dark);--color-warning:var(--ws-warning-500);--color-warning-hover:var(--ws-warning-hover);--color-warning-text:var(--ws-warning-text);--color-warning-bg:var(--ws-warning-bg);--color-warning-light:var(--ws-warning-light);--color-warning-dark:var(--ws-warning-dark);--color-input-bg:var(--ws-input-bg);--color-input-border:var(--ws-input-border);--color-input-text:var(--ws-input-text);--color-input-placeholder:var(--ws-input-placeholder);--color-input-focus-border:var(--ws-input-focus-border);--color-select-border:var(--ws-select-border);--color-select-text:var(--ws-select-text);--color-select-list-bg:var(--ws-select-list-bg);--color-input-option-hover-bg:var(--ws-input-option-hover-bg);--color-input-option-active-bg:var(--ws-input-option-active-bg);--color-input-option-active-text:var(--ws-input-option-active-text);--color-input-error-border:var(--ws-input-error-border);--color-input-error-bg:var(--ws-input-error-bg);--color-input-warning-border:var(--ws-input-warning-border);--color-input-warning-bg:var(--ws-input-warning-bg);--color-input-message-bg:var(--ws-input-message-bg);--color-input-message-text:var(--ws-input-message-text);--color-input-disable:var(--ws-disable-input);--color-inactive-text:var(--ws-inactive-text);--color-panel-0:var(--ws-panel-0);--color-panel-1:var(--ws-panel-1);--color-panel-2:var(--ws-panel-2);--color-panel-3:var(--ws-panel-3);--color-panel-4:var(--ws-panel-4);--color-panel-5:var(--ws-panel-5);--color-panel-border-subtle:var(--ws-panel-border-subtle);--color-tab-bg-default:var(--ws-tab-bg-default);--color-tab-border:var(--ws-tab-border);--color-tab-active-bg:var(--ws-tab-active-bg);--color-tab-active-fg:var(--ws-tab-active-fg);--color-tab-inactive-bg:var(--ws-tab-inactive-bg);--color-tab-inactive-fg:var(--ws-tab-inactive-fg);--color-panel-border:var(--ws-panel-border)}.pointer-events-auto:not(#\\#){pointer-events:auto}.pointer-events-none:not(#\\#){pointer-events:none}.collapse:not(#\\#){visibility:collapse}.visible:not(#\\#){visibility:visible}.sr-only:not(#\\#){clip-path:inset(50%);white-space:nowrap;border-width:0;width:1px;height:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.absolute:not(#\\#){position:absolute}.fixed:not(#\\#){position:fixed}.relative:not(#\\#){position:relative}.static:not(#\\#){position:static}.inset-0:not(#\\#){inset:calc(var(--spacing)*0)}.-top-1\\/5:not(#\\#){top:-20%}.top-0:not(#\\#){top:calc(var(--spacing)*0)}.top-1:not(#\\#){top:calc(var(--spacing)*1)}.top-full:not(#\\#){top:100%}.-right-12:not(#\\#){right:calc(var(--spacing)*-12)}.-right-px:not(#\\#){right:-1px}.right-0:not(#\\#){right:calc(var(--spacing)*0)}.right-1:not(#\\#){right:calc(var(--spacing)*1)}.bottom-0:not(#\\#){bottom:calc(var(--spacing)*0)}.bottom-full:not(#\\#){bottom:100%}.-left-px:not(#\\#){left:-1px}.left-0:not(#\\#){left:calc(var(--spacing)*0)}.left-0\\.5:not(#\\#){left:calc(var(--spacing)*.5)}.left-1\\/2:not(#\\#){left:50%}.left-3\\.5:not(#\\#){left:calc(var(--spacing)*3.5)}.left-4:not(#\\#){left:calc(var(--spacing)*4)}.left-4\\.5:not(#\\#){left:calc(var(--spacing)*4.5)}.left-5\\.5:not(#\\#){left:calc(var(--spacing)*5.5)}.left-full:not(#\\#){left:100%}.z-1:not(#\\#){z-index:1}.z-2:not(#\\#){z-index:2}.z-10:not(#\\#){z-index:10}.z-40:not(#\\#){z-index:40}.z-50:not(#\\#){z-index:50}.z-60:not(#\\#){z-index:60}.z-9999:not(#\\#){z-index:9999}.container:not(#\\#){width:100%}@media(min-width:40rem){.container:not(#\\#){max-width:40rem}}@media(min-width:48rem){.container:not(#\\#){max-width:48rem}}@media(min-width:64rem){.container:not(#\\#){max-width:64rem}}@media(min-width:80rem){.container:not(#\\#){max-width:80rem}}@media(min-width:96rem){.container:not(#\\#){max-width:96rem}}.m-0:not(#\\#){margin:calc(var(--spacing)*0)}.m-0\\.5:not(#\\#){margin:calc(var(--spacing)*.5)}.m-px:not(#\\#){margin:1px}.mx-1:not(#\\#){margin-inline:calc(var(--spacing)*1)}.-my-1:not(#\\#){margin-block:calc(var(--spacing)*-1)}.mt-1:not(#\\#){margin-top:calc(var(--spacing)*1)}.mt-2:not(#\\#){margin-top:calc(var(--spacing)*2)}.mt-4:not(#\\#){margin-top:calc(var(--spacing)*4)}.mt-8:not(#\\#){margin-top:calc(var(--spacing)*8)}.mr-1:not(#\\#){margin-right:calc(var(--spacing)*1)}.mr-2:not(#\\#){margin-right:calc(var(--spacing)*2)}.mb-1:not(#\\#){margin-bottom:calc(var(--spacing)*1)}.mb-2:not(#\\#){margin-bottom:calc(var(--spacing)*2)}.mb-4:not(#\\#){margin-bottom:calc(var(--spacing)*4)}.ml-1:not(#\\#){margin-left:calc(var(--spacing)*1)}.ml-1\\.5:not(#\\#){margin-left:calc(var(--spacing)*1.5)}.ml-2:not(#\\#){margin-left:calc(var(--spacing)*2)}.box-border:not(#\\#){box-sizing:border-box}.block:not(#\\#){display:block}.flex:not(#\\#){display:flex}.grid:not(#\\#){display:grid}.hidden:not(#\\#){display:none}.inline:not(#\\#){display:inline}.inline-block:not(#\\#){display:inline-block}.inline-flex:not(#\\#){display:inline-flex}.table:not(#\\#){display:table}.size-1\\.5:not(#\\#){width:calc(var(--spacing)*1.5);height:calc(var(--spacing)*1.5)}.size-1\\.75:not(#\\#){width:calc(var(--spacing)*1.75);height:calc(var(--spacing)*1.75)}.size-2:not(#\\#){width:calc(var(--spacing)*2);height:calc(var(--spacing)*2)}.size-2\\.5:not(#\\#){width:calc(var(--spacing)*2.5);height:calc(var(--spacing)*2.5)}.size-3:not(#\\#){width:calc(var(--spacing)*3);height:calc(var(--spacing)*3)}.size-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5);height:calc(var(--spacing)*3.5)}.size-3\\.25:not(#\\#){width:calc(var(--spacing)*3.25);height:calc(var(--spacing)*3.25)}.size-4:not(#\\#){width:calc(var(--spacing)*4);height:calc(var(--spacing)*4)}.size-5:not(#\\#){width:calc(var(--spacing)*5);height:calc(var(--spacing)*5)}.size-6:not(#\\#){width:calc(var(--spacing)*6);height:calc(var(--spacing)*6)}.size-fit:not(#\\#){width:fit-content;height:fit-content}.h-2:not(#\\#){height:calc(var(--spacing)*2)}.h-3:not(#\\#){height:calc(var(--spacing)*3)}.h-3\\.5:not(#\\#){height:calc(var(--spacing)*3.5)}.h-4:not(#\\#){height:calc(var(--spacing)*4)}.h-4\\.5:not(#\\#){height:calc(var(--spacing)*4.5)}.h-5:not(#\\#){height:calc(var(--spacing)*5)}.h-5\\.5:not(#\\#){height:calc(var(--spacing)*5.5)}.h-6:not(#\\#){height:calc(var(--spacing)*6)}.h-7:not(#\\#){height:calc(var(--spacing)*7)}.h-7\\.5:not(#\\#){height:calc(var(--spacing)*7.5)}.h-8:not(#\\#){height:calc(var(--spacing)*8)}.h-10:not(#\\#){height:calc(var(--spacing)*10)}.h-14:not(#\\#){height:calc(var(--spacing)*14)}.h-20:not(#\\#){height:calc(var(--spacing)*20)}.h-30:not(#\\#){height:calc(var(--spacing)*30)}.h-100:not(#\\#){height:calc(var(--spacing)*100)}.h-fit:not(#\\#){height:fit-content}.h-full:not(#\\#){height:100%}.max-h-\\[400px\\]:not(#\\#){max-height:400px}.max-h-full:not(#\\#){max-height:100%}.min-h-5:not(#\\#){min-height:calc(var(--spacing)*5)}.min-h-6:not(#\\#){min-height:var(--min-height-6)}.min-h-7:not(#\\#){min-height:calc(var(--spacing)*7)}.min-h-\\[100px\\]:not(#\\#){min-height:100px}.min-h-fit:not(#\\#){min-height:fit-content}.min-h-screen:not(#\\#){min-height:100vh}.w-0\\.5:not(#\\#){width:calc(var(--spacing)*.5)}.w-1\\/2:not(#\\#){width:50%}.w-3:not(#\\#){width:calc(var(--spacing)*3)}.w-3\\.5:not(#\\#){width:calc(var(--spacing)*3.5)}.w-4:not(#\\#){width:calc(var(--spacing)*4)}.w-5:not(#\\#){width:calc(var(--spacing)*5)}.w-6:not(#\\#){width:calc(var(--spacing)*6)}.w-7:not(#\\#){width:calc(var(--spacing)*7)}.w-8:not(#\\#){width:calc(var(--spacing)*8)}.w-9:not(#\\#){width:calc(var(--spacing)*9)}.w-11:not(#\\#){width:calc(var(--spacing)*11)}.w-16:not(#\\#){width:calc(var(--spacing)*16)}.w-20:not(#\\#){width:calc(var(--spacing)*20)}.w-32:not(#\\#){width:calc(var(--spacing)*32)}.w-48:not(#\\#){width:calc(var(--spacing)*48)}.w-52:not(#\\#){width:calc(var(--spacing)*52)}.w-60:not(#\\#){width:calc(var(--spacing)*60)}.w-64:not(#\\#){width:calc(var(--spacing)*64)}.w-80:not(#\\#){width:calc(var(--spacing)*80)}.w-96:not(#\\#){width:calc(var(--spacing)*96)}.w-fit:not(#\\#){width:fit-content}.w-full:not(#\\#){width:100%}.w-px:not(#\\#){width:1px}.max-w-100:not(#\\#){max-width:calc(var(--spacing)*100)}.max-w-\\[300px\\]:not(#\\#){max-width:300px}.max-w-md:not(#\\#){max-width:var(--container-md)}.min-w-0:not(#\\#){min-width:calc(var(--spacing)*0)}.min-w-3\\.5:not(#\\#){min-width:calc(var(--spacing)*3.5)}.min-w-4\\.5:not(#\\#){min-width:calc(var(--spacing)*4.5)}.min-w-5:not(#\\#){min-width:calc(var(--spacing)*5)}.min-w-7\\.5:not(#\\#){min-width:calc(var(--spacing)*7.5)}.min-w-50:not(#\\#){min-width:calc(var(--spacing)*50)}.min-w-\\[150px\\]:not(#\\#){min-width:150px}.min-w-fit:not(#\\#){min-width:fit-content}.min-w-full:not(#\\#){min-width:100%}.flex-1:not(#\\#){flex:1}.flex-3:not(#\\#){flex:3}.flex-none:not(#\\#){flex:none}.shrink-0:not(#\\#){flex-shrink:0}.grow:not(#\\#){flex-grow:1}.origin-top-right:not(#\\#){transform-origin:100% 0}.-translate-x-1\\/2:not(#\\#){--tw-translate-x: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-x-full:not(#\\#){--tw-translate-x:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-0:not(#\\#){--tw-translate-x:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-x-full:not(#\\#){--tw-translate-x:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-full:not(#\\#){--tw-translate-y:-100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-0:not(#\\#){--tw-translate-y:calc(var(--spacing)*0);translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-1\\/2:not(#\\#){--tw-translate-y: 50% ;translate:var(--tw-translate-x)var(--tw-translate-y)}.translate-y-full:not(#\\#){--tw-translate-y:100%;translate:var(--tw-translate-x)var(--tw-translate-y)}.scale-0:not(#\\#){--tw-scale-x:0%;--tw-scale-y:0%;--tw-scale-z:0%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-95:not(#\\#){--tw-scale-x:95%;--tw-scale-y:95%;--tw-scale-z:95%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-100:not(#\\#){--tw-scale-x:100%;--tw-scale-y:100%;--tw-scale-z:100%;scale:var(--tw-scale-x)var(--tw-scale-y)}.scale-110:not(#\\#){--tw-scale-x:110%;--tw-scale-y:110%;--tw-scale-z:110%;scale:var(--tw-scale-x)var(--tw-scale-y)}.-rotate-45:not(#\\#){rotate:-45deg}.rotate-45:not(#\\#){rotate:45deg}.rotate-90:not(#\\#){rotate:90deg}.rotate-180:not(#\\#){rotate:180deg}.transform:not(#\\#){transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,)}.animate-bounce:not(#\\#){animation:var(--animate-bounce)}.cursor-auto:not(#\\#){cursor:auto}.cursor-not-allowed:not(#\\#){cursor:not-allowed}.cursor-pointer:not(#\\#){cursor:pointer}.cursor-se-resize:not(#\\#){cursor:se-resize}.resize:not(#\\#){resize:both}.resize-none:not(#\\#){resize:none}.list-disc:not(#\\#){list-style-type:disc}.appearance-none:not(#\\#){-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-2:not(#\\#){grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3:not(#\\#){grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col:not(#\\#){flex-direction:column}.flex-row:not(#\\#){flex-direction:row}.flex-wrap:not(#\\#){flex-wrap:wrap}.place-content-center:not(#\\#){place-content:center}.place-items-center:not(#\\#){place-items:center}.items-center:not(#\\#){align-items:center}.items-end:not(#\\#){align-items:flex-end}.items-start:not(#\\#){align-items:flex-start}.justify-around:not(#\\#){justify-content:space-around}.justify-between:not(#\\#){justify-content:space-between}.justify-center:not(#\\#){justify-content:center}.gap-0\\.5:not(#\\#){gap:calc(var(--spacing)*.5)}.gap-1:not(#\\#){gap:calc(var(--spacing)*1)}.gap-1\\.5:not(#\\#){gap:calc(var(--spacing)*1.5)}.gap-2:not(#\\#){gap:calc(var(--spacing)*2)}.gap-2\\.5:not(#\\#){gap:calc(var(--spacing)*2.5)}.gap-3:not(#\\#){gap:calc(var(--spacing)*3)}.gap-4:not(#\\#){gap:calc(var(--spacing)*4)}.gap-6:not(#\\#){gap:calc(var(--spacing)*6)}.gap-8:not(#\\#){gap:calc(var(--spacing)*8)}.gap-10:not(#\\#){gap:calc(var(--spacing)*10)}.gap-14:not(#\\#){gap:calc(var(--spacing)*14)}:where(.space-y-1>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*1)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*1)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-2>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*2)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*2)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-3>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*3)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*3)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-4>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*4)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-5>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*5)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*5)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-6>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*6)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*6)*calc(1 - var(--tw-space-y-reverse)))}:where(.space-y-8>:not(:last-child)):not(#\\#){--tw-space-y-reverse:0;margin-block-start:calc(calc(var(--spacing)*8)*var(--tw-space-y-reverse));margin-block-end:calc(calc(var(--spacing)*8)*calc(1 - var(--tw-space-y-reverse)))}.gap-x-1:not(#\\#){column-gap:calc(var(--spacing)*1)}.gap-x-2:not(#\\#){column-gap:calc(var(--spacing)*2)}.gap-x-3:not(#\\#){column-gap:calc(var(--spacing)*3)}.gap-x-4:not(#\\#){column-gap:calc(var(--spacing)*4)}.gap-x-20:not(#\\#){column-gap:calc(var(--spacing)*20)}:where(.space-x-4>:not(:last-child)):not(#\\#){--tw-space-x-reverse:0;margin-inline-start:calc(calc(var(--spacing)*4)*var(--tw-space-x-reverse));margin-inline-end:calc(calc(var(--spacing)*4)*calc(1 - var(--tw-space-x-reverse)))}.truncate:not(#\\#){text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.overflow-hidden:not(#\\#){overflow:hidden}.overflow-y-auto:not(#\\#){overflow-y:auto}.rounded:not(#\\#){border-radius:.25rem}.rounded-full:not(#\\#){border-radius:3.40282e38px}.rounded-lg:not(#\\#){border-radius:var(--radius-lg)}.rounded-md:not(#\\#){border-radius:var(--radius-md)}.rounded-xs:not(#\\#){border-radius:var(--radius-xs)}.rounded-t:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.rounded-b:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.rounded-b-none:not(#\\#){border-bottom-right-radius:0;border-bottom-left-radius:0}.border:not(#\\#){border-style:var(--tw-border-style);border-width:1px}.border-0:not(#\\#){border-style:var(--tw-border-style);border-width:0}.border-2:not(#\\#){border-style:var(--tw-border-style);border-width:2px}.border-px:not(#\\#){border-width:1px}.divide:not(#\\#){border-width:.5px}.border-t:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:1px}.border-t-0:not(#\\#){border-top-style:var(--tw-border-style);border-top-width:0}.border-r:not(#\\#){border-right-style:var(--tw-border-style);border-right-width:1px}.border-b:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.border-b-0:not(#\\#){border-bottom-style:var(--tw-border-style);border-bottom-width:0}.border-dashed:not(#\\#){--tw-border-style:dashed;border-style:dashed}.border-body:not(#\\#){border-color:var(--color-body)}.border-body-light:not(#\\#){border-color:var(--color-body-light)}.border-canvas-default:not(#\\#){border-color:var(--color-canvas-default)}.border-card-border:not(#\\#){border-color:var(--color-card-border)}.border-grey-100:not(#\\#){border-color:var(--color-grey-100)}.border-grey-200:not(#\\#){border-color:var(--color-grey-200)}.border-input-border:not(#\\#){border-color:var(--color-input-border)}.border-input-disable:not(#\\#){border-color:var(--color-input-disable)}.border-input-error-border:not(#\\#){border-color:var(--color-input-error-border)}.border-input-focus-border:not(#\\#){border-color:var(--color-input-focus-border)}.border-input-warning-border:not(#\\#){border-color:var(--color-input-warning-border)}.border-negative:not(#\\#){border-color:var(--color-negative)}.border-negative-500:not(#\\#){border-color:var(--color-negative-500)}.border-neutral:not(#\\#){border-color:var(--color-neutral)}.border-panel:not(#\\#){border-color:var(--color-panel)}.border-panel-border:not(#\\#){border-color:var(--color-panel-border)}.border-panel-border-subtle:not(#\\#){border-color:var(--color-panel-border-subtle)}.border-panel-subtle:not(#\\#){border-color:var(--color-panel-subtle)}.border-positive:not(#\\#){border-color:var(--color-positive)}.border-positive-text:not(#\\#){border-color:var(--color-positive-text)}.border-primary:not(#\\#){border-color:var(--color-primary)}.border-primary-700:not(#\\#){border-color:var(--color-primary-700)}.border-primary-hover:not(#\\#){border-color:var(--color-primary-hover)}.border-select-border:not(#\\#){border-color:var(--color-select-border)}.border-tab-border:not(#\\#){border-color:var(--color-tab-border)}.border-transparent:not(#\\#){border-color:#0000}.border-warning:not(#\\#){border-color:var(--color-warning)}.border-warning-bg:not(#\\#){border-color:var(--color-warning-bg)}.border-white:not(#\\#){border-color:var(--color-white)}.bg-blue-500:not(#\\#){background-color:var(--color-blue-500)}.bg-body:not(#\\#){background-color:var(--color-body)}.bg-body-bg:not(#\\#){background-color:var(--color-body-bg)}.bg-canvas-default:not(#\\#){background-color:var(--color-canvas-default)}.bg-canvas-subtle:not(#\\#){background-color:var(--color-canvas-subtle)}.bg-card:not(#\\#){background-color:var(--color-card)}.bg-gray-100:not(#\\#){background-color:var(--color-gray-100)}.bg-grey-50:not(#\\#){background-color:var(--color-grey-50)}.bg-grey-200:not(#\\#){background-color:var(--color-grey-200)}.bg-grey-300:not(#\\#){background-color:var(--color-grey-300)}.bg-grey-400:not(#\\#){background-color:var(--color-grey-400)}.bg-grey-500:not(#\\#){background-color:var(--color-grey-500)}.bg-grey-600:not(#\\#){background-color:var(--color-grey-600)}.bg-grey-700:not(#\\#){background-color:var(--color-grey-700)}.bg-grey-800:not(#\\#){background-color:var(--color-grey-800)}.bg-input-bg:not(#\\#){background-color:var(--color-input-bg)}.bg-input-border:not(#\\#){background-color:var(--color-input-border)}.bg-input-disable:not(#\\#){background-color:var(--color-input-disable)}.bg-input-error-bg:not(#\\#){background-color:var(--color-input-error-bg)}.bg-input-message-bg:not(#\\#){background-color:var(--color-input-message-bg)}.bg-input-option-active-bg:not(#\\#){background-color:var(--color-input-option-active-bg)}.bg-input-option-hover-bg:not(#\\#){background-color:var(--color-input-option-hover-bg)}.bg-input-text:not(#\\#){background-color:var(--color-input-text)}.bg-input-warning-bg:not(#\\#){background-color:var(--color-input-warning-bg)}.bg-negative:not(#\\#){background-color:var(--color-negative)}.bg-negative-400:not(#\\#){background-color:var(--color-negative-400)}.bg-negative-500:not(#\\#){background-color:var(--color-negative-500)}.bg-negative-bg:not(#\\#){background-color:var(--color-negative-bg)}.bg-negative-hover:not(#\\#){background-color:var(--color-negative-hover)}.bg-negative-light:not(#\\#){background-color:var(--color-negative-light)}.bg-panel:not(#\\#){background-color:var(--color-panel)}.bg-panel-0:not(#\\#){background-color:var(--color-panel-0)}.bg-panel-1:not(#\\#){background-color:var(--color-panel-1)}.bg-panel-2:not(#\\#){background-color:var(--color-panel-2)}.bg-panel-3:not(#\\#){background-color:var(--color-panel-3)}.bg-panel-4:not(#\\#){background-color:var(--color-panel-4)}.bg-panel-5:not(#\\#){background-color:var(--color-panel-5)}.bg-panel-subtle:not(#\\#){background-color:var(--color-panel-subtle)}.bg-positive:not(#\\#){background-color:var(--color-positive)}.bg-positive-200:not(#\\#){background-color:var(--color-positive-200)}.bg-positive-500:not(#\\#){background-color:var(--color-positive-500)}.bg-positive-bg:not(#\\#){background-color:var(--color-positive-bg)}.bg-positive-hover:not(#\\#){background-color:var(--color-positive-hover)}.bg-positive-light:not(#\\#){background-color:var(--color-positive-light)}.bg-primary:not(#\\#){background-color:var(--color-primary)}.bg-primary-500:not(#\\#){background-color:var(--color-primary-500)}.bg-primary-600:not(#\\#){background-color:var(--color-primary-600)}.bg-primary-hover:not(#\\#){background-color:var(--color-primary-hover)}.bg-primary-light:not(#\\#){background-color:var(--color-primary-light)}.bg-primary\\/30:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.bg-primary\\/30:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)30%,transparent)}}.bg-select-list-bg:not(#\\#){background-color:var(--color-select-list-bg)}.bg-tab-active-bg:not(#\\#){background-color:var(--color-tab-active-bg)}.bg-tab-bg-default:not(#\\#){background-color:var(--color-tab-bg-default)}.bg-tab-inactive-bg:not(#\\#){background-color:var(--color-tab-inactive-bg)}.bg-transparent:not(#\\#){background-color:#0000}.bg-warning:not(#\\#){background-color:var(--color-warning)}.bg-warning-500:not(#\\#){background-color:var(--color-warning-500)}.bg-warning-bg:not(#\\#){background-color:var(--color-warning-bg)}.bg-warning-hover:not(#\\#){background-color:var(--color-warning-hover)}.bg-warning-light:not(#\\#){background-color:var(--color-warning-light)}.bg-white:not(#\\#){background-color:var(--color-white)}.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right}@supports (background-image:linear-gradient(in lab,red,red)){.bg-linear-to-r:not(#\\#){--tw-gradient-position:to right in oklab}}.bg-linear-to-r:not(#\\#){background-image:linear-gradient(var(--tw-gradient-stops))}.from-green-500:not(#\\#){--tw-gradient-from:var(--color-green-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.from-primary:not(#\\#){--tw-gradient-from:var(--color-primary);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-blue-500:not(#\\#){--tw-gradient-to:var(--color-blue-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.to-pink-500:not(#\\#){--tw-gradient-to:var(--color-pink-500);--tw-gradient-stops:var(--tw-gradient-via-stops,var(--tw-gradient-position),var(--tw-gradient-from)var(--tw-gradient-from-position),var(--tw-gradient-to)var(--tw-gradient-to-position))}.stroke-current:not(#\\#){stroke:currentColor}.p-0:not(#\\#){padding:calc(var(--spacing)*0)}.p-0\\.5:not(#\\#){padding:calc(var(--spacing)*.5)}.p-1:not(#\\#){padding:calc(var(--spacing)*1)}.p-1\\!{padding:calc(var(--spacing)*1)!important}.p-1\\.5:not(#\\#){padding:calc(var(--spacing)*1.5)}.p-2:not(#\\#){padding:calc(var(--spacing)*2)}.p-2\\.5:not(#\\#){padding:calc(var(--spacing)*2.5)}.p-3:not(#\\#){padding:calc(var(--spacing)*3)}.p-4:not(#\\#){padding:calc(var(--spacing)*4)}.p-6:not(#\\#){padding:calc(var(--spacing)*6)}.p-8:not(#\\#){padding:calc(var(--spacing)*8)}.p-10:not(#\\#){padding:calc(var(--spacing)*10)}.p-50:not(#\\#){padding:calc(var(--spacing)*50)}.p-px:not(#\\#){padding:1px}.px-0\\.5:not(#\\#){padding-inline:calc(var(--spacing)*.5)}.px-1:not(#\\#){padding-inline:calc(var(--spacing)*1)}.px-1\\.5:not(#\\#){padding-inline:calc(var(--spacing)*1.5)}.px-2:not(#\\#){padding-inline:calc(var(--spacing)*2)}.px-3:not(#\\#){padding-inline:calc(var(--spacing)*3)}.px-4:not(#\\#){padding-inline:calc(var(--spacing)*4)}.px-6:not(#\\#){padding-inline:calc(var(--spacing)*6)}.px-7:not(#\\#){padding-inline:calc(var(--spacing)*7)}.px-8:not(#\\#){padding-inline:calc(var(--spacing)*8)}.py-0\\.5:not(#\\#){padding-block:calc(var(--spacing)*.5)}.py-1:not(#\\#){padding-block:calc(var(--spacing)*1)}.py-1\\.5:not(#\\#){padding-block:calc(var(--spacing)*1.5)}.py-2:not(#\\#){padding-block:calc(var(--spacing)*2)}.py-3:not(#\\#){padding-block:calc(var(--spacing)*3)}.pt-0\\.5:not(#\\#){padding-top:calc(var(--spacing)*.5)}.pt-1:not(#\\#){padding-top:calc(var(--spacing)*1)}.pt-1\\.5:not(#\\#){padding-top:calc(var(--spacing)*1.5)}.pt-2:not(#\\#){padding-top:calc(var(--spacing)*2)}.pl-1:not(#\\#){padding-left:calc(var(--spacing)*1)}.pl-4:not(#\\#){padding-left:calc(var(--spacing)*4)}.text-center:not(#\\#){text-align:center}.text-left:not(#\\#){text-align:left}.text-2xl:not(#\\#){font-size:var(--text-2xl);line-height:var(--tw-leading,var(--text-2xl--line-height))}.text-3xl:not(#\\#){font-size:var(--text-3xl);line-height:var(--tw-leading,var(--text-3xl--line-height))}.text-4xl:not(#\\#){font-size:var(--text-4xl);line-height:var(--tw-leading,var(--text-4xl--line-height))}.text-5xl:not(#\\#){font-size:var(--text-5xl);line-height:var(--tw-leading,var(--text-5xl--line-height))}.text-6xl:not(#\\#){font-size:var(--text-6xl);line-height:var(--tw-leading,var(--text-6xl--line-height))}.text-7xl:not(#\\#){font-size:var(--text-7xl);line-height:var(--tw-leading,var(--text-7xl--line-height))}.text-8xl:not(#\\#){font-size:var(--text-8xl);line-height:var(--tw-leading,var(--text-8xl--line-height))}.text-9xl:not(#\\#){font-size:var(--text-9xl);line-height:var(--tw-leading,var(--text-9xl--line-height))}.text-base:not(#\\#){font-size:var(--text-base);line-height:var(--tw-leading,var(--text-base--line-height))}.text-lg:not(#\\#){font-size:var(--text-lg);line-height:var(--tw-leading,var(--text-lg--line-height))}.text-sm:not(#\\#){font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.text-xl:not(#\\#){font-size:var(--text-xl);line-height:var(--tw-leading,var(--text-xl--line-height))}.text-xs:not(#\\#){font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.text-s:not(#\\#){font-size:var(--text-s)}.text-xxs:not(#\\#){font-size:var(--text-xxs)}.leading-3:not(#\\#){--tw-leading:calc(var(--spacing)*3);line-height:calc(var(--spacing)*3)}.leading-4:not(#\\#){--tw-leading:calc(var(--spacing)*4);line-height:calc(var(--spacing)*4)}.leading-5:not(#\\#){--tw-leading:calc(var(--spacing)*5);line-height:calc(var(--spacing)*5)}.leading-none:not(#\\#){--tw-leading:1;line-height:1}.font-bold:not(#\\#){--tw-font-weight:var(--font-weight-bold);font-weight:var(--font-weight-bold)}.font-medium:not(#\\#){--tw-font-weight:var(--font-weight-medium);font-weight:var(--font-weight-medium)}.font-semibold:not(#\\#){--tw-font-weight:var(--font-weight-semibold);font-weight:var(--font-weight-semibold)}.font-thin:not(#\\#){--tw-font-weight:var(--font-weight-thin);font-weight:var(--font-weight-thin)}.whitespace-nowrap:not(#\\#){white-space:nowrap}.text-body:not(#\\#){color:var(--color-body)}.text-button-text:not(#\\#){color:var(--color-button-text)}.text-gray-50:not(#\\#){color:var(--color-gray-50)}.text-gray-400:not(#\\#){color:var(--color-gray-400)}.text-gray-500:not(#\\#){color:var(--color-gray-500)}.text-gray-800:not(#\\#){color:var(--color-gray-800)}.text-grey-100:not(#\\#){color:var(--color-grey-100)}.text-grey-200:not(#\\#){color:var(--color-grey-200)}.text-grey-300:not(#\\#){color:var(--color-grey-300)}.text-grey-700:not(#\\#){color:var(--color-grey-700)}.text-inactive-text:not(#\\#){color:var(--color-inactive-text)}.text-inherit:not(#\\#){color:inherit}.text-input-disable:not(#\\#){color:var(--color-input-disable)}.text-input-message-text:not(#\\#){color:var(--color-input-message-text)}.text-input-option-active-text:not(#\\#){color:var(--color-input-option-active-text)}.text-input-placeholder:not(#\\#){color:var(--color-input-placeholder)}.text-input-text:not(#\\#){color:var(--color-input-text)}.text-muted:not(#\\#){color:var(--color-muted)}.text-negative:not(#\\#){color:var(--color-negative)}.text-negative-500:not(#\\#){color:var(--color-negative-500)}.text-negative-dark:not(#\\#){color:var(--color-negative-dark)}.text-negative-text:not(#\\#){color:var(--color-negative-text)}.text-panel-subtle:not(#\\#){color:var(--color-panel-subtle)}.text-positive:not(#\\#){color:var(--color-positive)}.text-positive-500:not(#\\#){color:var(--color-positive-500)}.text-positive-600:not(#\\#){color:var(--color-positive-600)}.text-positive-dark:not(#\\#){color:var(--color-positive-dark)}.text-positive-text:not(#\\#),.text-positive-text\\/70:not(#\\#){color:var(--color-positive-text)}@supports (color:color-mix(in lab,red,red)){.text-positive-text\\/70:not(#\\#){color:color-mix(in oklab,var(--color-positive-text)70%,transparent)}}.text-primary:not(#\\#){color:var(--color-primary)}.text-primary-dark:not(#\\#){color:var(--color-primary-dark)}.text-primary-hover:not(#\\#){color:var(--color-primary-hover)}.text-select-text:not(#\\#){color:var(--color-select-text)}.text-tab-active-fg:not(#\\#){color:var(--color-tab-active-fg)}.text-tab-inactive-fg:not(#\\#){color:var(--color-tab-inactive-fg)}.text-warning:not(#\\#){color:var(--color-warning)}.text-warning-dark:not(#\\#){color:var(--color-warning-dark)}.text-warning-text:not(#\\#){color:var(--color-warning-text)}.capitalize:not(#\\#){text-transform:capitalize}.lowercase:not(#\\#){text-transform:lowercase}.uppercase:not(#\\#){text-transform:uppercase}.italic:not(#\\#){font-style:italic}.underline:not(#\\#){text-decoration-line:underline}.decoration-transparent:not(#\\#){text-decoration-color:#0000}.opacity-0:not(#\\#){opacity:0}.opacity-50:not(#\\#){opacity:.5}.opacity-60:not(#\\#){opacity:.6}.opacity-80:not(#\\#){opacity:.8}.opacity-100:not(#\\#){opacity:1}.shadow:not(#\\#){--tw-shadow:0 1px 3px 0 var(--tw-shadow-color,#0000001a),0 1px 2px -1px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-inner:not(#\\#){--tw-shadow:inset 0 2px 4px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-lg:not(#\\#){--tw-shadow:0 10px 15px -3px var(--tw-shadow-color,#0000001a),0 4px 6px -4px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-md:not(#\\#){--tw-shadow:0 4px 6px -1px var(--tw-shadow-color,#0000001a),0 2px 4px -2px var(--tw-shadow-color,#0000001a);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.shadow-xs:not(#\\#){--tw-shadow:0 1px 2px 0 var(--tw-shadow-color,#0000000d);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-0:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(0px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-1:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ring-input-error-border:not(#\\#){--tw-ring-color:var(--color-input-error-border)}.ring-input-focus-border:not(#\\#){--tw-ring-color:var(--color-input-focus-border)}.ring-input-warning-border:not(#\\#){--tw-ring-color:var(--color-input-warning-border)}.ring-positive:not(#\\#){--tw-ring-color:var(--color-positive)}.outline-hidden:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.outline-hidden:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.outline:not(#\\#),.outline-1:not(#\\#){outline-style:var(--tw-outline-style);outline-width:1px}.outline-s:not(#\\#){outline-width:.5px}.outline-xs:not(#\\#){outline-width:.3px}.outline-xxs:not(#\\#){outline-width:.1px}.outline-canvas-default:not(#\\#){outline-color:var(--color-canvas-default)}.outline-primary:not(#\\#){outline-color:var(--color-primary)}.blur:not(#\\#){--tw-blur:blur(8px);filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.filter:not(#\\#){filter:var(--tw-blur,)var(--tw-brightness,)var(--tw-contrast,)var(--tw-grayscale,)var(--tw-hue-rotate,)var(--tw-invert,)var(--tw-saturate,)var(--tw-sepia,)var(--tw-drop-shadow,)}.transition:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to,opacity,box-shadow,transform,translate,scale,rotate,filter,-webkit-backdrop-filter,backdrop-filter,display,content-visibility,overlay,pointer-events;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-all:not(#\\#){transition-property:all;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-colors:not(#\\#){transition-property:color,background-color,border-color,outline-color,text-decoration-color,fill,stroke,--tw-gradient-from,--tw-gradient-via,--tw-gradient-to;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-opacity:not(#\\#){transition-property:opacity;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.transition-transform:not(#\\#){transition-property:transform,translate,scale,rotate;transition-timing-function:var(--tw-ease,var(--default-transition-timing-function));transition-duration:var(--tw-duration,var(--default-transition-duration))}.duration-150:not(#\\#){--tw-duration:.15s;transition-duration:.15s}.duration-200:not(#\\#){--tw-duration:.2s;transition-duration:.2s}.duration-300:not(#\\#){--tw-duration:.3s;transition-duration:.3s}.ease-in-out:not(#\\#){--tw-ease:var(--ease-in-out);transition-timing-function:var(--ease-in-out)}.ease-out:not(#\\#){--tw-ease:var(--ease-out);transition-timing-function:var(--ease-out)}.outline-solid:not(#\\#){--tw-outline-style:solid;outline-style:solid}.select-none:not(#\\#){-webkit-user-select:none;user-select:none}@media(hover:hover){.group-hover\\:flex:is(:where(.group):hover *):not(#\\#){display:flex}.group-hover\\:grid:is(:where(.group):hover *):not(#\\#){display:grid}.group-hover\\:border-body:is(:where(.group):hover *):not(#\\#){border-color:var(--color-body)}.group-hover\\:border-negative-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-negative-text)}.group-hover\\:border-positive-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-positive-text)}.group-hover\\:border-warning-text:is(:where(.group):hover *):not(#\\#){border-color:var(--color-warning-text)}.group-hover\\:bg-grey-400:is(:where(.group):hover *):not(#\\#){background-color:var(--color-grey-400)}.group-hover\\:bg-negative-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-hover)}.group-hover\\:bg-negative-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-negative-light)}.group-hover\\:bg-positive-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-hover)}.group-hover\\:bg-positive-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-positive-light)}.group-hover\\:bg-primary-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-hover)}.group-hover\\:bg-primary-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-primary-light)}.group-hover\\:bg-warning-hover:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-hover)}.group-hover\\:bg-warning-light:is(:where(.group):hover *):not(#\\#){background-color:var(--color-warning-light)}.group-hover\\:opacity-100:is(:where(.group):hover *):not(#\\#){opacity:1}}.placeholder\\:text-sm:not(#\\#)::placeholder{font-size:var(--text-sm);line-height:var(--tw-leading,var(--text-sm--line-height))}.placeholder\\:text-xs:not(#\\#)::placeholder{font-size:var(--text-xs);line-height:var(--tw-leading,var(--text-xs--line-height))}.placeholder\\:text-s:not(#\\#)::placeholder{font-size:var(--text-s)}.placeholder\\:text-input-placeholder:not(#\\#)::placeholder{color:var(--color-input-placeholder)}.placeholder\\:opacity-60:not(#\\#)::placeholder{opacity:.6}.first\\:bottom-full:first-child:not(#\\#){bottom:100%}.first\\:-ml-1\\.5:first-child:not(#\\#){margin-left:calc(var(--spacing)*-1.5)}.first\\:rounded-t:first-child:not(#\\#){border-top-left-radius:.25rem;border-top-right-radius:.25rem}.first\\:rounded-l:first-child:not(#\\#){border-top-left-radius:.25rem;border-bottom-left-radius:.25rem}.last\\:top-full:last-child:not(#\\#){top:100%}.last\\:-mr-1\\.5:last-child:not(#\\#){margin-right:calc(var(--spacing)*-1.5)}.last\\:rounded-r:last-child:not(#\\#){border-top-right-radius:.25rem;border-bottom-right-radius:.25rem}.last\\:rounded-b:last-child:not(#\\#){border-bottom-right-radius:.25rem;border-bottom-left-radius:.25rem}.only\\:top-full:only-child:not(#\\#){top:100%}.only\\:-mx-0\\.5:only-child:not(#\\#){margin-inline:calc(var(--spacing)*-.5)}.only\\:rounded:only-child:not(#\\#){border-radius:.25rem}.only\\:ring-1:only-child:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(1px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-within\\:border-input-error-border:focus-within:not(#\\#){border-color:var(--color-input-error-border)}.focus-within\\:border-input-focus-border:focus-within:not(#\\#){border-color:var(--color-input-focus-border)}.focus-within\\:border-input-warning-border:focus-within:not(#\\#){border-color:var(--color-input-warning-border)}.focus-within\\:border-positive:focus-within:not(#\\#){border-color:var(--color-positive)}@media(hover:hover){.hover\\:border-canvas-default:hover:not(#\\#){border-color:var(--color-canvas-default)}.hover\\:border-canvas-subtle:hover:not(#\\#){border-color:var(--color-canvas-subtle)}.hover\\:border-negative-hover:hover:not(#\\#){border-color:var(--color-negative-hover)}.hover\\:border-positive-hover:hover:not(#\\#){border-color:var(--color-positive-hover)}.hover\\:border-primary-hover:hover:not(#\\#){border-color:var(--color-primary-hover)}.hover\\:border-warning-hover:hover:not(#\\#){border-color:var(--color-warning-hover)}.hover\\:bg-canvas-default:hover:not(#\\#){background-color:var(--color-canvas-default)}.hover\\:bg-canvas-subtle:hover:not(#\\#){background-color:var(--color-canvas-subtle)}.hover\\:bg-grey-500:hover:not(#\\#){background-color:var(--color-grey-500)}.hover\\:bg-grey-700:hover:not(#\\#){background-color:var(--color-grey-700)}.hover\\:bg-input-option-hover-bg:hover:not(#\\#){background-color:var(--color-input-option-hover-bg)}.hover\\:bg-negative:hover:not(#\\#){background-color:var(--color-negative)}.hover\\:bg-negative-hover:hover:not(#\\#){background-color:var(--color-negative-hover)}.hover\\:bg-positive:hover:not(#\\#){background-color:var(--color-positive)}.hover\\:bg-positive-hover:hover:not(#\\#){background-color:var(--color-positive-hover)}.hover\\:bg-primary:hover:not(#\\#){background-color:var(--color-primary)}.hover\\:bg-primary-600:hover:not(#\\#){background-color:var(--color-primary-600)}.hover\\:bg-primary-hover:hover:not(#\\#){background-color:var(--color-primary-hover)}.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:var(--color-primary)}@supports (color:color-mix(in lab,red,red)){.hover\\:bg-primary\\/20:hover:not(#\\#){background-color:color-mix(in oklab,var(--color-primary)20%,transparent)}}.hover\\:bg-transparent:hover:not(#\\#){background-color:#0000}.hover\\:bg-warning:hover:not(#\\#){background-color:var(--color-warning)}.hover\\:bg-warning-hover:hover:not(#\\#){background-color:var(--color-warning-hover)}.hover\\:text-body:hover:not(#\\#){color:var(--color-body)}.hover\\:text-button-text:hover:not(#\\#){color:var(--color-button-text)}.hover\\:text-grey-200:hover:not(#\\#){color:var(--color-grey-200)}.hover\\:text-negative-400:hover:not(#\\#){color:var(--color-negative-400)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.hover\\:text-primary:hover:not(#\\#){color:var(--color-primary)}.hover\\:text-primary-hover:hover:not(#\\#){color:var(--color-primary-hover)}.hover\\:text-tab-active-fg:hover:not(#\\#){color:var(--color-tab-active-fg)}.hover\\:decoration-current:hover:not(#\\#){text-decoration-color:currentColor}}.focus\\:bg-transparent:focus:not(#\\#){background-color:#0000}.focus\\:ring-2:focus:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus\\:ring-negative:focus:not(#\\#){--tw-ring-color:var(--color-negative)}.focus\\:ring-positive:focus:not(#\\#){--tw-ring-color:var(--color-positive)}.focus\\:ring-primary:focus:not(#\\#){--tw-ring-color:var(--color-primary)}.focus\\:ring-warning:focus:not(#\\#){--tw-ring-color:var(--color-warning)}.focus\\:ring-offset-0:focus:not(#\\#){--tw-ring-offset-width:0px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:ring-offset-2:focus:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}.focus\\:outline-hidden:focus:not(#\\#){--tw-outline-style:none;outline-style:none}@media(forced-colors:active){.focus\\:outline-hidden:focus:not(#\\#){outline-offset:2px;outline:2px solid #0000}}.focus-visible\\:ring-2:focus-visible:not(#\\#){--tw-ring-shadow:var(--tw-ring-inset,)0 0 0 calc(2px + var(--tw-ring-offset-width))var(--tw-ring-color,currentcolor);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.focus-visible\\:ring-primary:focus-visible:not(#\\#){--tw-ring-color:var(--color-primary)}.focus-visible\\:ring-offset-2:focus-visible:not(#\\#){--tw-ring-offset-width:2px;--tw-ring-offset-shadow:var(--tw-ring-inset,)0 0 0 var(--tw-ring-offset-width)var(--tw-ring-offset-color)}:root:not(#\\#){--ws-primary-50:#f2ddff;--ws-primary-100:#edd0ff;--ws-primary-300:#d0acef;--ws-primary-400:#c190ea;--ws-primary-600:#935ebf;--ws-primary-800:#563374;--ws-primary-900:#381e4f;--ws-primary-950:#29133c;--ws-positive-50:#ecf9f2;--ws-positive-100:#d9f2e6;--ws-positive-300:#8ed9b3;--ws-positive-400:#68cd99;--ws-positive-700:#28734d;--ws-positive-800:#28734d;--ws-positive-900:#0d261a;--ws-positive-950:#07130d;--ws-warning-50:#fff7e6;--ws-warning-100:#ffefcc;--ws-warning-300:#fed066;--ws-warning-400:#fdc133;--ws-warning-700:#986a00;--ws-warning-800:#654700;--ws-warning-900:#332300;--ws-warning-950:#191200;--ws-negative-50:#feeeee;--ws-negative-100:#fcdcdc;--ws-negative-300:#f69797;--ws-negative-400:#f37575;--ws-negative-700:#9a3232;--ws-negative-800:#6e2222;--ws-negative-900:#431212;--ws-negative-950:#2e0a0a;--ws-grey-300:#535353;--ws-grey-400:#484848;--ws-grey-600:#3f3f3f;--ws-palette-primary-200:#e0c7f5;--ws-palette-primary-500:#b174e5;--ws-palette-primary-700:#75499a;--ws-button-bg:var(--vscode-button-background,var(--theia-button-background,var(--ws-palette-primary-500)));--ws-button-fg:var(--vscode-button-foreground,var(--theia-button-foreground,var(--ws-palette-white)));--ws-primary-default:var(--ws-button-bg);--ws-button-text:var(--ws-button-fg);--ws-primary-hover:var(--vscode-button-hoverBackground,var(--theia-button-hoverBackground,var(--ws-palette-primary-700)));--ws-primary-light:var(--vscode-editorInfo-foreground,var(--theia-button-secondaryForeground,var(--ws-palette-primary-200)));--ws-primary-dark:var(--vscode-editor-lineHighlightBackground,var(--theia-button-secondaryBackground,var(--ws-palette-primary-700)));--ws-primary-200:var(--ws-primary-light);--ws-primary-500:var(--ws-primary-default);--ws-primary-700:var(--ws-primary-hover);--ws-palette-positive-200:#b3e6cc;--ws-palette-positive-500:#42c080;--ws-palette-positive-600:#359a66;--ws-positive-dark:var(--vscode-gitDecoration-addedResourceForeground,var(--ws-palette-positive-600));--ws-positive-hover:var(--ws-positive-dark);--ws-positive-bg:var(--ws-palette-positive-100);--ws-positive-light:var(--ws-palette-positive-200);--ws-positive-border:var(--ws-positive-500);--ws-positive-text:var(--ws-positive-500);--ws-positive-500:var(--vscode-testing-iconPassed,var(--ws-palette-positive-500));--ws-positive-200:var(--ws-positive-light);--ws-positive-600:var(--ws-positive-dark);--ws-palette-warning-200:#fee099;--ws-palette-warning-500:#fdb100;--ws-palette-warning-600:#ca8e00;--ws-warning-hover:var(--ws-warning-600);--ws-warning-text:var(--ws-warning-500);--ws-warning-border:var(--ws-warning-500);--ws-warning-500:var(--vscode-list-warningForeground,var(--ws-palette-warning-500));--ws-warning-bg:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-500));--ws-warning-light:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-200));--ws-warning-dark:var(--vscode-inputValidation-warningBackground,var(--ws-palette-warning-600));--ws-warning-200:var(--ws-warning-light);--ws-warning-600:var(--ws-warning-dark);--ws-palette-negative-200:#f9baba;--ws-palette-negative-500:#f05252;--ws-palette-negative-600:#c54242;--ws-negative-hover:var(--ws-negative-600);--ws-negative-text:var(--ws-negative-500);--ws-negative-500:var(--vscode-errorForeground,var(--ws-palette-negative-500));--ws-negative-light:var(--ws-palette-negative-200);--ws-negative-dark:var(--ws-palette-negative-600);--ws-negative-200:var(--ws-negative-light);--ws-negative-600:var(--ws-negative-dark);--ws-palette-white:#fff;--ws-palette-grey-50:#f1f5f9;--ws-palette-grey-100:#ccc;--ws-palette-grey-200:#888;--ws-palette-grey-300:#535353;--ws-palette-grey-400:#484848;--ws-palette-grey-500:#444;--ws-palette-grey-600:#3f3f3f;--ws-palette-grey-700:#393939;--ws-palette-grey-800:#383838;--ws-palette-grey-900:#262626;--ws-palette-grey-950:#151515;--ws-bg-default:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-white)));--ws-bg-foreground:var(--vscode-editor-foreground,var(--theia-editor-foreground,var(--ws-palette-grey-50)));--ws-grey-50:var(--ws-bg-foreground);--ws-grey-100:var(--vscode-panel-background,var(--theia-panel-background,var(--ws-palette-grey-100)));--ws-grey-200:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-200)));--ws-grey-950:var(--vscode-panel-border,var(--theia-border-color,var(--ws-palette-grey-950)));--ws-grey-500:var(--vscode-descriptionForeground,var(--ws-palette-grey-500));--ws-grey-800:var(--vscode-descriptionForeground,var(--ws-palette-grey-800));--ws-card-bg:var(--vscode-editorGroupHeader-tabsBackground,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900)));--ws-card-border:var(--vscode-editorGroupHeader-tabsBorder,var(--theia-editorGroupHeader-tabsBorder,var(--ws-palette-grey-50)));--ws-palette-input-bg:var(--ws-palette-grey-300);--ws-palette-input-border:var(--ws-palette-grey-300);--ws-palette-input-text:var(--ws-palette-grey-50);--ws-palette-input-placeholder:var(--ws-palette-grey-200);--ws-palette-input-focus-border:var(--ws-palette-grey-50);--ws-input-bg:var(--vscode-input-background,var(--vscode-editorWidget-background,var(--theia-input-background,var(--ws-palette-input-bg))));--ws-input-border:var(--vscode-input-border,var(--vscode-panel-border,var(--theia-input-border,var(--ws-palette-input-border))));--ws-input-text:var(--vscode-input-foreground,var(--vscode-editor-foreground,var(--theia-input-foreground,var(--ws-palette-input-text))));--ws-input-placeholder:var(--vscode-input-placeholderForeground,var(--vscode-editor-foreground,var(--theia-input-placeholderForeground,var(--ws-palette-input-placeholder))));--ws-input-focus-border:var(--vscode-focusBorder,var(--vscode-button-background,var(--theia-focusBorder,var(--ws-palette-primary-500))));--ws-select-bg:var(--vscode-dropdown-background,var(--vscode-editorWidget-background,var(--theia-dropdown-background,var(--ws-input-bg))));--ws-select-border:var(--vscode-dropdown-border,var(--vscode-panel-border,var(--theia-dropdown-border,var(--ws-input-border))));--ws-select-text:var(--vscode-dropdown-foreground,var(--vscode-editor-foreground,var(--theia-dropdown-foreground,var(--ws-input-text))));--ws-select-list-bg:var(--vscode-dropdown-listBackground,var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-900))));--ws-input-option-hover-bg:var(--vscode-list-hoverBackground,var(--vscode-button-hoverBackground,var(--theia-list-hoverBackground,var(--ws-palette-primary-700))));--ws-input-option-active-bg:var(--vscode-list-activeSelectionBackground,var(--theia-list-activeSelectionBackground,var(--ws-palette-primary-500)));--ws-input-option-active-text:var(--vscode-list-activeSelectionForeground,var(--theia-list-activeSelectionForeground,var(--ws-palette-white)));--ws-input-error-border:var(--vscode-inputValidation-errorBorder,var(--theia-inputValidation-errorBorder,var(--ws-palette-negative-500)));--ws-input-error-bg:var(--vscode-inputValidation-errorBackground,var(--theia-inputValidation-errorBackground,var(--ws-palette-negative-200)));--ws-input-warning-border:var(--vscode-inputValidation-warningBorder,var(--theia-inputValidation-warningBorder,var(--ws-palette-warning-500)));--ws-input-warning-bg:var(--vscode-inputValidation-warningBackground,var(--theia-inputValidation-warningBackground,var(--ws-palette-warning-200)));--ws-input-info-bg:var(--vscode-panel-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200)));--ws-input-message-bg:var(--vscode-editor-lineHighlightBackground,var(--vscode-editorWidget-background,var(--theia-inputValidation-infoBackground,var(--ws-palette-primary-200))));--ws-input-message-text:var(--vscode-editorInfo-foreground,var(--vscode-editor-foreground,var(--theia-inputValidation-infoForeground,var(--ws-palette-primary-500))));--ws-inactive-text:var(--vscode-disabledForeground,var(--theia-disabled-foreground,var(--ws-palette-grey-200)));--ws-text-muted:var(--vscode-descriptionForeground,var(--vscode-editor-foreground,var(--theia-descriptionForeground,var(--ws-palette-grey-100))));--ws-disable-bg:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-300)));--ws-disable-input:var(--vscode-button-disabledBackground,var(--theia-button-disabledBackground,var(--ws-palette-grey-200)));--ws-panel-0:var(--vscode-editor-background,var(--theia-editor-background,var(--ws-palette-grey-900)));--ws-panel-1:var(--vscode-sideBar-background,var(--vscode-panel-background,var(--theia-sideBar-background,var(--ws-palette-grey-700))));--ws-panel-2:var(--vscode-panel-background,var(--vscode-editor-background,var(--theia-panel-background,var(--ws-palette-grey-900))));--ws-panel-3:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--theia-editorGroupHeader-tabsBackground,var(--ws-palette-grey-900))));--ws-panel-4:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-300)));--ws-panel-5:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-950)));--ws-panel-light:var(--vscode-editorWidget-background,var(--theia-editorWidget-background,var(--ws-palette-grey-200)));--ws-panel-border-subtle:var(--vscode-panel-border,var(--vscode-tab-border,var(--theia-border-color,var(--ws-palette-grey-100))));--ws-panel-border-strong:var(--vscode-contrastBorder,var(--vscode-focusBorder,var(--theia-contrastBorder,var(--ws-palette-grey-300))));--ws-tab-bg-default:var(--vscode-editorGroupHeader-tabsBackground,var(--vscode-editorWidget-background,var(--ws-palette-grey-900)));--ws-tab-border:var(--vscode-tab-border,var(--vscode-editorGroupHeader-tabsBorder,var(--ws-palette-grey-950)));--ws-tab-active-bg:var(--vscode-tab-activeBackground,var(--ws-palette-grey-800));--ws-tab-active-fg:var(--vscode-tab-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-tab-inactive-bg:var(--vscode-tab-inactiveBackground,var(--ws-palette-grey-900));--ws-tab-inactive-fg:var(--vscode-tab-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-200)));--ws-tab-hover-bg:var(--vscode-tab-hoverBackground,var(--vscode-toolbar-hoverBackground,var(--ws-palette-grey-700)));--ws-panel-header-bg:var(--vscode-sideBarSectionHeader-background,var(--vscode-editorGroupHeader-tabsBackground,var(--ws-palette-grey-800)));--ws-panel-header-fg:var(--vscode-sideBarSectionHeader-foreground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-bg:var(--vscode-panel-background,var(--vscode-editor-background,var(--ws-bg-default)));--ws-panel-border:var(--vscode-panel-border,var(--vscode-tab-border,var(--ws-palette-grey-950)));--ws-panel-title-active-border:var(--vscode-panelTitle-activeBorder,var(--vscode-focusBorder,var(--ws-palette-primary-500)));--ws-panel-title-active-fg:var(--vscode-panelTitle-activeForeground,var(--vscode-editor-foreground,var(--ws-bg-foreground)));--ws-panel-title-inactive-fg:var(--vscode-panelTitle-inactiveForeground,var(--vscode-descriptionForeground,var(--ws-palette-grey-100)))}.center-absolute:not(#\\#){--tw-translate-x: -50% ;--tw-translate-y: -50% ;translate:var(--tw-translate-x)var(--tw-translate-y);transform:var(--tw-rotate-x,)var(--tw-rotate-y,)var(--tw-rotate-z,)var(--tw-skew-x,)var(--tw-skew-y,);position:absolute;top:50%;left:50%}.ws-group:hover .ws-checkbox-hover-target{opacity:1!important}.simplebar-scrollbar:not(#\\#):before{background-color:#ccc}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-scale-x{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-y{syntax:"*";inherits:false;initial-value:1}@property --tw-scale-z{syntax:"*";inherits:false;initial-value:1}@property --tw-rotate-x{syntax:"*";inherits:false}@property --tw-rotate-y{syntax:"*";inherits:false}@property --tw-rotate-z{syntax:"*";inherits:false}@property --tw-skew-x{syntax:"*";inherits:false}@property --tw-skew-y{syntax:"*";inherits:false}@property --tw-space-y-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-space-x-reverse{syntax:"*";inherits:false;initial-value:0}@property --tw-border-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-gradient-position{syntax:"*";inherits:false}@property --tw-gradient-from{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-via{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-to{syntax:"<color>";inherits:false;initial-value:#0000}@property --tw-gradient-stops{syntax:"*";inherits:false}@property --tw-gradient-via-stops{syntax:"*";inherits:false}@property --tw-gradient-from-position{syntax:"<length-percentage>";inherits:false;initial-value:0%}@property --tw-gradient-via-position{syntax:"<length-percentage>";inherits:false;initial-value:50%}@property --tw-gradient-to-position{syntax:"<length-percentage>";inherits:false;initial-value:100%}@property --tw-leading{syntax:"*";inherits:false}@property --tw-font-weight{syntax:"*";inherits:false}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-outline-style{syntax:"*";inherits:false;initial-value:solid}@property --tw-blur{syntax:"*";inherits:false}@property --tw-brightness{syntax:"*";inherits:false}@property --tw-contrast{syntax:"*";inherits:false}@property --tw-grayscale{syntax:"*";inherits:false}@property --tw-hue-rotate{syntax:"*";inherits:false}@property --tw-invert{syntax:"*";inherits:false}@property --tw-opacity{syntax:"*";inherits:false}@property --tw-saturate{syntax:"*";inherits:false}@property --tw-sepia{syntax:"*";inherits:false}@property --tw-drop-shadow{syntax:"*";inherits:false}@property --tw-drop-shadow-color{syntax:"*";inherits:false}@property --tw-drop-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-drop-shadow-size{syntax:"*";inherits:false}@property --tw-duration{syntax:"*";inherits:false}@property --tw-ease{syntax:"*";inherits:false}@keyframes bounce{0%,to{animation-timing-function:cubic-bezier(.8,0,1,1);transform:translateY(-25%)}50%{animation-timing-function:cubic-bezier(0,0,.2,1);transform:none}}[data-simplebar]{position:relative;flex-direction:column;flex-wrap:wrap;justify-content:flex-start;align-content:flex-start;align-items:flex-start}.simplebar-wrapper{overflow:hidden;width:inherit;height:inherit;max-width:inherit;max-height:inherit}.simplebar-mask{direction:inherit;position:absolute;overflow:hidden;padding:0;margin:0;left:0;top:0;bottom:0;right:0;width:auto!important;height:auto!important;z-index:0}.simplebar-offset{direction:inherit!important;box-sizing:inherit!important;resize:none!important;position:absolute;top:0;left:0;bottom:0;right:0;padding:0;margin:0;-webkit-overflow-scrolling:touch}.simplebar-content-wrapper{direction:inherit;box-sizing:border-box!important;position:relative;display:block;height:100%;width:auto;max-width:100%;max-height:100%;overflow:auto;scrollbar-width:none;-ms-overflow-style:none}.simplebar-content-wrapper::-webkit-scrollbar,.simplebar-hide-scrollbar::-webkit-scrollbar{display:none;width:0;height:0}.simplebar-content:after,.simplebar-content:before{content:" ";display:table}.simplebar-placeholder{max-height:100%;max-width:100%;width:100%;pointer-events:none}.simplebar-height-auto-observer-wrapper{box-sizing:inherit!important;height:100%;width:100%;max-width:1px;position:relative;float:left;max-height:1px;overflow:hidden;z-index:-1;padding:0;margin:0;pointer-events:none;flex-grow:inherit;flex-shrink:0;flex-basis:0}.simplebar-height-auto-observer{box-sizing:inherit;display:block;opacity:0;position:absolute;top:0;left:0;height:1000%;width:1000%;min-height:1px;min-width:1px;overflow:hidden;pointer-events:none;z-index:-1}.simplebar-track{z-index:1;position:absolute;right:0;bottom:0;pointer-events:none;overflow:hidden}[data-simplebar].simplebar-dragging,[data-simplebar].simplebar-dragging .simplebar-content{pointer-events:none;-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}[data-simplebar].simplebar-dragging .simplebar-track{pointer-events:all}.simplebar-scrollbar{position:absolute;left:0;right:0;min-height:10px}.simplebar-scrollbar:before{position:absolute;content:"";background:#000;border-radius:7px;left:2px;right:2px;opacity:0;transition:opacity .2s .5s linear}.simplebar-scrollbar.simplebar-visible:before{opacity:.5;transition-delay:0s;transition-duration:0s}.simplebar-track.simplebar-vertical{top:0;width:11px}.simplebar-scrollbar:before{top:2px;bottom:2px;left:2px;right:2px}.simplebar-track.simplebar-horizontal{left:0;height:11px}.simplebar-track.simplebar-horizontal .simplebar-scrollbar{right:auto;left:0;top:0;bottom:0;min-height:0;min-width:10px;width:auto}[data-simplebar-direction=rtl] .simplebar-track.simplebar-vertical{right:auto;left:0}.simplebar-dummy-scrollbar-size{direction:rtl;position:fixed;opacity:0;visibility:hidden;height:500px;width:500px;overflow-y:hidden;overflow-x:scroll;-ms-overflow-style:scrollbar!important}.simplebar-dummy-scrollbar-size>div{width:200%;height:200%;margin:10px 0}.simplebar-hide-scrollbar{position:fixed;left:0;visibility:hidden;overflow-y:scroll;scrollbar-width:none;-ms-overflow-style:none}
2
+ `,document.head.prepend(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const I5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M8.82 19.748c.001.245.075.486.214.69l.38 1.004c.117.172.573.312.758.41.185.097.391.148.601.148h2.454c.21 0 .417-.05.601-.148.185-.098.621-.238.737-.41l.402-1.003c.138-.205.213-.445.213-.691l.001-1.498H8.82l.002 1.498ZM5 8.875c0 1.733.654 3.314 1.732 4.522.658.737 1.685 2.275 2.077 3.573l.004.03h6.374l.004-.03c.392-1.298 1.42-2.836 2.076-3.573A6.766 6.766 0 0 0 19 8.875C19 5.07 15.854 1.988 11.978 2 7.921 2.012 5 5.241 5 8.875Z",fill:"currentColor"})}),N5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),M5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Wo=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),D5=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M7.105 12.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.024l3.682-3.529a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206-3.377-3.174a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"}),A.jsx("path",{d:"M7.105 6.87a.47.47 0 0 0 .003.689l3.713 3.491.027.027.768.722a.528.528 0 0 0 .407.14.523.523 0 0 0 .32-.143l.761-.73a.513.513 0 0 0 .025-.025l3.682-3.528a.47.47 0 0 0-.003-.688l-.768-.722a.533.533 0 0 0-.726.003l-3.346 3.206L8.59 6.138a.533.533 0 0 0-.725.003l-.761.73Z",fill:"currentColor"})]}),L5=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M16.811 11.031a.47.47 0 0 0-.003-.688l-3.714-3.491a.485.485 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.14.524.524 0 0 0-.32.143l-.76.73a.518.518 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"}),A.jsx("path",{d:"M16.811 17.032a.47.47 0 0 0-.003-.689l-3.714-3.491a.514.514 0 0 0-.026-.027l-.768-.722a.528.528 0 0 0-.408-.139.523.523 0 0 0-.32.142l-.76.73a.563.563 0 0 0-.025.025l-3.682 3.528a.47.47 0 0 0 .003.688l.768.722c.201.19.526.188.725-.003l3.347-3.206 3.377 3.174c.2.19.526.188.725-.003l.761-.73Z",fill:"currentColor"})]}),ac=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),zf=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M11 21c5.523 0 10-4.477 10-10S16.523 1 11 1 1 5.477 1 11s4.477 10 10 10Zm0-14a1 1 0 1 0 0-2 1 1 0 0 0 0 2Zm1 1.5a.5.5 0 0 0-.5-.5h-2a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h.5v4h-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h3a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5H12V8.5Z",fill:"currentColor"})}),z5=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{d:"M13 17.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-8a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v8ZM12 6a1 1 0 1 0 0 2 1 1 0 0 0 0-2Z",fill:"currentColor"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm0 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z",fill:"currentColor"})]}),$5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.5 10.889a.5.5 0 0 1 .5.5v1.222a.5.5 0 0 1-.5.5h-19a.5.5 0 0 1-.5-.5V11.39a.5.5 0 0 1 .5-.5h19Z",fill:"currentColor"})}),Jy=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.7 6.7v13.6h13.6v-8.925c0-.235.19-.425.425-.425h.85c.235 0 .425.19.425.425v9.775c0 .47-.38.85-.85.85H2.85a.85.85 0 0 1-.85-.85V5.85c0-.47.38-.85.85-.85h9.775c.235 0 .425.19.425.425v.85c0 .235-.19.425-.425.425H3.7Z",fill:"currentColor"}),A.jsx("path",{d:"M21.435 2.01a.468.468 0 0 1 .554.555L20.42 9.757a.454.454 0 0 1-.77.215l-1.555-1.555-3.453 3.453a.444.444 0 0 1-.628 0L12.13 9.986a.444.444 0 0 1 0-.628l3.453-3.453-1.555-1.555a.454.454 0 0 1 .215-.77l7.192-1.57Z",fill:"currentColor"})]}),j5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.389 2a.5.5 0 0 0-.5.5v8.389H2.5a.5.5 0 0 0-.5.5v1.222a.5.5 0 0 0 .5.5h8.389V21.5a.5.5 0 0 0 .5.5h1.222a.5.5 0 0 0 .5-.5v-8.389H21.5a.5.5 0 0 0 .5-.5V11.39a.5.5 0 0 0-.5-.5h-8.389V2.5a.5.5 0 0 0-.5-.5H11.39Z",fill:"currentColor"})}),F5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),H5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M18.797 12.299a.524.524 0 0 0 0-.726l-2.349-2.487-.007.008L9.856 2.12a.58.58 0 0 0-.835 0L7.089 4.166a.524.524 0 0 0 0 .726l6.66 7.051-6.66 7.053a.524.524 0 0 0 0 .725l1.932 2.045a.58.58 0 0 0 .835 0l8.941-9.467Z",fill:"currentColor"})}),W5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2C6.477 2 2 6.477 2 12s4.477 10 10 10 10-4.477 10-10S17.523 2 12 2Zm1 15.5a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7ZM11 7a1 1 0 1 1 2 0 1 1 0 0 1-2 0Z",fill:"currentColor"})}),B5=e=>A.jsxs("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:[A.jsx("path",{fill:"#fff",d:"M8 5h8v14H8z"}),A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 22c5.523 0 10-4.477 10-10S17.523 2 12 2 2 6.477 2 12s4.477 10 10 10ZM11 6.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v7a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5v-7ZM13 17a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",fill:"currentColor"})]}),V5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.076 2.203a.5.5 0 0 0-.354-.146H3.001a1 1 0 0 0-1 1v18a1 1 0 0 0 1 1h18a1 1 0 0 0 1-1V8.335a.5.5 0 0 0-.147-.354l-5.778-5.778ZM12 19.057a3 3 0 1 0 0-6 3 3 0 0 0 0 6Zm-8-14.5a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-4Z",fill:"currentColor"})}),U5=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M13.774 15.7A7.513 7.513 0 0 1 4.2 4.2a7.511 7.511 0 0 1 10.623 0 7.515 7.515 0 0 1 .876 9.573l6.01 6.01a.995.995 0 0 1 0 1.407l-.52.519a.995.995 0 0 1-1.406 0l-6.009-6.01Zm-1.076-3a4.507 4.507 0 1 1-6.373-6.374 4.507 4.507 0 0 1 6.373 6.373Z",fill:"currentColor"})}),Op=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.953 3.53c-.393-.707-1.513-.707-1.906 0L2.114 19.612c-.354.638.16 1.388.953 1.388h17.866c.792 0 1.307-.75.953-1.388L12.953 3.53ZM11.508 8a.504.504 0 0 0-.507.531l.491 8A.505.505 0 0 0 12 17c.269 0 .49-.205.508-.469l.492-8A.504.504 0 0 0 12.492 8h-.984ZM12 20c.561 0 1.016-.448 1.016-1s-.455-1-1.016-1c-.561 0-1.016.448-1.016 1s.455 1 1.016 1Z",fill:"currentColor"})}),q5=(e,t)=>{const r=new Array(e.length+t.length);for(let n=0;n<e.length;n++)r[n]=e[n];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r},G5=(e,t)=>({classGroupId:e,validator:t}),Qy=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),Ac="-",pm=[],Z5="arbitrary..",K5=e=>{const t=X5(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:i=>{if(i.startsWith("[")&&i.endsWith("]"))return Y5(i);const s=i.split(Ac),l=s[0]===""&&s.length>1?1:0;return ew(s,l,t)},getConflictingClassGroupIds:(i,s)=>{if(s){const l=n[i],c=r[i];return l?c?q5(c,l):l:c||pm}return r[i]||pm}}},ew=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],i=r.nextPart.get(n);if(i){const u=ew(e,t+1,i);if(u)return u}const s=r.validators;if(s===null)return;const l=t===0?e.join(Ac):e.slice(t).join(Ac),c=s.length;for(let u=0;u<c;u++){const f=s[u];if(f.validator(l))return f.classGroupId}},Y5=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(":"),n=t.slice(0,r);return n?Z5+n:void 0})(),X5=e=>{const{theme:t,classGroups:r}=e;return J5(r,t)},J5=(e,t)=>{const r=Qy();for(const n in e){const i=e[n];kp(i,r,n,t)}return r},kp=(e,t,r,n)=>{const i=e.length;for(let s=0;s<i;s++){const l=e[s];Q5(l,t,r,n)}},Q5=(e,t,r,n)=>{if(typeof e=="string"){e2(e,t,r);return}if(typeof e=="function"){t2(e,t,r,n);return}r2(e,t,r,n)},e2=(e,t,r)=>{const n=e===""?t:tw(t,e);n.classGroupId=r},t2=(e,t,r,n)=>{if(n2(e)){kp(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(G5(r,e))},r2=(e,t,r,n)=>{const i=Object.entries(e),s=i.length;for(let l=0;l<s;l++){const[c,u]=i[l];kp(u,tw(t,c),r,n)}},tw=(e,t)=>{let r=e;const n=t.split(Ac),i=n.length;for(let s=0;s<i;s++){const l=n[s];let c=r.nextPart.get(l);c||(c=Qy(),r.nextPart.set(l,c)),r=c}return r},n2=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,i2=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const i=(s,l)=>{r[s]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(s){let l=r[s];if(l!==void 0)return l;if((l=n[s])!==void 0)return i(s,l),l},set(s,l){s in r?r[s]=l:i(s,l)}}},$f="!",hm=":",o2=[],gm=(e,t,r,n,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:i}),s2=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=i=>{const s=[];let l=0,c=0,u=0,f;const g=i.length;for(let v=0;v<g;v++){const y=i[v];if(l===0&&c===0){if(y===hm){s.push(i.slice(u,v)),u=v+1;continue}if(y==="/"){f=v;continue}}y==="["?l++:y==="]"?l--:y==="("?c++:y===")"&&c--}const p=s.length===0?i:i.slice(u);let h=p,b=!1;p.endsWith($f)?(h=p.slice(0,-1),b=!0):p.startsWith($f)&&(h=p.slice(1),b=!0);const S=f&&f>u?f-u:void 0;return gm(s,b,h,S)};if(t){const i=t+hm,s=n;n=l=>l.startsWith(i)?s(l.slice(i.length)):gm(o2,!1,l,void 0,!0)}if(r){const i=n;n=s=>r({className:s,parseClassName:i})}return n},a2=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let i=[];for(let s=0;s<r.length;s++){const l=r[s],c=l[0]==="[",u=t.has(l);c||u?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(l)):i.push(l)}return i.length>0&&(i.sort(),n.push(...i)),n}},l2=e=>({cache:i2(e.cacheSize),parseClassName:s2(e),sortModifiers:a2(e),...K5(e)}),c2=/\s+/,u2=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:i,sortModifiers:s}=t,l=[],c=e.trim().split(c2);let u="";for(let f=c.length-1;f>=0;f-=1){const g=c[f],{isExternal:p,modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}=r(g);if(p){u=g+(u.length>0?" "+u:u);continue}let y=!!v,m=n(y?S.substring(0,v):S);if(!m){if(!y){u=g+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=g+(u.length>0?" "+u:u);continue}y=!1}const w=h.length===0?"":h.length===1?h[0]:s(h).join(":"),x=b?w+$f:w,O=x+m;if(l.indexOf(O)>-1)continue;l.push(O);const _=i(m,y);for(let R=0;R<_.length;++R){const H=_[R];l.push(x+H)}u=g+(u.length>0?" "+u:u)}return u},d2=(...e)=>{let t=0,r,n,i="";for(;t<e.length;)(r=e[t++])&&(n=rw(r))&&(i&&(i+=" "),i+=n);return i},rw=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=rw(e[n]))&&(r&&(r+=" "),r+=t);return r},vm=(e,...t)=>{let r,n,i,s;const l=u=>{const f=t.reduce((g,p)=>p(g),e());return r=l2(f),n=r.cache.get,i=r.cache.set,s=c,c(u)},c=u=>{const f=n(u);if(f)return f;const g=u2(u,r);return i(u,g),g};return s=l,(...u)=>s(d2(...u))},f2=[],Tt=e=>{const t=r=>r[e]||f2;return t.isThemeGetter=!0,t},nw=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,iw=/^\((?:(\w[\w-]*):)?(.+)\)$/i,p2=/^\d+\/\d+$/,h2=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,g2=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,v2=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,m2=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,b2=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vo=e=>p2.test(e),De=e=>!!e&&!Number.isNaN(Number(e)),ni=e=>!!e&&Number.isInteger(Number(e)),Id=e=>e.endsWith("%")&&De(e.slice(0,-1)),Dn=e=>h2.test(e),y2=()=>!0,w2=e=>g2.test(e)&&!v2.test(e),ow=()=>!1,x2=e=>m2.test(e),S2=e=>b2.test(e),E2=e=>!ye(e)&&!we(e),_2=e=>Bo(e,lw,ow),ye=e=>nw.test(e),Pi=e=>Bo(e,cw,w2),Nd=e=>Bo(e,R2,De),mm=e=>Bo(e,sw,ow),O2=e=>Bo(e,aw,S2),Al=e=>Bo(e,uw,x2),we=e=>iw.test(e),bs=e=>Vo(e,cw),k2=e=>Vo(e,C2),bm=e=>Vo(e,sw),A2=e=>Vo(e,lw),T2=e=>Vo(e,aw),Tl=e=>Vo(e,uw,!0),Bo=(e,t,r)=>{const n=nw.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Vo=(e,t,r=!1)=>{const n=iw.exec(e);return n?n[1]?t(n[1]):r:!1},sw=e=>e==="position"||e==="percentage",aw=e=>e==="image"||e==="url",lw=e=>e==="length"||e==="size"||e==="bg-size",cw=e=>e==="length",R2=e=>e==="number",C2=e=>e==="family-name",uw=e=>e==="shadow",ym=()=>{const e=Tt("color"),t=Tt("font"),r=Tt("text"),n=Tt("font-weight"),i=Tt("tracking"),s=Tt("leading"),l=Tt("breakpoint"),c=Tt("container"),u=Tt("spacing"),f=Tt("radius"),g=Tt("shadow"),p=Tt("inset-shadow"),h=Tt("text-shadow"),b=Tt("drop-shadow"),S=Tt("blur"),v=Tt("perspective"),y=Tt("aspect"),m=Tt("ease"),w=Tt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],O=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...O(),we,ye],R=()=>["auto","hidden","clip","visible","scroll"],H=()=>["auto","contain","none"],P=()=>[we,ye,u],z=()=>[vo,"full","auto",...P()],U=()=>[ni,"none","subgrid",we,ye],$=()=>["auto",{span:["full",ni,we,ye]},ni,we,ye],M=()=>[ni,"auto",we,ye],D=()=>["auto","min","max","fr",we,ye],F=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],I=()=>["start","end","center","stretch","center-safe","end-safe"],K=()=>["auto",...P()],te=()=>[vo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],Y=()=>[e,we,ye],ve=()=>[...O(),bm,mm,{position:[we,ye]}],j=()=>["no-repeat",{repeat:["","x","y","space","round"]}],W=()=>["auto","cover","contain",A2,_2,{size:[we,ye]}],ee=()=>[Id,bs,Pi],Q=()=>["","none","full",f,we,ye],X=()=>["",De,bs,Pi],ue=()=>["solid","dashed","dotted","double"],ie=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ne=()=>[De,Id,bm,mm],de=()=>["","none",S,we,ye],pe=()=>["none",De,we,ye],he=()=>["none",De,we,ye],xe=()=>[De,we,ye],Z=()=>[vo,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Dn],breakpoint:[Dn],color:[y2],container:[Dn],"drop-shadow":[Dn],ease:["in","out","in-out"],font:[E2],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Dn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Dn],shadow:[Dn],spacing:["px",De],text:[Dn],"text-shadow":[Dn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",vo,ye,we,y]}],container:["container"],columns:[{columns:[De,ye,we,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:_()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:H()}],"overscroll-x":[{"overscroll-x":H()}],"overscroll-y":[{"overscroll-y":H()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:z()}],"inset-x":[{"inset-x":z()}],"inset-y":[{"inset-y":z()}],start:[{start:z()}],end:[{end:z()}],top:[{top:z()}],right:[{right:z()}],bottom:[{bottom:z()}],left:[{left:z()}],visibility:["visible","invisible","collapse"],z:[{z:[ni,"auto",we,ye]}],basis:[{basis:[vo,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[De,vo,"auto","initial","none",ye]}],grow:[{grow:["",De,we,ye]}],shrink:[{shrink:["",De,we,ye]}],order:[{order:[ni,"first","last","none",we,ye]}],"grid-cols":[{"grid-cols":U()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":U()}],"row-start-end":[{row:$()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":D()}],"auto-rows":[{"auto-rows":D()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...F(),"normal"]}],"justify-items":[{"justify-items":[...I(),"normal"]}],"justify-self":[{"justify-self":["auto",...I()]}],"align-content":[{content:["normal",...F()]}],"align-items":[{items:[...I(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...I(),{baseline:["","last"]}]}],"place-content":[{"place-content":F()}],"place-items":[{"place-items":[...I(),"baseline"]}],"place-self":[{"place-self":["auto",...I()]}],p:[{p:P()}],px:[{px:P()}],py:[{py:P()}],ps:[{ps:P()}],pe:[{pe:P()}],pt:[{pt:P()}],pr:[{pr:P()}],pb:[{pb:P()}],pl:[{pl:P()}],m:[{m:K()}],mx:[{mx:K()}],my:[{my:K()}],ms:[{ms:K()}],me:[{me:K()}],mt:[{mt:K()}],mr:[{mr:K()}],mb:[{mb:K()}],ml:[{ml:K()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:te()}],w:[{w:[c,"screen",...te()]}],"min-w":[{"min-w":[c,"screen","none",...te()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...te()]}],h:[{h:["screen","lh",...te()]}],"min-h":[{"min-h":["screen","lh","none",...te()]}],"max-h":[{"max-h":["screen","lh",...te()]}],"font-size":[{text:["base",r,bs,Pi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,we,Nd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",Id,ye]}],"font-family":[{font:[k2,ye,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[i,we,ye]}],"line-clamp":[{"line-clamp":[De,"none",we,Nd]}],leading:[{leading:[s,...P()]}],"list-image":[{"list-image":["none",we,ye]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",we,ye]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:Y()}],"text-color":[{text:Y()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ue(),"wavy"]}],"text-decoration-thickness":[{decoration:[De,"from-font","auto",we,Pi]}],"text-decoration-color":[{decoration:Y()}],"underline-offset":[{"underline-offset":[De,"auto",we,ye]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",we,ye]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",we,ye]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ve()}],"bg-repeat":[{bg:j()}],"bg-size":[{bg:W()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},ni,we,ye],radial:["",we,ye],conic:[ni,we,ye]},T2,O2]}],"bg-color":[{bg:Y()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:Y()}],"gradient-via":[{via:Y()}],"gradient-to":[{to:Y()}],rounded:[{rounded:Q()}],"rounded-s":[{"rounded-s":Q()}],"rounded-e":[{"rounded-e":Q()}],"rounded-t":[{"rounded-t":Q()}],"rounded-r":[{"rounded-r":Q()}],"rounded-b":[{"rounded-b":Q()}],"rounded-l":[{"rounded-l":Q()}],"rounded-ss":[{"rounded-ss":Q()}],"rounded-se":[{"rounded-se":Q()}],"rounded-ee":[{"rounded-ee":Q()}],"rounded-es":[{"rounded-es":Q()}],"rounded-tl":[{"rounded-tl":Q()}],"rounded-tr":[{"rounded-tr":Q()}],"rounded-br":[{"rounded-br":Q()}],"rounded-bl":[{"rounded-bl":Q()}],"border-w":[{border:X()}],"border-w-x":[{"border-x":X()}],"border-w-y":[{"border-y":X()}],"border-w-s":[{"border-s":X()}],"border-w-e":[{"border-e":X()}],"border-w-t":[{"border-t":X()}],"border-w-r":[{"border-r":X()}],"border-w-b":[{"border-b":X()}],"border-w-l":[{"border-l":X()}],"divide-x":[{"divide-x":X()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":X()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ue(),"hidden","none"]}],"divide-style":[{divide:[...ue(),"hidden","none"]}],"border-color":[{border:Y()}],"border-color-x":[{"border-x":Y()}],"border-color-y":[{"border-y":Y()}],"border-color-s":[{"border-s":Y()}],"border-color-e":[{"border-e":Y()}],"border-color-t":[{"border-t":Y()}],"border-color-r":[{"border-r":Y()}],"border-color-b":[{"border-b":Y()}],"border-color-l":[{"border-l":Y()}],"divide-color":[{divide:Y()}],"outline-style":[{outline:[...ue(),"none","hidden"]}],"outline-offset":[{"outline-offset":[De,we,ye]}],"outline-w":[{outline:["",De,bs,Pi]}],"outline-color":[{outline:Y()}],shadow:[{shadow:["","none",g,Tl,Al]}],"shadow-color":[{shadow:Y()}],"inset-shadow":[{"inset-shadow":["none",p,Tl,Al]}],"inset-shadow-color":[{"inset-shadow":Y()}],"ring-w":[{ring:X()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:Y()}],"ring-offset-w":[{"ring-offset":[De,Pi]}],"ring-offset-color":[{"ring-offset":Y()}],"inset-ring-w":[{"inset-ring":X()}],"inset-ring-color":[{"inset-ring":Y()}],"text-shadow":[{"text-shadow":["none",h,Tl,Al]}],"text-shadow-color":[{"text-shadow":Y()}],opacity:[{opacity:[De,we,ye]}],"mix-blend":[{"mix-blend":[...ie(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ie()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[De]}],"mask-image-linear-from-pos":[{"mask-linear-from":ne()}],"mask-image-linear-to-pos":[{"mask-linear-to":ne()}],"mask-image-linear-from-color":[{"mask-linear-from":Y()}],"mask-image-linear-to-color":[{"mask-linear-to":Y()}],"mask-image-t-from-pos":[{"mask-t-from":ne()}],"mask-image-t-to-pos":[{"mask-t-to":ne()}],"mask-image-t-from-color":[{"mask-t-from":Y()}],"mask-image-t-to-color":[{"mask-t-to":Y()}],"mask-image-r-from-pos":[{"mask-r-from":ne()}],"mask-image-r-to-pos":[{"mask-r-to":ne()}],"mask-image-r-from-color":[{"mask-r-from":Y()}],"mask-image-r-to-color":[{"mask-r-to":Y()}],"mask-image-b-from-pos":[{"mask-b-from":ne()}],"mask-image-b-to-pos":[{"mask-b-to":ne()}],"mask-image-b-from-color":[{"mask-b-from":Y()}],"mask-image-b-to-color":[{"mask-b-to":Y()}],"mask-image-l-from-pos":[{"mask-l-from":ne()}],"mask-image-l-to-pos":[{"mask-l-to":ne()}],"mask-image-l-from-color":[{"mask-l-from":Y()}],"mask-image-l-to-color":[{"mask-l-to":Y()}],"mask-image-x-from-pos":[{"mask-x-from":ne()}],"mask-image-x-to-pos":[{"mask-x-to":ne()}],"mask-image-x-from-color":[{"mask-x-from":Y()}],"mask-image-x-to-color":[{"mask-x-to":Y()}],"mask-image-y-from-pos":[{"mask-y-from":ne()}],"mask-image-y-to-pos":[{"mask-y-to":ne()}],"mask-image-y-from-color":[{"mask-y-from":Y()}],"mask-image-y-to-color":[{"mask-y-to":Y()}],"mask-image-radial":[{"mask-radial":[we,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":ne()}],"mask-image-radial-to-pos":[{"mask-radial-to":ne()}],"mask-image-radial-from-color":[{"mask-radial-from":Y()}],"mask-image-radial-to-color":[{"mask-radial-to":Y()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":O()}],"mask-image-conic-pos":[{"mask-conic":[De]}],"mask-image-conic-from-pos":[{"mask-conic-from":ne()}],"mask-image-conic-to-pos":[{"mask-conic-to":ne()}],"mask-image-conic-from-color":[{"mask-conic-from":Y()}],"mask-image-conic-to-color":[{"mask-conic-to":Y()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ve()}],"mask-repeat":[{mask:j()}],"mask-size":[{mask:W()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,ye]}],filter:[{filter:["","none",we,ye]}],blur:[{blur:de()}],brightness:[{brightness:[De,we,ye]}],contrast:[{contrast:[De,we,ye]}],"drop-shadow":[{"drop-shadow":["","none",b,Tl,Al]}],"drop-shadow-color":[{"drop-shadow":Y()}],grayscale:[{grayscale:["",De,we,ye]}],"hue-rotate":[{"hue-rotate":[De,we,ye]}],invert:[{invert:["",De,we,ye]}],saturate:[{saturate:[De,we,ye]}],sepia:[{sepia:["",De,we,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",we,ye]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[De,we,ye]}],"backdrop-contrast":[{"backdrop-contrast":[De,we,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",De,we,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[De,we,ye]}],"backdrop-invert":[{"backdrop-invert":["",De,we,ye]}],"backdrop-opacity":[{"backdrop-opacity":[De,we,ye]}],"backdrop-saturate":[{"backdrop-saturate":[De,we,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",De,we,ye]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":P()}],"border-spacing-x":[{"border-spacing-x":P()}],"border-spacing-y":[{"border-spacing-y":P()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",we,ye]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[De,"initial",we,ye]}],ease:[{ease:["linear","initial",m,we,ye]}],delay:[{delay:[De,we,ye]}],animate:[{animate:["none",w,we,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,we,ye]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:he()}],"scale-x":[{"scale-x":he()}],"scale-y":[{"scale-y":he()}],"scale-z":[{"scale-z":he()}],"scale-3d":["scale-3d"],skew:[{skew:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[we,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:Y()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:Y()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",we,ye]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":P()}],"scroll-mx":[{"scroll-mx":P()}],"scroll-my":[{"scroll-my":P()}],"scroll-ms":[{"scroll-ms":P()}],"scroll-me":[{"scroll-me":P()}],"scroll-mt":[{"scroll-mt":P()}],"scroll-mr":[{"scroll-mr":P()}],"scroll-mb":[{"scroll-mb":P()}],"scroll-ml":[{"scroll-ml":P()}],"scroll-p":[{"scroll-p":P()}],"scroll-px":[{"scroll-px":P()}],"scroll-py":[{"scroll-py":P()}],"scroll-ps":[{"scroll-ps":P()}],"scroll-pe":[{"scroll-pe":P()}],"scroll-pt":[{"scroll-pt":P()}],"scroll-pr":[{"scroll-pr":P()}],"scroll-pb":[{"scroll-pb":P()}],"scroll-pl":[{"scroll-pl":P()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",we,ye]}],fill:[{fill:["none",...Y()]}],"stroke-w":[{stroke:[De,bs,Pi,Nd]}],stroke:[{stroke:["none",...Y()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},P2=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:i={},override:s={}})=>(Zs(e,"cacheSize",t),Zs(e,"prefix",r),Zs(e,"experimentalParseClassName",n),Rl(e.theme,s.theme),Rl(e.classGroups,s.classGroups),Rl(e.conflictingClassGroups,s.conflictingClassGroups),Rl(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Zs(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),Cl(e.theme,i.theme),Cl(e.classGroups,i.classGroups),Cl(e.conflictingClassGroups,i.conflictingClassGroups),Cl(e.conflictingClassGroupModifiers,i.conflictingClassGroupModifiers),dw(e,i,"orderSensitiveModifiers"),e),Zs=(e,t,r)=>{r!==void 0&&(e[t]=r)},Rl=(e,t)=>{if(t)for(const r in t)Zs(e,r,t[r])},Cl=(e,t)=>{if(t)for(const r in t)dw(e,t,r)},dw=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},I2=(e,...t)=>typeof e=="function"?vm(ym,e,...t):vm(()=>P2(ym(),e),...t);function fw(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wm={exports:{}};/*!
3
3
  Copyright (c) 2018 Jed Watson.
4
4
  Licensed under the MIT License (MIT), see
5
5
  http://jedwatson.github.io/classnames
6
- */var mm;function NI(){return mm||(mm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(vm)),vm.exports}var MI=NI();const DI=lw(MI),LI=PI({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function ce(...e){return LI(DI(e))}const _a={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},Dr={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},zI=`
6
+ */var xm;function N2(){return xm||(xm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(wm)),wm.exports}var M2=N2();const D2=fw(M2),L2=I2({extend:{classGroups:{"font-size":["text-xxs","text-xs","text-s","text-sm","text-base","text-lg","text-xl","text-2xl","text-3xl","text-4xl","text-5xl","text-6xl","text-7xl","text-8xl","text-9xl"],"text-color":["text-body","text-muted","text-inactive-text","text-button-text","text-positive-text","text-negative-text","text-negative","text-warning-text","text-input-text","text-select-text","text-input-message-text","text-placeholder"]}}});function le(...e){return L2(D2(e))}const _a={sm:{checkbox:"size-4",hoverSquare:"size-2.5",text:"text-xs",spacing:"gap-1",icon:"size-3.25"},md:{checkbox:"size-5",hoverSquare:"size-3.5",text:"text-sm",spacing:"gap-1.5",icon:"size-4"},lg:{checkbox:"size-6",hoverSquare:"size-4",text:"text-base",spacing:"gap-2",icon:"size-5"}},Lr={primary:{checked:"bg-primary border-primary",unchecked:"border border-body bg-transparent",checkedHover:"hover:bg-primary-hover hover:border-primary-hover",hoverSquare:"bg-primary-hover",focus:"focus:ring-primary",label:"text-body"},positive:{checked:"bg-positive border-positive",unchecked:"border border-positive bg-transparent",checkedHover:"hover:bg-positive-hover hover:border-positive-hover",hoverSquare:"bg-positive-hover",focus:"focus:ring-positive",label:"text-positive"},warning:{checked:"bg-warning border-warning",unchecked:"border border-warning bg-transparent",checkedHover:"hover:bg-warning-hover hover:border-warning-hover",hoverSquare:"bg-warning-hover",focus:"focus:ring-warning",label:"text-warning"},negative:{checked:"bg-negative border-negative",unchecked:"border border-negative bg-transparent",checkedHover:"hover:bg-negative-hover hover:border-negative-hover",hoverSquare:"bg-negative-hover",focus:"focus:ring-negative",label:"text-negative"}},z2=`
7
7
  appearance-none border rounded transition-all duration-200
8
8
  focus:ring-2 focus:ring-offset-2 focus:outline-hidden
9
9
  relative
10
- `,$I=(e,t,r)=>{const{isChecked:n,isIndeterminate:i,isDisabled:s,isInvalid:l}=r,c=n||i;return ce(zI,_a[e].checkbox,{"cursor-pointer":!s},l?{[Dr.negative.checked]:c,[Dr.negative.unchecked]:!c,[Dr.negative.checkedHover]:!s&&c,[Dr.negative.focus]:!s,"border-input-disable":s}:{[Dr[t].checked]:c&&!s,[Dr[t].unchecked]:!c&&!s,[Dr[t].checkedHover]:!s&&c,[Dr[t].focus]:!s,"border-input-disable":s,"bg-input-disable":s&&c})},jI=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return ce(_a[e].text,i?{[Dr.negative.label]:i}:{"text-input-disable":n,[Dr[t].label]:!n,"cursor-pointer":!n})},FI=e=>ce("inline-flex items-center ws-group",_a[e].spacing),HI=(e,t,r)=>ce("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",_a[e].hoverSquare,{[Dr.negative.hoverSquare]:r,[Dr[t].hoverSquare]:!r}),BI=e=>`${_a[e].icon}`,WI=e=>A.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:A.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),VI=N.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:i="md",color:s="primary",onChange:l,onFocus:c,onBlur:u,value:f,defaultValue:g,name:p,id:h,...b},S)=>{const[v,y]=N.useState(g),m=f===!0||v===!0,w=f===null,x=m||w,O={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},_=$I(i,s,O),R=jI(i,s,O),H=FI(i),I=HI(i,s,r),$=BI(i);return A.jsxs("label",{"data-qui":"Checkbox",className:H,children:[A.jsxs("div",{className:_,children:[A.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:U=>{f===void 0&&y(U.target.checked),l==null||l(U)},onFocus:c,onBlur:u,name:p,id:h,...b}),x&&A.jsx("div",{className:"center-absolute",children:w?A.jsx(WI,{className:$}):A.jsx(N2,{className:$})}),!x&&!t&&A.jsx("div",{className:I})]}),e&&A.jsxs("span",{className:R,children:[e,n&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});VI.displayName="Checkbox";const Oa={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},ua={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},UI=`
10
+ `,$2=(e,t,r)=>{const{isChecked:n,isIndeterminate:i,isDisabled:s,isInvalid:l}=r,c=n||i;return le(z2,_a[e].checkbox,{"cursor-pointer":!s},l?{[Lr.negative.checked]:c,[Lr.negative.unchecked]:!c,[Lr.negative.checkedHover]:!s&&c,[Lr.negative.focus]:!s,"border-input-disable":s}:{[Lr[t].checked]:c&&!s,[Lr[t].unchecked]:!c&&!s,[Lr[t].checkedHover]:!s&&c,[Lr[t].focus]:!s,"border-input-disable":s,"bg-input-disable":s&&c})},j2=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return le(_a[e].text,i?{[Lr.negative.label]:i}:{"text-input-disable":n,[Lr[t].label]:!n,"cursor-pointer":!n})},F2=e=>le("inline-flex items-center ws-group",_a[e].spacing),H2=(e,t,r)=>le("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",_a[e].hoverSquare,{[Lr.negative.hoverSquare]:r,[Lr[t].hoverSquare]:!r}),W2=e=>`${_a[e].icon}`,B2=e=>A.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:A.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),V2=N.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:i="md",color:s="primary",onChange:l,onFocus:c,onBlur:u,value:f,defaultValue:g,name:p,id:h,...b},S)=>{const[v,y]=N.useState(g),m=f===!0||v===!0,w=f===null,x=m||w,O={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},_=$2(i,s,O),R=j2(i,s,O),H=F2(i),P=H2(i,s,r),z=W2(i);return A.jsxs("label",{"data-qui":"Checkbox",className:H,children:[A.jsxs("div",{className:_,children:[A.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:U=>{f===void 0&&y(U.target.checked),l==null||l(U)},onFocus:c,onBlur:u,name:p,id:h,...b}),x&&A.jsx("div",{className:"center-absolute",children:w?A.jsx(B2,{className:z}):A.jsx(N5,{className:z})}),!x&&!t&&A.jsx("div",{className:P})]}),e&&A.jsxs("span",{className:R,children:[e,n&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});V2.displayName="Checkbox";const Oa={sm:{container:"gap-2",radio:"size-3",label:"text-xs",dot:"size-2",hoverDot:"size-1.5"},md:{container:"gap-2.5",radio:"size-4",label:"text-sm",dot:"size-2.5",hoverDot:"size-2"},lg:{container:"gap-3",radio:"size-6",label:"text-base",dot:"size-4",hoverDot:"size-3"}},ua={primary:{radio:"border-body-light group-hover:border-body",radioInvalid:"border-negative",dot:"bg-primary group-hover:bg-primary-hover",hoverDot:"bg-primary-hover",label:"text-body"},positive:{radio:"border-positive group-hover:border-positive-text",radioInvalid:"border-negative",dot:"bg-positive group-hover:bg-positive-hover",hoverDot:"bg-positive-bg",label:"text-positive-text"},warning:{radio:"border-warning group-hover:border-warning-text",radioInvalid:"border-negative",dot:"bg-warning group-hover:bg-warning-hover",hoverDot:"bg-warning-bg",label:"text-warning-text"},negative:{radio:"border-negative group-hover:border-negative-text",radioInvalid:"border-negative",dot:"bg-negative group-hover:bg-negative-hover",hoverDot:"bg-negative-bg",label:"text-negative"}},U2=`
11
11
  relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
12
12
  focus:outline-hidden focus:ring-2 focus:ring-offset-0
13
13
  cursor-pointer peer
14
- `,qI=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return ce(UI,Oa[e].radio,i?ua[t].radioInvalid:{[ua[t].radio]:!n,"cursor-not-allowed opacity-60":n})},GI=(e,t,r)=>{const{checked:n,isDisabled:i,isInvalid:s}=r;return ce("center-absolute rounded-full transition-all duration-200 ease-in-out",Oa[e].dot,s?"bg-negative":{[ua[t].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!i})},ZI=(e,t,r)=>ce("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Oa[e].hoverDot,{[ua[t].hoverDot]:!r,"bg-negative-bg":r}),KI=e=>ce("cursor-pointer select-none transition-colors duration-200",Oa[e].label),YI=(e,t,r,n)=>{const{isDisabled:i,isInvalid:s}=r;return ce("inline-flex items-center group",Oa[e].container,s?{"text-negative":s}:{[ua[t].label]:!i,"text-muted":i},n)},XI=N.createContext(null),JI=()=>{const e=N.useContext(XI);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},QI=N.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:i,isInvalid:s,isRequired:l,className:c,...u},f)=>{const g=JI(),p=r??g.size,h=n??g.color,b=i??g.isDisabled,S=s??g.isInvalid,v=l??g.isRequired,y=g.value===e,m={checked:y,isDisabled:b,isInvalid:S},w=qI(p,h,m),x=GI(p,h,m),O=ZI(p,h,S),_=KI(p),R=YI(p,h,m,c),H=()=>{b||g.onChange(e)};return A.jsxs("label",{"data-qui":"RadioItem",className:R,children:[A.jsxs("div",{className:ce("relative",{hidden:g.hideIndicator}),children:[A.jsx("input",{ref:f,type:"radio",value:e,checked:y,disabled:b,required:v,"aria-invalid":S,"aria-label":t?void 0:u["aria-label"],name:g.name,onChange:H,className:"sr-only",...u}),A.jsxs("div",{className:w,children:[A.jsx("div",{className:x}),!y&&!b&&A.jsx("div",{className:O})]})]}),t&&A.jsxs("span",{className:_,children:[t,v&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});QI.displayName="RadioItem";const cw={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},eP={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},tP=(e,t,r,n)=>{const i=cw[e],s=eP[r],l=ce("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},i.container);return n?ce(l,"text-inactive-text",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):ce(l,s.bg[t],s.text[t],s.hover[t],s.border[t])},rP=e=>ce("flex items-center justify-center gap-1",cw[e].text),Fn=N.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:i,disabled:s,...l},c)=>A.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:ce(tP(e,t,r,s),rP(e),n),disabled:s,...l,children:i}));Fn.displayName="Button";const uw=N.createContext(null),ka=()=>{const e=N.useContext(uw);if(!e)throw new Error("Input components must be used within Input.Root");return e},Uo={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Hi={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},nP=()=>ce("flex flex-col relative"),iP=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:i,hasArea:s,isInvalid:l})=>{const c=Hi[l?"negative":t];return ce("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",c.text,i?c.borderMessage:!n&&c.border,Uo[e].group,{"ring-1":i,"opacity-60":r,"items-center":!s})},oP=({size:e,color:t})=>ce("bg-transparent ring-0 w-full","focus:outline-hidden",[Uo[e].input],Hi[t].placeholder),bm=({size:e,color:t})=>ce("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Uo[e].input,Hi[t].placeholder),sP=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=Hi[t];return ce("transition-colors duration-200 rounded max-h-full h-fit",Uo[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.action:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.actionHover]:n&&!r,"pointer-events-none":!n})},aP=({size:e,color:t,isDisabled:r})=>ce("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",r?"text-muted":Hi[t].messageText,Hi[t].borderMessage,Hi[t].messageBackground,Uo[e].message,{"opacity-60":r}),lP=({size:e})=>ce(Uo[e].icon);function Ac(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cP=typeof global=="object"&&global&&global.Object===Object&&global,uP=typeof self=="object"&&self&&self.Object===Object&&self,dw=cP||uP||Function("return this")(),Rd=function(){return dw.Date.now()},dP=/\s/;function fP(e){for(var t=e.length;t--&&dP.test(e.charAt(t)););return t}var pP=/^\s+/;function hP(e){return e&&e.slice(0,fP(e)+1).replace(pP,"")}var Tc=dw.Symbol,fw=Object.prototype,gP=fw.hasOwnProperty,vP=fw.toString,ws=Tc?Tc.toStringTag:void 0;function mP(e){var t=gP.call(e,ws),r=e[ws];try{e[ws]=void 0;var n=!0}catch{}var i=vP.call(e);return n&&(t?e[ws]=r:delete e[ws]),i}var bP=Object.prototype,yP=bP.toString;function wP(e){return yP.call(e)}var xP="[object Null]",SP="[object Undefined]",ym=Tc?Tc.toStringTag:void 0;function EP(e){return e==null?e===void 0?SP:xP:ym&&ym in Object(e)?mP(e):wP(e)}function _P(e){return e!=null&&typeof e=="object"}var OP="[object Symbol]";function kP(e){return typeof e=="symbol"||_P(e)&&EP(e)==OP}var wm=NaN,AP=/^[-+]0x[0-9a-f]+$/i,TP=/^0b[01]+$/i,RP=/^0o[0-7]+$/i,CP=parseInt;function xm(e){if(typeof e=="number")return e;if(kP(e))return wm;if(Ac(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Ac(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hP(e);var r=TP.test(e);return r||RP.test(e)?CP(e.slice(2),r?2:8):AP.test(e)?wm:+e}var IP="Expected a function",PP=Math.max,NP=Math.min;function ac(e,t,r){var n,i,s,l,c,u,f=0,g=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(IP);t=xm(t)||0,Ac(r)&&(g=!!r.leading,p="maxWait"in r,s=p?PP(xm(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function b(R){var H=n,I=i;return n=i=void 0,f=R,l=e.apply(I,H),l}function S(R){return f=R,c=setTimeout(m,t),g?b(R):l}function v(R){var H=R-u,I=R-f,$=t-H;return p?NP($,s-I):$}function y(R){var H=R-u,I=R-f;return u===void 0||H>=t||H<0||p&&I>=s}function m(){var R=Rd();if(y(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,h&&n?b(R):(n=i=void 0,l)}function x(){c!==void 0&&clearTimeout(c),f=0,n=u=i=c=void 0}function O(){return c===void 0?l:w(Rd())}function _(){var R=Rd(),H=y(R);if(n=arguments,i=this,u=R,H){if(c===void 0)return S(u);if(p)return clearTimeout(c),c=setTimeout(m,t),b(u)}return c===void 0&&(c=setTimeout(m,t)),l}return _.cancel=x,_.flush=O,_}var MP="Expected a function";function DP(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(MP);return Ac(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),ac(e,t,{leading:n,maxWait:t,trailing:i})}var ko=function(){return ko=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ko.apply(this,arguments)};function pw(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function hw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var gw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(i.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=i.value}}return n},t);return r};function vw(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function mw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function bw(e){return".".concat(e.split(" ").join("."))}var Ep=!!(typeof window<"u"&&window.document&&window.document.createElement),LP=Object.freeze({__proto__:null,addClasses:vw,canUseDOM:Ep,classNamesToQuery:bw,getElementDocument:hw,getElementWindow:pw,getOptions:gw,removeClasses:mw}),_o=null,Sm=null;Ep&&window.addEventListener("resize",function(){Sm!==window.devicePixelRatio&&(Sm=window.devicePixelRatio,_o=null)});function Em(){if(_o===null){if(typeof document>"u")return _o=0,_o;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),_o=r}return _o}var ii=pw,Cd=hw,zP=gw,oi=vw,si=mw,ar=bw,xs=(function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ii(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,oi(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){si(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(oi(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){si(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var s,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(s=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(s||l)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var s,l,c,u,f,g,p,h,b,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,m=n.axis[n.draggedAxis].track,w=(l=(s=m.rect)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,O=(u=(c=n.contentWrapperEl)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,_=parseInt((g=(f=n.elStyles)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?y=i.pageY:y=i.pageX;var R=y-((h=(p=m.rect)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(b=m.rect)===null||b===void 0?void 0:b[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var H=R/(w-x.size),I=H*(O-_);n.draggedAxis==="x"&&n.isRtl&&(I=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-I:I),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=I}},this.onEndDrag=function(i){n.isDragging=!1;var s=Cd(n.el),l=ii(n.el);i.preventDefault(),i.stopPropagation(),si(n.el,n.classNames.dragging),n.onStopScrolling(),s.removeEventListener("mousemove",n.drag,!0),s.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",n.preventClick,!0),s.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=ko(ko({},e.defaultOptions),r),this.classNames=ko(ko({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=DP(this._onMouseMove,64),this.onWindowResize=ac(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ac(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ac(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),s=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Em()}catch{return Em()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Cd(t),i=ii(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Ep&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(ar(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(ar(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(ar(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(ar(this.classNames.offset)),this.maskEl=this.el.querySelector(ar(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,ar(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(ar(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(ar(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(ar(this.classNames.track)).concat(ar(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(ar(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(ar(this.classNames.scrollbar)))||null,this.options.autoHide||(oi(this.axis.x.scrollbar.el,this.classNames.visible),oi(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=ii(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=n.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ii(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||f,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&f>r,this.axis.y.isOverflowing=u>g,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>s-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>g-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,l=s/i,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];f=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-f:f,t==="x"&&this.isRtl&&(f=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?f:-f);var g=f/(l-u),p=~~((c-s.size)*g);p=t==="x"&&this.isRtl?-p+(c-s.size):p,s.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(oi(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(si(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),oi(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?oi(r.scrollbar.el,this.classNames.hover):si(r.scrollbar.el,this.classNames.hover)):(si(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),si(this.axis[t].track.el,this.classNames.hover),si(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y"),this.isDragging=!0;var i=Cd(this.el),s=ii(this.el),l=this.axis[r].scrollbar,c=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=c-(((n=l.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,oi(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,s,l,c;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var f=ii(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var g=this.axis[r].scrollbar,p=(s=(i=g.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&s!==void 0?s:0,h=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-p:this.mouseX-p,v=S<0?-1:1,y=v===-1?b-h:b+h,m=40,w=function(){n.contentWrapperEl&&(v===-1?b>y&&(b-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)):b<y&&(b+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ii(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=zP,e.helpers=LP,e})(),xr=function(){return xr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},xr.apply(this,arguments)};function $P(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var _p=V.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,s=$P(e,["children","scrollableNodeProps"]),l=V.useRef(),c=V.useRef(),u=V.useRef(),f={},g={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(xs.defaultOptions,b)?f[b]=s[b]:g[b]=s[b]});var p=xr(xr({},xs.defaultOptions.classNames),f.classNames),h=xr(xr({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:f.tabIndex||xs.defaultOptions.tabIndex,role:"region","aria-label":f.ariaLabel||xs.defaultOptions.ariaLabel});return V.useEffect(function(){var b;return c.current=h.ref?h.ref.current:c.current,l.current&&(b=new xs(l.current,xr(xr(xr({},f),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),V.createElement("div",xr({"data-simplebar":"init",ref:l},g),V.createElement("div",{className:p.wrapper},V.createElement("div",{className:p.heightAutoObserverWrapperEl},V.createElement("div",{className:p.heightAutoObserverEl})),V.createElement("div",{className:p.mask},V.createElement("div",{className:p.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:xr(xr({},h),{ref:c}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):V.createElement("div",xr({},h),V.createElement("div",{className:p.contentEl},r)))),V.createElement("div",{className:p.placeholder})),V.createElement("div",{className:"".concat(p.track," ").concat(p.horizontal)},V.createElement("div",{className:p.scrollbar})),V.createElement("div",{className:"".concat(p.track," ").concat(p.vertical)},V.createElement("div",{className:p.scrollbar})))});_p.displayName="SimpleBar";const yw=N.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:i=!1,className:s,children:l,...c},u)=>{const[f,g]=N.useState(!1),[p,h]=N.useState(!1),b={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:i,hasMessage:f,setHasMessage:g,hasArea:p,setHasArea:h};return A.jsx(uw.Provider,{value:b,children:A.jsx("div",{ref:u,"data-qui":"Input",className:ce(nP(),s),...c,children:l})})}),ww=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}=ka();return A.jsx("div",{ref:n,"data-qui":"InputGroup",className:ce(iP({size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}),e),...r,children:t})}),xw=N.forwardRef(({className:e,...t},r)=>{const{size:n,color:i,isInvalid:s,isDisabled:l,isReadOnly:c}=ka(),{isDisabled:u,isReadOnly:f,...g}=t;return A.jsx("input",{ref:r,disabled:l||u,readOnly:f||c||!1,"aria-invalid":s,className:ce(oP({size:n,color:i}),e),...g})}),jP=N.forwardRef(({className:e,wrapperClassName:t,autoHeight:r,...n},i)=>{const{size:s,color:l,isInvalid:c,isDisabled:u,setHasArea:f}=ka(),g=N.useRef(null),p=i||g,h=N.useRef(null);N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]);const b=N.useCallback(()=>{if(g.current){const x=g.current;x.style.height="auto",x.style.height=`${x.scrollHeight}px`}},[]),S=x=>{var O;b(),(O=n.onInput)==null||O.call(n,x)};N.useEffect(()=>{b()},[b,n.value]),N.useEffect(()=>{r&&h.current&&h.current.style.removeProperty("height")},[r]);const v=x=>{x.preventDefault();const O=h.current;if(!O)return;const _=x.clientY,R=O.offsetHeight,H=$=>{const U=R+($.clientY-_);U>30&&(O.style.height=U+"px")},I=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",I)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",I)},{isDisabled:y,isReadOnly:m,...w}=n;return A.jsxs("div",{ref:h,className:ce("w-full relative",!r&&!n.rows&&"h-[120px]",t),children:[r?A.jsx("textarea",{ref:p,rows:1,className:ce(bm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{overflow:"hidden"},...w}):A.jsx(_p,{style:{height:"100%"},children:A.jsx("textarea",{ref:p,rows:1,className:ce(bm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{height:"auto",overflow:"hidden",width:"100%"},...w})}),!r&&A.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:v,children:A.jsx(F2,{})})]})}),Sw=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=ka(),g=r||f,p=sP({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"InputIcon",className:ce(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),FP=N.forwardRef(({icon:e,className:t,children:r,...n},i)=>{const{size:s,color:l,setHasMessage:c,isDisabled:u}=ka();return N.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),A.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:ce(aP({size:s,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&A.jsx("div",{className:ce(lP({size:s}),t),children:e}),A.jsx("p",{children:r})]})});yw.displayName="InputRoot";ww.displayName="InputGroup";xw.displayName="InputField";jP.displayName="InputArea";Sw.displayName="InputIcon";FP.displayName="InputMessage";const Ss={Root:yw,Group:ww,Field:xw,Icon:Sw},da={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},HP=({color:e})=>ce("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",da[e].container,da[e].icon),BP=({color:e})=>ce("text-xs font-medium leading-3",da[e].text),WP=({color:e})=>ce("p-0.5 rounded cursor-pointer",da[e].button,da[e].icon),Ew=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:i,children:s,delay:l=0,trigger:c="hover",className:u,container:f,isHidden:g=!1})=>{const[p,h]=N.useState(!1),[b,S]=N.useState(!1),[v,y]=N.useState({position:r,transform:""}),m=N.useRef(null),w=N.useRef(null),x=N.useRef(null),O=p&&!g;N.useEffect(()=>{O||S(!1)},[O]);const _=N.useCallback(()=>{if(!m.current||!w.current)return;const D=m.current.getBoundingClientRect(),F=w.current.getBoundingClientRect(),P=window.innerWidth,K=window.innerHeight,ee=window.scrollX,Y=window.scrollY,ve=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,P),z=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,K),W=4;let X=r,te={position:X,transform:""};const J=de=>{const{top:he,left:fe,width:ye,height:Z}=D,Te=he+Y,ge=fe+ee;switch(de){case"up":return{top:`${Te-F.height-W}px`,left:`${ge+ye/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${Te-F.height-W}px`,left:`${ge}px`,transform:"translateX(0)"};case"up-end":return{top:`${Te-F.height-W}px`,left:`${ge+ye-F.width}px`,transform:"translateX(0)"};case"down":return{top:`${Te+Z+W}px`,left:`${ge+ye/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${Te+Z+W}px`,left:`${ge}px`,transform:"translateX(0)"};case"down-end":return{top:`${Te+Z+W}px`,left:`${ge+ye-F.width}px`,transform:"translateX(0)"};case"left":return{top:`${Te+Z/2}px`,left:`${ge-F.width-W}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${Te}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"left-end":return{top:`${Te+Z-F.height}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"right":return{top:`${Te+Z/2}px`,left:`${ge+ye+W}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${Te}px`,left:`${ge+ye+W}px`,transform:"translateY(0)"};case"right-end":return{top:`${Te+Z-F.height}px`,left:`${ge+ye+W}px`,transform:"translateY(0)"};default:return{}}},oe={up:{fits:D.top-F.height-W>=0},"up-start":{fits:D.top-F.height-W>=0&&D.left+F.width<=P},"up-end":{fits:D.top-F.height-W>=0&&D.right-F.width>=0},down:{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=z},"down-start":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=z&&D.left+F.width<=P},"down-end":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=z&&D.right-F.width>=0},left:{fits:D.left-F.width-W>=0},"left-start":{fits:D.left-F.width-W>=0&&D.top+F.height<=K},"left-end":{fits:D.left-F.width-W>=0&&D.bottom-F.height>=0},right:{fits:D.right+F.width+W<=P&&D.right+F.width+W<=ve},"right-start":{fits:D.right+F.width+W<=P&&D.right+F.width+W<=ve&&D.top+F.height<=K},"right-end":{fits:D.right+F.width+W<=P&&D.right+F.width+W<=ve&&D.bottom-F.height>=0}},ae=D.left+D.width/2-F.width/2,ne=D.left+D.width/2+F.width/2;if((r==="up"||r==="down")&&(ae<0||ne>P)&&(oe[r].fits=!1),oe[r].fits){const de=J(r);te={position:r,...de,transform:de.transform||""}}else{const de=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(he=>oe[he].fits);if(de){X=de;const he=J(de);te={position:X,...he,transform:he.transform||""}}else{const he={up:D.top,"up-start":D.top,"up-end":D.top,down:Math.min(K-D.bottom,z-D.bottom),"down-start":Math.min(K-D.bottom,z-D.bottom),"down-end":Math.min(K-D.bottom,z-D.bottom),left:D.left,"left-start":D.left,"left-end":D.left,right:Math.min(P-D.right,ve-D.right),"right-start":Math.min(P-D.right,ve-D.right),"right-end":Math.min(P-D.right,ve-D.right)},fe=Object.entries(he).reduce((Z,[Te,ge])=>ge>Z.space?{position:Te,space:ge}:Z,{position:"up",space:0}).position;X=fe;const ye=J(fe);te={position:X,...ye,transform:ye.transform||""}}}y(te)},[r]),R=()=>{c==="click"&&(h(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{b||h(!1)},l))},H=D=>{D.stopPropagation(),h(!1),x.current&&clearTimeout(x.current)},I=()=>{S(!0),x.current&&clearTimeout(x.current)},$=()=>{S(!1),p&&(x.current=setTimeout(()=>{h(!1)},l))},U=()=>{c==="hover"&&(h(!0),x.current&&clearTimeout(x.current))},j=()=>{c==="hover"&&(x.current=setTimeout(()=>{h(!1)},l))};N.useEffect(()=>{if(p){const D=requestAnimationFrame(()=>{_()});return()=>cancelAnimationFrame(D)}},[p,e,_]),N.useEffect(()=>{if(p){const D=setTimeout(()=>_(),0);return()=>clearTimeout(D)}},[p,_]),N.useEffect(()=>{const D=()=>{p&&_()},F=()=>{p&&_()};return window.addEventListener("resize",D),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",F,!0),x.current&&clearTimeout(x.current)}},[p,_]);const M=f||(typeof document<"u"?document.body:null);return M?A.jsxs(A.Fragment,{children:[A.jsx("div",{"data-qui":"Tooltip",ref:m,onClick:R,onMouseEnter:U,onMouseLeave:j,className:ce("relative inline-flex items-center",u),children:s}),p&&!g&&!!e&&En.createPortal(A.jsxs("div",{ref:w,role:"tooltip",className:HP({color:t}),style:{position:"absolute",left:v.left??0,top:v.top??0,transform:v.transform,zIndex:1e3,visibility:v.left?"visible":"hidden",pointerEvents:n?"auto":"none"},onMouseEnter:n?I:void 0,onMouseLeave:n?$:void 0,children:[i&&A.jsx("span",{"data-testid":"tooltip-icon",children:i}),A.jsx("div",{className:BP({color:t}),children:e}),n&&A.jsx("div",{onClick:H,className:WP({color:t}),role:"button",children:A.jsx(Bo,{})})]}),M)]}):null};var _m;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(_m||(_m={}));const VP=Object.freeze({x:0,y:0});var Ao;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ao||(Ao={}));var Om;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Om||(Om={}));var Lr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(Lr||(Lr={}));Lr.Space,Lr.Enter,Lr.Esc,Lr.Space,Lr.Enter,Lr.Tab;var km;(function(e){e[e.RightClick=2]="RightClick"})(km||(km={}));var Am;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Am||(Am={}));var Tm;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Tm||(Tm={}));Ao.Backward+"",Ao.Forward+"",Ao.Backward+"",Ao.Forward+"";var Df;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Df||(Df={}));var Lf;(function(e){e.Optimized="optimized"})(Lf||(Lf={}));Df.WhileDragging,Lf.Optimized;({...VP});var Rm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Rm||(Rm={}));Lr.Down,Lr.Right,Lr.Up,Lr.Left;const _w={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},UP={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},qP=(e,t,r,n)=>{const i=UP[e],s=_w[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?ce(l,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?ce(l,s.padding,s.text,s.gap,i.active.bg,i.active.text,"shadow-xs"):ce(l,s.padding,s.text,s.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},GP=(e,t)=>ce("flex items-center justify-center",_w[e].icon,{"opacity-50":t}),ZP=()=>ce("whitespace-nowrap"),Ow=(e,t)=>{const r=ce("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?ce(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?ce(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):ce(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},KP=N.createContext(void 0),YP=N.forwardRef(({value:e,label:t,icon:r,disabled:n,children:i,className:s,onClick:l,active:c,content:u,...f},g)=>{const p=N.useContext(KP);if(!p)return null;const{activeTab:h,onTabChange:b,variant:S,color:v,size:y,showIcons:m,disabled:w}=p,x=c!==void 0?c:h===e,O=n||w,_=R=>{O||(b(e),l==null||l(R))};return S==="file"?A.jsx("div",{"data-qui":"FileTabItem",className:ce(Ow(x,!1),"cursor-pointer",s),onClick:R=>!O&&_(R),children:i||A.jsx(A.Fragment,{children:A.jsxs("span",{className:"flex items-center gap-2",children:[r,A.jsx("span",{children:t})]})})}):A.jsxs("button",{ref:g,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":x,"aria-disabled":O,className:ce(qP(v,y,x,O||!1),s),onClick:_,disabled:O,...f,children:[m&&r&&A.jsx("span",{className:GP(y,O||!1),children:r}),A.jsx("span",{className:ZP(),children:i||t})]})});YP.displayName="TabItem";const XP=N.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},i)=>A.jsx("div",{"data-qui":"TabNavContainer",className:Ow(e,t),ref:i,...n,children:r}));XP.displayName="TabNavContainer";var Et=function(){return Et=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Et.apply(this,arguments)},Cm={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Im={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Cl={width:"20px",height:"20px",position:"absolute",zIndex:1},JP={top:Et(Et({},Cm),{top:"-5px"}),right:Et(Et({},Im),{left:void 0,right:"-5px"}),bottom:Et(Et({},Cm),{top:void 0,bottom:"-5px"}),left:Et(Et({},Im),{left:"-5px"}),topRight:Et(Et({},Cl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:Et(Et({},Cl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:Et(Et({},Cl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:Et(Et({},Cl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},QP=N.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,i=e.replaceStyles,s=e.className,l=N.useCallback(function(f){t(f,r)},[t,r]),c=N.useCallback(function(f){t(f,r)},[t,r]),u=N.useMemo(function(){return Et(Et({position:"absolute",userSelect:"none"},JP[r]),i??{})},[i,r]);return A.jsx("div",{className:s||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),e5=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),pn=function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pn.apply(this,arguments)},t5={width:"auto",height:"auto"},Il=function(e,t,r){return Math.max(Math.min(e,r),t)},Pm=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},mo=function(e,t){return new RegExp(e,"i").test(t)},Pl=function(e){return!!(e.touches&&e.touches.length)},r5=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Nm=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(s,l,c){return Math.abs(l-e)<Math.abs(t[s]-e)?c:s},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},Id=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Nl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},n5=function(e,t,r,n,i,s,l){return n=Nl(n,e.width,t,r),i=Nl(i,e.height,t,r),s=Nl(s,e.width,t,r),l=Nl(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof l>"u"?void 0:Number(l)}},i5=function(e){return Array.isArray(e)?e:[e,e]},o5=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Mm="__resizable_base__",s5=(function(e){e5(t,e);function t(r){var n,i,s,l,c=e.call(this,r)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.delta={width:0,height:0},c.appendBase=function(){if(!c.resizable||!c.window)return null;var u=c.parentNode;if(!u)return null;var f=c.window.document.createElement("div");return f.style.width="100%",f.style.height="100%",f.style.position="absolute",f.style.transform="scale(0, 0)",f.style.left="0",f.style.flex="0 0 100%",f.classList?f.classList.add(Mm):f.className+=Mm,u.appendChild(f),f},c.removeBase=function(u){var f=c.parentNode;f&&f.removeChild(u)},c.state={isResizing:!1,width:(i=(n=c.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(l=(s=c.propsSize)===null||s===void 0?void 0:s.height)!==null&&l!==void 0?l:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||t5},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=l}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,i=function(c){var u;if(typeof r.state[c]>"u"||r.state[c]==="auto")return"auto";if(r.propsSize&&r.propsSize[c]&&!((u=r.propsSize[c])===null||u===void 0)&&u.toString().endsWith("%")){if(r.state[c].toString().endsWith("%"))return r.state[c].toString();var f=r.getParentSize(),g=Number(r.state[c].toString().replace("px","")),p=g/f[c]*100;return"".concat(p,"%")}return Id(r.state[c])},s=n&&typeof n.width<"u"&&!this.state.isResizing?Id(n.width):i("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Id(n.height):i("height");return{width:s,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var s={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),s},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,s=this.state.direction,l=i&&mo("left",s),c=i&&mo("top",s),u,f;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(u=l?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),f=c?this.resizableBottom-this.parentTop:g.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,f=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),f=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),f&&Number.isFinite(f)&&(n=n&&n<f?n:f),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,s=i5(this.props.resizeRatio||1),l=s[0],c=s[1],u=this.state,f=u.direction,g=u.original,p=this.props,h=p.lockAspectRatio,b=p.lockAspectRatioExtraHeight,S=p.lockAspectRatioExtraWidth,v=g.width,y=g.height,m=b||0,w=S||0;return mo("right",f)&&(v=g.width+(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("left",f)&&(v=g.width-(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("bottom",f)&&(y=g.height+(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),mo("top",f)&&(y=g.height-(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),{newWidth:v,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,s){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,f=l.lockAspectRatioExtraWidth,g=typeof s.width>"u"?10:s.width,p=typeof i.width>"u"||i.width<0?r:i.width,h=typeof s.height>"u"?10:s.height,b=typeof i.height>"u"||i.height<0?n:i.height,S=u||0,v=f||0;if(c){var y=(h-S)*this.ratio+v,m=(b-S)*this.ratio+v,w=(g-v)/this.ratio+S,x=(p-v)/this.ratio+S,O=Math.max(g,y),_=Math.min(p,m),R=Math.max(h,w),H=Math.min(b,x);r=Il(r,O,_),n=Il(n,R,H)}else r=Il(r,g,p),n=Il(n,h,b);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*r,this.parentTop=i.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*r,this.targetTop=s.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,f=l.right,g=l.bottom;this.resizableLeft=c*r,this.resizableRight=f*r,this.resizableTop=u*r,this.resizableBottom=g*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,s=0;if(r.nativeEvent&&r5(r.nativeEvent)?(i=r.nativeEvent.clientX,s=r.nativeEvent.clientY):r.nativeEvent&&Pl(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,s=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(r,n,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var f=this.parentNode;if(f){var g=this.window.getComputedStyle(f).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(p)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Pl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,l=i.maxHeight,c=i.minWidth,u=i.minHeight,f=Pl(r)?r.touches[0].clientX:r.clientX,g=Pl(r)?r.touches[0].clientY:r.clientY,p=this.state,h=p.direction,b=p.original,S=p.width,v=p.height,y=this.getParentSize(),m=n5(y,this.window.innerWidth,this.window.innerHeight,s,l,c,u);s=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(f,g),x=w.newHeight,O=w.newWidth,_=this.calculateNewMaxFromBoundary(s,l);this.props.snap&&this.props.snap.x&&(O=Nm(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Nm(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(O,x,{width:_.maxWidth,height:_.maxHeight},{width:c,height:u});if(O=R.newWidth,x=R.newHeight,this.props.grid){var H=Pm(O,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),I=Pm(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,U=$===0||Math.abs(H-O)<=$?H:O,j=$===0||Math.abs(I-x)<=$?I:x;O=U,x=j}var M={width:O-b.width,height:x-b.height};if(this.delta=M,S&&typeof S=="string"){if(S.endsWith("%")){var D=O/y.width*100;O="".concat(D,"%")}else if(S.endsWith("vw")){var F=O/this.window.innerWidth*100;O="".concat(F,"vw")}else if(S.endsWith("vh")){var P=O/this.window.innerHeight*100;O="".concat(P,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var D=x/y.height*100;x="".concat(D,"%")}else if(v.endsWith("vw")){var F=x/this.window.innerWidth*100;x="".concat(F,"vw")}else if(v.endsWith("vh")){var P=x/this.window.innerHeight*100;x="".concat(P,"vh")}}var K={width:this.createSizeForCssProperty(O,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?K.flexBasis=K.width:this.flexDir==="column"&&(K.flexBasis=K.height);var ee=this.state.width!==K.width,Y=this.state.height!==K.height,ve=this.state.flexBasis!==K.flexBasis,z=ee||Y||ve;z&&En.flushSync(function(){n.setState(K)}),this.props.onResize&&z&&this.props.onResize(r,h,this.resizable,M)}},t.prototype.onMouseUp=function(r){var n,i,s=this.state,l=s.isResizing,c=s.direction;s.original,!(!l||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,c,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,i;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(i=r.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,s=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,f=n.handleComponent;if(!i)return null;var g=Object.keys(i).map(function(p){return i[p]!==!1?A.jsx(QP,{direction:p,onResizeStart:r.onResizeStart,replaceStyles:s&&s[p],className:l&&l[p],children:f&&f[p]?f[p]:null},p):null});return A.jsx("div",{className:u,style:c,children:g})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return o5.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),i=pn(pn(pn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return A.jsxs(s,pn({style:i,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&A.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(N.PureComponent);const a5={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},l5={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},kw=({depth:e=0,className:t,borderType:r,disabled:n})=>ce("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?l5[r]:"border-panel-border",a5[e],t),c5=e=>{if(!e)return{};const t={},r=e.match(/min-w-\[(\d+)px\]/);r&&(t.minWidth=parseInt(r[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const i=e.match(/min-h-\[(\d+)px\]/);i&&(t.minHeight=parseInt(i[1],10));const s=e.match(/max-h-\[(\d+)px\]/);return s&&(t.maxHeight=parseInt(s[1],10)),t},Aw=N.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:i=10,maxWidth:s,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:f,size:g,grid:p,snap:h,lockAspectRatio:b=!1,enable:S,handleStyles:v={},handleClasses:y={},handleComponent:m={},style:w={},className:x,onResizeStart:O,onResize:_,onResizeStop:R,scale:H=1,bounds:I,snapGap:$,as:U="div",depth:j,disabled:M},D)=>{const F=kw({depth:j,className:x,disabled:M}),P=c5(x),K=g?{size:g}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},ee=f?{defaultSize:f}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},Y=N.useRef(null);return N.useImperativeHandle(D,()=>{var ve;return(ve=Y.current)==null?void 0:ve.resizable}),A.jsx(s5,{"data-qui":"Resizable",ref:Y,...K,...ee,minWidth:n??P.minWidth,minHeight:i??P.minHeight,maxWidth:s??P.maxWidth,maxHeight:l??P.maxHeight,grid:p,snap:h,lockAspectRatio:b,enable:S,handleStyles:v,handleClasses:y,handleComponent:m,style:w,className:ce("relative box-border",F),onResizeStart:O,onResize:_,onResizeStop:R,scale:H,bounds:I,snapGap:$,as:U,children:e})});Aw.displayName="Resizable";const Tw=({isDragging:e=!1,className:t})=>A.jsx("div",{className:ce("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:A.jsx("div",{className:ce("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});Tw.displayName="Handle";const bo={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Ml={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},u5=(e,t,r,n,i,s)=>({container:ce("inline-flex items-center",bo[e].gap,s),track:ce("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",bo[e].track,{[Ml[t].bg]:r&&!n&&!i,"bg-input-bg":!r&&!n||i,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:ce("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",bo[e].thumb,r?bo[e].thumbChecked:bo[e].thumbUnchecked,{[Ml[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ml[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:ce("flex items-center justify-center z-10 w-1/2 p-0.5",{[Ml[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:ce("font-medium text-body",bo[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Rw=N.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:i="md",color:s="primary",icons:l,onChange:c,className:u,id:f,name:g,...p},h)=>{const[b,S]=N.useState(r),v=t!==void 0,y=v?t:b,m=()=>{const x=!y;v||S(x),c==null||c(x)},w=u5(i,s,y,n,!!l,u);return A.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&A.jsx("label",{htmlFor:f,className:w.label,children:e}),A.jsxs("button",{ref:h,...p,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:n,onClick:m,name:g,id:f,className:w.track,children:[l&&A.jsx("span",{className:w.iconLeft,children:l.unchecked}),A.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&A.jsx("span",{className:w.iconRight,children:l.checked})]})]})});Rw.displayName="Toggle";N.createContext(null);const Gi=N.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:i,...s},l)=>{const c=kw({depth:e,className:t,borderType:n,disabled:i});return A.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":i,...s,children:r})});Gi.displayName="Panel";const fa={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},lc={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},d5=(e,t,r,n)=>ce("inline-flex items-center justify-center font-medium border",fa[e].container,lc[t].bg,lc[t].text,lc[t].border,fa[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),f5=(e,t,r)=>ce({[fa[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-button-text":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),p5=e=>ce(fa[e].text),Cw=(e,t,r)=>ce("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",fa[e].iconButton,lc[t].buttonHover,{"pointer-events-none":r}),Iw=N.createContext(null),Gc=()=>{const e=N.useContext(Iw);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Op=N.forwardRef(({size:e="md",color:t="primary",className:r,children:n,disabled:i=!1,onClick:s,...l},c)=>{const u={size:e,color:t,disabled:i},f=!!s;return A.jsx(Iw.Provider,{value:u,children:A.jsx("div",{"data-qui":"Pill",ref:c,onClick:s,className:ce(d5(e,t,i,f),r),...l,children:n})})});Op.displayName="Pill.Root";const kp=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i}=Gc();return A.jsx("span",{ref:n,className:ce(p5(i),e),...r,children:t})});kp.displayName="Pill.Text";const Ap=N.forwardRef(({className:e,children:t,label:r,position:n,...i},s)=>{const{size:l,color:c,disabled:u}=Gc(),f=!!r,g=A.jsx("span",{ref:s,className:ce(f5(l,c,f),e,{"opacity-60":u}),...i,children:t});return f&&!u?A.jsx(Ew,{label:r||"",position:n||"up",children:g}):g});Ap.displayName="Pill.Icon";const Pw=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,disabled:l}=Gc();return A.jsx("button",{ref:n,type:"button",disabled:l,className:ce(Cw(i,s,l),e),...r,children:t})});Pw.displayName="Pill.Button";const Tp=N.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...i},s)=>{const{size:l,color:c,disabled:u}=Gc();return A.jsx("button",{ref:s,type:"button",disabled:u,className:ce(Cw(l,c,u),e),onClick:t,"aria-label":r,...i,children:n||A.jsx(Bo,{})})});Tp.displayName="Pill.Close";const Nw=N.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:i,closable:s=!1,className:l,children:c,disabled:u=!1,...f},g)=>A.jsxs(Op,{ref:g,size:e,color:t,className:l,disabled:u,...f,children:[n&&A.jsx(Ap,{children:n}),c||r&&A.jsx(kp,{children:r}),s&&A.jsx(Tp,{onClose:i})]}));Nw.displayName="Pill";Object.assign(Nw,{Root:Op,Text:kp,Icon:Ap,Button:Pw,Close:Tp});function yo(e,t,r){let n=r.initialDeps??[],i,s=!0;function l(){var c,u,f;let g;r.key&&(c=r.debug)!=null&&c.call(r)&&(g=Date.now());const p=e();if(!(p.length!==n.length||p.some((b,S)=>n[S]!==b)))return i;n=p;let h;if(r.key&&(u=r.debug)!=null&&u.call(r)&&(h=Date.now()),i=t(...p),r.key&&(f=r.debug)!=null&&f.call(r)){const b=Math.round((Date.now()-g)*100)/100,S=Math.round((Date.now()-h)*100)/100,v=S/16,y=(m,w)=>{for(m=String(m);m.length<w;)m=" "+m;return m};console.info(`%c⏱ ${y(S,5)} /${y(b,5)} ms`,`
14
+ `,q2=(e,t,r)=>{const{isDisabled:n,isInvalid:i}=r;return le(U2,Oa[e].radio,i?ua[t].radioInvalid:{[ua[t].radio]:!n,"cursor-not-allowed opacity-60":n})},G2=(e,t,r)=>{const{checked:n,isDisabled:i,isInvalid:s}=r;return le("center-absolute rounded-full transition-all duration-200 ease-in-out",Oa[e].dot,s?"bg-negative":{[ua[t].dot]:!i,"border-neutral":i,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!i})},Z2=(e,t,r)=>le("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",Oa[e].hoverDot,{[ua[t].hoverDot]:!r,"bg-negative-bg":r}),K2=e=>le("cursor-pointer select-none transition-colors duration-200",Oa[e].label),Y2=(e,t,r,n)=>{const{isDisabled:i,isInvalid:s}=r;return le("inline-flex items-center group",Oa[e].container,s?{"text-negative":s}:{[ua[t].label]:!i,"text-muted":i},n)},X2=N.createContext(null),J2=()=>{const e=N.useContext(X2);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},Q2=N.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:i,isInvalid:s,isRequired:l,className:c,...u},f)=>{const g=J2(),p=r??g.size,h=n??g.color,b=i??g.isDisabled,S=s??g.isInvalid,v=l??g.isRequired,y=g.value===e,m={checked:y,isDisabled:b,isInvalid:S},w=q2(p,h,m),x=G2(p,h,m),O=Z2(p,h,S),_=K2(p),R=Y2(p,h,m,c),H=()=>{b||g.onChange(e)};return A.jsxs("label",{"data-qui":"RadioItem",className:R,children:[A.jsxs("div",{className:le("relative",{hidden:g.hideIndicator}),children:[A.jsx("input",{ref:f,type:"radio",value:e,checked:y,disabled:b,required:v,"aria-invalid":S,"aria-label":t?void 0:u["aria-label"],name:g.name,onChange:H,className:"sr-only",...u}),A.jsxs("div",{className:w,children:[A.jsx("div",{className:x}),!y&&!b&&A.jsx("div",{className:O})]})]}),t&&A.jsxs("span",{className:_,children:[t,v&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});Q2.displayName="RadioItem";const pw={sm:{container:"h-4.5 p-1 rounded",text:"text-xxs"},md:{container:"h-6 p-1 rounded",text:"text-s"},lg:{container:"h-7 p-1 rounded",text:"text-sm"},xl:{container:"h-7.5 p-1 rounded",text:"text-lg"}},eP={primary:{bg:{solid:"bg-primary",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-primary",ghost:"text-primary"},border:{solid:"border-primary",outline:"border-primary",ghost:"border-transparent"},hover:{solid:"hover:bg-primary-hover hover:border-primary-hover",outline:"hover:border-primary-hover hover:bg-primary hover:text-body",ghost:"hover:bg-primary-hover hover:text-body"}},white:{bg:{solid:"bg-white",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-primary",outline:"text-body",ghost:"text-body"},border:{solid:"border-white",outline:"border-white",ghost:"border-transparent"},hover:{solid:"hover:bg-canvas-subtle hover:border-canvas-subtle",outline:"hover:border-canvas-default hover:bg-canvas-default hover:text-primary",ghost:"hover:bg-primary-hover hover:text-body"}},positive:{bg:{solid:"bg-positive",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-positive-text",ghost:"text-positive-text"},border:{solid:"border-positive",outline:"border-positive",ghost:"border-transparent"},hover:{solid:"hover:bg-positive-hover hover:border-positive-hover",outline:"hover:border-positive-hover hover:bg-positive-hover hover:text-body",ghost:"hover:bg-positive-hover hover:text-body"}},warning:{bg:{solid:"bg-warning",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-warning-text",ghost:"text-warning-text"},border:{solid:"border-warning",outline:"border-warning",ghost:"border-transparent"},hover:{solid:"hover:bg-warning-hover hover:border-warning-hover",outline:"hover:border-warning-hover hover:bg-warning-hover hover:text-body",ghost:"hover:bg-warning-hover hover:text-body"}},negative:{bg:{solid:"bg-negative",outline:"bg-transparent",ghost:"bg-transparent"},text:{solid:"text-button-text",outline:"text-negative",ghost:"text-negative"},border:{solid:"border-negative",outline:"border-negative",ghost:"border-transparent"},hover:{solid:"hover:bg-negative-hover hover:border-negative-hover",outline:"hover:border-negative-hover hover:bg-negative-hover hover:text-body",ghost:"hover:bg-negative-hover hover:text-body"}}},tP=(e,t,r,n)=>{const i=pw[e],s=eP[r],l=le("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},i.container);return n?le(l,"text-inactive-text pointer-events-none",{"border-panel":t!=="ghost"&&t==="solid","border-panel-subtle":t==="outline","bg-panel":t==="solid","bg-transparent ":t==="outline"||t==="ghost","border-transparent":t==="ghost"}):le(l,s.bg[t],s.text[t],s.hover[t],s.border[t])},rP=e=>le("flex items-center justify-center gap-1",pw[e].text),Wn=N.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:i,disabled:s,...l},c)=>A.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:le(tP(e,t,r,s),rP(e),n),disabled:s,...l,children:i}));Wn.displayName="Button";const hw=N.createContext(null),ka=()=>{const e=N.useContext(hw);if(!e)throw new Error("Input components must be used within Input.Root");return e},Uo={sm:{group:"h-5 min-h-fit",input:"text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{group:"h-6 min-h-fit",input:"text-xs",message:"text-xs p-2",icon:"text-base"},lg:{group:"h-7 min-h-fit",input:"text-s",message:"text-s p-2.5",icon:"text-lg"}},Fi={primary:{border:"border border-input-border focus-within:border-input-focus-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-focus-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-input-message-text",messageBackground:"bg-input-message-bg",icon:"text-input-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},positive:{border:"border border-input-border focus-within:border-positive",borderInvalid:"ring-input-error-border",borderMessage:"ring-positive",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-positive-dark",messageBackground:"bg-positive-light",icon:"text-positive-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},warning:{border:"border border-input-border focus-within:border-input-warning-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-warning-border",text:"text-input-text",placeholder:"placeholder:text-input-placeholder",messageText:"text-warning-dark",messageBackground:"bg-input-warning-bg",icon:"text-warning-text",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"},negative:{border:"border border-input-border focus-within:border-input-error-border",borderInvalid:"ring-input-error-border",borderMessage:"ring-input-error-border",text:"text-negative",placeholder:"placeholder:text-input-placeholder",messageText:"text-negative-dark",messageBackground:"bg-input-error-bg",icon:"text-negative",action:"text-input-text",actionHover:"hover:text-body hover:bg-primary-hover"}},nP=()=>le("flex flex-col relative"),iP=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:i,hasArea:s,isInvalid:l})=>{const c=Fi[l?"negative":t];return le("bg-input-bg flex gap-1 relative px-1 transition-all duration-200 ease-in-out only:rounded first:rounded-t last:rounded-b",c.text,i?c.borderMessage:!n&&c.border,Uo[e].group,{"ring-1":i,"opacity-60":r,"items-center":!s})},oP=({size:e,color:t})=>le("bg-transparent ring-0 w-full","focus:outline-hidden",[Uo[e].input],Fi[t].placeholder),Sm=({size:e,color:t})=>le("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Uo[e].input,Fi[t].placeholder),sP=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=Fi[t];return le("transition-colors duration-200 rounded max-h-full h-fit",Uo[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.action:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.actionHover]:n&&!r,"pointer-events-none":!n})},aP=({size:e,color:t,isDisabled:r})=>le("absolute left-0 right-0 z-10","flex items-start gap-x-2 ring-1","first:bottom-full first:rounded-t first:ring-b-0","last:top-full last:rounded-b last:ring-t-0","only:top-full only:rounded only:ring-1",r?"text-muted":Fi[t].messageText,Fi[t].borderMessage,Fi[t].messageBackground,Uo[e].message,{"opacity-60":r}),lP=({size:e})=>le(Uo[e].icon);function Tc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var cP=typeof global=="object"&&global&&global.Object===Object&&global,uP=typeof self=="object"&&self&&self.Object===Object&&self,gw=cP||uP||Function("return this")(),Md=function(){return gw.Date.now()},dP=/\s/;function fP(e){for(var t=e.length;t--&&dP.test(e.charAt(t)););return t}var pP=/^\s+/;function hP(e){return e&&e.slice(0,fP(e)+1).replace(pP,"")}var Rc=gw.Symbol,vw=Object.prototype,gP=vw.hasOwnProperty,vP=vw.toString,ys=Rc?Rc.toStringTag:void 0;function mP(e){var t=gP.call(e,ys),r=e[ys];try{e[ys]=void 0;var n=!0}catch{}var i=vP.call(e);return n&&(t?e[ys]=r:delete e[ys]),i}var bP=Object.prototype,yP=bP.toString;function wP(e){return yP.call(e)}var xP="[object Null]",SP="[object Undefined]",Em=Rc?Rc.toStringTag:void 0;function EP(e){return e==null?e===void 0?SP:xP:Em&&Em in Object(e)?mP(e):wP(e)}function _P(e){return e!=null&&typeof e=="object"}var OP="[object Symbol]";function kP(e){return typeof e=="symbol"||_P(e)&&EP(e)==OP}var _m=NaN,AP=/^[-+]0x[0-9a-f]+$/i,TP=/^0b[01]+$/i,RP=/^0o[0-7]+$/i,CP=parseInt;function Om(e){if(typeof e=="number")return e;if(kP(e))return _m;if(Tc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Tc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=hP(e);var r=TP.test(e);return r||RP.test(e)?CP(e.slice(2),r?2:8):AP.test(e)?_m:+e}var PP="Expected a function",IP=Math.max,NP=Math.min;function lc(e,t,r){var n,i,s,l,c,u,f=0,g=!1,p=!1,h=!0;if(typeof e!="function")throw new TypeError(PP);t=Om(t)||0,Tc(r)&&(g=!!r.leading,p="maxWait"in r,s=p?IP(Om(r.maxWait)||0,t):s,h="trailing"in r?!!r.trailing:h);function b(R){var H=n,P=i;return n=i=void 0,f=R,l=e.apply(P,H),l}function S(R){return f=R,c=setTimeout(m,t),g?b(R):l}function v(R){var H=R-u,P=R-f,z=t-H;return p?NP(z,s-P):z}function y(R){var H=R-u,P=R-f;return u===void 0||H>=t||H<0||p&&P>=s}function m(){var R=Md();if(y(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,h&&n?b(R):(n=i=void 0,l)}function x(){c!==void 0&&clearTimeout(c),f=0,n=u=i=c=void 0}function O(){return c===void 0?l:w(Md())}function _(){var R=Md(),H=y(R);if(n=arguments,i=this,u=R,H){if(c===void 0)return S(u);if(p)return clearTimeout(c),c=setTimeout(m,t),b(u)}return c===void 0&&(c=setTimeout(m,t)),l}return _.cancel=x,_.flush=O,_}var MP="Expected a function";function DP(e,t,r){var n=!0,i=!0;if(typeof e!="function")throw new TypeError(MP);return Tc(r)&&(n="leading"in r?!!r.leading:n,i="trailing"in r?!!r.trailing:i),lc(e,t,{leading:n,maxWait:t,trailing:i})}var ko=function(){return ko=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ko.apply(this,arguments)};function mw(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function bw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var yw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,i){var s=i.name.match(/data-simplebar-(.+)/);if(s){var l=s[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(i.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=i.value}}return n},t);return r};function ww(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function xw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Sw(e){return".".concat(e.split(" ").join("."))}var Ap=!!(typeof window<"u"&&window.document&&window.document.createElement),LP=Object.freeze({__proto__:null,addClasses:ww,canUseDOM:Ap,classNamesToQuery:Sw,getElementDocument:bw,getElementWindow:mw,getOptions:yw,removeClasses:xw}),_o=null,km=null;Ap&&window.addEventListener("resize",function(){km!==window.devicePixelRatio&&(km=window.devicePixelRatio,_o=null)});function Am(){if(_o===null){if(typeof document>"u")return _o=0,_o;var e=document.body,t=document.createElement("div");t.classList.add("simplebar-hide-scrollbar"),e.appendChild(t);var r=t.getBoundingClientRect().right;e.removeChild(t),_o=r}return _o}var ii=mw,Dd=bw,zP=yw,oi=ww,si=xw,sr=Sw,ws=(function(){function e(t,r){r===void 0&&(r={});var n=this;if(this.removePreventClickId=null,this.minScrollbarWidth=20,this.stopScrollDelay=175,this.isScrolling=!1,this.isMouseEntering=!1,this.isDragging=!1,this.scrollXTicking=!1,this.scrollYTicking=!1,this.wrapperEl=null,this.contentWrapperEl=null,this.contentEl=null,this.offsetEl=null,this.maskEl=null,this.placeholderEl=null,this.heightAutoObserverWrapperEl=null,this.heightAutoObserverEl=null,this.rtlHelpers=null,this.scrollbarWidth=0,this.resizeObserver=null,this.mutationObserver=null,this.elStyles=null,this.isRtl=null,this.mouseX=0,this.mouseY=0,this.onMouseMove=function(){},this.onWindowResize=function(){},this.onStopScrolling=function(){},this.onMouseEntered=function(){},this.onScroll=function(){var i=ii(n.el);n.scrollXTicking||(i.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(i.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,oi(n.el,n.classNames.scrolling)),n.showScrollbar("x"),n.showScrollbar("y"),n.onStopScrolling()},this.scrollX=function(){n.axis.x.isOverflowing&&n.positionScrollbar("x"),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&n.positionScrollbar("y"),n.scrollYTicking=!1},this._onStopScrolling=function(){si(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(oi(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){si(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(i){n.mouseX=i.clientX,n.mouseY=i.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this._onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.onPointerEvent=function(i){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var s,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(s=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(s||l)&&(i.stopPropagation(),i.type==="pointerdown"&&i.pointerType!=="touch"&&(s&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(i,"x"):n.onTrackClick(i,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(i,"y"):n.onTrackClick(i,"y"))))}},this.drag=function(i){var s,l,c,u,f,g,p,h,b,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,m=n.axis[n.draggedAxis].track,w=(l=(s=m.rect)===null||s===void 0?void 0:s[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,O=(u=(c=n.contentWrapperEl)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,_=parseInt((g=(f=n.elStyles)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);i.preventDefault(),i.stopPropagation(),n.draggedAxis==="y"?y=i.pageY:y=i.pageX;var R=y-((h=(p=m.rect)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].offsetAttr])!==null&&h!==void 0?h:0)-n.axis[n.draggedAxis].dragOffset;R=n.draggedAxis==="x"&&n.isRtl?((S=(b=m.rect)===null||b===void 0?void 0:b[n.axis[n.draggedAxis].sizeAttr])!==null&&S!==void 0?S:0)-x.size-R:R;var H=R/(w-x.size),P=H*(O-_);n.draggedAxis==="x"&&n.isRtl&&(P=!((v=e.getRtlHelpers())===null||v===void 0)&&v.isScrollingToNegative?-P:P),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=P}},this.onEndDrag=function(i){n.isDragging=!1;var s=Dd(n.el),l=ii(n.el);i.preventDefault(),i.stopPropagation(),si(n.el,n.classNames.dragging),n.onStopScrolling(),s.removeEventListener("mousemove",n.drag,!0),s.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",n.preventClick,!0),s.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(i){i.preventDefault(),i.stopPropagation()},this.el=t,this.options=ko(ko({},e.defaultOptions),r),this.classNames=ko(ko({},e.defaultOptions.classNames),r.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,forceVisible:!1,track:{size:null,el:null,rect:null,isVisible:!1},scrollbar:{size:null,el:null,rect:null,isVisible:!1}}},typeof this.el!="object"||!this.el.nodeName)throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));this.onMouseMove=DP(this._onMouseMove,64),this.onWindowResize=lc(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=lc(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=lc(this._onMouseEntered,this.stopScrollDelay),this.init()}return e.getRtlHelpers=function(){if(e.rtlHelpers)return e.rtlHelpers;var t=document.createElement("div");t.innerHTML='<div class="simplebar-dummy-scrollbar-size"><div></div></div>';var r=t.firstElementChild,n=r==null?void 0:r.firstElementChild;if(!n)return null;document.body.appendChild(r),r.scrollLeft=0;var i=e.getOffset(r),s=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:i.left!==s.left,isScrollingToNegative:s.left!==l.left},e.rtlHelpers},e.prototype.getScrollbarWidth=function(){try{return this.contentWrapperEl&&getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:Am()}catch{return Am()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=Dd(t),i=ii(t);return{top:r.top+(i.pageYOffset||n.documentElement.scrollTop),left:r.left+(i.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Ap&&(this.initDOM(),this.rtlHelpers=e.getRtlHelpers(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.prototype.initDOM=function(){var t,r;this.wrapperEl=this.el.querySelector(sr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(sr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(sr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(sr(this.classNames.offset)),this.maskEl=this.el.querySelector(sr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,sr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(sr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(sr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(sr(this.classNames.track)).concat(sr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(sr(this.classNames.track)).concat(sr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(sr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(sr(this.classNames.scrollbar)))||null,this.options.autoHide||(oi(this.axis.x.scrollbar.el,this.classNames.visible),oi(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=ii(this.el);if(this.el.addEventListener("mouseenter",this.onMouseEnter),this.el.addEventListener("pointerdown",this.onPointerEvent,!0),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),(r=this.contentWrapperEl)===null||r===void 0||r.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize),!!this.contentEl){if(window.ResizeObserver){var i=!1,s=n.ResizeObserver||ResizeObserver;this.resizeObserver=new s(function(){i&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){i=!0})}this.mutationObserver=new n.MutationObserver(function(){n.requestAnimationFrame(function(){t.recalculate()})}),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})}},e.prototype.recalculate=function(){if(!(!this.heightAutoObserverEl||!this.contentEl||!this.contentWrapperEl||!this.wrapperEl||!this.placeholderEl)){var t=ii(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,i=this.heightAutoObserverEl.offsetWidth<=1||r>0,s=this.contentWrapperEl.offsetWidth,l=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding="".concat(this.elStyles.paddingTop," ").concat(this.elStyles.paddingRight," ").concat(this.elStyles.paddingBottom," ").concat(this.elStyles.paddingLeft),this.wrapperEl.style.margin="-".concat(this.elStyles.paddingTop," -").concat(this.elStyles.paddingRight," -").concat(this.elStyles.paddingBottom," -").concat(this.elStyles.paddingLeft);var u=this.contentEl.scrollHeight,f=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=i?"".concat(r||f,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&f>r,this.axis.y.isOverflowing=u>g,this.axis.x.isOverflowing=l==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&f>s-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>g-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el&&(this.axis.x.scrollbar.el.style.width="".concat(this.axis.x.scrollbar.size,"px")),this.axis.y.scrollbar.el&&(this.axis.y.scrollbar.el.style.height="".concat(this.axis.y.scrollbar.size,"px")),this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")}},e.prototype.getScrollbarSize=function(t){var r,n;if(t===void 0&&(t="y"),!this.axis[t].isOverflowing||!this.contentEl)return 0;var i=this.contentEl[this.axis[t].scrollSizeAttr],s=(n=(r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])!==null&&n!==void 0?n:0,l=s/i,c;return c=Math.max(~~(l*s),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var r,n,i;t===void 0&&(t="y");var s=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!s.el||!this.elStyles)){var l=this.contentWrapperEl[this.axis[t].scrollSizeAttr],c=((r=this.axis[t].track.el)===null||r===void 0?void 0:r[this.axis[t].offsetSizeAttr])||0,u=parseInt(this.elStyles[this.axis[t].sizeAttr],10),f=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];f=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-f:f,t==="x"&&this.isRtl&&(f=!((i=e.getRtlHelpers())===null||i===void 0)&&i.isScrollingToNegative?f:-f);var g=f/(l-u),p=~~((c-s.size)*g);p=t==="x"&&this.isRtl?-p+(c-s.size):p,s.el.style.transform=t==="x"?"translate3d(".concat(p,"px, 0, 0)"):"translate3d(0, ".concat(p,"px, 0)")}},e.prototype.toggleTrackVisibility=function(t){t===void 0&&(t="y");var r=this.axis[t].track.el,n=this.axis[t].scrollbar.el;!r||!n||!this.contentWrapperEl||(this.axis[t].isOverflowing||this.axis[t].forceVisible?(r.style.visibility="visible",this.contentWrapperEl.style[this.axis[t].overflowAttr]="scroll",this.el.classList.add("".concat(this.classNames.scrollable,"-").concat(t))):(r.style.visibility="hidden",this.contentWrapperEl.style[this.axis[t].overflowAttr]="hidden",this.el.classList.remove("".concat(this.classNames.scrollable,"-").concat(t))),this.axis[t].isOverflowing?n.style.display="block":n.style.display="none")},e.prototype.showScrollbar=function(t){t===void 0&&(t="y"),this.axis[t].isOverflowing&&!this.axis[t].scrollbar.isVisible&&(oi(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!0)},e.prototype.hideScrollbar=function(t){t===void 0&&(t="y"),!this.isDragging&&this.axis[t].isOverflowing&&this.axis[t].scrollbar.isVisible&&(si(this.axis[t].scrollbar.el,this.classNames.visible),this.axis[t].scrollbar.isVisible=!1)},e.prototype.hideNativeScrollbar=function(){this.offsetEl&&(this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px",this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-".concat(this.scrollbarWidth,"px"):"0px")},e.prototype.onMouseMoveForAxis=function(t){t===void 0&&(t="y");var r=this.axis[t];!r.track.el||!r.scrollbar.el||(r.track.rect=r.track.el.getBoundingClientRect(),r.scrollbar.rect=r.scrollbar.el.getBoundingClientRect(),this.isWithinBounds(r.track.rect)?(this.showScrollbar(t),oi(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?oi(r.scrollbar.el,this.classNames.hover):si(r.scrollbar.el,this.classNames.hover)):(si(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),si(this.axis[t].track.el,this.classNames.hover),si(this.axis[t].scrollbar.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)},e.prototype.onDragStart=function(t,r){var n;r===void 0&&(r="y"),this.isDragging=!0;var i=Dd(this.el),s=ii(this.el),l=this.axis[r].scrollbar,c=r==="y"?t.pageY:t.pageX;this.axis[r].dragOffset=c-(((n=l.rect)===null||n===void 0?void 0:n[this.axis[r].offsetAttr])||0),this.draggedAxis=r,oi(this.el,this.classNames.dragging),i.addEventListener("mousemove",this.drag,!0),i.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(i.addEventListener("click",this.preventClick,!0),i.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,i,s,l,c;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var f=ii(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var g=this.axis[r].scrollbar,p=(s=(i=g.rect)===null||i===void 0?void 0:i[this.axis[r].offsetAttr])!==null&&s!==void 0?s:0,h=parseInt((c=(l=this.elStyles)===null||l===void 0?void 0:l[this.axis[r].sizeAttr])!==null&&c!==void 0?c:"0px",10),b=this.contentWrapperEl[this.axis[r].scrollOffsetAttr],S=r==="y"?this.mouseY-p:this.mouseX-p,v=S<0?-1:1,y=v===-1?b-h:b+h,m=40,w=function(){n.contentWrapperEl&&(v===-1?b>y&&(b-=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)):b<y&&(b+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,f.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=ii(this.el);this.el.removeEventListener("mouseenter",this.onMouseEnter),this.el.removeEventListener("pointerdown",this.onPointerEvent,!0),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),t.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.onMouseMove.cancel(),this.onWindowResize.cancel(),this.onStopScrolling.cancel(),this.onMouseEntered.cancel()},e.prototype.unMount=function(){this.removeListeners()},e.prototype.isWithinBounds=function(t){return this.mouseX>=t.left&&this.mouseX<=t.left+t.width&&this.mouseY>=t.top&&this.mouseY<=t.top+t.height},e.prototype.findChild=function(t,r){var n=t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector;return Array.prototype.filter.call(t.children,function(i){return n.call(i,r)})[0]},e.rtlHelpers=null,e.defaultOptions={forceVisible:!1,clickOnTrack:!0,scrollbarMinSize:25,scrollbarMaxSize:0,ariaLabel:"scrollable content",tabIndex:0,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging",scrolling:"simplebar-scrolling",scrollable:"simplebar-scrollable",mouseEntered:"simplebar-mouse-entered"},scrollableNode:null,contentNode:null,autoHide:!0},e.getOptions=zP,e.helpers=LP,e})(),wr=function(){return wr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},wr.apply(this,arguments)};function $P(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}var Tp=V.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,i=n===void 0?{}:n,s=$P(e,["children","scrollableNodeProps"]),l=V.useRef(),c=V.useRef(),u=V.useRef(),f={},g={};Object.keys(s).forEach(function(b){Object.prototype.hasOwnProperty.call(ws.defaultOptions,b)?f[b]=s[b]:g[b]=s[b]});var p=wr(wr({},ws.defaultOptions.classNames),f.classNames),h=wr(wr({},i),{className:"".concat(p.contentWrapper).concat(i.className?" ".concat(i.className):""),tabIndex:f.tabIndex||ws.defaultOptions.tabIndex,role:"region","aria-label":f.ariaLabel||ws.defaultOptions.ariaLabel});return V.useEffect(function(){var b;return c.current=h.ref?h.ref.current:c.current,l.current&&(b=new ws(l.current,wr(wr(wr({},f),c.current&&{scrollableNode:c.current}),u.current&&{contentNode:u.current})),typeof t=="function"?t(b):t&&(t.current=b)),function(){b==null||b.unMount(),b=null,typeof t=="function"&&t(null)}},[]),V.createElement("div",wr({"data-simplebar":"init",ref:l},g),V.createElement("div",{className:p.wrapper},V.createElement("div",{className:p.heightAutoObserverWrapperEl},V.createElement("div",{className:p.heightAutoObserverEl})),V.createElement("div",{className:p.mask},V.createElement("div",{className:p.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:wr(wr({},h),{ref:c}),contentNodeRef:u,contentNodeProps:{className:p.contentEl,ref:u}}):V.createElement("div",wr({},h),V.createElement("div",{className:p.contentEl},r)))),V.createElement("div",{className:p.placeholder})),V.createElement("div",{className:"".concat(p.track," ").concat(p.horizontal)},V.createElement("div",{className:p.scrollbar})),V.createElement("div",{className:"".concat(p.track," ").concat(p.vertical)},V.createElement("div",{className:p.scrollbar})))});Tp.displayName="SimpleBar";const Ew=N.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:i=!1,className:s,children:l,...c},u)=>{const[f,g]=N.useState(!1),[p,h]=N.useState(!1),b={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:i,hasMessage:f,setHasMessage:g,hasArea:p,setHasArea:h};return A.jsx(hw.Provider,{value:b,children:A.jsx("div",{ref:u,"data-qui":"Input",className:le(nP(),s),...c,children:l})})}),_w=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}=ka();return A.jsx("div",{ref:n,"data-qui":"InputGroup",className:le(iP({size:i,color:s,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:f,isInvalid:g}),e),...r,children:t})}),Ow=N.forwardRef(({className:e,...t},r)=>{const{size:n,color:i,isInvalid:s,isDisabled:l,isReadOnly:c}=ka(),{isDisabled:u,isReadOnly:f,...g}=t;return A.jsx("input",{ref:r,disabled:l||u,readOnly:f||c||!1,"aria-invalid":s,className:le(oP({size:n,color:i}),e),...g})}),jP=N.forwardRef(({className:e,wrapperClassName:t,autoHeight:r,...n},i)=>{const{size:s,color:l,isInvalid:c,isDisabled:u,setHasArea:f}=ka(),g=N.useRef(null),p=i||g,h=N.useRef(null);N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]);const b=N.useCallback(()=>{if(g.current){const x=g.current;x.style.height="auto",x.style.height=`${x.scrollHeight}px`}},[]),S=x=>{var O;b(),(O=n.onInput)==null||O.call(n,x)};N.useEffect(()=>{b()},[b,n.value]),N.useEffect(()=>{r&&h.current&&h.current.style.removeProperty("height")},[r]);const v=x=>{x.preventDefault();const O=h.current;if(!O)return;const _=x.clientY,R=O.offsetHeight,H=z=>{const U=R+(z.clientY-_);U>30&&(O.style.height=U+"px")},P=()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",P)};document.addEventListener("mousemove",H),document.addEventListener("mouseup",P)},{isDisabled:y,isReadOnly:m,...w}=n;return A.jsxs("div",{ref:h,className:le("w-full relative",!r&&!n.rows&&"h-30",t),children:[r?A.jsx("textarea",{ref:p,rows:1,className:le(Sm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{overflow:"hidden"},...w}):A.jsx(Tp,{style:{height:"100%"},children:A.jsx("textarea",{ref:p,rows:1,className:le(Sm({size:s,color:l}),e),disabled:u||y,onInput:S,readOnly:m||!1,"aria-invalid":c,style:{height:"auto",overflow:"hidden",width:"100%"},...w})}),!r&&A.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:v,children:A.jsx(F5,{})})]})}),kw=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=ka(),g=r||f,p=sP({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"InputIcon",className:le(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),FP=N.forwardRef(({icon:e,className:t,children:r,...n},i)=>{const{size:s,color:l,setHasMessage:c,isDisabled:u}=ka();return N.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),A.jsxs("div",{ref:i,"data-qui":"InputMessage",role:"alert",className:le(aP({size:s,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&A.jsx("div",{className:le(lP({size:s}),t),children:e}),A.jsx("p",{children:r})]})});Ew.displayName="InputRoot";_w.displayName="InputGroup";Ow.displayName="InputField";jP.displayName="InputArea";kw.displayName="InputIcon";FP.displayName="InputMessage";const xs={Root:Ew,Group:_w,Field:Ow,Icon:kw},da={primary:{container:"bg-primary-light",text:"text-primary-dark",icon:"text-primary-dark",button:"hover:bg-primary-hover hover:text-body"},positive:{container:"bg-positive-light",text:"text-positive-dark",icon:"text-positive-dark",button:"hover:bg-positive hover:text-body"},negative:{container:"bg-negative-light",text:"text-negative-dark",icon:"text-negative-dark",button:"hover:bg-negative hover:text-body"},warning:{container:"bg-warning-light",text:"text-warning-dark",icon:"text-warning-dark",button:"hover:bg-warning hover:text-body"}},HP=({color:e})=>le("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",da[e].container,da[e].icon),WP=({color:e})=>le("text-xs font-medium leading-3",da[e].text),BP=({color:e})=>le("p-0.5 rounded cursor-pointer",da[e].button,da[e].icon),Aw=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:i,children:s,delay:l=0,trigger:c="hover",className:u,container:f,isHidden:g=!1})=>{const[p,h]=N.useState(!1),[b,S]=N.useState(!1),[v,y]=N.useState({position:r,transform:""}),m=N.useRef(null),w=N.useRef(null),x=N.useRef(null),O=p&&!g;N.useEffect(()=>{O||S(!1)},[O]);const _=N.useCallback(()=>{if(!m.current||!w.current)return;const D=m.current.getBoundingClientRect(),F=w.current.getBoundingClientRect(),I=window.innerWidth,K=window.innerHeight,te=window.scrollX,Y=window.scrollY,ve=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,I),j=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,K),W=4;let ee=r,Q={position:ee,transform:""};const X=de=>{const{top:pe,left:he,width:xe,height:Z}=D,Oe=pe+Y,ge=he+te;switch(de){case"up":return{top:`${Oe-F.height-W}px`,left:`${ge+xe/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${Oe-F.height-W}px`,left:`${ge}px`,transform:"translateX(0)"};case"up-end":return{top:`${Oe-F.height-W}px`,left:`${ge+xe-F.width}px`,transform:"translateX(0)"};case"down":return{top:`${Oe+Z+W}px`,left:`${ge+xe/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${Oe+Z+W}px`,left:`${ge}px`,transform:"translateX(0)"};case"down-end":return{top:`${Oe+Z+W}px`,left:`${ge+xe-F.width}px`,transform:"translateX(0)"};case"left":return{top:`${Oe+Z/2}px`,left:`${ge-F.width-W}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${Oe}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"left-end":return{top:`${Oe+Z-F.height}px`,left:`${ge-F.width-W}px`,transform:"translateY(0)"};case"right":return{top:`${Oe+Z/2}px`,left:`${ge+xe+W}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${Oe}px`,left:`${ge+xe+W}px`,transform:"translateY(0)"};case"right-end":return{top:`${Oe+Z-F.height}px`,left:`${ge+xe+W}px`,transform:"translateY(0)"};default:return{}}},ue={up:{fits:D.top-F.height-W>=0},"up-start":{fits:D.top-F.height-W>=0&&D.left+F.width<=I},"up-end":{fits:D.top-F.height-W>=0&&D.right-F.width>=0},down:{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=j},"down-start":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=j&&D.left+F.width<=I},"down-end":{fits:D.bottom+F.height+W<=K&&D.bottom+F.height+W<=j&&D.right-F.width>=0},left:{fits:D.left-F.width-W>=0},"left-start":{fits:D.left-F.width-W>=0&&D.top+F.height<=K},"left-end":{fits:D.left-F.width-W>=0&&D.bottom-F.height>=0},right:{fits:D.right+F.width+W<=I&&D.right+F.width+W<=ve},"right-start":{fits:D.right+F.width+W<=I&&D.right+F.width+W<=ve&&D.top+F.height<=K},"right-end":{fits:D.right+F.width+W<=I&&D.right+F.width+W<=ve&&D.bottom-F.height>=0}},ie=D.left+D.width/2-F.width/2,ne=D.left+D.width/2+F.width/2;if((r==="up"||r==="down")&&(ie<0||ne>I)&&(ue[r].fits=!1),ue[r].fits){const de=X(r);Q={position:r,...de,transform:de.transform||""}}else{const de=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(pe=>ue[pe].fits);if(de){ee=de;const pe=X(de);Q={position:ee,...pe,transform:pe.transform||""}}else{const pe={up:D.top,"up-start":D.top,"up-end":D.top,down:Math.min(K-D.bottom,j-D.bottom),"down-start":Math.min(K-D.bottom,j-D.bottom),"down-end":Math.min(K-D.bottom,j-D.bottom),left:D.left,"left-start":D.left,"left-end":D.left,right:Math.min(I-D.right,ve-D.right),"right-start":Math.min(I-D.right,ve-D.right),"right-end":Math.min(I-D.right,ve-D.right)},he=Object.entries(pe).reduce((Z,[Oe,ge])=>ge>Z.space?{position:Oe,space:ge}:Z,{position:"up",space:0}).position;ee=he;const xe=X(he);Q={position:ee,...xe,transform:xe.transform||""}}}y(Q)},[r]),R=()=>{c==="click"&&(h(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{b||h(!1)},l))},H=D=>{D.stopPropagation(),h(!1),x.current&&clearTimeout(x.current)},P=()=>{S(!0),x.current&&clearTimeout(x.current)},z=()=>{S(!1),p&&(x.current=setTimeout(()=>{h(!1)},l))},U=()=>{c==="hover"&&(h(!0),x.current&&clearTimeout(x.current))},$=()=>{c==="hover"&&(x.current=setTimeout(()=>{h(!1)},l))};N.useEffect(()=>{if(p){const D=requestAnimationFrame(()=>{_()});return()=>cancelAnimationFrame(D)}},[p,e,_]),N.useEffect(()=>{if(p){const D=setTimeout(()=>_(),0);return()=>clearTimeout(D)}},[p,_]),N.useEffect(()=>{const D=()=>{p&&_()},F=()=>{p&&_()};return window.addEventListener("resize",D),window.addEventListener("scroll",F,!0),()=>{window.removeEventListener("resize",D),window.removeEventListener("scroll",F,!0),x.current&&clearTimeout(x.current)}},[p,_]);const M=f||(typeof document<"u"?document.body:null);return M?A.jsxs(A.Fragment,{children:[A.jsx("div",{"data-qui":"Tooltip",ref:m,onClick:R,onMouseEnter:U,onMouseLeave:$,className:le("relative inline-flex items-center",u),children:s}),p&&!g&&!!e&&En.createPortal(A.jsxs("div",{ref:w,role:"tooltip",className:HP({color:t}),style:{position:"absolute",left:v.left??0,top:v.top??0,transform:v.transform,zIndex:1e3,opacity:v.left?1:0,pointerEvents:n?"auto":"none"},onMouseEnter:n?P:void 0,onMouseLeave:n?z:void 0,children:[i&&A.jsx("span",{"data-testid":"tooltip-icon",children:i}),A.jsx("div",{className:WP({color:t}),children:e}),n&&A.jsx("div",{onClick:H,className:BP({color:t}),role:"button",children:A.jsx(Wo,{})})]}),M)]}):null};var Tm;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Tm||(Tm={}));const VP=Object.freeze({x:0,y:0});var Ao;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(Ao||(Ao={}));var Rm;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Rm||(Rm={}));var zr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(zr||(zr={}));zr.Space,zr.Enter,zr.Esc,zr.Space,zr.Enter,zr.Tab;var Cm;(function(e){e[e.RightClick=2]="RightClick"})(Cm||(Cm={}));var Pm;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Pm||(Pm={}));var Im;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Im||(Im={}));Ao.Backward+"",Ao.Forward+"",Ao.Backward+"",Ao.Forward+"";var jf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(jf||(jf={}));var Ff;(function(e){e.Optimized="optimized"})(Ff||(Ff={}));jf.WhileDragging,Ff.Optimized;({...VP});var Nm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Nm||(Nm={}));zr.Down,zr.Right,zr.Up,zr.Left;const Tw={sm:{padding:"px-4 py-0.5",text:"text-xxs",icon:"w-3 h-3",gap:"gap-0.5",badge:"min-w-3.5 h-3.5 text-2"},md:{padding:"px-6 py-1",text:"text-s",icon:"w-4 h-4",gap:"gap-1",badge:"min-w-4.5 h-4.5 text-xxs"},lg:{padding:"px-8 py-1.5",text:"text-base",icon:"w-5 h-5",gap:"gap-1.5",badge:"min-w-5 h-5 text-xs"}},UP={primary:{active:{bg:"bg-primary",text:"text-button-text",border:"border-primary"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-primary-hover",text:"hover:text-button-text"}},positive:{active:{bg:"bg-positive",text:"text-button-text",border:"border-positive"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-positive-hover",text:"hover:text-body"}},warning:{active:{bg:"bg-warning",text:"text-warning-text",border:"border-warning"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-warning-hover",text:"hover:text-body"}},negative:{active:{bg:"bg-negative",text:"text-button-text",border:"border-negative"},inactive:{bg:"bg-input-bg",text:"text-inactive-text",border:"border-transparent"},hover:{bg:"hover:bg-negative-hover",text:"hover:text-body"}}},qP=(e,t,r,n)=>{const i=UP[e],s=Tw[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?le(l,s.padding,s.text,s.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?le(l,s.padding,s.text,s.gap,i.active.bg,i.active.text,"shadow-xs"):le(l,s.padding,s.text,s.gap,i.inactive.bg,i.inactive.text,i.hover.bg,i.hover.text)},GP=(e,t)=>le("flex items-center justify-center",Tw[e].icon,{"opacity-50":t}),ZP=()=>le("whitespace-nowrap"),Rw=(e,t)=>{const r=le("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?le(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?le(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):le(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},KP=N.createContext(void 0),YP=N.forwardRef(({value:e,label:t,icon:r,disabled:n,children:i,className:s,onClick:l,active:c,onClose:u,closable:f,touched:g,content:p,renderTab:h,...b},S)=>{const v=N.useContext(KP);if(!v)return null;const{activeTab:y,onTabChange:m,variant:w,color:x,size:O,showIcons:_,disabled:R}=v,H=c!==void 0?c:y===e,P=n||R,z=U=>{P||(m(e),l==null||l(U))};return w==="file"?A.jsx("div",{"data-qui":"FileTabItem",className:le(Rw(H,!1),"cursor-pointer",s),onClick:U=>!P&&z(U),children:i||A.jsx(A.Fragment,{children:A.jsxs("span",{className:"flex items-center gap-2",children:[r,A.jsx("span",{children:t})]})})}):A.jsxs("button",{ref:S,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":H,"aria-disabled":P,className:le(qP(x,O,H,P||!1),s),onClick:z,disabled:P,...b,children:[_&&r&&A.jsx("span",{className:GP(O,P||!1),children:r}),A.jsx("span",{className:ZP(),children:i||t})]})});YP.displayName="TabItem";const XP=N.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},i)=>A.jsx("div",{"data-qui":"TabNavContainer",className:Rw(e,t),ref:i,...n,children:r}));XP.displayName="TabNavContainer";var _t=function(){return _t=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},_t.apply(this,arguments)},Mm={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Dm={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},Pl={width:"20px",height:"20px",position:"absolute",zIndex:1},JP={top:_t(_t({},Mm),{top:"-5px"}),right:_t(_t({},Dm),{left:void 0,right:"-5px"}),bottom:_t(_t({},Mm),{top:void 0,bottom:"-5px"}),left:_t(_t({},Dm),{left:"-5px"}),topRight:_t(_t({},Pl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:_t(_t({},Pl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:_t(_t({},Pl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:_t(_t({},Pl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},QP=N.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,i=e.replaceStyles,s=e.className,l=N.useCallback(function(f){t(f,r)},[t,r]),c=N.useCallback(function(f){t(f,r)},[t,r]),u=N.useMemo(function(){return _t(_t({position:"absolute",userSelect:"none"},JP[r]),i??{})},[i,r]);return A.jsx("div",{className:s||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),eI=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(n[s]=i[s])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function n(){this.constructor=t}t.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),pn=function(){return pn=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pn.apply(this,arguments)},tI={width:"auto",height:"auto"},Il=function(e,t,r){return Math.max(Math.min(e,r),t)},Lm=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},mo=function(e,t){return new RegExp(e,"i").test(t)},Nl=function(e){return!!(e.touches&&e.touches.length)},rI=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},zm=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(s,l,c){return Math.abs(l-e)<Math.abs(t[s]-e)?c:s},0),i=Math.abs(t[n]-e);return r===0||i<r?t[n]:e},Ld=function(e){return e=e.toString(),e==="auto"||e.endsWith("px")||e.endsWith("%")||e.endsWith("vh")||e.endsWith("vw")||e.endsWith("vmax")||e.endsWith("vmin")?e:"".concat(e,"px")},Ml=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var i=Number(e.replace("%",""))/100;return t*i}if(e.endsWith("vw")){var i=Number(e.replace("vw",""))/100;return r*i}if(e.endsWith("vh")){var i=Number(e.replace("vh",""))/100;return n*i}}return e},nI=function(e,t,r,n,i,s,l){return n=Ml(n,e.width,t,r),i=Ml(i,e.height,t,r),s=Ml(s,e.width,t,r),l=Ml(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof i>"u"?void 0:Number(i),minWidth:typeof s>"u"?void 0:Number(s),minHeight:typeof l>"u"?void 0:Number(l)}},iI=function(e){return Array.isArray(e)?e:[e,e]},oI=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],$m="__resizable_base__",sI=(function(e){eI(t,e);function t(r){var n,i,s,l,c=e.call(this,r)||this;return c.ratio=1,c.resizable=null,c.parentLeft=0,c.parentTop=0,c.resizableLeft=0,c.resizableRight=0,c.resizableTop=0,c.resizableBottom=0,c.targetLeft=0,c.targetTop=0,c.delta={width:0,height:0},c.appendBase=function(){if(!c.resizable||!c.window)return null;var u=c.parentNode;if(!u)return null;var f=c.window.document.createElement("div");return f.style.width="100%",f.style.height="100%",f.style.position="absolute",f.style.transform="scale(0, 0)",f.style.left="0",f.style.flex="0 0 100%",f.classList?f.classList.add($m):f.className+=$m,u.appendChild(f),f},c.removeBase=function(u){var f=c.parentNode;f&&f.removeChild(u)},c.state={isResizing:!1,width:(i=(n=c.propsSize)===null||n===void 0?void 0:n.width)!==null&&i!==void 0?i:"auto",height:(l=(s=c.propsSize)===null||s===void 0?void 0:s.height)!==null&&l!==void 0?l:"auto",direction:"right",original:{x:0,y:0,width:0,height:0},backgroundStyle:{height:"100%",width:"100%",backgroundColor:"rgba(0,0,0,0)",cursor:"auto",opacity:0,position:"fixed",zIndex:9999,top:"0",left:"0",bottom:"0",right:"0"},flexBasis:void 0},c.onResizeStart=c.onResizeStart.bind(c),c.onMouseMove=c.onMouseMove.bind(c),c.onMouseUp=c.onMouseUp.bind(c),c}return Object.defineProperty(t.prototype,"parentNode",{get:function(){return this.resizable?this.resizable.parentNode:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"window",{get:function(){return!this.resizable||!this.resizable.ownerDocument?null:this.resizable.ownerDocument.defaultView},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"propsSize",{get:function(){return this.props.size||this.props.defaultSize||tI},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var i=this.resizable.offsetWidth,s=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:i,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:s,this.resizable.style.position=l}return{width:r,height:n}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sizeStyle",{get:function(){var r=this,n=this.props.size,i=function(c){var u;if(typeof r.state[c]>"u"||r.state[c]==="auto")return"auto";if(r.propsSize&&r.propsSize[c]&&!((u=r.propsSize[c])===null||u===void 0)&&u.toString().endsWith("%")){if(r.state[c].toString().endsWith("%"))return r.state[c].toString();var f=r.getParentSize(),g=Number(r.state[c].toString().replace("px","")),p=g/f[c]*100;return"".concat(p,"%")}return Ld(r.state[c])},s=n&&typeof n.width<"u"&&!this.state.isResizing?Ld(n.width):i("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Ld(n.height):i("height");return{width:s,height:l}},enumerable:!1,configurable:!0}),t.prototype.getParentSize=function(){if(!this.parentNode)return this.window?{width:this.window.innerWidth,height:this.window.innerHeight}:{width:0,height:0};var r=this.appendBase();if(!r)return{width:0,height:0};var n=!1,i=this.parentNode.style.flexWrap;i!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var s={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=i),this.removeBase(r),s},t.prototype.bindEvents=function(){this.window&&(this.window.addEventListener("mouseup",this.onMouseUp),this.window.addEventListener("mousemove",this.onMouseMove),this.window.addEventListener("mouseleave",this.onMouseUp),this.window.addEventListener("touchmove",this.onMouseMove,{capture:!0,passive:!1}),this.window.addEventListener("touchend",this.onMouseUp))},t.prototype.unbindEvents=function(){this.window&&(this.window.removeEventListener("mouseup",this.onMouseUp),this.window.removeEventListener("mousemove",this.onMouseMove),this.window.removeEventListener("mouseleave",this.onMouseUp),this.window.removeEventListener("touchmove",this.onMouseMove,!0),this.window.removeEventListener("touchend",this.onMouseUp))},t.prototype.componentDidMount=function(){if(!(!this.resizable||!this.window)){var r=this.window.getComputedStyle(this.resizable);this.setState({width:this.state.width||this.size.width,height:this.state.height||this.size.height,flexBasis:r.flexBasis!=="auto"?r.flexBasis:void 0})}},t.prototype.componentWillUnmount=function(){this.window&&this.unbindEvents()},t.prototype.createSizeForCssProperty=function(r,n){var i=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof i>"u"||i==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var i=this.props.boundsByDirection,s=this.state.direction,l=i&&mo("left",s),c=i&&mo("top",s),u,f;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(u=l?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),f=c?this.resizableBottom-this.parentTop:g.offsetHeight+(this.parentTop-this.resizableTop))}else this.props.bounds==="window"?this.window&&(u=l?this.resizableRight:this.window.innerWidth-this.resizableLeft,f=c?this.resizableBottom:this.window.innerHeight-this.resizableTop):this.props.bounds&&(u=l?this.resizableRight-this.targetLeft:this.props.bounds.offsetWidth+(this.targetLeft-this.resizableLeft),f=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),f&&Number.isFinite(f)&&(n=n&&n<f?n:f),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var i=this.props.scale||1,s=iI(this.props.resizeRatio||1),l=s[0],c=s[1],u=this.state,f=u.direction,g=u.original,p=this.props,h=p.lockAspectRatio,b=p.lockAspectRatioExtraHeight,S=p.lockAspectRatioExtraWidth,v=g.width,y=g.height,m=b||0,w=S||0;return mo("right",f)&&(v=g.width+(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("left",f)&&(v=g.width-(r-g.x)*l/i,h&&(y=(v-w)/this.ratio+m)),mo("bottom",f)&&(y=g.height+(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),mo("top",f)&&(y=g.height-(n-g.y)*c/i,h&&(v=(y-m)*this.ratio+w)),{newWidth:v,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,i,s){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,f=l.lockAspectRatioExtraWidth,g=typeof s.width>"u"?10:s.width,p=typeof i.width>"u"||i.width<0?r:i.width,h=typeof s.height>"u"?10:s.height,b=typeof i.height>"u"||i.height<0?n:i.height,S=u||0,v=f||0;if(c){var y=(h-S)*this.ratio+v,m=(b-S)*this.ratio+v,w=(g-v)/this.ratio+S,x=(p-v)/this.ratio+S,O=Math.max(g,y),_=Math.min(p,m),R=Math.max(h,w),H=Math.min(b,x);r=Il(r,O,_),n=Il(n,R,H)}else r=Il(r,g,p),n=Il(n,h,b);return{newWidth:r,newHeight:n}},t.prototype.setBoundingClientRect=function(){var r=1/(this.props.scale||1);if(this.props.bounds==="parent"){var n=this.parentNode;if(n){var i=n.getBoundingClientRect();this.parentLeft=i.left*r,this.parentTop=i.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var s=this.props.bounds.getBoundingClientRect();this.targetLeft=s.left*r,this.targetTop=s.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,f=l.right,g=l.bottom;this.resizableLeft=c*r,this.resizableRight=f*r,this.resizableTop=u*r,this.resizableBottom=g*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var i=0,s=0;if(r.nativeEvent&&rI(r.nativeEvent)?(i=r.nativeEvent.clientX,s=r.nativeEvent.clientY):r.nativeEvent&&Nl(r.nativeEvent)&&(i=r.nativeEvent.touches[0].clientX,s=r.nativeEvent.touches[0].clientY),this.props.onResizeStart&&this.resizable){var l=this.props.onResizeStart(r,n,this.resizable);if(l===!1)return}this.props.size&&(typeof this.props.size.height<"u"&&this.props.size.height!==this.state.height&&this.setState({height:this.props.size.height}),typeof this.props.size.width<"u"&&this.props.size.width!==this.state.width&&this.setState({width:this.props.size.width})),this.ratio=typeof this.props.lockAspectRatio=="number"?this.props.lockAspectRatio:this.size.width/this.size.height;var c,u=this.window.getComputedStyle(this.resizable);if(u.flexBasis!=="auto"){var f=this.parentNode;if(f){var g=this.window.getComputedStyle(f).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var p={original:{x:i,y:s,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(p)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&Nl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var i=this.props,s=i.maxWidth,l=i.maxHeight,c=i.minWidth,u=i.minHeight,f=Nl(r)?r.touches[0].clientX:r.clientX,g=Nl(r)?r.touches[0].clientY:r.clientY,p=this.state,h=p.direction,b=p.original,S=p.width,v=p.height,y=this.getParentSize(),m=nI(y,this.window.innerWidth,this.window.innerHeight,s,l,c,u);s=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(f,g),x=w.newHeight,O=w.newWidth,_=this.calculateNewMaxFromBoundary(s,l);this.props.snap&&this.props.snap.x&&(O=zm(O,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=zm(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(O,x,{width:_.maxWidth,height:_.maxHeight},{width:c,height:u});if(O=R.newWidth,x=R.newHeight,this.props.grid){var H=Lm(O,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=Lm(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),z=this.props.snapGap||0,U=z===0||Math.abs(H-O)<=z?H:O,$=z===0||Math.abs(P-x)<=z?P:x;O=U,x=$}var M={width:O-b.width,height:x-b.height};if(this.delta=M,S&&typeof S=="string"){if(S.endsWith("%")){var D=O/y.width*100;O="".concat(D,"%")}else if(S.endsWith("vw")){var F=O/this.window.innerWidth*100;O="".concat(F,"vw")}else if(S.endsWith("vh")){var I=O/this.window.innerHeight*100;O="".concat(I,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var D=x/y.height*100;x="".concat(D,"%")}else if(v.endsWith("vw")){var F=x/this.window.innerWidth*100;x="".concat(F,"vw")}else if(v.endsWith("vh")){var I=x/this.window.innerHeight*100;x="".concat(I,"vh")}}var K={width:this.createSizeForCssProperty(O,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?K.flexBasis=K.width:this.flexDir==="column"&&(K.flexBasis=K.height);var te=this.state.width!==K.width,Y=this.state.height!==K.height,ve=this.state.flexBasis!==K.flexBasis,j=te||Y||ve;j&&En.flushSync(function(){n.setState(K)}),this.props.onResize&&j&&this.props.onResize(r,h,this.resizable,M)}},t.prototype.onMouseUp=function(r){var n,i,s=this.state,l=s.isResizing,c=s.direction;s.original,!(!l||!this.resizable)&&(this.props.onResizeStop&&this.props.onResizeStop(r,c,this.resizable,this.delta),this.props.size&&this.setState({width:(n=this.props.size.width)!==null&&n!==void 0?n:"auto",height:(i=this.props.size.height)!==null&&i!==void 0?i:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:pn(pn({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,i;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(i=r.height)!==null&&i!==void 0?i:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,i=n.enable,s=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,f=n.handleComponent;if(!i)return null;var g=Object.keys(i).map(function(p){return i[p]!==!1?A.jsx(QP,{direction:p,onResizeStart:r.onResizeStart,replaceStyles:s&&s[p],className:l&&l[p],children:f&&f[p]?f[p]:null},p):null});return A.jsx("div",{className:u,style:c,children:g})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return oI.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),i=pn(pn(pn({position:"relative",userSelect:this.state.isResizing?"none":"auto"},this.props.style),this.sizeStyle),{maxWidth:this.props.maxWidth,maxHeight:this.props.maxHeight,minWidth:this.props.minWidth,minHeight:this.props.minHeight,boxSizing:"border-box",flexShrink:0});this.state.flexBasis&&(i.flexBasis=this.state.flexBasis);var s=this.props.as||"div";return A.jsxs(s,pn({style:i,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&A.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(N.PureComponent);const aI={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},lI={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Cw=({depth:e=0,className:t,borderType:r,disabled:n})=>le("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?lI[r]:"border-panel-border",aI[e],t),cI=e=>{if(!e)return{};const t={},r=e.match(/min-w-\[(\d+)px\]/);r&&(t.minWidth=parseInt(r[1],10));const n=e.match(/max-w-\[(\d+)px\]/);n&&(t.maxWidth=parseInt(n[1],10));const i=e.match(/min-h-\[(\d+)px\]/);i&&(t.minHeight=parseInt(i[1],10));const s=e.match(/max-h-\[(\d+)px\]/);return s&&(t.maxHeight=parseInt(s[1],10)),t},Pw=N.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:i=10,maxWidth:s,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:f,size:g,grid:p,snap:h,lockAspectRatio:b=!1,enable:S,handleStyles:v={},handleClasses:y={},handleComponent:m={},style:w={},className:x,onResizeStart:O,onResize:_,onResizeStop:R,scale:H=1,bounds:P,snapGap:z,as:U="div",depth:$,disabled:M},D)=>{const F=Cw({depth:$,className:x,disabled:M}),I=cI(x),K=g?{size:g}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},te=f?{defaultSize:f}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},Y=N.useRef(null);return N.useImperativeHandle(D,()=>{var ve;return(ve=Y.current)==null?void 0:ve.resizable}),A.jsx(sI,{"data-qui":"Resizable",ref:Y,...K,...te,minWidth:n??I.minWidth,minHeight:i??I.minHeight,maxWidth:s??I.maxWidth,maxHeight:l??I.maxHeight,grid:p,snap:h,lockAspectRatio:b,enable:S,handleStyles:v,handleClasses:y,handleComponent:m,style:w,className:le("relative box-border",F),onResizeStart:O,onResize:_,onResizeStop:R,scale:H,bounds:P,snapGap:z,as:U,children:e})});Pw.displayName="Resizable";const Iw=({isDragging:e=!1,className:t})=>A.jsx("div",{className:le("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:A.jsx("div",{className:le("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});Iw.displayName="Handle";const bo={sm:{track:"h-4 w-7",thumb:"size-3",thumbUnchecked:"left-0.5",thumbChecked:"left-3.5",label:"text-xs",gap:"gap-2"},md:{track:"h-5 w-9",thumb:"size-4",thumbUnchecked:"left-0.5",thumbChecked:"left-4.5",label:"text-sm",gap:"gap-2.5"},lg:{track:"h-6 w-11",thumb:"size-5",thumbUnchecked:"left-0.5",thumbChecked:"left-5.5",label:"text-base",gap:"gap-3"}},Dl={primary:{bg:"bg-primary",thumb:"group-hover:bg-primary-light",icon:"text-primary"},positive:{bg:"bg-positive",thumb:"group-hover:bg-positive-light",icon:"text-positive"},warning:{bg:"bg-warning",thumb:"group-hover:bg-warning-light",icon:"text-warning"},negative:{bg:"bg-negative",thumb:"group-hover:bg-negative-light",icon:"text-negative"}},uI=(e,t,r,n,i,s)=>({container:le("inline-flex items-center",bo[e].gap,s),track:le("relative inline-flex items-center shrink-0 group","transition-colors duration-200 ease-in-out","focus:outline-hidden focus-visible:ring-2 focus-visible:ring-primary focus-visible:ring-offset-2","border border-input-border rounded-full justify-between px-0.5",bo[e].track,{[Dl[t].bg]:r&&!n&&!i,"bg-input-bg":!r&&!n||i,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:le("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",bo[e].thumb,r?bo[e].thumbChecked:bo[e].thumbUnchecked,{[Dl[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:le("flex items-center justify-center z-10 w-1/2 p-0.5",{[Dl[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:le("flex items-center justify-center z-10 w-1/2 p-0.5",{[Dl[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:le("font-medium text-body",bo[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),Nw=N.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:i="md",color:s="primary",icons:l,onChange:c,className:u,id:f,name:g,...p},h)=>{const[b,S]=N.useState(r),v=t!==void 0,y=v?t:b,m=()=>{const x=!y;v||S(x),c==null||c(x)},w=uI(i,s,y,n,!!l,u);return A.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&A.jsx("label",{htmlFor:f,className:w.label,children:e}),A.jsxs("button",{ref:h,...p,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:n,onClick:m,name:g,id:f,className:w.track,children:[l&&A.jsx("span",{className:w.iconLeft,children:l.unchecked}),A.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&A.jsx("span",{className:w.iconRight,children:l.checked})]})]})});Nw.displayName="Toggle";N.createContext(null);const qi=N.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:i,...s},l)=>{const c=Cw({depth:e,className:t,borderType:n,disabled:i});return A.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":i,...s,children:r})});qi.displayName="Panel";const fa={sm:{container:"h-5 px-0.5 gap-1 rounded",text:"text-xxs leading-3",icon:"text-s",iconButton:"text-s p-0.5 cursor-pointer"},md:{container:"h-5.5 px-1 gap-1 rounded",text:"text-xs leading-4",icon:"text-sm",iconButton:" text-sm p-0.5 cursor-pointer"},lg:{container:"h-6 px-1.5 gap-1.5 rounded",text:"text-s leading-none",icon:"text-base",iconButton:"text-base p-0.5 cursor-pointer"}},cc={primary:{bg:"bg-primary",text:"text-button-text",border:"border-primary",buttonHover:"hover:bg-primary-hover"},white:{bg:"bg-canvas-default",text:"text-primary",border:"border-canvas-default",buttonHover:"hover:bg-primary-hover hover:text-button-text"},positive:{bg:"bg-positive",text:"text-button-text",border:"border-positive",buttonHover:"hover:bg-positive-hover"},warning:{bg:"bg-warning",text:"text-button-text",border:"border-warning",buttonHover:"hover:bg-warning-hover"},negative:{bg:"bg-negative",text:"text-button-text",border:"border-negative",buttonHover:"hover:bg-negative-hover"},dark:{bg:"bg-input-bg",text:"text-input-text",border:"border-input-border",buttonHover:"hover:bg-primary-hover hover:text-button-text"}},dI=(e,t,r,n)=>le("inline-flex items-center justify-center font-medium border",fa[e].container,cc[t].bg,cc[t].text,cc[t].border,fa[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),fI=(e,t,r)=>le({[fa[e].icon]:!r,"bg-canvas-default outline-canvas-default text-primary":r&&t!=="white"||r,"bg-primary outline-primary text-button-text":r&&t==="white"&&!r,"outline-solid outline-1 h-full py-0.5 grid place-items-center -my-1 only:-mx-0.5 first:-ml-1.5 last:-mr-1.5 only:rounded first:rounded-l last:rounded-r":r||r}),pI=e=>le(fa[e].text),Mw=(e,t,r)=>le("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",fa[e].iconButton,cc[t].buttonHover,{"pointer-events-none":r}),Dw=N.createContext(null),Zc=()=>{const e=N.useContext(Dw);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},Rp=N.forwardRef(({size:e="md",color:t="primary",className:r,children:n,disabled:i=!1,onClick:s,...l},c)=>{const u={size:e,color:t,disabled:i},f=!!s;return A.jsx(Dw.Provider,{value:u,children:A.jsx("div",{"data-qui":"Pill",ref:c,onClick:s,className:le(dI(e,t,i,f),r),...l,children:n})})});Rp.displayName="Pill.Root";const Cp=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i}=Zc();return A.jsx("span",{ref:n,className:le(pI(i),e),...r,children:t})});Cp.displayName="Pill.Text";const Pp=N.forwardRef(({className:e,children:t,label:r,position:n,...i},s)=>{const{size:l,color:c,disabled:u}=Zc(),f=!!r,g=A.jsx("span",{ref:s,className:le(fI(l,c,f),e,{"opacity-60":u}),...i,children:t});return f&&!u?A.jsx(Aw,{label:r||"",position:n||"up",children:g}):g});Pp.displayName="Pill.Icon";const Lw=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,disabled:l}=Zc();return A.jsx("button",{ref:n,type:"button",disabled:l,className:le(Mw(i,s,l),e),...r,children:t})});Lw.displayName="Pill.Button";const Ip=N.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...i},s)=>{const{size:l,color:c,disabled:u}=Zc();return A.jsx("button",{ref:s,type:"button",disabled:u,className:le(Mw(l,c,u),e),onClick:t,"aria-label":r,...i,children:n||A.jsx(Wo,{})})});Ip.displayName="Pill.Close";const zw=N.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:i,closable:s=!1,className:l,children:c,disabled:u=!1,...f},g)=>A.jsxs(Rp,{ref:g,size:e,color:t,className:l,disabled:u,...f,children:[n&&A.jsx(Pp,{children:n}),c||r&&A.jsx(Cp,{children:r}),s&&A.jsx(Ip,{onClose:i})]}));zw.displayName="Pill";Object.assign(zw,{Root:Rp,Text:Cp,Icon:Pp,Button:Lw,Close:Ip});function yo(e,t,r){let n=r.initialDeps??[],i,s=!0;function l(){var c,u,f;let g;r.key&&(c=r.debug)!=null&&c.call(r)&&(g=Date.now());const p=e();if(!(p.length!==n.length||p.some((b,S)=>n[S]!==b)))return i;n=p;let h;if(r.key&&(u=r.debug)!=null&&u.call(r)&&(h=Date.now()),i=t(...p),r.key&&(f=r.debug)!=null&&f.call(r)){const b=Math.round((Date.now()-g)*100)/100,S=Math.round((Date.now()-h)*100)/100,v=S/16,y=(m,w)=>{for(m=String(m);m.length<w;)m=" "+m;return m};console.info(`%c⏱ ${y(S,5)} /${y(b,5)} ms`,`
15
15
  font-size: .6rem;
16
16
  font-weight: bold;
17
- color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return r!=null&&r.onChange&&!(s&&r.skipInitialOnChange)&&r.onChange(i),s=!1,i}return l.updateDeps=c=>{n=c},l}function Dm(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const h5=(e,t)=>Math.abs(e-t)<1.01,g5=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Lm=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},v5=e=>e,m5=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},b5=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=l=>{const{width:c,height:u}=l;t({width:Math.round(c),height:Math.round(u)})};if(i(Lm(r)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(l=>{const c=()=>{const u=l[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(Lm(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},zm={passive:!0},$m=typeof window>"u"?!0:"onscrollend"in window,y5=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const s=e.options.useScrollendEvent&&$m?()=>{}:g5(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=g=>()=>{const{horizontal:p,isRtl:h}=e.options;i=p?r.scrollLeft*(h&&-1||1):r.scrollTop,s(),t(i,g)},c=l(!0),u=l(!1);r.addEventListener("scroll",c,zm);const f=e.options.useScrollendEvent&&$m;return f&&r.addEventListener("scrollend",u,zm),()=>{r.removeEventListener("scroll",c),f&&r.removeEventListener("scrollend",u)}},w5=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},x5=(e,{adjustments:t=0,behavior:r},n)=>{var i,s;const l=e+t;(s=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[n.options.horizontal?"left":"top"]:l,behavior:r})};class S5{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var r,n,i;return((i=(n=(r=this.targetWindow)==null?void 0:r.performance)==null?void 0:n.now)==null?void 0:i.call(n))??Date.now()},this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const l=()=>{const c=s.target,u=this.indexFromElement(c);if(!c.isConnected){this.observer.unobserve(c);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(c,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),r=null},observe:i=>{var s;return(s=n())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=n())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:v5,rangeExtractor:m5,onChange:()=>{},measureElement:w5,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=yo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,s=new Map;for(let l=n-1;l>=0;l--){const c=r[l];if(i.has(c.lane))continue;const u=s.get(c.lane);if(u==null||c.end>u.end?s.set(c.lane,c):c.end<u.end&&i.set(c.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=yo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,n,i,s,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==c&&(this.lanesChangedFlag=!0),this.prevLanes=c,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c}),{key:!1}),this.getMeasurements=yo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c},u)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const h of this.laneAssignments.keys())h>=r&&this.laneAssignments.delete(h);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const g=this.measurementsCache.slice(0,f),p=new Array(c).fill(void 0);for(let h=0;h<f;h++){const b=g[h];b&&(p[b.lane]=h)}for(let h=f;h<r;h++){const b=s(h),S=this.laneAssignments.get(h);let v,y;if(S!==void 0&&this.options.lanes>1){v=S;const O=p[v],_=O!==void 0?g[O]:void 0;y=_?_.end+this.options.gap:n+i}else{const O=this.options.lanes===1?g[h-1]:this.getFurthestMeasurement(g,h);y=O?O.end+this.options.gap:n+i,v=O?O.lane:h%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(h,v)}const m=u.get(b),w=typeof m=="number"?m:this.options.estimateSize(h),x=y+w;g[h]={index:h,start:y,size:w,end:x,key:b,lane:v},p[v]=h}return this.measurementsCache=g,g},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=yo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,n,i,s)=>this.range=r.length>0&&n>0?E5({measurements:r,outerSize:n,scrollOffset:i,lanes:s}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=yo(()=>{let r=null,n=null;const i=this.calculateRange();return i&&(r=i.startIndex,n=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,i,s,l)=>s===null||l===null?[]:r({startIndex:s,endIndex:l,overscan:n,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=r=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(i!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,i-s),c=Math.min(this.options.count-1,i+s);return r>=l&&r<=c}return!0},this.measureElement=r=>{if(!r){this.elementsCache.forEach((l,c)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(c))});return}const n=this.indexFromElement(r),i=this.options.getItemKey(n),s=this.elementsCache.get(i);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(i,r)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(r,void 0,this))},this.resizeItem=(r,n)=>{var i;const s=this.measurementsCache[r];if(!s)return;const l=this.itemSizeCache.get(s.key)??s.size,c=n-l;c!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",c),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,n)),this.notify(!1))},this.getVirtualItems=yo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let s=0,l=r.length;s<l;s++){const c=r[s],u=n[c];i.push(u)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return Dm(n[Mw(0,n.length-1,i=>Dm(n[i]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,n,i=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=r>=l+s?"end":"start"),n==="center"?r+=(i-s)/2:n==="end"&&(r-=s);const c=this.getMaxScrollOffset();return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.getSize(),s=this.getScrollOffset(),l=this.measurementsCache[r];if(!l)return;if(n==="auto")if(l.end>=s+i-this.options.scrollPaddingEnd)n="end";else if(l.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];if(n==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),n];const c=n==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,n,l.size),n]},this.scrollToOffset=(r,{align:n="start",behavior:i="auto"}={})=>{const s=this.getOffsetForAlignment(r,n),l=this.now();this.scrollState={index:null,align:n,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(r,{align:n="auto",behavior:i="auto"}={})=>{r=Math.max(0,Math.min(r,this.options.count-1));const s=this.getOffsetForIndex(r,n);if(!s)return;const[l,c]=s,u=this.now();this.scrollState={index:r,align:c,behavior:i,startedAt:u,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(r,{behavior:n="auto"}={})=>{const i=this.getScrollOffset()+r,s=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;if(n.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((r=n[n.length-1])==null?void 0:r.end)??0;else{const s=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&s.some(c=>c===null);){const c=n[l];s[c.lane]===null&&(s[c.lane]=c.end),l--}i=Math.max(...s.filter(c=>c!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=t?t[0]:this.scrollState.lastTargetOffset,n=1,i=r!==this.scrollState.lastTargetOffset;if(!i&&h5(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.scrollState=null;return}}else this.scrollState.stableFrames=0,i&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const Mw=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,s=r(i);if(s<n)e=i+1;else if(s>n)t=i-1;else return i}return e>0?e-1:0};function E5({measurements:e,outerSize:t,scrollOffset:r,lanes:n}){const i=e.length-1,s=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:i};let l=Mw(0,i,s,r),c=l;if(n===1)for(;c<i&&e[c].end<r+t;)c++;else if(n>1){const u=Array(n).fill(0);for(;c<i&&u.some(g=>g<r+t);){const g=e[c];u[g.lane]=g.end,c++}const f=Array(n).fill(r+t);for(;l>=0&&f.some(g=>g>=r);){const g=e[l];f[g.lane]=g.start,l--}l=Math.max(0,l-l%n),c=Math.min(i,c+(n-1-c%n))}return{startIndex:l,endIndex:c}}const jm=typeof document<"u"?V.useLayoutEffect:V.useEffect;function _5({useFlushSync:e=!0,...t}){const r=V.useReducer(()=>({}),{})[1],n={...t,onChange:(s,l)=>{var c;e&&l?En.flushSync(r):r(),(c=t.onChange)==null||c.call(t,s,l)}},[i]=V.useState(()=>new S5(n));return i.setOptions(n),jm(()=>i._didMount(),[]),jm(()=>i._willUpdate()),i}function O5(e){return _5({observeElementRect:b5,observeElementOffset:y5,scrollToFn:x5,...e})}const k5=N.createContext(null),Ut=()=>{const e=N.useContext(k5);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Tt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},ht={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},A5=({size:e,color:t,isDisabled:r,hasMessage:n,isInvalid:i,isFocused:s,menuPlacement:l})=>{const c=ht[i?"negative":t];return ce("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",s&&l?l==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",c.control,n?["ring-1",c.messageBorder]:["border",r?"border-input-border":s?c.controlFocused:`border-select-border focus-within:${c.controlFocused}`],Tt[e].trigger,{"ring-1":n,[c.controlDisabled]:r})},T5=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=ht[t];return ce("transition-colors duration-200 rounded max-h-full h-fit px-0.5",Tt[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.iconAction:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.iconActionHover]:n&&!r,"pointer-events-none":!n})},R5=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:i,hasMessage:s,hasGroup:l,menuPlacement:c})=>{const u=ht[i?"negative":t];return l?ce("flex items-center justify-between flex-1 min-w-0",Tt[e].control,"bg-transparent border-0",{[u.controlDisabled]:r}):ce("flex items-center justify-between",n&&c?c==="top"?"rounded-b":"rounded-t":"rounded",Tt[e].control,u.control,s?["ring-1",u.messageBorder]:["border",r?"border-input-border":n?u.controlFocused:`border-select-border
18
- focus-within:${u.controlFocused}`],{[u.controlDisabled]:r})},C5=({isMulti:e})=>ce("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),I5=({size:e,color:t})=>ce("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",Tt[e].input,ht[t].placeholder),P5=({size:e,color:t})=>ce("select-none truncate",Tt[e].placeholder,ht[t].placeholder),N5=({size:e,color:t,isDisabled:r})=>ce("truncate",Tt[e].singleValue,r?ht[t].singleValueDisabled:ht[t].singleValue),M5=({size:e,color:t,isDisabled:r,isFocused:n})=>ce("inline-flex items-center rounded-xs",Tt[e].multiValue,r?ht[t].multiValueDisabled:ht[t].multiValue,{"border border-white":n&&!r}),D5=({size:e})=>ce("truncate",Tt[e].multiValueLabel),L5=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center cursor-pointer transition-colors",Tt[e].multiValueRemove,ht[t].multiValueRemove),Dw=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center transition-colors rounded",Tt[e].clearIndicator,r?"hidden":[ht[t].clearIndicator,ht[t].clearIndicatorHover]),z5=({size:e,color:t,isDisabled:r})=>ce("flex items-center justify-center transition-colors rounded",Tt[e].dropdownIndicator,r?"text-grey-200":[ht[t].dropdownIndicator,ht[t].dropdownIndicatorHover]),$5=({size:e,placement:t,hasMessage:r,color:n,hasGroup:i})=>{const s=t==="top";return ce("absolute z-50 overflow-hidden border",i?"-left-px -right-px":"w-full",ht[n].menu,{[ht[n].messageBorder]:r},s?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",Tt[e].menu)},j5=({size:e})=>ce("overflow-y-auto",Tt[e].menuList,ht.primary.menuList),F5=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:i})=>ce("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Tt[e].option,{[ht[t].optionDisabled]:r,[ht[t].optionSelected]:i&&!r,[ht[t].optionFocused]:n&&!i&&!r,[ht[t].option]:!i&&!n&&!r}),H5=({size:e})=>ce(Tt[e].group),B5=({size:e,color:t})=>ce(Tt[e].groupHeading,ht[t].groupHeading),W5=({size:e})=>ce("text-grey-100",Tt[e].loadingMessage),V5=({size:e})=>ce(Tt[e].noOptionsMessage,ht.primary.noOptionsMessage),Fm=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function Es(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(null,arguments)}function zf(e,t){return zf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},zf(e,t)}function U5(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zf(e,t)}var Dl={exports:{}},Pd={exports:{}},Ge={};/** @license React v16.13.1
17
+ color: hsl(${Math.max(0,Math.min(120-120*v,120))}deg 100% 31%);`,r==null?void 0:r.key)}return r!=null&&r.onChange&&!(s&&r.skipInitialOnChange)&&r.onChange(i),s=!1,i}return l.updateDeps=c=>{n=c},l}function jm(e,t){if(e===void 0)throw new Error("Unexpected undefined");return e}const hI=(e,t)=>Math.abs(e-t)<1.01,gI=(e,t,r)=>{let n;return function(...i){e.clearTimeout(n),n=e.setTimeout(()=>t.apply(this,i),r)}},Fm=e=>{const{offsetWidth:t,offsetHeight:r}=e;return{width:t,height:r}},vI=e=>e,mI=e=>{const t=Math.max(e.startIndex-e.overscan,0),r=Math.min(e.endIndex+e.overscan,e.count-1),n=[];for(let i=t;i<=r;i++)n.push(i);return n},bI=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;const i=l=>{const{width:c,height:u}=l;t({width:Math.round(c),height:Math.round(u)})};if(i(Fm(r)),!n.ResizeObserver)return()=>{};const s=new n.ResizeObserver(l=>{const c=()=>{const u=l[0];if(u!=null&&u.borderBoxSize){const f=u.borderBoxSize[0];if(f){i({width:f.inlineSize,height:f.blockSize});return}}i(Fm(r))};e.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(c):c()});return s.observe(r,{box:"border-box"}),()=>{s.unobserve(r)}},Hm={passive:!0},Wm=typeof window>"u"?!0:"onscrollend"in window,yI=(e,t)=>{const r=e.scrollElement;if(!r)return;const n=e.targetWindow;if(!n)return;let i=0;const s=e.options.useScrollendEvent&&Wm?()=>{}:gI(n,()=>{t(i,!1)},e.options.isScrollingResetDelay),l=g=>()=>{const{horizontal:p,isRtl:h}=e.options;i=p?r.scrollLeft*(h&&-1||1):r.scrollTop,s(),t(i,g)},c=l(!0),u=l(!1);r.addEventListener("scroll",c,Hm);const f=e.options.useScrollendEvent&&Wm;return f&&r.addEventListener("scrollend",u,Hm),()=>{r.removeEventListener("scroll",c),f&&r.removeEventListener("scrollend",u)}},wI=(e,t,r)=>{if(t!=null&&t.borderBoxSize){const n=t.borderBoxSize[0];if(n)return Math.round(n[r.options.horizontal?"inlineSize":"blockSize"])}return e[r.options.horizontal?"offsetWidth":"offsetHeight"]},xI=(e,{adjustments:t=0,behavior:r},n)=>{var i,s;const l=e+t;(s=(i=n.scrollElement)==null?void 0:i.scrollTo)==null||s.call(i,{[n.options.horizontal?"left":"top"]:l,behavior:r})};class SI{constructor(t){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollState=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.laneAssignments=new Map,this.pendingMeasuredCacheIndexes=[],this.prevLanes=void 0,this.lanesChangedFlag=!1,this.lanesSettling=!1,this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.now=()=>{var r,n,i;return((i=(n=(r=this.targetWindow)==null?void 0:r.performance)==null?void 0:n.now)==null?void 0:i.call(n))??Date.now()},this.observer=(()=>{let r=null;const n=()=>r||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:r=new this.targetWindow.ResizeObserver(i=>{i.forEach(s=>{const l=()=>{const c=s.target,u=this.indexFromElement(c);if(!c.isConnected){this.observer.unobserve(c);return}this.shouldMeasureDuringScroll(u)&&this.resizeItem(u,this.options.measureElement(c,s,this))};this.options.useAnimationFrameWithResizeObserver?requestAnimationFrame(l):l()})}));return{disconnect:()=>{var i;(i=n())==null||i.disconnect(),r=null},observe:i=>{var s;return(s=n())==null?void 0:s.observe(i,{box:"border-box"})},unobserve:i=>{var s;return(s=n())==null?void 0:s.unobserve(i)}}})(),this.range=null,this.setOptions=r=>{Object.entries(r).forEach(([n,i])=>{typeof i>"u"&&delete r[n]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:vI,rangeExtractor:mI,onChange:()=>{},measureElement:wI,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!1,useAnimationFrameWithResizeObserver:!1,...r}},this.notify=r=>{var n,i;(i=(n=this.options).onChange)==null||i.call(n,this,r)},this.maybeNotify=yo(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),r=>{this.notify(r)},{key:process.env.NODE_ENV!=="production"&&"maybeNotify",debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(r=>r()),this.unsubs=[],this.observer.disconnect(),this.rafId!=null&&this.targetWindow&&(this.targetWindow.cancelAnimationFrame(this.rafId),this.rafId=null),this.scrollState=null,this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var r;const n=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==n){if(this.cleanup(),!n){this.maybeNotify();return}this.scrollElement=n,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((r=this.scrollElement)==null?void 0:r.window)??null,this.elementsCache.forEach(i=>{this.observer.observe(i)}),this.unsubs.push(this.options.observeElementRect(this,i=>{this.scrollRect=i,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(i,s)=>{this.scrollAdjustments=0,this.scrollDirection=s?this.getScrollOffset()<i?"forward":"backward":null,this.scrollOffset=i,this.isScrolling=s,this.scrollState&&this.scheduleScrollReconcile(),this.maybeNotify()})),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0})}},this.rafId=null,this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(r,n)=>{const i=new Map,s=new Map;for(let l=n-1;l>=0;l--){const c=r[l];if(i.has(c.lane))continue;const u=s.get(c.lane);if(u==null||c.end>u.end?s.set(c.lane,c):c.end<u.end&&i.set(c.lane,!0),i.size===this.options.lanes)break}return s.size===this.options.lanes?Array.from(s.values()).sort((l,c)=>l.end===c.end?l.index-c.index:l.end-c.end)[0]:void 0},this.getMeasurementOptions=yo(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled,this.options.lanes],(r,n,i,s,l,c)=>(this.prevLanes!==void 0&&this.prevLanes!==c&&(this.lanesChangedFlag=!0),this.prevLanes=c,this.pendingMeasuredCacheIndexes=[],{count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c}),{key:!1}),this.getMeasurements=yo(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:r,paddingStart:n,scrollMargin:i,getItemKey:s,enabled:l,lanes:c},u)=>{if(!l)return this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),[];if(this.laneAssignments.size>r)for(const h of this.laneAssignments.keys())h>=r&&this.laneAssignments.delete(h);this.lanesChangedFlag&&(this.lanesChangedFlag=!1,this.lanesSettling=!0,this.measurementsCache=[],this.itemSizeCache.clear(),this.laneAssignments.clear(),this.pendingMeasuredCacheIndexes=[]),this.measurementsCache.length===0&&!this.lanesSettling&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(h=>{this.itemSizeCache.set(h.key,h.size)}));const f=this.lanesSettling?0:this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[],this.lanesSettling&&this.measurementsCache.length===r&&(this.lanesSettling=!1);const g=this.measurementsCache.slice(0,f),p=new Array(c).fill(void 0);for(let h=0;h<f;h++){const b=g[h];b&&(p[b.lane]=h)}for(let h=f;h<r;h++){const b=s(h),S=this.laneAssignments.get(h);let v,y;if(S!==void 0&&this.options.lanes>1){v=S;const O=p[v],_=O!==void 0?g[O]:void 0;y=_?_.end+this.options.gap:n+i}else{const O=this.options.lanes===1?g[h-1]:this.getFurthestMeasurement(g,h);y=O?O.end+this.options.gap:n+i,v=O?O.lane:h%this.options.lanes,this.options.lanes>1&&this.laneAssignments.set(h,v)}const m=u.get(b),w=typeof m=="number"?m:this.options.estimateSize(h),x=y+w;g[h]={index:h,start:y,size:w,end:x,key:b,lane:v},p[v]=h}return this.measurementsCache=g,g},{key:process.env.NODE_ENV!=="production"&&"getMeasurements",debug:()=>this.options.debug}),this.calculateRange=yo(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset(),this.options.lanes],(r,n,i,s)=>this.range=r.length>0&&n>0?EI({measurements:r,outerSize:n,scrollOffset:i,lanes:s}):null,{key:process.env.NODE_ENV!=="production"&&"calculateRange",debug:()=>this.options.debug}),this.getVirtualIndexes=yo(()=>{let r=null,n=null;const i=this.calculateRange();return i&&(r=i.startIndex,n=i.endIndex),this.maybeNotify.updateDeps([this.isScrolling,r,n]),[this.options.rangeExtractor,this.options.overscan,this.options.count,r,n]},(r,n,i,s,l)=>s===null||l===null?[]:r({startIndex:s,endIndex:l,overscan:n,count:i}),{key:process.env.NODE_ENV!=="production"&&"getVirtualIndexes",debug:()=>this.options.debug}),this.indexFromElement=r=>{const n=this.options.indexAttribute,i=r.getAttribute(n);return i?parseInt(i,10):(console.warn(`Missing attribute name '${n}={index}' on measured element.`),-1)},this.shouldMeasureDuringScroll=r=>{var n;if(!this.scrollState||this.scrollState.behavior!=="smooth")return!0;const i=this.scrollState.index??((n=this.getVirtualItemForOffset(this.scrollState.lastTargetOffset))==null?void 0:n.index);if(i!==void 0&&this.range){const s=Math.max(this.options.overscan,Math.ceil((this.range.endIndex-this.range.startIndex)/2)),l=Math.max(0,i-s),c=Math.min(this.options.count-1,i+s);return r>=l&&r<=c}return!0},this.measureElement=r=>{if(!r){this.elementsCache.forEach((l,c)=>{l.isConnected||(this.observer.unobserve(l),this.elementsCache.delete(c))});return}const n=this.indexFromElement(r),i=this.options.getItemKey(n),s=this.elementsCache.get(i);s!==r&&(s&&this.observer.unobserve(s),this.observer.observe(r),this.elementsCache.set(i,r)),(!this.isScrolling||this.scrollState)&&this.shouldMeasureDuringScroll(n)&&this.resizeItem(n,this.options.measureElement(r,void 0,this))},this.resizeItem=(r,n)=>{var i;const s=this.measurementsCache[r];if(!s)return;const l=this.itemSizeCache.get(s.key)??s.size,c=n-l;c!==0&&(((i=this.scrollState)==null?void 0:i.behavior)!=="smooth"&&(this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(s,c,this):s.start<this.getScrollOffset()+this.scrollAdjustments)&&(process.env.NODE_ENV!=="production"&&this.options.debug&&console.info("correction",c),this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=c,behavior:void 0})),this.pendingMeasuredCacheIndexes.push(s.index),this.itemSizeCache=new Map(this.itemSizeCache.set(s.key,n)),this.notify(!1))},this.getVirtualItems=yo(()=>[this.getVirtualIndexes(),this.getMeasurements()],(r,n)=>{const i=[];for(let s=0,l=r.length;s<l;s++){const c=r[s],u=n[c];i.push(u)}return i},{key:process.env.NODE_ENV!=="production"&&"getVirtualItems",debug:()=>this.options.debug}),this.getVirtualItemForOffset=r=>{const n=this.getMeasurements();if(n.length!==0)return jm(n[$w(0,n.length-1,i=>jm(n[i]).start,r)])},this.getMaxScrollOffset=()=>{if(!this.scrollElement)return 0;if("scrollHeight"in this.scrollElement)return this.options.horizontal?this.scrollElement.scrollWidth-this.scrollElement.clientWidth:this.scrollElement.scrollHeight-this.scrollElement.clientHeight;{const r=this.scrollElement.document.documentElement;return this.options.horizontal?r.scrollWidth-this.scrollElement.innerWidth:r.scrollHeight-this.scrollElement.innerHeight}},this.getOffsetForAlignment=(r,n,i=0)=>{if(!this.scrollElement)return 0;const s=this.getSize(),l=this.getScrollOffset();n==="auto"&&(n=r>=l+s?"end":"start"),n==="center"?r+=(i-s)/2:n==="end"&&(r-=s);const c=this.getMaxScrollOffset();return Math.max(Math.min(c,r),0)},this.getOffsetForIndex=(r,n="auto")=>{r=Math.max(0,Math.min(r,this.options.count-1));const i=this.getSize(),s=this.getScrollOffset(),l=this.measurementsCache[r];if(!l)return;if(n==="auto")if(l.end>=s+i-this.options.scrollPaddingEnd)n="end";else if(l.start<=s+this.options.scrollPaddingStart)n="start";else return[s,n];if(n==="end"&&r===this.options.count-1)return[this.getMaxScrollOffset(),n];const c=n==="end"?l.end+this.options.scrollPaddingEnd:l.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(c,n,l.size),n]},this.scrollToOffset=(r,{align:n="start",behavior:i="auto"}={})=>{const s=this.getOffsetForAlignment(r,n),l=this.now();this.scrollState={index:null,align:n,behavior:i,startedAt:l,lastTargetOffset:s,stableFrames:0},this._scrollToOffset(s,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollToIndex=(r,{align:n="auto",behavior:i="auto"}={})=>{r=Math.max(0,Math.min(r,this.options.count-1));const s=this.getOffsetForIndex(r,n);if(!s)return;const[l,c]=s,u=this.now();this.scrollState={index:r,align:c,behavior:i,startedAt:u,lastTargetOffset:l,stableFrames:0},this._scrollToOffset(l,{adjustments:void 0,behavior:i}),this.scheduleScrollReconcile()},this.scrollBy=(r,{behavior:n="auto"}={})=>{const i=this.getScrollOffset()+r,s=this.now();this.scrollState={index:null,align:"start",behavior:n,startedAt:s,lastTargetOffset:i,stableFrames:0},this._scrollToOffset(i,{adjustments:void 0,behavior:n}),this.scheduleScrollReconcile()},this.getTotalSize=()=>{var r;const n=this.getMeasurements();let i;if(n.length===0)i=this.options.paddingStart;else if(this.options.lanes===1)i=((r=n[n.length-1])==null?void 0:r.end)??0;else{const s=Array(this.options.lanes).fill(null);let l=n.length-1;for(;l>=0&&s.some(c=>c===null);){const c=n[l];s[c.lane]===null&&(s[c.lane]=c.end),l--}i=Math.max(...s.filter(c=>c!==null))}return Math.max(i-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(r,{adjustments:n,behavior:i})=>{this.options.scrollToFn(r,{behavior:i,adjustments:n},this)},this.measure=()=>{this.itemSizeCache=new Map,this.laneAssignments=new Map,this.notify(!1)},this.setOptions(t)}scheduleScrollReconcile(){if(!this.targetWindow){this.scrollState=null;return}this.rafId==null&&(this.rafId=this.targetWindow.requestAnimationFrame(()=>{this.rafId=null,this.reconcileScroll()}))}reconcileScroll(){if(!this.scrollState||!this.scrollElement)return;if(this.now()-this.scrollState.startedAt>5e3){this.scrollState=null;return}const t=this.scrollState.index!=null?this.getOffsetForIndex(this.scrollState.index,this.scrollState.align):void 0,r=t?t[0]:this.scrollState.lastTargetOffset,n=1,i=r!==this.scrollState.lastTargetOffset;if(!i&&hI(r,this.getScrollOffset())){if(this.scrollState.stableFrames++,this.scrollState.stableFrames>=n){this.scrollState=null;return}}else this.scrollState.stableFrames=0,i&&(this.scrollState.lastTargetOffset=r,this.scrollState.behavior="auto",this._scrollToOffset(r,{adjustments:void 0,behavior:"auto"}));this.scheduleScrollReconcile()}}const $w=(e,t,r,n)=>{for(;e<=t;){const i=(e+t)/2|0,s=r(i);if(s<n)e=i+1;else if(s>n)t=i-1;else return i}return e>0?e-1:0};function EI({measurements:e,outerSize:t,scrollOffset:r,lanes:n}){const i=e.length-1,s=u=>e[u].start;if(e.length<=n)return{startIndex:0,endIndex:i};let l=$w(0,i,s,r),c=l;if(n===1)for(;c<i&&e[c].end<r+t;)c++;else if(n>1){const u=Array(n).fill(0);for(;c<i&&u.some(g=>g<r+t);){const g=e[c];u[g.lane]=g.end,c++}const f=Array(n).fill(r+t);for(;l>=0&&f.some(g=>g>=r);){const g=e[l];f[g.lane]=g.start,l--}l=Math.max(0,l-l%n),c=Math.min(i,c+(n-1-c%n))}return{startIndex:l,endIndex:c}}const Bm=typeof document<"u"?V.useLayoutEffect:V.useEffect;function _I({useFlushSync:e=!0,...t}){const r=V.useReducer(()=>({}),{})[1],n={...t,onChange:(s,l)=>{var c;e&&l?En.flushSync(r):r(),(c=t.onChange)==null||c.call(t,s,l)}},[i]=V.useState(()=>new SI(n));return i.setOptions(n),Bm(()=>i._didMount(),[]),Bm(()=>i._willUpdate()),i}function OI(e){return _I({observeElementRect:bI,observeElementOffset:yI,scrollToFn:xI,...e})}const kI=N.createContext(null),Mt=()=>{const e=N.useContext(kI);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},Rt={sm:{trigger:"h-5 min-h-fit",control:"min-h-5 p-0.5 gap-1",input:"text-xs h-3.5",placeholder:"placeholder:text-xs text-xs",singleValue:"text-xs",multiValue:"h-3.5 px-0.5 gap-1 text-xxs",multiValueLabel:"text-xxs",multiValueRemove:"w-3 h-3",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-3",dropdownIndicator:"p-0.5 size-3",indicatorSeparator:"h-3",loadingIndicator:"w-3 h-3",menu:"m-0",menuList:"py-1",option:"px-1 py-0.5 text-xs",group:"pt-1",groupHeading:"px-2 py-0.5 text-xxs",noOptionsMessage:"px-2 py-1 text-xxs",loadingMessage:"px-2 py-1 text-xxs",message:"text-xxs p-1.5",icon:"text-sm"},md:{trigger:"h-6 min-h-fit",control:"min-h-6 p-1 gap-1.5",input:"text-s h-4",placeholder:"placeholder:text-s text-s",singleValue:"text-s",multiValue:"h-4 p-1 gap-1 text-xs",multiValueLabel:"text-xs",multiValueRemove:"w-3.5 h-3.5",indicatorsContainer:"gap-1",clearIndicator:"p-0.5 size-4",dropdownIndicator:"p-0.5 size-4",indicatorSeparator:"h-4",loadingIndicator:"w-4 h-4",menu:"m-0",menuList:"py-1",option:"px-2 py-1 text-s",group:"pt-1.5",groupHeading:"px-3 py-1 text-xs",noOptionsMessage:"px-2 py-1.5 text-xs",loadingMessage:"px-3 py-1.5 text-xs",message:"text-xs p-2",icon:"text-base"},lg:{trigger:"h-7 min-h-fit",control:"min-h-7 p-1.5 gap-2",input:"text-sm h-5",placeholder:"placeholder:text-sm text-sm",singleValue:"text-sm",multiValue:"h-5 px-1.5 gap-1.5 text-s",multiValueLabel:"text-xs",multiValueRemove:"w-4 h-4",indicatorsContainer:"gap-1.5",clearIndicator:"p-0.5 size-5",dropdownIndicator:"p-1 size-5",indicatorSeparator:"h-5",loadingIndicator:"w-5 h-5",menu:"m-0",menuList:"py-1.5",option:"px-3 py-2 text-sm",group:"pt-2",groupHeading:"px-4 py-1.5 text-s",noOptionsMessage:"px-4 py-2 text-s",loadingMessage:"px-4 py-2 text-s",message:"text-s p-2.5",icon:"text-lg"}},ht={primary:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-focus-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-primary",menu:"bg-select-list-bg border-input-focus-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-primary-dark",messageBackground:"bg-input-message-bg",messageBorder:"ring-input-info-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},positive:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-positive",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-positive",menu:"bg-select-list-bg border-positive shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-positive-dark",messageBackground:"bg-positive-light",messageBorder:"ring-positive",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},warning:{control:"cursor-pointer bg-input-bg text-select-text",controlFocused:"border-input-warning-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-select-text",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-select-text",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-warning",menu:"bg-select-list-bg border-input-warning-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-warning-dark",messageBackground:"bg-input-warning-bg",messageBorder:"ring-input-warning-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"},negative:{control:"cursor-pointer bg-input-bg text-negative",controlFocused:"border-input-error-border",controlDisabled:"opacity-60",controlInvalid:"bg-input-bg border-input-error-border text-negative",placeholder:"placeholder:text-input-placeholder text-input-text placeholder:opacity-60",singleValue:"text-negative",singleValueDisabled:"text-input-placeholder",multiValue:"bg-input-option-active-bg text-input-option-active-text",multiValueLabel:"text-input-option-active-text",multiValueRemove:"text-input-option-active-text hover:bg-input-option-hover-bg hover:text-body rounded-xs p-px",multiValueRemoveHover:"hover:bg-input-option-hover-bg",multiValueDisabled:"bg-canvas-subtle text-muted",clearIndicator:"text-input-text hover:text-body cursor-pointer",clearIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",dropdownIndicator:"text-input-text",dropdownIndicatorHover:"hover:text-body hover:bg-input-option-hover-bg",indicatorSeparator:"bg-input-border",loadingIndicator:"text-negative",menu:"bg-select-list-bg border-input-error-border shadow-lg",menuList:"scrollbar-thin scrollbar-thumb-input-border scrollbar-track-transparent",option:"text-select-text cursor-pointer",optionFocused:"bg-input-option-hover-bg text-body",optionSelected:"bg-input-option-active-bg text-input-option-active-text",optionDisabled:"text-input-placeholder cursor-not-allowed",group:"",groupHeading:"text-input-placeholder font-semibold",noOptionsMessage:"text-input-placeholder",loadingMessage:"text-input-placeholder",message:"text-negative-dark",messageBackground:"bg-input-error-bg",messageBorder:"ring-input-error-border",icon:"text-input-text",iconAction:"text-input-text hover:text-body",iconActionHover:"hover:text-body hover:bg-input-option-hover-bg"}},AI=({size:e,color:t,isDisabled:r,hasMessage:n,isInvalid:i,isFocused:s,menuPlacement:l})=>{const c=ht[i?"negative":t];return le("bg-input-bg flex relative transition-all duration-200 ease-in-out items-center",s&&l?l==="top"?"rounded-b":"rounded-t":"only:rounded first:rounded-t last:rounded-b",c.control,n?["ring-1",c.messageBorder]:["border",r?"border-input-border":s?c.controlFocused:`border-select-border focus-within:${c.controlFocused}`],Rt[e].trigger,{"ring-1":n,[c.controlDisabled]:r})},TI=({size:e,color:t,isDisabled:r,isAction:n})=>{const i=ht[t];return le("transition-colors duration-200 rounded max-h-full h-fit px-0.5",Rt[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?i.iconAction:i.icon,{"cursor-pointer p-0.5":n&&!r,[i.iconActionHover]:n&&!r,"pointer-events-none":!n})},RI=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:i,hasMessage:s,hasGroup:l,menuPlacement:c})=>{const u=ht[i?"negative":t];return l?le("flex items-center justify-between flex-1 min-w-0",Rt[e].control,"bg-transparent border-0",{[u.controlDisabled]:r}):le("flex items-center justify-between",n&&c?c==="top"?"rounded-b":"rounded-t":"rounded",Rt[e].control,u.control,s?["ring-1",u.messageBorder]:["border",r?"border-input-border":n?u.controlFocused:`border-select-border
18
+ focus-within:${u.controlFocused}`],{[u.controlDisabled]:r})},CI=({isMulti:e})=>le("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),PI=({size:e,color:t})=>le("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 text-input-text",Rt[e].input,ht[t].placeholder),II=({size:e,color:t})=>le("select-none truncate",Rt[e].placeholder,ht[t].placeholder),NI=({size:e,color:t,isDisabled:r})=>le("truncate",Rt[e].singleValue,r?ht[t].singleValueDisabled:ht[t].singleValue),MI=({size:e,color:t,isDisabled:r,isFocused:n})=>le("inline-flex items-center rounded-xs",Rt[e].multiValue,r?ht[t].multiValueDisabled:ht[t].multiValue,{"border border-white":n&&!r}),DI=({size:e})=>le("truncate",Rt[e].multiValueLabel),LI=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center cursor-pointer transition-colors",Rt[e].multiValueRemove,ht[t].multiValueRemove),jw=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center transition-colors rounded",Rt[e].clearIndicator,r?"hidden":[ht[t].clearIndicator,ht[t].clearIndicatorHover]),zI=({size:e,color:t,isDisabled:r})=>le("flex items-center justify-center transition-colors rounded",Rt[e].dropdownIndicator,r?"text-grey-200":[ht[t].dropdownIndicator,ht[t].dropdownIndicatorHover]),$I=({size:e,placement:t,hasMessage:r,color:n,hasGroup:i})=>{const s=t==="top";return le("absolute z-50 overflow-hidden border",i?"-left-px -right-px":"w-full",ht[n].menu,{[ht[n].messageBorder]:r},s?"bottom-full rounded-t rounded-b-none border-b-0":"top-full rounded-b border-t-0",Rt[e].menu)},jI=({size:e})=>le("overflow-y-auto",Rt[e].menuList,ht.primary.menuList),FI=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:i})=>le("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",Rt[e].option,{[ht[t].optionDisabled]:r,[ht[t].optionSelected]:i&&!r,[ht[t].optionFocused]:n&&!i&&!r,[ht[t].option]:!i&&!n&&!r}),HI=({size:e})=>le(Rt[e].group),WI=({size:e,color:t})=>le(Rt[e].groupHeading,ht[t].groupHeading),BI=({size:e})=>le("text-grey-100",Rt[e].loadingMessage),VI=({size:e})=>le(Rt[e].noOptionsMessage,ht.primary.noOptionsMessage),Vm=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function Ss(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}function wt(){return wt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},wt.apply(null,arguments)}function Hf(e,t){return Hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Hf(e,t)}function UI(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Hf(e,t)}var Ll={exports:{}},zd={exports:{}},Ge={};/** @license React v16.13.1
19
19
  * react-is.production.min.js
20
20
  *
21
21
  * Copyright (c) Facebook, Inc. and its affiliates.
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var Hm;function q5(){if(Hm)return Ge;Hm=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Ge.AsyncMode=u,Ge.ConcurrentMode=f,Ge.ContextConsumer=c,Ge.ContextProvider=l,Ge.Element=t,Ge.ForwardRef=g,Ge.Fragment=n,Ge.Lazy=S,Ge.Memo=b,Ge.Portal=r,Ge.Profiler=s,Ge.StrictMode=i,Ge.Suspense=p,Ge.isAsyncMode=function(_){return O(_)||x(_)===u},Ge.isConcurrentMode=O,Ge.isContextConsumer=function(_){return x(_)===c},Ge.isContextProvider=function(_){return x(_)===l},Ge.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ge.isForwardRef=function(_){return x(_)===g},Ge.isFragment=function(_){return x(_)===n},Ge.isLazy=function(_){return x(_)===S},Ge.isMemo=function(_){return x(_)===b},Ge.isPortal=function(_){return x(_)===r},Ge.isProfiler=function(_){return x(_)===s},Ge.isStrictMode=function(_){return x(_)===i},Ge.isSuspense=function(_){return x(_)===p},Ge.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ge.typeOf=x,Ge}var et={};/** @license React v16.13.1
25
+ */var Um;function qI(){if(Um)return Ge;Um=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Ge.AsyncMode=u,Ge.ConcurrentMode=f,Ge.ContextConsumer=c,Ge.ContextProvider=l,Ge.Element=t,Ge.ForwardRef=g,Ge.Fragment=n,Ge.Lazy=S,Ge.Memo=b,Ge.Portal=r,Ge.Profiler=s,Ge.StrictMode=i,Ge.Suspense=p,Ge.isAsyncMode=function(_){return O(_)||x(_)===u},Ge.isConcurrentMode=O,Ge.isContextConsumer=function(_){return x(_)===c},Ge.isContextProvider=function(_){return x(_)===l},Ge.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ge.isForwardRef=function(_){return x(_)===g},Ge.isFragment=function(_){return x(_)===n},Ge.isLazy=function(_){return x(_)===S},Ge.isMemo=function(_){return x(_)===b},Ge.isPortal=function(_){return x(_)===r},Ge.isProfiler=function(_){return x(_)===s},Ge.isStrictMode=function(_){return x(_)===i},Ge.isSuspense=function(_){return x(_)===p},Ge.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ge.typeOf=x,Ge}var et={};/** @license React v16.13.1
26
26
  * react-is.development.js
27
27
  *
28
28
  * Copyright (c) Facebook, Inc. and its affiliates.
29
29
  *
30
30
  * This source code is licensed under the MIT license found in the
31
31
  * LICENSE file in the root directory of this source tree.
32
- */var Bm;function G5(){return Bm||(Bm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===f||Z===s||Z===i||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===g||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function O(Z){if(typeof Z=="object"&&Z!==null){var Te=Z.$$typeof;switch(Te){case t:var ge=Z.type;switch(ge){case u:case f:case n:case s:case i:case p:return ge;default:var at=ge&&ge.$$typeof;switch(at){case c:case g:case S:case b:case l:return at;default:return Te}}case r:return Te}}}var _=u,R=f,H=c,I=l,$=t,U=g,j=n,M=S,D=b,F=r,P=s,K=i,ee=p,Y=!1;function ve(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(Z)||O(Z)===u}function z(Z){return O(Z)===f}function W(Z){return O(Z)===c}function X(Z){return O(Z)===l}function te(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return O(Z)===g}function oe(Z){return O(Z)===n}function ae(Z){return O(Z)===S}function ne(Z){return O(Z)===b}function de(Z){return O(Z)===r}function he(Z){return O(Z)===s}function fe(Z){return O(Z)===i}function ye(Z){return O(Z)===p}et.AsyncMode=_,et.ConcurrentMode=R,et.ContextConsumer=H,et.ContextProvider=I,et.Element=$,et.ForwardRef=U,et.Fragment=j,et.Lazy=M,et.Memo=D,et.Portal=F,et.Profiler=P,et.StrictMode=K,et.Suspense=ee,et.isAsyncMode=ve,et.isConcurrentMode=z,et.isContextConsumer=W,et.isContextProvider=X,et.isElement=te,et.isForwardRef=J,et.isFragment=oe,et.isLazy=ae,et.isMemo=ne,et.isPortal=de,et.isProfiler=he,et.isStrictMode=fe,et.isSuspense=ye,et.isValidElementType=x,et.typeOf=O})()),et}var Wm;function Lw(){return Wm||(Wm=1,process.env.NODE_ENV==="production"?Pd.exports=q5():Pd.exports=G5()),Pd.exports}/*
32
+ */var qm;function GI(){return qm||(qm=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===f||Z===s||Z===i||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===g||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function O(Z){if(typeof Z=="object"&&Z!==null){var Oe=Z.$$typeof;switch(Oe){case t:var ge=Z.type;switch(ge){case u:case f:case n:case s:case i:case p:return ge;default:var at=ge&&ge.$$typeof;switch(at){case c:case g:case S:case b:case l:return at;default:return Oe}}case r:return Oe}}}var _=u,R=f,H=c,P=l,z=t,U=g,$=n,M=S,D=b,F=r,I=s,K=i,te=p,Y=!1;function ve(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(Z)||O(Z)===u}function j(Z){return O(Z)===f}function W(Z){return O(Z)===c}function ee(Z){return O(Z)===l}function Q(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function X(Z){return O(Z)===g}function ue(Z){return O(Z)===n}function ie(Z){return O(Z)===S}function ne(Z){return O(Z)===b}function de(Z){return O(Z)===r}function pe(Z){return O(Z)===s}function he(Z){return O(Z)===i}function xe(Z){return O(Z)===p}et.AsyncMode=_,et.ConcurrentMode=R,et.ContextConsumer=H,et.ContextProvider=P,et.Element=z,et.ForwardRef=U,et.Fragment=$,et.Lazy=M,et.Memo=D,et.Portal=F,et.Profiler=I,et.StrictMode=K,et.Suspense=te,et.isAsyncMode=ve,et.isConcurrentMode=j,et.isContextConsumer=W,et.isContextProvider=ee,et.isElement=Q,et.isForwardRef=X,et.isFragment=ue,et.isLazy=ie,et.isMemo=ne,et.isPortal=de,et.isProfiler=pe,et.isStrictMode=he,et.isSuspense=xe,et.isValidElementType=x,et.typeOf=O})()),et}var Gm;function Fw(){return Gm||(Gm=1,process.env.NODE_ENV==="production"?zd.exports=qI():zd.exports=GI()),zd.exports}/*
33
33
  object-assign
34
34
  (c) Sindre Sorhus
35
35
  @license MIT
36
- */var Nd,Vm;function Z5(){if(Vm)return Nd;Vm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nd=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},Nd}var Md,Um;function Rp(){if(Um)return Md;Um=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Md=e,Md}var qm,Gm;function zw(){return Gm||(Gm=1,qm=Function.call.bind(Object.prototype.hasOwnProperty)),qm}var Dd,Zm;function K5(){if(Zm)return Dd;Zm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Rp(),r={},n=zw();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Dd=i,Dd}var Ld,Km;function Y5(){if(Km)return Ld;Km=1;var e=Lw(),t=Z5(),r=Rp(),n=zw(),i=K5(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Ld=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(z){var W=z&&(f&&z[f]||z[g]);if(typeof W=="function")return W}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:U(),objectOf:I,oneOf:H,oneOfType:$,shape:M,exact:D};function S(z,W){return z===W?z!==0||1/z===1/W:z!==z&&W!==W}function v(z,W){this.message=z,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var W={},X=0;function te(oe,ae,ne,de,he,fe,ye){if(de=de||h,fe=fe||ne,ye!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=de+":"+ne;!W[Te]&&X<3&&(s("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Te]=!0,X++)}}return ae[ne]==null?oe?ae[ne]===null?new v("The "+he+" `"+fe+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+he+" `"+fe+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:z(ae,ne,de,he,fe)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(z){function W(X,te,J,oe,ae,ne){var de=X[te],he=K(de);if(he!==z){var fe=ee(de);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+fe+"` supplied to `"+J+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(W)}function w(){return y(l)}function x(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=X[te];if(!Array.isArray(ne)){var de=K(ne);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var fe=z(ne,he,J,oe,ae+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(W)}function O(){function z(W,X,te,J,oe){var ae=W[X];if(!c(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(z)}function _(){function z(W,X,te,J,oe){var ae=W[X];if(!e.isValidElementType(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(z)}function R(z){function W(X,te,J,oe,ae){if(!(X[te]instanceof z)){var ne=z.name||h,de=ve(X[te]);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(W)}function H(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function W(X,te,J,oe,ae){for(var ne=X[te],de=0;de<z.length;de++)if(S(ne,z[de]))return null;var he=JSON.stringify(z,function(fe,ye){var Z=ee(ye);return Z==="symbol"?String(ye):ye});return new v("Invalid "+oe+" `"+ae+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return y(W)}function I(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var fe=z(ne,he,J,oe,ae+"."+he,r);if(fe instanceof Error)return fe}return null}return y(W)}function $(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<z.length;W++){var X=z[W];if(typeof X!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(X)+" at index "+W+"."),l}function te(J,oe,ae,ne,de){for(var he=[],fe=0;fe<z.length;fe++){var ye=z[fe],Z=ye(J,oe,ae,ne,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Te=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+de+"` supplied to "+("`"+ae+"`"+Te+"."))}return y(te)}function U(){function z(W,X,te,J,oe){return F(W[X])?null:new v("Invalid "+J+" `"+oe+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(z)}function j(z,W,X,te,J){return new v((z||"React class")+": "+W+" type `"+X+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in z){var fe=z[he];if(typeof fe!="function")return j(J,oe,ae,he,ee(fe));var ye=fe(ne,he,J,oe,ae+"."+he,r);if(ye)return ye}return null}return y(W)}function D(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},X[te],z);for(var fe in he){var ye=z[fe];if(n(z,fe)&&typeof ye!="function")return j(J,oe,ae,fe,ee(ye));if(!ye)return new v("Invalid "+oe+" `"+ae+"` key `"+fe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(X[te],null," ")+`
37
- Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Z=ye(ne,fe,J,oe,ae+"."+fe,r);if(Z)return Z}return null}return y(W)}function F(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(F);if(z===null||c(z))return!0;var W=p(z);if(W){var X=W.call(z),te;if(W!==z.entries){for(;!(te=X.next()).done;)if(!F(te.value))return!1}else for(;!(te=X.next()).done;){var J=te.value;if(J&&!F(J[1]))return!1}}else return!1;return!0;default:return!1}}function P(z,W){return z==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(z){var W=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":P(W,z)?"symbol":W}function ee(z){if(typeof z>"u"||z===null)return""+z;var W=K(z);if(W==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return W}function Y(z){var W=ee(z);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Ld}var zd,Ym;function X5(){if(Ym)return zd;Ym=1;var e=Rp();function t(){}function r(){}return r.resetWarningCache=t,zd=function(){function n(l,c,u,f,g,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},zd}var Xm;function J5(){if(Xm)return Dl.exports;if(Xm=1,process.env.NODE_ENV!=="production"){var e=Lw(),t=!0;Dl.exports=Y5()(e.isElement,t)}else Dl.exports=X5()();return Dl.exports}var Q5=J5();const pe=lw(Q5);var $d={exports:{}},Ze={};/**
36
+ */var $d,Zm;function ZI(){if(Zm)return $d;Zm=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return $d=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},$d}var jd,Km;function Np(){if(Km)return jd;Km=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jd=e,jd}var Ym,Xm;function Hw(){return Xm||(Xm=1,Ym=Function.call.bind(Object.prototype.hasOwnProperty)),Ym}var Fd,Jm;function KI(){if(Jm)return Fd;Jm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Np(),r={},n=Hw();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Fd=i,Fd}var Hd,Qm;function YI(){if(Qm)return Hd;Qm=1;var e=Fw(),t=ZI(),r=Np(),n=Hw(),i=KI(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Hd=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(j){var W=j&&(f&&j[f]||j[g]);if(typeof W=="function")return W}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:U(),objectOf:P,oneOf:H,oneOfType:z,shape:M,exact:D};function S(j,W){return j===W?j!==0||1/j===1/W:j!==j&&W!==W}function v(j,W){this.message=j,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var W={},ee=0;function Q(ue,ie,ne,de,pe,he,xe){if(de=de||h,he=he||ne,xe!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=de+":"+ne;!W[Oe]&&ee<3&&(s("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Oe]=!0,ee++)}}return ie[ne]==null?ue?ie[ne]===null?new v("The "+pe+" `"+he+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+pe+" `"+he+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:j(ie,ne,de,pe,he)}var X=Q.bind(null,!1);return X.isRequired=Q.bind(null,!0),X}function m(j){function W(ee,Q,X,ue,ie,ne){var de=ee[Q],pe=K(de);if(pe!==j){var he=te(de);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+he+"` supplied to `"+X+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(W)}function w(){return y(l)}function x(j){function W(ee,Q,X,ue,ie){if(typeof j!="function")return new v("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var ne=ee[Q];if(!Array.isArray(ne)){var de=K(ne);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an array."))}for(var pe=0;pe<ne.length;pe++){var he=j(ne,pe,X,ue,ie+"["+pe+"]",r);if(he instanceof Error)return he}return null}return y(W)}function O(){function j(W,ee,Q,X,ue){var ie=W[ee];if(!c(ie)){var ne=K(ie);return new v("Invalid "+X+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return y(j)}function _(){function j(W,ee,Q,X,ue){var ie=W[ee];if(!e.isValidElementType(ie)){var ne=K(ie);return new v("Invalid "+X+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return y(j)}function R(j){function W(ee,Q,X,ue,ie){if(!(ee[Q]instanceof j)){var ne=j.name||h,de=ve(ee[Q]);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(W)}function H(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function W(ee,Q,X,ue,ie){for(var ne=ee[Q],de=0;de<j.length;de++)if(S(ne,j[de]))return null;var pe=JSON.stringify(j,function(he,xe){var Z=te(xe);return Z==="symbol"?String(xe):xe});return new v("Invalid "+ue+" `"+ie+"` of value `"+String(ne)+"` "+("supplied to `"+X+"`, expected one of "+pe+"."))}return y(W)}function P(j){function W(ee,Q,X,ue,ie){if(typeof j!="function")return new v("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an object."));for(var pe in ne)if(n(ne,pe)){var he=j(ne,pe,X,ue,ie+"."+pe,r);if(he instanceof Error)return he}return null}return y(W)}function z(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<j.length;W++){var ee=j[W];if(typeof ee!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(ee)+" at index "+W+"."),l}function Q(X,ue,ie,ne,de){for(var pe=[],he=0;he<j.length;he++){var xe=j[he],Z=xe(X,ue,ie,ne,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&pe.push(Z.data.expectedType)}var Oe=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new v("Invalid "+ne+" `"+de+"` supplied to "+("`"+ie+"`"+Oe+"."))}return y(Q)}function U(){function j(W,ee,Q,X,ue){return F(W[ee])?null:new v("Invalid "+X+" `"+ue+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return y(j)}function $(j,W,ee,Q,X){return new v((j||"React class")+": "+W+" type `"+ee+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function M(j){function W(ee,Q,X,ue,ie){var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));for(var pe in j){var he=j[pe];if(typeof he!="function")return $(X,ue,ie,pe,te(he));var xe=he(ne,pe,X,ue,ie+"."+pe,r);if(xe)return xe}return null}return y(W)}function D(j){function W(ee,Q,X,ue,ie){var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));var pe=t({},ee[Q],j);for(var he in pe){var xe=j[he];if(n(j,he)&&typeof xe!="function")return $(X,ue,ie,he,te(xe));if(!xe)return new v("Invalid "+ue+" `"+ie+"` key `"+he+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(ee[Q],null," ")+`
37
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Z=xe(ne,he,X,ue,ie+"."+he,r);if(Z)return Z}return null}return y(W)}function F(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(F);if(j===null||c(j))return!0;var W=p(j);if(W){var ee=W.call(j),Q;if(W!==j.entries){for(;!(Q=ee.next()).done;)if(!F(Q.value))return!1}else for(;!(Q=ee.next()).done;){var X=Q.value;if(X&&!F(X[1]))return!1}}else return!1;return!0;default:return!1}}function I(j,W){return j==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(j){var W=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":I(W,j)?"symbol":W}function te(j){if(typeof j>"u"||j===null)return""+j;var W=K(j);if(W==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return W}function Y(j){var W=te(j);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},Hd}var Wd,e0;function XI(){if(e0)return Wd;e0=1;var e=Np();function t(){}function r(){}return r.resetWarningCache=t,Wd=function(){function n(l,c,u,f,g,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},Wd}var t0;function JI(){if(t0)return Ll.exports;if(t0=1,process.env.NODE_ENV!=="production"){var e=Fw(),t=!0;Ll.exports=YI()(e.isElement,t)}else Ll.exports=XI()();return Ll.exports}var QI=JI();const fe=fw(QI);var Bd={exports:{}},Ze={};/**
38
38
  * @license React
39
39
  * react-is.production.min.js
40
40
  *
@@ -42,7 +42,7 @@ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Z=ye(ne,fe,J,oe,ae+"
42
42
  *
43
43
  * This source code is licensed under the MIT license found in the
44
44
  * LICENSE file in the root directory of this source tree.
45
- */var Jm;function eN(){if(Jm)return Ze;Jm=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(y){if(typeof y=="object"&&y!==null){var m=y.$$typeof;switch(m){case e:switch(y=y.type,y){case r:case i:case n:case f:case g:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case u:case h:case p:case s:return y;default:return m}}case t:return m}}}return Ze.ContextConsumer=l,Ze.ContextProvider=s,Ze.Element=e,Ze.ForwardRef=u,Ze.Fragment=r,Ze.Lazy=h,Ze.Memo=p,Ze.Portal=t,Ze.Profiler=i,Ze.StrictMode=n,Ze.Suspense=f,Ze.SuspenseList=g,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(y){return v(y)===l},Ze.isContextProvider=function(y){return v(y)===s},Ze.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Ze.isForwardRef=function(y){return v(y)===u},Ze.isFragment=function(y){return v(y)===r},Ze.isLazy=function(y){return v(y)===h},Ze.isMemo=function(y){return v(y)===p},Ze.isPortal=function(y){return v(y)===t},Ze.isProfiler=function(y){return v(y)===i},Ze.isStrictMode=function(y){return v(y)===n},Ze.isSuspense=function(y){return v(y)===f},Ze.isSuspenseList=function(y){return v(y)===g},Ze.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===f||y===g||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===l||y.$$typeof===u||y.$$typeof===S||y.getModuleId!==void 0)},Ze.typeOf=v,Ze}var tt={};/**
45
+ */var r0;function eN(){if(r0)return Ze;r0=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S;S=Symbol.for("react.module.reference");function v(y){if(typeof y=="object"&&y!==null){var m=y.$$typeof;switch(m){case e:switch(y=y.type,y){case r:case i:case n:case f:case g:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case u:case h:case p:case s:return y;default:return m}}case t:return m}}}return Ze.ContextConsumer=l,Ze.ContextProvider=s,Ze.Element=e,Ze.ForwardRef=u,Ze.Fragment=r,Ze.Lazy=h,Ze.Memo=p,Ze.Portal=t,Ze.Profiler=i,Ze.StrictMode=n,Ze.Suspense=f,Ze.SuspenseList=g,Ze.isAsyncMode=function(){return!1},Ze.isConcurrentMode=function(){return!1},Ze.isContextConsumer=function(y){return v(y)===l},Ze.isContextProvider=function(y){return v(y)===s},Ze.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},Ze.isForwardRef=function(y){return v(y)===u},Ze.isFragment=function(y){return v(y)===r},Ze.isLazy=function(y){return v(y)===h},Ze.isMemo=function(y){return v(y)===p},Ze.isPortal=function(y){return v(y)===t},Ze.isProfiler=function(y){return v(y)===i},Ze.isStrictMode=function(y){return v(y)===n},Ze.isSuspense=function(y){return v(y)===f},Ze.isSuspenseList=function(y){return v(y)===g},Ze.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===i||y===n||y===f||y===g||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===p||y.$$typeof===s||y.$$typeof===l||y.$$typeof===u||y.$$typeof===S||y.getModuleId!==void 0)},Ze.typeOf=v,Ze}var tt={};/**
46
46
  * @license React
47
47
  * react-is.development.js
48
48
  *
@@ -50,28 +50,28 @@ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Z=ye(ne,fe,J,oe,ae+"
50
50
  *
51
51
  * This source code is licensed under the MIT license found in the
52
52
  * LICENSE file in the root directory of this source tree.
53
- */var Qm;function tN(){return Qm||(Qm=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,v=!1,y=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function O(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===i||w||ge===n||ge===f||ge===g||m||ge===b||S||v||y||typeof ge=="object"&&ge!==null&&(ge.$$typeof===h||ge.$$typeof===p||ge.$$typeof===s||ge.$$typeof===l||ge.$$typeof===u||ge.$$typeof===x||ge.getModuleId!==void 0))}function _(ge){if(typeof ge=="object"&&ge!==null){var at=ge.$$typeof;switch(at){case e:var qt=ge.type;switch(qt){case r:case i:case n:case f:case g:return qt;default:var Dt=qt&&qt.$$typeof;switch(Dt){case c:case l:case u:case h:case p:case s:return Dt;default:return at}}case t:return at}}}var R=l,H=s,I=e,$=u,U=r,j=h,M=p,D=t,F=i,P=n,K=f,ee=g,Y=!1,ve=!1;function z(ge){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(ge){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function X(ge){return _(ge)===l}function te(ge){return _(ge)===s}function J(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function oe(ge){return _(ge)===u}function ae(ge){return _(ge)===r}function ne(ge){return _(ge)===h}function de(ge){return _(ge)===p}function he(ge){return _(ge)===t}function fe(ge){return _(ge)===i}function ye(ge){return _(ge)===n}function Z(ge){return _(ge)===f}function Te(ge){return _(ge)===g}tt.ContextConsumer=R,tt.ContextProvider=H,tt.Element=I,tt.ForwardRef=$,tt.Fragment=U,tt.Lazy=j,tt.Memo=M,tt.Portal=D,tt.Profiler=F,tt.StrictMode=P,tt.Suspense=K,tt.SuspenseList=ee,tt.isAsyncMode=z,tt.isConcurrentMode=W,tt.isContextConsumer=X,tt.isContextProvider=te,tt.isElement=J,tt.isForwardRef=oe,tt.isFragment=ae,tt.isLazy=ne,tt.isMemo=de,tt.isPortal=he,tt.isProfiler=fe,tt.isStrictMode=ye,tt.isSuspense=Z,tt.isSuspenseList=Te,tt.isValidElementType=O,tt.typeOf=_})()),tt}var e0;function rN(){return e0||(e0=1,process.env.NODE_ENV==="production"?$d.exports=eN():$d.exports=tN()),$d.exports}var t0=rN();const r0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,n0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",Ll=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return n0(r.overflowY,t)||n0(r.overflowX,t)||(n=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)})(e)}return!1},zl=(e,t,r,n,i,s,l,c)=>s<e&&l>t||s>e&&l<t?0:s<=e&&c<=r||l>=t&&c>=r?s-e-n:l>t&&c<r||s<e&&c>r?l-t+i:0,nN=e=>e.parentElement??(e.getRootNode().host||null),iN=(e,t)=>{var r,n,i,s;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:D=>D!==c;if(!r0(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,p=[];let h=e;for(;r0(h)&&f(h);){if(h=nN(h),h===g){p.push(h);break}h!=null&&h===document.body&&Ll(h)&&!Ll(document.documentElement)||h!=null&&Ll(h,u)&&p.push(h)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:v,scrollY:y}=window,{height:m,width:w,top:x,right:O,bottom:_,left:R}=e.getBoundingClientRect(),{top:H,right:I,left:$}=(D=>{const F=window.getComputedStyle(D);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let U=x-H,j=l==="center"?R+w/2-$+I:l==="end"?O+I:R-$;const M=[];for(let D=0;D<p.length;D++){const F=p[D],{height:P,width:K,top:ee,right:Y,bottom:ve,left:z}=F.getBoundingClientRect();if(x>=0&&R>=0&&_<=S&&O<=b&&(F===g&&!Ll(F)||x>=ee&&_<=ve&&R>=z&&O<=Y))return M;const W=getComputedStyle(F),X=parseInt(W.borderLeftWidth,10),te=parseInt(W.borderTopWidth,10),J=parseInt(W.borderRightWidth,10),oe=parseInt(W.borderBottomWidth,10);let ae=0,ne=0;const de="offsetWidth"in F?F.offsetWidth-F.clientWidth-X-J:0,he="offsetHeight"in F?F.offsetHeight-F.clientHeight-te-oe:0,fe="offsetWidth"in F?F.offsetWidth===0?0:K/F.offsetWidth:0,ye="offsetHeight"in F?F.offsetHeight===0?0:P/F.offsetHeight:0;if(g===F)ae=zl(y,y+S,S,te,oe,y+U,y+U+m,m),ne=l==="start"?j:l==="center"?j-b/2:l==="end"?j-b:zl(v,v+b,b,X,J,v+j,v+j+w,w),ae=Math.max(0,ae+y),ne=Math.max(0,ne+v);else{ae=zl(ee,ve,P,te,oe+he,U,U+m,m),ne=l==="start"?j-z-X:l==="center"?j-(z+K/2)+de/2:l==="end"?j-Y+J+de:zl(z,Y,K,X,J+de,j,j+w,w);const{scrollLeft:Z,scrollTop:Te}=F;ae=ye===0?0:Math.max(0,Math.min(Te+ae/ye,F.scrollHeight-P/ye+he)),ne=fe===0?0:Math.max(0,Math.min(Z+ne/fe,F.scrollWidth-K/fe+de)),U+=Te-ae,j+=Z-ne}M.push({el:F,top:ae,left:ne})}return M};var $o=function(){return $o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$o.apply(this,arguments)},oN=0;function i0(e){return typeof e=="function"?e:Dn}function Dn(){}function $w(e,t){if(e){var r=iN(e,{boundary:t});r.forEach(function(n){var i=n.el,s=n.top,l=n.left;i.scrollTop=s,i.scrollLeft=l})}}function o0(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Cp(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return i.cancel=n,i}function cn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(s)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function s0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function sN(){return String(oN++)}function aN(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function a0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function jw(e){return typeof e.type=="string"}function Fw(e){return e.props}function lN(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var cN=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function $l(e){e===void 0&&(e={});var t={};return cN.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function uN(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=$f(t,n)?t[n]:e[n],r},{})}function $f(e,t){return e[t]!==void 0}function l0(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function dN(e){return Object.prototype.toString.call(e)==="[object Object]"}function jd(e,t,r,n,i){var s=r.length;if(s===0)return-1;var l=s-1;(typeof e!="number"||e<0||e>l)&&(e=t>0?-1:l+1);var c=e+t;c<0?c=l:c>l&&(c=0);var u=Rc(c,t<0,r,n,i);return u===-1?e>=s?-1:e:u}function Rc(e,t,r,n,i){i===void 0&&(i=!1);var s=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<s;c++)if(!n(r[c],c))return c;return i?Rc(t?s-1:0,t,r,n):-1}function c0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(i){return i&&(o0(i,e,r)||n&&o0(i,r.document.activeElement,r))})}var Ip=Dn;process.env.NODE_ENV!=="production"&&(Ip=function(e,t,r){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(i){t[i]!==void 0&&r[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+n):t[i]===void 0&&r[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+n)})});var fN=Cp(function(e){Hw(e).textContent=""},500);function Hw(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function Bw(e,t){if(!(!e||!t)){var r=Hw(t);r.textContent=e,fN(t)}}var Ww=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Vw=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Uw=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,cc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,uc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,qw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Gw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Zw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Kw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Yw=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Xw=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Jw=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Qw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,jf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,ex=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,tx=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,rx=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,pN=Object.freeze({__proto__:null,blurButton:ex,blurInput:Xw,changeInput:Jw,clickButton:jf,clickItem:Yw,controlledPropUpdatedSelectedItem:tx,itemMouseEnter:Uw,keyDownArrowDown:uc,keyDownArrowUp:cc,keyDownEnd:Kw,keyDownEnter:Gw,keyDownEscape:qw,keyDownHome:Zw,keyDownSpaceButton:Qw,mouseUp:Vw,touchEnd:rx,unknown:Ww}),hN=["refKey","ref"],gN=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],vN=["onKeyDown","onBlur","onChange","onInput","onChangeText"],mN=["refKey","ref"],bN=["onMouseMove","onMouseDown","onClick","onPress","index","item"],yN=(function(){var e=(function(t){function r(i){var s;s=t.call(this,i)||this,s.id=s.props.id||"downshift-"+sN(),s.menuId=s.props.menuId||s.id+"-menu",s.labelId=s.props.labelId||s.id+"-label",s.inputId=s.props.inputId||s.id+"-input",s.getItemId=s.props.getItemId||function(w){return s.id+"-item-"+w},s.items=[],s.itemCount=null,s.previousResultCount=0,s.timeoutIds=[],s.internalSetTimeout=function(w,x){var O=setTimeout(function(){s.timeoutIds=s.timeoutIds.filter(function(_){return _!==O}),w()},x);s.timeoutIds.push(O)},s.setItemCount=function(w){s.itemCount=w},s.unsetItemCount=function(){s.itemCount=null},s.isItemDisabled=function(w,x){var O=s.getItemNodeFromIndex(x);return O&&O.hasAttribute("disabled")},s.setHighlightedIndex=function(w,x){w===void 0&&(w=s.props.defaultHighlightedIndex),x===void 0&&(x={}),x=$l(x),s.internalSetState(wt({highlightedIndex:w},x))},s.clearSelection=function(w){s.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:s.props.defaultHighlightedIndex,isOpen:s.props.defaultIsOpen},w)},s.selectItem=function(w,x,O){x=$l(x),s.internalSetState(wt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,selectedItem:w,inputValue:s.props.itemToString(w)},x),O)},s.selectItemAtIndex=function(w,x,O){var _=s.items[w];_!=null&&s.selectItem(_,x,O)},s.selectHighlightedItem=function(w,x){return s.selectItemAtIndex(s.getState().highlightedIndex,w,x)},s.internalSetState=function(w,x){var O,_,R={},H=typeof w=="function";return!H&&w.hasOwnProperty("inputValue")&&s.props.onInputValueChange(w.inputValue,wt({},s.getStateAndHelpers(),w)),s.setState(function(I){var $;I=s.getState(I);var U=H?w(I):w;U=s.props.stateReducer(I,U),O=U.hasOwnProperty("selectedItem");var j={};return O&&U.selectedItem!==I.selectedItem&&(_=U.selectedItem),($=U).type||($.type=Ww),Object.keys(U).forEach(function(M){I[M]!==U[M]&&(R[M]=U[M]),M!=="type"&&(U[M],$f(s.props,M)||(j[M]=U[M]))}),H&&U.hasOwnProperty("inputValue")&&s.props.onInputValueChange(U.inputValue,wt({},s.getStateAndHelpers(),U)),j},function(){i0(x)();var I=Object.keys(R).length>1;I&&s.props.onStateChange(R,s.getStateAndHelpers()),O&&s.props.onSelect(w.selectedItem,s.getStateAndHelpers()),_!==void 0&&s.props.onChange(_,s.getStateAndHelpers()),s.props.onUserAction(R,s.getStateAndHelpers())})},s.rootRef=function(w){return s._rootNode=w},s.getRootProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,H=R===void 0?"ref":R,I=_.ref,$=Es(_,hN),U=x===void 0?{}:x,j=U.suppressRefError,M=j===void 0?!1:j;s.getRootProps.called=!0,s.getRootProps.refKey=H,s.getRootProps.suppressRefError=M;var D=s.getState(),F=D.isOpen;return wt((O={},O[H]=s0(I,s.rootRef),O.role="combobox",O["aria-expanded"]=F,O["aria-haspopup"]="listbox",O["aria-owns"]=F?s.menuId:void 0,O["aria-labelledby"]=s.labelId,O),$)},s.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?5:1;this.moveHighlightedIndex(O,{type:uc})}else this.internalSetState({isOpen:!0,type:uc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),H=R.highlightedIndex,I=jd(H,1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(I,{type:uc})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?-5:-1;this.moveHighlightedIndex(O,{type:cc})}else this.internalSetState({isOpen:!0,type:cc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),H=R.highlightedIndex,I=jd(H,-1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(I,{type:cc})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),O=x.isOpen,_=x.highlightedIndex;if(O&&_!=null){w.preventDefault();var R=this.items[_],H=this.getItemNodeFromIndex(_);if(R==null||H&&H.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Gw})}}},Escape:function(w){w.preventDefault(),this.reset(wt({type:qw},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=wt({},s.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:Qw})}}),s.inputKeyDownHandlers=wt({},s.keyDownHandlers,{Home:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Rc(0,!1,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Zw})}}},End:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Rc(_-1,!0,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Kw})}}}}),s.getToggleButtonProps=function(w){var x=w===void 0?{}:w,O=x.onClick;x.onPress;var _=x.onKeyDown,R=x.onKeyUp,H=x.onBlur,I=Es(x,gN),$=s.getState(),U=$.isOpen,j={onClick:cn(O,s.buttonHandleClick),onKeyDown:cn(_,s.buttonHandleKeyDown),onKeyUp:cn(R,s.buttonHandleKeyUp),onBlur:cn(H,s.buttonHandleBlur)},M=I.disabled?{}:j;return wt({type:"button",role:"button","aria-label":U?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,I)},s.buttonHandleKeyUp=function(w){w.preventDefault()},s.buttonHandleKeyDown=function(w){var x=l0(w);s.buttonKeyDownHandlers[x]&&s.buttonKeyDownHandlers[x].call(s,w)},s.buttonHandleClick=function(w){if(w.preventDefault(),s.props.environment){var x=s.props.environment.document,O=x.body,_=x.activeElement;O&&O===_&&w.target.focus()}process.env.NODE_ENV==="test"?s.toggleMenu({type:jf}):s.internalSetTimeout(function(){return s.toggleMenu({type:jf})})},s.buttonHandleBlur=function(w){var x=w.target;s.internalSetTimeout(function(){if(!(s.isMouseDown||!s.props.environment)){var O=s.props.environment.document.activeElement;(O==null||O.id!==s.inputId)&&O!==x&&s.reset({type:ex})}})},s.getLabelProps=function(w){return wt({htmlFor:s.inputId,id:s.labelId},w)},s.getInputProps=function(w){var x=w===void 0?{}:w,O=x.onKeyDown,_=x.onBlur,R=x.onChange,H=x.onInput;x.onChangeText;var I=Es(x,vN),$,U={};$="onChange";var j=s.getState(),M=j.inputValue,D=j.isOpen,F=j.highlightedIndex;if(!I.disabled){var P;U=(P={},P[$]=cn(R,H,s.inputHandleChange),P.onKeyDown=cn(O,s.inputHandleKeyDown),P.onBlur=cn(_,s.inputHandleBlur),P)}return wt({"aria-autocomplete":"list","aria-activedescendant":D&&typeof F=="number"&&F>=0?s.getItemId(F):void 0,"aria-controls":D?s.menuId:void 0,"aria-labelledby":I&&I["aria-label"]?void 0:s.labelId,autoComplete:"off",value:M,id:s.inputId},U,I)},s.inputHandleKeyDown=function(w){var x=l0(w);x&&s.inputKeyDownHandlers[x]&&s.inputKeyDownHandlers[x].call(s,w)},s.inputHandleChange=function(w){s.internalSetState({type:Jw,isOpen:!0,inputValue:w.target.value,highlightedIndex:s.props.defaultHighlightedIndex})},s.inputHandleBlur=function(){s.internalSetTimeout(function(){var w;if(!(s.isMouseDown||!s.props.environment)){var x=s.props.environment.document.activeElement,O=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&s._rootNode&&s._rootNode.contains(x);O||s.reset({type:Xw})}})},s.menuRef=function(w){s._menuNode=w},s.getMenuProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,H=R===void 0?"ref":R,I=_.ref,$=Es(_,mN),U=x===void 0?{}:x,j=U.suppressRefError,M=j===void 0?!1:j;return s.getMenuProps.called=!0,s.getMenuProps.refKey=H,s.getMenuProps.suppressRefError=M,wt((O={},O[H]=s0(I,s.menuRef),O.role="listbox",O["aria-labelledby"]=$&&$["aria-label"]?void 0:s.labelId,O.id=s.menuId,O),$)},s.getItemProps=function(w){var x,O=w===void 0?{}:w,_=O.onMouseMove,R=O.onMouseDown,H=O.onClick;O.onPress;var I=O.index,$=O.item,U=$===void 0?process.env.NODE_ENV==="production"?void 0:lN("getItemProps","item"):$,j=Es(O,bN);I===void 0?(s.items.push(U),I=s.items.indexOf(U)):s.items[I]=U;var M="onClick",D=H,F=(x={onMouseMove:cn(_,function(){I!==s.getState().highlightedIndex&&(s.setHighlightedIndex(I,{type:Uw}),s.avoidScrolling=!0,s.internalSetTimeout(function(){return s.avoidScrolling=!1},250))}),onMouseDown:cn(R,function(K){K.preventDefault()})},x[M]=cn(D,function(){s.selectItemAtIndex(I,{type:Yw})}),x),P=j.disabled?{onMouseDown:F.onMouseDown}:F;return wt({id:s.getItemId(I),role:"option","aria-selected":s.getState().highlightedIndex===I},P,j)},s.clearItems=function(){s.items=[]},s.reset=function(w,x){w===void 0&&(w={}),w=$l(w),s.internalSetState(function(O){var _=O.selectedItem;return wt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,inputValue:s.props.itemToString(_)},w)},x)},s.toggleMenu=function(w,x){w===void 0&&(w={}),w=$l(w),s.internalSetState(function(O){var _=O.isOpen;return wt({isOpen:!_},_&&{highlightedIndex:s.props.defaultHighlightedIndex},w)},function(){var O=s.getState(),_=O.isOpen,R=O.highlightedIndex;_&&s.getItemCount()>0&&typeof R=="number"&&s.setHighlightedIndex(R,w),i0(x)()})},s.openMenu=function(w){s.internalSetState({isOpen:!0},w)},s.closeMenu=function(w){s.internalSetState({isOpen:!1},w)},s.updateStatus=Cp(function(){var w;if((w=s.props)!=null&&(w=w.environment)!=null&&w.document){var x=s.getState(),O=s.items[x.highlightedIndex],_=s.getItemCount(),R=s.props.getA11yStatusMessage(wt({itemToString:s.props.itemToString,previousResultCount:s.previousResultCount,resultCount:_,highlightedItem:O},x));s.previousResultCount=_,Bw(R,s.props.environment.document)}},200);var l=s.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,f=u===void 0?c:u,g=l.defaultIsOpen,p=l.initialIsOpen,h=p===void 0?g:p,b=l.initialInputValue,S=b===void 0?"":b,v=l.initialSelectedItem,y=v===void 0?null:v,m=s.getState({highlightedIndex:f,isOpen:h,inputValue:S,selectedItem:y});return m.selectedItem!=null&&s.props.initialInputValue===void 0&&(m.inputValue=s.props.itemToString(m.selectedItem)),s.state=m,s}U5(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},n.getState=function(i){return i===void 0&&(i=this.state),uN(i,this.props)},n.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},n.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},n.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},n.moveHighlightedIndex=function(i,s){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var f=jd(u,i,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(f,s)}},n.getStateAndHelpers=function(){var i=this.getState(),s=i.highlightedIndex,l=i.inputValue,c=i.selectedItem,u=i.isOpen,f=this.props.itemToString,g=this.id,p=this.getRootProps,h=this.getToggleButtonProps,b=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,y=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,O=this.selectItem,_=this.selectItemAtIndex,R=this.selectHighlightedItem,H=this.setHighlightedIndex,I=this.clearSelection,$=this.clearItems,U=this.reset,j=this.setItemCount,M=this.unsetItemCount,D=this.internalSetState;return{getRootProps:p,getToggleButtonProps:h,getLabelProps:b,getMenuProps:S,getInputProps:v,getItemProps:y,reset:U,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:O,selectItemAtIndex:_,selectHighlightedItem:R,setHighlightedIndex:H,clearSelection:I,clearItems:$,setItemCount:j,unsetItemCount:M,setState:D,itemToString:f,id:g,highlightedIndex:s,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var i=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&u0(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var s=function(){i.isMouseDown=!0},l=function(p){i.isMouseDown=!1;var h=c0(p.target,[i._rootNode,i._menuNode],i.props.environment);!h&&i.getState().isOpen&&i.reset({type:Vw},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},c=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},f=function(p){var h=c0(p.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!h&&i.getState().isOpen&&i.reset({type:rx},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},g=this.props.environment;g.addEventListener("mousedown",s),g.addEventListener("mouseup",l),g.addEventListener("touchstart",c),g.addEventListener("touchmove",u),g.addEventListener("touchend",f),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),g.removeEventListener("mousedown",s),g.removeEventListener("mouseup",l),g.removeEventListener("touchstart",c),g.removeEventListener("touchmove",u),g.removeEventListener("touchend",f)}}},n.shouldScroll=function(i,s){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=s.highlightedIndex===void 0?i:s,f=u.highlightedIndex,g=c&&this.getState().isOpen&&!i.isOpen,p=c!==f;return g||p},n.componentDidUpdate=function(i,s){process.env.NODE_ENV!=="production"&&(Ip(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&u0(this._menuNode,this.getMenuProps)),$f(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:tx,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(s,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var i=a0(this.props.children,Dn);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var s=a0(i(this.getStateAndHelpers()));if(!s)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&wN(s,this.getRootProps),s;if(jw(s))return N.cloneElement(s,this.getRootProps(Fw(s)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(N.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:aN,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&dN(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:Dn,onInputValueChange:Dn,onUserAction:Dn,onChange:Dn,onSelect:Dn,onOuterClick:Dn,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:$w},e.stateChangeTypes=pN,e})();process.env.NODE_ENV!=="production"&&(yN.propTypes={children:pe.func,defaultHighlightedIndex:pe.number,defaultIsOpen:pe.bool,initialHighlightedIndex:pe.number,initialSelectedItem:pe.any,initialInputValue:pe.string,initialIsOpen:pe.bool,getA11yStatusMessage:pe.func,itemToString:pe.func,onChange:pe.func,onSelect:pe.func,onStateChange:pe.func,onInputValueChange:pe.func,onUserAction:pe.func,onOuterClick:pe.func,selectedItemChanged:pe.func,stateReducer:pe.func,itemCount:pe.number,id:pe.string,environment:pe.shape({addEventListener:pe.func.isRequired,removeEventListener:pe.func.isRequired,document:pe.shape({createElement:pe.func.isRequired,getElementById:pe.func.isRequired,activeElement:pe.any.isRequired,body:pe.any.isRequired}).isRequired,Node:pe.func.isRequired}),suppressRefError:pe.bool,scrollIntoView:pe.func,selectedItem:pe.any,isOpen:pe.bool,inputValue:pe.string,highlightedIndex:pe.number,labelId:pe.string,inputId:pe.string,menuId:pe.string,getItemId:pe.func});function u0(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function wN(e,t){var r=t.refKey,n=r!=="ref",i=!jw(e);i&&!n&&!t0.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!t0.isForwardRef(e)&&!Fw(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function xN(e,t){return t.changes}Cp(function(e,t){Bw(e,t)},200);var ia={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:xN,scrollIntoView:$w,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function SN(){var e=N.useRef(!0);return N.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var dc={environment:pe.shape({addEventListener:pe.func.isRequired,removeEventListener:pe.func.isRequired,document:pe.shape({createElement:pe.func.isRequired,getElementById:pe.func.isRequired,activeElement:pe.any.isRequired,body:pe.any.isRequired}).isRequired,Node:pe.func.isRequired}),itemToString:pe.func,itemToKey:pe.func,stateReducer:pe.func},nx=wt({},dc,{getA11yStatusMessage:pe.func,highlightedIndex:pe.number,defaultHighlightedIndex:pe.number,initialHighlightedIndex:pe.number,isOpen:pe.bool,defaultIsOpen:pe.bool,initialIsOpen:pe.bool,selectedItem:pe.any,initialSelectedItem:pe.any,defaultSelectedItem:pe.any,id:pe.string,labelId:pe.string,menuId:pe.string,getItemId:pe.func,toggleButtonId:pe.string,onSelectedItemChange:pe.func,onHighlightedIndexChange:pe.func,onStateChange:pe.func,onIsOpenChange:pe.func,scrollIntoView:pe.func}),EN=$o($o({},nx),{items:pe.array.isRequired,isItemDisabled:pe.func});$o($o({},ia),{isItemDisabled:function(){return!1}});process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;var _N=wt({},nx,{items:pe.array.isRequired,isItemDisabled:pe.func,inputValue:pe.string,defaultInputValue:pe.string,initialInputValue:pe.string,inputId:pe.string,onInputValueChange:pe.func});process.env.NODE_ENV;wt({},ia,{isItemDisabled:function(){return!1}});var ON={stateReducer:dc.stateReducer,itemToKey:dc.itemToKey,environment:dc.environment,selectedItems:pe.array,initialSelectedItems:pe.array,defaultSelectedItems:pe.array,getA11yStatusMessage:pe.func,activeIndex:pe.number,initialActiveIndex:pe.number,defaultActiveIndex:pe.number,onActiveIndexChange:pe.func,onSelectedItemsChange:pe.func,keyNavigationNext:pe.string,keyNavigationPrevious:pe.string};ia.itemToKey,ia.stateReducer,ia.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const kN=N.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...i},s)=>{const{size:l,color:c,isDisabled:u,hasMessage:f,hasGroup:g,downshift:p,isInvalid:h,menuPlacement:b}=Ut(),S=n??u,v=r??p.isOpen;return A.jsx("div",{ref:s,className:ce(R5({size:l,color:c,isDisabled:S,isFocused:!!v,isInvalid:h&&!p.isOpen,hasMessage:f,hasGroup:g,menuPlacement:p.isOpen?b:void 0}),e),"aria-disabled":S,"aria-invalid":h,role:"combobox",tabIndex:S?-1:0,...i,children:t})}),AN=({className:e,children:t,isMulti:r})=>A.jsx("div",{className:ce(C5({isMulti:r}),e),children:t}),fc=N.forwardRef(({isHidden:e,inputClassName:t,className:r,...n},i)=>{const{size:s,color:l}=Ut();return e?A.jsx("input",{ref:i,type:"text",className:r,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):A.jsx("input",{ref:i,type:"text",className:ce(I5({size:s,color:l}),t,r),...n})}),TN=({className:e,children:t})=>{const{size:r,color:n}=Ut();return A.jsx("div",{className:ce(P5({size:r,color:n}),e),children:t})},RN=({className:e,children:t,data:r,isDisabled:n})=>{const{size:i,color:s,getOptionLabel:l}=Ut();return A.jsx("div",{className:ce(N5({size:i,color:s,isDisabled:n}),e),children:t||l(r)})},ix=({className:e,children:t,data:r,isDisabled:n,isFocused:i,onRemove:s})=>{const{size:l,color:c,downshift:u,getOptionLabel:f}=Ut(),g=()=>{s?s(r):u.removeItem(r)};return A.jsxs("div",{className:ce(M5({size:l,color:c,isDisabled:n,isFocused:i}),e),children:[A.jsx("div",{className:D5({size:l}),children:t||f(r)}),!n&&A.jsx("div",{className:L5({size:l,color:c,isDisabled:!1}),onClick:g,children:A.jsx(Bo,{className:"w-3 h-3"})})]})},ox=({color:e,className:t,children:r,onClick:n,isDisabled:i,...s})=>{const{size:l,color:c,isDisabled:u,downshift:f}=Ut(),g=i??u,p=f.selectedItems.length>0;if(g||!p)return null;const h=b=>{b.stopPropagation(),n?n(b):f.clearSelection()};return A.jsx("div",{className:ce(Dw({size:l,color:e||c,isDisabled:g}),t),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:r||A.jsx(M2,{})})},CN=({className:e,children:t,onClick:r,isDisabled:n,...i})=>{const{size:s,color:l,isDisabled:c,downshift:u}=Ut(),f=n??c,g=u.inputValue.length>0&&u.isSearchable;if(f||!g)return null;const p=h=>{h.stopPropagation(),r?r(h):u.setInputValue("")};return A.jsx("div",{className:ce(Dw({size:s,color:l,isDisabled:f}),e),onClick:p,role:"button",tabIndex:0,"aria-label":"Clear selection",...i,children:t||A.jsx(Bo,{})})},sx=N.forwardRef(({color:e,className:t,children:r,onClick:n,isDisabled:i,...s},l)=>{const{size:c,color:u,isDisabled:f,downshift:g}=Ut(),p=i??f,h=g.isOpen,b=S=>{S.stopPropagation(),p||(n?n(S):g.toggleMenu())};return A.jsx("div",{ref:l,className:ce(z5({size:c,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:b,role:"button",tabIndex:p?-1:0,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,onMouseDown:S=>{S.preventDefault()},...s,children:r||A.jsx(sc,{className:ce("transition-transform duration-200",{"rotate-180":h})})})}),IN=N.forwardRef(({className:e,children:t,placement:r,...n},i)=>{const{size:s,hasMessage:l,color:c,hasGroup:u}=Ut();return A.jsx("div",{"data-qui":"SelectMenu",ref:i,className:ce($5({size:s,placement:r,hasMessage:l,color:c,hasGroup:u}),e),...n,children:t})}),PN=N.forwardRef(({className:e,children:t,maxHeight:r=300,totalHeight:n,...i},s)=>{const{size:l}=Ut();return A.jsx(_p,{scrollableNodeProps:{ref:s},className:ce(j5({size:l}),e),style:{maxHeight:r},...i,children:n!==void 0?A.jsx("div",{style:{height:n,position:"relative",width:"100%"},children:t}):t})}),pc=({className:e,children:t,data:r,isDisabled:n,isFocused:i,isSelected:s,innerProps:l,optionClassName:c,...u})=>{const{size:f,color:g,getOptionLabel:p}=Ut();return A.jsx("div",{"data-qui":"SelectOption",className:ce(F5({size:f,color:g,isDisabled:n,isFocused:i,isSelected:s}),c,e),...l,...u,children:t??p(r)})},ax=({className:e,children:t,data:r,label:n,renderGroupHeading:i})=>{const{size:s}=Ut();return A.jsxs("div",{"data-qui":"SelectOptionGroup",className:ce(H5({size:s}),e),children:[A.jsx(NN,{children:i?i(r):n||r.label}),t]})},NN=({className:e,children:t})=>{const{size:r,color:n}=Ut();return A.jsx("div",{className:ce(B5({size:r,color:n}),e),children:t})},Fd=({className:e,children:t,inputValue:r})=>{const{size:n}=Ut();return A.jsx("div",{className:ce(V5({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},MN=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,setHasGroup:f,menuVisible:g,menuPlacement:p}=Ut();return N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]),A.jsx("div",{ref:n,"data-qui":"SelectGroup",className:ce(A5({size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,isFocused:g,menuPlacement:g?p:void 0}),e),...r,children:t})}),DN=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=Ut(),g=r||f,p=T5({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"SelectIcon",className:ce(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),LN=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[i,s]=N.useState(null);return N.useLayoutEffect(()=>{if(t&&e&&r.current){const l=()=>{var c;const u=(c=r.current)==null?void 0:c.getBoundingClientRect();u&&s({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}}},[e,t,r]),e?t&&i?En.createPortal(A.jsx("div",{className:"absolute z-50",style:{top:i.top,left:i.left,width:i.width,height:i.height,pointerEvents:"none"},children:A.jsx("div",{className:"relative w-full h-full",children:A.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):A.jsx(A.Fragment,{children:n}):null},Hd=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},zN=N.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:i=!1,isSearchClearable:s=!1,clearSearchOnSelect:l=!1,isLoading:c=!1,isRequired:u=!1,hideIndicators:f=!1,hideDropdownIndicator:g=!1,searchPlacement:p="trigger",hideSelectedOptions:h=!1,onFocus:b,onBlur:S,renderMenuHeader:v,formatOptionLabel:y,renderOption:m,optionClassName:w,renderValue:x,renderGroupHeading:O,inputRef:_,controlShouldRenderValue:R=!0,name:H,id:I,onSelectionComplete:$,"aria-label":U,"aria-labelledby":j,"aria-describedby":M,children:D,usePortal:F=!1,virtualizeThreshold:P=100,...K},ee)=>{const{size:Y,isInvalid:ve,isDisabled:z,hasGroup:W,downshift:X,options:te=[],getOptionLabel:J,getOptionValue:oe,isOptionDisabled:ae,menuPlacement:ne,setMenuPlacement:de,menuVisible:he,setMenuVisible:fe}=Ut(),ye=N.useMemo(()=>{if(m)return m;if(y)return({data:Fe})=>y(Fe)},[m,y]),Z=N.useRef(null),Te=_||Z,ge=N.useRef(null),at=N.useRef(null),qt=N.useRef(null),{isOpen:Dt,openMenu:dr,selectedItem:bi,inputValue:Lt,highlightedIndex:Rt,getToggleButtonProps:zt,getMenuProps:Qr,getInputProps:Hr,getItemProps:Vn,isMulti:fr,isSearchable:er,multipleSelection:en}=X,{getDropdownProps:Un}=en;N.useLayoutEffect(()=>{if(!Dt||!ge.current)return;const Fe=ge.current.getBoundingClientRect(),xt=window.innerHeight-Fe.bottom;de(xt<300?"top":"bottom")},[Dt,de]),N.useLayoutEffect(()=>{const Fe=Dt&&!(r&&X.filteredItems.length===0);return fe(Fe),()=>fe(!1)},[Dt,r,X.filteredItems.length,fe]);const tr=fr?X.selectedItems??[]:bi?[bi]:[],yi=tr.length>0,Ko=s&&!z&&!f,Yi=i&&yi&&!z&&!f,Xi=!g&&!f,Yo=!yi&&(!er||!Lt)||!R,Ji={},Qi={};Object.entries(K).forEach(([Fe,xt])=>{Fe.startsWith("data-")||Fe.startsWith("aria-")||Fe==="role"?Ji[Fe]=xt:Qi[Fe]=xt});const eo=N.useMemo(()=>Hd([ge,ee]),[ee]),Pa=Qr({},{suppressRefError:!0}),wi=Un({preventKeyAction:Dt}),Na={ref:Te,disabled:z,required:u,name:H,id:I,"aria-label":U,"aria-labelledby":j,"aria-describedby":M,"aria-invalid":ve,onFocus:b,onBlur:S,...Qi},Ma=(Hr==null?void 0:Hr({...Na,...wi}))??Na,{ref:Xo,...Jo}=Ma,Qo=N.useMemo(()=>Hd([Xo,wi.ref]),[Xo,wi.ref]),fu=Fe=>tr.some(xt=>oe(xt)===oe(Fe)),Da=Fe=>h?Fe.filter(xt=>!fu(xt)):Fe,La=Fe=>h?Fe.map(xt=>({...xt,options:Da(xt.options)})).filter(xt=>xt.options.length>0):Fe,qn=Fm(te)?[]:Da(X.filteredItems),pu={sm:22,md:28,lg:36}[Y]??28,xi=qn.length>=P,Gn=O5({count:xi?qn.length:0,getScrollElement:()=>qt.current,estimateSize:()=>pu,overscan:5});N.useEffect(()=>{xi&&Dt&&Rt>=0&&Rt<qn.length&&Gn.scrollToIndex(Rt,{align:"auto"})},[Rt,xi,Dt]);const es=Fe=>{$==null||$(oe(Fe),Fe)},ts=er?{}:zt({disabled:z,...wi,ref:Hd([eo,wi.ref])});return A.jsxs("div",{className:ce({relative:!W,"flex-1 min-w-0":W}),children:[A.jsxs(kN,{...er?{ref:eo}:ts,...Ji,isFocused:he,isDisabled:z,onClick:Fe=>{Fe.stopPropagation(),er?dr():er||X.toggleMenu()},children:[D||A.jsxs(AN,{isMulti:fr,children:[fr&&R&&tr.map((Fe,xt)=>A.jsx(ix,{data:Fe,index:xt,isDisabled:z,children:x?x(Fe):void 0},oe(Fe))),!fr&&yi&&R&&!er&&A.jsx("div",{className:"flex items-center gap-2",children:A.jsx(RN,{data:tr[0],isDisabled:z,children:x?x(tr[0]):J(tr[0])})}),er&&p==="trigger"?A.jsx(fc,{ref:Qo,...Jo,placeholder:e}):A.jsxs(A.Fragment,{children:[A.jsx(fc,{ref:Qo,...Jo,isHidden:!0,readOnly:!0,value:tr.map(Fe=>oe(Fe)).join(",")}),Yo&&A.jsx(TN,{children:e})]})]}),A.jsxs("div",{className:ce("flex items-center size-fit gap-1",{hidden:!Yi&&!Xi}),children:[Ko&&A.jsx(CN,{}),Yi&&A.jsx(ox,{}),Xi&&A.jsx(sx,{...er?zt({disabled:z,"aria-label":Dt?"Close menu":"Open menu"}):{}})]})]}),A.jsx("div",{ref:Pa.ref,style:{display:"none"},"aria-hidden":"true"}),A.jsx(LN,{isOpen:Dt,usePortal:F,controlRef:ge,children:(()=>{const{ref:Fe,...xt}=Pa;return r&&X.filteredItems.length===0?A.jsx("div",{...xt,style:{display:"none"},"aria-hidden":"true"}):A.jsxs(IN,{ref:at,...xt,placement:ne,children:[v&&v(X),er&&p==="menu"&&A.jsx("div",{className:"p-2",children:A.jsx(fc,{ref:Qo,...Jo,autoFocus:!0,placeholder:e,onClick:Ct=>Ct.stopPropagation()})}),A.jsx(PN,{ref:qt,totalHeight:xi?Gn.getTotalSize():void 0,children:c?A.jsx("div",{className:W5({size:Y}),children:n}):X.filteredItems.length===0?A.jsx(Fd,{inputValue:Lt,children:typeof t=="function"?t(Lt):t}):Fm(te)?(()=>{const Ct=La(te);return Ct.length===0?A.jsx(Fd,{inputValue:Lt,children:typeof t=="function"?t(Lt):t}):Ct.map(It=>A.jsx(ax,{data:It,label:It.label,options:It.options,renderGroupHeading:O,children:It.options.map(rr=>{const kr=oe(rr),tn=tr.some(rs=>oe(rs)===kr),rn=X.filteredItems.findIndex(rs=>oe(rs)===kr),nn=Rt===rn,on=ae(rr),Si=Vn({item:rr,index:rn,onClick:()=>es(rr)});return A.jsx(pc,{...Si,data:rr,isDisabled:on,isFocused:nn,isSelected:tn,optionClassName:w,children:ye?ye({data:rr,isFocused:nn,isSelected:tn,isDisabled:on}):void 0},kr)})},It.label))})():qn.length===0?A.jsx(Fd,{inputValue:Lt,children:typeof t=="function"?t(Lt):t}):xi?Gn.getVirtualItems().map(Ct=>{const It=qn[Ct.index],rr=oe(It),kr=tr.some(Si=>oe(Si)===rr),tn=X.filteredItems.findIndex(Si=>oe(Si)===rr),rn=Rt===tn,nn=ae(It),on=Vn({item:It,index:tn,onClick:()=>es(It)});return A.jsx("div",{"data-index":Ct.index,ref:Gn.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${Ct.start}px)`},children:A.jsx(pc,{...on,data:It,isDisabled:nn,isFocused:rn,isSelected:kr,optionClassName:w,children:ye?ye({data:It,isFocused:rn,isSelected:kr,isDisabled:nn}):void 0})},Ct.key)}):qn.map(Ct=>{const It=oe(Ct),rr=tr.some(on=>oe(on)===It),kr=X.filteredItems.findIndex(on=>oe(on)===It),tn=Rt===kr,rn=ae(Ct),nn=Vn({item:Ct,index:kr,onClick:()=>es(Ct)});return A.jsx(pc,{...nn,data:Ct,isDisabled:rn,isFocused:tn,isSelected:rr,optionClassName:w,children:ye?ye({data:Ct,isFocused:tn,isSelected:rr,isDisabled:rn}):void 0},It)})})]})})()})]})});MN.displayName="Select.Group";DN.displayName="Select.Icon";fc.displayName="Select.Input";ix.displayName="Select.MultiValue";ox.displayName="Select.ClearIndicator";sx.displayName="Select.DropdownIndicator";pc.displayName="Select.Option";ax.displayName="Select.OptionGroup";const $N=zN;$N.displayName="Select.Field";N.createContext(void 0);const jN=({active:e,disabled:t,error:r,isOpen:n,className:i})=>ce("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover":e&&!t,"text-negative":r&&!e&&!t,"bg-primary-hover text-body":n&&!e&&!t,"text-body":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},i),FN=N.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:i,children:s,as:l="div",...c},u)=>{const f=jN({active:e,disabled:t,error:r,isOpen:n,className:i});return A.jsx(l,{"data-qui":"ListItem",ref:u,className:f,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:c.onClick?"button":"listitem",...c,children:s})});FN.displayName="ListItem";var Bd={exports:{}};/*!
53
+ */var n0;function tN(){return n0||(n0=1,process.env.NODE_ENV!=="production"&&(function(){var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),i=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),f=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),p=Symbol.for("react.memo"),h=Symbol.for("react.lazy"),b=Symbol.for("react.offscreen"),S=!1,v=!1,y=!1,m=!1,w=!1,x;x=Symbol.for("react.module.reference");function O(ge){return!!(typeof ge=="string"||typeof ge=="function"||ge===r||ge===i||w||ge===n||ge===f||ge===g||m||ge===b||S||v||y||typeof ge=="object"&&ge!==null&&(ge.$$typeof===h||ge.$$typeof===p||ge.$$typeof===s||ge.$$typeof===l||ge.$$typeof===u||ge.$$typeof===x||ge.getModuleId!==void 0))}function _(ge){if(typeof ge=="object"&&ge!==null){var at=ge.$$typeof;switch(at){case e:var Kt=ge.type;switch(Kt){case r:case i:case n:case f:case g:return Kt;default:var Or=Kt&&Kt.$$typeof;switch(Or){case c:case l:case u:case h:case p:case s:return Or;default:return at}}case t:return at}}}var R=l,H=s,P=e,z=u,U=r,$=h,M=p,D=t,F=i,I=n,K=f,te=g,Y=!1,ve=!1;function j(ge){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function W(ge){return ve||(ve=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(ge){return _(ge)===l}function Q(ge){return _(ge)===s}function X(ge){return typeof ge=="object"&&ge!==null&&ge.$$typeof===e}function ue(ge){return _(ge)===u}function ie(ge){return _(ge)===r}function ne(ge){return _(ge)===h}function de(ge){return _(ge)===p}function pe(ge){return _(ge)===t}function he(ge){return _(ge)===i}function xe(ge){return _(ge)===n}function Z(ge){return _(ge)===f}function Oe(ge){return _(ge)===g}tt.ContextConsumer=R,tt.ContextProvider=H,tt.Element=P,tt.ForwardRef=z,tt.Fragment=U,tt.Lazy=$,tt.Memo=M,tt.Portal=D,tt.Profiler=F,tt.StrictMode=I,tt.Suspense=K,tt.SuspenseList=te,tt.isAsyncMode=j,tt.isConcurrentMode=W,tt.isContextConsumer=ee,tt.isContextProvider=Q,tt.isElement=X,tt.isForwardRef=ue,tt.isFragment=ie,tt.isLazy=ne,tt.isMemo=de,tt.isPortal=pe,tt.isProfiler=he,tt.isStrictMode=xe,tt.isSuspense=Z,tt.isSuspenseList=Oe,tt.isValidElementType=O,tt.typeOf=_})()),tt}var i0;function rN(){return i0||(i0=1,process.env.NODE_ENV==="production"?Bd.exports=eN():Bd.exports=tN()),Bd.exports}var o0=rN();const s0=e=>typeof e=="object"&&e!=null&&e.nodeType===1,a0=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",zl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return a0(r.overflowY,t)||a0(r.overflowX,t)||(n=>{const i=(s=>{if(!s.ownerDocument||!s.ownerDocument.defaultView)return null;try{return s.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)})(e)}return!1},$l=(e,t,r,n,i,s,l,c)=>s<e&&l>t||s>e&&l<t?0:s<=e&&c<=r||l>=t&&c>=r?s-e-n:l>t&&c<r||s<e&&c>r?l-t+i:0,nN=e=>e.parentElement??(e.getRootNode().host||null),iN=(e,t)=>{var r,n,i,s;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,f=typeof c=="function"?c:D=>D!==c;if(!s0(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,p=[];let h=e;for(;s0(h)&&f(h);){if(h=nN(h),h===g){p.push(h);break}h!=null&&h===document.body&&zl(h)&&!zl(document.documentElement)||h!=null&&zl(h,u)&&p.push(h)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(s=(i=window.visualViewport)==null?void 0:i.height)!=null?s:innerHeight,{scrollX:v,scrollY:y}=window,{height:m,width:w,top:x,right:O,bottom:_,left:R}=e.getBoundingClientRect(),{top:H,right:P,left:z}=(D=>{const F=window.getComputedStyle(D);return{top:parseFloat(F.scrollMarginTop)||0,right:parseFloat(F.scrollMarginRight)||0,bottom:parseFloat(F.scrollMarginBottom)||0,left:parseFloat(F.scrollMarginLeft)||0}})(e);let U=x-H,$=l==="center"?R+w/2-z+P:l==="end"?O+P:R-z;const M=[];for(let D=0;D<p.length;D++){const F=p[D],{height:I,width:K,top:te,right:Y,bottom:ve,left:j}=F.getBoundingClientRect();if(x>=0&&R>=0&&_<=S&&O<=b&&(F===g&&!zl(F)||x>=te&&_<=ve&&R>=j&&O<=Y))return M;const W=getComputedStyle(F),ee=parseInt(W.borderLeftWidth,10),Q=parseInt(W.borderTopWidth,10),X=parseInt(W.borderRightWidth,10),ue=parseInt(W.borderBottomWidth,10);let ie=0,ne=0;const de="offsetWidth"in F?F.offsetWidth-F.clientWidth-ee-X:0,pe="offsetHeight"in F?F.offsetHeight-F.clientHeight-Q-ue:0,he="offsetWidth"in F?F.offsetWidth===0?0:K/F.offsetWidth:0,xe="offsetHeight"in F?F.offsetHeight===0?0:I/F.offsetHeight:0;if(g===F)ie=$l(y,y+S,S,Q,ue,y+U,y+U+m,m),ne=l==="start"?$:l==="center"?$-b/2:l==="end"?$-b:$l(v,v+b,b,ee,X,v+$,v+$+w,w),ie=Math.max(0,ie+y),ne=Math.max(0,ne+v);else{ie=$l(te,ve,I,Q,ue+pe,U,U+m,m),ne=l==="start"?$-j-ee:l==="center"?$-(j+K/2)+de/2:l==="end"?$-Y+X+de:$l(j,Y,K,ee,X+de,$,$+w,w);const{scrollLeft:Z,scrollTop:Oe}=F;ie=xe===0?0:Math.max(0,Math.min(Oe+ie/xe,F.scrollHeight-I/xe+pe)),ne=he===0?0:Math.max(0,Math.min(Z+ne/he,F.scrollWidth-K/he+de)),U+=Oe-ie,$+=Z-ne}M.push({el:F,top:ie,left:ne})}return M};var $o=function(){return $o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},$o.apply(this,arguments)},oN=0;function l0(e){return typeof e=="function"?e:zn}function zn(){}function Ww(e,t){if(e){var r=iN(e,{boundary:t});r.forEach(function(n){var i=n.el,s=n.top,l=n.left;i.scrollTop=s,i.scrollLeft=l})}}function c0(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function Mp(e,t){var r;function n(){r&&clearTimeout(r)}function i(){for(var s=arguments.length,l=new Array(s),c=0;c<s;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return i.cancel=n,i}function cn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var i=arguments.length,s=new Array(i>1?i-1:0),l=1;l<i;l++)s[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(s)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function u0(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(i){typeof i=="function"?i(n):i&&(i.current=n)})}}function sN(){return String(oN++)}function aN(e){var t=e.isOpen,r=e.resultCount,n=e.previousResultCount;return t?r?r!==n?r+" result"+(r===1?" is":"s are")+" available, use up and down arrow keys to navigate. Press Enter key to select.":"":"No results are available.":""}function d0(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Bw(e){return typeof e.type=="string"}function Vw(e){return e.props}function lN(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var cN=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function jl(e){e===void 0&&(e={});var t={};return cN.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function uN(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=Wf(t,n)?t[n]:e[n],r},{})}function Wf(e,t){return e[t]!==void 0}function f0(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function dN(e){return Object.prototype.toString.call(e)==="[object Object]"}function Vd(e,t,r,n,i){var s=r.length;if(s===0)return-1;var l=s-1;(typeof e!="number"||e<0||e>l)&&(e=t>0?-1:l+1);var c=e+t;c<0?c=l:c>l&&(c=0);var u=Cc(c,t<0,r,n,i);return u===-1?e>=s?-1:e:u}function Cc(e,t,r,n,i){i===void 0&&(i=!1);var s=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<s;c++)if(!n(r[c],c))return c;return i?Cc(t?s-1:0,t,r,n):-1}function p0(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(i){return i&&(c0(i,e,r)||n&&c0(i,r.document.activeElement,r))})}var Dp=zn;process.env.NODE_ENV!=="production"&&(Dp=function(e,t,r){var n="This prop should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled Downshift element for the lifetime of the component. More info: https://github.com/downshift-js/downshift#control-props";Object.keys(e).forEach(function(i){t[i]!==void 0&&r[i]===void 0?console.error('downshift: A component has changed the controlled prop "'+i+'" to be uncontrolled. '+n):t[i]===void 0&&r[i]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+i+'" to be controlled. '+n)})});var fN=Mp(function(e){Uw(e).textContent=""},500);function Uw(e){var t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}function qw(e,t){if(!(!e||!t)){var r=Uw(t);r.textContent=e,fN(t)}}var Gw=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Zw=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Kw=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,uc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,dc=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,Yw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,Xw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,Jw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Qw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,ex=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,tx=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,rx=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,nx=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,Bf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,ix=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,ox=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,sx=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,pN=Object.freeze({__proto__:null,blurButton:ix,blurInput:tx,changeInput:rx,clickButton:Bf,clickItem:ex,controlledPropUpdatedSelectedItem:ox,itemMouseEnter:Kw,keyDownArrowDown:dc,keyDownArrowUp:uc,keyDownEnd:Qw,keyDownEnter:Xw,keyDownEscape:Yw,keyDownHome:Jw,keyDownSpaceButton:nx,mouseUp:Zw,touchEnd:sx,unknown:Gw}),hN=["refKey","ref"],gN=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],vN=["onKeyDown","onBlur","onChange","onInput","onChangeText"],mN=["refKey","ref"],bN=["onMouseMove","onMouseDown","onClick","onPress","index","item"],yN=(function(){var e=(function(t){function r(i){var s;s=t.call(this,i)||this,s.id=s.props.id||"downshift-"+sN(),s.menuId=s.props.menuId||s.id+"-menu",s.labelId=s.props.labelId||s.id+"-label",s.inputId=s.props.inputId||s.id+"-input",s.getItemId=s.props.getItemId||function(w){return s.id+"-item-"+w},s.items=[],s.itemCount=null,s.previousResultCount=0,s.timeoutIds=[],s.internalSetTimeout=function(w,x){var O=setTimeout(function(){s.timeoutIds=s.timeoutIds.filter(function(_){return _!==O}),w()},x);s.timeoutIds.push(O)},s.setItemCount=function(w){s.itemCount=w},s.unsetItemCount=function(){s.itemCount=null},s.isItemDisabled=function(w,x){var O=s.getItemNodeFromIndex(x);return O&&O.hasAttribute("disabled")},s.setHighlightedIndex=function(w,x){w===void 0&&(w=s.props.defaultHighlightedIndex),x===void 0&&(x={}),x=jl(x),s.internalSetState(wt({highlightedIndex:w},x))},s.clearSelection=function(w){s.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:s.props.defaultHighlightedIndex,isOpen:s.props.defaultIsOpen},w)},s.selectItem=function(w,x,O){x=jl(x),s.internalSetState(wt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,selectedItem:w,inputValue:s.props.itemToString(w)},x),O)},s.selectItemAtIndex=function(w,x,O){var _=s.items[w];_!=null&&s.selectItem(_,x,O)},s.selectHighlightedItem=function(w,x){return s.selectItemAtIndex(s.getState().highlightedIndex,w,x)},s.internalSetState=function(w,x){var O,_,R={},H=typeof w=="function";return!H&&w.hasOwnProperty("inputValue")&&s.props.onInputValueChange(w.inputValue,wt({},s.getStateAndHelpers(),w)),s.setState(function(P){var z;P=s.getState(P);var U=H?w(P):w;U=s.props.stateReducer(P,U),O=U.hasOwnProperty("selectedItem");var $={};return O&&U.selectedItem!==P.selectedItem&&(_=U.selectedItem),(z=U).type||(z.type=Gw),Object.keys(U).forEach(function(M){P[M]!==U[M]&&(R[M]=U[M]),M!=="type"&&(U[M],Wf(s.props,M)||($[M]=U[M]))}),H&&U.hasOwnProperty("inputValue")&&s.props.onInputValueChange(U.inputValue,wt({},s.getStateAndHelpers(),U)),$},function(){l0(x)();var P=Object.keys(R).length>1;P&&s.props.onStateChange(R,s.getStateAndHelpers()),O&&s.props.onSelect(w.selectedItem,s.getStateAndHelpers()),_!==void 0&&s.props.onChange(_,s.getStateAndHelpers()),s.props.onUserAction(R,s.getStateAndHelpers())})},s.rootRef=function(w){return s._rootNode=w},s.getRootProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,H=R===void 0?"ref":R,P=_.ref,z=Ss(_,hN),U=x===void 0?{}:x,$=U.suppressRefError,M=$===void 0?!1:$;s.getRootProps.called=!0,s.getRootProps.refKey=H,s.getRootProps.suppressRefError=M;var D=s.getState(),F=D.isOpen;return wt((O={},O[H]=u0(P,s.rootRef),O.role="combobox",O["aria-expanded"]=F,O["aria-haspopup"]="listbox",O["aria-owns"]=F?s.menuId:void 0,O["aria-labelledby"]=s.labelId,O),z)},s.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?5:1;this.moveHighlightedIndex(O,{type:dc})}else this.internalSetState({isOpen:!0,type:dc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),H=R.highlightedIndex,P=Vd(H,1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:dc})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var O=w.shiftKey?-5:-1;this.moveHighlightedIndex(O,{type:uc})}else this.internalSetState({isOpen:!0,type:uc},function(){var _=x.getItemCount();if(_>0){var R=x.getState(),H=R.highlightedIndex,P=Vd(H,-1,{length:_},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:uc})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),O=x.isOpen,_=x.highlightedIndex;if(O&&_!=null){w.preventDefault();var R=this.items[_],H=this.getItemNodeFromIndex(_);if(R==null||H&&H.hasAttribute("disabled"))return;this.selectHighlightedItem({type:Xw})}}},Escape:function(w){w.preventDefault(),this.reset(wt({type:Yw},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},s.buttonKeyDownHandlers=wt({},s.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:nx})}}),s.inputKeyDownHandlers=wt({},s.keyDownHandlers,{Home:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Cc(0,!1,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Jw})}}},End:function(w){var x=this.getState(),O=x.isOpen;if(O){w.preventDefault();var _=this.getItemCount();if(!(_<=0||!O)){var R=Cc(_-1,!0,{length:_},this.isItemDisabled);this.setHighlightedIndex(R,{type:Qw})}}}}),s.getToggleButtonProps=function(w){var x=w===void 0?{}:w,O=x.onClick;x.onPress;var _=x.onKeyDown,R=x.onKeyUp,H=x.onBlur,P=Ss(x,gN),z=s.getState(),U=z.isOpen,$={onClick:cn(O,s.buttonHandleClick),onKeyDown:cn(_,s.buttonHandleKeyDown),onKeyUp:cn(R,s.buttonHandleKeyUp),onBlur:cn(H,s.buttonHandleBlur)},M=P.disabled?{}:$;return wt({type:"button",role:"button","aria-label":U?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},M,P)},s.buttonHandleKeyUp=function(w){w.preventDefault()},s.buttonHandleKeyDown=function(w){var x=f0(w);s.buttonKeyDownHandlers[x]&&s.buttonKeyDownHandlers[x].call(s,w)},s.buttonHandleClick=function(w){if(w.preventDefault(),s.props.environment){var x=s.props.environment.document,O=x.body,_=x.activeElement;O&&O===_&&w.target.focus()}process.env.NODE_ENV==="test"?s.toggleMenu({type:Bf}):s.internalSetTimeout(function(){return s.toggleMenu({type:Bf})})},s.buttonHandleBlur=function(w){var x=w.target;s.internalSetTimeout(function(){if(!(s.isMouseDown||!s.props.environment)){var O=s.props.environment.document.activeElement;(O==null||O.id!==s.inputId)&&O!==x&&s.reset({type:ix})}})},s.getLabelProps=function(w){return wt({htmlFor:s.inputId,id:s.labelId},w)},s.getInputProps=function(w){var x=w===void 0?{}:w,O=x.onKeyDown,_=x.onBlur,R=x.onChange,H=x.onInput;x.onChangeText;var P=Ss(x,vN),z,U={};z="onChange";var $=s.getState(),M=$.inputValue,D=$.isOpen,F=$.highlightedIndex;if(!P.disabled){var I;U=(I={},I[z]=cn(R,H,s.inputHandleChange),I.onKeyDown=cn(O,s.inputHandleKeyDown),I.onBlur=cn(_,s.inputHandleBlur),I)}return wt({"aria-autocomplete":"list","aria-activedescendant":D&&typeof F=="number"&&F>=0?s.getItemId(F):void 0,"aria-controls":D?s.menuId:void 0,"aria-labelledby":P&&P["aria-label"]?void 0:s.labelId,autoComplete:"off",value:M,id:s.inputId},U,P)},s.inputHandleKeyDown=function(w){var x=f0(w);x&&s.inputKeyDownHandlers[x]&&s.inputKeyDownHandlers[x].call(s,w)},s.inputHandleChange=function(w){s.internalSetState({type:rx,isOpen:!0,inputValue:w.target.value,highlightedIndex:s.props.defaultHighlightedIndex})},s.inputHandleBlur=function(){s.internalSetTimeout(function(){var w;if(!(s.isMouseDown||!s.props.environment)){var x=s.props.environment.document.activeElement,O=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&s._rootNode&&s._rootNode.contains(x);O||s.reset({type:tx})}})},s.menuRef=function(w){s._menuNode=w},s.getMenuProps=function(w,x){var O,_=w===void 0?{}:w,R=_.refKey,H=R===void 0?"ref":R,P=_.ref,z=Ss(_,mN),U=x===void 0?{}:x,$=U.suppressRefError,M=$===void 0?!1:$;return s.getMenuProps.called=!0,s.getMenuProps.refKey=H,s.getMenuProps.suppressRefError=M,wt((O={},O[H]=u0(P,s.menuRef),O.role="listbox",O["aria-labelledby"]=z&&z["aria-label"]?void 0:s.labelId,O.id=s.menuId,O),z)},s.getItemProps=function(w){var x,O=w===void 0?{}:w,_=O.onMouseMove,R=O.onMouseDown,H=O.onClick;O.onPress;var P=O.index,z=O.item,U=z===void 0?process.env.NODE_ENV==="production"?void 0:lN("getItemProps","item"):z,$=Ss(O,bN);P===void 0?(s.items.push(U),P=s.items.indexOf(U)):s.items[P]=U;var M="onClick",D=H,F=(x={onMouseMove:cn(_,function(){P!==s.getState().highlightedIndex&&(s.setHighlightedIndex(P,{type:Kw}),s.avoidScrolling=!0,s.internalSetTimeout(function(){return s.avoidScrolling=!1},250))}),onMouseDown:cn(R,function(K){K.preventDefault()})},x[M]=cn(D,function(){s.selectItemAtIndex(P,{type:ex})}),x),I=$.disabled?{onMouseDown:F.onMouseDown}:F;return wt({id:s.getItemId(P),role:"option","aria-selected":s.getState().highlightedIndex===P},I,$)},s.clearItems=function(){s.items=[]},s.reset=function(w,x){w===void 0&&(w={}),w=jl(w),s.internalSetState(function(O){var _=O.selectedItem;return wt({isOpen:s.props.defaultIsOpen,highlightedIndex:s.props.defaultHighlightedIndex,inputValue:s.props.itemToString(_)},w)},x)},s.toggleMenu=function(w,x){w===void 0&&(w={}),w=jl(w),s.internalSetState(function(O){var _=O.isOpen;return wt({isOpen:!_},_&&{highlightedIndex:s.props.defaultHighlightedIndex},w)},function(){var O=s.getState(),_=O.isOpen,R=O.highlightedIndex;_&&s.getItemCount()>0&&typeof R=="number"&&s.setHighlightedIndex(R,w),l0(x)()})},s.openMenu=function(w){s.internalSetState({isOpen:!0},w)},s.closeMenu=function(w){s.internalSetState({isOpen:!1},w)},s.updateStatus=Mp(function(){var w;if((w=s.props)!=null&&(w=w.environment)!=null&&w.document){var x=s.getState(),O=s.items[x.highlightedIndex],_=s.getItemCount(),R=s.props.getA11yStatusMessage(wt({itemToString:s.props.itemToString,previousResultCount:s.previousResultCount,resultCount:_,highlightedItem:O},x));s.previousResultCount=_,qw(R,s.props.environment.document)}},200);var l=s.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,f=u===void 0?c:u,g=l.defaultIsOpen,p=l.initialIsOpen,h=p===void 0?g:p,b=l.initialInputValue,S=b===void 0?"":b,v=l.initialSelectedItem,y=v===void 0?null:v,m=s.getState({highlightedIndex:f,isOpen:h,inputValue:S,selectedItem:y});return m.selectedItem!=null&&s.props.initialInputValue===void 0&&(m.inputValue=s.props.itemToString(m.selectedItem)),s.state=m,s}UI(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(i){clearTimeout(i)}),this.timeoutIds=[]},n.getState=function(i){return i===void 0&&(i=this.state),uN(i,this.props)},n.getItemCount=function(){var i=this.items.length;return this.itemCount!=null?i=this.itemCount:this.props.itemCount!==void 0&&(i=this.props.itemCount),i},n.getItemNodeFromIndex=function(i){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(i)):null},n.scrollHighlightedItemIntoView=function(){{var i=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(i,this._menuNode)}},n.moveHighlightedIndex=function(i,s){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var f=Vd(u,i,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(f,s)}},n.getStateAndHelpers=function(){var i=this.getState(),s=i.highlightedIndex,l=i.inputValue,c=i.selectedItem,u=i.isOpen,f=this.props.itemToString,g=this.id,p=this.getRootProps,h=this.getToggleButtonProps,b=this.getLabelProps,S=this.getMenuProps,v=this.getInputProps,y=this.getItemProps,m=this.openMenu,w=this.closeMenu,x=this.toggleMenu,O=this.selectItem,_=this.selectItemAtIndex,R=this.selectHighlightedItem,H=this.setHighlightedIndex,P=this.clearSelection,z=this.clearItems,U=this.reset,$=this.setItemCount,M=this.unsetItemCount,D=this.internalSetState;return{getRootProps:p,getToggleButtonProps:h,getLabelProps:b,getMenuProps:S,getInputProps:v,getItemProps:y,reset:U,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:O,selectItemAtIndex:_,selectHighlightedItem:R,setHighlightedIndex:H,clearSelection:P,clearItems:z,setItemCount:$,unsetItemCount:M,setState:D,itemToString:f,id:g,highlightedIndex:s,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var i=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&h0(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){i.internalClearTimeouts()};else{var s=function(){i.isMouseDown=!0},l=function(p){i.isMouseDown=!1;var h=p0(p.target,[i._rootNode,i._menuNode],i.props.environment);!h&&i.getState().isOpen&&i.reset({type:Zw},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},c=function(){i.isTouchMove=!1},u=function(){i.isTouchMove=!0},f=function(p){var h=p0(p.target,[i._rootNode,i._menuNode],i.props.environment,!1);!i.isTouchMove&&!h&&i.getState().isOpen&&i.reset({type:sx},function(){return i.props.onOuterClick(i.getStateAndHelpers())})},g=this.props.environment;g.addEventListener("mousedown",s),g.addEventListener("mouseup",l),g.addEventListener("touchstart",c),g.addEventListener("touchmove",u),g.addEventListener("touchend",f),this.cleanup=function(){i.internalClearTimeouts(),i.updateStatus.cancel(),g.removeEventListener("mousedown",s),g.removeEventListener("mouseup",l),g.removeEventListener("touchstart",c),g.removeEventListener("touchmove",u),g.removeEventListener("touchend",f)}}},n.shouldScroll=function(i,s){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=s.highlightedIndex===void 0?i:s,f=u.highlightedIndex,g=c&&this.getState().isOpen&&!i.isOpen,p=c!==f;return g||p},n.componentDidUpdate=function(i,s){process.env.NODE_ENV!=="production"&&(Dp(this.state,i,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&h0(this._menuNode,this.getMenuProps)),Wf(this.props,"selectedItem")&&this.props.selectedItemChanged(i.selectedItem,this.props.selectedItem)&&this.internalSetState({type:ox,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(s,i)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var i=d0(this.props.children,zn);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;var s=d0(i(this.getStateAndHelpers()));if(!s)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&wN(s,this.getRootProps),s;if(Bw(s))return N.cloneElement(s,this.getRootProps(Vw(s)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(N.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:aN,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&dN(t)&&!t.hasOwnProperty("toString")&&console.warn("downshift: An object was passed to the default implementation of `itemToString`. You should probably provide your own `itemToString` implementation. Please refer to the `itemToString` API documentation.","The object that was passed:",t),String(t))},onStateChange:zn,onInputValueChange:zn,onUserAction:zn,onChange:zn,onSelect:zn,onOuterClick:zn,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:Ww},e.stateChangeTypes=pN,e})();process.env.NODE_ENV!=="production"&&(yN.propTypes={children:fe.func,defaultHighlightedIndex:fe.number,defaultIsOpen:fe.bool,initialHighlightedIndex:fe.number,initialSelectedItem:fe.any,initialInputValue:fe.string,initialIsOpen:fe.bool,getA11yStatusMessage:fe.func,itemToString:fe.func,onChange:fe.func,onSelect:fe.func,onStateChange:fe.func,onInputValueChange:fe.func,onUserAction:fe.func,onOuterClick:fe.func,selectedItemChanged:fe.func,stateReducer:fe.func,itemCount:fe.number,id:fe.string,environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),suppressRefError:fe.bool,scrollIntoView:fe.func,selectedItem:fe.any,isOpen:fe.bool,inputValue:fe.string,highlightedIndex:fe.number,labelId:fe.string,inputId:fe.string,menuId:fe.string,getItemId:fe.func});function h0(e,t){var r=t.refKey;e||console.error('downshift: The ref prop "'+r+'" from getMenuProps was not applied correctly on your menu element.')}function wN(e,t){var r=t.refKey,n=r!=="ref",i=!Bw(e);i&&!n&&!o0.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!i&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!o0.isForwardRef(e)&&!Vw(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function xN(e,t){return t.changes}Mp(function(e,t){qw(e,t)},200);var ia={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:xN,scrollIntoView:Ww,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function SN(){var e=N.useRef(!0);return N.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var fc={environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),itemToString:fe.func,itemToKey:fe.func,stateReducer:fe.func},ax=wt({},fc,{getA11yStatusMessage:fe.func,highlightedIndex:fe.number,defaultHighlightedIndex:fe.number,initialHighlightedIndex:fe.number,isOpen:fe.bool,defaultIsOpen:fe.bool,initialIsOpen:fe.bool,selectedItem:fe.any,initialSelectedItem:fe.any,defaultSelectedItem:fe.any,id:fe.string,labelId:fe.string,menuId:fe.string,getItemId:fe.func,toggleButtonId:fe.string,onSelectedItemChange:fe.func,onHighlightedIndexChange:fe.func,onStateChange:fe.func,onIsOpenChange:fe.func,scrollIntoView:fe.func}),EN=$o($o({},ax),{items:fe.array.isRequired,isItemDisabled:fe.func});$o($o({},ia),{isItemDisabled:function(){return!1}});process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;var _N=wt({},ax,{items:fe.array.isRequired,isItemDisabled:fe.func,inputValue:fe.string,defaultInputValue:fe.string,initialInputValue:fe.string,inputId:fe.string,onInputValueChange:fe.func});process.env.NODE_ENV;wt({},ia,{isItemDisabled:function(){return!1}});var ON={stateReducer:fc.stateReducer,itemToKey:fc.itemToKey,environment:fc.environment,selectedItems:fe.array,initialSelectedItems:fe.array,defaultSelectedItems:fe.array,getA11yStatusMessage:fe.func,activeIndex:fe.number,initialActiveIndex:fe.number,defaultActiveIndex:fe.number,onActiveIndexChange:fe.func,onSelectedItemsChange:fe.func,keyNavigationNext:fe.string,keyNavigationPrevious:fe.string};ia.itemToKey,ia.stateReducer,ia.environment;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;process.env.NODE_ENV;const kN=N.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...i},s)=>{const{size:l,color:c,isDisabled:u,hasMessage:f,hasGroup:g,downshift:p,isInvalid:h,menuPlacement:b}=Mt(),S=n??u,v=r??p.isOpen;return A.jsx("div",{ref:s,className:le(RI({size:l,color:c,isDisabled:S,isFocused:!!v,isInvalid:h&&!p.isOpen,hasMessage:f,hasGroup:g,menuPlacement:p.isOpen?b:void 0}),e),"aria-disabled":S,"aria-invalid":h,role:"combobox",tabIndex:S?-1:0,...i,children:t})}),AN=({className:e,children:t,isMulti:r})=>A.jsx("div",{className:le(CI({isMulti:r}),e),children:t}),pc=N.forwardRef(({isHidden:e,inputClassName:t,className:r,...n},i)=>{const{size:s,color:l}=Mt();return e?A.jsx("input",{ref:i,type:"text",className:r,style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...n}):A.jsx("input",{ref:i,type:"text","data-qui":"SelectSearchInput",className:le(PI({size:s,color:l}),t,e?"":r),...n})}),TN=({className:e,children:t})=>{const{size:r,color:n}=Mt();return A.jsx("div",{className:le(II({size:r,color:n}),e),children:t})},RN=({className:e,children:t,data:r,isDisabled:n})=>{const{size:i,color:s,getOptionLabel:l}=Mt();return A.jsx("div",{className:le(NI({size:i,color:s,isDisabled:n}),e),children:t||l(r)})},lx=({className:e,children:t,data:r,isDisabled:n,isFocused:i,onRemove:s})=>{const{size:l,color:c,downshift:u,getOptionLabel:f}=Mt(),g=()=>{s?s(r):u.removeItem(r)};return A.jsxs("div",{className:le(MI({size:l,color:c,isDisabled:n,isFocused:i}),e),children:[A.jsx("div",{className:DI({size:l}),children:t||f(r)}),!n&&A.jsx("div",{className:LI({size:l,color:c,isDisabled:!1}),onClick:g,children:A.jsx(Wo,{className:"w-3 h-3"})})]})},cx=({color:e,className:t,children:r,onClick:n,isDisabled:i,...s})=>{const{size:l,color:c,isDisabled:u,downshift:f}=Mt(),g=i??u,p=f.selectedItems.length>0;if(g||!p)return null;const h=b=>{b.stopPropagation(),n?n(b):f.clearSelection()};return A.jsx("div",{className:le(jw({size:l,color:e||c,isDisabled:g}),t),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...s,children:r||A.jsx(M5,{})})},CN=({className:e,children:t,onClick:r,isDisabled:n,...i})=>{const{size:s,color:l,isDisabled:c,downshift:u}=Mt(),f=n??c,g=u.inputValue.length>0&&u.isSearchable;if(f||!g)return null;const p=h=>{f||(h.preventDefault(),h.stopPropagation(),r?r(h):(u.setInputValue(""),u.clearSelection()))};return A.jsx("div",{"data-qui":"SelectIndicator",className:le(jw({size:s,color:l,isDisabled:f}),"cursor-pointer",e),onClick:p,onMouseDown:h=>{h.preventDefault(),h.stopPropagation()},role:"button",tabIndex:-1,"aria-label":"Clear selection",...i,children:t||A.jsx(Wo,{})})},ux=N.forwardRef(({color:e,className:t,children:r,onClick:n,isDisabled:i,...s},l)=>{const{size:c,color:u,isDisabled:f,downshift:g}=Mt(),p=i??f,h=g.isOpen,b=v=>{p||(v.preventDefault(),v.stopPropagation(),n?n(v):g.toggleMenu())},S=v=>{v.preventDefault(),v.stopPropagation()};return A.jsx("div",{ref:l,"data-qui":"SelectIndicator",className:le(zI({size:c,color:e||u,isDisabled:p}),"cursor-pointer",t),onClick:S,onMouseDown:b,role:"button",tabIndex:-1,"aria-label":h?"Close menu":"Open menu","aria-expanded":h,"aria-disabled":p,...s,children:r||A.jsx(ac,{className:le("transition-transform duration-200",{"rotate-180":h})})})}),PN=N.forwardRef(({className:e,children:t,placement:r,...n},i)=>{const{size:s,hasMessage:l,color:c,hasGroup:u}=Mt();return A.jsx("div",{"data-qui":"SelectMenu",ref:i,className:le($I({size:s,placement:r,hasMessage:l,color:c,hasGroup:u}),e),...n,children:t})}),IN=N.forwardRef(({className:e,children:t,maxHeight:r=300,totalHeight:n,...i},s)=>{const{size:l}=Mt();return A.jsx(Tp,{scrollableNodeProps:{ref:s},className:le(jI({size:l}),e),style:{maxHeight:r},...i,children:n!==void 0?A.jsx("div",{style:{height:n,position:"relative",width:"100%"},children:t}):t})}),hc=({className:e,children:t,data:r,isDisabled:n,isFocused:i,isSelected:s,innerProps:l,optionClassName:c,...u})=>{const{size:f,color:g,getOptionLabel:p}=Mt();return A.jsx("div",{"data-qui":"SelectOption",className:le(FI({size:f,color:g,isDisabled:n,isFocused:i,isSelected:s}),c,e),...l,...u,children:t??p(r)})},dx=({className:e,children:t,data:r,label:n,renderGroupHeading:i})=>{const{size:s}=Mt();return A.jsxs("div",{"data-qui":"SelectOptionGroup",className:le(HI({size:s}),e),children:[A.jsx(NN,{children:i?i(r):n||r.label}),t]})},NN=({className:e,children:t})=>{const{size:r,color:n}=Mt();return A.jsx("div",{className:le(WI({size:r,color:n}),e),children:t})},Ud=({className:e,children:t,inputValue:r})=>{const{size:n}=Mt();return A.jsx("div",{className:le(VI({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},MN=N.forwardRef(({className:e,children:t,...r},n)=>{const{size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,setHasGroup:f,menuVisible:g,menuPlacement:p}=Mt();return N.useEffect(()=>(f(!0),()=>{f(!1)}),[f]),A.jsx("div",{ref:n,"data-qui":"SelectGroup",className:le(AI({size:i,color:s,isDisabled:l,hasMessage:c,isInvalid:u,isFocused:g,menuPlacement:g?p:void 0}),e),...r,children:t})}),DN=N.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:i,...s},l)=>{const{size:c,color:u,isDisabled:f}=Mt(),g=r||f,p=TI({size:c,color:u,isDisabled:g,isAction:e});return A.jsx("div",{ref:l,"data-qui":"SelectIcon",className:le(p,t),style:n,role:e||s.onClick?"button":void 0,tabIndex:(e||s.onClick)&&!g?0:void 0,"aria-disabled":g,...s,children:i})}),LN=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[i,s]=N.useState(null);return N.useLayoutEffect(()=>{if(t&&e&&r.current){const l=()=>{var c;const u=(c=r.current)==null?void 0:c.getBoundingClientRect();u&&s({top:u.top+window.scrollY,left:u.left+window.scrollX,width:u.width,height:u.height})};return l(),window.addEventListener("resize",l),window.addEventListener("scroll",l,!0),()=>{window.removeEventListener("resize",l),window.removeEventListener("scroll",l,!0)}}},[e,t,r]),e?t&&i?En.createPortal(A.jsx("div",{"data-qui":"SelectPortal",className:"absolute z-50",style:{top:i.top,left:i.left,width:i.width,height:i.height,pointerEvents:"none"},children:A.jsx("div",{className:"relative w-full h-full",children:A.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):A.jsx(A.Fragment,{children:n}):null},Es=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},zN=N.forwardRef(({placeholder:e,noOptionsMessage:t,hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:i=!1,isSearchClearable:s=!1,isLoading:l=!1,isRequired:c=!1,hideIndicators:u=!1,hideDropdownIndicator:f=!1,searchPlacement:g="trigger",hideSelectedOptions:p=!1,onFocus:h,onBlur:b,renderMenuHeader:S,formatOptionLabel:v,renderOption:y,optionClassName:m,renderValue:w,renderGroupHeading:x,inputRef:O,controlShouldRenderValue:_=!0,name:R,id:H,onSelectionComplete:P,"aria-label":z,"aria-labelledby":U,"aria-describedby":$,children:M,usePortal:D=!1,virtualizeThreshold:F=100,className:I,inputClassName:K,...te},Y)=>{const{size:ve,isInvalid:j,isDisabled:W,hasGroup:ee,downshift:Q,options:X=[],getOptionLabel:ue,getOptionValue:ie,isOptionDisabled:ne,menuPlacement:de,setMenuPlacement:pe,menuVisible:he,setMenuVisible:xe,inputClassName:Z}=Mt(),Oe=K||Z,ge=N.useMemo(()=>{if(y)return y;if(v)return({data:He})=>v(He)},[y,v]),at=N.useRef(null),Kt=O||at,Or=N.useRef(null),ur=N.useRef(null),bi=N.useRef(null),{isOpen:xt,openMenu:kr,selectedItem:Lt,inputValue:Ct,highlightedIndex:Ut,getToggleButtonProps:yi,getMenuProps:en,getInputProps:wi,getItemProps:Ar,isMulti:Wr,isSearchable:dr,multipleSelection:Ko}=Q,{getDropdownProps:Yo}=Ko;N.useLayoutEffect(()=>{if(!xt||!Or.current)return;const He=Or.current.getBoundingClientRect(),St=window.innerHeight-He.bottom;pe(St<300?"top":"bottom")},[xt,pe]),N.useLayoutEffect(()=>{const He=xt&&!(r&&Q.filteredItems.length===0);return xe(He),()=>xe(!1)},[xt,r,Q.filteredItems.length,xe]);const tr=Wr?Q.selectedItems??[]:Lt?[Lt]:[],xi=tr.length>0,Xo=s&&!!Ct&&!W&&!u,Ki=i&&(xi||!!Ct)&&!W&&!u,Yi=!f&&!u,Jo=!xi&&(!dr||!Ct)||!_,Ia={},Na={};Object.entries(te).forEach(([He,St])=>{He.startsWith("data-")||He.startsWith("aria-")||He==="role"?Ia[He]=St:Na[He]=St});const Ma=N.useMemo(()=>Es([Or,Y]),[Y]),Qo=en({},{suppressRefError:!0}),qn=Yo({preventKeyAction:xt}),es={ref:Kt,disabled:W,required:c,name:R,id:H,"aria-label":z,"aria-labelledby":U,"aria-describedby":$,"aria-invalid":j,onFocus:h,onBlur:b,...Na},pu=dr?(wi==null?void 0:wi({...es,...qn}))??es:{...es,...qn},{ref:Da,...ts}=pu,Xi=N.useMemo(()=>Es([Da]),[Da]),hu=He=>tr.some(St=>ie(St)===ie(He)),La=He=>p?He.filter(St=>!hu(St)):He,gu=He=>p?He.map(St=>({...St,options:La(St.options)})).filter(St=>St.options.length>0):He,tn=Vm(X)?[]:La(Q.filteredItems),vu={sm:22,md:28,lg:36}[ve]??28,On=tn.length>=F,Ji=OI({count:On?tn.length:0,getScrollElement:()=>bi.current,estimateSize:()=>vu,overscan:5});N.useEffect(()=>{On&&xt&&Ut>=0&&Ut<tn.length&&Ji.scrollToIndex(Ut,{align:"auto"})},[Ut,On,xt]);const{registerOnSelectionComplete:za}=Mt();N.useEffect(()=>{if(P)return za(P)},[P,za]);const mu=dr?{}:yi({disabled:W,...qn,ref:Es([Ma,qn.ref])});return A.jsxs("div",{className:le({relative:!ee,"flex-1 min-w-0":ee}),children:[A.jsxs(kN,{"data-qui":"SelectControl",className:I,...dr?{ref:Es([Ma,qn.ref])}:mu,...Ia,isFocused:he,isDisabled:W,onClick:He=>{He.defaultPrevented||(dr?kr():Q.toggleMenu())},children:[M||A.jsxs(AN,{isMulti:Wr,children:[Wr&&_&&tr.map((He,St)=>A.jsx(lx,{data:He,index:St,isDisabled:W,children:w?w(He):void 0},ie(He))),!Wr&&xi&&_&&!dr&&A.jsx("div",{className:"flex items-center gap-2",children:A.jsx(RN,{data:tr[0],isDisabled:W,children:w?w(tr[0]):ue(tr[0])})}),dr&&g==="trigger"?A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Oe,placeholder:e}):A.jsxs(A.Fragment,{children:[A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Oe,isHidden:!0,readOnly:!0,value:tr.map(He=>ie(He)).join(",")}),Jo&&A.jsx(TN,{children:e})]})]}),A.jsxs("div",{className:le("flex items-center size-fit gap-1",{hidden:!Ki&&!Yi}),children:[Xo&&A.jsx(CN,{}),Ki&&A.jsx(cx,{}),Yi&&A.jsx(ux,{...dr?yi({disabled:W,"aria-label":xt?"Close menu":"Open menu"}):{}})]})]}),!xt&&A.jsx("div",{ref:Qo.ref,style:{display:"none"},"aria-hidden":"true"}),A.jsx(LN,{isOpen:xt,usePortal:D,controlRef:Or,children:(()=>{const{ref:He,...St}=Qo,$a=Es([ur,He]);return r&&Q.filteredItems.length===0?A.jsx("div",{...St,style:{display:"none"},"aria-hidden":"true"}):A.jsxs(PN,{ref:$a,...St,placement:de,children:[S&&S(Q),dr&&g==="menu"&&A.jsx("div",{className:"p-2",children:A.jsx(pc,{ref:Xi,...ts,className:I,inputClassName:Oe,autoFocus:!0,placeholder:e,onClick:Pt=>Pt.stopPropagation()})}),A.jsx(IN,{ref:bi,totalHeight:On?Ji.getTotalSize():void 0,children:l?A.jsx("div",{className:BI({size:ve}),children:n}):Q.filteredItems.length===0?A.jsx(Ud,{inputValue:Ct,children:typeof t=="function"?t(Ct):t}):Vm(X)?(()=>{const Pt=gu(X);return Pt.length===0?A.jsx(Ud,{inputValue:Ct,children:typeof t=="function"?t(Ct):t}):Pt.map((zt,kn)=>A.jsx(dx,{data:zt,label:zt.label,options:zt.options,renderGroupHeading:x,children:zt.options.map(Yt=>{const rn=ie(Yt),nn=tr.some(bu=>ie(bu)===rn),on=Q.filteredItems.indexOf(Yt),Gn=Ut===on,Qi=ne(Yt),eo=Ar({item:Yt,index:on});return A.jsx(hc,{...eo,data:Yt,isDisabled:Qi,isFocused:Gn,isSelected:nn,optionClassName:m,children:ge?ge({data:Yt,isFocused:Gn,isSelected:nn,isDisabled:Qi}):void 0},`${rn}-${on}`)})},`${zt.label}-${kn}`))})():tn.length===0?A.jsx(Ud,{inputValue:Ct,children:typeof t=="function"?t(Ct):t}):On?Ji.getVirtualItems().map(Pt=>{const zt=tn[Pt.index],kn=ie(zt),Yt=tr.some(Qi=>ie(Qi)===kn),rn=Q.filteredItems.indexOf(zt),nn=Ut===rn,on=ne(zt),Gn=Ar({item:zt,index:rn});return A.jsx("div",{"data-index":Pt.index,ref:Ji.measureElement,style:{position:"absolute",top:0,left:0,width:"100%",transform:`translateY(${Pt.start}px)`},children:A.jsx(hc,{...Gn,data:zt,isDisabled:on,isFocused:nn,isSelected:Yt,optionClassName:m,children:ge?ge({data:zt,isFocused:nn,isSelected:Yt,isDisabled:on}):void 0})},Pt.key)}):tn.map(Pt=>{const zt=ie(Pt),kn=tr.some(Gn=>ie(Gn)===zt),Yt=Q.filteredItems.indexOf(Pt),rn=Ut===Yt,nn=ne(Pt),on=Ar({item:Pt,index:Yt});return A.jsx(hc,{...on,data:Pt,isDisabled:nn,isFocused:rn,isSelected:kn,optionClassName:m,children:ge?ge({data:Pt,isFocused:rn,isSelected:kn,isDisabled:nn}):void 0},`${zt}-${Yt}`)})})]})})()})]})});MN.displayName="Select.Group";DN.displayName="Select.Icon";pc.displayName="Select.Input";lx.displayName="Select.MultiValue";cx.displayName="Select.ClearIndicator";ux.displayName="Select.DropdownIndicator";hc.displayName="Select.Option";dx.displayName="Select.OptionGroup";const $N=zN;$N.displayName="Select.Field";N.createContext(void 0);const jN=({active:e,disabled:t,error:r,isOpen:n,className:i})=>le("flex w-full items-center justify-between text-left leading-5 transition-colors duration-200",{"cursor-pointer":!t,"text-inactive-text":t,"bg-primary hover:bg-primary-hover":e&&!t,"text-negative":r&&!e&&!t,"bg-primary-hover text-body":n&&!e&&!t,"text-body":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},i),FN=N.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:i,children:s,as:l="div",...c},u)=>{const f=jN({active:e,disabled:t,error:r,isOpen:n,className:i});return A.jsx(l,{"data-qui":"ListItem",ref:u,className:f,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:c.onClick?"button":"listitem",...c,children:s})});FN.displayName="ListItem";var qd={exports:{}};/*!
54
54
  Copyright (c) 2018 Jed Watson.
55
55
  Licensed under the MIT License (MIT), see
56
56
  http://jedwatson.github.io/classnames
57
- */var d0;function lx(){return d0||(d0=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Bd)),Bd.exports}var HN=lx();const st=Uy(HN);function zi(){return zi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},zi.apply(this,arguments)}const BN=["children","options"],f0=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),p0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},WN=["style","script","pre"],VN=["src","href","data","formAction","srcDoc","action"],UN=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qN=/\n{2,}$/,h0=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GN=/^ *> ?/gm,ZN=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,KN=/^ {2,}\n/,YN=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,g0=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,v0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,XN=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,JN=/^(?:\n *)*\n/,QN=/\r\n?/g,eM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,tM=/^\[\^([^\]]+)]/,rM=/\f/g,nM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iM=/^\s*?\[(x|\s)\]/,m0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,b0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,y0=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Wd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,oM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,w0=/^<!--[\s\S]*?(?:-->)/,sM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Vd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aM=/^\{.*\}$/,lM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cM=/^<([^ >]+[:@\/][^ >]+)>/,uM=/-([a-z])?/gi,x0=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dM=/^[^\n]+(?: \n|\n{2,})/,fM=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,pM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,gM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vM=/\t/g,mM=/(^ *\||\| *$)/g,bM=/^ *:-+: *$/,yM=/^ *:-+ *$/,wM=/^ *-+: *$/,Zc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Kc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",xM=RegExp(`^([*_])\\1${Zc(1)}${Kc}\\1\\1(?!\\1)`),SM=RegExp(`^([*_])${Zc(0)}${Kc}\\1(?!\\1)`),EM=RegExp(`^(==)${Zc(0)}${Kc}\\1`),_M=RegExp(`^(~~)${Zc(0)}${Kc}\\1`),OM=/^(:[a-zA-Z0-9-_]+:)/,kM=/^\\([^0-9A-Za-z\s])/,AM=/\\([^0-9A-Za-z\s])/g,TM=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RM=/^\n+/,CM=/^([ \t]*)/,IM=/(?:^|\n)( *)$/,Pp="(?:\\d+\\.)",Np="(?:[*+-])";function cx(e){return"( *)("+(e===1?Pp:Np)+") +"}const ux=cx(1),dx=cx(2);function fx(e){return RegExp("^"+(e===1?ux:dx))}const PM=fx(1),NM=fx(2);function px(e){return RegExp("^"+(e===1?ux:dx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Pp:Np)+" )[^\\n]*)*(\\n|$)","gm")}const MM=px(1),DM=px(2);function hx(e){const t=e===1?Pp:Np;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const gx=hx(1),vx=hx(2);function S0(e,t){const r=t===1,n=r?gx:vx,i=r?MM:DM,s=r?PM:NM;return{t:l=>s.test(l),o:jo(function(l,c){const u=IM.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?n.exec(l=u[1]+l):null}),i:1,u(l,c,u){const f=r?+l[2]:void 0,g=l[0].replace(qN,`
57
+ */var g0;function fx(){return g0||(g0=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var s="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(s=i(s,n(c)))}return s}function n(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return r.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var l="";for(var c in s)t.call(s,c)&&s[c]&&(l=i(l,c));return l}function i(s,l){return l?s?s+" "+l:s+l:s}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(qd)),qd.exports}var HN=fx();const st=Ky(HN);function Li(){return Li=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Li.apply(this,arguments)}const WN=["children","options"],v0=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((e,t)=>(e[t.toLowerCase()]=t,e),{class:"className",for:"htmlFor"}),m0={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},BN=["style","script","pre"],VN=["src","href","data","formAction","srcDoc","action"],UN=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qN=/\n{2,}$/,b0=/^(\s*>[\s\S]*?)(?=\n\n|$)/,GN=/^ *> ?/gm,ZN=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,KN=/^ {2,}\n/,YN=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,y0=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,w0=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,XN=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,JN=/^(?:\n *)*\n/,QN=/\r\n?/g,eM=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,tM=/^\[\^([^\]]+)]/,rM=/\f/g,nM=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,iM=/^\s*?\[(x|\s)\]/,x0=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,S0=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,E0=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Gd=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,oM=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,_0=/^<!--[\s\S]*?(?:-->)/,sM=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Zd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aM=/^\{.*\}$/,lM=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,cM=/^<([^ >]+[:@\/][^ >]+)>/,uM=/-([a-z])?/gi,O0=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,dM=/^[^\n]+(?: \n|\n{2,})/,fM=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,pM=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,hM=/^\[([^\]]*)\] ?\[([^\]]*)\]/,gM=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,vM=/\t/g,mM=/(^ *\||\| *$)/g,bM=/^ *:-+: *$/,yM=/^ *:-+ *$/,wM=/^ *-+: *$/,Kc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Yc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",xM=RegExp(`^([*_])\\1${Kc(1)}${Yc}\\1\\1(?!\\1)`),SM=RegExp(`^([*_])${Kc(0)}${Yc}\\1(?!\\1)`),EM=RegExp(`^(==)${Kc(0)}${Yc}\\1`),_M=RegExp(`^(~~)${Kc(0)}${Yc}\\1`),OM=/^(:[a-zA-Z0-9-_]+:)/,kM=/^\\([^0-9A-Za-z\s])/,AM=/\\([^0-9A-Za-z\s])/g,TM=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,RM=/^\n+/,CM=/^([ \t]*)/,PM=/(?:^|\n)( *)$/,Lp="(?:\\d+\\.)",zp="(?:[*+-])";function px(e){return"( *)("+(e===1?Lp:zp)+") +"}const hx=px(1),gx=px(2);function vx(e){return RegExp("^"+(e===1?hx:gx))}const IM=vx(1),NM=vx(2);function mx(e){return RegExp("^"+(e===1?hx:gx)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Lp:zp)+" )[^\\n]*)*(\\n|$)","gm")}const MM=mx(1),DM=mx(2);function bx(e){const t=e===1?Lp:zp;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const yx=bx(1),wx=bx(2);function k0(e,t){const r=t===1,n=r?yx:wx,i=r?MM:DM,s=r?IM:NM;return{t:l=>s.test(l),o:jo(function(l,c){const u=PM.exec(c.prevCapture);return u&&(c.list||!c.inline&&!c.simple)?n.exec(l=u[1]+l):null}),i:1,u(l,c,u){const f=r?+l[2]:void 0,g=l[0].replace(qN,`
58
58
  `).match(i);let p=!1;return{items:g.map(function(h,b){const S=s.exec(h)[0].length,v=RegExp("^ {1,"+S+"}","gm"),y=h.replace(v,"").replace(s,""),m=b===g.length-1,w=y.indexOf(`
59
59
 
60
60
  `)!==-1||m&&p;p=w;const x=u.inline,O=u.list;let _;u.list=!0,w?(u.inline=!1,_=oa(y)+`
61
61
 
62
- `):(u.inline=!0,_=oa(y));const R=c(_,u);return u.inline=x,u.list=O,R}),ordered:r,start:f}},l:(l,c,u)=>e(l.ordered?"ol":"ul",{key:u.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,g){return e("li",{key:g},c(f,u))}))}}const LM=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),zM=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function E0(e){return typeof e=="string"}function oa(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function hc(e,t){return e.startsWith(t)}function $M(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(hc(e,r[n]))return!0;return!1}return r(e,t)}function _s(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jM(e){return wM.test(e)?"right":bM.test(e)?"center":yM.test(e)?"left":null}function _0(e,t,r,n){const i=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const u=s[s.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,f,g)=>{u.trim()==="|"&&(c(),n)?f!==0&&f!==g.length-1&&s.push([]):l+=u}),c(),r.inTable=i,s}function FM(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(mM,"").split("|").map(jM):[],i=e[3]?(function(l,c,u){return l.trim().split(`
63
- `).map(function(f){return _0(f,c,u,!0)})})(e[3],t,r):[],s=_0(e[1],t,r,!!i.length);return r.inline=!1,i.length?{align:n,cells:i,header:s,type:"25"}:{children:s,type:"21"}}function O0(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function jo(e){return e.inline=1,e}function Ni(e){return jo(function(t,r){return r.inline?e.exec(t):null})}function ai(e){return jo(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Mn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function jl(e){return jo(function(t){return e.exec(t)})}const HM=/(javascript|vbscript|data(?!:image)):/i;function BM(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(HM.test(t))return null}catch{return null}return e}function un(e){return e&&e.replace(AM,"$1")}function gc(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function WM(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function VM(e,t,r){const n=r.inline||!1;r.inline=!1;const i=e(t,r);return r.inline=n,i}const Ud=(e,t,r)=>({children:gc(t,e[2],r)});function qd(){return{}}function Gd(){return null}function UM(...e){return e.filter(Boolean).join(" ")}function Zd(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}function qM(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?zi({},p0,t.namedCodesToUnicode):p0;const r=t.slugify||_s,n=t.sanitizer||BM,i=t.createElement||V.createElement,s=[h0,g0,v0,t.enforceAtxHeadings?b0:m0,y0,x0,gx,vx],l=[...s,dM,Wd,w0,Vd];function c(m,w){for(let x=0;x<m.length;x++)if(m[x].test(w))return!0;return!1}function u(m,w,...x){const O=Zd(t.overrides,m+".props",{});return i((function(_,R){const H=Zd(R,_);return H?typeof H=="function"||typeof H=="object"&&"render"in H?H:Zd(R,_+".component",_):_})(m,t.overrides),zi({},w,O,{className:UM(w==null?void 0:w.className,O.className)||void 0}),...x)}function f(m){m=m.replace(nM,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=gM.test(m)===!1);const x=v(S(w?m:oa(m).replace(RM,"")+`
62
+ `):(u.inline=!0,_=oa(y));const R=c(_,u);return u.inline=x,u.list=O,R}),ordered:r,start:f}},l:(l,c,u)=>e(l.ordered?"ol":"ul",{key:u.key,start:l.type==="20"?l.start:void 0},l.items.map(function(f,g){return e("li",{key:g},c(f,u))}))}}const LM=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),zM=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function A0(e){return typeof e=="string"}function oa(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function gc(e,t){return e.startsWith(t)}function $M(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(gc(e,r[n]))return!0;return!1}return r(e,t)}function _s(e){return e.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function jM(e){return wM.test(e)?"right":bM.test(e)?"center":yM.test(e)?"left":null}function T0(e,t,r,n){const i=r.inTable;r.inTable=!0;let s=[[]],l="";function c(){if(!l)return;const u=s[s.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,f,g)=>{u.trim()==="|"&&(c(),n)?f!==0&&f!==g.length-1&&s.push([]):l+=u}),c(),r.inTable=i,s}function FM(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(mM,"").split("|").map(jM):[],i=e[3]?(function(l,c,u){return l.trim().split(`
63
+ `).map(function(f){return T0(f,c,u,!0)})})(e[3],t,r):[],s=T0(e[1],t,r,!!i.length);return r.inline=!1,i.length?{align:n,cells:i,header:s,type:"25"}:{children:s,type:"21"}}function R0(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function jo(e){return e.inline=1,e}function Ii(e){return jo(function(t,r){return r.inline?e.exec(t):null})}function ai(e){return jo(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Ln(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Fl(e){return jo(function(t){return e.exec(t)})}const HM=/(javascript|vbscript|data(?!:image)):/i;function WM(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(HM.test(t))return null}catch{return null}return e}function un(e){return e&&e.replace(AM,"$1")}function vc(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!0,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function BM(e,t,r){const n=r.inline||!1,i=r.simple||!1;r.inline=!1,r.simple=!0;const s=e(t,r);return r.inline=n,r.simple=i,s}function VM(e,t,r){const n=r.inline||!1;r.inline=!1;const i=e(t,r);return r.inline=n,i}const Kd=(e,t,r)=>({children:vc(t,e[2],r)});function Yd(){return{}}function Xd(){return null}function UM(...e){return e.filter(Boolean).join(" ")}function Jd(e,t,r){let n=e;const i=t.split(".");for(;i.length&&(n=n[i[0]],n!==void 0);)i.shift();return n||r}function qM(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Li({},m0,t.namedCodesToUnicode):m0;const r=t.slugify||_s,n=t.sanitizer||WM,i=t.createElement||V.createElement,s=[b0,y0,w0,t.enforceAtxHeadings?S0:x0,E0,O0,yx,wx],l=[...s,dM,Gd,_0,Zd];function c(m,w){for(let x=0;x<m.length;x++)if(m[x].test(w))return!0;return!1}function u(m,w,...x){const O=Jd(t.overrides,m+".props",{});return i((function(_,R){const H=Jd(R,_);return H?typeof H=="function"||typeof H=="object"&&"render"in H?H:Jd(R,_+".component",_):_})(m,t.overrides),Li({},w,O,{className:UM(w==null?void 0:w.className,O.className)||void 0}),...x)}function f(m){m=m.replace(nM,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=gM.test(m)===!1);const x=v(S(w?m:oa(m).replace(RM,"")+`
64
64
 
65
- `,{inline:w}));for(;E0(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const O=t.wrapper||(w?"span":"div");let _;if(x.length>1||t.forceWrapper)_=x;else{if(x.length===1)return _=x[0],typeof _=="string"?u("span",{key:"outer"},_):_;_=null}return i(O,{key:"outer"},_)}function g(m,w){if(!w||!w.trim())return null;const x=w.match(UN);return x?x.reduce(function(O,_){const R=_.indexOf("=");if(R!==-1){const H=(function(j){return j.indexOf("-")!==-1&&j.match(sM)===null&&(j=j.replace(uM,function(M,D){return D.toUpperCase()})),j})(_.slice(0,R)).trim(),I=(function(j){const M=j[0];return(M==='"'||M==="'")&&j.length>=2&&j[j.length-1]===M?j.slice(1,-1):j})(_.slice(R+1).trim()),$=f0[H]||H;if($==="ref")return O;const U=O[$]=(function(j,M,D,F){return M==="style"?(function(P){const K=[];let ee="",Y=!1,ve=!1,z="";if(!P)return K;for(let X=0;X<P.length;X++){const te=P[X];if(te!=='"'&&te!=="'"||Y||(ve?te===z&&(ve=!1,z=""):(ve=!0,z=te)),te==="("&&ee.endsWith("url")?Y=!0:te===")"&&Y&&(Y=!1),te!==";"||ve||Y)ee+=te;else{const J=ee.trim();if(J){const oe=J.indexOf(":");if(oe>0){const ae=J.slice(0,oe).trim(),ne=J.slice(oe+1).trim();K.push([ae,ne])}}ee=""}}const W=ee.trim();if(W){const X=W.indexOf(":");if(X>0){const te=W.slice(0,X).trim(),J=W.slice(X+1).trim();K.push([te,J])}}return K})(D).reduce(function(P,[K,ee]){return P[K.replace(/(-[a-z])/g,Y=>Y[1].toUpperCase())]=F(ee,j,K),P},{}):VN.indexOf(M)!==-1?F(un(D),j,M):(D.match(aM)&&(D=un(D.slice(1,D.length-1))),D==="true"||D!=="false"&&D)})(m,H,I,n);typeof U=="string"&&(Wd.test(U)||Vd.test(U))&&(O[$]=f(U.trim()))}else _!=="style"&&(O[f0[_]||_]=!0);return O},{}):null}const p=[],h={},b={0:{t:[">"],o:Mn(h0),i:1,u(m,w,x){const[,O,_]=m[0].replace(GN,"").match(ZN);return{alert:O,children:w(_,x)}},l(m,w,x){const O={key:x.key};return m.alert&&(O.className="markdown-alert-"+r(m.alert.toLowerCase(),_s),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",O,w(m.children,x))}},1:{t:[" "],o:jl(KN),i:1,u:qd,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:Mn(YN),i:1,u:qd,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:Mn(v0),i:0,u:m=>({lang:void 0,text:un(oa(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",zi({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:Mn(g0),i:0,u:m=>({attrs:g("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:ai(XN),i:3,u:m=>({text:un(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:Mn(eM),i:0,u:m=>(p.push({footnote:m[2],identifier:m[1]}),{}),l:Gd},7:{t:["[^"],o:Ni(tM),i:1,u:m=>({target:"#"+r(m[1],_s),text:m[1]}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href")},u("sup",{key:x.key},m.text))},8:{t:["[ ]","[x]"],o:Ni(iM),i:1,u:m=>({completed:m[1].toLowerCase()==="x"}),l:(m,w,x)=>u("input",{checked:m.completed,key:x.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Mn(t.enforceAtxHeadings?b0:m0),i:1,u:(m,w,x)=>({children:gc(w,m[2],x),id:r(m[2],_s),level:m[1].length}),l:(m,w,x)=>u("h"+m.level,{id:m.id,key:x.key},w(m.children,x))},10:{t:m=>{const w=m.indexOf(`
66
- `);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:Mn(y0),i:0,u:(m,w,x)=>({children:gc(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:jl(Wd),i:1,u(m,w,x){const[,O]=m[3].match(CM),_=RegExp("^"+O,"gm"),R=m[3].replace(_,""),H=c(l,R)?VM:gc,I=m[1].toLowerCase(),$=WN.indexOf(I)!==-1,U=($?I:m[1]).trim(),j={attrs:g(U,m[2]),noInnerParse:$,tag:U};if(x.inAnchor=x.inAnchor||I==="a",$)j.text=m[3];else{const M=x.inHTML;x.inHTML=!0,j.children=H(w,R,x),x.inHTML=M}return x.inAnchor=!1,j},l:(m,w,x)=>u(m.tag,zi({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:jl(Vd),i:1,u(m){const w=m[1].trim();return{attrs:g(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,zi({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:jl(w0),i:1,u:()=>({}),l:Gd},14:{t:["!["],o:ai(zM),i:1,u:m=>({alt:un(m[1]),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("img",{key:x.key,alt:m.alt||void 0,title:m.title||void 0,src:n(m.target,"img","src")})},15:{t:["["],o:Ni(LM),i:3,u:(m,w,x)=>({children:WM(w,m[1],x),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href"),title:m.title},w(m.children,x))},16:{t:["<"],o:Ni(cM),i:0,u(m){let w=m[1],x=!1;return w.indexOf("@")!==-1&&w.indexOf("//")===-1&&(x=!0,w=w.replace("mailto:","")),{children:[{text:w,type:"27"}],target:x?"mailto:"+w:w,type:"15"}}},17:{t:(m,w)=>!w.inAnchor&&!t.disableAutoLink&&(hc(m,"http://")||hc(m,"https://")),o:Ni(lM),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:S0(u,1),33:S0(u,2),19:{t:[`
67
- `],o:Mn(JN),i:3,u:qd,l:()=>`
65
+ `,{inline:w}));for(;A0(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const O=t.wrapper||(w?"span":"div");let _;if(x.length>1||t.forceWrapper)_=x;else{if(x.length===1)return _=x[0],typeof _=="string"?u("span",{key:"outer"},_):_;_=null}return i(O,{key:"outer"},_)}function g(m,w){if(!w||!w.trim())return null;const x=w.match(UN);return x?x.reduce(function(O,_){const R=_.indexOf("=");if(R!==-1){const H=(function($){return $.indexOf("-")!==-1&&$.match(sM)===null&&($=$.replace(uM,function(M,D){return D.toUpperCase()})),$})(_.slice(0,R)).trim(),P=(function($){const M=$[0];return(M==='"'||M==="'")&&$.length>=2&&$[$.length-1]===M?$.slice(1,-1):$})(_.slice(R+1).trim()),z=v0[H]||H;if(z==="ref")return O;const U=O[z]=(function($,M,D,F){return M==="style"?(function(I){const K=[];let te="",Y=!1,ve=!1,j="";if(!I)return K;for(let ee=0;ee<I.length;ee++){const Q=I[ee];if(Q!=='"'&&Q!=="'"||Y||(ve?Q===j&&(ve=!1,j=""):(ve=!0,j=Q)),Q==="("&&te.endsWith("url")?Y=!0:Q===")"&&Y&&(Y=!1),Q!==";"||ve||Y)te+=Q;else{const X=te.trim();if(X){const ue=X.indexOf(":");if(ue>0){const ie=X.slice(0,ue).trim(),ne=X.slice(ue+1).trim();K.push([ie,ne])}}te=""}}const W=te.trim();if(W){const ee=W.indexOf(":");if(ee>0){const Q=W.slice(0,ee).trim(),X=W.slice(ee+1).trim();K.push([Q,X])}}return K})(D).reduce(function(I,[K,te]){return I[K.replace(/(-[a-z])/g,Y=>Y[1].toUpperCase())]=F(te,$,K),I},{}):VN.indexOf(M)!==-1?F(un(D),$,M):(D.match(aM)&&(D=un(D.slice(1,D.length-1))),D==="true"||D!=="false"&&D)})(m,H,P,n);typeof U=="string"&&(Gd.test(U)||Zd.test(U))&&(O[z]=f(U.trim()))}else _!=="style"&&(O[v0[_]||_]=!0);return O},{}):null}const p=[],h={},b={0:{t:[">"],o:Ln(b0),i:1,u(m,w,x){const[,O,_]=m[0].replace(GN,"").match(ZN);return{alert:O,children:w(_,x)}},l(m,w,x){const O={key:x.key};return m.alert&&(O.className="markdown-alert-"+r(m.alert.toLowerCase(),_s),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",O,w(m.children,x))}},1:{t:[" "],o:Fl(KN),i:1,u:Yd,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:Ln(YN),i:1,u:Yd,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:Ln(w0),i:0,u:m=>({lang:void 0,text:un(oa(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",Li({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:Ln(y0),i:0,u:m=>({attrs:g("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:ai(XN),i:3,u:m=>({text:un(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:Ln(eM),i:0,u:m=>(p.push({footnote:m[2],identifier:m[1]}),{}),l:Xd},7:{t:["[^"],o:Ii(tM),i:1,u:m=>({target:"#"+r(m[1],_s),text:m[1]}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href")},u("sup",{key:x.key},m.text))},8:{t:["[ ]","[x]"],o:Ii(iM),i:1,u:m=>({completed:m[1].toLowerCase()==="x"}),l:(m,w,x)=>u("input",{checked:m.completed,key:x.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ln(t.enforceAtxHeadings?S0:x0),i:1,u:(m,w,x)=>({children:vc(w,m[2],x),id:r(m[2],_s),level:m[1].length}),l:(m,w,x)=>u("h"+m.level,{id:m.id,key:x.key},w(m.children,x))},10:{t:m=>{const w=m.indexOf(`
66
+ `);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:Ln(E0),i:0,u:(m,w,x)=>({children:vc(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Fl(Gd),i:1,u(m,w,x){const[,O]=m[3].match(CM),_=RegExp("^"+O,"gm"),R=m[3].replace(_,""),H=c(l,R)?VM:vc,P=m[1].toLowerCase(),z=BN.indexOf(P)!==-1,U=(z?P:m[1]).trim(),$={attrs:g(U,m[2]),noInnerParse:z,tag:U};if(x.inAnchor=x.inAnchor||P==="a",z)$.text=m[3];else{const M=x.inHTML;x.inHTML=!0,$.children=H(w,R,x),x.inHTML=M}return x.inAnchor=!1,$},l:(m,w,x)=>u(m.tag,Li({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:Fl(Zd),i:1,u(m){const w=m[1].trim();return{attrs:g(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,Li({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:Fl(_0),i:1,u:()=>({}),l:Xd},14:{t:["!["],o:ai(zM),i:1,u:m=>({alt:un(m[1]),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("img",{key:x.key,alt:m.alt||void 0,title:m.title||void 0,src:n(m.target,"img","src")})},15:{t:["["],o:Ii(LM),i:3,u:(m,w,x)=>({children:BM(w,m[1],x),target:un(m[2]),title:un(m[3])}),l:(m,w,x)=>u("a",{key:x.key,href:n(m.target,"a","href"),title:m.title},w(m.children,x))},16:{t:["<"],o:Ii(cM),i:0,u(m){let w=m[1],x=!1;return w.indexOf("@")!==-1&&w.indexOf("//")===-1&&(x=!0,w=w.replace("mailto:","")),{children:[{text:w,type:"27"}],target:x?"mailto:"+w:w,type:"15"}}},17:{t:(m,w)=>!w.inAnchor&&!t.disableAutoLink&&(gc(m,"http://")||gc(m,"https://")),o:Ii(lM),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:k0(u,1),33:k0(u,2),19:{t:[`
67
+ `],o:Ln(JN),i:3,u:Yd,l:()=>`
68
68
  `},21:{o:jo(function(m,w){if(w.inline||w.simple||w.inHTML&&m.indexOf(`
69
69
 
70
70
  `)===-1&&w.prevCapture.indexOf(`
71
71
 
72
72
  `)===-1)return null;let x="",O=0;for(;;){const R=m.indexOf(`
73
- `,O),H=m.slice(O,R===-1?void 0:R+1);if(c(s,H)||(x+=H,R===-1||!H.trim()))break;O=R+1}const _=oa(x);return _===""?null:[x,,_]}),i:3,u:Ud,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:Ni(fM),i:0,u:m=>(h[m[1]]={target:m[2],title:m[4]},{}),l:Gd},23:{t:["!["],o:ai(pM),i:0,u:m=>({alt:m[1]?un(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(h[m.ref].target,"img","src"),title:h[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:Ni(hM),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("a",{key:x.key,href:n(h[m.ref].target,"a","href"),title:h[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:Mn(x0),i:1,u:FM,l(m,w,x){const O=m;return u("table",{key:x.key},u("thead",null,u("tr",null,O.header.map(function(_,R){return u("th",{key:R,style:O0(O,R)},w(_,x))}))),u("tbody",null,O.cells.map(function(_,R){return u("tr",{key:R},_.map(function(H,I){return u("td",{key:I,style:O0(O,I)},w(H,x))}))})))}},27:{o:jo(function(m,w){let x;return hc(m,":")&&(x=OM.exec(m)),x||TM.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(oM,(x,O)=>t.namedCodesToUnicode[O]||x)}},l:m=>m.text},28:{t:["**","__"],o:ai(xM),i:2,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("strong",{key:x.key},w(m.children,x))},29:{t:m=>{const w=m[0];return(w==="*"||w==="_")&&m[1]!==w},o:ai(SM),i:3,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("em",{key:x.key},w(m.children,x))},30:{t:["\\"],o:ai(kM),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:ai(EM),i:3,u:Ud,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:ai(_M),i:3,u:Ud,l:(m,w,x)=>u("del",{key:x.key},w(m.children,x))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const S=(function(m){var w=Object.keys(m);function x(O,_){var R=[];if(_.prevCapture=_.prevCapture||"",O.trim())for(;O;)for(var H=0;H<w.length;){var I=w[H],$=m[I];if(!$.t||$M(O,_,$.t)){var U=$.o(O,_);if(U&&U[0]){O=O.substring(U[0].length);var j=$.u(U,x,_);_.prevCapture+=U[0],j.type||(j.type=I),R.push(j);break}H++}else H++}return _.prevCapture="",R}return w.sort(function(O,_){return m[O].i-m[_].i||(O<_?-1:1)}),function(O,_){return x((function(R){return R.replace(QN,`
74
- `).replace(rM,"").replace(vM," ")})(O),_)}})(b),v=(function(m,w){return function x(O,_={}){if(Array.isArray(O)){const R=_.key,H=[];let I=!1;for(let $=0;$<O.length;$++){_.key=$;const U=x(O[$],_),j=E0(U);j&&I?H[H.length-1]+=U:U!==null&&H.push(U),I=j}return _.key=R,H}return(function(R,H,I){const $=m[R.type].l;return w?w(()=>$(R,H,I),R,H,I):$(R,H,I)})(O,x,_)}})(b,t.renderRule),y=f(e);return p.length?u("div",null,y,u("footer",{key:"footer"},p.map(function(m){return u("div",{id:r(m.identifier,_s),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):y}const Cc=e=>{let{children:t="",options:r}=e,n=(function(i,s){if(i==null)return{};var l,c,u={},f=Object.keys(i);for(c=0;c<f.length;c++)s.indexOf(l=f[c])>=0||(u[l]=i[l]);return u})(e,BN);return V.cloneElement(qM(t,r),n)},k0=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return A.jsx(t,{className:st("flex-none size-6",r)});switch(e){case"error":case"danger":return A.jsx(W2,{className:st("flex-none size-6",r)});case"info":return A.jsx(A.Fragment,{children:A.jsx(Nf,{className:st("flex-none size-6",r)})});case"warning":return A.jsx(A.Fragment,{children:A.jsx(xp,{className:st("flex-none size-6",r)})});case"message":return A.jsx(A.Fragment,{children:A.jsx(Nf,{className:st("flex-none size-6",r)})});default:return null}},mx=({id:e,onClose:t,kind:r,message:n,markdown:i,customIcon:s})=>{const l=({className:c}={})=>A.jsx("button",{onClick:t,className:st("flex justify-center p-1",c),children:A.jsx(Bo,{className:"size-4 font-thin stroke-current"})});return A.jsx("div",{className:st("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?A.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[A.jsx("div",{className:"pt-1",children:A.jsx(k0,{kind:r,customIcon:s})}),A.jsx("div",{className:"flex items-center gap-1 prose",children:i?A.jsx(Cc,{children:n}):A.jsx(A.Fragment,{children:n})}),l()]}):A.jsxs("div",{className:"flex items-start",children:[A.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>A.jsxs(A.Fragment,{children:[c.title&&A.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[A.jsx(k0,{kind:r,customIcon:s}),A.jsxs("span",{children:[c.title," :"]})]}),A.jsx("ul",{className:st("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>A.jsx("li",{children:i?A.jsx(Cc,{children:u}):A.jsx(A.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},bx=({children:e,size:t,className:r,...n})=>A.jsx("div",{style:{"--width":`${t||24}px`},className:st("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var Kd={},Os={},Fl={},A0;function yx(){if(A0)return Fl;A0=1,Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Fl}var wo={},ks={},As={},T0;function GM(){if(T0)return As;T0=1,Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return As.default=e,As}var R0;function Yc(){if(R0)return ks;R0=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var e=t(GM());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){return typeof i=="string"&&e.default.test(i)}var n=r;return ks.default=n,ks}var C0;function Xc(){if(C0)return wo;C0=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0,wo.unsafeStringify=n;var e=t(Yc());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function n(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function i(l,c=0){const u=n(l,c);if(!(0,e.default)(u))throw TypeError("Stringified UUID is invalid");return u}var s=i;return wo.default=s,wo}var I0;function ZM(){if(I0)return Os;I0=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var e=r(yx()),t=Xc();function r(f){return f&&f.__esModule?f:{default:f}}let n,i,s=0,l=0;function c(f,g,p){let h=g&&p||0;const b=g||new Array(16);f=f||{};let S=f.node||n,v=f.clockseq!==void 0?f.clockseq:i;if(S==null||v==null){const _=f.random||(f.rng||e.default)();S==null&&(S=n=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),v==null&&(v=i=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),m=f.nsecs!==void 0?f.nsecs:l+1;const w=y-s+(m-l)/1e4;if(w<0&&f.clockseq===void 0&&(v=v+1&16383),(w<0||y>s)&&f.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=y,l=m,i=v,y+=122192928e5;const x=((y&268435455)*1e4+m)%4294967296;b[h++]=x>>>24&255,b[h++]=x>>>16&255,b[h++]=x>>>8&255,b[h++]=x&255;const O=y/4294967296*1e4&268435455;b[h++]=O>>>8&255,b[h++]=O&255,b[h++]=O>>>24&15|16,b[h++]=O>>>16&255,b[h++]=v>>>8|128,b[h++]=v&255;for(let _=0;_<6;++_)b[h+_]=S[_];return g||(0,t.unsafeStringify)(b)}var u=c;return Os.default=u,Os}var Ts={},li={},Rs={},P0;function wx(){if(P0)return Rs;P0=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e=t(Yc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(i.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(i.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(i.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(i.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(i.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var n=r;return Rs.default=n,Rs}var N0;function xx(){if(N0)return li;N0=1,Object.defineProperty(li,"__esModule",{value:!0}),li.URL=li.DNS=void 0,li.default=l;var e=Xc(),t=r(wx());function r(c){return c&&c.__esModule?c:{default:c}}function n(c){c=unescape(encodeURIComponent(c));const u=[];for(let f=0;f<c.length;++f)u.push(c.charCodeAt(f));return u}const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";li.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";li.URL=s;function l(c,u,f){function g(p,h,b,S){var v;if(typeof p=="string"&&(p=n(p)),typeof h=="string"&&(h=(0,t.default)(h)),((v=h)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+p.length);if(y.set(h),y.set(p,h.length),y=f(y),y[6]=y[6]&15|u,y[8]=y[8]&63|128,b){S=S||0;for(let m=0;m<16;++m)b[S+m]=y[m];return b}return(0,e.unsafeStringify)(y)}try{g.name=c}catch{}return g.DNS=i,g.URL=s,g}return li}var Cs={},M0;function KM(){if(M0)return Cs;M0=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;function e(b){if(typeof b=="string"){const S=unescape(encodeURIComponent(b));b=new Uint8Array(S.length);for(let v=0;v<S.length;++v)b[v]=S.charCodeAt(v)}return t(n(i(b),b.length*8))}function t(b){const S=[],v=b.length*32,y="0123456789abcdef";for(let m=0;m<v;m+=8){const w=b[m>>5]>>>m%32&255,x=parseInt(y.charAt(w>>>4&15)+y.charAt(w&15),16);S.push(x)}return S}function r(b){return(b+64>>>9<<4)+14+1}function n(b,S){b[S>>5]|=128<<S%32,b[r(S)-1]=S;let v=1732584193,y=-271733879,m=-1732584194,w=271733878;for(let x=0;x<b.length;x+=16){const O=v,_=y,R=m,H=w;v=u(v,y,m,w,b[x],7,-680876936),w=u(w,v,y,m,b[x+1],12,-389564586),m=u(m,w,v,y,b[x+2],17,606105819),y=u(y,m,w,v,b[x+3],22,-1044525330),v=u(v,y,m,w,b[x+4],7,-176418897),w=u(w,v,y,m,b[x+5],12,1200080426),m=u(m,w,v,y,b[x+6],17,-1473231341),y=u(y,m,w,v,b[x+7],22,-45705983),v=u(v,y,m,w,b[x+8],7,1770035416),w=u(w,v,y,m,b[x+9],12,-1958414417),m=u(m,w,v,y,b[x+10],17,-42063),y=u(y,m,w,v,b[x+11],22,-1990404162),v=u(v,y,m,w,b[x+12],7,1804603682),w=u(w,v,y,m,b[x+13],12,-40341101),m=u(m,w,v,y,b[x+14],17,-1502002290),y=u(y,m,w,v,b[x+15],22,1236535329),v=f(v,y,m,w,b[x+1],5,-165796510),w=f(w,v,y,m,b[x+6],9,-1069501632),m=f(m,w,v,y,b[x+11],14,643717713),y=f(y,m,w,v,b[x],20,-373897302),v=f(v,y,m,w,b[x+5],5,-701558691),w=f(w,v,y,m,b[x+10],9,38016083),m=f(m,w,v,y,b[x+15],14,-660478335),y=f(y,m,w,v,b[x+4],20,-405537848),v=f(v,y,m,w,b[x+9],5,568446438),w=f(w,v,y,m,b[x+14],9,-1019803690),m=f(m,w,v,y,b[x+3],14,-187363961),y=f(y,m,w,v,b[x+8],20,1163531501),v=f(v,y,m,w,b[x+13],5,-1444681467),w=f(w,v,y,m,b[x+2],9,-51403784),m=f(m,w,v,y,b[x+7],14,1735328473),y=f(y,m,w,v,b[x+12],20,-1926607734),v=g(v,y,m,w,b[x+5],4,-378558),w=g(w,v,y,m,b[x+8],11,-2022574463),m=g(m,w,v,y,b[x+11],16,1839030562),y=g(y,m,w,v,b[x+14],23,-35309556),v=g(v,y,m,w,b[x+1],4,-1530992060),w=g(w,v,y,m,b[x+4],11,1272893353),m=g(m,w,v,y,b[x+7],16,-155497632),y=g(y,m,w,v,b[x+10],23,-1094730640),v=g(v,y,m,w,b[x+13],4,681279174),w=g(w,v,y,m,b[x],11,-358537222),m=g(m,w,v,y,b[x+3],16,-722521979),y=g(y,m,w,v,b[x+6],23,76029189),v=g(v,y,m,w,b[x+9],4,-640364487),w=g(w,v,y,m,b[x+12],11,-421815835),m=g(m,w,v,y,b[x+15],16,530742520),y=g(y,m,w,v,b[x+2],23,-995338651),v=p(v,y,m,w,b[x],6,-198630844),w=p(w,v,y,m,b[x+7],10,1126891415),m=p(m,w,v,y,b[x+14],15,-1416354905),y=p(y,m,w,v,b[x+5],21,-57434055),v=p(v,y,m,w,b[x+12],6,1700485571),w=p(w,v,y,m,b[x+3],10,-1894986606),m=p(m,w,v,y,b[x+10],15,-1051523),y=p(y,m,w,v,b[x+1],21,-2054922799),v=p(v,y,m,w,b[x+8],6,1873313359),w=p(w,v,y,m,b[x+15],10,-30611744),m=p(m,w,v,y,b[x+6],15,-1560198380),y=p(y,m,w,v,b[x+13],21,1309151649),v=p(v,y,m,w,b[x+4],6,-145523070),w=p(w,v,y,m,b[x+11],10,-1120210379),m=p(m,w,v,y,b[x+2],15,718787259),y=p(y,m,w,v,b[x+9],21,-343485551),v=s(v,O),y=s(y,_),m=s(m,R),w=s(w,H)}return[v,y,m,w]}function i(b){if(b.length===0)return[];const S=b.length*8,v=new Uint32Array(r(S));for(let y=0;y<S;y+=8)v[y>>5]|=(b[y/8]&255)<<y%32;return v}function s(b,S){const v=(b&65535)+(S&65535);return(b>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(b,S){return b<<S|b>>>32-S}function c(b,S,v,y,m,w){return s(l(s(s(S,b),s(y,w)),m),v)}function u(b,S,v,y,m,w,x){return c(S&v|~S&y,b,S,m,w,x)}function f(b,S,v,y,m,w,x){return c(S&y|v&~y,b,S,m,w,x)}function g(b,S,v,y,m,w,x){return c(S^v^y,b,S,m,w,x)}function p(b,S,v,y,m,w,x){return c(v^(S|~y),b,S,m,w,x)}var h=e;return Cs.default=h,Cs}var D0;function YM(){if(D0)return Ts;D0=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var e=r(xx()),t=r(KM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v3",48,t.default);return Ts.default=i,Ts}var Is={},Ps={},L0;function XM(){if(L0)return Ps;L0=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Ps.default=t,Ps}var z0;function JM(){if(z0)return Is;z0=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var e=n(XM()),t=n(yx()),r=Xc();function n(l){return l&&l.__esModule?l:{default:l}}function i(l,c,u){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const f=l.random||(l.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,c){u=u||0;for(let g=0;g<16;++g)c[u+g]=f[g];return c}return(0,r.unsafeStringify)(f)}var s=i;return Is.default=s,Is}var Ns={},Ms={},$0;function QM(){if($0)return Ms;$0=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;function e(i,s,l,c){switch(i){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(i,s){return i<<s|i>>>32-s}function r(i){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const g=unescape(encodeURIComponent(i));i=[];for(let p=0;p<g.length;++p)i.push(g.charCodeAt(p))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);const c=i.length/4+2,u=Math.ceil(c/16),f=new Array(u);for(let g=0;g<u;++g){const p=new Uint32Array(16);for(let h=0;h<16;++h)p[h]=i[g*64+h*4]<<24|i[g*64+h*4+1]<<16|i[g*64+h*4+2]<<8|i[g*64+h*4+3];f[g]=p}f[u-1][14]=(i.length-1)*8/Math.pow(2,32),f[u-1][14]=Math.floor(f[u-1][14]),f[u-1][15]=(i.length-1)*8&4294967295;for(let g=0;g<u;++g){const p=new Uint32Array(80);for(let m=0;m<16;++m)p[m]=f[g][m];for(let m=16;m<80;++m)p[m]=t(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);let h=l[0],b=l[1],S=l[2],v=l[3],y=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(h,5)+e(w,b,S,v)+y+s[w]+p[m]>>>0;y=v,v=S,S=t(b,30)>>>0,b=h,h=x}l[0]=l[0]+h>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+y>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var n=r;return Ms.default=n,Ms}var j0;function eD(){if(j0)return Ns;j0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;var e=r(xx()),t=r(QM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v5",80,t.default);return Ns.default=i,Ns}var Ds={},F0;function tD(){if(F0)return Ds;F0=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Ds.default=e,Ds}var Ls={},H0;function rD(){if(H0)return Ls;H0=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e=t(Yc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");return parseInt(i.slice(14,15),16)}var n=r;return Ls.default=n,Ls}var B0;function nD(){return B0||(B0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=g(ZM()),r=g(YM()),n=g(JM()),i=g(eD()),s=g(tD()),l=g(rD()),c=g(Yc()),u=g(Xc()),f=g(wx());function g(p){return p&&p.__esModule?p:{default:p}}})(Kd)),Kd}var Yd,W0;function iD(){if(W0)return Yd;W0=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,n,i,s={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,u=t.length,f=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<u;r++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,i=0,r=0;r<u;r++)n=n*l+s[r],n>=c?(s[i++]=parseInt(n/c,10),n=n%c):i>0&&(s[i++]=0);u=i,f=this.dstAlphabet.slice(n,n+1).concat(f)}while(i!==0);return f},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Yd=e,Yd}var Xd,V0;function oD(){if(V0)return Xd;V0=1;var e=iD();function t(r,n){var i=new e(r,n);return function(s){return i.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Xd=t,Xd}var Jd,U0;function sD(){if(U0)return Jd;U0=1;const{v4:e,validate:t}=nD(),r=oD(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},i={consistentLength:!0};let s;const l=(f,g,p)=>{const h=g(f.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?h:h.padStart(p.shortIdLength,p.paddingChar)},c=(f,g)=>{const h=g(f).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[h[1],h[2],h[3],h[4],h[5]].join("-")},u=f=>Math.ceil(Math.log(2**128)/Math.log(f));return Jd=(()=>{const f=(g,p)=>{const h=g||n.flickrBase58,b={...i,...p};if([...new Set(Array.from(h))].length!==h.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(h.length),v={shortIdLength:S,consistentLength:b.consistentLength,paddingChar:h[0]},y=r(r.HEX,h),m=r(h,r.HEX),w=()=>l(e(),y,v),O={alphabet:h,fromUUID:_=>l(_,y,v),maxLength:S,generate:w,new:w,toUUID:_=>c(_,m),uuid:e,validate:(_,R=!1)=>{if(!_||typeof _!="string")return!1;const H=b.consistentLength?_.length===S:_.length<=S,I=_.split("").every($=>h.includes($));return R===!1?H&&I:H&&I&&t(c(_,m))}};return Object.freeze(O),O};return f.constants=n,f.uuid=e,f.generate=()=>(s||(s=f(n.flickrBase58).generate),s()),f})(),Jd}var gi=sD();const Sx=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:i})=>{const s=`indent_line_${gi.generate()}`;return A.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[A.jsx("defs",{children:A.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:A.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,className:i?`stroke-[${i}]`:"stroke-body"})})}),n?A.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):A.jsx("rect",{fill:n?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},Ex=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?A.jsx("div",{className:"flex h-6 w-5 items-center",onClick:i=>r&&r(i),children:(()=>{switch(n){case"arrow":return A.jsx(sc,{className:st(["h-3 w-3 transform transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?A.jsx(sc,{}):A.jsx(H2,{});default:return A.jsx(sc,{className:"h-3 w-3 transform transition ease-in-out"})}})()}):A.jsx("div",{className:"flex h-6 w-3 items-center"}),Mp=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:i,searchQuery:s,renderNode:l,onNodeClick:c})=>{var b;const{key:u,children:f}=e,g=N.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),p=l&&typeof l=="function"?l(e,t,g,i,s):cD(e,t,g,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"flex items-center space-x-2",children:p},u),lD(f||[],t,s,r,n,g.expanded,i,c,l)]}):null},aD=function(e,t){var l;const{title:r,icon:n,subtitle:i}=e;let s=null;return n&&(s=A.jsx(bx,{children:n})),A.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,A.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),i&&A.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-muted",children:i})]})},lD=function(e,t,r,n,i,s,l,c,u){var f,g;return e.length&&s?(["dataclass-attribute","datasource-attribute","method"].includes(((f=e[0].data)==null?void 0:f.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((p,h)=>xS(p.title,h.title))).map(p=>A.jsx(Mp,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:i,onNodeClick:c,renderNode:u},p.key)):null},cD=function(e,t,r,n){return A.jsxs(A.Fragment,{children:[A.jsx(Sx,{showLines:!0,depth:t}),A.jsx(Ex,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),aD(e,n)]})},Hl=e=>t=>e===t,uD=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:i,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:f}){const[g,p]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||p({...g,expandedKeys:l||g.expandedKeys})},[l]);const h=N.useCallback(m=>{if(!m)return;const w=g.expandedKeys.findIndex(Hl(m.key));let x=[];w===-1?(x=[...g.expandedKeys,m.key],p(()=>({...g,expandedKeys:x})),i&&i(x)):(x=g.expandedKeys.filter(O=>O!==m.key),p(()=>({...g,expandedKeys:x})),i&&i(x))},[g]),b=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Hl(m.key))===-1&&p({...g,selectedKeys:[...g.selectedKeys,m.key]})},[g]),S=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Hl(m.key))===-1&&p({...g,selectedKeys:[m.key]})},[g]),v=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){p({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(Hl(m.key))!==-1&&p({...g,selectedKeys:g.selectedKeys.filter(O=>O!==m.key)})},[g]),y=N.useMemo(()=>({expand:h,select:b,selectSingle:S,deselect:v}),[v,h,b,S]);return A.jsx(Gi,{depth:u?0:1,borderType:"light",className:st("fd-tree",f,{"pl-2 mb-1 rounded border p-1":u}),children:t.map(m=>A.jsx(Mp,{node:m,searchQuery:s||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function vc(e){return e.of&&e.children?A.jsx(A.Fragment,{children:e.children}):null}function Mt(){return Mt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Mt.apply(null,arguments)}function dD(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var fD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function _x(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var pD=/[A-Z]|^ms/g,hD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Ox=function(t){return t.charCodeAt(1)===45},q0=function(t){return t!=null&&typeof t!="boolean"},Qd=_x(function(e){return Ox(e)?e:e.replace(pD,"-$&").toLowerCase()}),G0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(hD,function(n,i,s){return mn={name:i,styles:s,next:mn},i})}return fD[t]!==1&&!Ox(t)&&typeof r=="number"&&r!==0?r+"px":r};function pa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return mn={name:i.name,styles:i.styles,next:mn},i.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)mn={name:l.name,styles:l.styles,next:mn},l=l.next;var c=s.styles+";";return c}return gD(e,t,r)}case"function":{if(e!==void 0){var u=mn,f=r(e);return mn=u,pa(e,t,f)}break}}var g=r;if(t==null)return g;var p=t[g];return p!==void 0?p:g}function gD(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=pa(e,t,r[i])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":q0(c)&&(n+=Qd(s)+":"+G0(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)q0(l[u])&&(n+=Qd(s)+":"+G0(s,l[u])+";");else{var f=pa(e,t,l);switch(s){case"animation":case"animationName":{n+=Qd(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}return n}var Z0=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function vD(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";mn=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,i+=pa(r,t,s);else{var l=s;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=pa(r,t,e[c]),n){var u=s;i+=u[c]}Z0.lastIndex=0;for(var f="",g;(g=Z0.exec(i))!==null;)f+="-"+g[1];var p=dD(i)+f;return{name:p,styles:i,next:mn}}var mD=function(t){return t()},bD=V.useInsertionEffect?V.useInsertionEffect:!1,yD=bD||mD,wD=!0;function xD(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var kx=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||wD===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},SD=function(t,r,n){kx(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},ED=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_D=_x(function(e){return ED.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),OD=_D,kD=function(t){return t!=="theme"},K0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?OD:kD},Y0=function(t,r,n){var i;if(r){var s=r.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},AD=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return kx(r,n,i),yD(function(){return SD(r,n,i)}),null},TD=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=Y0(t,r,n),u=c||K0(i),f=!u("as");return function(){var g=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)p.push.apply(p,g);else{var h=g[0];p.push(h[0]);for(var b=g.length,S=1;S<b;S++)p.push(g[S],h[S])}var v=Cf.withEmotionCache(function(y,m,w){var x=f&&y.as||i,O="",_=[],R=y;if(y.theme==null){R={};for(var H in y)R[H]=y[H];R.theme=V.useContext(Cf.ThemeContext)}typeof y.className=="string"?O=xD(m.registered,_,y.className):y.className!=null&&(O=y.className+" ");var I=vD(p.concat(_),m.registered,R);O+=m.key+"-"+I.name,l!==void 0&&(O+=" "+l);var $=f&&c===void 0?K0(x):u,U={};for(var j in y)f&&j==="as"||$(j)&&(U[j]=y[j]);return U.className=O,w&&(U.ref=w),V.createElement(V.Fragment,null,V.createElement(AD,{cache:m,serialized:I,isStringTag:typeof x=="string"}),V.createElement(x,U))});return v.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=p,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(y,m){var w=e(y,Mt({},r,m,{shouldForwardProp:Y0(v,m,!0)}));return w.apply(void 0,p)},v}},RD=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ic=TD.bind(null);RD.forEach(function(e){Ic[e]=Ic(e)});var CD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xo=new WeakMap,Bl=new WeakMap,Wl={},ef=0,Ax=function(e){return e&&(e.host||Ax(e.parentNode))},ID=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Ax(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},PD=function(e,t,r,n){var i=ID(t,Array.isArray(e)?e:[e]);Wl[r]||(Wl[r]=new WeakMap);var s=Wl[r],l=[],c=new Set,u=new Set(i),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};i.forEach(f);var g=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))g(h);else try{var b=h.getAttribute(n),S=b!==null&&b!=="false",v=(xo.get(h)||0)+1,y=(s.get(h)||0)+1;xo.set(h,v),s.set(h,y),l.push(h),v===1&&S&&Bl.set(h,!0),y===1&&h.setAttribute(r,"true"),S||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return g(t),c.clear(),ef++,function(){l.forEach(function(p){var h=xo.get(p)-1,b=s.get(p)-1;xo.set(p,h),s.set(p,b),h||(Bl.has(p)||p.removeAttribute(n),Bl.delete(p)),b||p.removeAttribute(r)}),ef--,ef||(xo=new WeakMap,xo=new WeakMap,Bl=new WeakMap,Wl={})}},ND=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=CD(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),PD(n,i,r,"aria-hidden")):function(){return null}},Ff=function(e,t){return Ff=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Ff(e,t)};function Jc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Ff(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bn=function(){return bn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},bn.apply(this,arguments)};function Tx(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Hf(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Bf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],l;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return s}function Pc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var mc="right-scroll-bar-position",bc="width-before-scroll-bar",MD="with-scroll-bars-hidden",DD="--removed-body-scroll-bar-size";function tf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LD(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var zD=typeof window<"u"?V.useLayoutEffect:V.useEffect,X0=new WeakMap;function $D(e,t){var r=LD(null,function(n){return e.forEach(function(i){return tf(i,n)})});return zD(function(){var n=X0.get(r);if(n){var i=new Set(n),s=new Set(e),l=r.current;i.forEach(function(c){s.has(c)||tf(c,null)}),s.forEach(function(c){i.has(c)||tf(c,l)})}X0.set(r,e)},[e]),r}function jD(e){return e}function FD(e,t){t===void 0&&(t=jD);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(n=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var u=function(){var g=l;l=[],g.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),r={push:function(g){l.push(g),f()},filter:function(g){return l=l.filter(g),r}}}};return i}function HD(e){e===void 0&&(e={});var t=FD(null);return t.options=bn({async:!0,ssr:!1},e),t}var Rx=function(e){var t=e.sideCar,r=Tx(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return V.createElement(n,bn({},r))};Rx.isSideCarExport=!0;function BD(e,t){return e.useMedium(t),Rx}var Cx=HD(),rf=function(){},Qc=V.forwardRef(function(e,t){var r=V.useRef(null),n=V.useState({onScrollCapture:rf,onWheelCapture:rf,onTouchMoveCapture:rf}),i=n[0],s=n[1],l=e.forwardProps,c=e.children,u=e.className,f=e.removeScrollBar,g=e.enabled,p=e.shards,h=e.sideCar,b=e.noRelative,S=e.noIsolation,v=e.inert,y=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,O=Tx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,R=$D([r,t]),H=bn(bn({},O),i);return V.createElement(V.Fragment,null,g&&V.createElement(_,{sideCar:Cx,removeScrollBar:f,shards:p,noRelative:b,noIsolation:S,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:x}),l?V.cloneElement(V.Children.only(c),bn(bn({},H),{ref:R})):V.createElement(w,bn({},H,{className:u,ref:R}),c))});Qc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Qc.classNames={fullWidth:bc,zeroRight:mc};var WD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=WD();return t&&e.setAttribute("nonce",t),e}function UD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=VD())&&(UD(t,r),qD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZD=function(){var e=GD();return function(t,r){V.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ix=function(){var e=ZD(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},KD={left:0,top:0,right:0,gap:0},nf=function(e){return parseInt(e||"",10)||0},YD=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[nf(r),nf(n),nf(i)]},XD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KD;var t=YD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},JD=Ix(),Co="data-scroll-locked",QD=function(e,t,r,n){var i=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
73
+ `,O),H=m.slice(O,R===-1?void 0:R+1);if(c(s,H)||(x+=H,R===-1||!H.trim()))break;O=R+1}const _=oa(x);return _===""?null:[x,,_]}),i:3,u:Kd,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:Ii(fM),i:0,u:m=>(h[m[1]]={target:m[2],title:m[4]},{}),l:Xd},23:{t:["!["],o:ai(pM),i:0,u:m=>({alt:m[1]?un(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(h[m.ref].target,"img","src"),title:h[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:Ii(hM),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>h[m.ref]?u("a",{key:x.key,href:n(h[m.ref].target,"a","href"),title:h[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:Ln(O0),i:1,u:FM,l(m,w,x){const O=m;return u("table",{key:x.key},u("thead",null,u("tr",null,O.header.map(function(_,R){return u("th",{key:R,style:R0(O,R)},w(_,x))}))),u("tbody",null,O.cells.map(function(_,R){return u("tr",{key:R},_.map(function(H,P){return u("td",{key:P,style:R0(O,P)},w(H,x))}))})))}},27:{o:jo(function(m,w){let x;return gc(m,":")&&(x=OM.exec(m)),x||TM.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(oM,(x,O)=>t.namedCodesToUnicode[O]||x)}},l:m=>m.text},28:{t:["**","__"],o:ai(xM),i:2,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("strong",{key:x.key},w(m.children,x))},29:{t:m=>{const w=m[0];return(w==="*"||w==="_")&&m[1]!==w},o:ai(SM),i:3,u:(m,w,x)=>({children:w(m[2],x)}),l:(m,w,x)=>u("em",{key:x.key},w(m.children,x))},30:{t:["\\"],o:ai(kM),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:ai(EM),i:3,u:Kd,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:ai(_M),i:3,u:Kd,l:(m,w,x)=>u("del",{key:x.key},w(m.children,x))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const S=(function(m){var w=Object.keys(m);function x(O,_){var R=[];if(_.prevCapture=_.prevCapture||"",O.trim())for(;O;)for(var H=0;H<w.length;){var P=w[H],z=m[P];if(!z.t||$M(O,_,z.t)){var U=z.o(O,_);if(U&&U[0]){O=O.substring(U[0].length);var $=z.u(U,x,_);_.prevCapture+=U[0],$.type||($.type=P),R.push($);break}H++}else H++}return _.prevCapture="",R}return w.sort(function(O,_){return m[O].i-m[_].i||(O<_?-1:1)}),function(O,_){return x((function(R){return R.replace(QN,`
74
+ `).replace(rM,"").replace(vM," ")})(O),_)}})(b),v=(function(m,w){return function x(O,_={}){if(Array.isArray(O)){const R=_.key,H=[];let P=!1;for(let z=0;z<O.length;z++){_.key=z;const U=x(O[z],_),$=A0(U);$&&P?H[H.length-1]+=U:U!==null&&H.push(U),P=$}return _.key=R,H}return(function(R,H,P){const z=m[R.type].l;return w?w(()=>z(R,H,P),R,H,P):z(R,H,P)})(O,x,_)}})(b,t.renderRule),y=f(e);return p.length?u("div",null,y,u("footer",{key:"footer"},p.map(function(m){return u("div",{id:r(m.identifier,_s),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):y}const Pc=e=>{let{children:t="",options:r}=e,n=(function(i,s){if(i==null)return{};var l,c,u={},f=Object.keys(i);for(c=0;c<f.length;c++)s.indexOf(l=f[c])>=0||(u[l]=i[l]);return u})(e,WN);return V.cloneElement(qM(t,r),n)},C0=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return A.jsx(t,{className:st("flex-none size-6",r)});switch(e){case"error":case"danger":return A.jsx(B5,{className:st("flex-none size-6",r)});case"info":return A.jsx(A.Fragment,{children:A.jsx(zf,{className:st("flex-none size-6",r)})});case"warning":return A.jsx(A.Fragment,{children:A.jsx(Op,{className:st("flex-none size-6",r)})});case"message":return A.jsx(A.Fragment,{children:A.jsx(zf,{className:st("flex-none size-6",r)})});default:return null}},xx=({id:e,onClose:t,kind:r,message:n,markdown:i,customIcon:s})=>{const l=({className:c}={})=>A.jsx("button",{onClick:t,className:st("flex justify-center p-1",c),children:A.jsx(Wo,{className:"size-4 font-thin stroke-current"})});return A.jsx("div",{className:st("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?A.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[A.jsx("div",{className:"pt-1",children:A.jsx(C0,{kind:r,customIcon:s})}),A.jsx("div",{className:"flex items-center gap-1 prose",children:i?A.jsx(Pc,{children:n}):A.jsx(A.Fragment,{children:n})}),l()]}):A.jsxs("div",{className:"flex items-start",children:[A.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>A.jsxs(A.Fragment,{children:[c.title&&A.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[A.jsx(C0,{kind:r,customIcon:s}),A.jsxs("span",{children:[c.title," :"]})]}),A.jsx("ul",{className:st("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>A.jsx("li",{children:i?A.jsx(Pc,{children:u}):A.jsx(A.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},Sx=({children:e,size:t,className:r,...n})=>A.jsx("div",{style:{"--width":`${t||24}px`},className:st("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var Qd={},Os={},Hl={},P0;function Ex(){if(P0)return Hl;P0=1,Object.defineProperty(Hl,"__esModule",{value:!0}),Hl.default=r;let e;const t=new Uint8Array(16);function r(){if(!e&&(e=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!e))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return e(t)}return Hl}var wo={},ks={},As={},I0;function GM(){if(I0)return As;I0=1,Object.defineProperty(As,"__esModule",{value:!0}),As.default=void 0;var e=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;return As.default=e,As}var N0;function Xc(){if(N0)return ks;N0=1,Object.defineProperty(ks,"__esModule",{value:!0}),ks.default=void 0;var e=t(GM());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){return typeof i=="string"&&e.default.test(i)}var n=r;return ks.default=n,ks}var M0;function Jc(){if(M0)return wo;M0=1,Object.defineProperty(wo,"__esModule",{value:!0}),wo.default=void 0,wo.unsafeStringify=n;var e=t(Xc());function t(l){return l&&l.__esModule?l:{default:l}}const r=[];for(let l=0;l<256;++l)r.push((l+256).toString(16).slice(1));function n(l,c=0){return r[l[c+0]]+r[l[c+1]]+r[l[c+2]]+r[l[c+3]]+"-"+r[l[c+4]]+r[l[c+5]]+"-"+r[l[c+6]]+r[l[c+7]]+"-"+r[l[c+8]]+r[l[c+9]]+"-"+r[l[c+10]]+r[l[c+11]]+r[l[c+12]]+r[l[c+13]]+r[l[c+14]]+r[l[c+15]]}function i(l,c=0){const u=n(l,c);if(!(0,e.default)(u))throw TypeError("Stringified UUID is invalid");return u}var s=i;return wo.default=s,wo}var D0;function ZM(){if(D0)return Os;D0=1,Object.defineProperty(Os,"__esModule",{value:!0}),Os.default=void 0;var e=r(Ex()),t=Jc();function r(f){return f&&f.__esModule?f:{default:f}}let n,i,s=0,l=0;function c(f,g,p){let h=g&&p||0;const b=g||new Array(16);f=f||{};let S=f.node||n,v=f.clockseq!==void 0?f.clockseq:i;if(S==null||v==null){const _=f.random||(f.rng||e.default)();S==null&&(S=n=[_[0]|1,_[1],_[2],_[3],_[4],_[5]]),v==null&&(v=i=(_[6]<<8|_[7])&16383)}let y=f.msecs!==void 0?f.msecs:Date.now(),m=f.nsecs!==void 0?f.nsecs:l+1;const w=y-s+(m-l)/1e4;if(w<0&&f.clockseq===void 0&&(v=v+1&16383),(w<0||y>s)&&f.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");s=y,l=m,i=v,y+=122192928e5;const x=((y&268435455)*1e4+m)%4294967296;b[h++]=x>>>24&255,b[h++]=x>>>16&255,b[h++]=x>>>8&255,b[h++]=x&255;const O=y/4294967296*1e4&268435455;b[h++]=O>>>8&255,b[h++]=O&255,b[h++]=O>>>24&15|16,b[h++]=O>>>16&255,b[h++]=v>>>8|128,b[h++]=v&255;for(let _=0;_<6;++_)b[h+_]=S[_];return g||(0,t.unsafeStringify)(b)}var u=c;return Os.default=u,Os}var Ts={},li={},Rs={},L0;function _x(){if(L0)return Rs;L0=1,Object.defineProperty(Rs,"__esModule",{value:!0}),Rs.default=void 0;var e=t(Xc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");let s;const l=new Uint8Array(16);return l[0]=(s=parseInt(i.slice(0,8),16))>>>24,l[1]=s>>>16&255,l[2]=s>>>8&255,l[3]=s&255,l[4]=(s=parseInt(i.slice(9,13),16))>>>8,l[5]=s&255,l[6]=(s=parseInt(i.slice(14,18),16))>>>8,l[7]=s&255,l[8]=(s=parseInt(i.slice(19,23),16))>>>8,l[9]=s&255,l[10]=(s=parseInt(i.slice(24,36),16))/1099511627776&255,l[11]=s/4294967296&255,l[12]=s>>>24&255,l[13]=s>>>16&255,l[14]=s>>>8&255,l[15]=s&255,l}var n=r;return Rs.default=n,Rs}var z0;function Ox(){if(z0)return li;z0=1,Object.defineProperty(li,"__esModule",{value:!0}),li.URL=li.DNS=void 0,li.default=l;var e=Jc(),t=r(_x());function r(c){return c&&c.__esModule?c:{default:c}}function n(c){c=unescape(encodeURIComponent(c));const u=[];for(let f=0;f<c.length;++f)u.push(c.charCodeAt(f));return u}const i="6ba7b810-9dad-11d1-80b4-00c04fd430c8";li.DNS=i;const s="6ba7b811-9dad-11d1-80b4-00c04fd430c8";li.URL=s;function l(c,u,f){function g(p,h,b,S){var v;if(typeof p=="string"&&(p=n(p)),typeof h=="string"&&(h=(0,t.default)(h)),((v=h)===null||v===void 0?void 0:v.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let y=new Uint8Array(16+p.length);if(y.set(h),y.set(p,h.length),y=f(y),y[6]=y[6]&15|u,y[8]=y[8]&63|128,b){S=S||0;for(let m=0;m<16;++m)b[S+m]=y[m];return b}return(0,e.unsafeStringify)(y)}try{g.name=c}catch{}return g.DNS=i,g.URL=s,g}return li}var Cs={},$0;function KM(){if($0)return Cs;$0=1,Object.defineProperty(Cs,"__esModule",{value:!0}),Cs.default=void 0;function e(b){if(typeof b=="string"){const S=unescape(encodeURIComponent(b));b=new Uint8Array(S.length);for(let v=0;v<S.length;++v)b[v]=S.charCodeAt(v)}return t(n(i(b),b.length*8))}function t(b){const S=[],v=b.length*32,y="0123456789abcdef";for(let m=0;m<v;m+=8){const w=b[m>>5]>>>m%32&255,x=parseInt(y.charAt(w>>>4&15)+y.charAt(w&15),16);S.push(x)}return S}function r(b){return(b+64>>>9<<4)+14+1}function n(b,S){b[S>>5]|=128<<S%32,b[r(S)-1]=S;let v=1732584193,y=-271733879,m=-1732584194,w=271733878;for(let x=0;x<b.length;x+=16){const O=v,_=y,R=m,H=w;v=u(v,y,m,w,b[x],7,-680876936),w=u(w,v,y,m,b[x+1],12,-389564586),m=u(m,w,v,y,b[x+2],17,606105819),y=u(y,m,w,v,b[x+3],22,-1044525330),v=u(v,y,m,w,b[x+4],7,-176418897),w=u(w,v,y,m,b[x+5],12,1200080426),m=u(m,w,v,y,b[x+6],17,-1473231341),y=u(y,m,w,v,b[x+7],22,-45705983),v=u(v,y,m,w,b[x+8],7,1770035416),w=u(w,v,y,m,b[x+9],12,-1958414417),m=u(m,w,v,y,b[x+10],17,-42063),y=u(y,m,w,v,b[x+11],22,-1990404162),v=u(v,y,m,w,b[x+12],7,1804603682),w=u(w,v,y,m,b[x+13],12,-40341101),m=u(m,w,v,y,b[x+14],17,-1502002290),y=u(y,m,w,v,b[x+15],22,1236535329),v=f(v,y,m,w,b[x+1],5,-165796510),w=f(w,v,y,m,b[x+6],9,-1069501632),m=f(m,w,v,y,b[x+11],14,643717713),y=f(y,m,w,v,b[x],20,-373897302),v=f(v,y,m,w,b[x+5],5,-701558691),w=f(w,v,y,m,b[x+10],9,38016083),m=f(m,w,v,y,b[x+15],14,-660478335),y=f(y,m,w,v,b[x+4],20,-405537848),v=f(v,y,m,w,b[x+9],5,568446438),w=f(w,v,y,m,b[x+14],9,-1019803690),m=f(m,w,v,y,b[x+3],14,-187363961),y=f(y,m,w,v,b[x+8],20,1163531501),v=f(v,y,m,w,b[x+13],5,-1444681467),w=f(w,v,y,m,b[x+2],9,-51403784),m=f(m,w,v,y,b[x+7],14,1735328473),y=f(y,m,w,v,b[x+12],20,-1926607734),v=g(v,y,m,w,b[x+5],4,-378558),w=g(w,v,y,m,b[x+8],11,-2022574463),m=g(m,w,v,y,b[x+11],16,1839030562),y=g(y,m,w,v,b[x+14],23,-35309556),v=g(v,y,m,w,b[x+1],4,-1530992060),w=g(w,v,y,m,b[x+4],11,1272893353),m=g(m,w,v,y,b[x+7],16,-155497632),y=g(y,m,w,v,b[x+10],23,-1094730640),v=g(v,y,m,w,b[x+13],4,681279174),w=g(w,v,y,m,b[x],11,-358537222),m=g(m,w,v,y,b[x+3],16,-722521979),y=g(y,m,w,v,b[x+6],23,76029189),v=g(v,y,m,w,b[x+9],4,-640364487),w=g(w,v,y,m,b[x+12],11,-421815835),m=g(m,w,v,y,b[x+15],16,530742520),y=g(y,m,w,v,b[x+2],23,-995338651),v=p(v,y,m,w,b[x],6,-198630844),w=p(w,v,y,m,b[x+7],10,1126891415),m=p(m,w,v,y,b[x+14],15,-1416354905),y=p(y,m,w,v,b[x+5],21,-57434055),v=p(v,y,m,w,b[x+12],6,1700485571),w=p(w,v,y,m,b[x+3],10,-1894986606),m=p(m,w,v,y,b[x+10],15,-1051523),y=p(y,m,w,v,b[x+1],21,-2054922799),v=p(v,y,m,w,b[x+8],6,1873313359),w=p(w,v,y,m,b[x+15],10,-30611744),m=p(m,w,v,y,b[x+6],15,-1560198380),y=p(y,m,w,v,b[x+13],21,1309151649),v=p(v,y,m,w,b[x+4],6,-145523070),w=p(w,v,y,m,b[x+11],10,-1120210379),m=p(m,w,v,y,b[x+2],15,718787259),y=p(y,m,w,v,b[x+9],21,-343485551),v=s(v,O),y=s(y,_),m=s(m,R),w=s(w,H)}return[v,y,m,w]}function i(b){if(b.length===0)return[];const S=b.length*8,v=new Uint32Array(r(S));for(let y=0;y<S;y+=8)v[y>>5]|=(b[y/8]&255)<<y%32;return v}function s(b,S){const v=(b&65535)+(S&65535);return(b>>16)+(S>>16)+(v>>16)<<16|v&65535}function l(b,S){return b<<S|b>>>32-S}function c(b,S,v,y,m,w){return s(l(s(s(S,b),s(y,w)),m),v)}function u(b,S,v,y,m,w,x){return c(S&v|~S&y,b,S,m,w,x)}function f(b,S,v,y,m,w,x){return c(S&y|v&~y,b,S,m,w,x)}function g(b,S,v,y,m,w,x){return c(S^v^y,b,S,m,w,x)}function p(b,S,v,y,m,w,x){return c(v^(S|~y),b,S,m,w,x)}var h=e;return Cs.default=h,Cs}var j0;function YM(){if(j0)return Ts;j0=1,Object.defineProperty(Ts,"__esModule",{value:!0}),Ts.default=void 0;var e=r(Ox()),t=r(KM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v3",48,t.default);return Ts.default=i,Ts}var Ps={},Is={},F0;function XM(){if(F0)return Is;F0=1,Object.defineProperty(Is,"__esModule",{value:!0}),Is.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Is.default=t,Is}var H0;function JM(){if(H0)return Ps;H0=1,Object.defineProperty(Ps,"__esModule",{value:!0}),Ps.default=void 0;var e=n(XM()),t=n(Ex()),r=Jc();function n(l){return l&&l.__esModule?l:{default:l}}function i(l,c,u){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const f=l.random||(l.rng||t.default)();if(f[6]=f[6]&15|64,f[8]=f[8]&63|128,c){u=u||0;for(let g=0;g<16;++g)c[u+g]=f[g];return c}return(0,r.unsafeStringify)(f)}var s=i;return Ps.default=s,Ps}var Ns={},Ms={},W0;function QM(){if(W0)return Ms;W0=1,Object.defineProperty(Ms,"__esModule",{value:!0}),Ms.default=void 0;function e(i,s,l,c){switch(i){case 0:return s&l^~s&c;case 1:return s^l^c;case 2:return s&l^s&c^l&c;case 3:return s^l^c}}function t(i,s){return i<<s|i>>>32-s}function r(i){const s=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof i=="string"){const g=unescape(encodeURIComponent(i));i=[];for(let p=0;p<g.length;++p)i.push(g.charCodeAt(p))}else Array.isArray(i)||(i=Array.prototype.slice.call(i));i.push(128);const c=i.length/4+2,u=Math.ceil(c/16),f=new Array(u);for(let g=0;g<u;++g){const p=new Uint32Array(16);for(let h=0;h<16;++h)p[h]=i[g*64+h*4]<<24|i[g*64+h*4+1]<<16|i[g*64+h*4+2]<<8|i[g*64+h*4+3];f[g]=p}f[u-1][14]=(i.length-1)*8/Math.pow(2,32),f[u-1][14]=Math.floor(f[u-1][14]),f[u-1][15]=(i.length-1)*8&4294967295;for(let g=0;g<u;++g){const p=new Uint32Array(80);for(let m=0;m<16;++m)p[m]=f[g][m];for(let m=16;m<80;++m)p[m]=t(p[m-3]^p[m-8]^p[m-14]^p[m-16],1);let h=l[0],b=l[1],S=l[2],v=l[3],y=l[4];for(let m=0;m<80;++m){const w=Math.floor(m/20),x=t(h,5)+e(w,b,S,v)+y+s[w]+p[m]>>>0;y=v,v=S,S=t(b,30)>>>0,b=h,h=x}l[0]=l[0]+h>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+S>>>0,l[3]=l[3]+v>>>0,l[4]=l[4]+y>>>0}return[l[0]>>24&255,l[0]>>16&255,l[0]>>8&255,l[0]&255,l[1]>>24&255,l[1]>>16&255,l[1]>>8&255,l[1]&255,l[2]>>24&255,l[2]>>16&255,l[2]>>8&255,l[2]&255,l[3]>>24&255,l[3]>>16&255,l[3]>>8&255,l[3]&255,l[4]>>24&255,l[4]>>16&255,l[4]>>8&255,l[4]&255]}var n=r;return Ms.default=n,Ms}var B0;function eD(){if(B0)return Ns;B0=1,Object.defineProperty(Ns,"__esModule",{value:!0}),Ns.default=void 0;var e=r(Ox()),t=r(QM());function r(s){return s&&s.__esModule?s:{default:s}}var i=(0,e.default)("v5",80,t.default);return Ns.default=i,Ns}var Ds={},V0;function tD(){if(V0)return Ds;V0=1,Object.defineProperty(Ds,"__esModule",{value:!0}),Ds.default=void 0;var e="00000000-0000-0000-0000-000000000000";return Ds.default=e,Ds}var Ls={},U0;function rD(){if(U0)return Ls;U0=1,Object.defineProperty(Ls,"__esModule",{value:!0}),Ls.default=void 0;var e=t(Xc());function t(i){return i&&i.__esModule?i:{default:i}}function r(i){if(!(0,e.default)(i))throw TypeError("Invalid UUID");return parseInt(i.slice(14,15),16)}var n=r;return Ls.default=n,Ls}var q0;function nD(){return q0||(q0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"v1",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"v3",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"v4",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return l.default}});var t=g(ZM()),r=g(YM()),n=g(JM()),i=g(eD()),s=g(tD()),l=g(rD()),c=g(Xc()),u=g(Jc()),f=g(_x());function g(p){return p&&p.__esModule?p:{default:p}}})(Qd)),Qd}var ef,G0;function iD(){if(G0)return ef;G0=1;function e(t,r){if(!t||!r||!t.length||!r.length)throw new Error("Bad alphabet");this.srcAlphabet=t,this.dstAlphabet=r}return e.prototype.convert=function(t){var r,n,i,s={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,u=t.length,f=typeof t=="string"?"":[];if(!this.isValid(t))throw new Error('Number "'+t+'" contains of non-alphabetic digits ('+this.srcAlphabet+")");if(this.srcAlphabet===this.dstAlphabet)return t;for(r=0;r<u;r++)s[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,i=0,r=0;r<u;r++)n=n*l+s[r],n>=c?(s[i++]=parseInt(n/c,10),n=n%c):i>0&&(s[i++]=0);u=i,f=this.dstAlphabet.slice(n,n+1).concat(f)}while(i!==0);return f},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},ef=e,ef}var tf,Z0;function oD(){if(Z0)return tf;Z0=1;var e=iD();function t(r,n){var i=new e(r,n);return function(s){return i.convert(s)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",tf=t,tf}var rf,K0;function sD(){if(K0)return rf;K0=1;const{v4:e,validate:t}=nD(),r=oD(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},i={consistentLength:!0};let s;const l=(f,g,p)=>{const h=g(f.toLowerCase().replace(/-/g,""));return!p||!p.consistentLength?h:h.padStart(p.shortIdLength,p.paddingChar)},c=(f,g)=>{const h=g(f).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[h[1],h[2],h[3],h[4],h[5]].join("-")},u=f=>Math.ceil(Math.log(2**128)/Math.log(f));return rf=(()=>{const f=(g,p)=>{const h=g||n.flickrBase58,b={...i,...p};if([...new Set(Array.from(h))].length!==h.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(h.length),v={shortIdLength:S,consistentLength:b.consistentLength,paddingChar:h[0]},y=r(r.HEX,h),m=r(h,r.HEX),w=()=>l(e(),y,v),O={alphabet:h,fromUUID:_=>l(_,y,v),maxLength:S,generate:w,new:w,toUUID:_=>c(_,m),uuid:e,validate:(_,R=!1)=>{if(!_||typeof _!="string")return!1;const H=b.consistentLength?_.length===S:_.length<=S,P=_.split("").every(z=>h.includes(z));return R===!1?H&&P:H&&P&&t(c(_,m))}};return Object.freeze(O),O};return f.constants=n,f.uuid=e,f.generate=()=>(s||(s=f(n.flickrBase58).generate),s()),f})(),rf}var gi=sD();const kx=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:i})=>{const s=`indent_line_${gi.generate()}`;return A.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[A.jsx("defs",{children:A.jsx("pattern",{id:s,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:A.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,className:i?`stroke-[${i}]`:"stroke-body"})})}),n?A.jsx("rect",{fill:`url(#${s})`,x:"0",y:"0",width:`${11*e}`,height:t}):A.jsx("rect",{fill:n?`url(#${s})`:"",x:"0",y:"0",width:0,height:t})]})},Ax=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?A.jsx("div",{className:"flex h-6 w-5 items-center",onClick:i=>r&&r(i),children:(()=>{switch(n){case"arrow":return A.jsx(ac,{className:st(["h-3 w-3 transform transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?A.jsx(ac,{}):A.jsx(H5,{});default:return A.jsx(ac,{className:"h-3 w-3 transform transition ease-in-out"})}})()}):A.jsx("div",{className:"flex h-6 w-3 items-center"}),$p=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:i,searchQuery:s,renderNode:l,onNodeClick:c})=>{var b;const{key:u,children:f}=e,g=N.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),p=l&&typeof l=="function"?l(e,t,g,i,s):cD(e,t,g,c);return!((b=e.options)!=null&&b.filterable)||!s||e.title.toLowerCase().includes(s.toLowerCase())?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"flex items-center gap-x-2",children:p},u),lD(f||[],t,s,r,n,g.expanded,i,c,l)]}):null},aD=function(e,t){var l;const{title:r,icon:n,subtitle:i}=e;let s=null;return n&&(s=A.jsx(Sx,{children:n})),A.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[s,A.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),i&&A.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-muted",children:i})]})},lD=function(e,t,r,n,i,s,l,c,u){var f,g;return e.length&&s?(["dataclass-attribute","datasource-attribute","method"].includes(((f=e[0].data)==null?void 0:f.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((p,h)=>OS(p.title,h.title))).map(p=>A.jsx($p,{actions:l,node:p,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:i,onNodeClick:c,renderNode:u},p.key)):null},cD=function(e,t,r,n){return A.jsxs(A.Fragment,{children:[A.jsx(kx,{showLines:!0,depth:t}),A.jsx(Ax,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),aD(e,n)]})},Wl=e=>t=>e===t,uD=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:i,searchQuery:s,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:f}){const[g,p]=N.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));N.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||p({...g,expandedKeys:l||g.expandedKeys})},[l]);const h=N.useCallback(m=>{if(!m)return;const w=g.expandedKeys.findIndex(Wl(m.key));let x=[];w===-1?(x=[...g.expandedKeys,m.key],p(()=>({...g,expandedKeys:x})),i&&i(x)):(x=g.expandedKeys.filter(O=>O!==m.key),p(()=>({...g,expandedKeys:x})),i&&i(x))},[g]),b=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Wl(m.key))===-1&&p({...g,selectedKeys:[...g.selectedKeys,m.key]})},[g]),S=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(Wl(m.key))===-1&&p({...g,selectedKeys:[m.key]})},[g]),v=N.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){p({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(Wl(m.key))!==-1&&p({...g,selectedKeys:g.selectedKeys.filter(O=>O!==m.key)})},[g]),y=N.useMemo(()=>({expand:h,select:b,selectSingle:S,deselect:v}),[v,h,b,S]);return A.jsx(qi,{depth:u?0:1,borderType:"light",className:st("fd-tree",f,{"pl-2 mb-1 rounded border p-1":u}),children:t.map(m=>A.jsx($p,{node:m,searchQuery:s||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function mc(e){return e.of&&e.children?A.jsx(A.Fragment,{children:e.children}):null}function Dt(){return Dt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Dt.apply(null,arguments)}function dD(e){for(var t=0,r,n=0,i=e.length;i>=4;++n,i-=4)r=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var fD={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function Tx(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var pD=/[A-Z]|^ms/g,hD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Rx=function(t){return t.charCodeAt(1)===45},Y0=function(t){return t!=null&&typeof t!="boolean"},nf=Tx(function(e){return Rx(e)?e:e.replace(pD,"-$&").toLowerCase()}),X0=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(hD,function(n,i,s){return mn={name:i,styles:s,next:mn},i})}return fD[t]!==1&&!Rx(t)&&typeof r=="number"&&r!==0?r+"px":r};function pa(e,t,r){if(r==null)return"";var n=r;if(n.__emotion_styles!==void 0)return n;switch(typeof r){case"boolean":return"";case"object":{var i=r;if(i.anim===1)return mn={name:i.name,styles:i.styles,next:mn},i.name;var s=r;if(s.styles!==void 0){var l=s.next;if(l!==void 0)for(;l!==void 0;)mn={name:l.name,styles:l.styles,next:mn},l=l.next;var c=s.styles+";";return c}return gD(e,t,r)}case"function":{if(e!==void 0){var u=mn,f=r(e);return mn=u,pa(e,t,f)}break}}var g=r;if(t==null)return g;var p=t[g];return p!==void 0?p:g}function gD(e,t,r){var n="";if(Array.isArray(r))for(var i=0;i<r.length;i++)n+=pa(e,t,r[i])+";";else for(var s in r){var l=r[s];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=s+"{"+t[c]+"}":Y0(c)&&(n+=nf(s)+":"+X0(s,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var u=0;u<l.length;u++)Y0(l[u])&&(n+=nf(s)+":"+X0(s,l[u])+";");else{var f=pa(e,t,l);switch(s){case"animation":case"animationName":{n+=nf(s)+":"+f+";";break}default:n+=s+"{"+f+"}"}}}return n}var J0=/label:\s*([^\s;{]+)\s*(;|$)/g,mn;function vD(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var n=!0,i="";mn=void 0;var s=e[0];if(s==null||s.raw===void 0)n=!1,i+=pa(r,t,s);else{var l=s;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=pa(r,t,e[c]),n){var u=s;i+=u[c]}J0.lastIndex=0;for(var f="",g;(g=J0.exec(i))!==null;)f+="-"+g[1];var p=dD(i)+f;return{name:p,styles:i,next:mn}}var mD=function(t){return t()},bD=V.useInsertionEffect?V.useInsertionEffect:!1,yD=bD||mD,wD=!0;function xD(e,t,r){var n="";return r.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(n+=i+" ")}),n}var Cx=function(t,r,n){var i=t.key+"-"+r.name;(n===!1||wD===!1)&&t.registered[i]===void 0&&(t.registered[i]=r.styles)},SD=function(t,r,n){Cx(t,r,n);var i=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var s=r;do t.insert(r===s?"."+i:"",s,t.sheet,!0),s=s.next;while(s!==void 0)}},ED=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,_D=Tx(function(e){return ED.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),OD=_D,kD=function(t){return t!=="theme"},Q0=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?OD:kD},eb=function(t,r,n){var i;if(r){var s=r.shouldForwardProp;i=t.__emotion_forwardProp&&s?function(l){return t.__emotion_forwardProp(l)&&s(l)}:s}return typeof i!="function"&&n&&(i=t.__emotion_forwardProp),i},AD=function(t){var r=t.cache,n=t.serialized,i=t.isStringTag;return Cx(r,n,i),yD(function(){return SD(r,n,i)}),null},TD=function e(t,r){var n=t.__emotion_real===t,i=n&&t.__emotion_base||t,s,l;r!==void 0&&(s=r.label,l=r.target);var c=eb(t,r,n),u=c||Q0(i),f=!u("as");return function(){var g=arguments,p=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(s!==void 0&&p.push("label:"+s+";"),g[0]==null||g[0].raw===void 0)p.push.apply(p,g);else{var h=g[0];p.push(h[0]);for(var b=g.length,S=1;S<b;S++)p.push(g[S],h[S])}var v=Mf.withEmotionCache(function(y,m,w){var x=f&&y.as||i,O="",_=[],R=y;if(y.theme==null){R={};for(var H in y)R[H]=y[H];R.theme=V.useContext(Mf.ThemeContext)}typeof y.className=="string"?O=xD(m.registered,_,y.className):y.className!=null&&(O=y.className+" ");var P=vD(p.concat(_),m.registered,R);O+=m.key+"-"+P.name,l!==void 0&&(O+=" "+l);var z=f&&c===void 0?Q0(x):u,U={};for(var $ in y)f&&$==="as"||z($)&&(U[$]=y[$]);return U.className=O,w&&(U.ref=w),V.createElement(V.Fragment,null,V.createElement(AD,{cache:m,serialized:P,isStringTag:typeof x=="string"}),V.createElement(x,U))});return v.displayName=s!==void 0?s:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=i,v.__emotion_styles=p,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(y,m){var w=e(y,Dt({},r,m,{shouldForwardProp:eb(v,m,!0)}));return w.apply(void 0,p)},v}},RD=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],Ic=TD.bind(null);RD.forEach(function(e){Ic[e]=Ic(e)});var CD=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},xo=new WeakMap,Bl=new WeakMap,Vl={},of=0,Px=function(e){return e&&(e.host||Px(e.parentNode))},PD=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Px(r);return n&&e.contains(n)?n:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},ID=function(e,t,r,n){var i=PD(t,Array.isArray(e)?e:[e]);Vl[r]||(Vl[r]=new WeakMap);var s=Vl[r],l=[],c=new Set,u=new Set(i),f=function(p){!p||c.has(p)||(c.add(p),f(p.parentNode))};i.forEach(f);var g=function(p){!p||u.has(p)||Array.prototype.forEach.call(p.children,function(h){if(c.has(h))g(h);else try{var b=h.getAttribute(n),S=b!==null&&b!=="false",v=(xo.get(h)||0)+1,y=(s.get(h)||0)+1;xo.set(h,v),s.set(h,y),l.push(h),v===1&&S&&Bl.set(h,!0),y===1&&h.setAttribute(r,"true"),S||h.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",h,m)}})};return g(t),c.clear(),of++,function(){l.forEach(function(p){var h=xo.get(p)-1,b=s.get(p)-1;xo.set(p,h),s.set(p,b),h||(Bl.has(p)||p.removeAttribute(n),Bl.delete(p)),b||p.removeAttribute(r)}),of--,of||(xo=new WeakMap,xo=new WeakMap,Bl=new WeakMap,Vl={})}},ND=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),i=CD(e);return i?(n.push.apply(n,Array.from(i.querySelectorAll("[aria-live], script"))),ID(n,i,r,"aria-hidden")):function(){return null}},Vf=function(e,t){return Vf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i])},Vf(e,t)};function Qc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Vf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var bn=function(){return bn=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},bn.apply(this,arguments)};function Ix(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Uf(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function qf(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),i,s=[],l;try{for(;(t===void 0||t-- >0)&&!(i=n.next()).done;)s.push(i.value)}catch(c){l={error:c}}finally{try{i&&!i.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return s}function Nc(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,s;n<i;n++)(s||!(n in t))&&(s||(s=Array.prototype.slice.call(t,0,n)),s[n]=t[n]);return e.concat(s||Array.prototype.slice.call(t))}var bc="right-scroll-bar-position",yc="width-before-scroll-bar",MD="with-scroll-bars-hidden",DD="--removed-body-scroll-bar-size";function sf(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function LD(e,t){var r=N.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var i=r.value;i!==n&&(r.value=n,r.callback(n,i))}}}})[0];return r.callback=t,r.facade}var zD=typeof window<"u"?V.useLayoutEffect:V.useEffect,tb=new WeakMap;function $D(e,t){var r=LD(null,function(n){return e.forEach(function(i){return sf(i,n)})});return zD(function(){var n=tb.get(r);if(n){var i=new Set(n),s=new Set(e),l=r.current;i.forEach(function(c){s.has(c)||sf(c,null)}),s.forEach(function(c){i.has(c)||sf(c,l)})}tb.set(r,e)},[e]),r}function jD(e){return e}function FD(e,t){t===void 0&&(t=jD);var r=[],n=!1,i={read:function(){if(n)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return r.length?r[r.length-1]:e},useMedium:function(s){var l=t(s,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(s){for(n=!0;r.length;){var l=r;r=[],l.forEach(s)}r={push:function(c){return s(c)},filter:function(){return r}}},assignMedium:function(s){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(s),l=r}var u=function(){var g=l;l=[],g.forEach(s)},f=function(){return Promise.resolve().then(u)};f(),r={push:function(g){l.push(g),f()},filter:function(g){return l=l.filter(g),r}}}};return i}function HD(e){e===void 0&&(e={});var t=FD(null);return t.options=bn({async:!0,ssr:!1},e),t}var Nx=function(e){var t=e.sideCar,r=Ix(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var n=t.read();if(!n)throw new Error("Sidecar medium not found");return V.createElement(n,bn({},r))};Nx.isSideCarExport=!0;function WD(e,t){return e.useMedium(t),Nx}var Mx=HD(),af=function(){},eu=V.forwardRef(function(e,t){var r=V.useRef(null),n=V.useState({onScrollCapture:af,onWheelCapture:af,onTouchMoveCapture:af}),i=n[0],s=n[1],l=e.forwardProps,c=e.children,u=e.className,f=e.removeScrollBar,g=e.enabled,p=e.shards,h=e.sideCar,b=e.noRelative,S=e.noIsolation,v=e.inert,y=e.allowPinchZoom,m=e.as,w=m===void 0?"div":m,x=e.gapMode,O=Ix(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),_=h,R=$D([r,t]),H=bn(bn({},O),i);return V.createElement(V.Fragment,null,g&&V.createElement(_,{sideCar:Mx,removeScrollBar:f,shards:p,noRelative:b,noIsolation:S,inert:v,setCallbacks:s,allowPinchZoom:!!y,lockRef:r,gapMode:x}),l?V.cloneElement(V.Children.only(c),bn(bn({},H),{ref:R})):V.createElement(w,bn({},H,{className:u,ref:R}),c))});eu.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};eu.classNames={fullWidth:yc,zeroRight:bc};var BD=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function VD(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=BD();return t&&e.setAttribute("nonce",t),e}function UD(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function qD(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var GD=function(){var e=0,t=null;return{add:function(r){e==0&&(t=VD())&&(UD(t,r),qD(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ZD=function(){var e=GD();return function(t,r){V.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Dx=function(){var e=ZD(),t=function(r){var n=r.styles,i=r.dynamic;return e(n,i),null};return t},KD={left:0,top:0,right:0,gap:0},lf=function(e){return parseInt(e||"",10)||0},YD=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],i=t[e==="padding"?"paddingRight":"marginRight"];return[lf(r),lf(n),lf(i)]},XD=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return KD;var t=YD(e),r=document.documentElement.clientWidth,n=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,n-r+t[2]-t[0])}},JD=Dx(),Co="data-scroll-locked",QD=function(e,t,r,n){var i=e.left,s=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
75
75
  .`.concat(MD,` {
76
76
  overflow: hidden `).concat(n,`;
77
77
  padding-right: `).concat(c,"px ").concat(n,`;
@@ -89,56 +89,56 @@ Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Z=ye(ne,fe,J,oe,ae+"
89
89
  `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
90
90
  }
91
91
 
92
- .`).concat(mc,` {
92
+ .`).concat(bc,` {
93
93
  right: `).concat(c,"px ").concat(n,`;
94
94
  }
95
95
 
96
- .`).concat(bc,` {
96
+ .`).concat(yc,` {
97
97
  margin-right: `).concat(c,"px ").concat(n,`;
98
98
  }
99
99
 
100
- .`).concat(mc," .").concat(mc,` {
100
+ .`).concat(bc," .").concat(bc,` {
101
101
  right: 0 `).concat(n,`;
102
102
  }
103
103
 
104
- .`).concat(bc," .").concat(bc,` {
104
+ .`).concat(yc," .").concat(yc,` {
105
105
  margin-right: 0 `).concat(n,`;
106
106
  }
107
107
 
108
108
  body[`).concat(Co,`] {
109
109
  `).concat(DD,": ").concat(c,`px;
110
110
  }
111
- `)},J0=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},e3=function(){V.useEffect(function(){return document.body.setAttribute(Co,(J0()+1).toString()),function(){var e=J0()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},t3=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;e3();var s=V.useMemo(function(){return XD(i)},[i]);return V.createElement(JD,{styles:QD(s,!t,i,r?"":"!important")})},Wf=!1;if(typeof window<"u")try{var Vl=Object.defineProperty({},"passive",{get:function(){return Wf=!0,!0}});window.addEventListener("test",Vl,Vl),window.removeEventListener("test",Vl,Vl)}catch{Wf=!1}var So=Wf?{passive:!1}:!1,r3=function(e){return e.tagName==="TEXTAREA"},Px=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!r3(e)&&r[t]==="visible")},n3=function(e){return Px(e,"overflowY")},i3=function(e){return Px(e,"overflowX")},Q0=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=Nx(e,n);if(i){var s=Mx(e,n),l=s[1],c=s[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},o3=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},s3=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Nx=function(e,t){return e==="v"?n3(t):i3(t)},Mx=function(e,t){return e==="v"?o3(t):s3(t)},a3=function(e,t){return e==="h"&&t==="rtl"?-1:1},l3=function(e,t,r,n,i){var s=a3(e,window.getComputedStyle(t).direction),l=s*n,c=r.target,u=t.contains(c),f=!1,g=l>0,p=0,h=0;do{if(!c)break;var b=Mx(e,c),S=b[0],v=b[1],y=b[2],m=v-y-s*S;(S||m)&&Nx(e,c)&&(p+=m,h+=S);var w=c.parentNode;c=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(g&&Math.abs(p)<1||!g&&Math.abs(h)<1)&&(f=!0),f},Ul=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},eb=function(e){return[e.deltaX,e.deltaY]},tb=function(e){return e&&"current"in e?e.current:e},c3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},u3=function(e){return`
111
+ `)},rb=function(){var e=parseInt(document.body.getAttribute(Co)||"0",10);return isFinite(e)?e:0},e3=function(){V.useEffect(function(){return document.body.setAttribute(Co,(rb()+1).toString()),function(){var e=rb()-1;e<=0?document.body.removeAttribute(Co):document.body.setAttribute(Co,e.toString())}},[])},t3=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,i=n===void 0?"margin":n;e3();var s=V.useMemo(function(){return XD(i)},[i]);return V.createElement(JD,{styles:QD(s,!t,i,r?"":"!important")})},Gf=!1;if(typeof window<"u")try{var Ul=Object.defineProperty({},"passive",{get:function(){return Gf=!0,!0}});window.addEventListener("test",Ul,Ul),window.removeEventListener("test",Ul,Ul)}catch{Gf=!1}var So=Gf?{passive:!1}:!1,r3=function(e){return e.tagName==="TEXTAREA"},Lx=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!r3(e)&&r[t]==="visible")},n3=function(e){return Lx(e,"overflowY")},i3=function(e){return Lx(e,"overflowX")},nb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var i=zx(e,n);if(i){var s=$x(e,n),l=s[1],c=s[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},o3=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},s3=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},zx=function(e,t){return e==="v"?n3(t):i3(t)},$x=function(e,t){return e==="v"?o3(t):s3(t)},a3=function(e,t){return e==="h"&&t==="rtl"?-1:1},l3=function(e,t,r,n,i){var s=a3(e,window.getComputedStyle(t).direction),l=s*n,c=r.target,u=t.contains(c),f=!1,g=l>0,p=0,h=0;do{if(!c)break;var b=$x(e,c),S=b[0],v=b[1],y=b[2],m=v-y-s*S;(S||m)&&zx(e,c)&&(p+=m,h+=S);var w=c.parentNode;c=w&&w.nodeType===Node.DOCUMENT_FRAGMENT_NODE?w.host:w}while(!u&&c!==document.body||u&&(t.contains(c)||t===c));return(g&&Math.abs(p)<1||!g&&Math.abs(h)<1)&&(f=!0),f},ql=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},ib=function(e){return[e.deltaX,e.deltaY]},ob=function(e){return e&&"current"in e?e.current:e},c3=function(e,t){return e[0]===t[0]&&e[1]===t[1]},u3=function(e){return`
112
112
  .block-interactivity-`.concat(e,` {pointer-events: none;}
113
113
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
114
- `)},d3=0,Eo=[];function f3(e){var t=V.useRef([]),r=V.useRef([0,0]),n=V.useRef(),i=V.useState(d3++)[0],s=V.useState(Ix)[0],l=V.useRef(e);V.useEffect(function(){l.current=e},[e]),V.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=Pc([e.lockRef.current],(e.shards||[]).map(tb),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=V.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=Ul(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],O="deltaY"in v?v.deltaY:w[1]-m[1],_,R=v.target,H=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in v&&H==="h"&&R.type==="range")return!1;var I=window.getSelection(),$=I&&I.anchorNode,U=$?$===R||$.contains(R):!1;if(U)return!1;var j=Q0(H,R);if(!j)return!0;if(j?_=H:(_=H==="v"?"h":"v",j=Q0(H,R)),!j)return!1;if(!n.current&&"changedTouches"in v&&(x||O)&&(n.current=_),!_)return!0;var M=n.current||_;return l3(M,y,v,M==="h"?x:O)},[]),u=V.useCallback(function(v){var y=v;if(!(!Eo.length||Eo[Eo.length-1]!==s)){var m="deltaY"in y?eb(y):Ul(y),w=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&c3(_.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(tb).filter(Boolean).filter(function(_){return _.contains(y.target)}),O=x.length>0?c(y,x[0]):!l.current.noIsolation;O&&y.cancelable&&y.preventDefault()}}},[]),f=V.useCallback(function(v,y,m,w){var x={name:v,delta:y,target:m,should:w,shadowParent:p3(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(O){return O!==x})},1)},[]),g=V.useCallback(function(v){r.current=Ul(v),n.current=void 0},[]),p=V.useCallback(function(v){f(v.type,eb(v),v.target,c(v,e.lockRef.current))},[]),h=V.useCallback(function(v){f(v.type,Ul(v),v.target,c(v,e.lockRef.current))},[]);V.useEffect(function(){return Eo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,So),document.addEventListener("touchmove",u,So),document.addEventListener("touchstart",g,So),function(){Eo=Eo.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,So),document.removeEventListener("touchmove",u,So),document.removeEventListener("touchstart",g,So)}},[]);var b=e.removeScrollBar,S=e.inert;return V.createElement(V.Fragment,null,S?V.createElement(s,{styles:u3(i)}):null,b?V.createElement(t3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function p3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const h3=BD(Cx,f3);var Dx=V.forwardRef(function(e,t){return V.createElement(Qc,bn({},e,{ref:t,sideCar:h3}))});Dx.classNames=Qc.classNames;const g3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},v3=V.useId||(()=>{});let m3=0;function b3(e){const[t,r]=V.useState(v3());return g3((()=>{r((n=>n??String(m3++)))}),[e]),e||(t?`radix-${t}`:"")}function Lx(...e){return t=>e.forEach((r=>(function(n,i){typeof n=="function"?n(i):n!=null&&(n.current=i)})(r,t)))}function Zi(...e){return V.useCallback(Lx(...e),e)}const zx=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.Children.toArray(r).some(rb)?V.createElement(V.Fragment,null,V.Children.map(r,(i=>rb(i)?V.createElement(Vf,Mt({},n,{ref:t}),i.props.children):i))):V.createElement(Vf,Mt({},n,{ref:t}),r)}));zx.displayName="Slot";const Vf=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.isValidElement(r)?V.cloneElement(r,{...w3(n,r.props),ref:Lx(t,r.ref)}):V.Children.count(r)>1?V.Children.only(null):null}));Vf.displayName="SlotClone";const y3=({children:e})=>V.createElement(V.Fragment,null,e);function rb(e){return V.isValidElement(e)&&e.type===y3}function w3(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{s==null||s(...l),i==null||i(...l)}:n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}const qo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:V.forwardRef(((r,n)=>{const{asChild:i,...s}=r,l=i?zx:t;return V.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),V.createElement(l,Mt({},s,{ref:n}))}))})),{}),nb=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},$x=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=V.useState(),f=V.useRef({}),g=V.useRef(l),p=V.useRef("none"),h=l?"mounted":"unmounted",[b,S]=(function(v,y){return V.useReducer(((m,w)=>{const x=y[m][w];return x??m}),v)})(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return V.useEffect((()=>{const v=ql(f.current);p.current=b==="mounted"?v:"none"}),[b]),nb((()=>{const v=f.current,y=g.current;if(y!==l){const m=p.current,w=ql(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(y&&m!==w?"ANIMATION_OUT":"UNMOUNT"),g.current=l}}),[l,S]),nb((()=>{if(c){const v=m=>{const w=ql(f.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(p.current=ql(f.current))};return c.addEventListener("animationstart",y),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v),()=>{c.removeEventListener("animationstart",y),c.removeEventListener("animationcancel",v),c.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[c,S]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:V.useCallback((v=>{v&&(f.current=getComputedStyle(v)),u(v)}),[])}})(t),i=typeof r=="function"?r({present:n.isPresent}):V.Children.only(r),s=Zi(n.ref,i.ref);return typeof r=="function"||n.isPresent?V.cloneElement(i,{ref:s}):null};function ql(e){return(e==null?void 0:e.animationName)||"none"}$x.displayName="Presence";let of=0;function x3(){V.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:ib()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:ib()),of++,()=>{of===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),of--}}),[])}function ib(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const S3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},jx=V.forwardRef(((e,t)=>{var r,n;const{containerRef:i,style:s,...l}=e,c=(r=i==null?void 0:i.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,u]=V.useState({});return S3((()=>{u({})}),[]),c?En.createPortal(V.createElement(qo.div,Mt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Vi(e){const t=V.useRef(e);return V.useEffect((()=>{t.current=e})),V.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const ob={bubbles:!1,cancelable:!0},E3=V.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,u]=V.useState(null),f=Vi(i),g=Vi(s),p=V.useRef(null),h=Zi(t,(v=>u(v))),b=V.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;V.useEffect((()=>{if(n){let v=function(m){if(b.paused||!c)return;const w=m.target;c.contains(w)?p.current=w:Mi(p.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||Mi(p.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y)}}}),[n,c,b.paused]),V.useEffect((()=>{if(c){lb.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",ob);c.addEventListener("focusScope.autoFocusOnMount",f),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const O=document.activeElement;for(const _ of w)if(Mi(_,{select:x}),document.activeElement!==O)return})((v=sb(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&Mi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",f),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",ob);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(m),m.defaultPrevented||Mi(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),lb.remove(b)}),0)}}var v}),[c,f,g,b]);const S=V.useCallback((v=>{if(!r&&!n||b.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(y&&m){const w=v.currentTarget,[x,O]=(function(_){const R=sb(_),H=ab(R,_),I=ab(R.reverse(),_);return[H,I]})(w);x&&O?v.shiftKey||m!==O?v.shiftKey&&m===x&&(v.preventDefault(),r&&Mi(O,{select:!0})):(v.preventDefault(),r&&Mi(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return V.createElement(qo.div,Mt({tabIndex:-1},l,{ref:h,onKeyDown:S}))}));function sb(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function ab(e,t){for(const r of e)if(!_3(r,{upTo:t}))return r}function _3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Mi(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(n){return n instanceof HTMLInputElement&&"select"in n})(e)&&t&&e.select()}}const lb=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=cb(e,t),e.unshift(t)},remove(t){var r;e=cb(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function cb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function O3(e){const t=Vi(e);V.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const k3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{};let ub,Gl=0;function A3({disabled:e}){const t=V.useRef(!1);k3((()=>{if(e){let r=function(){Gl--,Gl===0&&(document.body.style.pointerEvents=ub)},n=function(i){t.current=i.pointerType!=="mouse"};return Gl===0&&(ub=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Gl++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Bi(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}const T3=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R3=V.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,f=V.useContext(T3),[g,p]=V.useState(null),[,h]=V.useState({}),b=Zi(t,(R=>p(R))),S=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(v),m=g?S.indexOf(g):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,x=m>=y,O=(function(R){const H=Vi(R),I=V.useRef(!1);return V.useEffect((()=>{const $=j=>{j.target&&!I.current&&fb("dismissableLayer.pointerDownOutside",H,{originalEvent:j}),I.current=!1},U=window.setTimeout((()=>{document.addEventListener("pointerdown",$)}),0);return()=>{window.clearTimeout(U),document.removeEventListener("pointerdown",$)}}),[H]),{onPointerDownCapture:()=>I.current=!0}})((R=>{const H=R.target,I=[...f.branches].some(($=>$.contains(H)));x&&!I&&(i==null||i(R),l==null||l(R),R.defaultPrevented||c==null||c())})),_=(function(R){const H=Vi(R),I=V.useRef(!1);return V.useEffect((()=>{const $=U=>{U.target&&!I.current&&fb("dismissableLayer.focusOutside",H,{originalEvent:U})};return document.addEventListener("focusin",$),()=>document.removeEventListener("focusin",$)}),[H]),{onFocusCapture:()=>I.current=!0,onBlurCapture:()=>I.current=!1}})((R=>{const H=R.target;[...f.branches].some((I=>I.contains(H)))||(s==null||s(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return O3((R=>{m===f.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),A3({disabled:r}),V.useEffect((()=>{g&&(r&&f.layersWithOutsidePointerEventsDisabled.add(g),f.layers.add(g),db())}),[g,r,f]),V.useEffect((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),db())}),[g,f]),V.useEffect((()=>{const R=()=>h({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),V.createElement(qo.div,Mt({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Bi(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Bi(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Bi(e.onPointerDownCapture,O.onPointerDownCapture)}))}));function db(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function fb(e,t,r){const n=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(i)}function pb(e){const[t,r]=V.useState(void 0);return V.useEffect((()=>{if(e){const n=new ResizeObserver((i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const u=s.borderBoxSize,f=Array.isArray(u)?u[0]:u;l=f.inlineSize,c=f.blockSize}else{const u=e.getBoundingClientRect();l=u.width,c=u.height}r({width:l,height:c})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)}),[e]),t}function C3(e,t){const r=Di.get(e);return r===void 0?(Di.set(e,{rect:{},callbacks:[t]}),Di.size===1&&(Uf=requestAnimationFrame(Fx))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Di.get(e);if(n===void 0)return;const i=n.callbacks.indexOf(t);i>-1&&n.callbacks.splice(i,1),n.callbacks.length===0&&(Di.delete(e),Di.size===0&&cancelAnimationFrame(Uf))}}let Uf;const Di=new Map;function Fx(){const e=[];Di.forEach(((t,r)=>{const n=r.getBoundingClientRect();var i,s;i=t.rect,s=n,(i.width!==s.width||i.height!==s.height||i.top!==s.top||i.right!==s.right||i.bottom!==s.bottom||i.left!==s.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Uf=requestAnimationFrame(Fx)}function I3(e){const[t,r]=V.useState();return V.useEffect((()=>{if(e){const n=C3(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Hx(e,t=[]){let r=[];const n=()=>{const i=r.map((s=>V.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||i;return V.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return n.scopeName=e,[function(i,s){const l=V.createContext(s),c=r.length;function u(f){const{scope:g,children:p,...h}=f,b=(g==null?void 0:g[e][c])||l,S=V.useMemo((()=>h),Object.values(h));return V.createElement(b.Provider,{value:S},p)}return r=[...r,s],u.displayName=i+"Provider",[u,function(f,g){const p=(g==null?void 0:g[e][c])||l,h=V.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}]},P3(n,...t)]}function P3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((i=>({useScope:i(),scopeName:i.scopeName})));return function(i){const s=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(i)[`__scope${u}`]})),{});return V.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function N3({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:i,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:f,collisionTolerance:g=0}){if(!e||!t||!f)return{popperStyles:M3,arrowStyles:sf};const p=(function(H,I,$=0,U=0,j){const M=j?j.height:0,D=hb(I,H,"x"),F=hb(I,H,"y"),P=F.before-$-M,K=F.after+$+M,ee=D.before-$-M,Y=D.after+$+M;return{top:{start:{x:D.start+U,y:P},center:{x:D.center,y:P},end:{x:D.end-U,y:P}},right:{start:{x:Y,y:F.start+U},center:{x:Y,y:F.center},end:{x:Y,y:F.end-U}},bottom:{start:{x:D.start+U,y:K},center:{x:D.center,y:K},end:{x:D.end-U,y:K}},left:{start:{x:ee,y:F.start+U},center:{x:ee,y:F.center},end:{x:ee,y:F.end-U}}}})(t,e,s,c,r),h=p[i][l];if(u===!1){const H=gb(h);let I=sf;return r&&(I=mb({popperSize:t,arrowSize:r,arrowOffset:n,side:i,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":vb(t,i,l,n,r)},arrowStyles:I,placedSide:i,placedAlign:l}}const b=DOMRect.fromRect({...t,...h}),S=(v=f,y=g,DOMRect.fromRect({width:v.width-2*y,height:v.height-2*y,x:v.left+y,y:v.top+y}));var v,y;const m=yb(b,S),w=p[bb(i)][l],x=(function(H,I,$){const U=bb(H);return I[H]&&!$[U]?U:H})(i,m,yb(DOMRect.fromRect({...t,...w}),S)),O=(function(H,I,$,U,j){const M=$==="top"||$==="bottom",D=M?"left":"top",F=M?"right":"bottom",P=M?"width":"height",K=I[P]>H[P];return(U==="start"||U==="center")&&(j[D]&&K||j[F]&&!K)?"end":(U==="end"||U==="center")&&(j[F]&&K||j[D]&&!K)?"start":U})(t,e,i,l,m),_=gb(p[x][O]);let R=sf;return r&&(R=mb({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:O})),{popperStyles:{..._,"--radix-popper-transform-origin":vb(t,x,O,n,r)},arrowStyles:R,placedSide:x,placedAlign:O}}function hb(e,t,r){const n=e[r==="x"?"left":"top"],i=r==="x"?"width":"height",s=e[i],l=t[i];return{before:n-l,start:n,center:n+(s-l)/2,end:n+s-l,after:n+s}}function gb(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function vb(e,t,r,n,i){const s=t==="top"||t==="bottom",l=i?i.width:0,c=i?i.height:0,u=l/2+n;let f="",g="";return s?(f={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(f=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${f} ${g}`}const M3={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},sf={position:"absolute",opacity:0};function mb({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:i}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[n],u=Math.max(t.width,t.height),f={width:`${u}px`,height:`${u}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:D3(n,i)};return n!=="top"&&n!=="bottom"||(i==="start"&&(f.left=`${r}px`),i==="center"&&(f.left=`${s}px`),i==="end"&&(f.right=`${r}px`)),n!=="left"&&n!=="right"||(i==="start"&&(f.top=`${r}px`),i==="center"&&(f.top=`${l}px`),i==="end"&&(f.bottom=`${r}px`)),f}function D3(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function bb(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function yb(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Bx,Wx]=Hx("Popper"),[L3,Vx]=Bx("Popper"),z3=e=>{const{__scopePopper:t,children:r}=e,[n,i]=V.useState(null);return V.createElement(L3,{scope:t,anchor:n,onAnchorChange:i},r)},$3=V.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=Vx("PopperAnchor",r),l=V.useRef(null),c=Zi(t,l);return V.useEffect((()=>{s.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:V.createElement(qo.div,Mt({},i,{ref:c}))})),[j3,Z6]=Bx("PopperContent"),F3=V.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...f}=e,g=Vx("PopperContent",r),[p,h]=V.useState(),b=I3(g.anchor),[S,v]=V.useState(null),y=pb(S),[m,w]=V.useState(null),x=pb(m),O=Zi(t,(M=>v(M))),_=(function(){const[M,D]=V.useState(void 0);return V.useEffect((()=>{let F;function P(){D({width:window.innerWidth,height:window.innerHeight})}function K(){window.clearTimeout(F),F=window.setTimeout(P,100)}return P(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}),[]),M})(),R=_?DOMRect.fromRect({..._,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:I,placedSide:$,placedAlign:U}=N3({anchorRect:b,popperSize:y,arrowSize:x,arrowOffset:p,side:n,sideOffset:i,align:s,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),j=$!==void 0;return V.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},V.createElement(j3,{scope:r,arrowStyles:I,onArrowChange:w,onArrowOffsetChange:h},V.createElement(qo.div,Mt({"data-side":$,"data-align":U},f,{style:{...f.style,animation:j?void 0:"none"},ref:O}))))})),H3=z3,B3=$3,W3=F3;function V3({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,i]=(function({defaultProp:u,onChange:f}){const g=V.useState(u),[p]=g,h=V.useRef(p),b=Vi(f);return V.useEffect((()=>{h.current!==p&&(b(p),h.current=p)}),[p,h,b]),g})({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n,c=Vi(r);return[l,V.useCallback((u=>{if(s){const f=u,g=typeof u=="function"?f(e):u;g!==e&&c(g)}else i(u)}),[s,e,i,c])]}const[U3]=Hx("Popover",[Wx]),Dp=Wx(),[q3,Aa]=U3("Popover"),G3=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=Dp(t),u=V.useRef(null),[f,g]=V.useState(!1),[p=!1,h]=V3({prop:n,defaultProp:i,onChange:s});return V.createElement(H3,c,V.createElement(q3,{scope:t,contentId:b3(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:V.useCallback((()=>h((b=>!b))),[h]),hasCustomAnchor:f,onCustomAnchorAdd:V.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:V.useCallback((()=>g(!1)),[]),modal:l},r))},Z3=V.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,i=Aa("PopoverTrigger",r),s=Dp(r),l=Zi(t,i.triggerRef),c=V.createElement(qo.button,Mt({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":qx(i.open)},n,{ref:l,onClick:Bi(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:V.createElement(B3,Mt({asChild:!0},s),c)})),K3=V.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,i=Aa("PopoverContent",e.__scopePopover);return V.createElement($x,{present:r||i.open},i.modal?V.createElement(Y3,Mt({},n,{ref:t})):V.createElement(X3,Mt({},n,{ref:t})))})),Y3=V.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...i}=e,s=Aa("PopoverContent",e.__scopePopover),l=V.useRef(null),c=Zi(t,l),u=V.useRef(!1);V.useEffect((()=>{const g=l.current;if(g)return ND(g)}),[]);const f=n?jx:V.Fragment;return V.createElement(f,null,V.createElement(Dx,{allowPinchZoom:r},V.createElement(Ux,Mt({},i,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bi(e.onCloseAutoFocus,(g=>{var p;g.preventDefault(),u.current||(p=s.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:Bi(e.onPointerDownOutside,(g=>{const p=g.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,b=p.button===2||h;u.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Bi(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),X3=V.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,i=Aa("PopoverContent",e.__scopePopover),s=V.useRef(!1),l=r?jx:V.Fragment;return V.createElement(l,null,V.createElement(Ux,Mt({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,f;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current||(f=i.triggerRef.current)===null||f===void 0||f.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var u,f;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current=!0);const g=c.target;!((f=i.triggerRef.current)===null||f===void 0)&&f.contains(g)&&c.preventDefault()}})))})),Ux=V.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:g,...p}=e,h=Aa("PopoverContent",r),b=Dp(r);return x3(),V.createElement(E3,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},V.createElement(R3,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1)},V.createElement(W3,Mt({"data-state":qx(h.open),role:"dialog",id:h.contentId},b,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function qx(e){return e?"open":"closed"}const J3=G3,Q3=Z3,eL=K3;var yc=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(yc||{}),af={},zs={},Zl={},Kl={},Yl={exports:{}},Xl={exports:{}},Ke={};/** @license React v16.13.1
114
+ `)},d3=0,Eo=[];function f3(e){var t=V.useRef([]),r=V.useRef([0,0]),n=V.useRef(),i=V.useState(d3++)[0],s=V.useState(Dx)[0],l=V.useRef(e);V.useEffect(function(){l.current=e},[e]),V.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(i));var v=Nc([e.lockRef.current],(e.shards||[]).map(ob),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(i))}),function(){document.body.classList.remove("block-interactivity-".concat(i)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(i))})}}},[e.inert,e.lockRef.current,e.shards]);var c=V.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=ql(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],O="deltaY"in v?v.deltaY:w[1]-m[1],_,R=v.target,H=Math.abs(x)>Math.abs(O)?"h":"v";if("touches"in v&&H==="h"&&R.type==="range")return!1;var P=window.getSelection(),z=P&&P.anchorNode,U=z?z===R||z.contains(R):!1;if(U)return!1;var $=nb(H,R);if(!$)return!0;if($?_=H:(_=H==="v"?"h":"v",$=nb(H,R)),!$)return!1;if(!n.current&&"changedTouches"in v&&(x||O)&&(n.current=_),!_)return!0;var M=n.current||_;return l3(M,y,v,M==="h"?x:O)},[]),u=V.useCallback(function(v){var y=v;if(!(!Eo.length||Eo[Eo.length-1]!==s)){var m="deltaY"in y?ib(y):ql(y),w=t.current.filter(function(_){return _.name===y.type&&(_.target===y.target||y.target===_.shadowParent)&&c3(_.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(ob).filter(Boolean).filter(function(_){return _.contains(y.target)}),O=x.length>0?c(y,x[0]):!l.current.noIsolation;O&&y.cancelable&&y.preventDefault()}}},[]),f=V.useCallback(function(v,y,m,w){var x={name:v,delta:y,target:m,should:w,shadowParent:p3(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(O){return O!==x})},1)},[]),g=V.useCallback(function(v){r.current=ql(v),n.current=void 0},[]),p=V.useCallback(function(v){f(v.type,ib(v),v.target,c(v,e.lockRef.current))},[]),h=V.useCallback(function(v){f(v.type,ql(v),v.target,c(v,e.lockRef.current))},[]);V.useEffect(function(){return Eo.push(s),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,So),document.addEventListener("touchmove",u,So),document.addEventListener("touchstart",g,So),function(){Eo=Eo.filter(function(v){return v!==s}),document.removeEventListener("wheel",u,So),document.removeEventListener("touchmove",u,So),document.removeEventListener("touchstart",g,So)}},[]);var b=e.removeScrollBar,S=e.inert;return V.createElement(V.Fragment,null,S?V.createElement(s,{styles:u3(i)}):null,b?V.createElement(t3,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function p3(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const h3=WD(Mx,f3);var jx=V.forwardRef(function(e,t){return V.createElement(eu,bn({},e,{ref:t,sideCar:h3}))});jx.classNames=eu.classNames;const g3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},v3=V.useId||(()=>{});let m3=0;function b3(e){const[t,r]=V.useState(v3());return g3((()=>{r((n=>n??String(m3++)))}),[e]),e||(t?`radix-${t}`:"")}function Fx(...e){return t=>e.forEach((r=>(function(n,i){typeof n=="function"?n(i):n!=null&&(n.current=i)})(r,t)))}function Gi(...e){return V.useCallback(Fx(...e),e)}const Hx=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.Children.toArray(r).some(sb)?V.createElement(V.Fragment,null,V.Children.map(r,(i=>sb(i)?V.createElement(Zf,Dt({},n,{ref:t}),i.props.children):i))):V.createElement(Zf,Dt({},n,{ref:t}),r)}));Hx.displayName="Slot";const Zf=V.forwardRef(((e,t)=>{const{children:r,...n}=e;return V.isValidElement(r)?V.cloneElement(r,{...w3(n,r.props),ref:Fx(t,r.ref)}):V.Children.count(r)>1?V.Children.only(null):null}));Zf.displayName="SlotClone";const y3=({children:e})=>V.createElement(V.Fragment,null,e);function sb(e){return V.isValidElement(e)&&e.type===y3}function w3(e,t){const r={...t};for(const n in t){const i=e[n],s=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{s==null||s(...l),i==null||i(...l)}:n==="style"?r[n]={...i,...s}:n==="className"&&(r[n]=[i,s].filter(Boolean).join(" "))}return{...e,...r}}const qo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:V.forwardRef(((r,n)=>{const{asChild:i,...s}=r,l=i?Hx:t;return V.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),V.createElement(l,Dt({},s,{ref:n}))}))})),{}),ab=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},Wx=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=V.useState(),f=V.useRef({}),g=V.useRef(l),p=V.useRef("none"),h=l?"mounted":"unmounted",[b,S]=(function(v,y){return V.useReducer(((m,w)=>{const x=y[m][w];return x??m}),v)})(h,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return V.useEffect((()=>{const v=Gl(f.current);p.current=b==="mounted"?v:"none"}),[b]),ab((()=>{const v=f.current,y=g.current;if(y!==l){const m=p.current,w=Gl(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(y&&m!==w?"ANIMATION_OUT":"UNMOUNT"),g.current=l}}),[l,S]),ab((()=>{if(c){const v=m=>{const w=Gl(f.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(p.current=Gl(f.current))};return c.addEventListener("animationstart",y),c.addEventListener("animationcancel",v),c.addEventListener("animationend",v),()=>{c.removeEventListener("animationstart",y),c.removeEventListener("animationcancel",v),c.removeEventListener("animationend",v)}}S("ANIMATION_END")}),[c,S]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:V.useCallback((v=>{v&&(f.current=getComputedStyle(v)),u(v)}),[])}})(t),i=typeof r=="function"?r({present:n.isPresent}):V.Children.only(r),s=Gi(n.ref,i.ref);return typeof r=="function"||n.isPresent?V.cloneElement(i,{ref:s}):null};function Gl(e){return(e==null?void 0:e.animationName)||"none"}Wx.displayName="Presence";let cf=0;function x3(){V.useEffect((()=>{var e,t;const r=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",(e=r[0])!==null&&e!==void 0?e:lb()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:lb()),cf++,()=>{cf===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),cf--}}),[])}function lb(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.cssText="outline: none; opacity: 0; position: fixed; pointer-events: none",e}const S3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{},Bx=V.forwardRef(((e,t)=>{var r,n;const{containerRef:i,style:s,...l}=e,c=(r=i==null?void 0:i.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,u]=V.useState({});return S3((()=>{u({})}),[]),c?En.createPortal(V.createElement(qo.div,Dt({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...s}:void 0})),c):null}));function Bi(e){const t=V.useRef(e);return V.useEffect((()=>{t.current=e})),V.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const cb={bubbles:!1,cancelable:!0},E3=V.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:i,onUnmountAutoFocus:s,...l}=e,[c,u]=V.useState(null),f=Bi(i),g=Bi(s),p=V.useRef(null),h=Gi(t,(v=>u(v))),b=V.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;V.useEffect((()=>{if(n){let v=function(m){if(b.paused||!c)return;const w=m.target;c.contains(w)?p.current=w:Ni(p.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||Ni(p.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y)}}}),[n,c,b.paused]),V.useEffect((()=>{if(c){fb.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",cb);c.addEventListener("focusScope.autoFocusOnMount",f),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const O=document.activeElement;for(const _ of w)if(Ni(_,{select:x}),document.activeElement!==O)return})((v=ub(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&Ni(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",f),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",cb);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(m),m.defaultPrevented||Ni(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),fb.remove(b)}),0)}}var v}),[c,f,g,b]);const S=V.useCallback((v=>{if(!r&&!n||b.paused)return;const y=v.key==="Tab"&&!v.altKey&&!v.ctrlKey&&!v.metaKey,m=document.activeElement;if(y&&m){const w=v.currentTarget,[x,O]=(function(_){const R=ub(_),H=db(R,_),P=db(R.reverse(),_);return[H,P]})(w);x&&O?v.shiftKey||m!==O?v.shiftKey&&m===x&&(v.preventDefault(),r&&Ni(O,{select:!0})):(v.preventDefault(),r&&Ni(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return V.createElement(qo.div,Dt({tabIndex:-1},l,{ref:h,onKeyDown:S}))}));function ub(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const i=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||i?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function db(e,t){for(const r of e)if(!_3(r,{upTo:t}))return r}function _3(e,{upTo:t}){if(getComputedStyle(e).visibility==="hidden")return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display==="none")return!0;e=e.parentElement}return!1}function Ni(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(n){return n instanceof HTMLInputElement&&"select"in n})(e)&&t&&e.select()}}const fb=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=pb(e,t),e.unshift(t)},remove(t){var r;e=pb(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function pb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function O3(e){const t=Bi(e);V.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const k3=globalThis!=null&&globalThis.document?V.useLayoutEffect:()=>{};let hb,Zl=0;function A3({disabled:e}){const t=V.useRef(!1);k3((()=>{if(e){let r=function(){Zl--,Zl===0&&(document.body.style.pointerEvents=hb)},n=function(i){t.current=i.pointerType!=="mouse"};return Zl===0&&(hb=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Zl++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Hi(e,t,{checkForDefaultPrevented:r=!0}={}){return function(n){if(e==null||e(n),r===!1||!n.defaultPrevented)return t==null?void 0:t(n)}}const T3=V.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),R3=V.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:i,onFocusOutside:s,onInteractOutside:l,onDismiss:c,...u}=e,f=V.useContext(T3),[g,p]=V.useState(null),[,h]=V.useState({}),b=Gi(t,(R=>p(R))),S=Array.from(f.layers),[v]=[...f.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(v),m=g?S.indexOf(g):-1,w=f.layersWithOutsidePointerEventsDisabled.size>0,x=m>=y,O=(function(R){const H=Bi(R),P=V.useRef(!1);return V.useEffect((()=>{const z=$=>{$.target&&!P.current&&vb("dismissableLayer.pointerDownOutside",H,{originalEvent:$}),P.current=!1},U=window.setTimeout((()=>{document.addEventListener("pointerdown",z)}),0);return()=>{window.clearTimeout(U),document.removeEventListener("pointerdown",z)}}),[H]),{onPointerDownCapture:()=>P.current=!0}})((R=>{const H=R.target,P=[...f.branches].some((z=>z.contains(H)));x&&!P&&(i==null||i(R),l==null||l(R),R.defaultPrevented||c==null||c())})),_=(function(R){const H=Bi(R),P=V.useRef(!1);return V.useEffect((()=>{const z=U=>{U.target&&!P.current&&vb("dismissableLayer.focusOutside",H,{originalEvent:U})};return document.addEventListener("focusin",z),()=>document.removeEventListener("focusin",z)}),[H]),{onFocusCapture:()=>P.current=!0,onBlurCapture:()=>P.current=!1}})((R=>{const H=R.target;[...f.branches].some((P=>P.contains(H)))||(s==null||s(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return O3((R=>{m===f.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),A3({disabled:r}),V.useEffect((()=>{g&&(r&&f.layersWithOutsidePointerEventsDisabled.add(g),f.layers.add(g),gb())}),[g,r,f]),V.useEffect((()=>()=>{g&&(f.layers.delete(g),f.layersWithOutsidePointerEventsDisabled.delete(g),gb())}),[g,f]),V.useEffect((()=>{const R=()=>h({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),V.createElement(qo.div,Dt({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Hi(e.onFocusCapture,_.onFocusCapture),onBlurCapture:Hi(e.onBlurCapture,_.onBlurCapture),onPointerDownCapture:Hi(e.onPointerDownCapture,O.onPointerDownCapture)}))}));function gb(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function vb(e,t,r){const n=r.originalEvent.target,i=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(i)}function mb(e){const[t,r]=V.useState(void 0);return V.useEffect((()=>{if(e){const n=new ResizeObserver((i=>{if(!Array.isArray(i)||!i.length)return;const s=i[0];let l,c;if("borderBoxSize"in s){const u=s.borderBoxSize,f=Array.isArray(u)?u[0]:u;l=f.inlineSize,c=f.blockSize}else{const u=e.getBoundingClientRect();l=u.width,c=u.height}r({width:l,height:c})}));return n.observe(e,{box:"border-box"}),()=>n.unobserve(e)}r(void 0)}),[e]),t}function C3(e,t){const r=Mi.get(e);return r===void 0?(Mi.set(e,{rect:{},callbacks:[t]}),Mi.size===1&&(Kf=requestAnimationFrame(Vx))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Mi.get(e);if(n===void 0)return;const i=n.callbacks.indexOf(t);i>-1&&n.callbacks.splice(i,1),n.callbacks.length===0&&(Mi.delete(e),Mi.size===0&&cancelAnimationFrame(Kf))}}let Kf;const Mi=new Map;function Vx(){const e=[];Mi.forEach(((t,r)=>{const n=r.getBoundingClientRect();var i,s;i=t.rect,s=n,(i.width!==s.width||i.height!==s.height||i.top!==s.top||i.right!==s.right||i.bottom!==s.bottom||i.left!==s.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Kf=requestAnimationFrame(Vx)}function P3(e){const[t,r]=V.useState();return V.useEffect((()=>{if(e){const n=C3(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Ux(e,t=[]){let r=[];const n=()=>{const i=r.map((s=>V.createContext(s)));return function(s){const l=(s==null?void 0:s[e])||i;return V.useMemo((()=>({[`__scope${e}`]:{...s,[e]:l}})),[s,l])}};return n.scopeName=e,[function(i,s){const l=V.createContext(s),c=r.length;function u(f){const{scope:g,children:p,...h}=f,b=(g==null?void 0:g[e][c])||l,S=V.useMemo((()=>h),Object.values(h));return V.createElement(b.Provider,{value:S},p)}return r=[...r,s],u.displayName=i+"Provider",[u,function(f,g){const p=(g==null?void 0:g[e][c])||l,h=V.useContext(p);if(h)return h;if(s!==void 0)return s;throw new Error(`\`${f}\` must be used within \`${i}\``)}]},I3(n,...t)]}function I3(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((i=>({useScope:i(),scopeName:i.scopeName})));return function(i){const s=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(i)[`__scope${u}`]})),{});return V.useMemo((()=>({[`__scope${t.scopeName}`]:s})),[s])}};return r.scopeName=t.scopeName,r}function N3({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:i,sideOffset:s=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:f,collisionTolerance:g=0}){if(!e||!t||!f)return{popperStyles:M3,arrowStyles:uf};const p=(function(H,P,z=0,U=0,$){const M=$?$.height:0,D=bb(P,H,"x"),F=bb(P,H,"y"),I=F.before-z-M,K=F.after+z+M,te=D.before-z-M,Y=D.after+z+M;return{top:{start:{x:D.start+U,y:I},center:{x:D.center,y:I},end:{x:D.end-U,y:I}},right:{start:{x:Y,y:F.start+U},center:{x:Y,y:F.center},end:{x:Y,y:F.end-U}},bottom:{start:{x:D.start+U,y:K},center:{x:D.center,y:K},end:{x:D.end-U,y:K}},left:{start:{x:te,y:F.start+U},center:{x:te,y:F.center},end:{x:te,y:F.end-U}}}})(t,e,s,c,r),h=p[i][l];if(u===!1){const H=yb(h);let P=uf;return r&&(P=xb({popperSize:t,arrowSize:r,arrowOffset:n,side:i,align:l})),{popperStyles:{...H,"--radix-popper-transform-origin":wb(t,i,l,n,r)},arrowStyles:P,placedSide:i,placedAlign:l}}const b=DOMRect.fromRect({...t,...h}),S=(v=f,y=g,DOMRect.fromRect({width:v.width-2*y,height:v.height-2*y,x:v.left+y,y:v.top+y}));var v,y;const m=Eb(b,S),w=p[Sb(i)][l],x=(function(H,P,z){const U=Sb(H);return P[H]&&!z[U]?U:H})(i,m,Eb(DOMRect.fromRect({...t,...w}),S)),O=(function(H,P,z,U,$){const M=z==="top"||z==="bottom",D=M?"left":"top",F=M?"right":"bottom",I=M?"width":"height",K=P[I]>H[I];return(U==="start"||U==="center")&&($[D]&&K||$[F]&&!K)?"end":(U==="end"||U==="center")&&($[F]&&K||$[D]&&!K)?"start":U})(t,e,i,l,m),_=yb(p[x][O]);let R=uf;return r&&(R=xb({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:O})),{popperStyles:{..._,"--radix-popper-transform-origin":wb(t,x,O,n,r)},arrowStyles:R,placedSide:x,placedAlign:O}}function bb(e,t,r){const n=e[r==="x"?"left":"top"],i=r==="x"?"width":"height",s=e[i],l=t[i];return{before:n-l,start:n,center:n+(s-l)/2,end:n+s-l,after:n+s}}function yb(e){return{position:"absolute",top:0,left:0,minWidth:"max-content",willChange:"transform",transform:`translate3d(${Math.round(e.x+window.scrollX)}px, ${Math.round(e.y+window.scrollY)}px, 0)`}}function wb(e,t,r,n,i){const s=t==="top"||t==="bottom",l=i?i.width:0,c=i?i.height:0,u=l/2+n;let f="",g="";return s?(f={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(f=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${f} ${g}`}const M3={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},uf={position:"absolute",opacity:0};function xb({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:i}){const s=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[n],u=Math.max(t.width,t.height),f={width:`${u}px`,height:`${u}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:D3(n,i)};return n!=="top"&&n!=="bottom"||(i==="start"&&(f.left=`${r}px`),i==="center"&&(f.left=`${s}px`),i==="end"&&(f.right=`${r}px`)),n!=="left"&&n!=="right"||(i==="start"&&(f.top=`${r}px`),i==="center"&&(f.top=`${l}px`),i==="end"&&(f.bottom=`${r}px`)),f}function D3(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Sb(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Eb(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[qx,Gx]=Ux("Popper"),[L3,Zx]=qx("Popper"),z3=e=>{const{__scopePopper:t,children:r}=e,[n,i]=V.useState(null);return V.createElement(L3,{scope:t,anchor:n,onAnchorChange:i},r)},$3=V.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...i}=e,s=Zx("PopperAnchor",r),l=V.useRef(null),c=Gi(t,l);return V.useEffect((()=>{s.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:V.createElement(qo.div,Dt({},i,{ref:c}))})),[j3,Z6]=qx("PopperContent"),F3=V.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:i,align:s="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...f}=e,g=Zx("PopperContent",r),[p,h]=V.useState(),b=P3(g.anchor),[S,v]=V.useState(null),y=mb(S),[m,w]=V.useState(null),x=mb(m),O=Gi(t,(M=>v(M))),_=(function(){const[M,D]=V.useState(void 0);return V.useEffect((()=>{let F;function I(){D({width:window.innerWidth,height:window.innerHeight})}function K(){window.clearTimeout(F),F=window.setTimeout(I,100)}return I(),window.addEventListener("resize",K),()=>window.removeEventListener("resize",K)}),[]),M})(),R=_?DOMRect.fromRect({..._,x:0,y:0}):void 0,{popperStyles:H,arrowStyles:P,placedSide:z,placedAlign:U}=N3({anchorRect:b,popperSize:y,arrowSize:x,arrowOffset:p,side:n,sideOffset:i,align:s,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),$=z!==void 0;return V.createElement("div",{style:H,"data-radix-popper-content-wrapper":""},V.createElement(j3,{scope:r,arrowStyles:P,onArrowChange:w,onArrowOffsetChange:h},V.createElement(qo.div,Dt({"data-side":z,"data-align":U},f,{style:{...f.style,animation:$?void 0:"none"},ref:O}))))})),H3=z3,W3=$3,B3=F3;function V3({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,i]=(function({defaultProp:u,onChange:f}){const g=V.useState(u),[p]=g,h=V.useRef(p),b=Bi(f);return V.useEffect((()=>{h.current!==p&&(b(p),h.current=p)}),[p,h,b]),g})({defaultProp:t,onChange:r}),s=e!==void 0,l=s?e:n,c=Bi(r);return[l,V.useCallback((u=>{if(s){const f=u,g=typeof u=="function"?f(e):u;g!==e&&c(g)}else i(u)}),[s,e,i,c])]}const[U3]=Ux("Popover",[Gx]),jp=Gx(),[q3,Aa]=U3("Popover"),G3=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:i,onOpenChange:s,modal:l=!1}=e,c=jp(t),u=V.useRef(null),[f,g]=V.useState(!1),[p=!1,h]=V3({prop:n,defaultProp:i,onChange:s});return V.createElement(H3,c,V.createElement(q3,{scope:t,contentId:b3(),triggerRef:u,open:p,onOpenChange:h,onOpenToggle:V.useCallback((()=>h((b=>!b))),[h]),hasCustomAnchor:f,onCustomAnchorAdd:V.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:V.useCallback((()=>g(!1)),[]),modal:l},r))},Z3=V.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,i=Aa("PopoverTrigger",r),s=jp(r),l=Gi(t,i.triggerRef),c=V.createElement(qo.button,Dt({type:"button","aria-haspopup":"dialog","aria-expanded":i.open,"aria-controls":i.contentId,"data-state":Yx(i.open)},n,{ref:l,onClick:Hi(e.onClick,i.onOpenToggle)}));return i.hasCustomAnchor?c:V.createElement(W3,Dt({asChild:!0},s),c)})),K3=V.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,i=Aa("PopoverContent",e.__scopePopover);return V.createElement(Wx,{present:r||i.open},i.modal?V.createElement(Y3,Dt({},n,{ref:t})):V.createElement(X3,Dt({},n,{ref:t})))})),Y3=V.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...i}=e,s=Aa("PopoverContent",e.__scopePopover),l=V.useRef(null),c=Gi(t,l),u=V.useRef(!1);V.useEffect((()=>{const g=l.current;if(g)return ND(g)}),[]);const f=n?Bx:V.Fragment;return V.createElement(f,null,V.createElement(jx,{allowPinchZoom:r},V.createElement(Kx,Dt({},i,{ref:c,trapFocus:s.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Hi(e.onCloseAutoFocus,(g=>{var p;g.preventDefault(),u.current||(p=s.triggerRef.current)===null||p===void 0||p.focus()})),onPointerDownOutside:Hi(e.onPointerDownOutside,(g=>{const p=g.detail.originalEvent,h=p.button===0&&p.ctrlKey===!0,b=p.button===2||h;u.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Hi(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),X3=V.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,i=Aa("PopoverContent",e.__scopePopover),s=V.useRef(!1),l=r?Bx:V.Fragment;return V.createElement(l,null,V.createElement(Kx,Dt({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,f;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current||(f=i.triggerRef.current)===null||f===void 0||f.focus(),c.preventDefault()),s.current=!1},onInteractOutside:c=>{var u,f;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(s.current=!0);const g=c.target;!((f=i.triggerRef.current)===null||f===void 0)&&f.contains(g)&&c.preventDefault()}})))})),Kx=V.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onInteractOutside:g,...p}=e,h=Aa("PopoverContent",r),b=jp(r);return x3(),V.createElement(E3,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:i,onUnmountAutoFocus:s},V.createElement(R3,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:f,onDismiss:()=>h.onOpenChange(!1)},V.createElement(B3,Dt({"data-state":Yx(h.open),role:"dialog",id:h.contentId},b,p,{ref:t,style:{...p.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Yx(e){return e?"open":"closed"}const J3=G3,Q3=Z3,eL=K3;var wc=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(wc||{}),df={},zs={},Kl={},Yl={},Xl={exports:{}},Jl={exports:{}},Ke={};/** @license React v16.13.1
115
115
  * react-is.production.min.js
116
116
  *
117
117
  * Copyright (c) Facebook, Inc. and its affiliates.
118
118
  *
119
119
  * This source code is licensed under the MIT license found in the
120
120
  * LICENSE file in the root directory of this source tree.
121
- */var wb;function tL(){if(wb)return Ke;wb=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Ke.AsyncMode=u,Ke.ConcurrentMode=f,Ke.ContextConsumer=c,Ke.ContextProvider=l,Ke.Element=t,Ke.ForwardRef=g,Ke.Fragment=n,Ke.Lazy=S,Ke.Memo=b,Ke.Portal=r,Ke.Profiler=s,Ke.StrictMode=i,Ke.Suspense=p,Ke.isAsyncMode=function(_){return O(_)||x(_)===u},Ke.isConcurrentMode=O,Ke.isContextConsumer=function(_){return x(_)===c},Ke.isContextProvider=function(_){return x(_)===l},Ke.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ke.isForwardRef=function(_){return x(_)===g},Ke.isFragment=function(_){return x(_)===n},Ke.isLazy=function(_){return x(_)===S},Ke.isMemo=function(_){return x(_)===b},Ke.isPortal=function(_){return x(_)===r},Ke.isProfiler=function(_){return x(_)===s},Ke.isStrictMode=function(_){return x(_)===i},Ke.isSuspense=function(_){return x(_)===p},Ke.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ke.typeOf=x,Ke}var Ye={};/** @license React v16.13.1
121
+ */var _b;function tL(){if(_b)return Ke;_b=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(_){if(typeof _=="object"&&_!==null){var R=_.$$typeof;switch(R){case t:switch(_=_.type,_){case u:case f:case n:case s:case i:case p:return _;default:switch(_=_&&_.$$typeof,_){case c:case g:case S:case b:case l:return _;default:return R}}case r:return R}}}function O(_){return x(_)===f}return Ke.AsyncMode=u,Ke.ConcurrentMode=f,Ke.ContextConsumer=c,Ke.ContextProvider=l,Ke.Element=t,Ke.ForwardRef=g,Ke.Fragment=n,Ke.Lazy=S,Ke.Memo=b,Ke.Portal=r,Ke.Profiler=s,Ke.StrictMode=i,Ke.Suspense=p,Ke.isAsyncMode=function(_){return O(_)||x(_)===u},Ke.isConcurrentMode=O,Ke.isContextConsumer=function(_){return x(_)===c},Ke.isContextProvider=function(_){return x(_)===l},Ke.isElement=function(_){return typeof _=="object"&&_!==null&&_.$$typeof===t},Ke.isForwardRef=function(_){return x(_)===g},Ke.isFragment=function(_){return x(_)===n},Ke.isLazy=function(_){return x(_)===S},Ke.isMemo=function(_){return x(_)===b},Ke.isPortal=function(_){return x(_)===r},Ke.isProfiler=function(_){return x(_)===s},Ke.isStrictMode=function(_){return x(_)===i},Ke.isSuspense=function(_){return x(_)===p},Ke.isValidElementType=function(_){return typeof _=="string"||typeof _=="function"||_===n||_===f||_===s||_===i||_===p||_===h||typeof _=="object"&&_!==null&&(_.$$typeof===S||_.$$typeof===b||_.$$typeof===l||_.$$typeof===c||_.$$typeof===g||_.$$typeof===y||_.$$typeof===m||_.$$typeof===w||_.$$typeof===v)},Ke.typeOf=x,Ke}var Ye={};/** @license React v16.13.1
122
122
  * react-is.development.js
123
123
  *
124
124
  * Copyright (c) Facebook, Inc. and its affiliates.
125
125
  *
126
126
  * This source code is licensed under the MIT license found in the
127
127
  * LICENSE file in the root directory of this source tree.
128
- */var xb;function rL(){return xb||(xb=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===f||Z===s||Z===i||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===g||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function O(Z){if(typeof Z=="object"&&Z!==null){var Te=Z.$$typeof;switch(Te){case t:var ge=Z.type;switch(ge){case u:case f:case n:case s:case i:case p:return ge;default:var at=ge&&ge.$$typeof;switch(at){case c:case g:case S:case b:case l:return at;default:return Te}}case r:return Te}}}var _=u,R=f,H=c,I=l,$=t,U=g,j=n,M=S,D=b,F=r,P=s,K=i,ee=p,Y=!1;function ve(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),z(Z)||O(Z)===u}function z(Z){return O(Z)===f}function W(Z){return O(Z)===c}function X(Z){return O(Z)===l}function te(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return O(Z)===g}function oe(Z){return O(Z)===n}function ae(Z){return O(Z)===S}function ne(Z){return O(Z)===b}function de(Z){return O(Z)===r}function he(Z){return O(Z)===s}function fe(Z){return O(Z)===i}function ye(Z){return O(Z)===p}Ye.AsyncMode=_,Ye.ConcurrentMode=R,Ye.ContextConsumer=H,Ye.ContextProvider=I,Ye.Element=$,Ye.ForwardRef=U,Ye.Fragment=j,Ye.Lazy=M,Ye.Memo=D,Ye.Portal=F,Ye.Profiler=P,Ye.StrictMode=K,Ye.Suspense=ee,Ye.isAsyncMode=ve,Ye.isConcurrentMode=z,Ye.isContextConsumer=W,Ye.isContextProvider=X,Ye.isElement=te,Ye.isForwardRef=J,Ye.isFragment=oe,Ye.isLazy=ae,Ye.isMemo=ne,Ye.isPortal=de,Ye.isProfiler=he,Ye.isStrictMode=fe,Ye.isSuspense=ye,Ye.isValidElementType=x,Ye.typeOf=O})()),Ye}var Sb;function Gx(){return Sb||(Sb=1,process.env.NODE_ENV==="production"?Xl.exports=tL():Xl.exports=rL()),Xl.exports}/*
128
+ */var Ob;function rL(){return Ob||(Ob=1,process.env.NODE_ENV!=="production"&&(function(){var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,n=e?Symbol.for("react.fragment"):60107,i=e?Symbol.for("react.strict_mode"):60108,s=e?Symbol.for("react.profiler"):60114,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,f=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,p=e?Symbol.for("react.suspense"):60113,h=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,S=e?Symbol.for("react.lazy"):60116,v=e?Symbol.for("react.block"):60121,y=e?Symbol.for("react.fundamental"):60117,m=e?Symbol.for("react.responder"):60118,w=e?Symbol.for("react.scope"):60119;function x(Z){return typeof Z=="string"||typeof Z=="function"||Z===n||Z===f||Z===s||Z===i||Z===p||Z===h||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===g||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function O(Z){if(typeof Z=="object"&&Z!==null){var Oe=Z.$$typeof;switch(Oe){case t:var ge=Z.type;switch(ge){case u:case f:case n:case s:case i:case p:return ge;default:var at=ge&&ge.$$typeof;switch(at){case c:case g:case S:case b:case l:return at;default:return Oe}}case r:return Oe}}}var _=u,R=f,H=c,P=l,z=t,U=g,$=n,M=S,D=b,F=r,I=s,K=i,te=p,Y=!1;function ve(Z){return Y||(Y=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),j(Z)||O(Z)===u}function j(Z){return O(Z)===f}function W(Z){return O(Z)===c}function ee(Z){return O(Z)===l}function Q(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function X(Z){return O(Z)===g}function ue(Z){return O(Z)===n}function ie(Z){return O(Z)===S}function ne(Z){return O(Z)===b}function de(Z){return O(Z)===r}function pe(Z){return O(Z)===s}function he(Z){return O(Z)===i}function xe(Z){return O(Z)===p}Ye.AsyncMode=_,Ye.ConcurrentMode=R,Ye.ContextConsumer=H,Ye.ContextProvider=P,Ye.Element=z,Ye.ForwardRef=U,Ye.Fragment=$,Ye.Lazy=M,Ye.Memo=D,Ye.Portal=F,Ye.Profiler=I,Ye.StrictMode=K,Ye.Suspense=te,Ye.isAsyncMode=ve,Ye.isConcurrentMode=j,Ye.isContextConsumer=W,Ye.isContextProvider=ee,Ye.isElement=Q,Ye.isForwardRef=X,Ye.isFragment=ue,Ye.isLazy=ie,Ye.isMemo=ne,Ye.isPortal=de,Ye.isProfiler=pe,Ye.isStrictMode=he,Ye.isSuspense=xe,Ye.isValidElementType=x,Ye.typeOf=O})()),Ye}var kb;function Xx(){return kb||(kb=1,process.env.NODE_ENV==="production"?Jl.exports=tL():Jl.exports=rL()),Jl.exports}/*
129
129
  object-assign
130
130
  (c) Sindre Sorhus
131
131
  @license MIT
132
- */var lf,Eb;function nL(){if(Eb)return lf;Eb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return lf=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},lf}var cf,_b;function Lp(){if(_b)return cf;_b=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return cf=e,cf}var uf,Ob;function Zx(){return Ob||(Ob=1,uf=Function.call.bind(Object.prototype.hasOwnProperty)),uf}var df,kb;function iL(){if(kb)return df;kb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Lp(),r={},n=Zx();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},df=i,df}var ff,Ab;function oL(){if(Ab)return ff;Ab=1;var e=Gx(),t=nL(),r=Lp(),n=Zx(),i=iL(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return ff=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(z){var W=z&&(f&&z[f]||z[g]);if(typeof W=="function")return W}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:U(),objectOf:I,oneOf:H,oneOfType:$,shape:M,exact:D};function S(z,W){return z===W?z!==0||1/z===1/W:z!==z&&W!==W}function v(z,W){this.message=z,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function y(z){if(process.env.NODE_ENV!=="production")var W={},X=0;function te(oe,ae,ne,de,he,fe,ye){if(de=de||h,fe=fe||ne,ye!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Te=de+":"+ne;!W[Te]&&X<3&&(s("You are manually calling a React.PropTypes validation function for the `"+fe+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Te]=!0,X++)}}return ae[ne]==null?oe?ae[ne]===null?new v("The "+he+" `"+fe+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+he+" `"+fe+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:z(ae,ne,de,he,fe)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(z){function W(X,te,J,oe,ae,ne){var de=X[te],he=K(de);if(he!==z){var fe=ee(de);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+fe+"` supplied to `"+J+"`, expected ")+("`"+z+"`."),{expectedType:z})}return null}return y(W)}function w(){return y(l)}function x(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var ne=X[te];if(!Array.isArray(ne)){var de=K(ne);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<ne.length;he++){var fe=z(ne,he,J,oe,ae+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(W)}function O(){function z(W,X,te,J,oe){var ae=W[X];if(!c(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(z)}function _(){function z(W,X,te,J,oe){var ae=W[X];if(!e.isValidElementType(ae)){var ne=K(ae);return new v("Invalid "+J+" `"+oe+"` of type "+("`"+ne+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(z)}function R(z){function W(X,te,J,oe,ae){if(!(X[te]instanceof z)){var ne=z.name||h,de=ve(X[te]);return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(W)}function H(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function W(X,te,J,oe,ae){for(var ne=X[te],de=0;de<z.length;de++)if(S(ne,z[de]))return null;var he=JSON.stringify(z,function(ye,Z){var Te=ee(Z);return Te==="symbol"?String(Z):Z});return new v("Invalid "+oe+" `"+ae+"` of value `"+String(ne)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return y(W)}function I(z){function W(X,te,J,oe,ae){if(typeof z!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an object."));for(var he in ne)if(n(ne,he)){var fe=z(ne,he,J,oe,ae+"."+he,r);if(fe instanceof Error)return fe}return null}return y(W)}function $(z){if(!Array.isArray(z))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<z.length;W++){var X=z[W];if(typeof X!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(X)+" at index "+W+"."),l}function te(J,oe,ae,ne,de){for(var he=[],fe=0;fe<z.length;fe++){var ye=z[fe],Z=ye(J,oe,ae,ne,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var Te=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+ne+" `"+de+"` supplied to "+("`"+ae+"`"+Te+"."))}return y(te)}function U(){function z(W,X,te,J,oe){return F(W[X])?null:new v("Invalid "+J+" `"+oe+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(z)}function j(z,W,X,te,J){return new v((z||"React class")+": "+W+" type `"+X+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function M(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in z){var fe=z[he];if(typeof fe!="function")return j(J,oe,ae,he,ee(fe));var ye=fe(ne,he,J,oe,ae+"."+he,r);if(ye)return ye}return null}return y(W)}function D(z){function W(X,te,J,oe,ae){var ne=X[te],de=K(ne);if(de!=="object")return new v("Invalid "+oe+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},X[te],z);for(var fe in he){var ye=z[fe];if(n(z,fe)&&typeof ye!="function")return j(J,oe,ae,fe,ee(ye));if(!ye)return new v("Invalid "+oe+" `"+ae+"` key `"+fe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(X[te],null," ")+`
133
- Valid keys: `+JSON.stringify(Object.keys(z),null," "));var Z=ye(ne,fe,J,oe,ae+"."+fe,r);if(Z)return Z}return null}return y(W)}function F(z){switch(typeof z){case"number":case"string":case"undefined":return!0;case"boolean":return!z;case"object":if(Array.isArray(z))return z.every(F);if(z===null||c(z))return!0;var W=p(z);if(W){var X=W.call(z),te;if(W!==z.entries){for(;!(te=X.next()).done;)if(!F(te.value))return!1}else for(;!(te=X.next()).done;){var J=te.value;if(J&&!F(J[1]))return!1}}else return!1;return!0;default:return!1}}function P(z,W){return z==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(z){var W=typeof z;return Array.isArray(z)?"array":z instanceof RegExp?"object":P(W,z)?"symbol":W}function ee(z){if(typeof z>"u"||z===null)return""+z;var W=K(z);if(W==="object"){if(z instanceof Date)return"date";if(z instanceof RegExp)return"regexp"}return W}function Y(z){var W=ee(z);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(z){return!z.constructor||!z.constructor.name?h:z.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},ff}var pf,Tb;function sL(){if(Tb)return pf;Tb=1;var e=Lp();function t(){}function r(){}return r.resetWarningCache=t,pf=function(){function n(l,c,u,f,g,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},pf}var Rb;function aL(){if(Rb)return Yl.exports;if(Rb=1,process.env.NODE_ENV!=="production"){var e=Gx(),t=!0;Yl.exports=oL()(e.isElement,t)}else Yl.exports=sL()();return Yl.exports}var Cb;function lL(){return Cb||(Cb=1,(function(e){(function(t,r){r(e,N,aL())})(Kl,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var i=l(r),s=l(n);function l(w){return w&&w.__esModule?w:{default:w}}var c=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var O=arguments[x];for(var _ in O)Object.prototype.hasOwnProperty.call(O,_)&&(w[_]=O[_])}return w};function u(w,x){var O={};for(var _ in w)x.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(w,_)&&(O[_]=w[_]);return O}function f(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var g=(function(){function w(x,O){for(var _=0;_<O.length;_++){var R=O[_];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,O,_){return O&&w(x.prototype,O),_&&w(x,_),x}})();function p(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function h(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var b=!1;function S(w){b=w}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return b?w:w.capture}function y(w){if("touches"in w){var x=w.touches[0],O=x.pageX,_=x.pageY;return{x:O,y:_}}var R=w.screenX,H=w.screenY;return{x:R,y:H}}var m=(function(w){h(x,w);function x(){var O;f(this,x);for(var _=arguments.length,R=Array(_),H=0;H<_;H++)R[H]=arguments[H];var I=p(this,(O=x.__proto__||Object.getPrototypeOf(x)).call.apply(O,[this].concat(R)));return I._handleSwipeStart=I._handleSwipeStart.bind(I),I._handleSwipeMove=I._handleSwipeMove.bind(I),I._handleSwipeEnd=I._handleSwipeEnd.bind(I),I._onMouseDown=I._onMouseDown.bind(I),I._onMouseMove=I._onMouseMove.bind(I),I._onMouseUp=I._onMouseUp.bind(I),I._setSwiperRef=I._setSwiperRef.bind(I),I}return g(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(_){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(_))}},{key:"_onMouseMove",value:function(_){this.mouseDown&&this._handleSwipeMove(_)}},{key:"_onMouseUp",value:function(_){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(_)}},{key:"_handleSwipeStart",value:function(_){var R=y(_),H=R.x,I=R.y;this.moveStart={x:H,y:I},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var R=y(_),H=R.x,I=R.y,$=H-this.moveStart.x,U=I-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:$,y:U},_);j&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:$,deltaY:U}}}},{key:"_handleSwipeEnd",value:function(_){this.props.onSwipeEnd(_);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,_):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,_),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,_):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,_)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(_){this.swiper=_,this.props.innerRef(_)}},{key:"render",value:function(){var _=this.props;_.tagName;var R=_.className,H=_.style,I=_.children;_.allowMouseEvents,_.onSwipeUp,_.onSwipeDown,_.onSwipeLeft,_.onSwipeRight,_.onSwipeStart,_.onSwipeMove,_.onSwipeEnd,_.innerRef,_.tolerance;var $=u(_,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return i.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:H},$),I)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},m.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=m})})(Kl)),Kl}var Ib;function Kx(){return Ib||(Ib=1,(function(e){(function(t,r){r(e,lL())})(Zl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}t.default=n.default})})(Zl)),Zl}var $s={},Pb;function Yx(){if(Pb)return $s;Pb=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=t(lx());function t(i){return i&&i.__esModule?i:{default:i}}function r(i,s,l){return s in i?Object.defineProperty(i,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[s]=l,i}var n={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return $s.default=n,$s}var js={},Fs={},Nb;function cL(){if(Nb)return Fs;Nb=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,i=getComputedStyle(r);return n+=parseInt(i.marginLeft)+parseInt(i.marginRight),n};return Fs.outerWidth=e,Fs}var Hs={},Mb;function zp(){if(Mb)return Hs;Mb=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=function(r,n,i){var s=r===0?r:r+n,l=i==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",u="("+l.join(",")+")";return c+u};return Hs.default=e,Hs}var Bs={},Db;function Xx(){if(Db)return Bs;Db=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=function(){return window};return Bs.default=e,Bs}var Lb;function Jx(){if(Lb)return js;Lb=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e=u(N),t=l(Yx()),r=cL(),n=l(zp()),i=l(Kx()),s=l(Xx());function l(I){return I&&I.__esModule?I:{default:I}}function c(){if(typeof WeakMap!="function")return null;var I=new WeakMap;return c=function(){return I},I}function u(I){if(I&&I.__esModule)return I;if(I===null||f(I)!=="object"&&typeof I!="function")return{default:I};var $=c();if($&&$.has(I))return $.get(I);var U={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in I)if(Object.prototype.hasOwnProperty.call(I,M)){var D=j?Object.getOwnPropertyDescriptor(I,M):null;D&&(D.get||D.set)?Object.defineProperty(U,M,D):U[M]=I[M]}return U.default=I,$&&$.set(I,U),U}function f(I){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(U){return typeof U}:f=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},f(I)}function g(){return g=Object.assign||function(I){for(var $=1;$<arguments.length;$++){var U=arguments[$];for(var j in U)Object.prototype.hasOwnProperty.call(U,j)&&(I[j]=U[j])}return I},g.apply(this,arguments)}function p(I,$){if(!(I instanceof $))throw new TypeError("Cannot call a class as a function")}function h(I,$){for(var U=0;U<$.length;U++){var j=$[U];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(I,j.key,j)}}function b(I,$,U){return $&&h(I.prototype,$),I}function S(I,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");I.prototype=Object.create($&&$.prototype,{constructor:{value:I,writable:!0,configurable:!0}}),$&&v(I,$)}function v(I,$){return v=Object.setPrototypeOf||function(j,M){return j.__proto__=M,j},v(I,$)}function y(I){var $=x();return function(){var j=O(I),M;if($){var D=O(this).constructor;M=Reflect.construct(j,arguments,D)}else M=j.apply(this,arguments);return m(this,M)}}function m(I,$){return $&&(f($)==="object"||typeof $=="function")?$:w(I)}function w(I){if(I===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return I}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(I){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},O(I)}function _(I,$,U){return $ in I?Object.defineProperty(I,$,{value:U,enumerable:!0,configurable:!0,writable:!0}):I[$]=U,I}var R=function($){return $.hasOwnProperty("key")},H=(function(I){S(U,I);var $=y(U);function U(j){var M;return p(this,U),M=$.call(this,j),_(w(M),"itemsWrapperRef",void 0),_(w(M),"itemsListRef",void 0),_(w(M),"thumbsRef",void 0),_(w(M),"setItemsWrapperRef",function(D){M.itemsWrapperRef=D}),_(w(M),"setItemsListRef",function(D){M.itemsListRef=D}),_(w(M),"setThumbsRef",function(D,F){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[F]=D}),_(w(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var D=e.Children.count(M.props.children),F=M.itemsWrapperRef.clientWidth,P=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),K=Math.floor(F/P),ee=K<D,Y=ee?D-K:0;M.setState(function(ve,z){return{itemSize:P,visibleItems:K,firstItem:ee?M.getFirstItem(z.selectedItem):0,lastPosition:Y,showArrows:ee}})}}),_(w(M),"handleClickItem",function(D,F,P){if(!R(P)||P.key==="Enter"){var K=M.props.onSelectItem;typeof K=="function"&&K(D,F)}}),_(w(M),"onSwipeStart",function(){M.setState({swiping:!0})}),_(w(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),_(w(M),"onSwipeMove",function(D){var F=D.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var P=0,K=e.Children.count(M.props.children),ee=-(M.state.firstItem*100)/M.state.visibleItems,Y=Math.max(K-M.state.visibleItems,0),ve=-Y*100/M.state.visibleItems;ee===P&&F>0&&(F=0),ee===ve&&F<0&&(F=0);var z=M.itemsWrapperRef.clientWidth,W=ee+100/(z/F);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(X){M.itemsListRef.style[X]=(0,n.default)(W,"%",M.props.axis)}),!0}),_(w(M),"slideRight",function(D){M.moveTo(M.state.firstItem-(typeof D=="number"?D:1))}),_(w(M),"slideLeft",function(D){M.moveTo(M.state.firstItem+(typeof D=="number"?D:1))}),_(w(M),"moveTo",function(D){D=D<0?0:D,D=D>=M.state.lastPosition?M.state.lastPosition:D,M.setState({firstItem:D})}),M.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return b(U,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var D=M;return M>=this.state.lastPosition&&(D=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(D=this.state.firstItem),M<this.state.firstItem&&(D=M),D}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(D,F){var P=t.default.ITEM(!1,F===M.state.selectedItem),K={key:F,ref:function(Y){return M.setThumbsRef(Y,F)},className:P,onClick:M.handleClickItem.bind(M,F,M.props.children[F]),onKeyDown:M.handleClickItem.bind(M,F,M.props.children[F]),"aria-label":"".concat(M.props.labels.item," ").concat(F+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",g({},K,{role:"button",tabIndex:0}),D)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var D=e.Children.count(this.props.children)>1,F=this.state.showArrows&&this.state.firstItem>0,P=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,K={},ee=-this.state.firstItem*(this.state.itemSize||0),Y=(0,n.default)(ee,"px",this.props.axis),ve=this.props.transitionTime+"ms";return K={WebkitTransform:Y,MozTransform:Y,MsTransform:Y,OTransform:Y,transform:Y,msTransform:Y,WebkitTransitionDuration:ve,MozTransitionDuration:ve,MsTransitionDuration:ve,OTransitionDuration:ve,transitionDuration:ve,msTransitionDuration:ve},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!F),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),D?e.default.createElement(i.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:K,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(W){return M.setItemsListRef(W)},style:K},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!P),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),U})(e.Component);return js.default=H,_(H,"displayName","Thumbs"),_(H,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),js}var Ws={},zb;function uL(){if(zb)return Ws;zb=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=function(){return document};return Ws.default=e,Ws}var wr={},$b;function Qx(){if($b)return wr;$b=1,Object.defineProperty(wr,"__esModule",{value:!0}),wr.setPosition=wr.getPosition=wr.isKeyboardEvent=wr.defaultStatusFormatter=wr.noop=void 0;var e=N,t=r(zp());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};wr.noop=n;var i=function(f,g){return"".concat(f," of ").concat(g)};wr.defaultStatusFormatter=i;var s=function(f){return f?f.hasOwnProperty("key"):!1};wr.isKeyboardEvent=s;var l=function(f,g){if(g.infiniteLoop&&++f,f===0)return 0;var p=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var h=-f*g.centerSlidePercentage,b=p-1;return f&&(f!==b||g.infiniteLoop)?h+=(100-g.centerSlidePercentage)/2:f===b&&(h+=100-g.centerSlidePercentage),h}return-f*100};wr.getPosition=l;var c=function(f,g){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(h){p[h]=(0,t.default)(f,"%",g)}),p};return wr.setPosition=c,wr}var Gr={},jb;function dL(){if(jb)return Gr;jb=1,Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.fadeAnimationHandler=Gr.slideStopSwipingHandler=Gr.slideSwipeAnimationHandler=Gr.slideAnimationHandler=void 0;var e=N,t=n(zp()),r=Qx();function n(p){return p&&p.__esModule?p:{default:p}}function i(p,h){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(p);h&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),b.push.apply(b,S)}return b}function s(p){for(var h=1;h<arguments.length;h++){var b=arguments[h]!=null?arguments[h]:{};h%2?i(Object(b),!0).forEach(function(S){l(p,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):i(Object(b)).forEach(function(S){Object.defineProperty(p,S,Object.getOwnPropertyDescriptor(b,S))})}return p}function l(p,h,b){return h in p?Object.defineProperty(p,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[h]=b,p}var c=function(h,b){var S={},v=b.selectedItem,y=v,m=e.Children.count(h.children)-1,w=h.infiniteLoop&&(v<0||v>m);if(w)return y<0?h.centerMode&&h.centerSlidePercentage&&h.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*h.centerSlidePercentage-(100-h.centerSlidePercentage)/2,h.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,h.axis):y>m&&(S.itemListStyle=(0,r.setPosition)(0,h.axis)),S;var x=(0,r.getPosition)(v,h),O=(0,t.default)(x,"%",h.axis),_=h.transitionTime+"ms";return S.itemListStyle={WebkitTransform:O,msTransform:O,OTransform:O,transform:O},b.swiping||(S.itemListStyle=s(s({},S.itemListStyle),{},{WebkitTransitionDuration:_,MozTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_})),S};Gr.slideAnimationHandler=c;var u=function(h,b,S,v){var y={},m=b.axis==="horizontal",w=e.Children.count(b.children),x=0,O=(0,r.getPosition)(S.selectedItem,b),_=b.infiniteLoop?(0,r.getPosition)(w-1,b)-100:(0,r.getPosition)(w-1,b),R=m?h.x:h.y,H=R;O===x&&R>0&&(H=0),O===_&&R<0&&(H=0);var I=O+100/(S.itemSize/H),$=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&$&&(S.selectedItem===0&&I>-100?I-=w*100:S.selectedItem===w-1&&I<-w*100&&(I+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||$||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(I,b.axis)),$&&!S.cancelClick&&v({cancelClick:!0}),y};Gr.slideSwipeAnimationHandler=u;var f=function(h,b){var S=(0,r.getPosition)(b.selectedItem,h),v=(0,r.setPosition)(S,h.axis);return{itemListStyle:v}};Gr.slideStopSwipingHandler=f;var g=function(h,b){var S=h.transitionTime+"ms",v="ease-in-out",y={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:v,msTransitionTimingFunction:v,MozTransitionTimingFunction:v,WebkitTransitionTimingFunction:v,OTransitionTimingFunction:v};return b.swiping||(y=s(s({},y),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:y,selectedStyle:s(s({},y),{},{opacity:1,position:"relative"}),prevStyle:s({},y)}};return Gr.fadeAnimationHandler=g,Gr}var Fb;function fL(){if(Fb)return zs;Fb=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=g(N),t=u(Kx()),r=u(Yx()),n=u(Jx()),i=u(uL()),s=u(Xx()),l=Qx(),c=dL();function u(j){return j&&j.__esModule?j:{default:j}}function f(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return f=function(){return j},j}function g(j){if(j&&j.__esModule)return j;if(j===null||p(j)!=="object"&&typeof j!="function")return{default:j};var M=f();if(M&&M.has(j))return M.get(j);var D={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var P in j)if(Object.prototype.hasOwnProperty.call(j,P)){var K=F?Object.getOwnPropertyDescriptor(j,P):null;K&&(K.get||K.set)?Object.defineProperty(D,P,K):D[P]=j[P]}return D.default=j,M&&M.set(j,D),D}function p(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(D){return typeof D}:p=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},p(j)}function h(){return h=Object.assign||function(j){for(var M=1;M<arguments.length;M++){var D=arguments[M];for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&(j[F]=D[F])}return j},h.apply(this,arguments)}function b(j,M){var D=Object.keys(j);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols(j);M&&(F=F.filter(function(P){return Object.getOwnPropertyDescriptor(j,P).enumerable})),D.push.apply(D,F)}return D}function S(j){for(var M=1;M<arguments.length;M++){var D=arguments[M]!=null?arguments[M]:{};M%2?b(Object(D),!0).forEach(function(F){$(j,F,D[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(D)):b(Object(D)).forEach(function(F){Object.defineProperty(j,F,Object.getOwnPropertyDescriptor(D,F))})}return j}function v(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function y(j,M){for(var D=0;D<M.length;D++){var F=M[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(j,F.key,F)}}function m(j,M,D){return M&&y(j.prototype,M),j}function w(j,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(M&&M.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),M&&x(j,M)}function x(j,M){return x=Object.setPrototypeOf||function(F,P){return F.__proto__=P,F},x(j,M)}function O(j){var M=H();return function(){var F=I(j),P;if(M){var K=I(this).constructor;P=Reflect.construct(F,arguments,K)}else P=F.apply(this,arguments);return _(this,P)}}function _(j,M){return M&&(p(M)==="object"||typeof M=="function")?M:R(j)}function R(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function I(j){return I=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},I(j)}function $(j,M,D){return M in j?Object.defineProperty(j,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):j[M]=D,j}var U=(function(j){w(D,j);var M=O(D);function D(F){var P;v(this,D),P=M.call(this,F),$(R(P),"thumbsRef",void 0),$(R(P),"carouselWrapperRef",void 0),$(R(P),"listRef",void 0),$(R(P),"itemsRef",void 0),$(R(P),"timer",void 0),$(R(P),"animationHandler",void 0),$(R(P),"setThumbsRef",function(ee){P.thumbsRef=ee}),$(R(P),"setCarouselWrapperRef",function(ee){P.carouselWrapperRef=ee}),$(R(P),"setListRef",function(ee){P.listRef=ee}),$(R(P),"setItemsRef",function(ee,Y){P.itemsRef||(P.itemsRef=[]),P.itemsRef[Y]=ee}),$(R(P),"autoPlay",function(){e.Children.count(P.props.children)<=1||(P.clearAutoPlay(),P.props.autoPlay&&(P.timer=setTimeout(function(){P.increment()},P.props.interval)))}),$(R(P),"clearAutoPlay",function(){P.timer&&clearTimeout(P.timer)}),$(R(P),"resetAutoPlay",function(){P.clearAutoPlay(),P.autoPlay()}),$(R(P),"stopOnHover",function(){P.setState({isMouseEntered:!0},P.clearAutoPlay)}),$(R(P),"startOnLeave",function(){P.setState({isMouseEntered:!1},P.autoPlay)}),$(R(P),"isFocusWithinTheCarousel",function(){return P.carouselWrapperRef?!!((0,i.default)().activeElement===P.carouselWrapperRef||P.carouselWrapperRef.contains((0,i.default)().activeElement)):!1}),$(R(P),"navigateWithKeyboard",function(ee){if(P.isFocusWithinTheCarousel()){var Y=P.props.axis,ve=Y==="horizontal",z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},W=ve?z.ArrowRight:z.ArrowDown,X=ve?z.ArrowLeft:z.ArrowUp;W===ee.keyCode?P.increment():X===ee.keyCode&&P.decrement()}}),$(R(P),"updateSizes",function(){if(!(!P.state.initialized||!P.itemsRef||P.itemsRef.length===0)){var ee=P.props.axis==="horizontal",Y=P.itemsRef[0];if(Y){var ve=ee?Y.clientWidth:Y.clientHeight;P.setState({itemSize:ve}),P.thumbsRef&&P.thumbsRef.updateSizes()}}}),$(R(P),"setMountState",function(){P.setState({hasMount:!0}),P.updateSizes()}),$(R(P),"handleClickItem",function(ee,Y){if(e.Children.count(P.props.children)!==0){if(P.state.cancelClick){P.setState({cancelClick:!1});return}P.props.onClickItem(ee,Y),ee!==P.state.selectedItem&&P.setState({selectedItem:ee})}}),$(R(P),"handleOnChange",function(ee,Y){e.Children.count(P.props.children)<=1||P.props.onChange(ee,Y)}),$(R(P),"handleClickThumb",function(ee,Y){P.props.onClickThumb(ee,Y),P.moveTo(ee)}),$(R(P),"onSwipeStart",function(ee){P.setState({swiping:!0}),P.props.onSwipeStart(ee)}),$(R(P),"onSwipeEnd",function(ee){P.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),P.props.onSwipeEnd(ee),P.clearAutoPlay(),P.state.autoPlay&&P.autoPlay()}),$(R(P),"onSwipeMove",function(ee,Y){P.props.onSwipeMove(Y);var ve=P.props.swipeAnimationHandler(ee,P.props,P.state,P.setState.bind(R(P)));return P.setState(S({},ve)),!!Object.keys(ve).length}),$(R(P),"decrement",function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;P.moveTo(P.state.selectedItem-(typeof ee=="number"?ee:1))}),$(R(P),"increment",function(){var ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;P.moveTo(P.state.selectedItem+(typeof ee=="number"?ee:1))}),$(R(P),"moveTo",function(ee){if(typeof ee=="number"){var Y=e.Children.count(P.props.children)-1;ee<0&&(ee=P.props.infiniteLoop?Y:0),ee>Y&&(ee=P.props.infiniteLoop?0:Y),P.selectItem({selectedItem:ee}),P.state.autoPlay&&P.state.isMouseEntered===!1&&P.resetAutoPlay()}}),$(R(P),"onClickNext",function(){P.increment(1)}),$(R(P),"onClickPrev",function(){P.decrement(1)}),$(R(P),"onSwipeForward",function(){P.increment(1),P.props.emulateTouch&&P.setState({cancelClick:!0})}),$(R(P),"onSwipeBackwards",function(){P.decrement(1),P.props.emulateTouch&&P.setState({cancelClick:!0})}),$(R(P),"changeItem",function(ee){return function(Y){(!(0,l.isKeyboardEvent)(Y)||Y.key==="Enter")&&P.moveTo(ee)}}),$(R(P),"selectItem",function(ee){P.setState(S({previousItem:P.state.selectedItem},ee),function(){P.setState(P.animationHandler(P.props,P.state))}),P.handleOnChange(ee.selectedItem,e.Children.toArray(P.props.children)[ee.selectedItem])}),$(R(P),"getInitialImage",function(){var ee=P.props.selectedItem,Y=P.itemsRef&&P.itemsRef[ee],ve=Y&&Y.getElementsByTagName("img")||[];return ve[0]}),$(R(P),"getVariableItemHeight",function(ee){var Y=P.itemsRef&&P.itemsRef[ee];if(P.state.hasMount&&Y&&Y.children.length){var ve=Y.children[0].getElementsByTagName("img")||[];if(ve.length>0){var z=ve[0];if(!z.complete){var W=function J(){P.forceUpdate(),z.removeEventListener("load",J)};z.addEventListener("load",W)}}var X=ve[0]||Y.children[0],te=X.clientHeight;return te>0?te:null}return null});var K={initialized:!1,previousItem:F.selectedItem,selectedItem:F.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:F.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return P.animationHandler=typeof F.animationHandler=="function"&&F.animationHandler||F.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,P.state=S(S({},K),P.animationHandler(F,K)),P}return m(D,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(P,K){!P.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!P.autoFocus&&this.props.autoFocus&&this.forceFocus(),K.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(P.selectedItem!==this.props.selectedItem||P.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),P.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var P=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var K=P.getInitialImage();K&&!K.complete?K.addEventListener("load",P.setMountState):P.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var P=this.carouselWrapperRef;this.props.stopOnHover&&P&&(P.addEventListener("mouseenter",this.stopOnHover),P.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var P=this.carouselWrapperRef;this.props.stopOnHover&&P&&(P.removeEventListener("mouseenter",this.stopOnHover),P.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,i.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var P=this.getInitialImage();P&&P.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,i.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var P;(P=this.carouselWrapperRef)===null||P===void 0||P.focus()}},{key:"renderItems",value:function(P){var K=this;return this.props.children?e.Children.map(this.props.children,function(ee,Y){var ve=Y===K.state.selectedItem,z=Y===K.state.previousItem,W=ve&&K.state.selectedStyle||z&&K.state.prevStyle||K.state.slideStyle||{};K.props.centerMode&&K.props.axis==="horizontal"&&(W=S(S({},W),{},{minWidth:K.props.centerSlidePercentage+"%"})),K.state.swiping&&K.state.swipeMovementStarted&&(W=S(S({},W),{},{pointerEvents:"none"}));var X={ref:function(J){return K.setItemsRef(J,Y)},key:"itemKey"+Y+(P?"clone":""),className:r.default.ITEM(!0,Y===K.state.selectedItem,Y===K.state.previousItem),onClick:K.handleClickItem.bind(K,Y,ee),style:W};return e.default.createElement("li",X,K.props.renderItem(ee,{isSelected:Y===K.state.selectedItem,isPrevious:Y===K.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var P=this,K=this.props,ee=K.showIndicators,Y=K.labels,ve=K.renderIndicator,z=K.children;return ee?e.default.createElement("ul",{className:"control-dots"},e.Children.map(z,function(W,X){return ve&&ve(P.changeItem(X),X===P.state.selectedItem,X,Y.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(n.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var P=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var K=this.props.swipeable&&e.Children.count(this.props.children)>1,ee=this.props.axis==="horizontal",Y=this.props.showArrows&&e.Children.count(this.props.children)>1,ve=Y&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,z=Y&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,W=this.renderItems(!0),X=W.shift(),te=W.pop(),J={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},oe={};if(ee){if(J.onSwipeLeft=this.onSwipeForward,J.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ae=this.getVariableItemHeight(this.state.selectedItem);oe.height=ae||"auto"}}else J.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,J.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,J.style=S(S({},J.style),{},{height:this.state.itemSize}),oe.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,ve,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:oe},K?e.default.createElement(t.default,h({tagName:"ul",innerRef:this.setListRef},J,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&X):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(de){return P.setListRef(de)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&X)),this.props.renderArrowNext(this.onClickNext,z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),D})(e.default.Component);return zs.default=U,$(U,"displayName","Carousel"),$(U,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(M,D,F){return e.default.createElement("button",{type:"button","aria-label":F,className:r.default.ARROW_PREV(!D),onClick:M})},renderArrowNext:function(M,D,F){return e.default.createElement("button",{type:"button","aria-label":F,className:r.default.ARROW_NEXT(!D),onClick:M})},renderIndicator:function(M,D,F,P){return e.default.createElement("li",{className:r.default.DOT(D),onClick:M,onKeyDown:M,value:F,key:F,role:"button",tabIndex:0,"aria-label":"".concat(P," ").concat(F+1)})},renderItem:function(M){return M},renderThumbs:function(M){var D=e.Children.map(M,function(F){var P=F;if(F.type!=="img"&&(P=e.Children.toArray(F.props.children).find(function(K){return K.type==="img"})),!!P)return P});return D.filter(function(F){return F}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):D},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),zs}var Hb={},Bb;function pL(){return Bb||(Bb=1),Hb}var Wb;function hL(){return Wb||(Wb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return n.default}});var t=i(fL()),r=pL(),n=i(Jx());function i(s){return s&&s.__esModule?s:{default:s}}})(af)),af}var gL=hL();const vL=({tip:e})=>A.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:e1(e,!0)}),mL=({pages:e})=>A.jsx("div",{className:"min-h-[10rem] w-96",children:A.jsx(gL.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>A.jsx(vL,{tip:t},t.key))})}),bL=({body:e,isInsideCarousel:t})=>A.jsx("article",{className:st(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-muted",{"w-60":!t}]),children:A.jsx(Cc,{children:e,options:{overrides:{a:{component:({children:r,...n})=>A.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary",children:[r,A.jsx(Zy,{className:"ml-1 mt-px h-4 w-4"})]})},strong:{component:({children:r,...n})=>A.jsx("span",{...n,className:"font-semibold text-body",children:r})}}}})}),yL=({video:e,body:t,title:r,isInsideCarousel:n})=>A.jsxs("div",{className:st([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[A.jsx("div",{className:st([{"mr-1":!n,"mb-1":n}]),children:A.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),A.jsx("article",{className:st(["prose prose-sm p-1 text-left text-xs text-muted",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:A.jsx(Cc,{children:t||"",options:{overrides:{a:{component:({children:i,...s})=>A.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[i,A.jsx(Zy,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),e1=(e,t)=>{switch(e.type){case yc.TEXT:return A.jsx(bL,{body:e.body,isInsideCarousel:t});case yc.VIDEO:return A.jsx(yL,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case yc.CAROUSEL:return A.jsx(mL,{pages:e.pages})}},t1=N.createContext(void 0);function Vb(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const wL=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:i},s]=N.useState({tips:{},show:!0});N.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const f=u.reduce((g,p)=>Vb(u,p.key).length>1?{...g,[p.key]:{type:"carousel",pages:Vb(u,p.key)}}:{...g,[p.key]:p},{});s(g=>({...g,tips:f}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!i}))};return A.jsx(t1.Provider,{value:{tips:n,toggleTips:l,show:i,enabled:t},children:e})},r1=e=>{const t=N.useContext(t1);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},xL=Ic(Q3)`
132
+ */var ff,Ab;function nL(){if(Ab)return ff;Ab=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(s){if(s==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(s)}function i(){try{if(!Object.assign)return!1;var s=new String("abc");if(s[5]="de",Object.getOwnPropertyNames(s)[0]==="5")return!1;for(var l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var u=Object.getOwnPropertyNames(l).map(function(g){return l[g]});if(u.join("")!=="0123456789")return!1;var f={};return"abcdefghijklmnopqrst".split("").forEach(function(g){f[g]=g}),Object.keys(Object.assign({},f)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return ff=i()?Object.assign:function(s,l){for(var c,u=n(s),f,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var p in c)t.call(c,p)&&(u[p]=c[p]);if(e){f=e(c);for(var h=0;h<f.length;h++)r.call(c,f[h])&&(u[f[h]]=c[f[h]])}}return u},ff}var pf,Tb;function Fp(){if(Tb)return pf;Tb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return pf=e,pf}var hf,Rb;function Jx(){return Rb||(Rb=1,hf=Function.call.bind(Object.prototype.hasOwnProperty)),hf}var gf,Cb;function iL(){if(Cb)return gf;Cb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Fp(),r={},n=Jx();e=function(s){var l="Warning: "+s;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function i(s,l,c,u,f){if(process.env.NODE_ENV!=="production"){for(var g in s)if(n(s,g)){var p;try{if(typeof s[g]!="function"){var h=Error((u||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof s[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}p=s[g](l,g,u,c,null,t)}catch(S){p=S}if(p&&!(p instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof p+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),p instanceof Error&&!(p.message in r)){r[p.message]=!0;var b=f?f():"";e("Failed "+c+" type: "+p.message+(b??""))}}}}return i.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},gf=i,gf}var vf,Pb;function oL(){if(Pb)return vf;Pb=1;var e=Xx(),t=nL(),r=Fp(),n=Jx(),i=iL(),s=function(){};process.env.NODE_ENV!=="production"&&(s=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return vf=function(c,u){var f=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function p(j){var W=j&&(f&&j[f]||j[g]);if(typeof W=="function")return W}var h="<<anonymous>>",b={array:m("array"),bigint:m("bigint"),bool:m("boolean"),func:m("function"),number:m("number"),object:m("object"),string:m("string"),symbol:m("symbol"),any:w(),arrayOf:x,element:O(),elementType:_(),instanceOf:R,node:U(),objectOf:P,oneOf:H,oneOfType:z,shape:M,exact:D};function S(j,W){return j===W?j!==0||1/j===1/W:j!==j&&W!==W}function v(j,W){this.message=j,this.data=W&&typeof W=="object"?W:{},this.stack=""}v.prototype=Error.prototype;function y(j){if(process.env.NODE_ENV!=="production")var W={},ee=0;function Q(ue,ie,ne,de,pe,he,xe){if(de=de||h,he=he||ne,xe!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=de+":"+ne;!W[Oe]&&ee<3&&(s("You are manually calling a React.PropTypes validation function for the `"+he+"` prop on `"+de+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),W[Oe]=!0,ee++)}}return ie[ne]==null?ue?ie[ne]===null?new v("The "+pe+" `"+he+"` is marked as required "+("in `"+de+"`, but its value is `null`.")):new v("The "+pe+" `"+he+"` is marked as required in "+("`"+de+"`, but its value is `undefined`.")):null:j(ie,ne,de,pe,he)}var X=Q.bind(null,!1);return X.isRequired=Q.bind(null,!0),X}function m(j){function W(ee,Q,X,ue,ie,ne){var de=ee[Q],pe=K(de);if(pe!==j){var he=te(de);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+he+"` supplied to `"+X+"`, expected ")+("`"+j+"`."),{expectedType:j})}return null}return y(W)}function w(){return y(l)}function x(j){function W(ee,Q,X,ue,ie){if(typeof j!="function")return new v("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside arrayOf.");var ne=ee[Q];if(!Array.isArray(ne)){var de=K(ne);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an array."))}for(var pe=0;pe<ne.length;pe++){var he=j(ne,pe,X,ue,ie+"["+pe+"]",r);if(he instanceof Error)return he}return null}return y(W)}function O(){function j(W,ee,Q,X,ue){var ie=W[ee];if(!c(ie)){var ne=K(ie);return new v("Invalid "+X+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+Q+"`, expected a single ReactElement."))}return null}return y(j)}function _(){function j(W,ee,Q,X,ue){var ie=W[ee];if(!e.isValidElementType(ie)){var ne=K(ie);return new v("Invalid "+X+" `"+ue+"` of type "+("`"+ne+"` supplied to `"+Q+"`, expected a single ReactElement type."))}return null}return y(j)}function R(j){function W(ee,Q,X,ue,ie){if(!(ee[Q]instanceof j)){var ne=j.name||h,de=ve(ee[Q]);return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected ")+("instance of `"+ne+"`."))}return null}return y(W)}function H(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&(arguments.length>1?s("Invalid arguments supplied to oneOf, expected an array, got "+arguments.length+" arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."):s("Invalid argument supplied to oneOf, expected an array.")),l;function W(ee,Q,X,ue,ie){for(var ne=ee[Q],de=0;de<j.length;de++)if(S(ne,j[de]))return null;var pe=JSON.stringify(j,function(xe,Z){var Oe=te(Z);return Oe==="symbol"?String(Z):Z});return new v("Invalid "+ue+" `"+ie+"` of value `"+String(ne)+"` "+("supplied to `"+X+"`, expected one of "+pe+"."))}return y(W)}function P(j){function W(ee,Q,X,ue,ie){if(typeof j!="function")return new v("Property `"+ie+"` of component `"+X+"` has invalid PropType notation inside objectOf.");var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type "+("`"+de+"` supplied to `"+X+"`, expected an object."));for(var pe in ne)if(n(ne,pe)){var he=j(ne,pe,X,ue,ie+"."+pe,r);if(he instanceof Error)return he}return null}return y(W)}function z(j){if(!Array.isArray(j))return process.env.NODE_ENV!=="production"&&s("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var W=0;W<j.length;W++){var ee=j[W];if(typeof ee!="function")return s("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+Y(ee)+" at index "+W+"."),l}function Q(X,ue,ie,ne,de){for(var pe=[],he=0;he<j.length;he++){var xe=j[he],Z=xe(X,ue,ie,ne,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&pe.push(Z.data.expectedType)}var Oe=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new v("Invalid "+ne+" `"+de+"` supplied to "+("`"+ie+"`"+Oe+"."))}return y(Q)}function U(){function j(W,ee,Q,X,ue){return F(W[ee])?null:new v("Invalid "+X+" `"+ue+"` supplied to "+("`"+Q+"`, expected a ReactNode."))}return y(j)}function $(j,W,ee,Q,X){return new v((j||"React class")+": "+W+" type `"+ee+"."+Q+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+X+"`.")}function M(j){function W(ee,Q,X,ue,ie){var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));for(var pe in j){var he=j[pe];if(typeof he!="function")return $(X,ue,ie,pe,te(he));var xe=he(ne,pe,X,ue,ie+"."+pe,r);if(xe)return xe}return null}return y(W)}function D(j){function W(ee,Q,X,ue,ie){var ne=ee[Q],de=K(ne);if(de!=="object")return new v("Invalid "+ue+" `"+ie+"` of type `"+de+"` "+("supplied to `"+X+"`, expected `object`."));var pe=t({},ee[Q],j);for(var he in pe){var xe=j[he];if(n(j,he)&&typeof xe!="function")return $(X,ue,ie,he,te(xe));if(!xe)return new v("Invalid "+ue+" `"+ie+"` key `"+he+"` supplied to `"+X+"`.\nBad object: "+JSON.stringify(ee[Q],null," ")+`
133
+ Valid keys: `+JSON.stringify(Object.keys(j),null," "));var Z=xe(ne,he,X,ue,ie+"."+he,r);if(Z)return Z}return null}return y(W)}function F(j){switch(typeof j){case"number":case"string":case"undefined":return!0;case"boolean":return!j;case"object":if(Array.isArray(j))return j.every(F);if(j===null||c(j))return!0;var W=p(j);if(W){var ee=W.call(j),Q;if(W!==j.entries){for(;!(Q=ee.next()).done;)if(!F(Q.value))return!1}else for(;!(Q=ee.next()).done;){var X=Q.value;if(X&&!F(X[1]))return!1}}else return!1;return!0;default:return!1}}function I(j,W){return j==="symbol"?!0:W?W["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&W instanceof Symbol:!1}function K(j){var W=typeof j;return Array.isArray(j)?"array":j instanceof RegExp?"object":I(W,j)?"symbol":W}function te(j){if(typeof j>"u"||j===null)return""+j;var W=K(j);if(W==="object"){if(j instanceof Date)return"date";if(j instanceof RegExp)return"regexp"}return W}function Y(j){var W=te(j);switch(W){case"array":case"object":return"an "+W;case"boolean":case"date":case"regexp":return"a "+W;default:return W}}function ve(j){return!j.constructor||!j.constructor.name?h:j.constructor.name}return b.checkPropTypes=i,b.resetWarningCache=i.resetWarningCache,b.PropTypes=b,b},vf}var mf,Ib;function sL(){if(Ib)return mf;Ib=1;var e=Fp();function t(){}function r(){}return r.resetWarningCache=t,mf=function(){function n(l,c,u,f,g,p){if(p!==e){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}n.isRequired=n;function i(){return n}var s={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:i,element:n,elementType:n,instanceOf:i,node:n,objectOf:i,oneOf:i,oneOfType:i,shape:i,exact:i,checkPropTypes:r,resetWarningCache:t};return s.PropTypes=s,s},mf}var Nb;function aL(){if(Nb)return Xl.exports;if(Nb=1,process.env.NODE_ENV!=="production"){var e=Xx(),t=!0;Xl.exports=oL()(e.isElement,t)}else Xl.exports=sL()();return Xl.exports}var Mb;function lL(){return Mb||(Mb=1,(function(e){(function(t,r){r(e,N,aL())})(Yl,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var i=l(r),s=l(n);function l(w){return w&&w.__esModule?w:{default:w}}var c=Object.assign||function(w){for(var x=1;x<arguments.length;x++){var O=arguments[x];for(var _ in O)Object.prototype.hasOwnProperty.call(O,_)&&(w[_]=O[_])}return w};function u(w,x){var O={};for(var _ in w)x.indexOf(_)>=0||Object.prototype.hasOwnProperty.call(w,_)&&(O[_]=w[_]);return O}function f(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var g=(function(){function w(x,O){for(var _=0;_<O.length;_++){var R=O[_];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,O,_){return O&&w(x.prototype,O),_&&w(x,_),x}})();function p(w,x){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return x&&(typeof x=="object"||typeof x=="function")?x:w}function h(w,x){if(typeof x!="function"&&x!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof x);w.prototype=Object.create(x&&x.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),x&&(Object.setPrototypeOf?Object.setPrototypeOf(w,x):w.__proto__=x)}var b=!1;function S(w){b=w}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){S(!0)}}))}catch{}function v(){var w=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return b?w:w.capture}function y(w){if("touches"in w){var x=w.touches[0],O=x.pageX,_=x.pageY;return{x:O,y:_}}var R=w.screenX,H=w.screenY;return{x:R,y:H}}var m=(function(w){h(x,w);function x(){var O;f(this,x);for(var _=arguments.length,R=Array(_),H=0;H<_;H++)R[H]=arguments[H];var P=p(this,(O=x.__proto__||Object.getPrototypeOf(x)).call.apply(O,[this].concat(R)));return P._handleSwipeStart=P._handleSwipeStart.bind(P),P._handleSwipeMove=P._handleSwipeMove.bind(P),P._handleSwipeEnd=P._handleSwipeEnd.bind(P),P._onMouseDown=P._onMouseDown.bind(P),P._onMouseMove=P._onMouseMove.bind(P),P._onMouseUp=P._onMouseUp.bind(P),P._setSwiperRef=P._setSwiperRef.bind(P),P}return g(x,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,v({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(_){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(_))}},{key:"_onMouseMove",value:function(_){this.mouseDown&&this._handleSwipeMove(_)}},{key:"_onMouseUp",value:function(_){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(_)}},{key:"_handleSwipeStart",value:function(_){var R=y(_),H=R.x,P=R.y;this.moveStart={x:H,y:P},this.props.onSwipeStart(_)}},{key:"_handleSwipeMove",value:function(_){if(this.moveStart){var R=y(_),H=R.x,P=R.y,z=H-this.moveStart.x,U=P-this.moveStart.y;this.moving=!0;var $=this.props.onSwipeMove({x:z,y:U},_);$&&_.cancelable&&_.preventDefault(),this.movePosition={deltaX:z,deltaY:U}}}},{key:"_handleSwipeEnd",value:function(_){this.props.onSwipeEnd(_);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,_):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,_),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,_):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,_)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(_){this.swiper=_,this.props.innerRef(_)}},{key:"render",value:function(){var _=this.props;_.tagName;var R=_.className,H=_.style,P=_.children;_.allowMouseEvents,_.onSwipeUp,_.onSwipeDown,_.onSwipeLeft,_.onSwipeRight,_.onSwipeStart,_.onSwipeMove,_.onSwipeEnd,_.innerRef,_.tolerance;var z=u(_,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return i.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:H},z),P)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:s.default.string,className:s.default.string,style:s.default.object,children:s.default.node,allowMouseEvents:s.default.bool,onSwipeUp:s.default.func,onSwipeDown:s.default.func,onSwipeLeft:s.default.func,onSwipeRight:s.default.func,onSwipeStart:s.default.func,onSwipeMove:s.default.func,onSwipeEnd:s.default.func,innerRef:s.default.func,tolerance:s.default.number.isRequired},m.defaultProps={tagName:"div",allowMouseEvents:!1,onSwipeUp:function(){},onSwipeDown:function(){},onSwipeLeft:function(){},onSwipeRight:function(){},onSwipeStart:function(){},onSwipeMove:function(){},onSwipeEnd:function(){},innerRef:function(){},tolerance:0},t.default=m})})(Yl)),Yl}var Db;function Qx(){return Db||(Db=1,(function(e){(function(t,r){r(e,lL())})(Kl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=i(r);function i(s){return s&&s.__esModule?s:{default:s}}t.default=n.default})})(Kl)),Kl}var $s={},Lb;function e1(){if(Lb)return $s;Lb=1,Object.defineProperty($s,"__esModule",{value:!0}),$s.default=void 0;var e=t(fx());function t(i){return i&&i.__esModule?i:{default:i}}function r(i,s,l){return s in i?Object.defineProperty(i,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[s]=l,i}var n={ROOT:function(s){return(0,e.default)(r({"carousel-root":!0},s||"",!!s))},CAROUSEL:function(s){return(0,e.default)({carousel:!0,"carousel-slider":s})},WRAPPER:function(s,l){return(0,e.default)({"thumbs-wrapper":!s,"slider-wrapper":s,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(s,l){return(0,e.default)({thumbs:!s,slider:s,animated:!l})},ITEM:function(s,l,c){return(0,e.default)({thumb:!s,slide:s,selected:l,previous:c})},ARROW_PREV:function(s){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":s})},ARROW_NEXT:function(s){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":s})},DOT:function(s){return(0,e.default)({dot:!0,selected:s})}};return $s.default=n,$s}var js={},Fs={},zb;function cL(){if(zb)return Fs;zb=1,Object.defineProperty(Fs,"__esModule",{value:!0}),Fs.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,i=getComputedStyle(r);return n+=parseInt(i.marginLeft)+parseInt(i.marginRight),n};return Fs.outerWidth=e,Fs}var Hs={},$b;function Hp(){if($b)return Hs;$b=1,Object.defineProperty(Hs,"__esModule",{value:!0}),Hs.default=void 0;var e=function(r,n,i){var s=r===0?r:r+n,l=i==="horizontal"?[s,0,0]:[0,s,0],c="translate3d",u="("+l.join(",")+")";return c+u};return Hs.default=e,Hs}var Ws={},jb;function t1(){if(jb)return Ws;jb=1,Object.defineProperty(Ws,"__esModule",{value:!0}),Ws.default=void 0;var e=function(){return window};return Ws.default=e,Ws}var Fb;function r1(){if(Fb)return js;Fb=1,Object.defineProperty(js,"__esModule",{value:!0}),js.default=void 0;var e=u(N),t=l(e1()),r=cL(),n=l(Hp()),i=l(Qx()),s=l(t1());function l(P){return P&&P.__esModule?P:{default:P}}function c(){if(typeof WeakMap!="function")return null;var P=new WeakMap;return c=function(){return P},P}function u(P){if(P&&P.__esModule)return P;if(P===null||f(P)!=="object"&&typeof P!="function")return{default:P};var z=c();if(z&&z.has(P))return z.get(P);var U={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in P)if(Object.prototype.hasOwnProperty.call(P,M)){var D=$?Object.getOwnPropertyDescriptor(P,M):null;D&&(D.get||D.set)?Object.defineProperty(U,M,D):U[M]=P[M]}return U.default=P,z&&z.set(P,U),U}function f(P){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(U){return typeof U}:f=function(U){return U&&typeof Symbol=="function"&&U.constructor===Symbol&&U!==Symbol.prototype?"symbol":typeof U},f(P)}function g(){return g=Object.assign||function(P){for(var z=1;z<arguments.length;z++){var U=arguments[z];for(var $ in U)Object.prototype.hasOwnProperty.call(U,$)&&(P[$]=U[$])}return P},g.apply(this,arguments)}function p(P,z){if(!(P instanceof z))throw new TypeError("Cannot call a class as a function")}function h(P,z){for(var U=0;U<z.length;U++){var $=z[U];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(P,$.key,$)}}function b(P,z,U){return z&&h(P.prototype,z),P}function S(P,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(z&&z.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),z&&v(P,z)}function v(P,z){return v=Object.setPrototypeOf||function($,M){return $.__proto__=M,$},v(P,z)}function y(P){var z=x();return function(){var $=O(P),M;if(z){var D=O(this).constructor;M=Reflect.construct($,arguments,D)}else M=$.apply(this,arguments);return m(this,M)}}function m(P,z){return z&&(f(z)==="object"||typeof z=="function")?z:w(P)}function w(P){if(P===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return P}function x(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function O(P){return O=Object.setPrototypeOf?Object.getPrototypeOf:function(U){return U.__proto__||Object.getPrototypeOf(U)},O(P)}function _(P,z,U){return z in P?Object.defineProperty(P,z,{value:U,enumerable:!0,configurable:!0,writable:!0}):P[z]=U,P}var R=function(z){return z.hasOwnProperty("key")},H=(function(P){S(U,P);var z=y(U);function U($){var M;return p(this,U),M=z.call(this,$),_(w(M),"itemsWrapperRef",void 0),_(w(M),"itemsListRef",void 0),_(w(M),"thumbsRef",void 0),_(w(M),"setItemsWrapperRef",function(D){M.itemsWrapperRef=D}),_(w(M),"setItemsListRef",function(D){M.itemsListRef=D}),_(w(M),"setThumbsRef",function(D,F){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[F]=D}),_(w(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var D=e.Children.count(M.props.children),F=M.itemsWrapperRef.clientWidth,I=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),K=Math.floor(F/I),te=K<D,Y=te?D-K:0;M.setState(function(ve,j){return{itemSize:I,visibleItems:K,firstItem:te?M.getFirstItem(j.selectedItem):0,lastPosition:Y,showArrows:te}})}}),_(w(M),"handleClickItem",function(D,F,I){if(!R(I)||I.key==="Enter"){var K=M.props.onSelectItem;typeof K=="function"&&K(D,F)}}),_(w(M),"onSwipeStart",function(){M.setState({swiping:!0})}),_(w(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),_(w(M),"onSwipeMove",function(D){var F=D.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var I=0,K=e.Children.count(M.props.children),te=-(M.state.firstItem*100)/M.state.visibleItems,Y=Math.max(K-M.state.visibleItems,0),ve=-Y*100/M.state.visibleItems;te===I&&F>0&&(F=0),te===ve&&F<0&&(F=0);var j=M.itemsWrapperRef.clientWidth,W=te+100/(j/F);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ee){M.itemsListRef.style[ee]=(0,n.default)(W,"%",M.props.axis)}),!0}),_(w(M),"slideRight",function(D){M.moveTo(M.state.firstItem-(typeof D=="number"?D:1))}),_(w(M),"slideLeft",function(D){M.moveTo(M.state.firstItem+(typeof D=="number"?D:1))}),_(w(M),"moveTo",function(D){D=D<0?0:D,D=D>=M.state.lastPosition?M.state.lastPosition:D,M.setState({firstItem:D})}),M.state={selectedItem:$.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return b(U,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(M){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==M.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var D=M;return M>=this.state.lastPosition&&(D=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(D=this.state.firstItem),M<this.state.firstItem&&(D=M),D}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(D,F){var I=t.default.ITEM(!1,F===M.state.selectedItem),K={key:F,ref:function(Y){return M.setThumbsRef(Y,F)},className:I,onClick:M.handleClickItem.bind(M,F,M.props.children[F]),onKeyDown:M.handleClickItem.bind(M,F,M.props.children[F]),"aria-label":"".concat(M.props.labels.item," ").concat(F+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",g({},K,{role:"button",tabIndex:0}),D)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var D=e.Children.count(this.props.children)>1,F=this.state.showArrows&&this.state.firstItem>0,I=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,K={},te=-this.state.firstItem*(this.state.itemSize||0),Y=(0,n.default)(te,"px",this.props.axis),ve=this.props.transitionTime+"ms";return K={WebkitTransform:Y,MozTransform:Y,MsTransform:Y,OTransform:Y,transform:Y,msTransform:Y,WebkitTransitionDuration:ve,MozTransitionDuration:ve,MsTransitionDuration:ve,OTransitionDuration:ve,transitionDuration:ve,msTransitionDuration:ve},e.default.createElement("div",{className:t.default.CAROUSEL(!1)},e.default.createElement("div",{className:t.default.WRAPPER(!1),ref:this.setItemsWrapperRef},e.default.createElement("button",{type:"button",className:t.default.ARROW_PREV(!F),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),D?e.default.createElement(i.default,{tagName:"ul",className:t.default.SLIDER(!1,this.state.swiping),onSwipeLeft:this.slideLeft,onSwipeRight:this.slideRight,onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:K,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(W){return M.setItemsListRef(W)},style:K},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!I),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),U})(e.Component);return js.default=H,_(H,"displayName","Thumbs"),_(H,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),js}var Bs={},Hb;function uL(){if(Hb)return Bs;Hb=1,Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var e=function(){return document};return Bs.default=e,Bs}var yr={},Wb;function n1(){if(Wb)return yr;Wb=1,Object.defineProperty(yr,"__esModule",{value:!0}),yr.setPosition=yr.getPosition=yr.isKeyboardEvent=yr.defaultStatusFormatter=yr.noop=void 0;var e=N,t=r(Hp());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};yr.noop=n;var i=function(f,g){return"".concat(f," of ").concat(g)};yr.defaultStatusFormatter=i;var s=function(f){return f?f.hasOwnProperty("key"):!1};yr.isKeyboardEvent=s;var l=function(f,g){if(g.infiniteLoop&&++f,f===0)return 0;var p=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var h=-f*g.centerSlidePercentage,b=p-1;return f&&(f!==b||g.infiniteLoop)?h+=(100-g.centerSlidePercentage)/2:f===b&&(h+=100-g.centerSlidePercentage),h}return-f*100};yr.getPosition=l;var c=function(f,g){var p={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(h){p[h]=(0,t.default)(f,"%",g)}),p};return yr.setPosition=c,yr}var Zr={},Bb;function dL(){if(Bb)return Zr;Bb=1,Object.defineProperty(Zr,"__esModule",{value:!0}),Zr.fadeAnimationHandler=Zr.slideStopSwipingHandler=Zr.slideSwipeAnimationHandler=Zr.slideAnimationHandler=void 0;var e=N,t=n(Hp()),r=n1();function n(p){return p&&p.__esModule?p:{default:p}}function i(p,h){var b=Object.keys(p);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(p);h&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(p,v).enumerable})),b.push.apply(b,S)}return b}function s(p){for(var h=1;h<arguments.length;h++){var b=arguments[h]!=null?arguments[h]:{};h%2?i(Object(b),!0).forEach(function(S){l(p,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(b)):i(Object(b)).forEach(function(S){Object.defineProperty(p,S,Object.getOwnPropertyDescriptor(b,S))})}return p}function l(p,h,b){return h in p?Object.defineProperty(p,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):p[h]=b,p}var c=function(h,b){var S={},v=b.selectedItem,y=v,m=e.Children.count(h.children)-1,w=h.infiniteLoop&&(v<0||v>m);if(w)return y<0?h.centerMode&&h.centerSlidePercentage&&h.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*h.centerSlidePercentage-(100-h.centerSlidePercentage)/2,h.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,h.axis):y>m&&(S.itemListStyle=(0,r.setPosition)(0,h.axis)),S;var x=(0,r.getPosition)(v,h),O=(0,t.default)(x,"%",h.axis),_=h.transitionTime+"ms";return S.itemListStyle={WebkitTransform:O,msTransform:O,OTransform:O,transform:O},b.swiping||(S.itemListStyle=s(s({},S.itemListStyle),{},{WebkitTransitionDuration:_,MozTransitionDuration:_,OTransitionDuration:_,transitionDuration:_,msTransitionDuration:_})),S};Zr.slideAnimationHandler=c;var u=function(h,b,S,v){var y={},m=b.axis==="horizontal",w=e.Children.count(b.children),x=0,O=(0,r.getPosition)(S.selectedItem,b),_=b.infiniteLoop?(0,r.getPosition)(w-1,b)-100:(0,r.getPosition)(w-1,b),R=m?h.x:h.y,H=R;O===x&&R>0&&(H=0),O===_&&R<0&&(H=0);var P=O+100/(S.itemSize/H),z=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&z&&(S.selectedItem===0&&P>-100?P-=w*100:S.selectedItem===w-1&&P<-w*100&&(P+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||z||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(P,b.axis)),z&&!S.cancelClick&&v({cancelClick:!0}),y};Zr.slideSwipeAnimationHandler=u;var f=function(h,b){var S=(0,r.getPosition)(b.selectedItem,h),v=(0,r.setPosition)(S,h.axis);return{itemListStyle:v}};Zr.slideStopSwipingHandler=f;var g=function(h,b){var S=h.transitionTime+"ms",v="ease-in-out",y={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:v,msTransitionTimingFunction:v,MozTransitionTimingFunction:v,WebkitTransitionTimingFunction:v,OTransitionTimingFunction:v};return b.swiping||(y=s(s({},y),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:y,selectedStyle:s(s({},y),{},{opacity:1,position:"relative"}),prevStyle:s({},y)}};return Zr.fadeAnimationHandler=g,Zr}var Vb;function fL(){if(Vb)return zs;Vb=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.default=void 0;var e=g(N),t=u(Qx()),r=u(e1()),n=u(r1()),i=u(uL()),s=u(t1()),l=n1(),c=dL();function u($){return $&&$.__esModule?$:{default:$}}function f(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return f=function(){return $},$}function g($){if($&&$.__esModule)return $;if($===null||p($)!=="object"&&typeof $!="function")return{default:$};var M=f();if(M&&M.has($))return M.get($);var D={},F=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in $)if(Object.prototype.hasOwnProperty.call($,I)){var K=F?Object.getOwnPropertyDescriptor($,I):null;K&&(K.get||K.set)?Object.defineProperty(D,I,K):D[I]=$[I]}return D.default=$,M&&M.set($,D),D}function p($){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(D){return typeof D}:p=function(D){return D&&typeof Symbol=="function"&&D.constructor===Symbol&&D!==Symbol.prototype?"symbol":typeof D},p($)}function h(){return h=Object.assign||function($){for(var M=1;M<arguments.length;M++){var D=arguments[M];for(var F in D)Object.prototype.hasOwnProperty.call(D,F)&&($[F]=D[F])}return $},h.apply(this,arguments)}function b($,M){var D=Object.keys($);if(Object.getOwnPropertySymbols){var F=Object.getOwnPropertySymbols($);M&&(F=F.filter(function(I){return Object.getOwnPropertyDescriptor($,I).enumerable})),D.push.apply(D,F)}return D}function S($){for(var M=1;M<arguments.length;M++){var D=arguments[M]!=null?arguments[M]:{};M%2?b(Object(D),!0).forEach(function(F){z($,F,D[F])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(D)):b(Object(D)).forEach(function(F){Object.defineProperty($,F,Object.getOwnPropertyDescriptor(D,F))})}return $}function v($,M){if(!($ instanceof M))throw new TypeError("Cannot call a class as a function")}function y($,M){for(var D=0;D<M.length;D++){var F=M[D];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty($,F.key,F)}}function m($,M,D){return M&&y($.prototype,M),$}function w($,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(M&&M.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),M&&x($,M)}function x($,M){return x=Object.setPrototypeOf||function(F,I){return F.__proto__=I,F},x($,M)}function O($){var M=H();return function(){var F=P($),I;if(M){var K=P(this).constructor;I=Reflect.construct(F,arguments,K)}else I=F.apply(this,arguments);return _(this,I)}}function _($,M){return M&&(p(M)==="object"||typeof M=="function")?M:R($)}function R($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function P($){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(D){return D.__proto__||Object.getPrototypeOf(D)},P($)}function z($,M,D){return M in $?Object.defineProperty($,M,{value:D,enumerable:!0,configurable:!0,writable:!0}):$[M]=D,$}var U=(function($){w(D,$);var M=O(D);function D(F){var I;v(this,D),I=M.call(this,F),z(R(I),"thumbsRef",void 0),z(R(I),"carouselWrapperRef",void 0),z(R(I),"listRef",void 0),z(R(I),"itemsRef",void 0),z(R(I),"timer",void 0),z(R(I),"animationHandler",void 0),z(R(I),"setThumbsRef",function(te){I.thumbsRef=te}),z(R(I),"setCarouselWrapperRef",function(te){I.carouselWrapperRef=te}),z(R(I),"setListRef",function(te){I.listRef=te}),z(R(I),"setItemsRef",function(te,Y){I.itemsRef||(I.itemsRef=[]),I.itemsRef[Y]=te}),z(R(I),"autoPlay",function(){e.Children.count(I.props.children)<=1||(I.clearAutoPlay(),I.props.autoPlay&&(I.timer=setTimeout(function(){I.increment()},I.props.interval)))}),z(R(I),"clearAutoPlay",function(){I.timer&&clearTimeout(I.timer)}),z(R(I),"resetAutoPlay",function(){I.clearAutoPlay(),I.autoPlay()}),z(R(I),"stopOnHover",function(){I.setState({isMouseEntered:!0},I.clearAutoPlay)}),z(R(I),"startOnLeave",function(){I.setState({isMouseEntered:!1},I.autoPlay)}),z(R(I),"isFocusWithinTheCarousel",function(){return I.carouselWrapperRef?!!((0,i.default)().activeElement===I.carouselWrapperRef||I.carouselWrapperRef.contains((0,i.default)().activeElement)):!1}),z(R(I),"navigateWithKeyboard",function(te){if(I.isFocusWithinTheCarousel()){var Y=I.props.axis,ve=Y==="horizontal",j={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},W=ve?j.ArrowRight:j.ArrowDown,ee=ve?j.ArrowLeft:j.ArrowUp;W===te.keyCode?I.increment():ee===te.keyCode&&I.decrement()}}),z(R(I),"updateSizes",function(){if(!(!I.state.initialized||!I.itemsRef||I.itemsRef.length===0)){var te=I.props.axis==="horizontal",Y=I.itemsRef[0];if(Y){var ve=te?Y.clientWidth:Y.clientHeight;I.setState({itemSize:ve}),I.thumbsRef&&I.thumbsRef.updateSizes()}}}),z(R(I),"setMountState",function(){I.setState({hasMount:!0}),I.updateSizes()}),z(R(I),"handleClickItem",function(te,Y){if(e.Children.count(I.props.children)!==0){if(I.state.cancelClick){I.setState({cancelClick:!1});return}I.props.onClickItem(te,Y),te!==I.state.selectedItem&&I.setState({selectedItem:te})}}),z(R(I),"handleOnChange",function(te,Y){e.Children.count(I.props.children)<=1||I.props.onChange(te,Y)}),z(R(I),"handleClickThumb",function(te,Y){I.props.onClickThumb(te,Y),I.moveTo(te)}),z(R(I),"onSwipeStart",function(te){I.setState({swiping:!0}),I.props.onSwipeStart(te)}),z(R(I),"onSwipeEnd",function(te){I.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),I.props.onSwipeEnd(te),I.clearAutoPlay(),I.state.autoPlay&&I.autoPlay()}),z(R(I),"onSwipeMove",function(te,Y){I.props.onSwipeMove(Y);var ve=I.props.swipeAnimationHandler(te,I.props,I.state,I.setState.bind(R(I)));return I.setState(S({},ve)),!!Object.keys(ve).length}),z(R(I),"decrement",function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem-(typeof te=="number"?te:1))}),z(R(I),"increment",function(){var te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;I.moveTo(I.state.selectedItem+(typeof te=="number"?te:1))}),z(R(I),"moveTo",function(te){if(typeof te=="number"){var Y=e.Children.count(I.props.children)-1;te<0&&(te=I.props.infiniteLoop?Y:0),te>Y&&(te=I.props.infiniteLoop?0:Y),I.selectItem({selectedItem:te}),I.state.autoPlay&&I.state.isMouseEntered===!1&&I.resetAutoPlay()}}),z(R(I),"onClickNext",function(){I.increment(1)}),z(R(I),"onClickPrev",function(){I.decrement(1)}),z(R(I),"onSwipeForward",function(){I.increment(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),z(R(I),"onSwipeBackwards",function(){I.decrement(1),I.props.emulateTouch&&I.setState({cancelClick:!0})}),z(R(I),"changeItem",function(te){return function(Y){(!(0,l.isKeyboardEvent)(Y)||Y.key==="Enter")&&I.moveTo(te)}}),z(R(I),"selectItem",function(te){I.setState(S({previousItem:I.state.selectedItem},te),function(){I.setState(I.animationHandler(I.props,I.state))}),I.handleOnChange(te.selectedItem,e.Children.toArray(I.props.children)[te.selectedItem])}),z(R(I),"getInitialImage",function(){var te=I.props.selectedItem,Y=I.itemsRef&&I.itemsRef[te],ve=Y&&Y.getElementsByTagName("img")||[];return ve[0]}),z(R(I),"getVariableItemHeight",function(te){var Y=I.itemsRef&&I.itemsRef[te];if(I.state.hasMount&&Y&&Y.children.length){var ve=Y.children[0].getElementsByTagName("img")||[];if(ve.length>0){var j=ve[0];if(!j.complete){var W=function X(){I.forceUpdate(),j.removeEventListener("load",X)};j.addEventListener("load",W)}}var ee=ve[0]||Y.children[0],Q=ee.clientHeight;return Q>0?Q:null}return null});var K={initialized:!1,previousItem:F.selectedItem,selectedItem:F.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:F.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return I.animationHandler=typeof F.animationHandler=="function"&&F.animationHandler||F.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,I.state=S(S({},K),I.animationHandler(F,K)),I}return m(D,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(I,K){!I.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!I.autoFocus&&this.props.autoFocus&&this.forceFocus(),K.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(I.selectedItem!==this.props.selectedItem||I.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),I.autoPlay!==this.props.autoPlay&&(this.props.autoPlay?this.setupAutoPlay():this.destroyAutoPlay(),this.setState({autoPlay:this.props.autoPlay}))}},{key:"componentWillUnmount",value:function(){this.destroyCarousel()}},{key:"setupCarousel",value:function(){var I=this;this.bindEvents(),this.state.autoPlay&&e.Children.count(this.props.children)>1&&this.setupAutoPlay(),this.props.autoFocus&&this.forceFocus(),this.setState({initialized:!0},function(){var K=I.getInitialImage();K&&!K.complete?K.addEventListener("load",I.setMountState):I.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.addEventListener("mouseenter",this.stopOnHover),I.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var I=this.carouselWrapperRef;this.props.stopOnHover&&I&&(I.removeEventListener("mouseenter",this.stopOnHover),I.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,s.default)().addEventListener("resize",this.updateSizes),(0,s.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,i.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,s.default)().removeEventListener("resize",this.updateSizes),(0,s.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var I=this.getInitialImage();I&&I.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,i.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var I;(I=this.carouselWrapperRef)===null||I===void 0||I.focus()}},{key:"renderItems",value:function(I){var K=this;return this.props.children?e.Children.map(this.props.children,function(te,Y){var ve=Y===K.state.selectedItem,j=Y===K.state.previousItem,W=ve&&K.state.selectedStyle||j&&K.state.prevStyle||K.state.slideStyle||{};K.props.centerMode&&K.props.axis==="horizontal"&&(W=S(S({},W),{},{minWidth:K.props.centerSlidePercentage+"%"})),K.state.swiping&&K.state.swipeMovementStarted&&(W=S(S({},W),{},{pointerEvents:"none"}));var ee={ref:function(X){return K.setItemsRef(X,Y)},key:"itemKey"+Y+(I?"clone":""),className:r.default.ITEM(!0,Y===K.state.selectedItem,Y===K.state.previousItem),onClick:K.handleClickItem.bind(K,Y,te),style:W};return e.default.createElement("li",ee,K.props.renderItem(te,{isSelected:Y===K.state.selectedItem,isPrevious:Y===K.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var I=this,K=this.props,te=K.showIndicators,Y=K.labels,ve=K.renderIndicator,j=K.children;return te?e.default.createElement("ul",{className:"control-dots"},e.Children.map(j,function(W,ee){return ve&&ve(I.changeItem(ee),ee===I.state.selectedItem,ee,Y.item)})):null}},{key:"renderStatus",value:function(){return this.props.showStatus?e.default.createElement("p",{className:"carousel-status"},this.props.statusFormatter(this.state.selectedItem+1,e.Children.count(this.props.children))):null}},{key:"renderThumbs",value:function(){return!this.props.showThumbs||!this.props.children||e.Children.count(this.props.children)===0?null:e.default.createElement(n.default,{ref:this.setThumbsRef,onSelectItem:this.handleClickThumb,selectedItem:this.state.selectedItem,transitionTime:this.props.transitionTime,thumbWidth:this.props.thumbWidth,labels:this.props.labels,emulateTouch:this.props.emulateTouch},this.props.renderThumbs(this.props.children))}},{key:"render",value:function(){var I=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var K=this.props.swipeable&&e.Children.count(this.props.children)>1,te=this.props.axis==="horizontal",Y=this.props.showArrows&&e.Children.count(this.props.children)>1,ve=Y&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,j=Y&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,W=this.renderItems(!0),ee=W.shift(),Q=W.pop(),X={className:r.default.SLIDER(!0,this.state.swiping),onSwipeMove:this.onSwipeMove,onSwipeStart:this.onSwipeStart,onSwipeEnd:this.onSwipeEnd,style:this.state.itemListStyle,tolerance:this.props.swipeScrollTolerance},ue={};if(te){if(X.onSwipeLeft=this.onSwipeForward,X.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ie=this.getVariableItemHeight(this.state.selectedItem);ue.height=ie||"auto"}}else X.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,X.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,X.style=S(S({},X.style),{},{height:this.state.itemSize}),ue.height=this.state.itemSize;return e.default.createElement("div",{"aria-label":this.props.ariaLabel,className:r.default.ROOT(this.props.className),ref:this.setCarouselWrapperRef,tabIndex:this.props.useKeyboardArrows?0:void 0},e.default.createElement("div",{className:r.default.CAROUSEL(!0),style:{width:this.props.width}},this.renderControls(),this.props.renderArrowPrev(this.onClickPrev,ve,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ue},K?e.default.createElement(t.default,h({tagName:"ul",innerRef:this.setListRef},X,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&Q,this.renderItems(),this.props.infiniteLoop&&ee):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(de){return I.setListRef(de)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&Q,this.renderItems(),this.props.infiniteLoop&&ee)),this.props.renderArrowNext(this.onClickNext,j,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),D})(e.default.Component);return zs.default=U,z(U,"displayName","Carousel"),z(U,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:l.noop,onClickThumb:l.noop,onChange:l.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(M,D,F){return e.default.createElement("button",{type:"button","aria-label":F,className:r.default.ARROW_PREV(!D),onClick:M})},renderArrowNext:function(M,D,F){return e.default.createElement("button",{type:"button","aria-label":F,className:r.default.ARROW_NEXT(!D),onClick:M})},renderIndicator:function(M,D,F,I){return e.default.createElement("li",{className:r.default.DOT(D),onClick:M,onKeyDown:M,value:F,key:F,role:"button",tabIndex:0,"aria-label":"".concat(I," ").concat(F+1)})},renderItem:function(M){return M},renderThumbs:function(M){var D=e.Children.map(M,function(F){var I=F;if(F.type!=="img"&&(I=e.Children.toArray(F.props.children).find(function(K){return K.type==="img"})),!!I)return I});return D.filter(function(F){return F}).length===0?(console.warn("No images found! Can't build the thumb list without images. If you don't need thumbs, set showThumbs={false} in the Carousel. Note that it's not possible to get images rendered inside custom components. More info at https://github.com/leandrowd/react-responsive-carousel/blob/master/TROUBLESHOOTING.md"),[]):D},statusFormatter:l.defaultStatusFormatter,selectedItem:0,showArrows:!0,showIndicators:!0,showStatus:!0,showThumbs:!0,stopOnHover:!0,swipeScrollTolerance:5,swipeable:!0,transitionTime:350,verticalSwipe:"standard",width:"100%",animationHandler:"slide",swipeAnimationHandler:c.slideSwipeAnimationHandler,stopSwipingHandler:c.slideStopSwipingHandler}),zs}var Ub={},qb;function pL(){return qb||(qb=1),Ub}var Gb;function hL(){return Gb||(Gb=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Carousel",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(e,"CarouselProps",{enumerable:!0,get:function(){return r.CarouselProps}}),Object.defineProperty(e,"Thumbs",{enumerable:!0,get:function(){return n.default}});var t=i(fL()),r=pL(),n=i(r1());function i(s){return s&&s.__esModule?s:{default:s}}})(df)),df}var gL=hL();const vL=({tip:e})=>A.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:i1(e,!0)}),mL=({pages:e})=>A.jsx("div",{className:"min-h-[10rem] w-96",children:A.jsx(gL.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>A.jsx(vL,{tip:t},t.key))})}),bL=({body:e,isInsideCarousel:t})=>A.jsx("article",{className:st(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-muted",{"w-60":!t}]),children:A.jsx(Pc,{children:e,options:{overrides:{a:{component:({children:r,...n})=>A.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary",children:[r,A.jsx(Jy,{className:"ml-1 mt-px h-4 w-4"})]})},strong:{component:({children:r,...n})=>A.jsx("span",{...n,className:"font-semibold text-body",children:r})}}}})}),yL=({video:e,body:t,title:r,isInsideCarousel:n})=>A.jsxs("div",{className:st([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[A.jsx("div",{className:st([{"mr-1":!n,"mb-1":n}]),children:A.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),A.jsx("article",{className:st(["prose prose-sm p-1 text-left text-xs text-muted",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:A.jsx(Pc,{children:t||"",options:{overrides:{a:{component:({children:i,...s})=>A.jsxs("a",{...s,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[i,A.jsx(Jy,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),i1=(e,t)=>{switch(e.type){case wc.TEXT:return A.jsx(bL,{body:e.body,isInsideCarousel:t});case wc.VIDEO:return A.jsx(yL,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case wc.CAROUSEL:return A.jsx(mL,{pages:e.pages})}},o1=N.createContext(void 0);function Zb(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const wL=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:i},s]=N.useState({tips:{},show:!0});N.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const f=u.reduce((g,p)=>Zb(u,p.key).length>1?{...g,[p.key]:{type:"carousel",pages:Zb(u,p.key)}}:{...g,[p.key]:p},{});s(g=>({...g,tips:f}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{s(c=>({...c,show:!i}))};return A.jsx(o1.Provider,{value:{tips:n,toggleTips:l,show:i,enabled:t},children:e})},s1=e=>{const t=N.useContext(o1);if(t===void 0)throw new Error("useTip must be used within a TipsContext");return{tip:e?t.tips[e]:null,toggleTips:t.toggleTips,show:t.show,enabled:t.enabled}},xL=Ic(Q3)`
134
134
  &[data-state='open'] > * {
135
135
  display: block !important;
136
136
  }
137
- `,n1=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:i,enabled:s}=r1(e),[l,c]=N.useState(!1),u=N.useRef(null);return N.useEffect(()=>{if(u.current){const f=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return f.observe(u.current),()=>{u.current&&f.unobserve(u.current)}}},[]),i&&s?A.jsxs(J3,{open:l,onOpenChange:c,children:[A.jsx(xL,{ref:u,className:st("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:f=>f.stopPropagation(),children:A.jsx("span",{className:st("group-hover:block",{hidden:!r}),children:A.jsx(P2,{className:"h-4 w-4 text-yellow-300"})})}),A.jsx(eL,{side:t,sideOffset:5,onClick:f=>f.stopPropagation(),children:A.jsx(Gi,{depth:3,borderType:"light",className:"relative rounded border p-2 text-xs shadow-2xl",children:e1(i)})})]}):null};function $p(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Ki=$p();function i1(e){Ki=e}var sa={exec:()=>null};function Ve(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(Qt.caret,"$1"),r=r.replace(i,l),n},getRegex:()=>new RegExp(r,t)};return n}var Qt={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},SL=/^(?:[ \t]*(?:\n|$))+/,EL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_L=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ta=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,OL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,jp=/(?:[*+-]|\d{1,9}[.)])/,o1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,s1=Ve(o1).replace(/bull/g,jp).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kL=Ve(o1).replace(/bull/g,jp).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Fp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,AL=/^[^\n]+/,Hp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,TL=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Hp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),RL=Ve(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,jp).getRegex(),eu="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",Bp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,CL=Ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",Bp).replace("tag",eu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),a1=Ve(Fp).replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eu).getRegex(),IL=Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",a1).getRegex(),Wp={blockquote:IL,code:EL,def:TL,fences:_L,heading:OL,hr:Ta,html:CL,lheading:s1,list:RL,newline:SL,paragraph:a1,table:sa,text:AL},Ub=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eu).getRegex(),PL={...Wp,lheading:kL,table:Ub,paragraph:Ve(Fp).replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Ub).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",eu).getRegex()},NL={...Wp,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",Bp).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:sa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Fp).replace("hr",Ta).replace("heading",` *#{1,6} *[^
138
- ]`).replace("lheading",s1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ML=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,DL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,l1=/^( {2,}|\\)\n(?!\s*$)/,LL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,tu=/[\p{P}\p{S}]/u,Vp=/[\s\p{P}\p{S}]/u,c1=/[^\s\p{P}\p{S}]/u,zL=Ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Vp).getRegex(),u1=/(?!~)[\p{P}\p{S}]/u,$L=/(?!~)[\s\p{P}\p{S}]/u,jL=/(?:[^\s\p{P}\p{S}]|~)/u,FL=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,d1=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,HL=Ve(d1,"u").replace(/punct/g,tu).getRegex(),BL=Ve(d1,"u").replace(/punct/g,u1).getRegex(),f1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",WL=Ve(f1,"gu").replace(/notPunctSpace/g,c1).replace(/punctSpace/g,Vp).replace(/punct/g,tu).getRegex(),VL=Ve(f1,"gu").replace(/notPunctSpace/g,jL).replace(/punctSpace/g,$L).replace(/punct/g,u1).getRegex(),UL=Ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,c1).replace(/punctSpace/g,Vp).replace(/punct/g,tu).getRegex(),qL=Ve(/\\(punct)/,"gu").replace(/punct/g,tu).getRegex(),GL=Ve(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ZL=Ve(Bp).replace("(?:-->|$)","-->").getRegex(),KL=Ve("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ZL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Nc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,YL=Ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Nc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),p1=Ve(/^!?\[(label)\]\[(ref)\]/).replace("label",Nc).replace("ref",Hp).getRegex(),h1=Ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",Hp).getRegex(),XL=Ve("reflink|nolink(?!\\()","g").replace("reflink",p1).replace("nolink",h1).getRegex(),qb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Up={_backpedal:sa,anyPunctuation:qL,autolink:GL,blockSkip:FL,br:l1,code:DL,del:sa,emStrongLDelim:HL,emStrongRDelimAst:WL,emStrongRDelimUnd:UL,escape:ML,link:YL,nolink:h1,punctuation:zL,reflink:p1,reflinkSearch:XL,tag:KL,text:LL,url:sa},JL={...Up,link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",Nc).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Nc).getRegex()},qf={...Up,emStrongRDelimAst:VL,emStrongLDelim:BL,url:Ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",qb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ve(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",qb).getRegex()},QL={...qf,br:Ve(l1).replace("{2,}","*").getRegex(),text:Ve(qf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Jl={normal:Wp,gfm:PL,pedantic:NL},Vs={normal:Up,gfm:qf,breaks:QL,pedantic:JL},ez={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Gb=e=>ez[e];function fn(e,t){if(t){if(Qt.escapeTest.test(e))return e.replace(Qt.escapeReplace,Gb)}else if(Qt.escapeTestNoEncode.test(e))return e.replace(Qt.escapeReplaceNoEncode,Gb);return e}function Zb(e){try{e=encodeURI(e).replace(Qt.percentDecode,"%")}catch{return null}return e}function Kb(e,t){var s;let r=e.replace(Qt.findPipe,(l,c,u)=>{let f=!1,g=c;for(;--g>=0&&u[g]==="\\";)f=!f;return f?"|":" |"}),n=r.split(Qt.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(Qt.slashPipe,"|");return n}function Us(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function tz(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function Yb(e,t,r,n,i){let s=t.href,l=t.title||null,c=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function rz(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
137
+ `,a1=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:i,enabled:s}=s1(e),[l,c]=N.useState(!1),u=N.useRef(null);return N.useEffect(()=>{if(u.current){const f=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return f.observe(u.current),()=>{u.current&&f.unobserve(u.current)}}},[]),i&&s?A.jsxs(J3,{open:l,onOpenChange:c,children:[A.jsx(xL,{ref:u,className:st("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:f=>f.stopPropagation(),children:A.jsx("span",{className:st("group-hover:block",{hidden:!r}),children:A.jsx(I5,{className:"h-4 w-4 text-yellow-300"})})}),A.jsx(eL,{side:t,sideOffset:5,onClick:f=>f.stopPropagation(),children:A.jsx(qi,{depth:3,borderType:"light",className:"relative rounded border p-2 text-xs shadow-2xl",children:i1(i)})})]}):null};function Wp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Zi=Wp();function l1(e){Zi=e}var sa={exec:()=>null};function Ve(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(i,s)=>{let l=typeof s=="string"?s:s.source;return l=l.replace(er.caret,"$1"),r=r.replace(i,l),n},getRegex:()=>new RegExp(r,t)};return n}var er={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>new RegExp(`^( {0,3}${e})((?:[ ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`),hrRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>new RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},SL=/^(?:[ \t]*(?:\n|$))+/,EL=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,_L=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Ta=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,OL=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,Bp=/(?:[*+-]|\d{1,9}[.)])/,c1=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,u1=Ve(c1).replace(/bull/g,Bp).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),kL=Ve(c1).replace(/bull/g,Bp).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),Vp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,AL=/^[^\n]+/,Up=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,TL=Ve(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Up).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),RL=Ve(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,Bp).getRegex(),tu="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",qp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,CL=Ve("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ ]*)+\\n|$))","i").replace("comment",qp).replace("tag",tu).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),d1=Ve(Vp).replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tu).getRegex(),PL=Ve(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",d1).getRegex(),Gp={blockquote:PL,code:EL,def:TL,fences:_L,heading:OL,hr:Ta,html:CL,lheading:u1,list:RL,newline:SL,paragraph:d1,table:sa,text:AL},Kb=Ve("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3} )[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tu).getRegex(),IL={...Gp,lheading:kL,table:Kb,paragraph:Ve(Vp).replace("hr",Ta).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Kb).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",tu).getRegex()},NL={...Gp,html:Ve(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",qp).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:sa,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ve(Vp).replace("hr",Ta).replace("heading",` *#{1,6} *[^
138
+ ]`).replace("lheading",u1).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},ML=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,DL=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,f1=/^( {2,}|\\)\n(?!\s*$)/,LL=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,ru=/[\p{P}\p{S}]/u,Zp=/[\s\p{P}\p{S}]/u,p1=/[^\s\p{P}\p{S}]/u,zL=Ve(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,Zp).getRegex(),h1=/(?!~)[\p{P}\p{S}]/u,$L=/(?!~)[\s\p{P}\p{S}]/u,jL=/(?:[^\s\p{P}\p{S}]|~)/u,FL=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,g1=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,HL=Ve(g1,"u").replace(/punct/g,ru).getRegex(),WL=Ve(g1,"u").replace(/punct/g,h1).getRegex(),v1="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",BL=Ve(v1,"gu").replace(/notPunctSpace/g,p1).replace(/punctSpace/g,Zp).replace(/punct/g,ru).getRegex(),VL=Ve(v1,"gu").replace(/notPunctSpace/g,jL).replace(/punctSpace/g,$L).replace(/punct/g,h1).getRegex(),UL=Ve("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,p1).replace(/punctSpace/g,Zp).replace(/punct/g,ru).getRegex(),qL=Ve(/\\(punct)/,"gu").replace(/punct/g,ru).getRegex(),GL=Ve(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),ZL=Ve(qp).replace("(?:-->|$)","-->").getRegex(),KL=Ve("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",ZL).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Mc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,YL=Ve(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Mc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),m1=Ve(/^!?\[(label)\]\[(ref)\]/).replace("label",Mc).replace("ref",Up).getRegex(),b1=Ve(/^!?\[(ref)\](?:\[\])?/).replace("ref",Up).getRegex(),XL=Ve("reflink|nolink(?!\\()","g").replace("reflink",m1).replace("nolink",b1).getRegex(),Yb=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Kp={_backpedal:sa,anyPunctuation:qL,autolink:GL,blockSkip:FL,br:f1,code:DL,del:sa,emStrongLDelim:HL,emStrongRDelimAst:BL,emStrongRDelimUnd:UL,escape:ML,link:YL,nolink:b1,punctuation:zL,reflink:m1,reflinkSearch:XL,tag:KL,text:LL,url:sa},JL={...Kp,link:Ve(/^!?\[(label)\]\((.*?)\)/).replace("label",Mc).getRegex(),reflink:Ve(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Mc).getRegex()},Yf={...Kp,emStrongRDelimAst:VL,emStrongLDelim:WL,url:Ve(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",Yb).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:Ve(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",Yb).getRegex()},QL={...Yf,br:Ve(f1).replace("{2,}","*").getRegex(),text:Ve(Yf.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ql={normal:Gp,gfm:IL,pedantic:NL},Vs={normal:Kp,gfm:Yf,breaks:QL,pedantic:JL},e4={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Xb=e=>e4[e];function fn(e,t){if(t){if(er.escapeTest.test(e))return e.replace(er.escapeReplace,Xb)}else if(er.escapeTestNoEncode.test(e))return e.replace(er.escapeReplaceNoEncode,Xb);return e}function Jb(e){try{e=encodeURI(e).replace(er.percentDecode,"%")}catch{return null}return e}function Qb(e,t){var s;let r=e.replace(er.findPipe,(l,c,u)=>{let f=!1,g=c;for(;--g>=0&&u[g]==="\\";)f=!f;return f?"|":" |"}),n=r.split(er.splitPipe),i=0;if(n[0].trim()||n.shift(),n.length>0&&!((s=n.at(-1))!=null&&s.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;i<n.length;i++)n[i]=n[i].trim().replace(er.slashPipe,"|");return n}function Us(e,t,r){let n=e.length;if(n===0)return"";let i=0;for(;i<n&&e.charAt(n-i-1)===t;)i++;return e.slice(0,n-i)}function t4(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let n=0;n<e.length;n++)if(e[n]==="\\")n++;else if(e[n]===t[0])r++;else if(e[n]===t[1]&&(r--,r<0))return n;return r>0?-2:-1}function ey(e,t,r,n,i){let s=t.href,l=t.title||null,c=e[1].replace(i.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:s,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function r4(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let i=n[1];return t.split(`
139
139
  `).map(s=>{let l=s.match(r.other.beginningSpace);if(l===null)return s;let[c]=l;return c.length>=i.length?s.slice(i.length):s}).join(`
140
- `)}var Mc=class{constructor(t){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=t||Ki}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Us(n,`
141
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=rz(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Us(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Us(r[0],`
140
+ `)}var Dc=class{constructor(t){Te(this,"options");Te(this,"rules");Te(this,"lexer");this.options=t||Zi}space(t){let r=this.rules.block.newline.exec(t);if(r&&r[0].length>0)return{type:"space",raw:r[0]}}code(t){let r=this.rules.block.code.exec(t);if(r){let n=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?n:Us(n,`
141
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],i=r4(n,r[3]||"",this.rules);return{type:"code",raw:n,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:i}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let n=r[2].trim();if(this.rules.other.endingHash.test(n)){let i=Us(n,"#");(this.options.pedantic||!i||this.rules.other.endingSpaceChar.test(i))&&(n=i.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:n,tokens:this.lexer.inline(n)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:Us(r[0],`
142
142
  `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Us(r[0],`
143
143
  `).split(`
144
144
  `),i="",s="",l=[];for(;n.length>0;){let c=!1,u=[],f;for(f=0;f<n.length;f++)if(this.rules.other.blockquoteStart.test(n[f]))u.push(n[f]),c=!0;else if(!c)u.push(n[f]);else break;n=n.slice(f);let g=u.join(`
@@ -154,13 +154,13 @@ ${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
154
154
  `,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),b=t.split(`
155
155
  `,1)[0],S=!h.trim(),v=0;if(this.options.pedantic?(v=2,p=h.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,p=h.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(b)&&(g+=b+`
156
156
  `,t=t.substring(b.length+1),f=!0),!f){let w=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),O=this.rules.other.fencesBeginRegex(v),_=this.rules.other.headingBeginRegex(v),R=this.rules.other.htmlBeginRegex(v);for(;t;){let H=t.split(`
157
- `,1)[0],I;if(b=H,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),I=b):I=b.replace(this.rules.other.tabCharGlobal," "),O.test(b)||_.test(b)||R.test(b)||w.test(b)||x.test(b))break;if(I.search(this.rules.other.nonSpaceChar)>=v||!b.trim())p+=`
158
- `+I.slice(v);else{if(S||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(h)||_.test(h)||x.test(h))break;p+=`
157
+ `,1)[0],P;if(b=H,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),P=b):P=b.replace(this.rules.other.tabCharGlobal," "),O.test(b)||_.test(b)||R.test(b)||w.test(b)||x.test(b))break;if(P.search(this.rules.other.nonSpaceChar)>=v||!b.trim())p+=`
158
+ `+P.slice(v);else{if(S||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||O.test(h)||_.test(h)||x.test(h))break;p+=`
159
159
  `+b}!S&&!b.trim()&&(S=!0),g+=H+`
160
- `,t=t.substring(H.length+1),h=I.slice(v)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let y=null,m;this.options.gfm&&(y=this.rules.other.listIsTask.exec(p),y&&(m=y[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:g,task:!!y,checked:m,loose:!1,text:p,tokens:[]}),s.raw+=g}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){let g=s.items[f].tokens.filter(h=>h.type==="space"),p=g.length>0&&g.some(h=>this.rules.other.anyLine.test(h.raw));s.loose=p}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Kb(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
161
- `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of s)l.rows.push(Kb(u,l.header.length).map((f,g)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:l.align[g]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
162
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=Us(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=tz(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let i=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),Yb(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return Yb(n,s,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,c,u=s,f=0,g=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+s);(i=g.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(c=[...l].length,i[3]||i[4]){u+=c;continue}else if((i[5]||i[6])&&s%3&&!((s+c)%3)){f+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+f);let p=[...i[0]][0].length,h=t.slice(0,s+i.index+p+c);if(Math.min(s,c)%2){let S=h.slice(1,-1);return{type:"em",raw:h,text:S,tokens:this.lexer.inlineTokens(S)}}let b=h.slice(2,-2);return{type:"strong",raw:h,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=r[0],s="mailto:"+i;else{let l;do l=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(l!==r[0]);i=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Zr=class Gf{constructor(t){Ae(this,"tokens");Ae(this,"options");Ae(this,"state");Ae(this,"tokenizer");Ae(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Ki,this.options.tokenizer=this.options.tokenizer||new Mc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Qt,block:Jl.normal,inline:Vs.normal};this.options.pedantic?(r.block=Jl.pedantic,r.inline=Vs.pedantic):this.options.gfm&&(r.block=Jl.gfm,this.options.breaks?r.inline=Vs.breaks:r.inline=Vs.gfm),this.tokenizer.rules=r}static get rules(){return{block:Jl,inline:Vs}}static lex(t,r){return new Gf(r).lex(t)}static lexInline(t,r){return new Gf(r).inlineTokens(t)}lex(t){t=t.replace(Qt.carriageReturn,`
163
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(Qt.tabCharGlobal," ").replace(Qt.spaceLine,""));t;){let c;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(f=>(c=f.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let f=r.at(-1);c.raw.length===1&&f!==void 0?f.raw+=`
160
+ `,t=t.substring(H.length+1),h=P.slice(v)}}s.loose||(c?s.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let y=null,m;this.options.gfm&&(y=this.rules.other.listIsTask.exec(p),y&&(m=y[0]!=="[ ] ",p=p.replace(this.rules.other.listReplaceTask,""))),s.items.push({type:"list_item",raw:g,task:!!y,checked:m,loose:!1,text:p,tokens:[]}),s.raw+=g}let u=s.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;s.raw=s.raw.trimEnd();for(let f=0;f<s.items.length;f++)if(this.lexer.state.top=!1,s.items[f].tokens=this.lexer.blockTokens(s.items[f].text,[]),!s.loose){let g=s.items[f].tokens.filter(h=>h.type==="space"),p=g.length>0&&g.some(h=>this.rules.other.anyLine.test(h.raw));s.loose=p}if(s.loose)for(let f=0;f<s.items.length;f++)s.items[f].loose=!0;return s}}html(t){let r=this.rules.block.html.exec(t);if(r)return{type:"html",block:!0,raw:r[0],pre:r[1]==="pre"||r[1]==="script"||r[1]==="style",text:r[0]}}def(t){let r=this.rules.block.def.exec(t);if(r){let n=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),i=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",s=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:n,raw:r[0],href:i,title:s}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Qb(r[1]),i=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),s=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
161
+ `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===i.length){for(let u of i)this.rules.other.tableAlignRight.test(u)?l.align.push("right"):this.rules.other.tableAlignCenter.test(u)?l.align.push("center"):this.rules.other.tableAlignLeft.test(u)?l.align.push("left"):l.align.push(null);for(let u=0;u<n.length;u++)l.header.push({text:n[u],tokens:this.lexer.inline(n[u]),header:!0,align:l.align[u]});for(let u of s)l.rows.push(Qb(u,l.header.length).map((f,g)=>({text:f,tokens:this.lexer.inline(f),header:!1,align:l.align[g]})));return l}}lheading(t){let r=this.rules.block.lheading.exec(t);if(r)return{type:"heading",raw:r[0],depth:r[2].charAt(0)==="="?1:2,text:r[1],tokens:this.lexer.inline(r[1])}}paragraph(t){let r=this.rules.block.paragraph.exec(t);if(r){let n=r[1].charAt(r[1].length-1)===`
162
+ `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:n,tokens:this.lexer.inline(n)}}}text(t){let r=this.rules.block.text.exec(t);if(r)return{type:"text",raw:r[0],text:r[0],tokens:this.lexer.inline(r[0])}}escape(t){let r=this.rules.inline.escape.exec(t);if(r)return{type:"escape",raw:r[0],text:r[1]}}tag(t){let r=this.rules.inline.tag.exec(t);if(r)return!this.lexer.state.inLink&&this.rules.other.startATag.test(r[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(r[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(r[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(r[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:r[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:r[0]}}link(t){let r=this.rules.inline.link.exec(t);if(r){let n=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(n)){if(!this.rules.other.endAngleBracket.test(n))return;let l=Us(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=t4(r[2],"()");if(l===-2)return;if(l>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+l;r[2]=r[2].substring(0,l),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let i=r[2],s="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(i);l&&(i=l[1],s=l[3])}else s=r[3]?r[3].slice(1,-1):"";return i=i.trim(),this.rules.other.startAngleBracket.test(i)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?i=i.slice(1):i=i.slice(1,-1)),ey(r,{href:i&&i.replace(this.rules.inline.anyPunctuation,"$1"),title:s&&s.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let n;if((n=this.rules.inline.reflink.exec(t))||(n=this.rules.inline.nolink.exec(t))){let i=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),s=r[i.toLowerCase()];if(!s){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return ey(n,s,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let i=this.rules.inline.emStrongLDelim.exec(t);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let s=[...i[0]].length-1,l,c,u=s,f=0,g=i[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+s);(i=g.exec(r))!=null;){if(l=i[1]||i[2]||i[3]||i[4]||i[5]||i[6],!l)continue;if(c=[...l].length,i[3]||i[4]){u+=c;continue}else if((i[5]||i[6])&&s%3&&!((s+c)%3)){f+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+f);let p=[...i[0]][0].length,h=t.slice(0,s+i.index+p+c);if(Math.min(s,c)%2){let S=h.slice(1,-1);return{type:"em",raw:h,text:S,tokens:this.lexer.inlineTokens(S)}}let b=h.slice(2,-2);return{type:"strong",raw:h,text:b,tokens:this.lexer.inlineTokens(b)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let n=r[2].replace(this.rules.other.newLineCharGlobal," "),i=this.rules.other.nonSpaceChar.test(n),s=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return i&&s&&(n=n.substring(1,n.length-1)),{type:"codespan",raw:r[0],text:n}}}br(t){let r=this.rules.inline.br.exec(t);if(r)return{type:"br",raw:r[0]}}del(t){let r=this.rules.inline.del.exec(t);if(r)return{type:"del",raw:r[0],text:r[2],tokens:this.lexer.inlineTokens(r[2])}}autolink(t){let r=this.rules.inline.autolink.exec(t);if(r){let n,i;return r[2]==="@"?(n=r[1],i="mailto:"+n):(n=r[1],i=n),{type:"link",raw:r[0],text:n,href:i,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let i,s;if(r[2]==="@")i=r[0],s="mailto:"+i;else{let l;do l=r[0],r[0]=((n=this.rules.inline._backpedal.exec(r[0]))==null?void 0:n[0])??"";while(l!==r[0]);i=r[0],r[1]==="www."?s="http://"+r[0]:s=r[0]}return{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let n=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:n}}}},Kr=class Xf{constructor(t){Te(this,"tokens");Te(this,"options");Te(this,"state");Te(this,"tokenizer");Te(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Zi,this.options.tokenizer=this.options.tokenizer||new Dc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:er,block:Ql.normal,inline:Vs.normal};this.options.pedantic?(r.block=Ql.pedantic,r.inline=Vs.pedantic):this.options.gfm&&(r.block=Ql.gfm,this.options.breaks?r.inline=Vs.breaks:r.inline=Vs.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ql,inline:Vs}}static lex(t,r){return new Xf(r).lex(t)}static lexInline(t,r){return new Xf(r).inlineTokens(t)}lex(t){t=t.replace(er.carriageReturn,`
163
+ `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let n=this.inlineQueue[r];this.inlineTokens(n.src,n.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],n=!1){var i,s,l;for(this.options.pedantic&&(t=t.replace(er.tabCharGlobal," ").replace(er.spaceLine,""));t;){let c;if((s=(i=this.options.extensions)==null?void 0:i.block)!=null&&s.some(f=>(c=f.call({lexer:this},t,r))?(t=t.substring(c.raw.length),r.push(c),!0):!1))continue;if(c=this.tokenizer.space(t)){t=t.substring(c.raw.length);let f=r.at(-1);c.raw.length===1&&f!==void 0?f.raw+=`
164
164
  `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="paragraph"||(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
165
165
  `)?"":`
166
166
  `)+c.raw,f.text+=`
@@ -173,7 +173,7 @@ ${p}`:p;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTo
173
173
  `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(c),n=u.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let f=r.at(-1);(f==null?void 0:f.type)==="text"?(f.raw+=(f.raw.endsWith(`
174
174
  `)?"":`
175
175
  `)+c.raw,f.text+=`
176
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(c);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,f,g,p;let n=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((u=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:u.call({lexer:this},n))??n;let s=!1,l="";for(;t;){s||(l=""),s=!1;let h;if((g=(f=this.options.extensions)==null?void 0:f.inline)!=null&&g.some(S=>(h=S.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let S=r.at(-1);h.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,l)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let b=t;if((p=this.options.extensions)!=null&&p.startInline){let S=1/0,v=t.slice(1),y;this.options.extensions.startInline.forEach(m=>{y=m.call({lexer:this},v),typeof y=="number"&&y>=0&&(S=Math.min(S,y))}),S<1/0&&S>=0&&(b=t.substring(0,S+1))}if(h=this.tokenizer.inlineText(b)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(l=h.raw.slice(-1)),s=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},Dc=class{constructor(t){Ae(this,"options");Ae(this,"parser");this.options=t||Ki}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let i=(l=(r||"").match(Qt.notSpaceStart))==null?void 0:l[0],s=t.replace(Qt.endingNewline,"")+`
176
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=f.text):r.push(c);continue}if(t){let f="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(f);break}else throw new Error(f)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,f,g,p;let n=t,i=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(i=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.includes(i[0].slice(i[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(i=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,i.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(i=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,i.index)+"["+"a".repeat(i[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);n=((u=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:u.call({lexer:this},n))??n;let s=!1,l="";for(;t;){s||(l=""),s=!1;let h;if((g=(f=this.options.extensions)==null?void 0:f.inline)!=null&&g.some(S=>(h=S.call({lexer:this},t,r))?(t=t.substring(h.raw.length),r.push(h),!0):!1))continue;if(h=this.tokenizer.escape(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.tag(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.link(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(h.raw.length);let S=r.at(-1);h.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(h=this.tokenizer.emStrong(t,n,l)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.codespan(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.br(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.del(t)){t=t.substring(h.raw.length),r.push(h);continue}if(h=this.tokenizer.autolink(t)){t=t.substring(h.raw.length),r.push(h);continue}if(!this.state.inLink&&(h=this.tokenizer.url(t))){t=t.substring(h.raw.length),r.push(h);continue}let b=t;if((p=this.options.extensions)!=null&&p.startInline){let S=1/0,v=t.slice(1),y;this.options.extensions.startInline.forEach(m=>{y=m.call({lexer:this},v),typeof y=="number"&&y>=0&&(S=Math.min(S,y))}),S<1/0&&S>=0&&(b=t.substring(0,S+1))}if(h=this.tokenizer.inlineText(b)){t=t.substring(h.raw.length),h.raw.slice(-1)!=="_"&&(l=h.raw.slice(-1)),s=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=h.raw,S.text+=h.text):r.push(h);continue}if(t){let S="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(S);break}else throw new Error(S)}}return r}},Lc=class{constructor(t){Te(this,"options");Te(this,"parser");this.options=t||Zi}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let i=(l=(r||"").match(er.notSpaceStart))==null?void 0:l[0],s=t.replace(er.endingNewline,"")+`
177
177
  `;return i?'<pre><code class="language-'+fn(i)+'">'+(n?s:fn(s,!0))+`</code></pre>
178
178
  `:"<pre><code>"+(n?s:fn(s,!0))+`</code></pre>
179
179
  `}blockquote({tokens:t}){return`<blockquote>
@@ -191,14 +191,14 @@ ${this.parser.parse(t)}</blockquote>
191
191
  `}tablerow({text:t}){return`<tr>
192
192
  ${t}</tr>
193
193
  `}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
194
- `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fn(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),s=Zb(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+fn(r)+'"'),l+=">"+i+"</a>",l}image({href:t,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=Zb(t);if(s===null)return fn(n);t=s;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${fn(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fn(t.text)}},qp=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Kr=class Zf{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||Ki,this.options.renderer=this.options.renderer||new Dc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new qp}static parse(t,r){return new Zf(r).parse(t)}static parseInline(t,r){return new Zf(r).parseInline(t)}parse(t,r=!0){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=c,g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){n+=g||"";continue}}let u=c;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let f=u,g=this.renderer.text(f);for(;l+1<t.length&&t[l+1].type==="text";)f=t[++l],g+=`
195
- `+this.renderer.text(f);r?n+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):n+=g;continue}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,r=this.renderer){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){n+=f||"";continue}}let u=c;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},ic,Ks=(ic=class{constructor(t){Ae(this,"options");Ae(this,"block");this.options=t||Ki}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Zr.lex:Zr.lexInline}provideParser(){return this.block?Kr.parse:Kr.parseInline}},Ae(ic,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(ic,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ic),g1=class{constructor(...t){Ae(this,"defaults",$p());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",Kr);Ae(this,"Renderer",Dc);Ae(this,"TextRenderer",qp);Ae(this,"Lexer",Zr);Ae(this,"Tokenizer",Mc);Ae(this,"Hooks",Ks);this.use(...t)}walkTokens(t,r){var i,s;let n=[];for(let l of t)switch(n=n.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let u of c.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of c.rows)for(let f of u)n=n.concat(this.walkTokens(f.tokens,r));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,r));break}default:{let c=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let f=c[u].flat(1/0);n=n.concat(this.walkTokens(f,r))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let u=s.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new Dc(this.defaults);for(let l in n.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Mc(this.defaults);for(let l in n.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Ks;for(let l in n.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],f=s[c];Ks.passThroughHooks.has(l)?s[c]=g=>{if(this.defaults.async&&Ks.passThroughHooksRespectAsync.has(l))return(async()=>{let h=await u.call(s,g);return f.call(s,h)})();let p=u.call(s,g);return f.call(s,p)}:s[c]=(...g)=>{if(this.defaults.async)return(async()=>{let h=await u.apply(s,g);return h===!1&&(h=await f.apply(s,g)),h})();let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,l=n.walkTokens;i.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),s&&(u=u.concat(s.call(this,c))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Zr.lex(t,r??this.defaults)}parser(t,r){return Kr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let i={...n},s={...this.defaults,...i},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,u=await(s.hooks?await s.hooks.provideLexer():t?Zr.lex:Zr.lexInline)(c,s),f=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(f,s.walkTokens));let g=await(s.hooks?await s.hooks.provideParser():t?Kr.parse:Kr.parseInline)(f,s);return s.hooks?await s.hooks.postprocess(g):g})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?Zr.lex:Zr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let u=(s.hooks?s.hooks.provideParser():t?Kr.parse:Kr.parseInline)(c,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
196
- Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+fn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Ui=new g1;function rt(e,t){return Ui.parse(e,t)}rt.options=rt.setOptions=function(e){return Ui.setOptions(e),rt.defaults=Ui.defaults,i1(rt.defaults),rt};rt.getDefaults=$p;rt.defaults=Ki;rt.use=function(...e){return Ui.use(...e),rt.defaults=Ui.defaults,i1(rt.defaults),rt};rt.walkTokens=function(e,t){return Ui.walkTokens(e,t)};rt.parseInline=Ui.parseInline;rt.Parser=Kr;rt.parser=Kr.parse;rt.Renderer=Dc;rt.TextRenderer=qp;rt.Lexer=Zr;rt.lexer=Zr.lex;rt.Tokenizer=Mc;rt.Hooks=Ks;rt.parse=rt;rt.options;rt.setOptions;rt.use;rt.walkTokens;rt.parseInline;Kr.parse;Zr.lex;const nz={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},v1=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,iz=RegExp(v1.source),Xb=(e="")=>iz.test(e)?e.replace(v1,t=>nz[t]||"'"):e,Jb=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var oz=class{constructor(e){Ae(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const n=r.depth;return this.renderer.heading(this.parseInline(r.tokens),n)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const n=r;return n.tokens?this.parseInline(n.tokens):r.text}case"blockquote":{const n=r,i=this.parse(n.tokens);return this.renderer.blockquote(i)}case"list":{const n=r;this.renderer.elIdList.push(0);const i=n.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(i,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const n=r;this.renderer.elIdList.push(0);const i=n.header.map((f,g)=>this.renderer.tableCell(this.parseInline(f.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(i),l=this.renderer.tableHeader(s);this.renderer.elIdList.push(0);const c=n.rows.map(f=>{this.renderer.elIdList.push(0);const g=f.map((p,h)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[h]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(g)});this.renderer.elIdList.pop();const u=this.renderer.tableBody(c);return this.renderer.table([l,u])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(Xb(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(Xb(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},sz=oz,ui,ot,yt,Kf,Ny,az=(Ny=class{constructor(e={}){Ft(this,ot);Ae(this,"elIdList",[]);Ft(this,ui);const{renderer:t}=e;Qe(this,ui,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const i=r,s=n;!this[i]||i==="elementId"||i==="elIdList"||typeof s!="function"||Object.defineProperty(this,i,{value(...l){return Ee(this,ot,Kf).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return Ee(this,ot,yt).call(this,`h${t}`,e)}paragraph(e){return Ee(this,ot,yt).call(this,"p",e)}link(e,t){const r=Jb(e,le(this,ui).baseURL),n=le(this,ui).openLinksInNewTab?"_blank":null;return Ee(this,ot,yt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=Jb(e,le(this,ui).baseURL);return Ee(this,ot,yt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${le(this,ui).langPrefix}${t}`:null;return Ee(this,ot,yt).call(this,"code",e,{className:r})}code(e,t){return Ee(this,ot,yt).call(this,"pre",this.codespan(e,t))}blockquote(e){return Ee(this,ot,yt).call(this,"blockquote",e)}list(e,t,r){return Ee(this,ot,yt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return Ee(this,ot,yt).call(this,"li",e)}checkbox(e){return Ee(this,ot,yt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return Ee(this,ot,yt).call(this,"table",e)}tableHeader(e){return Ee(this,ot,yt).call(this,"thead",e)}tableBody(e){return Ee(this,ot,yt).call(this,"tbody",e)}tableRow(e){return Ee(this,ot,yt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return Ee(this,ot,yt).call(this,r,e,{align:t.align})}strong(e){return Ee(this,ot,yt).call(this,"strong",e)}em(e){return Ee(this,ot,yt).call(this,"em",e)}del(e){return Ee(this,ot,yt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return Ee(this,ot,yt).call(this,"hr")}br(){return Ee(this,ot,yt).call(this,"br")}},ui=new WeakMap,ot=new WeakSet,yt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return Ee(this,ot,Kf).call(this),N.createElement(e,{...r,...n},t)},Kf=function(){this.elIdList[this.elIdList.length-1]+=1},Ny),lz=az;const cz=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},uz={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},dz=new g1,fz=e=>{cz(e);const t={...uz,...e},r=t.instance??dz,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},i=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(i,n):r.lexer(i,n),l={renderer:new lz({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new sz(l),u=t.isInline?c.parseInline(s):c.parse(s);return N.createElement(N.Fragment,null,u)};var pz=fz,hz=pz;const gz=({children:e,label:t,placement:r="top",className:n,isDisabled:i,container:s})=>{const[l,c]=N.useState(null),u=N.useRef(null),[f,g]=N.useState(null),[p,h]=N.useState(!1),b=typeof t=="string",{styles:S,attributes:v}=wp(l,f,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),y=N.Children.map(e,m=>N.isValidElement(m)?N.cloneElement(m,{ref:c,onMouseEnter:()=>h(!0),onMouseLeave:()=>{u.current=setTimeout(()=>h(!1),50)}}):m);return i?A.jsx(A.Fragment,{children:y}):A.jsxs(A.Fragment,{children:[y,p&&t&&En.createPortal(A.jsx("div",{ref:g,style:{...S.popper,zIndex:1e5},...v.popper,className:st(b?"select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md":void 0,n),onMouseEnter:()=>{u.current&&clearTimeout(u.current),h(!0)},onMouseLeave:()=>h(!1),children:b?A.jsx(hz,{openLinksInNewTab:!0,children:t}):t}),s||document.body)]})},vz=({referenceElement:e,label:t})=>{const[r,n]=N.useState(null),{styles:i,attributes:s}=wp(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return A.jsx("div",{className:"rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:n,style:{...i.popper,zIndex:1e5},...s.popper,children:t})},mz=Cf.keyframes`
194
+ `}strong({tokens:t}){return`<strong>${this.parser.parseInline(t)}</strong>`}em({tokens:t}){return`<em>${this.parser.parseInline(t)}</em>`}codespan({text:t}){return`<code>${fn(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:n}){let i=this.parser.parseInline(n),s=Jb(t);if(s===null)return i;t=s;let l='<a href="'+t+'"';return r&&(l+=' title="'+fn(r)+'"'),l+=">"+i+"</a>",l}image({href:t,title:r,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let s=Jb(t);if(s===null)return fn(n);t=s;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${fn(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:fn(t.text)}},Yp=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Yr=class Jf{constructor(t){Te(this,"options");Te(this,"renderer");Te(this,"textRenderer");this.options=t||Zi,this.options.renderer=this.options.renderer||new Lc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Yp}static parse(t,r){return new Jf(r).parse(t)}static parseInline(t,r){return new Jf(r).parseInline(t)}parse(t,r=!0){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=c,g=this.options.extensions.renderers[f.type].call({parser:this},f);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(f.type)){n+=g||"";continue}}let u=c;switch(u.type){case"space":{n+=this.renderer.space(u);continue}case"hr":{n+=this.renderer.hr(u);continue}case"heading":{n+=this.renderer.heading(u);continue}case"code":{n+=this.renderer.code(u);continue}case"table":{n+=this.renderer.table(u);continue}case"blockquote":{n+=this.renderer.blockquote(u);continue}case"list":{n+=this.renderer.list(u);continue}case"html":{n+=this.renderer.html(u);continue}case"def":{n+=this.renderer.def(u);continue}case"paragraph":{n+=this.renderer.paragraph(u);continue}case"text":{let f=u,g=this.renderer.text(f);for(;l+1<t.length&&t[l+1].type==="text";)f=t[++l],g+=`
195
+ `+this.renderer.text(f);r?n+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):n+=g;continue}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}parseInline(t,r=this.renderer){var i,s;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((s=(i=this.options.extensions)==null?void 0:i.renderers)!=null&&s[c.type]){let f=this.options.extensions.renderers[c.type].call({parser:this},c);if(f!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){n+=f||"";continue}}let u=c;switch(u.type){case"escape":{n+=r.text(u);break}case"html":{n+=r.html(u);break}case"link":{n+=r.link(u);break}case"image":{n+=r.image(u);break}case"strong":{n+=r.strong(u);break}case"em":{n+=r.em(u);break}case"codespan":{n+=r.codespan(u);break}case"br":{n+=r.br(u);break}case"del":{n+=r.del(u);break}case"text":{n+=r.text(u);break}default:{let f='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(f),"";throw new Error(f)}}}return n}},oc,Ks=(oc=class{constructor(t){Te(this,"options");Te(this,"block");this.options=t||Zi}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Kr.lex:Kr.lexInline}provideParser(){return this.block?Yr.parse:Yr.parseInline}},Te(oc,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Te(oc,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),oc),y1=class{constructor(...t){Te(this,"defaults",Wp());Te(this,"options",this.setOptions);Te(this,"parse",this.parseMarkdown(!0));Te(this,"parseInline",this.parseMarkdown(!1));Te(this,"Parser",Yr);Te(this,"Renderer",Lc);Te(this,"TextRenderer",Yp);Te(this,"Lexer",Kr);Te(this,"Tokenizer",Dc);Te(this,"Hooks",Ks);this.use(...t)}walkTokens(t,r){var i,s;let n=[];for(let l of t)switch(n=n.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let u of c.header)n=n.concat(this.walkTokens(u.tokens,r));for(let u of c.rows)for(let f of u)n=n.concat(this.walkTokens(f.tokens,r));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,r));break}default:{let c=l;(s=(i=this.defaults.extensions)==null?void 0:i.childTokens)!=null&&s[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let f=c[u].flat(1/0);n=n.concat(this.walkTokens(f,r))}):c.tokens&&(n=n.concat(this.walkTokens(c.tokens,r)))}}return n}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(n=>{let i={...n};if(i.async=this.defaults.async||i.async||!1,n.extensions&&(n.extensions.forEach(s=>{if(!s.name)throw new Error("extension name required");if("renderer"in s){let l=r.renderers[s.name];l?r.renderers[s.name]=function(...c){let u=s.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}:r.renderers[s.name]=s.renderer}if("tokenizer"in s){if(!s.level||s.level!=="block"&&s.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[s.level];l?l.unshift(s.tokenizer):r[s.level]=[s.tokenizer],s.start&&(s.level==="block"?r.startBlock?r.startBlock.push(s.start):r.startBlock=[s.start]:s.level==="inline"&&(r.startInline?r.startInline.push(s.start):r.startInline=[s.start]))}"childTokens"in s&&s.childTokens&&(r.childTokens[s.name]=s.childTokens)}),i.extensions=r),n.renderer){let s=this.defaults.renderer||new Lc(this.defaults);for(let l in n.renderer){if(!(l in s))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p||""}}i.renderer=s}if(n.tokenizer){let s=this.defaults.tokenizer||new Dc(this.defaults);for(let l in n.tokenizer){if(!(l in s))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],f=s[c];s[c]=(...g)=>{let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.tokenizer=s}if(n.hooks){let s=this.defaults.hooks||new Ks;for(let l in n.hooks){if(!(l in s))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],f=s[c];Ks.passThroughHooks.has(l)?s[c]=g=>{if(this.defaults.async&&Ks.passThroughHooksRespectAsync.has(l))return(async()=>{let h=await u.call(s,g);return f.call(s,h)})();let p=u.call(s,g);return f.call(s,p)}:s[c]=(...g)=>{if(this.defaults.async)return(async()=>{let h=await u.apply(s,g);return h===!1&&(h=await f.apply(s,g)),h})();let p=u.apply(s,g);return p===!1&&(p=f.apply(s,g)),p}}i.hooks=s}if(n.walkTokens){let s=this.defaults.walkTokens,l=n.walkTokens;i.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),s&&(u=u.concat(s.call(this,c))),u}}this.defaults={...this.defaults,...i}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Kr.lex(t,r??this.defaults)}parser(t,r){return Yr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let i={...n},s={...this.defaults,...i},l=this.onError(!!s.silent,!!s.async);if(this.defaults.async===!0&&i.async===!1)return l(new Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof r>"u"||r===null)return l(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return l(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(s.hooks&&(s.hooks.options=s,s.hooks.block=t),s.async)return(async()=>{let c=s.hooks?await s.hooks.preprocess(r):r,u=await(s.hooks?await s.hooks.provideLexer():t?Kr.lex:Kr.lexInline)(c,s),f=s.hooks?await s.hooks.processAllTokens(u):u;s.walkTokens&&await Promise.all(this.walkTokens(f,s.walkTokens));let g=await(s.hooks?await s.hooks.provideParser():t?Yr.parse:Yr.parseInline)(f,s);return s.hooks?await s.hooks.postprocess(g):g})().catch(l);try{s.hooks&&(r=s.hooks.preprocess(r));let c=(s.hooks?s.hooks.provideLexer():t?Kr.lex:Kr.lexInline)(r,s);s.hooks&&(c=s.hooks.processAllTokens(c)),s.walkTokens&&this.walkTokens(c,s.walkTokens);let u=(s.hooks?s.hooks.provideParser():t?Yr.parse:Yr.parseInline)(c,s);return s.hooks&&(u=s.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
196
+ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error occurred:</p><pre>"+fn(n.message+"",!0)+"</pre>";return r?Promise.resolve(i):i}if(r)return Promise.reject(n);throw n}}},Vi=new y1;function rt(e,t){return Vi.parse(e,t)}rt.options=rt.setOptions=function(e){return Vi.setOptions(e),rt.defaults=Vi.defaults,l1(rt.defaults),rt};rt.getDefaults=Wp;rt.defaults=Zi;rt.use=function(...e){return Vi.use(...e),rt.defaults=Vi.defaults,l1(rt.defaults),rt};rt.walkTokens=function(e,t){return Vi.walkTokens(e,t)};rt.parseInline=Vi.parseInline;rt.Parser=Yr;rt.parser=Yr.parse;rt.Renderer=Lc;rt.TextRenderer=Yp;rt.Lexer=Kr;rt.lexer=Kr.lex;rt.Tokenizer=Dc;rt.Hooks=Ks;rt.parse=rt;rt.options;rt.setOptions;rt.use;rt.walkTokens;rt.parseInline;Yr.parse;Kr.lex;const n4={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},w1=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,i4=RegExp(w1.source),ty=(e="")=>i4.test(e)?e.replace(w1,t=>n4[t]||"'"):e,ry=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var o4=class{constructor(e){Te(this,"renderer");this.renderer=e.renderer}parse(e){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"space":return null;case"heading":{const n=r.depth;return this.renderer.heading(this.parseInline(r.tokens),n)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const n=r;return n.tokens?this.parseInline(n.tokens):r.text}case"blockquote":{const n=r,i=this.parse(n.tokens);return this.renderer.blockquote(i)}case"list":{const n=r;this.renderer.elIdList.push(0);const i=n.items.map(s=>{const l=[];return s.task&&l.push(this.renderer.checkbox(s.checked??!1)),l.push(this.parse(s.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(i,r.ordered,r.ordered?r.start:void 0)}case"code":return this.renderer.code(r.text,r.lang);case"html":return this.renderer.html(r.text);case"table":{const n=r;this.renderer.elIdList.push(0);const i=n.header.map((f,g)=>this.renderer.tableCell(this.parseInline(f.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const s=this.renderer.tableRow(i),l=this.renderer.tableHeader(s);this.renderer.elIdList.push(0);const c=n.rows.map(f=>{this.renderer.elIdList.push(0);const g=f.map((p,h)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!1,align:r.align[h]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(g)});this.renderer.elIdList.pop();const u=this.renderer.tableBody(c);return this.renderer.table([l,u])}case"hr":return this.renderer.hr();default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}parseInline(e=[]){this.renderer.elIdList.push(0);const t=e.map(r=>{switch(r.type){case"text":return this.renderer.text(ty(r.text));case"strong":return this.renderer.strong(this.parseInline(r.tokens));case"em":return this.renderer.em(this.parseInline(r.tokens));case"del":return this.renderer.del(this.parseInline(r.tokens));case"codespan":return this.renderer.codespan(ty(r.text));case"link":return this.renderer.link(r.href,this.parseInline(r.tokens));case"image":return this.renderer.image(r.href,r.text,r.title);case"html":return this.renderer.html(r.text);case"br":return this.renderer.br();case"escape":return this.renderer.text(r.text);default:return console.warn(`Token with "${r.type}" type was not found`),null}});return this.renderer.elIdList.pop(),t}},s4=o4,ui,ot,yt,Qf,zy,a4=(zy=class{constructor(e={}){Ft(this,ot);Te(this,"elIdList",[]);Ft(this,ui);const{renderer:t}=e;Qe(this,ui,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const i=r,s=n;!this[i]||i==="elementId"||i==="elIdList"||typeof s!="function"||Object.defineProperty(this,i,{value(...l){return Ee(this,ot,Qf).call(this),s.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return Ee(this,ot,yt).call(this,`h${t}`,e)}paragraph(e){return Ee(this,ot,yt).call(this,"p",e)}link(e,t){const r=ry(e,ae(this,ui).baseURL),n=ae(this,ui).openLinksInNewTab?"_blank":null;return Ee(this,ot,yt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=ry(e,ae(this,ui).baseURL);return Ee(this,ot,yt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${ae(this,ui).langPrefix}${t}`:null;return Ee(this,ot,yt).call(this,"code",e,{className:r})}code(e,t){return Ee(this,ot,yt).call(this,"pre",this.codespan(e,t))}blockquote(e){return Ee(this,ot,yt).call(this,"blockquote",e)}list(e,t,r){return Ee(this,ot,yt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return Ee(this,ot,yt).call(this,"li",e)}checkbox(e){return Ee(this,ot,yt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return Ee(this,ot,yt).call(this,"table",e)}tableHeader(e){return Ee(this,ot,yt).call(this,"thead",e)}tableBody(e){return Ee(this,ot,yt).call(this,"tbody",e)}tableRow(e){return Ee(this,ot,yt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return Ee(this,ot,yt).call(this,r,e,{align:t.align})}strong(e){return Ee(this,ot,yt).call(this,"strong",e)}em(e){return Ee(this,ot,yt).call(this,"em",e)}del(e){return Ee(this,ot,yt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return Ee(this,ot,yt).call(this,"hr")}br(){return Ee(this,ot,yt).call(this,"br")}},ui=new WeakMap,ot=new WeakSet,yt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return Ee(this,ot,Qf).call(this),N.createElement(e,{...r,...n},t)},Qf=function(){this.elIdList[this.elIdList.length-1]+=1},zy),l4=a4;const c4=e=>{if(e.value&&typeof e.value!="string")throw new TypeError(`[marked-react]: Expected value to be of type string but got ${typeof e.value}`);if(e.children&&typeof e.children!="string")throw new TypeError(`[marked-react]: Expected children to be of type string but got ${typeof e.children}`)},u4={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},d4=new y1,f4=e=>{c4(e);const t={...u4,...e},r=t.instance??d4,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},i=t.value??t.children??"",s=t.isInline?r.Lexer.lexInline(i,n):r.lexer(i,n),l={renderer:new l4({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new s4(l),u=t.isInline?c.parseInline(s):c.parse(s);return N.createElement(N.Fragment,null,u)};var p4=f4,h4=p4;const g4=({children:e,label:t,placement:r="top",className:n,isDisabled:i,container:s})=>{const[l,c]=N.useState(null),u=N.useRef(null),[f,g]=N.useState(null),[p,h]=N.useState(!1),b=typeof t=="string",{styles:S,attributes:v}=_p(l,f,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),y=N.Children.map(e,m=>N.isValidElement(m)?N.cloneElement(m,{ref:c,onMouseEnter:()=>h(!0),onMouseLeave:()=>{u.current=setTimeout(()=>h(!1),50)}}):m);return i?A.jsx(A.Fragment,{children:y}):A.jsxs(A.Fragment,{children:[y,p&&t&&En.createPortal(A.jsx("div",{ref:g,style:{...S.popper,zIndex:1e5},...v.popper,className:st(b?"select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md":void 0,n),onMouseEnter:()=>{u.current&&clearTimeout(u.current),h(!0)},onMouseLeave:()=>h(!1),children:b?A.jsx(h4,{openLinksInNewTab:!0,children:t}):t}),s||document.body)]})},v4=({referenceElement:e,label:t})=>{const[r,n]=N.useState(null),{styles:i,attributes:s}=_p(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return A.jsx("div",{className:"rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:n,style:{...i.popper,zIndex:1e5},...s.popper,children:t})},m4=Mf.keyframes`
197
197
  to {
198
198
  fill: url(#d);
199
199
  stroke-dashoffset: 0;
200
200
  }
201
- `,m1=Ic.svg`
201
+ `,x1=Ic.svg`
202
202
  & .e {
203
203
  fill: url(#d);
204
204
  }
@@ -209,7 +209,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
209
209
  fill: transparent;
210
210
  stroke-dasharray: 700;
211
211
  stroke-dashoffset: 700;
212
- animation: ${mz} 1.5s ease-in-out infinite alternate-reverse;
212
+ animation: ${m4} 1.5s ease-in-out infinite alternate-reverse;
213
213
  }
214
214
 
215
215
  & #circle {
@@ -219,39 +219,39 @@ Please report this to https://github.com/markedjs/marked.`,t){let i="<p>An error
219
219
  stroke-dasharray: 700;
220
220
  stroke-dashoffset: 700;
221
221
  }
222
- `,bz=({message:e,version:t})=>A.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-body",children:A.jsxs("div",{className:"flex flex-col text-center",children:[A.jsx("div",{className:"relative mr-4 self-center",children:A.jsx("div",{className:"flex items-center justify-center rounded",children:A.jsxs(m1,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[A.jsx("defs",{children:A.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[A.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:A.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),A.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:A.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),A.jsx("g",{id:"a"}),A.jsx("g",{id:"b",children:A.jsx("g",{id:"c",children:A.jsxs("g",{children:[A.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),A.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),A.jsxs("div",{children:[A.jsx("span",{className:"text-xs text-inactive-text",children:t}),A.jsx("h2",{className:"text-lg text-muted",children:e})]})]})});var yz=Object.defineProperty,wz=(e,t,r)=>t in e?yz(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,hf=(e,t,r)=>(wz(e,typeof t!="symbol"?t+"":t,r),r);let xz=class{constructor(){hf(this,"current",this.detect()),hf(this,"handoffState","pending"),hf(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},wc=new xz,ha=(e,t)=>{wc.isServer?N.useEffect(e,t):N.useLayoutEffect(e,t)};function Io(e){let t=N.useRef(e);return ha(()=>{t.current=e},[e]),t}let jn=function(e){let t=Io(e);return N.useCallback((...r)=>t.current(...r),[t])};function Sz(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ra(){let e=[],t={addEventListener(r,n,i,s){return r.addEventListener(n,i,s),t.add(()=>r.removeEventListener(n,i,s))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return Sz(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let s=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:s})})},group(r){let n=Ra();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function b1(){let[e]=N.useState(Ra);return N.useEffect(()=>()=>e.dispose(),[e]),e}function Ez(){let e=typeof document>"u";return"useSyncExternalStore"in V?(t=>t.useSyncExternalStore)(V)(()=>()=>{},()=>!1,()=>!e):!1}function y1(){let e=Ez(),[t,r]=V.useState(wc.isHandoffComplete);return t&&wc.isHandoffComplete===!1&&r(!1),V.useEffect(()=>{t!==!0&&r(!0)},[t]),V.useEffect(()=>wc.handoff(),[]),e?!1:t}function yn(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yn),n}let _z=Symbol();function w1(...e){let t=N.useRef(e);N.useEffect(()=>{t.current=e},[e]);let r=jn(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[_z]))?void 0:r}function Lc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var x1=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(x1||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function S1({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:s=!0,name:l,mergeRefs:c}){c=c??Oz;let u=E1(t,e);if(s)return Ql(u,r,n,l,c);let f=i??0;if(f&2){let{static:g=!1,...p}=u;if(g)return Ql(p,r,n,l,c)}if(f&1){let{unmount:g=!0,...p}=u;return yn(g?0:1,{0(){return null},1(){return Ql({...p,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return Ql(u,r,n,l,c)}function Ql(e,t={},r,n,i){let{as:s=r,children:l,refName:c="ref",...u}=gf(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},g=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let p={};if(t){let h=!1,b=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(h=!0),v===!0&&b.push(S);h&&(p["data-headlessui-state"]=b.join(" "))}if(s===N.Fragment&&Object.keys(Qb(u)).length>0){if(!N.isValidElement(g)||Array.isArray(g)&&g.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(v=>` - ${v}`).join(`
222
+ `,b4=({message:e,version:t})=>A.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-body",children:A.jsxs("div",{className:"flex flex-col text-center",children:[A.jsx("div",{className:"relative mr-4 self-center",children:A.jsx("div",{className:"flex items-center justify-center rounded",children:A.jsxs(x1,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[A.jsx("defs",{children:A.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[A.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:A.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),A.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:A.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),A.jsx("g",{id:"a"}),A.jsx("g",{id:"b",children:A.jsx("g",{id:"c",children:A.jsxs("g",{children:[A.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),A.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),A.jsxs("div",{children:[A.jsx("span",{className:"text-xs text-inactive-text",children:t}),A.jsx("h2",{className:"text-lg text-muted",children:e})]})]})});var y4=Object.defineProperty,w4=(e,t,r)=>t in e?y4(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,bf=(e,t,r)=>(w4(e,typeof t!="symbol"?t+"":t,r),r);let x4=class{constructor(){bf(this,"current",this.detect()),bf(this,"handoffState","pending"),bf(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},xc=new x4,ha=(e,t)=>{xc.isServer?N.useEffect(e,t):N.useLayoutEffect(e,t)};function Po(e){let t=N.useRef(e);return ha(()=>{t.current=e},[e]),t}let Hn=function(e){let t=Po(e);return N.useCallback((...r)=>t.current(...r),[t])};function S4(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Ra(){let e=[],t={addEventListener(r,n,i,s){return r.addEventListener(n,i,s),t.add(()=>r.removeEventListener(n,i,s))},requestAnimationFrame(...r){let n=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(n))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let n=setTimeout(...r);return t.add(()=>clearTimeout(n))},microTask(...r){let n={current:!0};return S4(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,i){let s=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:i}),this.add(()=>{Object.assign(r.style,{[n]:s})})},group(r){let n=Ra();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let i of e.splice(n,1))i()}},dispose(){for(let r of e.splice(0))r()}};return t}function S1(){let[e]=N.useState(Ra);return N.useEffect(()=>()=>e.dispose(),[e]),e}function E4(){let e=typeof document>"u";return"useSyncExternalStore"in V?(t=>t.useSyncExternalStore)(V)(()=>()=>{},()=>!1,()=>!e):!1}function E1(){let e=E4(),[t,r]=V.useState(xc.isHandoffComplete);return t&&xc.isHandoffComplete===!1&&r(!1),V.useEffect(()=>{t!==!0&&r(!0)},[t]),V.useEffect(()=>xc.handoff(),[]),e?!1:t}function yn(e,t,...r){if(e in t){let i=t[e];return typeof i=="function"?i(...r):i}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(i=>`"${i}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,yn),n}let _4=Symbol();function _1(...e){let t=N.useRef(e);N.useEffect(()=>{t.current=e},[e]);let r=Hn(n=>{for(let i of t.current)i!=null&&(typeof i=="function"?i(n):i.current=n)});return e.every(n=>n==null||(n==null?void 0:n[_4]))?void 0:r}function zc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var O1=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(O1||{}),pi=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pi||{});function k1({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:i,visible:s=!0,name:l,mergeRefs:c}){c=c??O4;let u=A1(t,e);if(s)return ec(u,r,n,l,c);let f=i??0;if(f&2){let{static:g=!1,...p}=u;if(g)return ec(p,r,n,l,c)}if(f&1){let{unmount:g=!0,...p}=u;return yn(g?0:1,{0(){return null},1(){return ec({...p,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return ec(u,r,n,l,c)}function ec(e,t={},r,n,i){let{as:s=r,children:l,refName:c="ref",...u}=yf(e,["unmount","static"]),f=e.ref!==void 0?{[c]:e.ref}:{},g=typeof l=="function"?l(t):l;"className"in u&&u.className&&typeof u.className=="function"&&(u.className=u.className(t));let p={};if(t){let h=!1,b=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(h=!0),v===!0&&b.push(S);h&&(p["data-headlessui-state"]=b.join(" "))}if(s===N.Fragment&&Object.keys(ny(u)).length>0){if(!N.isValidElement(g)||Array.isArray(g)&&g.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${n} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(u).map(v=>` - ${v}`).join(`
223
223
  `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(v=>` - ${v}`).join(`
224
224
  `)].join(`
225
- `));let h=g.props,b=typeof(h==null?void 0:h.className)=="function"?(...v)=>Lc(h==null?void 0:h.className(...v),u.className):Lc(h==null?void 0:h.className,u.className),S=b?{className:b}:{};return N.cloneElement(g,Object.assign({},E1(g.props,Qb(gf(u,["ref"]))),p,f,{ref:i(g.ref,f.ref)},S))}return N.createElement(s,Object.assign({},gf(u,["ref"]),s!==N.Fragment&&f,s!==N.Fragment&&p),g)}function Oz(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function E1(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...s){let l=r[n];for(let c of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;c(i,...s)}}});return t}function Gp(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Qb(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function gf(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Zp=N.createContext(null);Zp.displayName="OpenClosedContext";var zn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(zn||{});function _1(){return N.useContext(Zp)}function kz({value:e,children:t}){return N.createElement(Zp.Provider,{value:e},t)}function Kp(){let e=N.useRef(!1);return ha(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Az(e=0){let[t,r]=N.useState(e),n=Kp(),i=N.useCallback(u=>{n.current&&r(f=>f|u)},[t,n]),s=N.useCallback(u=>!!(t&u),[t]),l=N.useCallback(u=>{n.current&&r(f=>f&~u)},[r,n]),c=N.useCallback(u=>{n.current&&r(f=>f^u)},[r]);return{flags:t,addFlag:i,hasFlag:s,removeFlag:l,toggleFlag:c}}function Tz(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function vf(e,...t){e&&t.length>0&&e.classList.add(...t)}function mf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Rz(e,t){let r=Ra();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[s,l]=[n,i].map(u=>{let[f=0]=u.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,p)=>p-g);return f}),c=s+l;if(c!==0){r.group(f=>{f.setTimeout(()=>{t(),f.dispose()},c),f.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&f.dispose()})});let u=r.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function Cz(e,t,r,n){let i=r?"enter":"leave",s=Ra(),l=n!==void 0?Tz(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=yn(i,{enter:()=>t.enter,leave:()=>t.leave}),u=yn(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=yn(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return mf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),vf(e,...t.base,...c,...f),s.nextFrame(()=>{mf(e,...t.base,...c,...f),vf(e,...t.base,...c,...u),Rz(e,()=>(mf(e,...t.base,...c),vf(e,...t.base,...t.entered),l()))}),s.dispose}function Iz({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:s}){let l=Kp(),c=b1(),u=Io(r);ha(()=>{e&&(u.current="enter")},[e]),ha(()=>{let f=Ra();c.add(f.dispose);let g=t.current;if(g&&u.current!=="idle"&&l.current)return f.dispose(),i.current(u.current),f.add(Cz(g,n.current,u.current==="enter",()=>{f.dispose(),s.current(u.current)})),f.dispose},[r])}function ci(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ru=N.createContext(null);ru.displayName="TransitionContext";var Pz=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Pz||{});function Nz(){let e=N.useContext(ru);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function Mz(){let e=N.useContext(nu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let nu=N.createContext(null);nu.displayName="NestingContext";function iu(e){return"children"in e?iu(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function O1(e,t){let r=Io(e),n=N.useRef([]),i=Kp(),s=b1(),l=jn((b,S=pi.Hidden)=>{let v=n.current.findIndex(({el:y})=>y===b);v!==-1&&(yn(S,{[pi.Unmount](){n.current.splice(v,1)},[pi.Hidden](){n.current[v].state="hidden"}}),s.microTask(()=>{var y;!iu(n)&&i.current&&((y=r.current)==null||y.call(r))}))}),c=jn(b=>{let S=n.current.find(({el:v})=>v===b);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:b,state:"visible"}),()=>l(b,pi.Unmount)}),u=N.useRef([]),f=N.useRef(Promise.resolve()),g=N.useRef({enter:[],leave:[],idle:[]}),p=jn((b,S,v)=>{u.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([y])=>y!==b)),t==null||t.chains.current[S].push([b,new Promise(y=>{u.current.push(y)})]),t==null||t.chains.current[S].push([b,new Promise(y=>{Promise.all(g.current[S].map(([m,w])=>w)).then(()=>y())})]),S==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),h=jn((b,S,v)=>{Promise.all(g.current[S].splice(0).map(([y,m])=>m)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>v(S))});return N.useMemo(()=>({children:n,register:c,unregister:l,onStart:p,onStop:h,wait:f,chains:g}),[c,l,n,p,h,g,f])}function Dz(){}let Lz=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function ey(e){var t;let r={};for(let n of Lz)r[n]=(t=e[n])!=null?t:Dz;return r}function zz(e){let t=N.useRef(ey(e));return N.useEffect(()=>{t.current=ey(e)},[e]),t}let $z="div",k1=x1.RenderStrategy;function jz(e,t){var r,n;let{beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:f,enterTo:g,entered:p,leave:h,leaveFrom:b,leaveTo:S,...v}=e,y=N.useRef(null),m=w1(y,t),w=(r=v.unmount)==null||r?pi.Unmount:pi.Hidden,{show:x,appear:O,initial:_}=Nz(),[R,H]=N.useState(x?"visible":"hidden"),I=Mz(),{register:$,unregister:U}=I;N.useEffect(()=>$(y),[$,y]),N.useEffect(()=>{if(w===pi.Hidden&&y.current){if(x&&R!=="visible"){H("visible");return}return yn(R,{hidden:()=>U(y),visible:()=>$(y)})}},[R,y,$,U,x,w]);let j=Io({base:ci(v.className),enter:ci(u),enterFrom:ci(f),enterTo:ci(g),entered:ci(p),leave:ci(h),leaveFrom:ci(b),leaveTo:ci(S)}),M=zz({beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c}),D=y1();N.useEffect(()=>{if(D&&R==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,R,D]);let F=_&&!O,P=O&&x&&_,K=!D||F?"idle":x?"enter":"leave",ee=Az(0),Y=jn(J=>yn(J,{enter:()=>{ee.addFlag(zn.Opening),M.current.beforeEnter()},leave:()=>{ee.addFlag(zn.Closing),M.current.beforeLeave()},idle:()=>{}})),ve=jn(J=>yn(J,{enter:()=>{ee.removeFlag(zn.Opening),M.current.afterEnter()},leave:()=>{ee.removeFlag(zn.Closing),M.current.afterLeave()},idle:()=>{}})),z=O1(()=>{H("hidden"),U(y)},I),W=N.useRef(!1);Iz({immediate:P,container:y,classes:j,direction:K,onStart:Io(J=>{W.current=!0,z.onStart(y,J,Y)}),onStop:Io(J=>{W.current=!1,z.onStop(y,J,ve),J==="leave"&&!iu(z)&&(H("hidden"),U(y))})});let X=v,te={ref:m};return P?X={...X,className:Lc(v.className,...j.current.enter,...j.current.enterFrom)}:W.current&&(X.className=Lc(v.className,(n=y.current)==null?void 0:n.className),X.className===""&&delete X.className),N.createElement(nu.Provider,{value:z},N.createElement(kz,{value:yn(R,{visible:zn.Open,hidden:zn.Closed})|ee.flags},S1({ourProps:te,theirProps:X,defaultTag:$z,features:k1,visible:R==="visible",name:"Transition.Child"})))}function Fz(e,t){let{show:r,appear:n=!1,unmount:i=!0,...s}=e,l=N.useRef(null),c=w1(l,t);y1();let u=_1();if(r===void 0&&u!==null&&(r=(u&zn.Open)===zn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,g]=N.useState(r?"visible":"hidden"),p=O1(()=>{g("hidden")}),[h,b]=N.useState(!0),S=N.useRef([r]);ha(()=>{h!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),b(!1))},[S,r]);let v=N.useMemo(()=>({show:r,appear:n,initial:h}),[r,n,h]);N.useEffect(()=>{if(r)g("visible");else if(!iu(p))g("hidden");else{let x=l.current;if(!x)return;let O=x.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&g("hidden")}},[r,p]);let y={unmount:i},m=jn(()=>{var x;h&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=jn(()=>{var x;h&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return N.createElement(nu.Provider,{value:p},N.createElement(ru.Provider,{value:v},S1({ourProps:{...y,as:N.Fragment,children:N.createElement(A1,{ref:c,...y,...s,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:N.Fragment,features:k1,visible:f==="visible",name:"Transition"})))}function Hz(e,t){let r=N.useContext(ru)!==null,n=_1()!==null;return N.createElement(N.Fragment,null,!r&&n?N.createElement(Yf,{ref:t,...e}):N.createElement(A1,{ref:t,...e}))}let Yf=Gp(Fz),A1=Gp(jz),Bz=Gp(Hz),zc=Object.assign(Yf,{Child:Bz,Root:Yf});var Ys={exports:{}};/**
225
+ `));let h=g.props,b=typeof(h==null?void 0:h.className)=="function"?(...v)=>zc(h==null?void 0:h.className(...v),u.className):zc(h==null?void 0:h.className,u.className),S=b?{className:b}:{};return N.cloneElement(g,Object.assign({},A1(g.props,ny(yf(u,["ref"]))),p,f,{ref:i(g.ref,f.ref)},S))}return N.createElement(s,Object.assign({},yf(u,["ref"]),s!==N.Fragment&&f,s!==N.Fragment&&p),g)}function O4(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function A1(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let i in n)i.startsWith("on")&&typeof n[i]=="function"?(r[i]!=null||(r[i]=[]),r[i].push(n[i])):t[i]=n[i];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(n=>[n,void 0])));for(let n in r)Object.assign(t,{[n](i,...s){let l=r[n];for(let c of l){if((i instanceof Event||(i==null?void 0:i.nativeEvent)instanceof Event)&&i.defaultPrevented)return;c(i,...s)}}});return t}function Xp(e){var t;return Object.assign(N.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function ny(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function yf(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Jp=N.createContext(null);Jp.displayName="OpenClosedContext";var jn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(jn||{});function T1(){return N.useContext(Jp)}function k4({value:e,children:t}){return N.createElement(Jp.Provider,{value:e},t)}function Qp(){let e=N.useRef(!1);return ha(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function A4(e=0){let[t,r]=N.useState(e),n=Qp(),i=N.useCallback(u=>{n.current&&r(f=>f|u)},[t,n]),s=N.useCallback(u=>!!(t&u),[t]),l=N.useCallback(u=>{n.current&&r(f=>f&~u)},[r,n]),c=N.useCallback(u=>{n.current&&r(f=>f^u)},[r]);return{flags:t,addFlag:i,hasFlag:s,removeFlag:l,toggleFlag:c}}function T4(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function wf(e,...t){e&&t.length>0&&e.classList.add(...t)}function xf(e,...t){e&&t.length>0&&e.classList.remove(...t)}function R4(e,t){let r=Ra();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:i}=getComputedStyle(e),[s,l]=[n,i].map(u=>{let[f=0]=u.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,p)=>p-g);return f}),c=s+l;if(c!==0){r.group(f=>{f.setTimeout(()=>{t(),f.dispose()},c),f.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&f.dispose()})});let u=r.addEventListener(e,"transitionend",f=>{f.target===f.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function C4(e,t,r,n){let i=r?"enter":"leave",s=Ra(),l=n!==void 0?T4(n):()=>{};i==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=yn(i,{enter:()=>t.enter,leave:()=>t.leave}),u=yn(i,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),f=yn(i,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return xf(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),wf(e,...t.base,...c,...f),s.nextFrame(()=>{xf(e,...t.base,...c,...f),wf(e,...t.base,...c,...u),R4(e,()=>(xf(e,...t.base,...c),wf(e,...t.base,...t.entered),l()))}),s.dispose}function P4({immediate:e,container:t,direction:r,classes:n,onStart:i,onStop:s}){let l=Qp(),c=S1(),u=Po(r);ha(()=>{e&&(u.current="enter")},[e]),ha(()=>{let f=Ra();c.add(f.dispose);let g=t.current;if(g&&u.current!=="idle"&&l.current)return f.dispose(),i.current(u.current),f.add(C4(g,n.current,u.current==="enter",()=>{f.dispose(),s.current(u.current)})),f.dispose},[r])}function ci(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let nu=N.createContext(null);nu.displayName="TransitionContext";var I4=(e=>(e.Visible="visible",e.Hidden="hidden",e))(I4||{});function N4(){let e=N.useContext(nu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function M4(){let e=N.useContext(iu);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let iu=N.createContext(null);iu.displayName="NestingContext";function ou(e){return"children"in e?ou(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function R1(e,t){let r=Po(e),n=N.useRef([]),i=Qp(),s=S1(),l=Hn((b,S=pi.Hidden)=>{let v=n.current.findIndex(({el:y})=>y===b);v!==-1&&(yn(S,{[pi.Unmount](){n.current.splice(v,1)},[pi.Hidden](){n.current[v].state="hidden"}}),s.microTask(()=>{var y;!ou(n)&&i.current&&((y=r.current)==null||y.call(r))}))}),c=Hn(b=>{let S=n.current.find(({el:v})=>v===b);return S?S.state!=="visible"&&(S.state="visible"):n.current.push({el:b,state:"visible"}),()=>l(b,pi.Unmount)}),u=N.useRef([]),f=N.useRef(Promise.resolve()),g=N.useRef({enter:[],leave:[],idle:[]}),p=Hn((b,S,v)=>{u.current.splice(0),t&&(t.chains.current[S]=t.chains.current[S].filter(([y])=>y!==b)),t==null||t.chains.current[S].push([b,new Promise(y=>{u.current.push(y)})]),t==null||t.chains.current[S].push([b,new Promise(y=>{Promise.all(g.current[S].map(([m,w])=>w)).then(()=>y())})]),S==="enter"?f.current=f.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),h=Hn((b,S,v)=>{Promise.all(g.current[S].splice(0).map(([y,m])=>m)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>v(S))});return N.useMemo(()=>({children:n,register:c,unregister:l,onStart:p,onStop:h,wait:f,chains:g}),[c,l,n,p,h,g,f])}function D4(){}let L4=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function iy(e){var t;let r={};for(let n of L4)r[n]=(t=e[n])!=null?t:D4;return r}function z4(e){let t=N.useRef(iy(e));return N.useEffect(()=>{t.current=iy(e)},[e]),t}let $4="div",C1=O1.RenderStrategy;function j4(e,t){var r,n;let{beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c,enter:u,enterFrom:f,enterTo:g,entered:p,leave:h,leaveFrom:b,leaveTo:S,...v}=e,y=N.useRef(null),m=_1(y,t),w=(r=v.unmount)==null||r?pi.Unmount:pi.Hidden,{show:x,appear:O,initial:_}=N4(),[R,H]=N.useState(x?"visible":"hidden"),P=M4(),{register:z,unregister:U}=P;N.useEffect(()=>z(y),[z,y]),N.useEffect(()=>{if(w===pi.Hidden&&y.current){if(x&&R!=="visible"){H("visible");return}return yn(R,{hidden:()=>U(y),visible:()=>z(y)})}},[R,y,z,U,x,w]);let $=Po({base:ci(v.className),enter:ci(u),enterFrom:ci(f),enterTo:ci(g),entered:ci(p),leave:ci(h),leaveFrom:ci(b),leaveTo:ci(S)}),M=z4({beforeEnter:i,afterEnter:s,beforeLeave:l,afterLeave:c}),D=E1();N.useEffect(()=>{if(D&&R==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,R,D]);let F=_&&!O,I=O&&x&&_,K=!D||F?"idle":x?"enter":"leave",te=A4(0),Y=Hn(X=>yn(X,{enter:()=>{te.addFlag(jn.Opening),M.current.beforeEnter()},leave:()=>{te.addFlag(jn.Closing),M.current.beforeLeave()},idle:()=>{}})),ve=Hn(X=>yn(X,{enter:()=>{te.removeFlag(jn.Opening),M.current.afterEnter()},leave:()=>{te.removeFlag(jn.Closing),M.current.afterLeave()},idle:()=>{}})),j=R1(()=>{H("hidden"),U(y)},P),W=N.useRef(!1);P4({immediate:I,container:y,classes:$,direction:K,onStart:Po(X=>{W.current=!0,j.onStart(y,X,Y)}),onStop:Po(X=>{W.current=!1,j.onStop(y,X,ve),X==="leave"&&!ou(j)&&(H("hidden"),U(y))})});let ee=v,Q={ref:m};return I?ee={...ee,className:zc(v.className,...$.current.enter,...$.current.enterFrom)}:W.current&&(ee.className=zc(v.className,(n=y.current)==null?void 0:n.className),ee.className===""&&delete ee.className),N.createElement(iu.Provider,{value:j},N.createElement(k4,{value:yn(R,{visible:jn.Open,hidden:jn.Closed})|te.flags},k1({ourProps:Q,theirProps:ee,defaultTag:$4,features:C1,visible:R==="visible",name:"Transition.Child"})))}function F4(e,t){let{show:r,appear:n=!1,unmount:i=!0,...s}=e,l=N.useRef(null),c=_1(l,t);E1();let u=T1();if(r===void 0&&u!==null&&(r=(u&jn.Open)===jn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[f,g]=N.useState(r?"visible":"hidden"),p=R1(()=>{g("hidden")}),[h,b]=N.useState(!0),S=N.useRef([r]);ha(()=>{h!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),b(!1))},[S,r]);let v=N.useMemo(()=>({show:r,appear:n,initial:h}),[r,n,h]);N.useEffect(()=>{if(r)g("visible");else if(!ou(p))g("hidden");else{let x=l.current;if(!x)return;let O=x.getBoundingClientRect();O.x===0&&O.y===0&&O.width===0&&O.height===0&&g("hidden")}},[r,p]);let y={unmount:i},m=Hn(()=>{var x;h&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=Hn(()=>{var x;h&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return N.createElement(iu.Provider,{value:p},N.createElement(nu.Provider,{value:v},k1({ourProps:{...y,as:N.Fragment,children:N.createElement(P1,{ref:c,...y,...s,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:N.Fragment,features:C1,visible:f==="visible",name:"Transition"})))}function H4(e,t){let r=N.useContext(nu)!==null,n=T1()!==null;return N.createElement(N.Fragment,null,!r&&n?N.createElement(ep,{ref:t,...e}):N.createElement(P1,{ref:t,...e}))}let ep=Xp(F4),P1=Xp(j4),W4=Xp(H4),$c=Object.assign(ep,{Child:W4,Root:ep});var Ys={exports:{}};/**
226
226
  * @license
227
227
  * Lodash <https://lodash.com/>
228
228
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
229
229
  * Released under MIT license <https://lodash.com/license>
230
230
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
231
231
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
232
- */var Wz=Ys.exports,ty;function Vz(){return ty||(ty=1,(function(e,t){(function(){var r,n="4.18.1",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",f="__lodash_hash_undefined__",g=500,p="__lodash_placeholder__",h=1,b=2,S=4,v=1,y=2,m=1,w=2,x=4,O=8,_=16,R=32,H=64,I=128,$=256,U=512,j=30,M="...",D=800,F=16,P=1,K=2,ee=3,Y=1/0,ve=9007199254740991,z=17976931348623157e292,W=NaN,X=4294967295,te=X-1,J=X>>>1,oe=[["ary",I],["bind",m],["bindKey",w],["curry",O],["curryRight",_],["flip",U],["partial",R],["partialRight",H],["rearg",$]],ae="[object Arguments]",ne="[object Array]",de="[object AsyncFunction]",he="[object Boolean]",fe="[object Date]",ye="[object DOMException]",Z="[object Error]",Te="[object Function]",ge="[object GeneratorFunction]",at="[object Map]",qt="[object Number]",Dt="[object Null]",dr="[object Object]",bi="[object Promise]",Lt="[object Proxy]",Rt="[object RegExp]",zt="[object Set]",Qr="[object String]",Hr="[object Symbol]",Vn="[object Undefined]",fr="[object WeakMap]",er="[object WeakSet]",en="[object ArrayBuffer]",Un="[object DataView]",tr="[object Float32Array]",yi="[object Float64Array]",Ko="[object Int8Array]",Yi="[object Int16Array]",Xi="[object Int32Array]",Yo="[object Uint8Array]",Ji="[object Uint8ClampedArray]",Qi="[object Uint16Array]",eo="[object Uint32Array]",Pa=/\b__p \+= '';/g,wi=/\b(__p \+=) '' \+/g,Na=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ma=/&(?:amp|lt|gt|quot|#39);/g,Xo=/[&<>"']/g,Jo=RegExp(Ma.source),Qo=RegExp(Xo.source),fu=/<%-([\s\S]+?)%>/g,Da=/<%([\s\S]+?)%>/g,La=/<%=([\s\S]+?)%>/g,qn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,pu=/^\w*$/,xi=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Gn=/[\\^$.*+?()[\]{}|]/g,es=RegExp(Gn.source),ts=/^\s+/,Fe=/\s/,xt=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ct=/\{\n\/\* \[wrapped with (.+)\] \*/,It=/,? & /,rr=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,kr=/[()=,{}\[\]\/\s]/,tn=/\\(\\)?/g,rn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,nn=/\w*$/,on=/^[-+]0x[0-9a-f]+$/i,Si=/^0b[01]+$/i,rs=/^\[object .+?Constructor\]$/,lE=/^0o[0-7]+$/i,cE=/^(?:0|[1-9]\d*)$/,uE=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,za=/($^)/,dE=/['\n\r\u2028\u2029\\]/g,$a="\\ud800-\\udfff",fE="\\u0300-\\u036f",pE="\\ufe20-\\ufe2f",hE="\\u20d0-\\u20ff",_h=fE+pE+hE,Oh="\\u2700-\\u27bf",kh="a-z\\xdf-\\xf6\\xf8-\\xff",gE="\\xac\\xb1\\xd7\\xf7",vE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mE="\\u2000-\\u206f",bE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ah="A-Z\\xc0-\\xd6\\xd8-\\xde",Th="\\ufe0e\\ufe0f",Rh=gE+vE+mE+bE,hu="['’]",yE="["+$a+"]",Ch="["+Rh+"]",ja="["+_h+"]",Ih="\\d+",wE="["+Oh+"]",Ph="["+kh+"]",Nh="[^"+$a+Rh+Ih+Oh+kh+Ah+"]",gu="\\ud83c[\\udffb-\\udfff]",xE="(?:"+ja+"|"+gu+")",Mh="[^"+$a+"]",vu="(?:\\ud83c[\\udde6-\\uddff]){2}",mu="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+Ah+"]",Dh="\\u200d",Lh="(?:"+Ph+"|"+Nh+")",SE="(?:"+to+"|"+Nh+")",zh="(?:"+hu+"(?:d|ll|m|re|s|t|ve))?",$h="(?:"+hu+"(?:D|LL|M|RE|S|T|VE))?",jh=xE+"?",Fh="["+Th+"]?",EE="(?:"+Dh+"(?:"+[Mh,vu,mu].join("|")+")"+Fh+jh+")*",_E="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Hh=Fh+jh+EE,kE="(?:"+[wE,vu,mu].join("|")+")"+Hh,AE="(?:"+[Mh+ja+"?",ja,vu,mu,yE].join("|")+")",TE=RegExp(hu,"g"),RE=RegExp(ja,"g"),bu=RegExp(gu+"(?="+gu+")|"+AE+Hh,"g"),CE=RegExp([to+"?"+Ph+"+"+zh+"(?="+[Ch,to,"$"].join("|")+")",SE+"+"+$h+"(?="+[Ch,to+Lh,"$"].join("|")+")",to+"?"+Lh+"+"+zh,to+"+"+$h,OE,_E,Ih,kE].join("|"),"g"),IE=RegExp("["+Dh+$a+_h+Th+"]"),PE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NE=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ME=-1,lt={};lt[tr]=lt[yi]=lt[Ko]=lt[Yi]=lt[Xi]=lt[Yo]=lt[Ji]=lt[Qi]=lt[eo]=!0,lt[ae]=lt[ne]=lt[en]=lt[he]=lt[Un]=lt[fe]=lt[Z]=lt[Te]=lt[at]=lt[qt]=lt[dr]=lt[Rt]=lt[zt]=lt[Qr]=lt[fr]=!1;var it={};it[ae]=it[ne]=it[en]=it[Un]=it[he]=it[fe]=it[tr]=it[yi]=it[Ko]=it[Yi]=it[Xi]=it[at]=it[qt]=it[dr]=it[Rt]=it[zt]=it[Qr]=it[Hr]=it[Yo]=it[Ji]=it[Qi]=it[eo]=!0,it[Z]=it[Te]=it[fr]=!1;var DE={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},LE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zE={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},$E={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jE=parseFloat,FE=parseInt,Bh=typeof Ol=="object"&&Ol&&Ol.Object===Object&&Ol,HE=typeof self=="object"&&self&&self.Object===Object&&self,$t=Bh||HE||Function("return this")(),yu=t&&!t.nodeType&&t,Ei=yu&&!0&&e&&!e.nodeType&&e,Wh=Ei&&Ei.exports===yu,wu=Wh&&Bh.process,Ar=(function(){try{var q=Ei&&Ei.require&&Ei.require("util").types;return q||wu&&wu.binding&&wu.binding("util")}catch{}})(),Vh=Ar&&Ar.isArrayBuffer,Uh=Ar&&Ar.isDate,qh=Ar&&Ar.isMap,Gh=Ar&&Ar.isRegExp,Zh=Ar&&Ar.isSet,Kh=Ar&&Ar.isTypedArray;function pr(q,re,Q){switch(Q.length){case 0:return q.call(re);case 1:return q.call(re,Q[0]);case 2:return q.call(re,Q[0],Q[1]);case 3:return q.call(re,Q[0],Q[1],Q[2])}return q.apply(re,Q)}function BE(q,re,Q,be){for(var Re=-1,Be=q==null?0:q.length;++Re<Be;){var Ot=q[Re];re(be,Ot,Q(Ot),q)}return be}function hr(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be&&re(q[Q],Q,q)!==!1;);return q}function WE(q,re){for(var Q=q==null?0:q.length;Q--&&re(q[Q],Q,q)!==!1;);return q}function Yh(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(!re(q[Q],Q,q))return!1;return!0}function Zn(q,re){for(var Q=-1,be=q==null?0:q.length,Re=0,Be=[];++Q<be;){var Ot=q[Q];re(Ot,Q,q)&&(Be[Re++]=Ot)}return Be}function Fa(q,re){var Q=q==null?0:q.length;return!!Q&&ro(q,re,0)>-1}function xu(q,re,Q){for(var be=-1,Re=q==null?0:q.length;++be<Re;)if(Q(re,q[be]))return!0;return!1}function ut(q,re){for(var Q=-1,be=q==null?0:q.length,Re=Array(be);++Q<be;)Re[Q]=re(q[Q],Q,q);return Re}function Kn(q,re){for(var Q=-1,be=re.length,Re=q.length;++Q<be;)q[Re+Q]=re[Q];return q}function Su(q,re,Q,be){var Re=-1,Be=q==null?0:q.length;for(be&&Be&&(Q=q[++Re]);++Re<Be;)Q=re(Q,q[Re],Re,q);return Q}function VE(q,re,Q,be){var Re=q==null?0:q.length;for(be&&Re&&(Q=q[--Re]);Re--;)Q=re(Q,q[Re],Re,q);return Q}function Eu(q,re){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(re(q[Q],Q,q))return!0;return!1}var UE=_u("length");function qE(q){return q.split("")}function GE(q){return q.match(rr)||[]}function Xh(q,re,Q){var be;return Q(q,function(Re,Be,Ot){if(re(Re,Be,Ot))return be=Be,!1}),be}function Ha(q,re,Q,be){for(var Re=q.length,Be=Q+(be?1:-1);be?Be--:++Be<Re;)if(re(q[Be],Be,q))return Be;return-1}function ro(q,re,Q){return re===re?o_(q,re,Q):Ha(q,Jh,Q)}function ZE(q,re,Q,be){for(var Re=Q-1,Be=q.length;++Re<Be;)if(be(q[Re],re))return Re;return-1}function Jh(q){return q!==q}function Qh(q,re){var Q=q==null?0:q.length;return Q?ku(q,re)/Q:W}function _u(q){return function(re){return re==null?r:re[q]}}function Ou(q){return function(re){return q==null?r:q[re]}}function eg(q,re,Q,be,Re){return Re(q,function(Be,Ot,nt){Q=be?(be=!1,Be):re(Q,Be,Ot,nt)}),Q}function KE(q,re){var Q=q.length;for(q.sort(re);Q--;)q[Q]=q[Q].value;return q}function ku(q,re){for(var Q,be=-1,Re=q.length;++be<Re;){var Be=re(q[be]);Be!==r&&(Q=Q===r?Be:Q+Be)}return Q}function Au(q,re){for(var Q=-1,be=Array(q);++Q<q;)be[Q]=re(Q);return be}function YE(q,re){return ut(re,function(Q){return[Q,q[Q]]})}function tg(q){return q&&q.slice(0,og(q)+1).replace(ts,"")}function gr(q){return function(re){return q(re)}}function Tu(q,re){return ut(re,function(Q){return q[Q]})}function ns(q,re){return q.has(re)}function rg(q,re){for(var Q=-1,be=q.length;++Q<be&&ro(re,q[Q],0)>-1;);return Q}function ng(q,re){for(var Q=q.length;Q--&&ro(re,q[Q],0)>-1;);return Q}function XE(q,re){for(var Q=q.length,be=0;Q--;)q[Q]===re&&++be;return be}var JE=Ou(DE),QE=Ou(LE);function e_(q){return"\\"+$E[q]}function t_(q,re){return q==null?r:q[re]}function no(q){return IE.test(q)}function r_(q){return PE.test(q)}function n_(q){for(var re,Q=[];!(re=q.next()).done;)Q.push(re.value);return Q}function Ru(q){var re=-1,Q=Array(q.size);return q.forEach(function(be,Re){Q[++re]=[Re,be]}),Q}function ig(q,re){return function(Q){return q(re(Q))}}function Yn(q,re){for(var Q=-1,be=q.length,Re=0,Be=[];++Q<be;){var Ot=q[Q];(Ot===re||Ot===p)&&(q[Q]=p,Be[Re++]=Q)}return Be}function Ba(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=be}),Q}function i_(q){var re=-1,Q=Array(q.size);return q.forEach(function(be){Q[++re]=[be,be]}),Q}function o_(q,re,Q){for(var be=Q-1,Re=q.length;++be<Re;)if(q[be]===re)return be;return-1}function s_(q,re,Q){for(var be=Q+1;be--;)if(q[be]===re)return be;return be}function io(q){return no(q)?l_(q):UE(q)}function Br(q){return no(q)?c_(q):qE(q)}function og(q){for(var re=q.length;re--&&Fe.test(q.charAt(re)););return re}var a_=Ou(zE);function l_(q){for(var re=bu.lastIndex=0;bu.test(q);)++re;return re}function c_(q){return q.match(bu)||[]}function u_(q){return q.match(CE)||[]}var d_=(function q(re){re=re==null?$t:oo.defaults($t.Object(),re,oo.pick($t,NE));var Q=re.Array,be=re.Date,Re=re.Error,Be=re.Function,Ot=re.Math,nt=re.Object,Cu=re.RegExp,f_=re.String,Tr=re.TypeError,Wa=Q.prototype,p_=Be.prototype,so=nt.prototype,Va=re["__core-js_shared__"],Ua=p_.toString,Ue=so.hasOwnProperty,h_=0,sg=(function(){var o=/[^.]+$/.exec(Va&&Va.keys&&Va.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),qa=so.toString,g_=Ua.call(nt),v_=$t._,m_=Cu("^"+Ua.call(Ue).replace(Gn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Ga=Wh?re.Buffer:r,Xn=re.Symbol,Za=re.Uint8Array,ag=Ga?Ga.allocUnsafe:r,Ka=ig(nt.getPrototypeOf,nt),lg=nt.create,cg=so.propertyIsEnumerable,Ya=Wa.splice,ug=Xn?Xn.isConcatSpreadable:r,is=Xn?Xn.iterator:r,_i=Xn?Xn.toStringTag:r,Xa=(function(){try{var o=Ri(nt,"defineProperty");return o({},"",{}),o}catch{}})(),b_=re.clearTimeout!==$t.clearTimeout&&re.clearTimeout,y_=be&&be.now!==$t.Date.now&&be.now,w_=re.setTimeout!==$t.setTimeout&&re.setTimeout,Ja=Ot.ceil,Qa=Ot.floor,Iu=nt.getOwnPropertySymbols,x_=Ga?Ga.isBuffer:r,dg=re.isFinite,S_=Wa.join,E_=ig(nt.keys,nt),kt=Ot.max,Gt=Ot.min,__=be.now,O_=re.parseInt,fg=Ot.random,k_=Wa.reverse,Pu=Ri(re,"DataView"),os=Ri(re,"Map"),Nu=Ri(re,"Promise"),ao=Ri(re,"Set"),ss=Ri(re,"WeakMap"),as=Ri(nt,"create"),el=ss&&new ss,lo={},A_=Ci(Pu),T_=Ci(os),R_=Ci(Nu),C_=Ci(ao),I_=Ci(ss),tl=Xn?Xn.prototype:r,ls=tl?tl.valueOf:r,pg=tl?tl.toString:r;function T(o){if(vt(o)&&!Ie(o)&&!(o instanceof ze)){if(o instanceof Rr)return o;if(Ue.call(o,"__wrapped__"))return hv(o)}return new Rr(o)}var co=(function(){function o(){}return function(a){if(!pt(a))return{};if(lg)return lg(a);o.prototype=a;var d=new o;return o.prototype=r,d}})();function rl(){}function Rr(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}T.templateSettings={escape:fu,evaluate:Da,interpolate:La,variable:"",imports:{_:T}},T.prototype=rl.prototype,T.prototype.constructor=T,Rr.prototype=co(rl.prototype),Rr.prototype.constructor=Rr;function ze(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=X,this.__views__=[]}function P_(){var o=new ze(this.__wrapped__);return o.__actions__=nr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=nr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=nr(this.__views__),o}function N_(){if(this.__filtered__){var o=new ze(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function M_(){var o=this.__wrapped__.value(),a=this.__dir__,d=Ie(o),E=a<0,k=d?o.length:0,C=qO(0,k,this.__views__),L=C.start,B=C.end,G=B-L,ie=E?B:L-1,se=this.__iteratees__,ue=se.length,me=0,Se=Gt(G,this.__takeCount__);if(!d||!E&&k==G&&Se==G)return zg(o,this.__actions__);var ke=[];e:for(;G--&&me<Se;){ie+=a;for(var Ne=-1,_e=o[ie];++Ne<ue;){var Le=se[Ne],$e=Le.iteratee,br=Le.type,Jt=$e(_e);if(br==K)_e=Jt;else if(!Jt){if(br==P)continue e;break e}}ke[me++]=_e}return ke}ze.prototype=co(rl.prototype),ze.prototype.constructor=ze;function Oi(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function D_(){this.__data__=as?as(null):{},this.size=0}function L_(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function z_(o){var a=this.__data__;if(as){var d=a[o];return d===f?r:d}return Ue.call(a,o)?a[o]:r}function $_(o){var a=this.__data__;return as?a[o]!==r:Ue.call(a,o)}function j_(o,a){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=as&&a===r?f:a,this}Oi.prototype.clear=D_,Oi.prototype.delete=L_,Oi.prototype.get=z_,Oi.prototype.has=$_,Oi.prototype.set=j_;function On(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function F_(){this.__data__=[],this.size=0}function H_(o){var a=this.__data__,d=nl(a,o);if(d<0)return!1;var E=a.length-1;return d==E?a.pop():Ya.call(a,d,1),--this.size,!0}function B_(o){var a=this.__data__,d=nl(a,o);return d<0?r:a[d][1]}function W_(o){return nl(this.__data__,o)>-1}function V_(o,a){var d=this.__data__,E=nl(d,o);return E<0?(++this.size,d.push([o,a])):d[E][1]=a,this}On.prototype.clear=F_,On.prototype.delete=H_,On.prototype.get=B_,On.prototype.has=W_,On.prototype.set=V_;function kn(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function U_(){this.size=0,this.__data__={hash:new Oi,map:new(os||On),string:new Oi}}function q_(o){var a=gl(this,o).delete(o);return this.size-=a?1:0,a}function G_(o){return gl(this,o).get(o)}function Z_(o){return gl(this,o).has(o)}function K_(o,a){var d=gl(this,o),E=d.size;return d.set(o,a),this.size+=d.size==E?0:1,this}kn.prototype.clear=U_,kn.prototype.delete=q_,kn.prototype.get=G_,kn.prototype.has=Z_,kn.prototype.set=K_;function ki(o){var a=-1,d=o==null?0:o.length;for(this.__data__=new kn;++a<d;)this.add(o[a])}function Y_(o){return this.__data__.set(o,f),this}function X_(o){return this.__data__.has(o)}ki.prototype.add=ki.prototype.push=Y_,ki.prototype.has=X_;function Wr(o){var a=this.__data__=new On(o);this.size=a.size}function J_(){this.__data__=new On,this.size=0}function Q_(o){var a=this.__data__,d=a.delete(o);return this.size=a.size,d}function eO(o){return this.__data__.get(o)}function tO(o){return this.__data__.has(o)}function rO(o,a){var d=this.__data__;if(d instanceof On){var E=d.__data__;if(!os||E.length<i-1)return E.push([o,a]),this.size=++d.size,this;d=this.__data__=new kn(E)}return d.set(o,a),this.size=d.size,this}Wr.prototype.clear=J_,Wr.prototype.delete=Q_,Wr.prototype.get=eO,Wr.prototype.has=tO,Wr.prototype.set=rO;function hg(o,a){var d=Ie(o),E=!d&&Ii(o),k=!d&&!E&&ri(o),C=!d&&!E&&!k&&ho(o),L=d||E||k||C,B=L?Au(o.length,f_):[],G=B.length;for(var ie in o)(a||Ue.call(o,ie))&&!(L&&(ie=="length"||k&&(ie=="offset"||ie=="parent")||C&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||Rn(ie,G)))&&B.push(ie);return B}function gg(o){var a=o.length;return a?o[Vu(0,a-1)]:r}function nO(o,a){return vl(nr(o),Ai(a,0,o.length))}function iO(o){return vl(nr(o))}function Mu(o,a,d){(d!==r&&!Ur(o[a],d)||d===r&&!(a in o))&&sn(o,a,d)}function cs(o,a,d){var E=o[a];(!(Ue.call(o,a)&&Ur(E,d))||d===r&&!(a in o))&&sn(o,a,d)}function nl(o,a){for(var d=o.length;d--;)if(Ur(o[d][0],a))return d;return-1}function oO(o,a,d,E){return Jn(o,function(k,C,L){a(E,k,d(k),L)}),E}function vg(o,a){return o&&ln(a,Pt(a),o)}function sO(o,a){return o&&ln(a,or(a),o)}function sn(o,a,d){a=="__proto__"&&Xa?Xa(o,a,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[a]=d}function Du(o,a){for(var d=-1,E=a.length,k=Q(E),C=o==null;++d<E;)k[d]=C?r:vd(o,a[d]);return k}function Ai(o,a,d){return o===o&&(d!==r&&(o=o<=d?o:d),a!==r&&(o=o>=a?o:a)),o}function Cr(o,a,d,E,k,C){var L,B=a&h,G=a&b,ie=a&S;if(d&&(L=k?d(o,E,k,C):d(o)),L!==r)return L;if(!pt(o))return o;var se=Ie(o);if(se){if(L=ZO(o),!B)return nr(o,L)}else{var ue=Zt(o),me=ue==Te||ue==ge;if(ri(o))return Fg(o,B);if(ue==dr||ue==ae||me&&!k){if(L=G||me?{}:ov(o),!B)return G?zO(o,sO(L,o)):LO(o,vg(L,o))}else{if(!it[ue])return k?o:{};L=KO(o,ue,B)}}C||(C=new Wr);var Se=C.get(o);if(Se)return Se;C.set(o,L),Mv(o)?o.forEach(function(_e){L.add(Cr(_e,a,d,_e,o,C))}):Pv(o)&&o.forEach(function(_e,Le){L.set(Le,Cr(_e,a,d,Le,o,C))});var ke=ie?G?td:ed:G?or:Pt,Ne=se?r:ke(o);return hr(Ne||o,function(_e,Le){Ne&&(Le=_e,_e=o[Le]),cs(L,Le,Cr(_e,a,d,Le,o,C))}),L}function aO(o){var a=Pt(o);return function(d){return mg(d,o,a)}}function mg(o,a,d){var E=d.length;if(o==null)return!E;for(o=nt(o);E--;){var k=d[E],C=a[k],L=o[k];if(L===r&&!(k in o)||!C(L))return!1}return!0}function bg(o,a,d){if(typeof o!="function")throw new Tr(l);return vs(function(){o.apply(r,d)},a)}function us(o,a,d,E){var k=-1,C=Fa,L=!0,B=o.length,G=[],ie=a.length;if(!B)return G;d&&(a=ut(a,gr(d))),E?(C=xu,L=!1):a.length>=i&&(C=ns,L=!1,a=new ki(a));e:for(;++k<B;){var se=o[k],ue=d==null?se:d(se);if(se=E||se!==0?se:0,L&&ue===ue){for(var me=ie;me--;)if(a[me]===ue)continue e;G.push(se)}else C(a,ue,E)||G.push(se)}return G}var Jn=Ug(an),yg=Ug(zu,!0);function lO(o,a){var d=!0;return Jn(o,function(E,k,C){return d=!!a(E,k,C),d}),d}function il(o,a,d){for(var E=-1,k=o.length;++E<k;){var C=o[E],L=a(C);if(L!=null&&(B===r?L===L&&!mr(L):d(L,B)))var B=L,G=C}return G}function cO(o,a,d,E){var k=o.length;for(d=Pe(d),d<0&&(d=-d>k?0:k+d),E=E===r||E>k?k:Pe(E),E<0&&(E+=k),E=d>E?0:Lv(E);d<E;)o[d++]=a;return o}function wg(o,a){var d=[];return Jn(o,function(E,k,C){a(E,k,C)&&d.push(E)}),d}function jt(o,a,d,E,k){var C=-1,L=o.length;for(d||(d=XO),k||(k=[]);++C<L;){var B=o[C];a>0&&d(B)?a>1?jt(B,a-1,d,E,k):Kn(k,B):E||(k[k.length]=B)}return k}var Lu=qg(),xg=qg(!0);function an(o,a){return o&&Lu(o,a,Pt)}function zu(o,a){return o&&xg(o,a,Pt)}function ol(o,a){return Zn(a,function(d){return Cn(o[d])})}function Ti(o,a){a=ei(a,o);for(var d=0,E=a.length;o!=null&&d<E;)o=o[Vr(a[d++])];return d&&d==E?o:r}function Sg(o,a,d){var E=a(o);return Ie(o)?E:Kn(E,d(o))}function Yt(o){return o==null?o===r?Vn:Dt:_i&&_i in nt(o)?UO(o):ik(o)}function $u(o,a){return o>a}function uO(o,a){return o!=null&&Ue.call(o,a)}function dO(o,a){return o!=null&&a in nt(o)}function fO(o,a,d){return o>=Gt(a,d)&&o<kt(a,d)}function ju(o,a,d){for(var E=d?xu:Fa,k=o[0].length,C=o.length,L=C,B=Q(C),G=1/0,ie=[];L--;){var se=o[L];L&&a&&(se=ut(se,gr(a))),G=Gt(se.length,G),B[L]=!d&&(a||k>=120&&se.length>=120)?new ki(L&&se):r}se=o[0];var ue=-1,me=B[0];e:for(;++ue<k&&ie.length<G;){var Se=se[ue],ke=a?a(Se):Se;if(Se=d||Se!==0?Se:0,!(me?ns(me,ke):E(ie,ke,d))){for(L=C;--L;){var Ne=B[L];if(!(Ne?ns(Ne,ke):E(o[L],ke,d)))continue e}me&&me.push(ke),ie.push(Se)}}return ie}function pO(o,a,d,E){return an(o,function(k,C,L){a(E,d(k),C,L)}),E}function ds(o,a,d){a=ei(a,o),o=cv(o,a);var E=o==null?o:o[Vr(Pr(a))];return E==null?r:pr(E,o,d)}function Eg(o){return vt(o)&&Yt(o)==ae}function hO(o){return vt(o)&&Yt(o)==en}function gO(o){return vt(o)&&Yt(o)==fe}function fs(o,a,d,E,k){return o===a?!0:o==null||a==null||!vt(o)&&!vt(a)?o!==o&&a!==a:vO(o,a,d,E,fs,k)}function vO(o,a,d,E,k,C){var L=Ie(o),B=Ie(a),G=L?ne:Zt(o),ie=B?ne:Zt(a);G=G==ae?dr:G,ie=ie==ae?dr:ie;var se=G==dr,ue=ie==dr,me=G==ie;if(me&&ri(o)){if(!ri(a))return!1;L=!0,se=!1}if(me&&!se)return C||(C=new Wr),L||ho(o)?rv(o,a,d,E,k,C):WO(o,a,G,d,E,k,C);if(!(d&v)){var Se=se&&Ue.call(o,"__wrapped__"),ke=ue&&Ue.call(a,"__wrapped__");if(Se||ke){var Ne=Se?o.value():o,_e=ke?a.value():a;return C||(C=new Wr),k(Ne,_e,d,E,C)}}return me?(C||(C=new Wr),VO(o,a,d,E,k,C)):!1}function mO(o){return vt(o)&&Zt(o)==at}function Fu(o,a,d,E){var k=d.length,C=k,L=!E;if(o==null)return!C;for(o=nt(o);k--;){var B=d[k];if(L&&B[2]?B[1]!==o[B[0]]:!(B[0]in o))return!1}for(;++k<C;){B=d[k];var G=B[0],ie=o[G],se=B[1];if(L&&B[2]){if(ie===r&&!(G in o))return!1}else{var ue=new Wr;if(E)var me=E(ie,se,G,o,a,ue);if(!(me===r?fs(se,ie,v|y,E,ue):me))return!1}}return!0}function _g(o){if(!pt(o)||QO(o))return!1;var a=Cn(o)?m_:rs;return a.test(Ci(o))}function bO(o){return vt(o)&&Yt(o)==Rt}function yO(o){return vt(o)&&Zt(o)==zt}function wO(o){return vt(o)&&Sl(o.length)&&!!lt[Yt(o)]}function Og(o){return typeof o=="function"?o:o==null?sr:typeof o=="object"?Ie(o)?Tg(o[0],o[1]):Ag(o):Zv(o)}function Hu(o){if(!gs(o))return E_(o);var a=[];for(var d in nt(o))Ue.call(o,d)&&d!="constructor"&&a.push(d);return a}function xO(o){if(!pt(o))return nk(o);var a=gs(o),d=[];for(var E in o)E=="constructor"&&(a||!Ue.call(o,E))||d.push(E);return d}function Bu(o,a){return o<a}function kg(o,a){var d=-1,E=ir(o)?Q(o.length):[];return Jn(o,function(k,C,L){E[++d]=a(k,C,L)}),E}function Ag(o){var a=nd(o);return a.length==1&&a[0][2]?av(a[0][0],a[0][1]):function(d){return d===o||Fu(d,o,a)}}function Tg(o,a){return od(o)&&sv(a)?av(Vr(o),a):function(d){var E=vd(d,o);return E===r&&E===a?md(d,o):fs(a,E,v|y)}}function sl(o,a,d,E,k){o!==a&&Lu(a,function(C,L){if(k||(k=new Wr),pt(C))SO(o,a,L,d,sl,E,k);else{var B=E?E(ad(o,L),C,L+"",o,a,k):r;B===r&&(B=C),Mu(o,L,B)}},or)}function SO(o,a,d,E,k,C,L){var B=ad(o,d),G=ad(a,d),ie=L.get(G);if(ie){Mu(o,d,ie);return}var se=C?C(B,G,d+"",o,a,L):r,ue=se===r;if(ue){var me=Ie(G),Se=!me&&ri(G),ke=!me&&!Se&&ho(G);se=G,me||Se||ke?Ie(B)?se=B:mt(B)?se=nr(B):Se?(ue=!1,se=Fg(G,!0)):ke?(ue=!1,se=Hg(G,!0)):se=[]:ms(G)||Ii(G)?(se=B,Ii(B)?se=zv(B):(!pt(B)||Cn(B))&&(se=ov(G))):ue=!1}ue&&(L.set(G,se),k(se,G,E,C,L),L.delete(G)),Mu(o,d,se)}function Rg(o,a){var d=o.length;if(d)return a+=a<0?d:0,Rn(a,d)?o[a]:r}function Cg(o,a,d){a.length?a=ut(a,function(C){return Ie(C)?function(L){return Ti(L,C.length===1?C[0]:C)}:C}):a=[sr];var E=-1;a=ut(a,gr(Oe()));var k=kg(o,function(C,L,B){var G=ut(a,function(ie){return ie(C)});return{criteria:G,index:++E,value:C}});return KE(k,function(C,L){return DO(C,L,d)})}function EO(o,a){return Ig(o,a,function(d,E){return md(o,E)})}function Ig(o,a,d){for(var E=-1,k=a.length,C={};++E<k;){var L=a[E],B=Ti(o,L);d(B,L)&&ps(C,ei(L,o),B)}return C}function _O(o){return function(a){return Ti(a,o)}}function Wu(o,a,d,E){var k=E?ZE:ro,C=-1,L=a.length,B=o;for(o===a&&(a=nr(a)),d&&(B=ut(o,gr(d)));++C<L;)for(var G=0,ie=a[C],se=d?d(ie):ie;(G=k(B,se,G,E))>-1;)B!==o&&Ya.call(B,G,1),Ya.call(o,G,1);return o}function Pg(o,a){for(var d=o?a.length:0,E=d-1;d--;){var k=a[d];if(d==E||k!==C){var C=k;Rn(k)?Ya.call(o,k,1):Gu(o,k)}}return o}function Vu(o,a){return o+Qa(fg()*(a-o+1))}function OO(o,a,d,E){for(var k=-1,C=kt(Ja((a-o)/(d||1)),0),L=Q(C);C--;)L[E?C:++k]=o,o+=d;return L}function Uu(o,a){var d="";if(!o||a<1||a>ve)return d;do a%2&&(d+=o),a=Qa(a/2),a&&(o+=o);while(a);return d}function Me(o,a){return ld(lv(o,a,sr),o+"")}function kO(o){return gg(go(o))}function AO(o,a){var d=go(o);return vl(d,Ai(a,0,d.length))}function ps(o,a,d,E){if(!pt(o))return o;a=ei(a,o);for(var k=-1,C=a.length,L=C-1,B=o;B!=null&&++k<C;){var G=Vr(a[k]),ie=d;if(G==="__proto__"||G==="constructor"||G==="prototype")return o;if(k!=L){var se=B[G];ie=E?E(se,G,B):r,ie===r&&(ie=pt(se)?se:Rn(a[k+1])?[]:{})}cs(B,G,ie),B=B[G]}return o}var Ng=el?function(o,a){return el.set(o,a),o}:sr,TO=Xa?function(o,a){return Xa(o,"toString",{configurable:!0,enumerable:!1,value:yd(a),writable:!0})}:sr;function RO(o){return vl(go(o))}function Ir(o,a,d){var E=-1,k=o.length;a<0&&(a=-a>k?0:k+a),d=d>k?k:d,d<0&&(d+=k),k=a>d?0:d-a>>>0,a>>>=0;for(var C=Q(k);++E<k;)C[E]=o[E+a];return C}function CO(o,a){var d;return Jn(o,function(E,k,C){return d=a(E,k,C),!d}),!!d}function al(o,a,d){var E=0,k=o==null?E:o.length;if(typeof a=="number"&&a===a&&k<=J){for(;E<k;){var C=E+k>>>1,L=o[C];L!==null&&!mr(L)&&(d?L<=a:L<a)?E=C+1:k=C}return k}return qu(o,a,sr,d)}function qu(o,a,d,E){var k=0,C=o==null?0:o.length;if(C===0)return 0;a=d(a);for(var L=a!==a,B=a===null,G=mr(a),ie=a===r;k<C;){var se=Qa((k+C)/2),ue=d(o[se]),me=ue!==r,Se=ue===null,ke=ue===ue,Ne=mr(ue);if(L)var _e=E||ke;else ie?_e=ke&&(E||me):B?_e=ke&&me&&(E||!Se):G?_e=ke&&me&&!Se&&(E||!Ne):Se||Ne?_e=!1:_e=E?ue<=a:ue<a;_e?k=se+1:C=se}return Gt(C,te)}function Mg(o,a){for(var d=-1,E=o.length,k=0,C=[];++d<E;){var L=o[d],B=a?a(L):L;if(!d||!Ur(B,G)){var G=B;C[k++]=L===0?0:L}}return C}function Dg(o){return typeof o=="number"?o:mr(o)?W:+o}function vr(o){if(typeof o=="string")return o;if(Ie(o))return ut(o,vr)+"";if(mr(o))return pg?pg.call(o):"";var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Qn(o,a,d){var E=-1,k=Fa,C=o.length,L=!0,B=[],G=B;if(d)L=!1,k=xu;else if(C>=i){var ie=a?null:HO(o);if(ie)return Ba(ie);L=!1,k=ns,G=new ki}else G=a?[]:B;e:for(;++E<C;){var se=o[E],ue=a?a(se):se;if(se=d||se!==0?se:0,L&&ue===ue){for(var me=G.length;me--;)if(G[me]===ue)continue e;a&&G.push(ue),B.push(se)}else k(G,ue,d)||(G!==B&&G.push(ue),B.push(se))}return B}function Gu(o,a){a=ei(a,o);var d=-1,E=a.length;if(!E)return!0;for(;++d<E;){var k=Vr(a[d]);if(k==="__proto__"&&!Ue.call(o,"__proto__")||(k==="constructor"||k==="prototype")&&d<E-1)return!1}var C=cv(o,a);return C==null||delete C[Vr(Pr(a))]}function Lg(o,a,d,E){return ps(o,a,d(Ti(o,a)),E)}function ll(o,a,d,E){for(var k=o.length,C=E?k:-1;(E?C--:++C<k)&&a(o[C],C,o););return d?Ir(o,E?0:C,E?C+1:k):Ir(o,E?C+1:0,E?k:C)}function zg(o,a){var d=o;return d instanceof ze&&(d=d.value()),Su(a,function(E,k){return k.func.apply(k.thisArg,Kn([E],k.args))},d)}function Zu(o,a,d){var E=o.length;if(E<2)return E?Qn(o[0]):[];for(var k=-1,C=Q(E);++k<E;)for(var L=o[k],B=-1;++B<E;)B!=k&&(C[k]=us(C[k]||L,o[B],a,d));return Qn(jt(C,1),a,d)}function $g(o,a,d){for(var E=-1,k=o.length,C=a.length,L={};++E<k;){var B=E<C?a[E]:r;d(L,o[E],B)}return L}function Ku(o){return mt(o)?o:[]}function Yu(o){return typeof o=="function"?o:sr}function ei(o,a){return Ie(o)?o:od(o,a)?[o]:pv(qe(o))}var IO=Me;function ti(o,a,d){var E=o.length;return d=d===r?E:d,!a&&d>=E?o:Ir(o,a,d)}var jg=b_||function(o){return $t.clearTimeout(o)};function Fg(o,a){if(a)return o.slice();var d=o.length,E=ag?ag(d):new o.constructor(d);return o.copy(E),E}function Xu(o){var a=new o.constructor(o.byteLength);return new Za(a).set(new Za(o)),a}function PO(o,a){var d=a?Xu(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function NO(o){var a=new o.constructor(o.source,nn.exec(o));return a.lastIndex=o.lastIndex,a}function MO(o){return ls?nt(ls.call(o)):{}}function Hg(o,a){var d=a?Xu(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function Bg(o,a){if(o!==a){var d=o!==r,E=o===null,k=o===o,C=mr(o),L=a!==r,B=a===null,G=a===a,ie=mr(a);if(!B&&!ie&&!C&&o>a||C&&L&&G&&!B&&!ie||E&&L&&G||!d&&G||!k)return 1;if(!E&&!C&&!ie&&o<a||ie&&d&&k&&!E&&!C||B&&d&&k||!L&&k||!G)return-1}return 0}function DO(o,a,d){for(var E=-1,k=o.criteria,C=a.criteria,L=k.length,B=d.length;++E<L;){var G=Bg(k[E],C[E]);if(G){if(E>=B)return G;var ie=d[E];return G*(ie=="desc"?-1:1)}}return o.index-a.index}function Wg(o,a,d,E){for(var k=-1,C=o.length,L=d.length,B=-1,G=a.length,ie=kt(C-L,0),se=Q(G+ie),ue=!E;++B<G;)se[B]=a[B];for(;++k<L;)(ue||k<C)&&(se[d[k]]=o[k]);for(;ie--;)se[B++]=o[k++];return se}function Vg(o,a,d,E){for(var k=-1,C=o.length,L=-1,B=d.length,G=-1,ie=a.length,se=kt(C-B,0),ue=Q(se+ie),me=!E;++k<se;)ue[k]=o[k];for(var Se=k;++G<ie;)ue[Se+G]=a[G];for(;++L<B;)(me||k<C)&&(ue[Se+d[L]]=o[k++]);return ue}function nr(o,a){var d=-1,E=o.length;for(a||(a=Q(E));++d<E;)a[d]=o[d];return a}function ln(o,a,d,E){var k=!d;d||(d={});for(var C=-1,L=a.length;++C<L;){var B=a[C],G=E?E(d[B],o[B],B,d,o):r;G===r&&(G=o[B]),k?sn(d,B,G):cs(d,B,G)}return d}function LO(o,a){return ln(o,id(o),a)}function zO(o,a){return ln(o,nv(o),a)}function cl(o,a){return function(d,E){var k=Ie(d)?BE:oO,C=a?a():{};return k(d,o,Oe(E,2),C)}}function uo(o){return Me(function(a,d){var E=-1,k=d.length,C=k>1?d[k-1]:r,L=k>2?d[2]:r;for(C=o.length>3&&typeof C=="function"?(k--,C):r,L&&Xt(d[0],d[1],L)&&(C=k<3?r:C,k=1),a=nt(a);++E<k;){var B=d[E];B&&o(a,B,E,C)}return a})}function Ug(o,a){return function(d,E){if(d==null)return d;if(!ir(d))return o(d,E);for(var k=d.length,C=a?k:-1,L=nt(d);(a?C--:++C<k)&&E(L[C],C,L)!==!1;);return d}}function qg(o){return function(a,d,E){for(var k=-1,C=nt(a),L=E(a),B=L.length;B--;){var G=L[o?B:++k];if(d(C[G],G,C)===!1)break}return a}}function $O(o,a,d){var E=a&m,k=hs(o);function C(){var L=this&&this!==$t&&this instanceof C?k:o;return L.apply(E?d:this,arguments)}return C}function Gg(o){return function(a){a=qe(a);var d=no(a)?Br(a):r,E=d?d[0]:a.charAt(0),k=d?ti(d,1).join(""):a.slice(1);return E[o]()+k}}function fo(o){return function(a){return Su(qv(Uv(a).replace(TE,"")),o,"")}}function hs(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var d=co(o.prototype),E=o.apply(d,a);return pt(E)?E:d}}function jO(o,a,d){var E=hs(o);function k(){for(var C=arguments.length,L=Q(C),B=C,G=po(k);B--;)L[B]=arguments[B];var ie=C<3&&L[0]!==G&&L[C-1]!==G?[]:Yn(L,G);if(C-=ie.length,C<d)return Jg(o,a,ul,k.placeholder,r,L,ie,r,r,d-C);var se=this&&this!==$t&&this instanceof k?E:o;return pr(se,this,L)}return k}function Zg(o){return function(a,d,E){var k=nt(a);if(!ir(a)){var C=Oe(d,3);a=Pt(a),d=function(B){return C(k[B],B,k)}}var L=o(a,d,E);return L>-1?k[C?a[L]:L]:r}}function Kg(o){return Tn(function(a){var d=a.length,E=d,k=Rr.prototype.thru;for(o&&a.reverse();E--;){var C=a[E];if(typeof C!="function")throw new Tr(l);if(k&&!L&&hl(C)=="wrapper")var L=new Rr([],!0)}for(E=L?E:d;++E<d;){C=a[E];var B=hl(C),G=B=="wrapper"?rd(C):r;G&&sd(G[0])&&G[1]==(I|O|R|$)&&!G[4].length&&G[9]==1?L=L[hl(G[0])].apply(L,G[3]):L=C.length==1&&sd(C)?L[B]():L.thru(C)}return function(){var ie=arguments,se=ie[0];if(L&&ie.length==1&&Ie(se))return L.plant(se).value();for(var ue=0,me=d?a[ue].apply(this,ie):se;++ue<d;)me=a[ue].call(this,me);return me}})}function ul(o,a,d,E,k,C,L,B,G,ie){var se=a&I,ue=a&m,me=a&w,Se=a&(O|_),ke=a&U,Ne=me?r:hs(o);function _e(){for(var Le=arguments.length,$e=Q(Le),br=Le;br--;)$e[br]=arguments[br];if(Se)var Jt=po(_e),yr=XE($e,Jt);if(E&&($e=Wg($e,E,k,Se)),C&&($e=Vg($e,C,L,Se)),Le-=yr,Se&&Le<ie){var bt=Yn($e,Jt);return Jg(o,a,ul,_e.placeholder,d,$e,bt,B,G,ie-Le)}var qr=ue?d:this,Pn=me?qr[o]:o;return Le=$e.length,B?$e=ok($e,B):ke&&Le>1&&$e.reverse(),se&&G<Le&&($e.length=G),this&&this!==$t&&this instanceof _e&&(Pn=Ne||hs(Pn)),Pn.apply(qr,$e)}return _e}function Yg(o,a){return function(d,E){return pO(d,o,a(E),{})}}function dl(o,a){return function(d,E){var k;if(d===r&&E===r)return a;if(d!==r&&(k=d),E!==r){if(k===r)return E;typeof d=="string"||typeof E=="string"?(d=vr(d),E=vr(E)):(d=Dg(d),E=Dg(E)),k=o(d,E)}return k}}function Ju(o){return Tn(function(a){return a=ut(a,gr(Oe())),Me(function(d){var E=this;return o(a,function(k){return pr(k,E,d)})})})}function fl(o,a){a=a===r?" ":vr(a);var d=a.length;if(d<2)return d?Uu(a,o):a;var E=Uu(a,Ja(o/io(a)));return no(a)?ti(Br(E),0,o).join(""):E.slice(0,o)}function FO(o,a,d,E){var k=a&m,C=hs(o);function L(){for(var B=-1,G=arguments.length,ie=-1,se=E.length,ue=Q(se+G),me=this&&this!==$t&&this instanceof L?C:o;++ie<se;)ue[ie]=E[ie];for(;G--;)ue[ie++]=arguments[++B];return pr(me,k?d:this,ue)}return L}function Xg(o){return function(a,d,E){return E&&typeof E!="number"&&Xt(a,d,E)&&(d=E=r),a=In(a),d===r?(d=a,a=0):d=In(d),E=E===r?a<d?1:-1:In(E),OO(a,d,E,o)}}function pl(o){return function(a,d){return typeof a=="string"&&typeof d=="string"||(a=Nr(a),d=Nr(d)),o(a,d)}}function Jg(o,a,d,E,k,C,L,B,G,ie){var se=a&O,ue=se?L:r,me=se?r:L,Se=se?C:r,ke=se?r:C;a|=se?R:H,a&=~(se?H:R),a&x||(a&=-4);var Ne=[o,a,k,Se,ue,ke,me,B,G,ie],_e=d.apply(r,Ne);return sd(o)&&uv(_e,Ne),_e.placeholder=E,dv(_e,o,a)}function Qu(o){var a=Ot[o];return function(d,E){if(d=Nr(d),E=E==null?0:Gt(Pe(E),292),E&&dg(d)){var k=(qe(d)+"e").split("e"),C=a(k[0]+"e"+(+k[1]+E));return k=(qe(C)+"e").split("e"),+(k[0]+"e"+(+k[1]-E))}return a(d)}}var HO=ao&&1/Ba(new ao([,-0]))[1]==Y?function(o){return new ao(o)}:Sd;function Qg(o){return function(a){var d=Zt(a);return d==at?Ru(a):d==zt?i_(a):YE(a,o(a))}}function An(o,a,d,E,k,C,L,B){var G=a&w;if(!G&&typeof o!="function")throw new Tr(l);var ie=E?E.length:0;if(ie||(a&=-97,E=k=r),L=L===r?L:kt(Pe(L),0),B=B===r?B:Pe(B),ie-=k?k.length:0,a&H){var se=E,ue=k;E=k=r}var me=G?r:rd(o),Se=[o,a,d,E,k,se,ue,C,L,B];if(me&&rk(Se,me),o=Se[0],a=Se[1],d=Se[2],E=Se[3],k=Se[4],B=Se[9]=Se[9]===r?G?0:o.length:kt(Se[9]-ie,0),!B&&a&(O|_)&&(a&=-25),!a||a==m)var ke=$O(o,a,d);else a==O||a==_?ke=jO(o,a,B):(a==R||a==(m|R))&&!k.length?ke=FO(o,a,d,E):ke=ul.apply(r,Se);var Ne=me?Ng:uv;return dv(Ne(ke,Se),o,a)}function ev(o,a,d,E){return o===r||Ur(o,so[d])&&!Ue.call(E,d)?a:o}function tv(o,a,d,E,k,C){return pt(o)&&pt(a)&&(C.set(a,o),sl(o,a,r,tv,C),C.delete(a)),o}function BO(o){return ms(o)?r:o}function rv(o,a,d,E,k,C){var L=d&v,B=o.length,G=a.length;if(B!=G&&!(L&&G>B))return!1;var ie=C.get(o),se=C.get(a);if(ie&&se)return ie==a&&se==o;var ue=-1,me=!0,Se=d&y?new ki:r;for(C.set(o,a),C.set(a,o);++ue<B;){var ke=o[ue],Ne=a[ue];if(E)var _e=L?E(Ne,ke,ue,a,o,C):E(ke,Ne,ue,o,a,C);if(_e!==r){if(_e)continue;me=!1;break}if(Se){if(!Eu(a,function(Le,$e){if(!ns(Se,$e)&&(ke===Le||k(ke,Le,d,E,C)))return Se.push($e)})){me=!1;break}}else if(!(ke===Ne||k(ke,Ne,d,E,C))){me=!1;break}}return C.delete(o),C.delete(a),me}function WO(o,a,d,E,k,C,L){switch(d){case Un:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case en:return!(o.byteLength!=a.byteLength||!C(new Za(o),new Za(a)));case he:case fe:case qt:return Ur(+o,+a);case Z:return o.name==a.name&&o.message==a.message;case Rt:case Qr:return o==a+"";case at:var B=Ru;case zt:var G=E&v;if(B||(B=Ba),o.size!=a.size&&!G)return!1;var ie=L.get(o);if(ie)return ie==a;E|=y,L.set(o,a);var se=rv(B(o),B(a),E,k,C,L);return L.delete(o),se;case Hr:if(ls)return ls.call(o)==ls.call(a)}return!1}function VO(o,a,d,E,k,C){var L=d&v,B=ed(o),G=B.length,ie=ed(a),se=ie.length;if(G!=se&&!L)return!1;for(var ue=G;ue--;){var me=B[ue];if(!(L?me in a:Ue.call(a,me)))return!1}var Se=C.get(o),ke=C.get(a);if(Se&&ke)return Se==a&&ke==o;var Ne=!0;C.set(o,a),C.set(a,o);for(var _e=L;++ue<G;){me=B[ue];var Le=o[me],$e=a[me];if(E)var br=L?E($e,Le,me,a,o,C):E(Le,$e,me,o,a,C);if(!(br===r?Le===$e||k(Le,$e,d,E,C):br)){Ne=!1;break}_e||(_e=me=="constructor")}if(Ne&&!_e){var Jt=o.constructor,yr=a.constructor;Jt!=yr&&"constructor"in o&&"constructor"in a&&!(typeof Jt=="function"&&Jt instanceof Jt&&typeof yr=="function"&&yr instanceof yr)&&(Ne=!1)}return C.delete(o),C.delete(a),Ne}function Tn(o){return ld(lv(o,r,mv),o+"")}function ed(o){return Sg(o,Pt,id)}function td(o){return Sg(o,or,nv)}var rd=el?function(o){return el.get(o)}:Sd;function hl(o){for(var a=o.name+"",d=lo[a],E=Ue.call(lo,a)?d.length:0;E--;){var k=d[E],C=k.func;if(C==null||C==o)return k.name}return a}function po(o){var a=Ue.call(T,"placeholder")?T:o;return a.placeholder}function Oe(){var o=T.iteratee||wd;return o=o===wd?Og:o,arguments.length?o(arguments[0],arguments[1]):o}function gl(o,a){var d=o.__data__;return JO(a)?d[typeof a=="string"?"string":"hash"]:d.map}function nd(o){for(var a=Pt(o),d=a.length;d--;){var E=a[d],k=o[E];a[d]=[E,k,sv(k)]}return a}function Ri(o,a){var d=t_(o,a);return _g(d)?d:r}function UO(o){var a=Ue.call(o,_i),d=o[_i];try{o[_i]=r;var E=!0}catch{}var k=qa.call(o);return E&&(a?o[_i]=d:delete o[_i]),k}var id=Iu?function(o){return o==null?[]:(o=nt(o),Zn(Iu(o),function(a){return cg.call(o,a)}))}:Ed,nv=Iu?function(o){for(var a=[];o;)Kn(a,id(o)),o=Ka(o);return a}:Ed,Zt=Yt;(Pu&&Zt(new Pu(new ArrayBuffer(1)))!=Un||os&&Zt(new os)!=at||Nu&&Zt(Nu.resolve())!=bi||ao&&Zt(new ao)!=zt||ss&&Zt(new ss)!=fr)&&(Zt=function(o){var a=Yt(o),d=a==dr?o.constructor:r,E=d?Ci(d):"";if(E)switch(E){case A_:return Un;case T_:return at;case R_:return bi;case C_:return zt;case I_:return fr}return a});function qO(o,a,d){for(var E=-1,k=d.length;++E<k;){var C=d[E],L=C.size;switch(C.type){case"drop":o+=L;break;case"dropRight":a-=L;break;case"take":a=Gt(a,o+L);break;case"takeRight":o=kt(o,a-L);break}}return{start:o,end:a}}function GO(o){var a=o.match(Ct);return a?a[1].split(It):[]}function iv(o,a,d){a=ei(a,o);for(var E=-1,k=a.length,C=!1;++E<k;){var L=Vr(a[E]);if(!(C=o!=null&&d(o,L)))break;o=o[L]}return C||++E!=k?C:(k=o==null?0:o.length,!!k&&Sl(k)&&Rn(L,k)&&(Ie(o)||Ii(o)))}function ZO(o){var a=o.length,d=new o.constructor(a);return a&&typeof o[0]=="string"&&Ue.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function ov(o){return typeof o.constructor=="function"&&!gs(o)?co(Ka(o)):{}}function KO(o,a,d){var E=o.constructor;switch(a){case en:return Xu(o);case he:case fe:return new E(+o);case Un:return PO(o,d);case tr:case yi:case Ko:case Yi:case Xi:case Yo:case Ji:case Qi:case eo:return Hg(o,d);case at:return new E;case qt:case Qr:return new E(o);case Rt:return NO(o);case zt:return new E;case Hr:return MO(o)}}function YO(o,a){var d=a.length;if(!d)return o;var E=d-1;return a[E]=(d>1?"& ":"")+a[E],a=a.join(d>2?", ":" "),o.replace(xt,`{
232
+ */var B4=Ys.exports,oy;function V4(){return oy||(oy=1,(function(e,t){(function(){var r,n="4.18.1",i=200,s="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",u="Invalid `imports` option passed into `_.template`",f="__lodash_hash_undefined__",g=500,p="__lodash_placeholder__",h=1,b=2,S=4,v=1,y=2,m=1,w=2,x=4,O=8,_=16,R=32,H=64,P=128,z=256,U=512,$=30,M="...",D=800,F=16,I=1,K=2,te=3,Y=1/0,ve=9007199254740991,j=17976931348623157e292,W=NaN,ee=4294967295,Q=ee-1,X=ee>>>1,ue=[["ary",P],["bind",m],["bindKey",w],["curry",O],["curryRight",_],["flip",U],["partial",R],["partialRight",H],["rearg",z]],ie="[object Arguments]",ne="[object Array]",de="[object AsyncFunction]",pe="[object Boolean]",he="[object Date]",xe="[object DOMException]",Z="[object Error]",Oe="[object Function]",ge="[object GeneratorFunction]",at="[object Map]",Kt="[object Number]",Or="[object Null]",ur="[object Object]",bi="[object Promise]",xt="[object Proxy]",kr="[object RegExp]",Lt="[object Set]",Ct="[object String]",Ut="[object Symbol]",yi="[object Undefined]",en="[object WeakMap]",wi="[object WeakSet]",Ar="[object ArrayBuffer]",Wr="[object DataView]",dr="[object Float32Array]",Ko="[object Float64Array]",Yo="[object Int8Array]",tr="[object Int16Array]",xi="[object Int32Array]",Xo="[object Uint8Array]",Ki="[object Uint8ClampedArray]",Yi="[object Uint16Array]",Jo="[object Uint32Array]",Ia=/\b__p \+= '';/g,Na=/\b(__p \+=) '' \+/g,Ma=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Qo=/&(?:amp|lt|gt|quot|#39);/g,qn=/[&<>"']/g,es=RegExp(Qo.source),pu=RegExp(qn.source),Da=/<%-([\s\S]+?)%>/g,ts=/<%([\s\S]+?)%>/g,Xi=/<%=([\s\S]+?)%>/g,hu=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,La=/^\w*$/,gu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tn=/[\\^$.*+?()[\]{}|]/g,vu=RegExp(tn.source),On=/^\s+/,Ji=/\s/,za=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,mu=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,St=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,$a=/[()=,{}\[\]\/\s]/,Pt=/\\(\\)?/g,zt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,kn=/\w*$/,Yt=/^[-+]0x[0-9a-f]+$/i,rn=/^0b[01]+$/i,nn=/^\[object .+?Constructor\]$/,on=/^0o[0-7]+$/i,Gn=/^(?:0|[1-9]\d*)$/,Qi=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,eo=/($^)/,bu=/['\n\r\u2028\u2029\\]/g,ja="\\ud800-\\udfff",fE="\\u0300-\\u036f",pE="\\ufe20-\\ufe2f",hE="\\u20d0-\\u20ff",Th=fE+pE+hE,Rh="\\u2700-\\u27bf",Ch="a-z\\xdf-\\xf6\\xf8-\\xff",gE="\\xac\\xb1\\xd7\\xf7",vE="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mE="\\u2000-\\u206f",bE=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ph="A-Z\\xc0-\\xd6\\xd8-\\xde",Ih="\\ufe0e\\ufe0f",Nh=gE+vE+mE+bE,yu="['’]",yE="["+ja+"]",Mh="["+Nh+"]",Fa="["+Th+"]",Dh="\\d+",wE="["+Rh+"]",Lh="["+Ch+"]",zh="[^"+ja+Nh+Dh+Rh+Ch+Ph+"]",wu="\\ud83c[\\udffb-\\udfff]",xE="(?:"+Fa+"|"+wu+")",$h="[^"+ja+"]",xu="(?:\\ud83c[\\udde6-\\uddff]){2}",Su="[\\ud800-\\udbff][\\udc00-\\udfff]",to="["+Ph+"]",jh="\\u200d",Fh="(?:"+Lh+"|"+zh+")",SE="(?:"+to+"|"+zh+")",Hh="(?:"+yu+"(?:d|ll|m|re|s|t|ve))?",Wh="(?:"+yu+"(?:D|LL|M|RE|S|T|VE))?",Bh=xE+"?",Vh="["+Ih+"]?",EE="(?:"+jh+"(?:"+[$h,xu,Su].join("|")+")"+Vh+Bh+")*",_E="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",OE="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Uh=Vh+Bh+EE,kE="(?:"+[wE,xu,Su].join("|")+")"+Uh,AE="(?:"+[$h+Fa+"?",Fa,xu,Su,yE].join("|")+")",TE=RegExp(yu,"g"),RE=RegExp(Fa,"g"),Eu=RegExp(wu+"(?="+wu+")|"+AE+Uh,"g"),CE=RegExp([to+"?"+Lh+"+"+Hh+"(?="+[Mh,to,"$"].join("|")+")",SE+"+"+Wh+"(?="+[Mh,to+Fh,"$"].join("|")+")",to+"?"+Fh+"+"+Hh,to+"+"+Wh,OE,_E,Dh,kE].join("|"),"g"),PE=RegExp("["+jh+ja+Th+Ih+"]"),IE=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,NE=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ME=-1,lt={};lt[dr]=lt[Ko]=lt[Yo]=lt[tr]=lt[xi]=lt[Xo]=lt[Ki]=lt[Yi]=lt[Jo]=!0,lt[ie]=lt[ne]=lt[Ar]=lt[pe]=lt[Wr]=lt[he]=lt[Z]=lt[Oe]=lt[at]=lt[Kt]=lt[ur]=lt[kr]=lt[Lt]=lt[Ct]=lt[en]=!1;var it={};it[ie]=it[ne]=it[Ar]=it[Wr]=it[pe]=it[he]=it[dr]=it[Ko]=it[Yo]=it[tr]=it[xi]=it[at]=it[Kt]=it[ur]=it[kr]=it[Lt]=it[Ct]=it[Ut]=it[Xo]=it[Ki]=it[Yi]=it[Jo]=!0,it[Z]=it[Oe]=it[en]=!1;var DE={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},LE={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},zE={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},$E={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},jE=parseFloat,FE=parseInt,qh=typeof kl=="object"&&kl&&kl.Object===Object&&kl,HE=typeof self=="object"&&self&&self.Object===Object&&self,$t=qh||HE||Function("return this")(),_u=t&&!t.nodeType&&t,Si=_u&&!0&&e&&!e.nodeType&&e,Gh=Si&&Si.exports===_u,Ou=Gh&&qh.process,Tr=(function(){try{var q=Si&&Si.require&&Si.require("util").types;return q||Ou&&Ou.binding&&Ou.binding("util")}catch{}})(),Zh=Tr&&Tr.isArrayBuffer,Kh=Tr&&Tr.isDate,Yh=Tr&&Tr.isMap,Xh=Tr&&Tr.isRegExp,Jh=Tr&&Tr.isSet,Qh=Tr&&Tr.isTypedArray;function fr(q,re,J){switch(J.length){case 0:return q.call(re);case 1:return q.call(re,J[0]);case 2:return q.call(re,J[0],J[1]);case 3:return q.call(re,J[0],J[1],J[2])}return q.apply(re,J)}function WE(q,re,J,be){for(var Re=-1,We=q==null?0:q.length;++Re<We;){var kt=q[Re];re(be,kt,J(kt),q)}return be}function pr(q,re){for(var J=-1,be=q==null?0:q.length;++J<be&&re(q[J],J,q)!==!1;);return q}function BE(q,re){for(var J=q==null?0:q.length;J--&&re(q[J],J,q)!==!1;);return q}function eg(q,re){for(var J=-1,be=q==null?0:q.length;++J<be;)if(!re(q[J],J,q))return!1;return!0}function Zn(q,re){for(var J=-1,be=q==null?0:q.length,Re=0,We=[];++J<be;){var kt=q[J];re(kt,J,q)&&(We[Re++]=kt)}return We}function Ha(q,re){var J=q==null?0:q.length;return!!J&&ro(q,re,0)>-1}function ku(q,re,J){for(var be=-1,Re=q==null?0:q.length;++be<Re;)if(J(re,q[be]))return!0;return!1}function ut(q,re){for(var J=-1,be=q==null?0:q.length,Re=Array(be);++J<be;)Re[J]=re(q[J],J,q);return Re}function Kn(q,re){for(var J=-1,be=re.length,Re=q.length;++J<be;)q[Re+J]=re[J];return q}function Au(q,re,J,be){var Re=-1,We=q==null?0:q.length;for(be&&We&&(J=q[++Re]);++Re<We;)J=re(J,q[Re],Re,q);return J}function VE(q,re,J,be){var Re=q==null?0:q.length;for(be&&Re&&(J=q[--Re]);Re--;)J=re(J,q[Re],Re,q);return J}function Tu(q,re){for(var J=-1,be=q==null?0:q.length;++J<be;)if(re(q[J],J,q))return!0;return!1}var UE=Ru("length");function qE(q){return q.split("")}function GE(q){return q.match(St)||[]}function tg(q,re,J){var be;return J(q,function(Re,We,kt){if(re(Re,We,kt))return be=We,!1}),be}function Wa(q,re,J,be){for(var Re=q.length,We=J+(be?1:-1);be?We--:++We<Re;)if(re(q[We],We,q))return We;return-1}function ro(q,re,J){return re===re?o_(q,re,J):Wa(q,rg,J)}function ZE(q,re,J,be){for(var Re=J-1,We=q.length;++Re<We;)if(be(q[Re],re))return Re;return-1}function rg(q){return q!==q}function ng(q,re){var J=q==null?0:q.length;return J?Pu(q,re)/J:W}function Ru(q){return function(re){return re==null?r:re[q]}}function Cu(q){return function(re){return q==null?r:q[re]}}function ig(q,re,J,be,Re){return Re(q,function(We,kt,nt){J=be?(be=!1,We):re(J,We,kt,nt)}),J}function KE(q,re){var J=q.length;for(q.sort(re);J--;)q[J]=q[J].value;return q}function Pu(q,re){for(var J,be=-1,Re=q.length;++be<Re;){var We=re(q[be]);We!==r&&(J=J===r?We:J+We)}return J}function Iu(q,re){for(var J=-1,be=Array(q);++J<q;)be[J]=re(J);return be}function YE(q,re){return ut(re,function(J){return[J,q[J]]})}function og(q){return q&&q.slice(0,cg(q)+1).replace(On,"")}function hr(q){return function(re){return q(re)}}function Nu(q,re){return ut(re,function(J){return q[J]})}function rs(q,re){return q.has(re)}function sg(q,re){for(var J=-1,be=q.length;++J<be&&ro(re,q[J],0)>-1;);return J}function ag(q,re){for(var J=q.length;J--&&ro(re,q[J],0)>-1;);return J}function XE(q,re){for(var J=q.length,be=0;J--;)q[J]===re&&++be;return be}var JE=Cu(DE),QE=Cu(LE);function e_(q){return"\\"+$E[q]}function t_(q,re){return q==null?r:q[re]}function no(q){return PE.test(q)}function r_(q){return IE.test(q)}function n_(q){for(var re,J=[];!(re=q.next()).done;)J.push(re.value);return J}function Mu(q){var re=-1,J=Array(q.size);return q.forEach(function(be,Re){J[++re]=[Re,be]}),J}function lg(q,re){return function(J){return q(re(J))}}function Yn(q,re){for(var J=-1,be=q.length,Re=0,We=[];++J<be;){var kt=q[J];(kt===re||kt===p)&&(q[J]=p,We[Re++]=J)}return We}function Ba(q){var re=-1,J=Array(q.size);return q.forEach(function(be){J[++re]=be}),J}function i_(q){var re=-1,J=Array(q.size);return q.forEach(function(be){J[++re]=[be,be]}),J}function o_(q,re,J){for(var be=J-1,Re=q.length;++be<Re;)if(q[be]===re)return be;return-1}function s_(q,re,J){for(var be=J+1;be--;)if(q[be]===re)return be;return be}function io(q){return no(q)?l_(q):UE(q)}function Br(q){return no(q)?c_(q):qE(q)}function cg(q){for(var re=q.length;re--&&Ji.test(q.charAt(re)););return re}var a_=Cu(zE);function l_(q){for(var re=Eu.lastIndex=0;Eu.test(q);)++re;return re}function c_(q){return q.match(Eu)||[]}function u_(q){return q.match(CE)||[]}var d_=(function q(re){re=re==null?$t:oo.defaults($t.Object(),re,oo.pick($t,NE));var J=re.Array,be=re.Date,Re=re.Error,We=re.Function,kt=re.Math,nt=re.Object,Du=re.RegExp,f_=re.String,Rr=re.TypeError,Va=J.prototype,p_=We.prototype,so=nt.prototype,Ua=re["__core-js_shared__"],qa=p_.toString,Ue=so.hasOwnProperty,h_=0,ug=(function(){var o=/[^.]+$/.exec(Ua&&Ua.keys&&Ua.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""})(),Ga=so.toString,g_=qa.call(nt),v_=$t._,m_=Du("^"+qa.call(Ue).replace(tn,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Za=Gh?re.Buffer:r,Xn=re.Symbol,Ka=re.Uint8Array,dg=Za?Za.allocUnsafe:r,Ya=lg(nt.getPrototypeOf,nt),fg=nt.create,pg=so.propertyIsEnumerable,Xa=Va.splice,hg=Xn?Xn.isConcatSpreadable:r,ns=Xn?Xn.iterator:r,Ei=Xn?Xn.toStringTag:r,Ja=(function(){try{var o=Ti(nt,"defineProperty");return o({},"",{}),o}catch{}})(),b_=re.clearTimeout!==$t.clearTimeout&&re.clearTimeout,y_=be&&be.now!==$t.Date.now&&be.now,w_=re.setTimeout!==$t.setTimeout&&re.setTimeout,Qa=kt.ceil,el=kt.floor,Lu=nt.getOwnPropertySymbols,x_=Za?Za.isBuffer:r,gg=re.isFinite,S_=Va.join,E_=lg(nt.keys,nt),At=kt.max,qt=kt.min,__=be.now,O_=re.parseInt,vg=kt.random,k_=Va.reverse,zu=Ti(re,"DataView"),is=Ti(re,"Map"),$u=Ti(re,"Promise"),ao=Ti(re,"Set"),os=Ti(re,"WeakMap"),ss=Ti(nt,"create"),tl=os&&new os,lo={},A_=Ri(zu),T_=Ri(is),R_=Ri($u),C_=Ri(ao),P_=Ri(os),rl=Xn?Xn.prototype:r,as=rl?rl.valueOf:r,mg=rl?rl.toString:r;function T(o){if(vt(o)&&!Pe(o)&&!(o instanceof ze)){if(o instanceof Cr)return o;if(Ue.call(o,"__wrapped__"))return bv(o)}return new Cr(o)}var co=(function(){function o(){}return function(a){if(!pt(a))return{};if(fg)return fg(a);o.prototype=a;var d=new o;return o.prototype=r,d}})();function nl(){}function Cr(o,a){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=r}T.templateSettings={escape:Da,evaluate:ts,interpolate:Xi,variable:"",imports:{_:T}},T.prototype=nl.prototype,T.prototype.constructor=T,Cr.prototype=co(nl.prototype),Cr.prototype.constructor=Cr;function ze(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function I_(){var o=new ze(this.__wrapped__);return o.__actions__=rr(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=rr(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=rr(this.__views__),o}function N_(){if(this.__filtered__){var o=new ze(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function M_(){var o=this.__wrapped__.value(),a=this.__dir__,d=Pe(o),E=a<0,k=d?o.length:0,C=qO(0,k,this.__views__),L=C.start,B=C.end,G=B-L,oe=E?B:L-1,se=this.__iteratees__,ce=se.length,me=0,Se=qt(G,this.__takeCount__);if(!d||!E&&k==G&&Se==G)return Hg(o,this.__actions__);var Ae=[];e:for(;G--&&me<Se;){oe+=a;for(var Ne=-1,_e=o[oe];++Ne<ce;){var Le=se[Ne],$e=Le.iteratee,mr=Le.type,Qt=$e(_e);if(mr==K)_e=Qt;else if(!Qt){if(mr==I)continue e;break e}}Ae[me++]=_e}return Ae}ze.prototype=co(nl.prototype),ze.prototype.constructor=ze;function _i(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function D_(){this.__data__=ss?ss(null):{},this.size=0}function L_(o){var a=this.has(o)&&delete this.__data__[o];return this.size-=a?1:0,a}function z_(o){var a=this.__data__;if(ss){var d=a[o];return d===f?r:d}return Ue.call(a,o)?a[o]:r}function $_(o){var a=this.__data__;return ss?a[o]!==r:Ue.call(a,o)}function j_(o,a){var d=this.__data__;return this.size+=this.has(o)?0:1,d[o]=ss&&a===r?f:a,this}_i.prototype.clear=D_,_i.prototype.delete=L_,_i.prototype.get=z_,_i.prototype.has=$_,_i.prototype.set=j_;function An(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function F_(){this.__data__=[],this.size=0}function H_(o){var a=this.__data__,d=il(a,o);if(d<0)return!1;var E=a.length-1;return d==E?a.pop():Xa.call(a,d,1),--this.size,!0}function W_(o){var a=this.__data__,d=il(a,o);return d<0?r:a[d][1]}function B_(o){return il(this.__data__,o)>-1}function V_(o,a){var d=this.__data__,E=il(d,o);return E<0?(++this.size,d.push([o,a])):d[E][1]=a,this}An.prototype.clear=F_,An.prototype.delete=H_,An.prototype.get=W_,An.prototype.has=B_,An.prototype.set=V_;function Tn(o){var a=-1,d=o==null?0:o.length;for(this.clear();++a<d;){var E=o[a];this.set(E[0],E[1])}}function U_(){this.size=0,this.__data__={hash:new _i,map:new(is||An),string:new _i}}function q_(o){var a=vl(this,o).delete(o);return this.size-=a?1:0,a}function G_(o){return vl(this,o).get(o)}function Z_(o){return vl(this,o).has(o)}function K_(o,a){var d=vl(this,o),E=d.size;return d.set(o,a),this.size+=d.size==E?0:1,this}Tn.prototype.clear=U_,Tn.prototype.delete=q_,Tn.prototype.get=G_,Tn.prototype.has=Z_,Tn.prototype.set=K_;function Oi(o){var a=-1,d=o==null?0:o.length;for(this.__data__=new Tn;++a<d;)this.add(o[a])}function Y_(o){return this.__data__.set(o,f),this}function X_(o){return this.__data__.has(o)}Oi.prototype.add=Oi.prototype.push=Y_,Oi.prototype.has=X_;function Vr(o){var a=this.__data__=new An(o);this.size=a.size}function J_(){this.__data__=new An,this.size=0}function Q_(o){var a=this.__data__,d=a.delete(o);return this.size=a.size,d}function eO(o){return this.__data__.get(o)}function tO(o){return this.__data__.has(o)}function rO(o,a){var d=this.__data__;if(d instanceof An){var E=d.__data__;if(!is||E.length<i-1)return E.push([o,a]),this.size=++d.size,this;d=this.__data__=new Tn(E)}return d.set(o,a),this.size=d.size,this}Vr.prototype.clear=J_,Vr.prototype.delete=Q_,Vr.prototype.get=eO,Vr.prototype.has=tO,Vr.prototype.set=rO;function bg(o,a){var d=Pe(o),E=!d&&Ci(o),k=!d&&!E&&ri(o),C=!d&&!E&&!k&&ho(o),L=d||E||k||C,B=L?Iu(o.length,f_):[],G=B.length;for(var oe in o)(a||Ue.call(o,oe))&&!(L&&(oe=="length"||k&&(oe=="offset"||oe=="parent")||C&&(oe=="buffer"||oe=="byteLength"||oe=="byteOffset")||Pn(oe,G)))&&B.push(oe);return B}function yg(o){var a=o.length;return a?o[Ku(0,a-1)]:r}function nO(o,a){return ml(rr(o),ki(a,0,o.length))}function iO(o){return ml(rr(o))}function ju(o,a,d){(d!==r&&!qr(o[a],d)||d===r&&!(a in o))&&sn(o,a,d)}function ls(o,a,d){var E=o[a];(!(Ue.call(o,a)&&qr(E,d))||d===r&&!(a in o))&&sn(o,a,d)}function il(o,a){for(var d=o.length;d--;)if(qr(o[d][0],a))return d;return-1}function oO(o,a,d,E){return Jn(o,function(k,C,L){a(E,k,d(k),L)}),E}function wg(o,a){return o&&ln(a,It(a),o)}function sO(o,a){return o&&ln(a,ir(a),o)}function sn(o,a,d){a=="__proto__"&&Ja?Ja(o,a,{configurable:!0,enumerable:!0,value:d,writable:!0}):o[a]=d}function Fu(o,a){for(var d=-1,E=a.length,k=J(E),C=o==null;++d<E;)k[d]=C?r:xd(o,a[d]);return k}function ki(o,a,d){return o===o&&(d!==r&&(o=o<=d?o:d),a!==r&&(o=o>=a?o:a)),o}function Pr(o,a,d,E,k,C){var L,B=a&h,G=a&b,oe=a&S;if(d&&(L=k?d(o,E,k,C):d(o)),L!==r)return L;if(!pt(o))return o;var se=Pe(o);if(se){if(L=ZO(o),!B)return rr(o,L)}else{var ce=Gt(o),me=ce==Oe||ce==ge;if(ri(o))return Vg(o,B);if(ce==ur||ce==ie||me&&!k){if(L=G||me?{}:cv(o),!B)return G?zO(o,sO(L,o)):LO(o,wg(L,o))}else{if(!it[ce])return k?o:{};L=KO(o,ce,B)}}C||(C=new Vr);var Se=C.get(o);if(Se)return Se;C.set(o,L),$v(o)?o.forEach(function(_e){L.add(Pr(_e,a,d,_e,o,C))}):Lv(o)&&o.forEach(function(_e,Le){L.set(Le,Pr(_e,a,d,Le,o,C))});var Ae=oe?G?sd:od:G?ir:It,Ne=se?r:Ae(o);return pr(Ne||o,function(_e,Le){Ne&&(Le=_e,_e=o[Le]),ls(L,Le,Pr(_e,a,d,Le,o,C))}),L}function aO(o){var a=It(o);return function(d){return xg(d,o,a)}}function xg(o,a,d){var E=d.length;if(o==null)return!E;for(o=nt(o);E--;){var k=d[E],C=a[k],L=o[k];if(L===r&&!(k in o)||!C(L))return!1}return!0}function Sg(o,a,d){if(typeof o!="function")throw new Rr(l);return gs(function(){o.apply(r,d)},a)}function cs(o,a,d,E){var k=-1,C=Ha,L=!0,B=o.length,G=[],oe=a.length;if(!B)return G;d&&(a=ut(a,hr(d))),E?(C=ku,L=!1):a.length>=i&&(C=rs,L=!1,a=new Oi(a));e:for(;++k<B;){var se=o[k],ce=d==null?se:d(se);if(se=E||se!==0?se:0,L&&ce===ce){for(var me=oe;me--;)if(a[me]===ce)continue e;G.push(se)}else C(a,ce,E)||G.push(se)}return G}var Jn=Kg(an),Eg=Kg(Wu,!0);function lO(o,a){var d=!0;return Jn(o,function(E,k,C){return d=!!a(E,k,C),d}),d}function ol(o,a,d){for(var E=-1,k=o.length;++E<k;){var C=o[E],L=a(C);if(L!=null&&(B===r?L===L&&!vr(L):d(L,B)))var B=L,G=C}return G}function cO(o,a,d,E){var k=o.length;for(d=Ie(d),d<0&&(d=-d>k?0:k+d),E=E===r||E>k?k:Ie(E),E<0&&(E+=k),E=d>E?0:Fv(E);d<E;)o[d++]=a;return o}function _g(o,a){var d=[];return Jn(o,function(E,k,C){a(E,k,C)&&d.push(E)}),d}function jt(o,a,d,E,k){var C=-1,L=o.length;for(d||(d=XO),k||(k=[]);++C<L;){var B=o[C];a>0&&d(B)?a>1?jt(B,a-1,d,E,k):Kn(k,B):E||(k[k.length]=B)}return k}var Hu=Yg(),Og=Yg(!0);function an(o,a){return o&&Hu(o,a,It)}function Wu(o,a){return o&&Og(o,a,It)}function sl(o,a){return Zn(a,function(d){return In(o[d])})}function Ai(o,a){a=ei(a,o);for(var d=0,E=a.length;o!=null&&d<E;)o=o[Ur(a[d++])];return d&&d==E?o:r}function kg(o,a,d){var E=a(o);return Pe(o)?E:Kn(E,d(o))}function Xt(o){return o==null?o===r?yi:Or:Ei&&Ei in nt(o)?UO(o):ik(o)}function Bu(o,a){return o>a}function uO(o,a){return o!=null&&Ue.call(o,a)}function dO(o,a){return o!=null&&a in nt(o)}function fO(o,a,d){return o>=qt(a,d)&&o<At(a,d)}function Vu(o,a,d){for(var E=d?ku:Ha,k=o[0].length,C=o.length,L=C,B=J(C),G=1/0,oe=[];L--;){var se=o[L];L&&a&&(se=ut(se,hr(a))),G=qt(se.length,G),B[L]=!d&&(a||k>=120&&se.length>=120)?new Oi(L&&se):r}se=o[0];var ce=-1,me=B[0];e:for(;++ce<k&&oe.length<G;){var Se=se[ce],Ae=a?a(Se):Se;if(Se=d||Se!==0?Se:0,!(me?rs(me,Ae):E(oe,Ae,d))){for(L=C;--L;){var Ne=B[L];if(!(Ne?rs(Ne,Ae):E(o[L],Ae,d)))continue e}me&&me.push(Ae),oe.push(Se)}}return oe}function pO(o,a,d,E){return an(o,function(k,C,L){a(E,d(k),C,L)}),E}function us(o,a,d){a=ei(a,o),o=pv(o,a);var E=o==null?o:o[Ur(Nr(a))];return E==null?r:fr(E,o,d)}function Ag(o){return vt(o)&&Xt(o)==ie}function hO(o){return vt(o)&&Xt(o)==Ar}function gO(o){return vt(o)&&Xt(o)==he}function ds(o,a,d,E,k){return o===a?!0:o==null||a==null||!vt(o)&&!vt(a)?o!==o&&a!==a:vO(o,a,d,E,ds,k)}function vO(o,a,d,E,k,C){var L=Pe(o),B=Pe(a),G=L?ne:Gt(o),oe=B?ne:Gt(a);G=G==ie?ur:G,oe=oe==ie?ur:oe;var se=G==ur,ce=oe==ur,me=G==oe;if(me&&ri(o)){if(!ri(a))return!1;L=!0,se=!1}if(me&&!se)return C||(C=new Vr),L||ho(o)?sv(o,a,d,E,k,C):BO(o,a,G,d,E,k,C);if(!(d&v)){var Se=se&&Ue.call(o,"__wrapped__"),Ae=ce&&Ue.call(a,"__wrapped__");if(Se||Ae){var Ne=Se?o.value():o,_e=Ae?a.value():a;return C||(C=new Vr),k(Ne,_e,d,E,C)}}return me?(C||(C=new Vr),VO(o,a,d,E,k,C)):!1}function mO(o){return vt(o)&&Gt(o)==at}function Uu(o,a,d,E){var k=d.length,C=k,L=!E;if(o==null)return!C;for(o=nt(o);k--;){var B=d[k];if(L&&B[2]?B[1]!==o[B[0]]:!(B[0]in o))return!1}for(;++k<C;){B=d[k];var G=B[0],oe=o[G],se=B[1];if(L&&B[2]){if(oe===r&&!(G in o))return!1}else{var ce=new Vr;if(E)var me=E(oe,se,G,o,a,ce);if(!(me===r?ds(se,oe,v|y,E,ce):me))return!1}}return!0}function Tg(o){if(!pt(o)||QO(o))return!1;var a=In(o)?m_:nn;return a.test(Ri(o))}function bO(o){return vt(o)&&Xt(o)==kr}function yO(o){return vt(o)&&Gt(o)==Lt}function wO(o){return vt(o)&&El(o.length)&&!!lt[Xt(o)]}function Rg(o){return typeof o=="function"?o:o==null?or:typeof o=="object"?Pe(o)?Ig(o[0],o[1]):Pg(o):Jv(o)}function qu(o){if(!hs(o))return E_(o);var a=[];for(var d in nt(o))Ue.call(o,d)&&d!="constructor"&&a.push(d);return a}function xO(o){if(!pt(o))return nk(o);var a=hs(o),d=[];for(var E in o)E=="constructor"&&(a||!Ue.call(o,E))||d.push(E);return d}function Gu(o,a){return o<a}function Cg(o,a){var d=-1,E=nr(o)?J(o.length):[];return Jn(o,function(k,C,L){E[++d]=a(k,C,L)}),E}function Pg(o){var a=ld(o);return a.length==1&&a[0][2]?dv(a[0][0],a[0][1]):function(d){return d===o||Uu(d,o,a)}}function Ig(o,a){return ud(o)&&uv(a)?dv(Ur(o),a):function(d){var E=xd(d,o);return E===r&&E===a?Sd(d,o):ds(a,E,v|y)}}function al(o,a,d,E,k){o!==a&&Hu(a,function(C,L){if(k||(k=new Vr),pt(C))SO(o,a,L,d,al,E,k);else{var B=E?E(fd(o,L),C,L+"",o,a,k):r;B===r&&(B=C),ju(o,L,B)}},ir)}function SO(o,a,d,E,k,C,L){var B=fd(o,d),G=fd(a,d),oe=L.get(G);if(oe){ju(o,d,oe);return}var se=C?C(B,G,d+"",o,a,L):r,ce=se===r;if(ce){var me=Pe(G),Se=!me&&ri(G),Ae=!me&&!Se&&ho(G);se=G,me||Se||Ae?Pe(B)?se=B:mt(B)?se=rr(B):Se?(ce=!1,se=Vg(G,!0)):Ae?(ce=!1,se=Ug(G,!0)):se=[]:vs(G)||Ci(G)?(se=B,Ci(B)?se=Hv(B):(!pt(B)||In(B))&&(se=cv(G))):ce=!1}ce&&(L.set(G,se),k(se,G,E,C,L),L.delete(G)),ju(o,d,se)}function Ng(o,a){var d=o.length;if(d)return a+=a<0?d:0,Pn(a,d)?o[a]:r}function Mg(o,a,d){a.length?a=ut(a,function(C){return Pe(C)?function(L){return Ai(L,C.length===1?C[0]:C)}:C}):a=[or];var E=-1;a=ut(a,hr(ke()));var k=Cg(o,function(C,L,B){var G=ut(a,function(oe){return oe(C)});return{criteria:G,index:++E,value:C}});return KE(k,function(C,L){return DO(C,L,d)})}function EO(o,a){return Dg(o,a,function(d,E){return Sd(o,E)})}function Dg(o,a,d){for(var E=-1,k=a.length,C={};++E<k;){var L=a[E],B=Ai(o,L);d(B,L)&&fs(C,ei(L,o),B)}return C}function _O(o){return function(a){return Ai(a,o)}}function Zu(o,a,d,E){var k=E?ZE:ro,C=-1,L=a.length,B=o;for(o===a&&(a=rr(a)),d&&(B=ut(o,hr(d)));++C<L;)for(var G=0,oe=a[C],se=d?d(oe):oe;(G=k(B,se,G,E))>-1;)B!==o&&Xa.call(B,G,1),Xa.call(o,G,1);return o}function Lg(o,a){for(var d=o?a.length:0,E=d-1;d--;){var k=a[d];if(d==E||k!==C){var C=k;Pn(k)?Xa.call(o,k,1):Ju(o,k)}}return o}function Ku(o,a){return o+el(vg()*(a-o+1))}function OO(o,a,d,E){for(var k=-1,C=At(Qa((a-o)/(d||1)),0),L=J(C);C--;)L[E?C:++k]=o,o+=d;return L}function Yu(o,a){var d="";if(!o||a<1||a>ve)return d;do a%2&&(d+=o),a=el(a/2),a&&(o+=o);while(a);return d}function Me(o,a){return pd(fv(o,a,or),o+"")}function kO(o){return yg(go(o))}function AO(o,a){var d=go(o);return ml(d,ki(a,0,d.length))}function fs(o,a,d,E){if(!pt(o))return o;a=ei(a,o);for(var k=-1,C=a.length,L=C-1,B=o;B!=null&&++k<C;){var G=Ur(a[k]),oe=d;if(G==="__proto__"||G==="constructor"||G==="prototype")return o;if(k!=L){var se=B[G];oe=E?E(se,G,B):r,oe===r&&(oe=pt(se)?se:Pn(a[k+1])?[]:{})}ls(B,G,oe),B=B[G]}return o}var zg=tl?function(o,a){return tl.set(o,a),o}:or,TO=Ja?function(o,a){return Ja(o,"toString",{configurable:!0,enumerable:!1,value:_d(a),writable:!0})}:or;function RO(o){return ml(go(o))}function Ir(o,a,d){var E=-1,k=o.length;a<0&&(a=-a>k?0:k+a),d=d>k?k:d,d<0&&(d+=k),k=a>d?0:d-a>>>0,a>>>=0;for(var C=J(k);++E<k;)C[E]=o[E+a];return C}function CO(o,a){var d;return Jn(o,function(E,k,C){return d=a(E,k,C),!d}),!!d}function ll(o,a,d){var E=0,k=o==null?E:o.length;if(typeof a=="number"&&a===a&&k<=X){for(;E<k;){var C=E+k>>>1,L=o[C];L!==null&&!vr(L)&&(d?L<=a:L<a)?E=C+1:k=C}return k}return Xu(o,a,or,d)}function Xu(o,a,d,E){var k=0,C=o==null?0:o.length;if(C===0)return 0;a=d(a);for(var L=a!==a,B=a===null,G=vr(a),oe=a===r;k<C;){var se=el((k+C)/2),ce=d(o[se]),me=ce!==r,Se=ce===null,Ae=ce===ce,Ne=vr(ce);if(L)var _e=E||Ae;else oe?_e=Ae&&(E||me):B?_e=Ae&&me&&(E||!Se):G?_e=Ae&&me&&!Se&&(E||!Ne):Se||Ne?_e=!1:_e=E?ce<=a:ce<a;_e?k=se+1:C=se}return qt(C,Q)}function $g(o,a){for(var d=-1,E=o.length,k=0,C=[];++d<E;){var L=o[d],B=a?a(L):L;if(!d||!qr(B,G)){var G=B;C[k++]=L===0?0:L}}return C}function jg(o){return typeof o=="number"?o:vr(o)?W:+o}function gr(o){if(typeof o=="string")return o;if(Pe(o))return ut(o,gr)+"";if(vr(o))return mg?mg.call(o):"";var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Qn(o,a,d){var E=-1,k=Ha,C=o.length,L=!0,B=[],G=B;if(d)L=!1,k=ku;else if(C>=i){var oe=a?null:HO(o);if(oe)return Ba(oe);L=!1,k=rs,G=new Oi}else G=a?[]:B;e:for(;++E<C;){var se=o[E],ce=a?a(se):se;if(se=d||se!==0?se:0,L&&ce===ce){for(var me=G.length;me--;)if(G[me]===ce)continue e;a&&G.push(ce),B.push(se)}else k(G,ce,d)||(G!==B&&G.push(ce),B.push(se))}return B}function Ju(o,a){a=ei(a,o);var d=-1,E=a.length;if(!E)return!0;for(;++d<E;){var k=Ur(a[d]);if(k==="__proto__"&&!Ue.call(o,"__proto__")||(k==="constructor"||k==="prototype")&&d<E-1)return!1}var C=pv(o,a);return C==null||delete C[Ur(Nr(a))]}function Fg(o,a,d,E){return fs(o,a,d(Ai(o,a)),E)}function cl(o,a,d,E){for(var k=o.length,C=E?k:-1;(E?C--:++C<k)&&a(o[C],C,o););return d?Ir(o,E?0:C,E?C+1:k):Ir(o,E?C+1:0,E?k:C)}function Hg(o,a){var d=o;return d instanceof ze&&(d=d.value()),Au(a,function(E,k){return k.func.apply(k.thisArg,Kn([E],k.args))},d)}function Qu(o,a,d){var E=o.length;if(E<2)return E?Qn(o[0]):[];for(var k=-1,C=J(E);++k<E;)for(var L=o[k],B=-1;++B<E;)B!=k&&(C[k]=cs(C[k]||L,o[B],a,d));return Qn(jt(C,1),a,d)}function Wg(o,a,d){for(var E=-1,k=o.length,C=a.length,L={};++E<k;){var B=E<C?a[E]:r;d(L,o[E],B)}return L}function ed(o){return mt(o)?o:[]}function td(o){return typeof o=="function"?o:or}function ei(o,a){return Pe(o)?o:ud(o,a)?[o]:mv(qe(o))}var PO=Me;function ti(o,a,d){var E=o.length;return d=d===r?E:d,!a&&d>=E?o:Ir(o,a,d)}var Bg=b_||function(o){return $t.clearTimeout(o)};function Vg(o,a){if(a)return o.slice();var d=o.length,E=dg?dg(d):new o.constructor(d);return o.copy(E),E}function rd(o){var a=new o.constructor(o.byteLength);return new Ka(a).set(new Ka(o)),a}function IO(o,a){var d=a?rd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.byteLength)}function NO(o){var a=new o.constructor(o.source,kn.exec(o));return a.lastIndex=o.lastIndex,a}function MO(o){return as?nt(as.call(o)):{}}function Ug(o,a){var d=a?rd(o.buffer):o.buffer;return new o.constructor(d,o.byteOffset,o.length)}function qg(o,a){if(o!==a){var d=o!==r,E=o===null,k=o===o,C=vr(o),L=a!==r,B=a===null,G=a===a,oe=vr(a);if(!B&&!oe&&!C&&o>a||C&&L&&G&&!B&&!oe||E&&L&&G||!d&&G||!k)return 1;if(!E&&!C&&!oe&&o<a||oe&&d&&k&&!E&&!C||B&&d&&k||!L&&k||!G)return-1}return 0}function DO(o,a,d){for(var E=-1,k=o.criteria,C=a.criteria,L=k.length,B=d.length;++E<L;){var G=qg(k[E],C[E]);if(G){if(E>=B)return G;var oe=d[E];return G*(oe=="desc"?-1:1)}}return o.index-a.index}function Gg(o,a,d,E){for(var k=-1,C=o.length,L=d.length,B=-1,G=a.length,oe=At(C-L,0),se=J(G+oe),ce=!E;++B<G;)se[B]=a[B];for(;++k<L;)(ce||k<C)&&(se[d[k]]=o[k]);for(;oe--;)se[B++]=o[k++];return se}function Zg(o,a,d,E){for(var k=-1,C=o.length,L=-1,B=d.length,G=-1,oe=a.length,se=At(C-B,0),ce=J(se+oe),me=!E;++k<se;)ce[k]=o[k];for(var Se=k;++G<oe;)ce[Se+G]=a[G];for(;++L<B;)(me||k<C)&&(ce[Se+d[L]]=o[k++]);return ce}function rr(o,a){var d=-1,E=o.length;for(a||(a=J(E));++d<E;)a[d]=o[d];return a}function ln(o,a,d,E){var k=!d;d||(d={});for(var C=-1,L=a.length;++C<L;){var B=a[C],G=E?E(d[B],o[B],B,d,o):r;G===r&&(G=o[B]),k?sn(d,B,G):ls(d,B,G)}return d}function LO(o,a){return ln(o,cd(o),a)}function zO(o,a){return ln(o,av(o),a)}function ul(o,a){return function(d,E){var k=Pe(d)?WE:oO,C=a?a():{};return k(d,o,ke(E,2),C)}}function uo(o){return Me(function(a,d){var E=-1,k=d.length,C=k>1?d[k-1]:r,L=k>2?d[2]:r;for(C=o.length>3&&typeof C=="function"?(k--,C):r,L&&Jt(d[0],d[1],L)&&(C=k<3?r:C,k=1),a=nt(a);++E<k;){var B=d[E];B&&o(a,B,E,C)}return a})}function Kg(o,a){return function(d,E){if(d==null)return d;if(!nr(d))return o(d,E);for(var k=d.length,C=a?k:-1,L=nt(d);(a?C--:++C<k)&&E(L[C],C,L)!==!1;);return d}}function Yg(o){return function(a,d,E){for(var k=-1,C=nt(a),L=E(a),B=L.length;B--;){var G=L[o?B:++k];if(d(C[G],G,C)===!1)break}return a}}function $O(o,a,d){var E=a&m,k=ps(o);function C(){var L=this&&this!==$t&&this instanceof C?k:o;return L.apply(E?d:this,arguments)}return C}function Xg(o){return function(a){a=qe(a);var d=no(a)?Br(a):r,E=d?d[0]:a.charAt(0),k=d?ti(d,1).join(""):a.slice(1);return E[o]()+k}}function fo(o){return function(a){return Au(Yv(Kv(a).replace(TE,"")),o,"")}}function ps(o){return function(){var a=arguments;switch(a.length){case 0:return new o;case 1:return new o(a[0]);case 2:return new o(a[0],a[1]);case 3:return new o(a[0],a[1],a[2]);case 4:return new o(a[0],a[1],a[2],a[3]);case 5:return new o(a[0],a[1],a[2],a[3],a[4]);case 6:return new o(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new o(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var d=co(o.prototype),E=o.apply(d,a);return pt(E)?E:d}}function jO(o,a,d){var E=ps(o);function k(){for(var C=arguments.length,L=J(C),B=C,G=po(k);B--;)L[B]=arguments[B];var oe=C<3&&L[0]!==G&&L[C-1]!==G?[]:Yn(L,G);if(C-=oe.length,C<d)return rv(o,a,dl,k.placeholder,r,L,oe,r,r,d-C);var se=this&&this!==$t&&this instanceof k?E:o;return fr(se,this,L)}return k}function Jg(o){return function(a,d,E){var k=nt(a);if(!nr(a)){var C=ke(d,3);a=It(a),d=function(B){return C(k[B],B,k)}}var L=o(a,d,E);return L>-1?k[C?a[L]:L]:r}}function Qg(o){return Cn(function(a){var d=a.length,E=d,k=Cr.prototype.thru;for(o&&a.reverse();E--;){var C=a[E];if(typeof C!="function")throw new Rr(l);if(k&&!L&&gl(C)=="wrapper")var L=new Cr([],!0)}for(E=L?E:d;++E<d;){C=a[E];var B=gl(C),G=B=="wrapper"?ad(C):r;G&&dd(G[0])&&G[1]==(P|O|R|z)&&!G[4].length&&G[9]==1?L=L[gl(G[0])].apply(L,G[3]):L=C.length==1&&dd(C)?L[B]():L.thru(C)}return function(){var oe=arguments,se=oe[0];if(L&&oe.length==1&&Pe(se))return L.plant(se).value();for(var ce=0,me=d?a[ce].apply(this,oe):se;++ce<d;)me=a[ce].call(this,me);return me}})}function dl(o,a,d,E,k,C,L,B,G,oe){var se=a&P,ce=a&m,me=a&w,Se=a&(O|_),Ae=a&U,Ne=me?r:ps(o);function _e(){for(var Le=arguments.length,$e=J(Le),mr=Le;mr--;)$e[mr]=arguments[mr];if(Se)var Qt=po(_e),br=XE($e,Qt);if(E&&($e=Gg($e,E,k,Se)),C&&($e=Zg($e,C,L,Se)),Le-=br,Se&&Le<oe){var bt=Yn($e,Qt);return rv(o,a,dl,_e.placeholder,d,$e,bt,B,G,oe-Le)}var Gr=ce?d:this,Mn=me?Gr[o]:o;return Le=$e.length,B?$e=ok($e,B):Ae&&Le>1&&$e.reverse(),se&&G<Le&&($e.length=G),this&&this!==$t&&this instanceof _e&&(Mn=Ne||ps(Mn)),Mn.apply(Gr,$e)}return _e}function ev(o,a){return function(d,E){return pO(d,o,a(E),{})}}function fl(o,a){return function(d,E){var k;if(d===r&&E===r)return a;if(d!==r&&(k=d),E!==r){if(k===r)return E;typeof d=="string"||typeof E=="string"?(d=gr(d),E=gr(E)):(d=jg(d),E=jg(E)),k=o(d,E)}return k}}function nd(o){return Cn(function(a){return a=ut(a,hr(ke())),Me(function(d){var E=this;return o(a,function(k){return fr(k,E,d)})})})}function pl(o,a){a=a===r?" ":gr(a);var d=a.length;if(d<2)return d?Yu(a,o):a;var E=Yu(a,Qa(o/io(a)));return no(a)?ti(Br(E),0,o).join(""):E.slice(0,o)}function FO(o,a,d,E){var k=a&m,C=ps(o);function L(){for(var B=-1,G=arguments.length,oe=-1,se=E.length,ce=J(se+G),me=this&&this!==$t&&this instanceof L?C:o;++oe<se;)ce[oe]=E[oe];for(;G--;)ce[oe++]=arguments[++B];return fr(me,k?d:this,ce)}return L}function tv(o){return function(a,d,E){return E&&typeof E!="number"&&Jt(a,d,E)&&(d=E=r),a=Nn(a),d===r?(d=a,a=0):d=Nn(d),E=E===r?a<d?1:-1:Nn(E),OO(a,d,E,o)}}function hl(o){return function(a,d){return typeof a=="string"&&typeof d=="string"||(a=Mr(a),d=Mr(d)),o(a,d)}}function rv(o,a,d,E,k,C,L,B,G,oe){var se=a&O,ce=se?L:r,me=se?r:L,Se=se?C:r,Ae=se?r:C;a|=se?R:H,a&=~(se?H:R),a&x||(a&=-4);var Ne=[o,a,k,Se,ce,Ae,me,B,G,oe],_e=d.apply(r,Ne);return dd(o)&&hv(_e,Ne),_e.placeholder=E,gv(_e,o,a)}function id(o){var a=kt[o];return function(d,E){if(d=Mr(d),E=E==null?0:qt(Ie(E),292),E&&gg(d)){var k=(qe(d)+"e").split("e"),C=a(k[0]+"e"+(+k[1]+E));return k=(qe(C)+"e").split("e"),+(k[0]+"e"+(+k[1]-E))}return a(d)}}var HO=ao&&1/Ba(new ao([,-0]))[1]==Y?function(o){return new ao(o)}:Ad;function nv(o){return function(a){var d=Gt(a);return d==at?Mu(a):d==Lt?i_(a):YE(a,o(a))}}function Rn(o,a,d,E,k,C,L,B){var G=a&w;if(!G&&typeof o!="function")throw new Rr(l);var oe=E?E.length:0;if(oe||(a&=-97,E=k=r),L=L===r?L:At(Ie(L),0),B=B===r?B:Ie(B),oe-=k?k.length:0,a&H){var se=E,ce=k;E=k=r}var me=G?r:ad(o),Se=[o,a,d,E,k,se,ce,C,L,B];if(me&&rk(Se,me),o=Se[0],a=Se[1],d=Se[2],E=Se[3],k=Se[4],B=Se[9]=Se[9]===r?G?0:o.length:At(Se[9]-oe,0),!B&&a&(O|_)&&(a&=-25),!a||a==m)var Ae=$O(o,a,d);else a==O||a==_?Ae=jO(o,a,B):(a==R||a==(m|R))&&!k.length?Ae=FO(o,a,d,E):Ae=dl.apply(r,Se);var Ne=me?zg:hv;return gv(Ne(Ae,Se),o,a)}function iv(o,a,d,E){return o===r||qr(o,so[d])&&!Ue.call(E,d)?a:o}function ov(o,a,d,E,k,C){return pt(o)&&pt(a)&&(C.set(a,o),al(o,a,r,ov,C),C.delete(a)),o}function WO(o){return vs(o)?r:o}function sv(o,a,d,E,k,C){var L=d&v,B=o.length,G=a.length;if(B!=G&&!(L&&G>B))return!1;var oe=C.get(o),se=C.get(a);if(oe&&se)return oe==a&&se==o;var ce=-1,me=!0,Se=d&y?new Oi:r;for(C.set(o,a),C.set(a,o);++ce<B;){var Ae=o[ce],Ne=a[ce];if(E)var _e=L?E(Ne,Ae,ce,a,o,C):E(Ae,Ne,ce,o,a,C);if(_e!==r){if(_e)continue;me=!1;break}if(Se){if(!Tu(a,function(Le,$e){if(!rs(Se,$e)&&(Ae===Le||k(Ae,Le,d,E,C)))return Se.push($e)})){me=!1;break}}else if(!(Ae===Ne||k(Ae,Ne,d,E,C))){me=!1;break}}return C.delete(o),C.delete(a),me}function BO(o,a,d,E,k,C,L){switch(d){case Wr:if(o.byteLength!=a.byteLength||o.byteOffset!=a.byteOffset)return!1;o=o.buffer,a=a.buffer;case Ar:return!(o.byteLength!=a.byteLength||!C(new Ka(o),new Ka(a)));case pe:case he:case Kt:return qr(+o,+a);case Z:return o.name==a.name&&o.message==a.message;case kr:case Ct:return o==a+"";case at:var B=Mu;case Lt:var G=E&v;if(B||(B=Ba),o.size!=a.size&&!G)return!1;var oe=L.get(o);if(oe)return oe==a;E|=y,L.set(o,a);var se=sv(B(o),B(a),E,k,C,L);return L.delete(o),se;case Ut:if(as)return as.call(o)==as.call(a)}return!1}function VO(o,a,d,E,k,C){var L=d&v,B=od(o),G=B.length,oe=od(a),se=oe.length;if(G!=se&&!L)return!1;for(var ce=G;ce--;){var me=B[ce];if(!(L?me in a:Ue.call(a,me)))return!1}var Se=C.get(o),Ae=C.get(a);if(Se&&Ae)return Se==a&&Ae==o;var Ne=!0;C.set(o,a),C.set(a,o);for(var _e=L;++ce<G;){me=B[ce];var Le=o[me],$e=a[me];if(E)var mr=L?E($e,Le,me,a,o,C):E(Le,$e,me,o,a,C);if(!(mr===r?Le===$e||k(Le,$e,d,E,C):mr)){Ne=!1;break}_e||(_e=me=="constructor")}if(Ne&&!_e){var Qt=o.constructor,br=a.constructor;Qt!=br&&"constructor"in o&&"constructor"in a&&!(typeof Qt=="function"&&Qt instanceof Qt&&typeof br=="function"&&br instanceof br)&&(Ne=!1)}return C.delete(o),C.delete(a),Ne}function Cn(o){return pd(fv(o,r,xv),o+"")}function od(o){return kg(o,It,cd)}function sd(o){return kg(o,ir,av)}var ad=tl?function(o){return tl.get(o)}:Ad;function gl(o){for(var a=o.name+"",d=lo[a],E=Ue.call(lo,a)?d.length:0;E--;){var k=d[E],C=k.func;if(C==null||C==o)return k.name}return a}function po(o){var a=Ue.call(T,"placeholder")?T:o;return a.placeholder}function ke(){var o=T.iteratee||Od;return o=o===Od?Rg:o,arguments.length?o(arguments[0],arguments[1]):o}function vl(o,a){var d=o.__data__;return JO(a)?d[typeof a=="string"?"string":"hash"]:d.map}function ld(o){for(var a=It(o),d=a.length;d--;){var E=a[d],k=o[E];a[d]=[E,k,uv(k)]}return a}function Ti(o,a){var d=t_(o,a);return Tg(d)?d:r}function UO(o){var a=Ue.call(o,Ei),d=o[Ei];try{o[Ei]=r;var E=!0}catch{}var k=Ga.call(o);return E&&(a?o[Ei]=d:delete o[Ei]),k}var cd=Lu?function(o){return o==null?[]:(o=nt(o),Zn(Lu(o),function(a){return pg.call(o,a)}))}:Td,av=Lu?function(o){for(var a=[];o;)Kn(a,cd(o)),o=Ya(o);return a}:Td,Gt=Xt;(zu&&Gt(new zu(new ArrayBuffer(1)))!=Wr||is&&Gt(new is)!=at||$u&&Gt($u.resolve())!=bi||ao&&Gt(new ao)!=Lt||os&&Gt(new os)!=en)&&(Gt=function(o){var a=Xt(o),d=a==ur?o.constructor:r,E=d?Ri(d):"";if(E)switch(E){case A_:return Wr;case T_:return at;case R_:return bi;case C_:return Lt;case P_:return en}return a});function qO(o,a,d){for(var E=-1,k=d.length;++E<k;){var C=d[E],L=C.size;switch(C.type){case"drop":o+=L;break;case"dropRight":a-=L;break;case"take":a=qt(a,o+L);break;case"takeRight":o=At(o,a-L);break}}return{start:o,end:a}}function GO(o){var a=o.match(mu);return a?a[1].split(He):[]}function lv(o,a,d){a=ei(a,o);for(var E=-1,k=a.length,C=!1;++E<k;){var L=Ur(a[E]);if(!(C=o!=null&&d(o,L)))break;o=o[L]}return C||++E!=k?C:(k=o==null?0:o.length,!!k&&El(k)&&Pn(L,k)&&(Pe(o)||Ci(o)))}function ZO(o){var a=o.length,d=new o.constructor(a);return a&&typeof o[0]=="string"&&Ue.call(o,"index")&&(d.index=o.index,d.input=o.input),d}function cv(o){return typeof o.constructor=="function"&&!hs(o)?co(Ya(o)):{}}function KO(o,a,d){var E=o.constructor;switch(a){case Ar:return rd(o);case pe:case he:return new E(+o);case Wr:return IO(o,d);case dr:case Ko:case Yo:case tr:case xi:case Xo:case Ki:case Yi:case Jo:return Ug(o,d);case at:return new E;case Kt:case Ct:return new E(o);case kr:return NO(o);case Lt:return new E;case Ut:return MO(o)}}function YO(o,a){var d=a.length;if(!d)return o;var E=d-1;return a[E]=(d>1?"& ":"")+a[E],a=a.join(d>2?", ":" "),o.replace(za,`{
233
233
  /* [wrapped with `+a+`] */
234
- `)}function XO(o){return Ie(o)||Ii(o)||!!(ug&&o&&o[ug])}function Rn(o,a){var d=typeof o;return a=a??ve,!!a&&(d=="number"||d!="symbol"&&cE.test(o))&&o>-1&&o%1==0&&o<a}function Xt(o,a,d){if(!pt(d))return!1;var E=typeof a;return(E=="number"?ir(d)&&Rn(a,d.length):E=="string"&&a in d)?Ur(d[a],o):!1}function od(o,a){if(Ie(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||mr(o)?!0:pu.test(o)||!qn.test(o)||a!=null&&o in nt(a)}function JO(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function sd(o){var a=hl(o),d=T[a];if(typeof d!="function"||!(a in ze.prototype))return!1;if(o===d)return!0;var E=rd(d);return!!E&&o===E[0]}function QO(o){return!!sg&&sg in o}var ek=Va?Cn:_d;function gs(o){var a=o&&o.constructor,d=typeof a=="function"&&a.prototype||so;return o===d}function sv(o){return o===o&&!pt(o)}function av(o,a){return function(d){return d==null?!1:d[o]===a&&(a!==r||o in nt(d))}}function tk(o){var a=wl(o,function(E){return d.size===g&&d.clear(),E}),d=a.cache;return a}function rk(o,a){var d=o[1],E=a[1],k=d|E,C=k<(m|w|I),L=E==I&&d==O||E==I&&d==$&&o[7].length<=a[8]||E==(I|$)&&a[7].length<=a[8]&&d==O;if(!(C||L))return o;E&m&&(o[2]=a[2],k|=d&m?0:x);var B=a[3];if(B){var G=o[3];o[3]=G?Wg(G,B,a[4]):B,o[4]=G?Yn(o[3],p):a[4]}return B=a[5],B&&(G=o[5],o[5]=G?Vg(G,B,a[6]):B,o[6]=G?Yn(o[5],p):a[6]),B=a[7],B&&(o[7]=B),E&I&&(o[8]=o[8]==null?a[8]:Gt(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=k,o}function nk(o){var a=[];if(o!=null)for(var d in nt(o))a.push(d);return a}function ik(o){return qa.call(o)}function lv(o,a,d){return a=kt(a===r?o.length-1:a,0),function(){for(var E=arguments,k=-1,C=kt(E.length-a,0),L=Q(C);++k<C;)L[k]=E[a+k];k=-1;for(var B=Q(a+1);++k<a;)B[k]=E[k];return B[a]=d(L),pr(o,this,B)}}function cv(o,a){return a.length<2?o:Ti(o,Ir(a,0,-1))}function ok(o,a){for(var d=o.length,E=Gt(a.length,d),k=nr(o);E--;){var C=a[E];o[E]=Rn(C,d)?k[C]:r}return o}function ad(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var uv=fv(Ng),vs=w_||function(o,a){return $t.setTimeout(o,a)},ld=fv(TO);function dv(o,a,d){var E=a+"";return ld(o,YO(E,sk(GO(E),d)))}function fv(o){var a=0,d=0;return function(){var E=__(),k=F-(E-d);if(d=E,k>0){if(++a>=D)return arguments[0]}else a=0;return o.apply(r,arguments)}}function vl(o,a){var d=-1,E=o.length,k=E-1;for(a=a===r?E:a;++d<a;){var C=Vu(d,k),L=o[C];o[C]=o[d],o[d]=L}return o.length=a,o}var pv=tk(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(xi,function(d,E,k,C){a.push(k?C.replace(tn,"$1"):E||d)}),a});function Vr(o){if(typeof o=="string"||mr(o))return o;var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Ci(o){if(o!=null){try{return Ua.call(o)}catch{}try{return o+""}catch{}}return""}function sk(o,a){return hr(oe,function(d){var E="_."+d[0];a&d[1]&&!Fa(o,E)&&o.push(E)}),o.sort()}function hv(o){if(o instanceof ze)return o.clone();var a=new Rr(o.__wrapped__,o.__chain__);return a.__actions__=nr(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function ak(o,a,d){(d?Xt(o,a,d):a===r)?a=1:a=kt(Pe(a),0);var E=o==null?0:o.length;if(!E||a<1)return[];for(var k=0,C=0,L=Q(Ja(E/a));k<E;)L[C++]=Ir(o,k,k+=a);return L}function lk(o){for(var a=-1,d=o==null?0:o.length,E=0,k=[];++a<d;){var C=o[a];C&&(k[E++]=C)}return k}function ck(){var o=arguments.length;if(!o)return[];for(var a=Q(o-1),d=arguments[0],E=o;E--;)a[E-1]=arguments[E];return Kn(Ie(d)?nr(d):[d],jt(a,1))}var uk=Me(function(o,a){return mt(o)?us(o,jt(a,1,mt,!0)):[]}),dk=Me(function(o,a){var d=Pr(a);return mt(d)&&(d=r),mt(o)?us(o,jt(a,1,mt,!0),Oe(d,2)):[]}),fk=Me(function(o,a){var d=Pr(a);return mt(d)&&(d=r),mt(o)?us(o,jt(a,1,mt,!0),r,d):[]});function pk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Pe(a),Ir(o,a<0?0:a,E)):[]}function hk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Pe(a),a=E-a,Ir(o,0,a<0?0:a)):[]}function gk(o,a){return o&&o.length?ll(o,Oe(a,3),!0,!0):[]}function vk(o,a){return o&&o.length?ll(o,Oe(a,3),!0):[]}function mk(o,a,d,E){var k=o==null?0:o.length;return k?(d&&typeof d!="number"&&Xt(o,a,d)&&(d=0,E=k),cO(o,a,d,E)):[]}function gv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Pe(d);return k<0&&(k=kt(E+k,0)),Ha(o,Oe(a,3),k)}function vv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E-1;return d!==r&&(k=Pe(d),k=d<0?kt(E+k,0):Gt(k,E-1)),Ha(o,Oe(a,3),k,!0)}function mv(o){var a=o==null?0:o.length;return a?jt(o,1):[]}function bk(o){var a=o==null?0:o.length;return a?jt(o,Y):[]}function yk(o,a){var d=o==null?0:o.length;return d?(a=a===r?1:Pe(a),jt(o,a)):[]}function wk(o){for(var a=-1,d=o==null?0:o.length,E={};++a<d;){var k=o[a];sn(E,k[0],k[1])}return E}function bv(o){return o&&o.length?o[0]:r}function xk(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Pe(d);return k<0&&(k=kt(E+k,0)),ro(o,a,k)}function Sk(o){var a=o==null?0:o.length;return a?Ir(o,0,-1):[]}var Ek=Me(function(o){var a=ut(o,Ku);return a.length&&a[0]===o[0]?ju(a):[]}),_k=Me(function(o){var a=Pr(o),d=ut(o,Ku);return a===Pr(d)?a=r:d.pop(),d.length&&d[0]===o[0]?ju(d,Oe(a,2)):[]}),Ok=Me(function(o){var a=Pr(o),d=ut(o,Ku);return a=typeof a=="function"?a:r,a&&d.pop(),d.length&&d[0]===o[0]?ju(d,r,a):[]});function kk(o,a){return o==null?"":S_.call(o,a)}function Pr(o){var a=o==null?0:o.length;return a?o[a-1]:r}function Ak(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E;return d!==r&&(k=Pe(d),k=k<0?kt(E+k,0):Gt(k,E-1)),a===a?s_(o,a,k):Ha(o,Jh,k,!0)}function Tk(o,a){return o&&o.length?Rg(o,Pe(a)):r}var Rk=Me(yv);function yv(o,a){return o&&o.length&&a&&a.length?Wu(o,a):o}function Ck(o,a,d){return o&&o.length&&a&&a.length?Wu(o,a,Oe(d,2)):o}function Ik(o,a,d){return o&&o.length&&a&&a.length?Wu(o,a,r,d):o}var Pk=Tn(function(o,a){var d=o==null?0:o.length,E=Du(o,a);return Pg(o,ut(a,function(k){return Rn(k,d)?+k:k}).sort(Bg)),E});function Nk(o,a){var d=[];if(!(o&&o.length))return d;var E=-1,k=[],C=o.length;for(a=Oe(a,3);++E<C;){var L=o[E];a(L,E,o)&&(d.push(L),k.push(E))}return Pg(o,k),d}function cd(o){return o==null?o:k_.call(o)}function Mk(o,a,d){var E=o==null?0:o.length;return E?(d&&typeof d!="number"&&Xt(o,a,d)?(a=0,d=E):(a=a==null?0:Pe(a),d=d===r?E:Pe(d)),Ir(o,a,d)):[]}function Dk(o,a){return al(o,a)}function Lk(o,a,d){return qu(o,a,Oe(d,2))}function zk(o,a){var d=o==null?0:o.length;if(d){var E=al(o,a);if(E<d&&Ur(o[E],a))return E}return-1}function $k(o,a){return al(o,a,!0)}function jk(o,a,d){return qu(o,a,Oe(d,2),!0)}function Fk(o,a){var d=o==null?0:o.length;if(d){var E=al(o,a,!0)-1;if(Ur(o[E],a))return E}return-1}function Hk(o){return o&&o.length?Mg(o):[]}function Bk(o,a){return o&&o.length?Mg(o,Oe(a,2)):[]}function Wk(o){var a=o==null?0:o.length;return a?Ir(o,1,a):[]}function Vk(o,a,d){return o&&o.length?(a=d||a===r?1:Pe(a),Ir(o,0,a<0?0:a)):[]}function Uk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Pe(a),a=E-a,Ir(o,a<0?0:a,E)):[]}function qk(o,a){return o&&o.length?ll(o,Oe(a,3),!1,!0):[]}function Gk(o,a){return o&&o.length?ll(o,Oe(a,3)):[]}var Zk=Me(function(o){return Qn(jt(o,1,mt,!0))}),Kk=Me(function(o){var a=Pr(o);return mt(a)&&(a=r),Qn(jt(o,1,mt,!0),Oe(a,2))}),Yk=Me(function(o){var a=Pr(o);return a=typeof a=="function"?a:r,Qn(jt(o,1,mt,!0),r,a)});function Xk(o){return o&&o.length?Qn(o):[]}function Jk(o,a){return o&&o.length?Qn(o,Oe(a,2)):[]}function Qk(o,a){return a=typeof a=="function"?a:r,o&&o.length?Qn(o,r,a):[]}function ud(o){if(!(o&&o.length))return[];var a=0;return o=Zn(o,function(d){if(mt(d))return a=kt(d.length,a),!0}),Au(a,function(d){return ut(o,_u(d))})}function wv(o,a){if(!(o&&o.length))return[];var d=ud(o);return a==null?d:ut(d,function(E){return pr(a,r,E)})}var eA=Me(function(o,a){return mt(o)?us(o,a):[]}),tA=Me(function(o){return Zu(Zn(o,mt))}),rA=Me(function(o){var a=Pr(o);return mt(a)&&(a=r),Zu(Zn(o,mt),Oe(a,2))}),nA=Me(function(o){var a=Pr(o);return a=typeof a=="function"?a:r,Zu(Zn(o,mt),r,a)}),iA=Me(ud);function oA(o,a){return $g(o||[],a||[],cs)}function sA(o,a){return $g(o||[],a||[],ps)}var aA=Me(function(o){var a=o.length,d=a>1?o[a-1]:r;return d=typeof d=="function"?(o.pop(),d):r,wv(o,d)});function xv(o){var a=T(o);return a.__chain__=!0,a}function lA(o,a){return a(o),o}function ml(o,a){return a(o)}var cA=Tn(function(o){var a=o.length,d=a?o[0]:0,E=this.__wrapped__,k=function(C){return Du(C,o)};return a>1||this.__actions__.length||!(E instanceof ze)||!Rn(d)?this.thru(k):(E=E.slice(d,+d+(a?1:0)),E.__actions__.push({func:ml,args:[k],thisArg:r}),new Rr(E,this.__chain__).thru(function(C){return a&&!C.length&&C.push(r),C}))});function uA(){return xv(this)}function dA(){return new Rr(this.value(),this.__chain__)}function fA(){this.__values__===r&&(this.__values__=Dv(this.value()));var o=this.__index__>=this.__values__.length,a=o?r:this.__values__[this.__index__++];return{done:o,value:a}}function pA(){return this}function hA(o){for(var a,d=this;d instanceof rl;){var E=hv(d);E.__index__=0,E.__values__=r,a?k.__wrapped__=E:a=E;var k=E;d=d.__wrapped__}return k.__wrapped__=o,a}function gA(){var o=this.__wrapped__;if(o instanceof ze){var a=o;return this.__actions__.length&&(a=new ze(this)),a=a.reverse(),a.__actions__.push({func:ml,args:[cd],thisArg:r}),new Rr(a,this.__chain__)}return this.thru(cd)}function vA(){return zg(this.__wrapped__,this.__actions__)}var mA=cl(function(o,a,d){Ue.call(o,d)?++o[d]:sn(o,d,1)});function bA(o,a,d){var E=Ie(o)?Yh:lO;return d&&Xt(o,a,d)&&(a=r),E(o,Oe(a,3))}function yA(o,a){var d=Ie(o)?Zn:wg;return d(o,Oe(a,3))}var wA=Zg(gv),xA=Zg(vv);function SA(o,a){return jt(bl(o,a),1)}function EA(o,a){return jt(bl(o,a),Y)}function _A(o,a,d){return d=d===r?1:Pe(d),jt(bl(o,a),d)}function Sv(o,a){var d=Ie(o)?hr:Jn;return d(o,Oe(a,3))}function Ev(o,a){var d=Ie(o)?WE:yg;return d(o,Oe(a,3))}var OA=cl(function(o,a,d){Ue.call(o,d)?o[d].push(a):sn(o,d,[a])});function kA(o,a,d,E){o=ir(o)?o:go(o),d=d&&!E?Pe(d):0;var k=o.length;return d<0&&(d=kt(k+d,0)),El(o)?d<=k&&o.indexOf(a,d)>-1:!!k&&ro(o,a,d)>-1}var AA=Me(function(o,a,d){var E=-1,k=typeof a=="function",C=ir(o)?Q(o.length):[];return Jn(o,function(L){C[++E]=k?pr(a,L,d):ds(L,a,d)}),C}),TA=cl(function(o,a,d){sn(o,d,a)});function bl(o,a){var d=Ie(o)?ut:kg;return d(o,Oe(a,3))}function RA(o,a,d,E){return o==null?[]:(Ie(a)||(a=a==null?[]:[a]),d=E?r:d,Ie(d)||(d=d==null?[]:[d]),Cg(o,a,d))}var CA=cl(function(o,a,d){o[d?0:1].push(a)},function(){return[[],[]]});function IA(o,a,d){var E=Ie(o)?Su:eg,k=arguments.length<3;return E(o,Oe(a,4),d,k,Jn)}function PA(o,a,d){var E=Ie(o)?VE:eg,k=arguments.length<3;return E(o,Oe(a,4),d,k,yg)}function NA(o,a){var d=Ie(o)?Zn:wg;return d(o,xl(Oe(a,3)))}function MA(o){var a=Ie(o)?gg:kO;return a(o)}function DA(o,a,d){(d?Xt(o,a,d):a===r)?a=1:a=Pe(a);var E=Ie(o)?nO:AO;return E(o,a)}function LA(o){var a=Ie(o)?iO:RO;return a(o)}function zA(o){if(o==null)return 0;if(ir(o))return El(o)?io(o):o.length;var a=Zt(o);return a==at||a==zt?o.size:Hu(o).length}function $A(o,a,d){var E=Ie(o)?Eu:CO;return d&&Xt(o,a,d)&&(a=r),E(o,Oe(a,3))}var jA=Me(function(o,a){if(o==null)return[];var d=a.length;return d>1&&Xt(o,a[0],a[1])?a=[]:d>2&&Xt(a[0],a[1],a[2])&&(a=[a[0]]),Cg(o,jt(a,1),[])}),yl=y_||function(){return $t.Date.now()};function FA(o,a){if(typeof a!="function")throw new Tr(l);return o=Pe(o),function(){if(--o<1)return a.apply(this,arguments)}}function _v(o,a,d){return a=d?r:a,a=o&&a==null?o.length:a,An(o,I,r,r,r,r,a)}function Ov(o,a){var d;if(typeof a!="function")throw new Tr(l);return o=Pe(o),function(){return--o>0&&(d=a.apply(this,arguments)),o<=1&&(a=r),d}}var dd=Me(function(o,a,d){var E=m;if(d.length){var k=Yn(d,po(dd));E|=R}return An(o,E,a,d,k)}),kv=Me(function(o,a,d){var E=m|w;if(d.length){var k=Yn(d,po(kv));E|=R}return An(a,E,o,d,k)});function Av(o,a,d){a=d?r:a;var E=An(o,O,r,r,r,r,r,a);return E.placeholder=Av.placeholder,E}function Tv(o,a,d){a=d?r:a;var E=An(o,_,r,r,r,r,r,a);return E.placeholder=Tv.placeholder,E}function Rv(o,a,d){var E,k,C,L,B,G,ie=0,se=!1,ue=!1,me=!0;if(typeof o!="function")throw new Tr(l);a=Nr(a)||0,pt(d)&&(se=!!d.leading,ue="maxWait"in d,C=ue?kt(Nr(d.maxWait)||0,a):C,me="trailing"in d?!!d.trailing:me);function Se(bt){var qr=E,Pn=k;return E=k=r,ie=bt,L=o.apply(Pn,qr),L}function ke(bt){return ie=bt,B=vs(Le,a),se?Se(bt):L}function Ne(bt){var qr=bt-G,Pn=bt-ie,Kv=a-qr;return ue?Gt(Kv,C-Pn):Kv}function _e(bt){var qr=bt-G,Pn=bt-ie;return G===r||qr>=a||qr<0||ue&&Pn>=C}function Le(){var bt=yl();if(_e(bt))return $e(bt);B=vs(Le,Ne(bt))}function $e(bt){return B=r,me&&E?Se(bt):(E=k=r,L)}function br(){B!==r&&jg(B),ie=0,E=G=k=B=r}function Jt(){return B===r?L:$e(yl())}function yr(){var bt=yl(),qr=_e(bt);if(E=arguments,k=this,G=bt,qr){if(B===r)return ke(G);if(ue)return jg(B),B=vs(Le,a),Se(G)}return B===r&&(B=vs(Le,a)),L}return yr.cancel=br,yr.flush=Jt,yr}var HA=Me(function(o,a){return bg(o,1,a)}),BA=Me(function(o,a,d){return bg(o,Nr(a)||0,d)});function WA(o){return An(o,U)}function wl(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Tr(l);var d=function(){var E=arguments,k=a?a.apply(this,E):E[0],C=d.cache;if(C.has(k))return C.get(k);var L=o.apply(this,E);return d.cache=C.set(k,L)||C,L};return d.cache=new(wl.Cache||kn),d}wl.Cache=kn;function xl(o){if(typeof o!="function")throw new Tr(l);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function VA(o){return Ov(2,o)}var UA=IO(function(o,a){a=a.length==1&&Ie(a[0])?ut(a[0],gr(Oe())):ut(jt(a,1),gr(Oe()));var d=a.length;return Me(function(E){for(var k=-1,C=Gt(E.length,d);++k<C;)E[k]=a[k].call(this,E[k]);return pr(o,this,E)})}),fd=Me(function(o,a){var d=Yn(a,po(fd));return An(o,R,r,a,d)}),Cv=Me(function(o,a){var d=Yn(a,po(Cv));return An(o,H,r,a,d)}),qA=Tn(function(o,a){return An(o,$,r,r,r,a)});function GA(o,a){if(typeof o!="function")throw new Tr(l);return a=a===r?a:Pe(a),Me(o,a)}function ZA(o,a){if(typeof o!="function")throw new Tr(l);return a=a==null?0:kt(Pe(a),0),Me(function(d){var E=d[a],k=ti(d,0,a);return E&&Kn(k,E),pr(o,this,k)})}function KA(o,a,d){var E=!0,k=!0;if(typeof o!="function")throw new Tr(l);return pt(d)&&(E="leading"in d?!!d.leading:E,k="trailing"in d?!!d.trailing:k),Rv(o,a,{leading:E,maxWait:a,trailing:k})}function YA(o){return _v(o,1)}function XA(o,a){return fd(Yu(a),o)}function JA(){if(!arguments.length)return[];var o=arguments[0];return Ie(o)?o:[o]}function QA(o){return Cr(o,S)}function eT(o,a){return a=typeof a=="function"?a:r,Cr(o,S,a)}function tT(o){return Cr(o,h|S)}function rT(o,a){return a=typeof a=="function"?a:r,Cr(o,h|S,a)}function nT(o,a){return a==null||mg(o,a,Pt(a))}function Ur(o,a){return o===a||o!==o&&a!==a}var iT=pl($u),oT=pl(function(o,a){return o>=a}),Ii=Eg((function(){return arguments})())?Eg:function(o){return vt(o)&&Ue.call(o,"callee")&&!cg.call(o,"callee")},Ie=Q.isArray,sT=Vh?gr(Vh):hO;function ir(o){return o!=null&&Sl(o.length)&&!Cn(o)}function mt(o){return vt(o)&&ir(o)}function aT(o){return o===!0||o===!1||vt(o)&&Yt(o)==he}var ri=x_||_d,lT=Uh?gr(Uh):gO;function cT(o){return vt(o)&&o.nodeType===1&&!ms(o)}function uT(o){if(o==null)return!0;if(ir(o)&&(Ie(o)||typeof o=="string"||typeof o.splice=="function"||ri(o)||ho(o)||Ii(o)))return!o.length;var a=Zt(o);if(a==at||a==zt)return!o.size;if(gs(o))return!Hu(o).length;for(var d in o)if(Ue.call(o,d))return!1;return!0}function dT(o,a){return fs(o,a)}function fT(o,a,d){d=typeof d=="function"?d:r;var E=d?d(o,a):r;return E===r?fs(o,a,r,d):!!E}function pd(o){if(!vt(o))return!1;var a=Yt(o);return a==Z||a==ye||typeof o.message=="string"&&typeof o.name=="string"&&!ms(o)}function pT(o){return typeof o=="number"&&dg(o)}function Cn(o){if(!pt(o))return!1;var a=Yt(o);return a==Te||a==ge||a==de||a==Lt}function Iv(o){return typeof o=="number"&&o==Pe(o)}function Sl(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ve}function pt(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function vt(o){return o!=null&&typeof o=="object"}var Pv=qh?gr(qh):mO;function hT(o,a){return o===a||Fu(o,a,nd(a))}function gT(o,a,d){return d=typeof d=="function"?d:r,Fu(o,a,nd(a),d)}function vT(o){return Nv(o)&&o!=+o}function mT(o){if(ek(o))throw new Re(s);return _g(o)}function bT(o){return o===null}function yT(o){return o==null}function Nv(o){return typeof o=="number"||vt(o)&&Yt(o)==qt}function ms(o){if(!vt(o)||Yt(o)!=dr)return!1;var a=Ka(o);if(a===null)return!0;var d=Ue.call(a,"constructor")&&a.constructor;return typeof d=="function"&&d instanceof d&&Ua.call(d)==g_}var hd=Gh?gr(Gh):bO;function wT(o){return Iv(o)&&o>=-ve&&o<=ve}var Mv=Zh?gr(Zh):yO;function El(o){return typeof o=="string"||!Ie(o)&&vt(o)&&Yt(o)==Qr}function mr(o){return typeof o=="symbol"||vt(o)&&Yt(o)==Hr}var ho=Kh?gr(Kh):wO;function xT(o){return o===r}function ST(o){return vt(o)&&Zt(o)==fr}function ET(o){return vt(o)&&Yt(o)==er}var _T=pl(Bu),OT=pl(function(o,a){return o<=a});function Dv(o){if(!o)return[];if(ir(o))return El(o)?Br(o):nr(o);if(is&&o[is])return n_(o[is]());var a=Zt(o),d=a==at?Ru:a==zt?Ba:go;return d(o)}function In(o){if(!o)return o===0?o:0;if(o=Nr(o),o===Y||o===-Y){var a=o<0?-1:1;return a*z}return o===o?o:0}function Pe(o){var a=In(o),d=a%1;return a===a?d?a-d:a:0}function Lv(o){return o?Ai(Pe(o),0,X):0}function Nr(o){if(typeof o=="number")return o;if(mr(o))return W;if(pt(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=pt(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=tg(o);var d=Si.test(o);return d||lE.test(o)?FE(o.slice(2),d?2:8):on.test(o)?W:+o}function zv(o){return ln(o,or(o))}function kT(o){return o?Ai(Pe(o),-ve,ve):o===0?o:0}function qe(o){return o==null?"":vr(o)}var AT=uo(function(o,a){if(gs(a)||ir(a)){ln(a,Pt(a),o);return}for(var d in a)Ue.call(a,d)&&cs(o,d,a[d])}),$v=uo(function(o,a){ln(a,or(a),o)}),jv=uo(function(o,a,d,E){ln(a,or(a),o,E)}),gd=uo(function(o,a,d,E){ln(a,Pt(a),o,E)}),TT=Tn(Du);function RT(o,a){var d=co(o);return a==null?d:vg(d,a)}var CT=Me(function(o,a){o=nt(o);var d=-1,E=a.length,k=E>2?a[2]:r;for(k&&Xt(a[0],a[1],k)&&(E=1);++d<E;)for(var C=a[d],L=or(C),B=-1,G=L.length;++B<G;){var ie=L[B],se=o[ie];(se===r||Ur(se,so[ie])&&!Ue.call(o,ie))&&(o[ie]=C[ie])}return o}),IT=Me(function(o){return o.push(r,tv),pr(Fv,r,o)});function PT(o,a){return Xh(o,Oe(a,3),an)}function NT(o,a){return Xh(o,Oe(a,3),zu)}function MT(o,a){return o==null?o:Lu(o,Oe(a,3),or)}function DT(o,a){return o==null?o:xg(o,Oe(a,3),or)}function LT(o,a){return o&&an(o,Oe(a,3))}function zT(o,a){return o&&zu(o,Oe(a,3))}function $T(o){return o==null?[]:ol(o,Pt(o))}function jT(o){return o==null?[]:ol(o,or(o))}function vd(o,a,d){var E=o==null?r:Ti(o,a);return E===r?d:E}function FT(o,a){return o!=null&&iv(o,a,uO)}function md(o,a){return o!=null&&iv(o,a,dO)}var HT=Yg(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=qa.call(a)),o[a]=d},yd(sr)),BT=Yg(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=qa.call(a)),Ue.call(o,a)?o[a].push(d):o[a]=[d]},Oe),WT=Me(ds);function Pt(o){return ir(o)?hg(o):Hu(o)}function or(o){return ir(o)?hg(o,!0):xO(o)}function VT(o,a){var d={};return a=Oe(a,3),an(o,function(E,k,C){sn(d,a(E,k,C),E)}),d}function UT(o,a){var d={};return a=Oe(a,3),an(o,function(E,k,C){sn(d,k,a(E,k,C))}),d}var qT=uo(function(o,a,d){sl(o,a,d)}),Fv=uo(function(o,a,d,E){sl(o,a,d,E)}),GT=Tn(function(o,a){var d={};if(o==null)return d;var E=!1;a=ut(a,function(C){return C=ei(C,o),E||(E=C.length>1),C}),ln(o,td(o),d),E&&(d=Cr(d,h|b|S,BO));for(var k=a.length;k--;)Gu(d,a[k]);return d});function ZT(o,a){return Hv(o,xl(Oe(a)))}var KT=Tn(function(o,a){return o==null?{}:EO(o,a)});function Hv(o,a){if(o==null)return{};var d=ut(td(o),function(E){return[E]});return a=Oe(a),Ig(o,d,function(E,k){return a(E,k[0])})}function YT(o,a,d){a=ei(a,o);var E=-1,k=a.length;for(k||(k=1,o=r);++E<k;){var C=o==null?r:o[Vr(a[E])];C===r&&(E=k,C=d),o=Cn(C)?C.call(o):C}return o}function XT(o,a,d){return o==null?o:ps(o,a,d)}function JT(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:ps(o,a,d,E)}var Bv=Qg(Pt),Wv=Qg(or);function QT(o,a,d){var E=Ie(o),k=E||ri(o)||ho(o);if(a=Oe(a,4),d==null){var C=o&&o.constructor;k?d=E?new C:[]:pt(o)?d=Cn(C)?co(Ka(o)):{}:d={}}return(k?hr:an)(o,function(L,B,G){return a(d,L,B,G)}),d}function eR(o,a){return o==null?!0:Gu(o,a)}function tR(o,a,d){return o==null?o:Lg(o,a,Yu(d))}function rR(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:Lg(o,a,Yu(d),E)}function go(o){return o==null?[]:Tu(o,Pt(o))}function nR(o){return o==null?[]:Tu(o,or(o))}function iR(o,a,d){return d===r&&(d=a,a=r),d!==r&&(d=Nr(d),d=d===d?d:0),a!==r&&(a=Nr(a),a=a===a?a:0),Ai(Nr(o),a,d)}function oR(o,a,d){return a=In(a),d===r?(d=a,a=0):d=In(d),o=Nr(o),fO(o,a,d)}function sR(o,a,d){if(d&&typeof d!="boolean"&&Xt(o,a,d)&&(a=d=r),d===r&&(typeof a=="boolean"?(d=a,a=r):typeof o=="boolean"&&(d=o,o=r)),o===r&&a===r?(o=0,a=1):(o=In(o),a===r?(a=o,o=0):a=In(a)),o>a){var E=o;o=a,a=E}if(d||o%1||a%1){var k=fg();return Gt(o+k*(a-o+jE("1e-"+((k+"").length-1))),a)}return Vu(o,a)}var aR=fo(function(o,a,d){return a=a.toLowerCase(),o+(d?Vv(a):a)});function Vv(o){return bd(qe(o).toLowerCase())}function Uv(o){return o=qe(o),o&&o.replace(uE,JE).replace(RE,"")}function lR(o,a,d){o=qe(o),a=vr(a);var E=o.length;d=d===r?E:Ai(Pe(d),0,E);var k=d;return d-=a.length,d>=0&&o.slice(d,k)==a}function cR(o){return o=qe(o),o&&Qo.test(o)?o.replace(Xo,QE):o}function uR(o){return o=qe(o),o&&es.test(o)?o.replace(Gn,"\\$&"):o}var dR=fo(function(o,a,d){return o+(d?"-":"")+a.toLowerCase()}),fR=fo(function(o,a,d){return o+(d?" ":"")+a.toLowerCase()}),pR=Gg("toLowerCase");function hR(o,a,d){o=qe(o),a=Pe(a);var E=a?io(o):0;if(!a||E>=a)return o;var k=(a-E)/2;return fl(Qa(k),d)+o+fl(Ja(k),d)}function gR(o,a,d){o=qe(o),a=Pe(a);var E=a?io(o):0;return a&&E<a?o+fl(a-E,d):o}function vR(o,a,d){o=qe(o),a=Pe(a);var E=a?io(o):0;return a&&E<a?fl(a-E,d)+o:o}function mR(o,a,d){return d||a==null?a=0:a&&(a=+a),O_(qe(o).replace(ts,""),a||0)}function bR(o,a,d){return(d?Xt(o,a,d):a===r)?a=1:a=Pe(a),Uu(qe(o),a)}function yR(){var o=arguments,a=qe(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var wR=fo(function(o,a,d){return o+(d?"_":"")+a.toLowerCase()});function xR(o,a,d){return d&&typeof d!="number"&&Xt(o,a,d)&&(a=d=r),d=d===r?X:d>>>0,d?(o=qe(o),o&&(typeof a=="string"||a!=null&&!hd(a))&&(a=vr(a),!a&&no(o))?ti(Br(o),0,d):o.split(a,d)):[]}var SR=fo(function(o,a,d){return o+(d?" ":"")+bd(a)});function ER(o,a,d){return o=qe(o),d=d==null?0:Ai(Pe(d),0,o.length),a=vr(a),o.slice(d,d+a.length)==a}function _R(o,a,d){var E=T.templateSettings;d&&Xt(o,a,d)&&(a=r),o=qe(o),a=gd({},a,E,ev);var k=gd({},a.imports,E.imports,ev),C=Pt(k),L=Tu(k,C);hr(C,function(_e){if(kr.test(_e))throw new Re(u)});var B,G,ie=0,se=a.interpolate||za,ue="__p += '",me=Cu((a.escape||za).source+"|"+se.source+"|"+(se===La?rn:za).source+"|"+(a.evaluate||za).source+"|$","g"),Se="//# sourceURL="+(Ue.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ME+"]")+`
235
- `;o.replace(me,function(_e,Le,$e,br,Jt,yr){return $e||($e=br),ue+=o.slice(ie,yr).replace(dE,e_),Le&&(B=!0,ue+=`' +
234
+ `)}function XO(o){return Pe(o)||Ci(o)||!!(hg&&o&&o[hg])}function Pn(o,a){var d=typeof o;return a=a??ve,!!a&&(d=="number"||d!="symbol"&&Gn.test(o))&&o>-1&&o%1==0&&o<a}function Jt(o,a,d){if(!pt(d))return!1;var E=typeof a;return(E=="number"?nr(d)&&Pn(a,d.length):E=="string"&&a in d)?qr(d[a],o):!1}function ud(o,a){if(Pe(o))return!1;var d=typeof o;return d=="number"||d=="symbol"||d=="boolean"||o==null||vr(o)?!0:La.test(o)||!hu.test(o)||a!=null&&o in nt(a)}function JO(o){var a=typeof o;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?o!=="__proto__":o===null}function dd(o){var a=gl(o),d=T[a];if(typeof d!="function"||!(a in ze.prototype))return!1;if(o===d)return!0;var E=ad(d);return!!E&&o===E[0]}function QO(o){return!!ug&&ug in o}var ek=Ua?In:Rd;function hs(o){var a=o&&o.constructor,d=typeof a=="function"&&a.prototype||so;return o===d}function uv(o){return o===o&&!pt(o)}function dv(o,a){return function(d){return d==null?!1:d[o]===a&&(a!==r||o in nt(d))}}function tk(o){var a=xl(o,function(E){return d.size===g&&d.clear(),E}),d=a.cache;return a}function rk(o,a){var d=o[1],E=a[1],k=d|E,C=k<(m|w|P),L=E==P&&d==O||E==P&&d==z&&o[7].length<=a[8]||E==(P|z)&&a[7].length<=a[8]&&d==O;if(!(C||L))return o;E&m&&(o[2]=a[2],k|=d&m?0:x);var B=a[3];if(B){var G=o[3];o[3]=G?Gg(G,B,a[4]):B,o[4]=G?Yn(o[3],p):a[4]}return B=a[5],B&&(G=o[5],o[5]=G?Zg(G,B,a[6]):B,o[6]=G?Yn(o[5],p):a[6]),B=a[7],B&&(o[7]=B),E&P&&(o[8]=o[8]==null?a[8]:qt(o[8],a[8])),o[9]==null&&(o[9]=a[9]),o[0]=a[0],o[1]=k,o}function nk(o){var a=[];if(o!=null)for(var d in nt(o))a.push(d);return a}function ik(o){return Ga.call(o)}function fv(o,a,d){return a=At(a===r?o.length-1:a,0),function(){for(var E=arguments,k=-1,C=At(E.length-a,0),L=J(C);++k<C;)L[k]=E[a+k];k=-1;for(var B=J(a+1);++k<a;)B[k]=E[k];return B[a]=d(L),fr(o,this,B)}}function pv(o,a){return a.length<2?o:Ai(o,Ir(a,0,-1))}function ok(o,a){for(var d=o.length,E=qt(a.length,d),k=rr(o);E--;){var C=a[E];o[E]=Pn(C,d)?k[C]:r}return o}function fd(o,a){if(!(a==="constructor"&&typeof o[a]=="function")&&a!="__proto__")return o[a]}var hv=vv(zg),gs=w_||function(o,a){return $t.setTimeout(o,a)},pd=vv(TO);function gv(o,a,d){var E=a+"";return pd(o,YO(E,sk(GO(E),d)))}function vv(o){var a=0,d=0;return function(){var E=__(),k=F-(E-d);if(d=E,k>0){if(++a>=D)return arguments[0]}else a=0;return o.apply(r,arguments)}}function ml(o,a){var d=-1,E=o.length,k=E-1;for(a=a===r?E:a;++d<a;){var C=Ku(d,k),L=o[C];o[C]=o[d],o[d]=L}return o.length=a,o}var mv=tk(function(o){var a=[];return o.charCodeAt(0)===46&&a.push(""),o.replace(gu,function(d,E,k,C){a.push(k?C.replace(Pt,"$1"):E||d)}),a});function Ur(o){if(typeof o=="string"||vr(o))return o;var a=o+"";return a=="0"&&1/o==-Y?"-0":a}function Ri(o){if(o!=null){try{return qa.call(o)}catch{}try{return o+""}catch{}}return""}function sk(o,a){return pr(ue,function(d){var E="_."+d[0];a&d[1]&&!Ha(o,E)&&o.push(E)}),o.sort()}function bv(o){if(o instanceof ze)return o.clone();var a=new Cr(o.__wrapped__,o.__chain__);return a.__actions__=rr(o.__actions__),a.__index__=o.__index__,a.__values__=o.__values__,a}function ak(o,a,d){(d?Jt(o,a,d):a===r)?a=1:a=At(Ie(a),0);var E=o==null?0:o.length;if(!E||a<1)return[];for(var k=0,C=0,L=J(Qa(E/a));k<E;)L[C++]=Ir(o,k,k+=a);return L}function lk(o){for(var a=-1,d=o==null?0:o.length,E=0,k=[];++a<d;){var C=o[a];C&&(k[E++]=C)}return k}function ck(){var o=arguments.length;if(!o)return[];for(var a=J(o-1),d=arguments[0],E=o;E--;)a[E-1]=arguments[E];return Kn(Pe(d)?rr(d):[d],jt(a,1))}var uk=Me(function(o,a){return mt(o)?cs(o,jt(a,1,mt,!0)):[]}),dk=Me(function(o,a){var d=Nr(a);return mt(d)&&(d=r),mt(o)?cs(o,jt(a,1,mt,!0),ke(d,2)):[]}),fk=Me(function(o,a){var d=Nr(a);return mt(d)&&(d=r),mt(o)?cs(o,jt(a,1,mt,!0),r,d):[]});function pk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Ie(a),Ir(o,a<0?0:a,E)):[]}function hk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Ie(a),a=E-a,Ir(o,0,a<0?0:a)):[]}function gk(o,a){return o&&o.length?cl(o,ke(a,3),!0,!0):[]}function vk(o,a){return o&&o.length?cl(o,ke(a,3),!0):[]}function mk(o,a,d,E){var k=o==null?0:o.length;return k?(d&&typeof d!="number"&&Jt(o,a,d)&&(d=0,E=k),cO(o,a,d,E)):[]}function yv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Ie(d);return k<0&&(k=At(E+k,0)),Wa(o,ke(a,3),k)}function wv(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E-1;return d!==r&&(k=Ie(d),k=d<0?At(E+k,0):qt(k,E-1)),Wa(o,ke(a,3),k,!0)}function xv(o){var a=o==null?0:o.length;return a?jt(o,1):[]}function bk(o){var a=o==null?0:o.length;return a?jt(o,Y):[]}function yk(o,a){var d=o==null?0:o.length;return d?(a=a===r?1:Ie(a),jt(o,a)):[]}function wk(o){for(var a=-1,d=o==null?0:o.length,E={};++a<d;){var k=o[a];sn(E,k[0],k[1])}return E}function Sv(o){return o&&o.length?o[0]:r}function xk(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=d==null?0:Ie(d);return k<0&&(k=At(E+k,0)),ro(o,a,k)}function Sk(o){var a=o==null?0:o.length;return a?Ir(o,0,-1):[]}var Ek=Me(function(o){var a=ut(o,ed);return a.length&&a[0]===o[0]?Vu(a):[]}),_k=Me(function(o){var a=Nr(o),d=ut(o,ed);return a===Nr(d)?a=r:d.pop(),d.length&&d[0]===o[0]?Vu(d,ke(a,2)):[]}),Ok=Me(function(o){var a=Nr(o),d=ut(o,ed);return a=typeof a=="function"?a:r,a&&d.pop(),d.length&&d[0]===o[0]?Vu(d,r,a):[]});function kk(o,a){return o==null?"":S_.call(o,a)}function Nr(o){var a=o==null?0:o.length;return a?o[a-1]:r}function Ak(o,a,d){var E=o==null?0:o.length;if(!E)return-1;var k=E;return d!==r&&(k=Ie(d),k=k<0?At(E+k,0):qt(k,E-1)),a===a?s_(o,a,k):Wa(o,rg,k,!0)}function Tk(o,a){return o&&o.length?Ng(o,Ie(a)):r}var Rk=Me(Ev);function Ev(o,a){return o&&o.length&&a&&a.length?Zu(o,a):o}function Ck(o,a,d){return o&&o.length&&a&&a.length?Zu(o,a,ke(d,2)):o}function Pk(o,a,d){return o&&o.length&&a&&a.length?Zu(o,a,r,d):o}var Ik=Cn(function(o,a){var d=o==null?0:o.length,E=Fu(o,a);return Lg(o,ut(a,function(k){return Pn(k,d)?+k:k}).sort(qg)),E});function Nk(o,a){var d=[];if(!(o&&o.length))return d;var E=-1,k=[],C=o.length;for(a=ke(a,3);++E<C;){var L=o[E];a(L,E,o)&&(d.push(L),k.push(E))}return Lg(o,k),d}function hd(o){return o==null?o:k_.call(o)}function Mk(o,a,d){var E=o==null?0:o.length;return E?(d&&typeof d!="number"&&Jt(o,a,d)?(a=0,d=E):(a=a==null?0:Ie(a),d=d===r?E:Ie(d)),Ir(o,a,d)):[]}function Dk(o,a){return ll(o,a)}function Lk(o,a,d){return Xu(o,a,ke(d,2))}function zk(o,a){var d=o==null?0:o.length;if(d){var E=ll(o,a);if(E<d&&qr(o[E],a))return E}return-1}function $k(o,a){return ll(o,a,!0)}function jk(o,a,d){return Xu(o,a,ke(d,2),!0)}function Fk(o,a){var d=o==null?0:o.length;if(d){var E=ll(o,a,!0)-1;if(qr(o[E],a))return E}return-1}function Hk(o){return o&&o.length?$g(o):[]}function Wk(o,a){return o&&o.length?$g(o,ke(a,2)):[]}function Bk(o){var a=o==null?0:o.length;return a?Ir(o,1,a):[]}function Vk(o,a,d){return o&&o.length?(a=d||a===r?1:Ie(a),Ir(o,0,a<0?0:a)):[]}function Uk(o,a,d){var E=o==null?0:o.length;return E?(a=d||a===r?1:Ie(a),a=E-a,Ir(o,a<0?0:a,E)):[]}function qk(o,a){return o&&o.length?cl(o,ke(a,3),!1,!0):[]}function Gk(o,a){return o&&o.length?cl(o,ke(a,3)):[]}var Zk=Me(function(o){return Qn(jt(o,1,mt,!0))}),Kk=Me(function(o){var a=Nr(o);return mt(a)&&(a=r),Qn(jt(o,1,mt,!0),ke(a,2))}),Yk=Me(function(o){var a=Nr(o);return a=typeof a=="function"?a:r,Qn(jt(o,1,mt,!0),r,a)});function Xk(o){return o&&o.length?Qn(o):[]}function Jk(o,a){return o&&o.length?Qn(o,ke(a,2)):[]}function Qk(o,a){return a=typeof a=="function"?a:r,o&&o.length?Qn(o,r,a):[]}function gd(o){if(!(o&&o.length))return[];var a=0;return o=Zn(o,function(d){if(mt(d))return a=At(d.length,a),!0}),Iu(a,function(d){return ut(o,Ru(d))})}function _v(o,a){if(!(o&&o.length))return[];var d=gd(o);return a==null?d:ut(d,function(E){return fr(a,r,E)})}var eA=Me(function(o,a){return mt(o)?cs(o,a):[]}),tA=Me(function(o){return Qu(Zn(o,mt))}),rA=Me(function(o){var a=Nr(o);return mt(a)&&(a=r),Qu(Zn(o,mt),ke(a,2))}),nA=Me(function(o){var a=Nr(o);return a=typeof a=="function"?a:r,Qu(Zn(o,mt),r,a)}),iA=Me(gd);function oA(o,a){return Wg(o||[],a||[],ls)}function sA(o,a){return Wg(o||[],a||[],fs)}var aA=Me(function(o){var a=o.length,d=a>1?o[a-1]:r;return d=typeof d=="function"?(o.pop(),d):r,_v(o,d)});function Ov(o){var a=T(o);return a.__chain__=!0,a}function lA(o,a){return a(o),o}function bl(o,a){return a(o)}var cA=Cn(function(o){var a=o.length,d=a?o[0]:0,E=this.__wrapped__,k=function(C){return Fu(C,o)};return a>1||this.__actions__.length||!(E instanceof ze)||!Pn(d)?this.thru(k):(E=E.slice(d,+d+(a?1:0)),E.__actions__.push({func:bl,args:[k],thisArg:r}),new Cr(E,this.__chain__).thru(function(C){return a&&!C.length&&C.push(r),C}))});function uA(){return Ov(this)}function dA(){return new Cr(this.value(),this.__chain__)}function fA(){this.__values__===r&&(this.__values__=jv(this.value()));var o=this.__index__>=this.__values__.length,a=o?r:this.__values__[this.__index__++];return{done:o,value:a}}function pA(){return this}function hA(o){for(var a,d=this;d instanceof nl;){var E=bv(d);E.__index__=0,E.__values__=r,a?k.__wrapped__=E:a=E;var k=E;d=d.__wrapped__}return k.__wrapped__=o,a}function gA(){var o=this.__wrapped__;if(o instanceof ze){var a=o;return this.__actions__.length&&(a=new ze(this)),a=a.reverse(),a.__actions__.push({func:bl,args:[hd],thisArg:r}),new Cr(a,this.__chain__)}return this.thru(hd)}function vA(){return Hg(this.__wrapped__,this.__actions__)}var mA=ul(function(o,a,d){Ue.call(o,d)?++o[d]:sn(o,d,1)});function bA(o,a,d){var E=Pe(o)?eg:lO;return d&&Jt(o,a,d)&&(a=r),E(o,ke(a,3))}function yA(o,a){var d=Pe(o)?Zn:_g;return d(o,ke(a,3))}var wA=Jg(yv),xA=Jg(wv);function SA(o,a){return jt(yl(o,a),1)}function EA(o,a){return jt(yl(o,a),Y)}function _A(o,a,d){return d=d===r?1:Ie(d),jt(yl(o,a),d)}function kv(o,a){var d=Pe(o)?pr:Jn;return d(o,ke(a,3))}function Av(o,a){var d=Pe(o)?BE:Eg;return d(o,ke(a,3))}var OA=ul(function(o,a,d){Ue.call(o,d)?o[d].push(a):sn(o,d,[a])});function kA(o,a,d,E){o=nr(o)?o:go(o),d=d&&!E?Ie(d):0;var k=o.length;return d<0&&(d=At(k+d,0)),_l(o)?d<=k&&o.indexOf(a,d)>-1:!!k&&ro(o,a,d)>-1}var AA=Me(function(o,a,d){var E=-1,k=typeof a=="function",C=nr(o)?J(o.length):[];return Jn(o,function(L){C[++E]=k?fr(a,L,d):us(L,a,d)}),C}),TA=ul(function(o,a,d){sn(o,d,a)});function yl(o,a){var d=Pe(o)?ut:Cg;return d(o,ke(a,3))}function RA(o,a,d,E){return o==null?[]:(Pe(a)||(a=a==null?[]:[a]),d=E?r:d,Pe(d)||(d=d==null?[]:[d]),Mg(o,a,d))}var CA=ul(function(o,a,d){o[d?0:1].push(a)},function(){return[[],[]]});function PA(o,a,d){var E=Pe(o)?Au:ig,k=arguments.length<3;return E(o,ke(a,4),d,k,Jn)}function IA(o,a,d){var E=Pe(o)?VE:ig,k=arguments.length<3;return E(o,ke(a,4),d,k,Eg)}function NA(o,a){var d=Pe(o)?Zn:_g;return d(o,Sl(ke(a,3)))}function MA(o){var a=Pe(o)?yg:kO;return a(o)}function DA(o,a,d){(d?Jt(o,a,d):a===r)?a=1:a=Ie(a);var E=Pe(o)?nO:AO;return E(o,a)}function LA(o){var a=Pe(o)?iO:RO;return a(o)}function zA(o){if(o==null)return 0;if(nr(o))return _l(o)?io(o):o.length;var a=Gt(o);return a==at||a==Lt?o.size:qu(o).length}function $A(o,a,d){var E=Pe(o)?Tu:CO;return d&&Jt(o,a,d)&&(a=r),E(o,ke(a,3))}var jA=Me(function(o,a){if(o==null)return[];var d=a.length;return d>1&&Jt(o,a[0],a[1])?a=[]:d>2&&Jt(a[0],a[1],a[2])&&(a=[a[0]]),Mg(o,jt(a,1),[])}),wl=y_||function(){return $t.Date.now()};function FA(o,a){if(typeof a!="function")throw new Rr(l);return o=Ie(o),function(){if(--o<1)return a.apply(this,arguments)}}function Tv(o,a,d){return a=d?r:a,a=o&&a==null?o.length:a,Rn(o,P,r,r,r,r,a)}function Rv(o,a){var d;if(typeof a!="function")throw new Rr(l);return o=Ie(o),function(){return--o>0&&(d=a.apply(this,arguments)),o<=1&&(a=r),d}}var vd=Me(function(o,a,d){var E=m;if(d.length){var k=Yn(d,po(vd));E|=R}return Rn(o,E,a,d,k)}),Cv=Me(function(o,a,d){var E=m|w;if(d.length){var k=Yn(d,po(Cv));E|=R}return Rn(a,E,o,d,k)});function Pv(o,a,d){a=d?r:a;var E=Rn(o,O,r,r,r,r,r,a);return E.placeholder=Pv.placeholder,E}function Iv(o,a,d){a=d?r:a;var E=Rn(o,_,r,r,r,r,r,a);return E.placeholder=Iv.placeholder,E}function Nv(o,a,d){var E,k,C,L,B,G,oe=0,se=!1,ce=!1,me=!0;if(typeof o!="function")throw new Rr(l);a=Mr(a)||0,pt(d)&&(se=!!d.leading,ce="maxWait"in d,C=ce?At(Mr(d.maxWait)||0,a):C,me="trailing"in d?!!d.trailing:me);function Se(bt){var Gr=E,Mn=k;return E=k=r,oe=bt,L=o.apply(Mn,Gr),L}function Ae(bt){return oe=bt,B=gs(Le,a),se?Se(bt):L}function Ne(bt){var Gr=bt-G,Mn=bt-oe,Qv=a-Gr;return ce?qt(Qv,C-Mn):Qv}function _e(bt){var Gr=bt-G,Mn=bt-oe;return G===r||Gr>=a||Gr<0||ce&&Mn>=C}function Le(){var bt=wl();if(_e(bt))return $e(bt);B=gs(Le,Ne(bt))}function $e(bt){return B=r,me&&E?Se(bt):(E=k=r,L)}function mr(){B!==r&&Bg(B),oe=0,E=G=k=B=r}function Qt(){return B===r?L:$e(wl())}function br(){var bt=wl(),Gr=_e(bt);if(E=arguments,k=this,G=bt,Gr){if(B===r)return Ae(G);if(ce)return Bg(B),B=gs(Le,a),Se(G)}return B===r&&(B=gs(Le,a)),L}return br.cancel=mr,br.flush=Qt,br}var HA=Me(function(o,a){return Sg(o,1,a)}),WA=Me(function(o,a,d){return Sg(o,Mr(a)||0,d)});function BA(o){return Rn(o,U)}function xl(o,a){if(typeof o!="function"||a!=null&&typeof a!="function")throw new Rr(l);var d=function(){var E=arguments,k=a?a.apply(this,E):E[0],C=d.cache;if(C.has(k))return C.get(k);var L=o.apply(this,E);return d.cache=C.set(k,L)||C,L};return d.cache=new(xl.Cache||Tn),d}xl.Cache=Tn;function Sl(o){if(typeof o!="function")throw new Rr(l);return function(){var a=arguments;switch(a.length){case 0:return!o.call(this);case 1:return!o.call(this,a[0]);case 2:return!o.call(this,a[0],a[1]);case 3:return!o.call(this,a[0],a[1],a[2])}return!o.apply(this,a)}}function VA(o){return Rv(2,o)}var UA=PO(function(o,a){a=a.length==1&&Pe(a[0])?ut(a[0],hr(ke())):ut(jt(a,1),hr(ke()));var d=a.length;return Me(function(E){for(var k=-1,C=qt(E.length,d);++k<C;)E[k]=a[k].call(this,E[k]);return fr(o,this,E)})}),md=Me(function(o,a){var d=Yn(a,po(md));return Rn(o,R,r,a,d)}),Mv=Me(function(o,a){var d=Yn(a,po(Mv));return Rn(o,H,r,a,d)}),qA=Cn(function(o,a){return Rn(o,z,r,r,r,a)});function GA(o,a){if(typeof o!="function")throw new Rr(l);return a=a===r?a:Ie(a),Me(o,a)}function ZA(o,a){if(typeof o!="function")throw new Rr(l);return a=a==null?0:At(Ie(a),0),Me(function(d){var E=d[a],k=ti(d,0,a);return E&&Kn(k,E),fr(o,this,k)})}function KA(o,a,d){var E=!0,k=!0;if(typeof o!="function")throw new Rr(l);return pt(d)&&(E="leading"in d?!!d.leading:E,k="trailing"in d?!!d.trailing:k),Nv(o,a,{leading:E,maxWait:a,trailing:k})}function YA(o){return Tv(o,1)}function XA(o,a){return md(td(a),o)}function JA(){if(!arguments.length)return[];var o=arguments[0];return Pe(o)?o:[o]}function QA(o){return Pr(o,S)}function eT(o,a){return a=typeof a=="function"?a:r,Pr(o,S,a)}function tT(o){return Pr(o,h|S)}function rT(o,a){return a=typeof a=="function"?a:r,Pr(o,h|S,a)}function nT(o,a){return a==null||xg(o,a,It(a))}function qr(o,a){return o===a||o!==o&&a!==a}var iT=hl(Bu),oT=hl(function(o,a){return o>=a}),Ci=Ag((function(){return arguments})())?Ag:function(o){return vt(o)&&Ue.call(o,"callee")&&!pg.call(o,"callee")},Pe=J.isArray,sT=Zh?hr(Zh):hO;function nr(o){return o!=null&&El(o.length)&&!In(o)}function mt(o){return vt(o)&&nr(o)}function aT(o){return o===!0||o===!1||vt(o)&&Xt(o)==pe}var ri=x_||Rd,lT=Kh?hr(Kh):gO;function cT(o){return vt(o)&&o.nodeType===1&&!vs(o)}function uT(o){if(o==null)return!0;if(nr(o)&&(Pe(o)||typeof o=="string"||typeof o.splice=="function"||ri(o)||ho(o)||Ci(o)))return!o.length;var a=Gt(o);if(a==at||a==Lt)return!o.size;if(hs(o))return!qu(o).length;for(var d in o)if(Ue.call(o,d))return!1;return!0}function dT(o,a){return ds(o,a)}function fT(o,a,d){d=typeof d=="function"?d:r;var E=d?d(o,a):r;return E===r?ds(o,a,r,d):!!E}function bd(o){if(!vt(o))return!1;var a=Xt(o);return a==Z||a==xe||typeof o.message=="string"&&typeof o.name=="string"&&!vs(o)}function pT(o){return typeof o=="number"&&gg(o)}function In(o){if(!pt(o))return!1;var a=Xt(o);return a==Oe||a==ge||a==de||a==xt}function Dv(o){return typeof o=="number"&&o==Ie(o)}function El(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=ve}function pt(o){var a=typeof o;return o!=null&&(a=="object"||a=="function")}function vt(o){return o!=null&&typeof o=="object"}var Lv=Yh?hr(Yh):mO;function hT(o,a){return o===a||Uu(o,a,ld(a))}function gT(o,a,d){return d=typeof d=="function"?d:r,Uu(o,a,ld(a),d)}function vT(o){return zv(o)&&o!=+o}function mT(o){if(ek(o))throw new Re(s);return Tg(o)}function bT(o){return o===null}function yT(o){return o==null}function zv(o){return typeof o=="number"||vt(o)&&Xt(o)==Kt}function vs(o){if(!vt(o)||Xt(o)!=ur)return!1;var a=Ya(o);if(a===null)return!0;var d=Ue.call(a,"constructor")&&a.constructor;return typeof d=="function"&&d instanceof d&&qa.call(d)==g_}var yd=Xh?hr(Xh):bO;function wT(o){return Dv(o)&&o>=-ve&&o<=ve}var $v=Jh?hr(Jh):yO;function _l(o){return typeof o=="string"||!Pe(o)&&vt(o)&&Xt(o)==Ct}function vr(o){return typeof o=="symbol"||vt(o)&&Xt(o)==Ut}var ho=Qh?hr(Qh):wO;function xT(o){return o===r}function ST(o){return vt(o)&&Gt(o)==en}function ET(o){return vt(o)&&Xt(o)==wi}var _T=hl(Gu),OT=hl(function(o,a){return o<=a});function jv(o){if(!o)return[];if(nr(o))return _l(o)?Br(o):rr(o);if(ns&&o[ns])return n_(o[ns]());var a=Gt(o),d=a==at?Mu:a==Lt?Ba:go;return d(o)}function Nn(o){if(!o)return o===0?o:0;if(o=Mr(o),o===Y||o===-Y){var a=o<0?-1:1;return a*j}return o===o?o:0}function Ie(o){var a=Nn(o),d=a%1;return a===a?d?a-d:a:0}function Fv(o){return o?ki(Ie(o),0,ee):0}function Mr(o){if(typeof o=="number")return o;if(vr(o))return W;if(pt(o)){var a=typeof o.valueOf=="function"?o.valueOf():o;o=pt(a)?a+"":a}if(typeof o!="string")return o===0?o:+o;o=og(o);var d=rn.test(o);return d||on.test(o)?FE(o.slice(2),d?2:8):Yt.test(o)?W:+o}function Hv(o){return ln(o,ir(o))}function kT(o){return o?ki(Ie(o),-ve,ve):o===0?o:0}function qe(o){return o==null?"":gr(o)}var AT=uo(function(o,a){if(hs(a)||nr(a)){ln(a,It(a),o);return}for(var d in a)Ue.call(a,d)&&ls(o,d,a[d])}),Wv=uo(function(o,a){ln(a,ir(a),o)}),Bv=uo(function(o,a,d,E){ln(a,ir(a),o,E)}),wd=uo(function(o,a,d,E){ln(a,It(a),o,E)}),TT=Cn(Fu);function RT(o,a){var d=co(o);return a==null?d:wg(d,a)}var CT=Me(function(o,a){o=nt(o);var d=-1,E=a.length,k=E>2?a[2]:r;for(k&&Jt(a[0],a[1],k)&&(E=1);++d<E;)for(var C=a[d],L=ir(C),B=-1,G=L.length;++B<G;){var oe=L[B],se=o[oe];(se===r||qr(se,so[oe])&&!Ue.call(o,oe))&&(o[oe]=C[oe])}return o}),PT=Me(function(o){return o.push(r,ov),fr(Vv,r,o)});function IT(o,a){return tg(o,ke(a,3),an)}function NT(o,a){return tg(o,ke(a,3),Wu)}function MT(o,a){return o==null?o:Hu(o,ke(a,3),ir)}function DT(o,a){return o==null?o:Og(o,ke(a,3),ir)}function LT(o,a){return o&&an(o,ke(a,3))}function zT(o,a){return o&&Wu(o,ke(a,3))}function $T(o){return o==null?[]:sl(o,It(o))}function jT(o){return o==null?[]:sl(o,ir(o))}function xd(o,a,d){var E=o==null?r:Ai(o,a);return E===r?d:E}function FT(o,a){return o!=null&&lv(o,a,uO)}function Sd(o,a){return o!=null&&lv(o,a,dO)}var HT=ev(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=Ga.call(a)),o[a]=d},_d(or)),WT=ev(function(o,a,d){a!=null&&typeof a.toString!="function"&&(a=Ga.call(a)),Ue.call(o,a)?o[a].push(d):o[a]=[d]},ke),BT=Me(us);function It(o){return nr(o)?bg(o):qu(o)}function ir(o){return nr(o)?bg(o,!0):xO(o)}function VT(o,a){var d={};return a=ke(a,3),an(o,function(E,k,C){sn(d,a(E,k,C),E)}),d}function UT(o,a){var d={};return a=ke(a,3),an(o,function(E,k,C){sn(d,k,a(E,k,C))}),d}var qT=uo(function(o,a,d){al(o,a,d)}),Vv=uo(function(o,a,d,E){al(o,a,d,E)}),GT=Cn(function(o,a){var d={};if(o==null)return d;var E=!1;a=ut(a,function(C){return C=ei(C,o),E||(E=C.length>1),C}),ln(o,sd(o),d),E&&(d=Pr(d,h|b|S,WO));for(var k=a.length;k--;)Ju(d,a[k]);return d});function ZT(o,a){return Uv(o,Sl(ke(a)))}var KT=Cn(function(o,a){return o==null?{}:EO(o,a)});function Uv(o,a){if(o==null)return{};var d=ut(sd(o),function(E){return[E]});return a=ke(a),Dg(o,d,function(E,k){return a(E,k[0])})}function YT(o,a,d){a=ei(a,o);var E=-1,k=a.length;for(k||(k=1,o=r);++E<k;){var C=o==null?r:o[Ur(a[E])];C===r&&(E=k,C=d),o=In(C)?C.call(o):C}return o}function XT(o,a,d){return o==null?o:fs(o,a,d)}function JT(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:fs(o,a,d,E)}var qv=nv(It),Gv=nv(ir);function QT(o,a,d){var E=Pe(o),k=E||ri(o)||ho(o);if(a=ke(a,4),d==null){var C=o&&o.constructor;k?d=E?new C:[]:pt(o)?d=In(C)?co(Ya(o)):{}:d={}}return(k?pr:an)(o,function(L,B,G){return a(d,L,B,G)}),d}function eR(o,a){return o==null?!0:Ju(o,a)}function tR(o,a,d){return o==null?o:Fg(o,a,td(d))}function rR(o,a,d,E){return E=typeof E=="function"?E:r,o==null?o:Fg(o,a,td(d),E)}function go(o){return o==null?[]:Nu(o,It(o))}function nR(o){return o==null?[]:Nu(o,ir(o))}function iR(o,a,d){return d===r&&(d=a,a=r),d!==r&&(d=Mr(d),d=d===d?d:0),a!==r&&(a=Mr(a),a=a===a?a:0),ki(Mr(o),a,d)}function oR(o,a,d){return a=Nn(a),d===r?(d=a,a=0):d=Nn(d),o=Mr(o),fO(o,a,d)}function sR(o,a,d){if(d&&typeof d!="boolean"&&Jt(o,a,d)&&(a=d=r),d===r&&(typeof a=="boolean"?(d=a,a=r):typeof o=="boolean"&&(d=o,o=r)),o===r&&a===r?(o=0,a=1):(o=Nn(o),a===r?(a=o,o=0):a=Nn(a)),o>a){var E=o;o=a,a=E}if(d||o%1||a%1){var k=vg();return qt(o+k*(a-o+jE("1e-"+((k+"").length-1))),a)}return Ku(o,a)}var aR=fo(function(o,a,d){return a=a.toLowerCase(),o+(d?Zv(a):a)});function Zv(o){return Ed(qe(o).toLowerCase())}function Kv(o){return o=qe(o),o&&o.replace(Qi,JE).replace(RE,"")}function lR(o,a,d){o=qe(o),a=gr(a);var E=o.length;d=d===r?E:ki(Ie(d),0,E);var k=d;return d-=a.length,d>=0&&o.slice(d,k)==a}function cR(o){return o=qe(o),o&&pu.test(o)?o.replace(qn,QE):o}function uR(o){return o=qe(o),o&&vu.test(o)?o.replace(tn,"\\$&"):o}var dR=fo(function(o,a,d){return o+(d?"-":"")+a.toLowerCase()}),fR=fo(function(o,a,d){return o+(d?" ":"")+a.toLowerCase()}),pR=Xg("toLowerCase");function hR(o,a,d){o=qe(o),a=Ie(a);var E=a?io(o):0;if(!a||E>=a)return o;var k=(a-E)/2;return pl(el(k),d)+o+pl(Qa(k),d)}function gR(o,a,d){o=qe(o),a=Ie(a);var E=a?io(o):0;return a&&E<a?o+pl(a-E,d):o}function vR(o,a,d){o=qe(o),a=Ie(a);var E=a?io(o):0;return a&&E<a?pl(a-E,d)+o:o}function mR(o,a,d){return d||a==null?a=0:a&&(a=+a),O_(qe(o).replace(On,""),a||0)}function bR(o,a,d){return(d?Jt(o,a,d):a===r)?a=1:a=Ie(a),Yu(qe(o),a)}function yR(){var o=arguments,a=qe(o[0]);return o.length<3?a:a.replace(o[1],o[2])}var wR=fo(function(o,a,d){return o+(d?"_":"")+a.toLowerCase()});function xR(o,a,d){return d&&typeof d!="number"&&Jt(o,a,d)&&(a=d=r),d=d===r?ee:d>>>0,d?(o=qe(o),o&&(typeof a=="string"||a!=null&&!yd(a))&&(a=gr(a),!a&&no(o))?ti(Br(o),0,d):o.split(a,d)):[]}var SR=fo(function(o,a,d){return o+(d?" ":"")+Ed(a)});function ER(o,a,d){return o=qe(o),d=d==null?0:ki(Ie(d),0,o.length),a=gr(a),o.slice(d,d+a.length)==a}function _R(o,a,d){var E=T.templateSettings;d&&Jt(o,a,d)&&(a=r),o=qe(o),a=wd({},a,E,iv);var k=wd({},a.imports,E.imports,iv),C=It(k),L=Nu(k,C);pr(C,function(_e){if($a.test(_e))throw new Re(u)});var B,G,oe=0,se=a.interpolate||eo,ce="__p += '",me=Du((a.escape||eo).source+"|"+se.source+"|"+(se===Xi?zt:eo).source+"|"+(a.evaluate||eo).source+"|$","g"),Se="//# sourceURL="+(Ue.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ME+"]")+`
235
+ `;o.replace(me,function(_e,Le,$e,mr,Qt,br){return $e||($e=mr),ce+=o.slice(oe,br).replace(bu,e_),Le&&(B=!0,ce+=`' +
236
236
  __e(`+Le+`) +
237
- '`),Jt&&(G=!0,ue+=`';
238
- `+Jt+`;
239
- __p += '`),$e&&(ue+=`' +
237
+ '`),Qt&&(G=!0,ce+=`';
238
+ `+Qt+`;
239
+ __p += '`),$e&&(ce+=`' +
240
240
  ((__t = (`+$e+`)) == null ? '' : __t) +
241
- '`),ie=yr+_e.length,_e}),ue+=`';
242
- `;var ke=Ue.call(a,"variable")&&a.variable;if(!ke)ue=`with (obj) {
243
- `+ue+`
241
+ '`),oe=br+_e.length,_e}),ce+=`';
242
+ `;var Ae=Ue.call(a,"variable")&&a.variable;if(!Ae)ce=`with (obj) {
243
+ `+ce+`
244
244
  }
245
- `;else if(kr.test(ke))throw new Re(c);ue=(G?ue.replace(Pa,""):ue).replace(wi,"$1").replace(Na,"$1;"),ue="function("+(ke||"obj")+`) {
246
- `+(ke?"":`obj || (obj = {});
245
+ `;else if($a.test(Ae))throw new Re(c);ce=(G?ce.replace(Ia,""):ce).replace(Na,"$1").replace(Ma,"$1;"),ce="function("+(Ae||"obj")+`) {
246
+ `+(Ae?"":`obj || (obj = {});
247
247
  `)+"var __t, __p = ''"+(B?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
248
248
  function print() { __p += __j.call(arguments, '') }
249
249
  `:`;
250
- `)+ue+`return __p
251
- }`;var Ne=Gv(function(){return Be(C,Se+"return "+ue).apply(r,L)});if(Ne.source=ue,pd(Ne))throw Ne;return Ne}function OR(o){return qe(o).toLowerCase()}function kR(o){return qe(o).toUpperCase()}function AR(o,a,d){if(o=qe(o),o&&(d||a===r))return tg(o);if(!o||!(a=vr(a)))return o;var E=Br(o),k=Br(a),C=rg(E,k),L=ng(E,k)+1;return ti(E,C,L).join("")}function TR(o,a,d){if(o=qe(o),o&&(d||a===r))return o.slice(0,og(o)+1);if(!o||!(a=vr(a)))return o;var E=Br(o),k=ng(E,Br(a))+1;return ti(E,0,k).join("")}function RR(o,a,d){if(o=qe(o),o&&(d||a===r))return o.replace(ts,"");if(!o||!(a=vr(a)))return o;var E=Br(o),k=rg(E,Br(a));return ti(E,k).join("")}function CR(o,a){var d=j,E=M;if(pt(a)){var k="separator"in a?a.separator:k;d="length"in a?Pe(a.length):d,E="omission"in a?vr(a.omission):E}o=qe(o);var C=o.length;if(no(o)){var L=Br(o);C=L.length}if(d>=C)return o;var B=d-io(E);if(B<1)return E;var G=L?ti(L,0,B).join(""):o.slice(0,B);if(k===r)return G+E;if(L&&(B+=G.length-B),hd(k)){if(o.slice(B).search(k)){var ie,se=G;for(k.global||(k=Cu(k.source,qe(nn.exec(k))+"g")),k.lastIndex=0;ie=k.exec(se);)var ue=ie.index;G=G.slice(0,ue===r?B:ue)}}else if(o.indexOf(vr(k),B)!=B){var me=G.lastIndexOf(k);me>-1&&(G=G.slice(0,me))}return G+E}function IR(o){return o=qe(o),o&&Jo.test(o)?o.replace(Ma,a_):o}var PR=fo(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),bd=Gg("toUpperCase");function qv(o,a,d){return o=qe(o),a=d?r:a,a===r?r_(o)?u_(o):GE(o):o.match(a)||[]}var Gv=Me(function(o,a){try{return pr(o,r,a)}catch(d){return pd(d)?d:new Re(d)}}),NR=Tn(function(o,a){return hr(a,function(d){d=Vr(d),sn(o,d,dd(o[d],o))}),o});function MR(o){var a=o==null?0:o.length,d=Oe();return o=a?ut(o,function(E){if(typeof E[1]!="function")throw new Tr(l);return[d(E[0]),E[1]]}):[],Me(function(E){for(var k=-1;++k<a;){var C=o[k];if(pr(C[0],this,E))return pr(C[1],this,E)}})}function DR(o){return aO(Cr(o,h))}function yd(o){return function(){return o}}function LR(o,a){return o==null||o!==o?a:o}var zR=Kg(),$R=Kg(!0);function sr(o){return o}function wd(o){return Og(typeof o=="function"?o:Cr(o,h))}function jR(o){return Ag(Cr(o,h))}function FR(o,a){return Tg(o,Cr(a,h))}var HR=Me(function(o,a){return function(d){return ds(d,o,a)}}),BR=Me(function(o,a){return function(d){return ds(o,d,a)}});function xd(o,a,d){var E=Pt(a),k=ol(a,E);d==null&&!(pt(a)&&(k.length||!E.length))&&(d=a,a=o,o=this,k=ol(a,Pt(a)));var C=!(pt(d)&&"chain"in d)||!!d.chain,L=Cn(o);return hr(k,function(B){var G=a[B];o[B]=G,L&&(o.prototype[B]=function(){var ie=this.__chain__;if(C||ie){var se=o(this.__wrapped__),ue=se.__actions__=nr(this.__actions__);return ue.push({func:G,args:arguments,thisArg:o}),se.__chain__=ie,se}return G.apply(o,Kn([this.value()],arguments))})}),o}function WR(){return $t._===this&&($t._=v_),this}function Sd(){}function VR(o){return o=Pe(o),Me(function(a){return Rg(a,o)})}var UR=Ju(ut),qR=Ju(Yh),GR=Ju(Eu);function Zv(o){return od(o)?_u(Vr(o)):_O(o)}function ZR(o){return function(a){return o==null?r:Ti(o,a)}}var KR=Xg(),YR=Xg(!0);function Ed(){return[]}function _d(){return!1}function XR(){return{}}function JR(){return""}function QR(){return!0}function eC(o,a){if(o=Pe(o),o<1||o>ve)return[];var d=X,E=Gt(o,X);a=Oe(a),o-=X;for(var k=Au(E,a);++d<o;)a(d);return k}function tC(o){return Ie(o)?ut(o,Vr):mr(o)?[o]:nr(pv(qe(o)))}function rC(o){var a=++h_;return qe(o)+a}var nC=dl(function(o,a){return o+a},0),iC=Qu("ceil"),oC=dl(function(o,a){return o/a},1),sC=Qu("floor");function aC(o){return o&&o.length?il(o,sr,$u):r}function lC(o,a){return o&&o.length?il(o,Oe(a,2),$u):r}function cC(o){return Qh(o,sr)}function uC(o,a){return Qh(o,Oe(a,2))}function dC(o){return o&&o.length?il(o,sr,Bu):r}function fC(o,a){return o&&o.length?il(o,Oe(a,2),Bu):r}var pC=dl(function(o,a){return o*a},1),hC=Qu("round"),gC=dl(function(o,a){return o-a},0);function vC(o){return o&&o.length?ku(o,sr):0}function mC(o,a){return o&&o.length?ku(o,Oe(a,2)):0}return T.after=FA,T.ary=_v,T.assign=AT,T.assignIn=$v,T.assignInWith=jv,T.assignWith=gd,T.at=TT,T.before=Ov,T.bind=dd,T.bindAll=NR,T.bindKey=kv,T.castArray=JA,T.chain=xv,T.chunk=ak,T.compact=lk,T.concat=ck,T.cond=MR,T.conforms=DR,T.constant=yd,T.countBy=mA,T.create=RT,T.curry=Av,T.curryRight=Tv,T.debounce=Rv,T.defaults=CT,T.defaultsDeep=IT,T.defer=HA,T.delay=BA,T.difference=uk,T.differenceBy=dk,T.differenceWith=fk,T.drop=pk,T.dropRight=hk,T.dropRightWhile=gk,T.dropWhile=vk,T.fill=mk,T.filter=yA,T.flatMap=SA,T.flatMapDeep=EA,T.flatMapDepth=_A,T.flatten=mv,T.flattenDeep=bk,T.flattenDepth=yk,T.flip=WA,T.flow=zR,T.flowRight=$R,T.fromPairs=wk,T.functions=$T,T.functionsIn=jT,T.groupBy=OA,T.initial=Sk,T.intersection=Ek,T.intersectionBy=_k,T.intersectionWith=Ok,T.invert=HT,T.invertBy=BT,T.invokeMap=AA,T.iteratee=wd,T.keyBy=TA,T.keys=Pt,T.keysIn=or,T.map=bl,T.mapKeys=VT,T.mapValues=UT,T.matches=jR,T.matchesProperty=FR,T.memoize=wl,T.merge=qT,T.mergeWith=Fv,T.method=HR,T.methodOf=BR,T.mixin=xd,T.negate=xl,T.nthArg=VR,T.omit=GT,T.omitBy=ZT,T.once=VA,T.orderBy=RA,T.over=UR,T.overArgs=UA,T.overEvery=qR,T.overSome=GR,T.partial=fd,T.partialRight=Cv,T.partition=CA,T.pick=KT,T.pickBy=Hv,T.property=Zv,T.propertyOf=ZR,T.pull=Rk,T.pullAll=yv,T.pullAllBy=Ck,T.pullAllWith=Ik,T.pullAt=Pk,T.range=KR,T.rangeRight=YR,T.rearg=qA,T.reject=NA,T.remove=Nk,T.rest=GA,T.reverse=cd,T.sampleSize=DA,T.set=XT,T.setWith=JT,T.shuffle=LA,T.slice=Mk,T.sortBy=jA,T.sortedUniq=Hk,T.sortedUniqBy=Bk,T.split=xR,T.spread=ZA,T.tail=Wk,T.take=Vk,T.takeRight=Uk,T.takeRightWhile=qk,T.takeWhile=Gk,T.tap=lA,T.throttle=KA,T.thru=ml,T.toArray=Dv,T.toPairs=Bv,T.toPairsIn=Wv,T.toPath=tC,T.toPlainObject=zv,T.transform=QT,T.unary=YA,T.union=Zk,T.unionBy=Kk,T.unionWith=Yk,T.uniq=Xk,T.uniqBy=Jk,T.uniqWith=Qk,T.unset=eR,T.unzip=ud,T.unzipWith=wv,T.update=tR,T.updateWith=rR,T.values=go,T.valuesIn=nR,T.without=eA,T.words=qv,T.wrap=XA,T.xor=tA,T.xorBy=rA,T.xorWith=nA,T.zip=iA,T.zipObject=oA,T.zipObjectDeep=sA,T.zipWith=aA,T.entries=Bv,T.entriesIn=Wv,T.extend=$v,T.extendWith=jv,xd(T,T),T.add=nC,T.attempt=Gv,T.camelCase=aR,T.capitalize=Vv,T.ceil=iC,T.clamp=iR,T.clone=QA,T.cloneDeep=tT,T.cloneDeepWith=rT,T.cloneWith=eT,T.conformsTo=nT,T.deburr=Uv,T.defaultTo=LR,T.divide=oC,T.endsWith=lR,T.eq=Ur,T.escape=cR,T.escapeRegExp=uR,T.every=bA,T.find=wA,T.findIndex=gv,T.findKey=PT,T.findLast=xA,T.findLastIndex=vv,T.findLastKey=NT,T.floor=sC,T.forEach=Sv,T.forEachRight=Ev,T.forIn=MT,T.forInRight=DT,T.forOwn=LT,T.forOwnRight=zT,T.get=vd,T.gt=iT,T.gte=oT,T.has=FT,T.hasIn=md,T.head=bv,T.identity=sr,T.includes=kA,T.indexOf=xk,T.inRange=oR,T.invoke=WT,T.isArguments=Ii,T.isArray=Ie,T.isArrayBuffer=sT,T.isArrayLike=ir,T.isArrayLikeObject=mt,T.isBoolean=aT,T.isBuffer=ri,T.isDate=lT,T.isElement=cT,T.isEmpty=uT,T.isEqual=dT,T.isEqualWith=fT,T.isError=pd,T.isFinite=pT,T.isFunction=Cn,T.isInteger=Iv,T.isLength=Sl,T.isMap=Pv,T.isMatch=hT,T.isMatchWith=gT,T.isNaN=vT,T.isNative=mT,T.isNil=yT,T.isNull=bT,T.isNumber=Nv,T.isObject=pt,T.isObjectLike=vt,T.isPlainObject=ms,T.isRegExp=hd,T.isSafeInteger=wT,T.isSet=Mv,T.isString=El,T.isSymbol=mr,T.isTypedArray=ho,T.isUndefined=xT,T.isWeakMap=ST,T.isWeakSet=ET,T.join=kk,T.kebabCase=dR,T.last=Pr,T.lastIndexOf=Ak,T.lowerCase=fR,T.lowerFirst=pR,T.lt=_T,T.lte=OT,T.max=aC,T.maxBy=lC,T.mean=cC,T.meanBy=uC,T.min=dC,T.minBy=fC,T.stubArray=Ed,T.stubFalse=_d,T.stubObject=XR,T.stubString=JR,T.stubTrue=QR,T.multiply=pC,T.nth=Tk,T.noConflict=WR,T.noop=Sd,T.now=yl,T.pad=hR,T.padEnd=gR,T.padStart=vR,T.parseInt=mR,T.random=sR,T.reduce=IA,T.reduceRight=PA,T.repeat=bR,T.replace=yR,T.result=YT,T.round=hC,T.runInContext=q,T.sample=MA,T.size=zA,T.snakeCase=wR,T.some=$A,T.sortedIndex=Dk,T.sortedIndexBy=Lk,T.sortedIndexOf=zk,T.sortedLastIndex=$k,T.sortedLastIndexBy=jk,T.sortedLastIndexOf=Fk,T.startCase=SR,T.startsWith=ER,T.subtract=gC,T.sum=vC,T.sumBy=mC,T.template=_R,T.times=eC,T.toFinite=In,T.toInteger=Pe,T.toLength=Lv,T.toLower=OR,T.toNumber=Nr,T.toSafeInteger=kT,T.toString=qe,T.toUpper=kR,T.trim=AR,T.trimEnd=TR,T.trimStart=RR,T.truncate=CR,T.unescape=IR,T.uniqueId=rC,T.upperCase=PR,T.upperFirst=bd,T.each=Sv,T.eachRight=Ev,T.first=bv,xd(T,(function(){var o={};return an(T,function(a,d){Ue.call(T.prototype,d)||(o[d]=a)}),o})(),{chain:!1}),T.VERSION=n,hr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){T[o].placeholder=T}),hr(["drop","take"],function(o,a){ze.prototype[o]=function(d){d=d===r?1:kt(Pe(d),0);var E=this.__filtered__&&!a?new ze(this):this.clone();return E.__filtered__?E.__takeCount__=Gt(d,E.__takeCount__):E.__views__.push({size:Gt(d,X),type:o+(E.__dir__<0?"Right":"")}),E},ze.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),hr(["filter","map","takeWhile"],function(o,a){var d=a+1,E=d==P||d==ee;ze.prototype[o]=function(k){var C=this.clone();return C.__iteratees__.push({iteratee:Oe(k,3),type:d}),C.__filtered__=C.__filtered__||E,C}}),hr(["head","last"],function(o,a){var d="take"+(a?"Right":"");ze.prototype[o]=function(){return this[d](1).value()[0]}}),hr(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");ze.prototype[o]=function(){return this.__filtered__?new ze(this):this[d](1)}}),ze.prototype.compact=function(){return this.filter(sr)},ze.prototype.find=function(o){return this.filter(o).head()},ze.prototype.findLast=function(o){return this.reverse().find(o)},ze.prototype.invokeMap=Me(function(o,a){return typeof o=="function"?new ze(this):this.map(function(d){return ds(d,o,a)})}),ze.prototype.reject=function(o){return this.filter(xl(Oe(o)))},ze.prototype.slice=function(o,a){o=Pe(o);var d=this;return d.__filtered__&&(o>0||a<0)?new ze(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==r&&(a=Pe(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},ze.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},ze.prototype.toArray=function(){return this.take(X)},an(ze.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),k=T[E?"take"+(a=="last"?"Right":""):a],C=E||/^find/.test(a);k&&(T.prototype[a]=function(){var L=this.__wrapped__,B=E?[1]:arguments,G=L instanceof ze,ie=B[0],se=G||Ie(L),ue=function(Le){var $e=k.apply(T,Kn([Le],B));return E&&me?$e[0]:$e};se&&d&&typeof ie=="function"&&ie.length!=1&&(G=se=!1);var me=this.__chain__,Se=!!this.__actions__.length,ke=C&&!me,Ne=G&&!Se;if(!C&&se){L=Ne?L:new ze(this);var _e=o.apply(L,B);return _e.__actions__.push({func:ml,args:[ue],thisArg:r}),new Rr(_e,me)}return ke&&Ne?o.apply(this,B):(_e=this.thru(ue),ke?E?_e.value()[0]:_e.value():_e)})}),hr(["pop","push","shift","sort","splice","unshift"],function(o){var a=Wa[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",E=/^(?:pop|shift)$/.test(o);T.prototype[o]=function(){var k=arguments;if(E&&!this.__chain__){var C=this.value();return a.apply(Ie(C)?C:[],k)}return this[d](function(L){return a.apply(Ie(L)?L:[],k)})}}),an(ze.prototype,function(o,a){var d=T[a];if(d){var E=d.name+"";Ue.call(lo,E)||(lo[E]=[]),lo[E].push({name:a,func:d})}}),lo[ul(r,w).name]=[{name:"wrapper",func:r}],ze.prototype.clone=P_,ze.prototype.reverse=N_,ze.prototype.value=M_,T.prototype.at=cA,T.prototype.chain=uA,T.prototype.commit=dA,T.prototype.next=fA,T.prototype.plant=hA,T.prototype.reverse=gA,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=vA,T.prototype.first=T.prototype.head,is&&(T.prototype[is]=pA),T}),oo=d_();Ei?((Ei.exports=oo)._=oo,yu._=oo):$t._=oo}).call(Wz)})(Ys,Ys.exports)),Ys.exports}var He=Vz();const Xf={FdSave:V2,FdWarningDanger:xp,FdInfoCircle:z2,FdInfoBold:Nf};var Yp=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Yp||{}),Po=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Po||{}),To=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(To||{});const Uz={[Po.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Po.DANGER]:{icon:"red-500",button:"primary-dark"},[Po.WARNING]:{icon:"yellow-400",button:"primary-dark"}},qz=({name:e,color:t=Po.PRIMARY,className:r="w-8 h-8"})=>{const n=Xf[e]||Xf.FdInfoCircle,i=`text-${Uz[t].icon}`;return A.jsx(n,{className:st(r,i)})},Gz=({id:e,title:t,message:r,icon:n,type:i,color:s,zIndex:l=3e3,views:c,width:u=520,hasOverlay:f=!0,container:g,onClose:p,onEdit:h})=>{const b=y=>{p({id:e,reason:y})};N.useEffect(()=>{function y(m){m.key==="Escape"&&b(To.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const S=He.merge(He.values(c==null?void 0:c.toggles).flatMap(y=>y.value?y.warnings||[]:[]),c==null?void 0:c.tips),v=(y,m)=>{var x;if(!(c!=null&&c.toggles))return;const w=He.cloneDeep(c);(x=w.toggles)!=null&&x[y]&&(w.toggles[y].value=m),h({id:e,views:w})};return En.createPortal(A.jsx(zc,{appear:!0,show:!0,as:N.Fragment,children:A.jsx("div",{className:st("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":f}),style:{zIndex:l},onClick:()=>b(To.CANCELED),children:A.jsx(zc.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:A.jsx(Gi,{depth:3,borderType:"light","data-cy":"confirmation-modal-cy",className:"relative rounded-md border",style:{width:u},onClick:y=>y.stopPropagation(),children:A.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?A.jsx("div",{className:"flex items-center justify-center",children:A.jsx(qz,{name:n,color:s,className:"w-6 h-6"})}):null,A.jsx(Zz,{condition:t,children:A.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-center",children:t})}),A.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium",children:r}),A.jsx("div",{className:"text-xs",children:He.values(c==null?void 0:c.toggles).map(y=>A.jsx("div",{children:A.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[A.jsx(Rw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),A.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),A.jsx(Kz,{warnings:S}),A.jsx("div",{className:"flex items-center gap-4",children:i===Yp.CONFIRM?A.jsxs(A.Fragment,{children:[A.jsx(Fn,{autoFocus:!0,color:"primary",onClick:()=>b(To.CONFIRMED),children:"Confirm"}),A.jsx(Fn,{color:"white",variant:"outline",onClick:()=>b(To.CANCELED),children:"Cancel"})]}):A.jsx(Fn,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),g||document.body)},Zz=e=>e.condition?A.jsx(A.Fragment,{children:e.children}):null,Kz=e=>e.warnings?A.jsx(zc,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:A.jsx(Gi,{depth:1,className:"flex flex-col gap-1 rounded-sm p-2 text-xs",children:e.warnings.map((t,r)=>A.jsx(zc.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:A.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[A.jsx(xp,{className:st({"h-3 w-3":!0,"text-warning-text":t.type==="warning","text-negative-text":t.type==="error","text-primary":t.type==="info"},"mr-3")}),A.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var T1=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(T1||{});const Yz=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:i})=>A.jsxs(Gi,{depth:4,className:"flex items-center rounded p-1",children:[A.jsx($2,{onClick:i,className:st("h-5 w-5 p-1",{"text-inactive-text":e<=t,"cursor-pointer rounded hover:bg-primary-hover":e>t})}),A.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),A.jsx(j2,{onClick:n,className:st("h-5 w-5 p-1",{"text-inactive-text":e>=r,"cursor-pointer rounded hover:bg-primary-hover":e<r})})]}),hn=30,R1=.3,C1=.6,Xz=()=>typeof window>"u"?400:Math.round(window.innerHeight*R1),I1=()=>typeof window>"u"?600:Math.round(window.innerHeight*C1),ry=e=>{const t=I1();return Math.min(Math.max(e,hn),t)},Jz=e=>{const[t,r]=N.useState(hn),n=N.useRef(),i=N.useRef(null),s=I1(),l=Xz(),c=t>hn;N.useEffect(()=>{r(e.isOpen?l:hn)},[e.isOpen,l]),N.useEffect(()=>{const f=()=>{r(g=>g<=hn?hn:ry(g))};return window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f),i.current&&cancelAnimationFrame(i.current)}},[]);const u=()=>{if(c){r(hn),e.onClose();return}r(l),e.onOpen()};return A.jsx(Aw,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:s,minHeight:hn,onResizeStart:()=>{n.current&&Date.now()-n.current<200?r(c?hn:l):n.current=Date.now()},onResize:(f,g,p)=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),i.current=null})},onResizeStop:(f,g,p,h)=>{r(b=>ry(b+h.height))},handleComponent:{top:A.jsx(Tw,{})},depth:1,children:A.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${He.kebabCase(e.path)}`,children:[A.jsxs("div",{className:st("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[A.jsxs("div",{className:"group flex items-center justify-start",children:[A.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),e.tipKey?A.jsx(n1,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,A.jsx(Fn,{variant:"ghost",color:"white","data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,onClick:u,children:c?A.jsx(D2,{className:"h-4 w-4"}):A.jsx(L2,{className:"h-4 w-4"})})]}),e.headerRightSide]}),A.jsxs(vc,{of:c,children:[A.jsx(vc,{of:e.render,children:e.render}),A.jsx(vc,{of:!e.render,children:e.children})]})]})})},Qz=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:n,onReset:i,resetButtonLabel:s="Reset Page"})=>A.jsx("div",{className:"flex h-full w-full items-center justify-center",children:A.jsxs(Gi,{depth:4,borderType:"light",className:"flex flex-col items-center rounded px-10 py-6 text-center shadow-md",children:[A.jsxs("div",{className:"relative",children:[A.jsx(B2,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),A.jsx("div",{className:"h-1/2 w-1/2 absolute top-1/2 -translate-y-1/2 translate-x-1/2 z-0 bg-white"})]}),A.jsx("p",{className:"mb-2 mt-4 text-2xl text-body",children:e}),A.jsx("p",{className:"text-md mb-4 font-extralight text-muted",children:t}),A.jsxs("div",{className:"flex gap-4",children:[n&&A.jsx(Fn,{onClick:n,children:"Open in Text Editor"}),i&&A.jsx(Fn,{color:"negative",onClick:i,children:"Reset Page"}),r&&A.jsx(Fn,{color:"white",variant:"outline",onClick:r,children:"Close"})]})]})}),e4=({onChange:e,value:t,delay:r,placeholder:n,containerClassName:i,onFocusInput:s,icon:l,"data-cy":c})=>{const[u,f]=N.useState(t),g=N.useRef(null);return A.jsx(Ss.Root,{className:st("w-full",i),children:A.jsxs(Ss.Group,{children:[A.jsx(Ss.Icon,{children:l?A.jsx("button",{className:"mr-1 flex h-6 w-7 items-center justify-center text-xs rounded bg-grey-300 hover:bg-primary-hover",onClick:()=>{var p;return(p=g.current)==null?void 0:p.focus()},children:A.jsx("span",{className:`text-base fa ${l}`})}):A.jsx(U2,{})}),A.jsx(Ss.Field,{ref:g,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:p=>{f(p.currentTarget.value);const h=He.escapeRegExp(p.target.value);if(!r)return e(h);He.debounce(e,r)(h)},value:u,onFocus:()=>s&&s(),onDrop:p=>p.preventDefault()}),t&&A.jsx(Ss.Icon,{isAction:!0,onClick:()=>{e(""),f("")},children:A.jsx(Bo,{})})]})})},t4=N.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:i,...s},l)=>A.jsx(A.Fragment,{children:A.jsx(Ew,{label:e,children:A.jsx(Fn,{ref:l,variant:"ghost",color:"white",...s,children:A.jsx(t,{className:st(i)})})})}));function Ro(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function r4({rowGap:e,columnGap:t,templateColumns:r,templateRows:n,height:i,width:s,style:l,...c}){return A.jsx("div",{...c,style:{display:"grid",rowGap:Ro(e),columnGap:Ro(t),gridTemplateColumns:r,gridTemplateRows:n,height:Ro(i),width:Ro(s),...l}})}function n4({colStart:e,colSpan:t,rowStart:r,rowSpan:n,sx:i,style:s,...l}){return A.jsx("div",{...l,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:n?`span ${n}`:void 0,...i,...s}})}function i4({columns:e=1,spacingX:t,spacingY:r,style:n,...i}){return A.jsx("div",{...i,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:Ro(t),rowGap:Ro(r),...n}})}const P1=N.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:n,style:i,...s},l)=>{const[c,u]=N.useState(!1);return N.useEffect(()=>{u(!1)},[n]),!n||c?A.jsx(A.Fragment,{children:e}):A.jsx("img",{...s,ref:l,src:n,style:i,onLoad:f=>{u(!1),r==null||r(f)},onError:f=>{u(!0),t==null||t(f)}})});P1.displayName="Image";function o4(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const bf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function yf(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function qs(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function N1(e,t){const r=t.slice(0,t.length-1);for(let n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function M1(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function s4(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let i=!0;for(let s=0;s<r.length;s++)n.indexOf(r[s])===-1&&(i=!1);return i}const ga={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":bf?173:189,"=":bf?61:187,";":bf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Jr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Xs={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Bt={16:!1,18:!1,17:!1,91:!1},gt={};for(let e=1;e<20;e++)ga["f".concat(e)]=111+e;let ft=[],aa=null,D1="all";const Ln=new Map,Go=e=>ga[e.toLowerCase()]||Jr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),a4=e=>Object.keys(ga).find(t=>ga[t]===e),l4=e=>Object.keys(Jr).find(t=>Jr[t]===e);function L1(e){D1=e||"all"}function va(){return D1||"all"}function c4(){return ft.slice(0)}function u4(){return ft.map(e=>a4(e)||l4(e)||String.fromCharCode(e))}function d4(){const e=[];return Object.keys(gt).forEach(t=>{gt[t].forEach(r=>{let{key:n,scope:i,mods:s,shortcut:l}=r;e.push({scope:i,shortcut:l,mods:s,keys:n.split("+").map(c=>Go(c))})})}),e}function f4(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const i=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(i||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function p4(e){return typeof e=="string"&&(e=Go(e)),ft.indexOf(e)!==-1}function h4(e,t){let r,n;e||(e=va());for(const i in gt)if(Object.prototype.hasOwnProperty.call(gt,i))for(r=gt[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return Xp(c)}):n++;va()===e&&L1(t||"all")}function g4(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Go(e.key));const r=ft.indexOf(t);if(r>=0&&ft.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&ft.splice(0,ft.length),(t===93||t===224)&&(t=91),t in Bt){Bt[t]=!1;for(const n in Jr)Jr[n]===t&&(Yr[n]=!1)}}function z1(e){if(typeof e>"u")Object.keys(gt).forEach(i=>{Array.isArray(gt[i])&&gt[i].forEach(s=>ec(s)),delete gt[i]}),Xp(null);else if(Array.isArray(e))e.forEach(i=>{i.key&&ec(i)});else if(typeof e=="object")e.key&&ec(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[i,s]=r;typeof i=="function"&&(s=i,i=""),ec({key:e,scope:i,method:s,splitKey:"+"})}}const ec=e=>{let{key:t,scope:r,method:n,splitKey:i="+"}=e;M1(t).forEach(l=>{const c=l.split(i),u=c.length,f=c[u-1],g=f==="*"?"*":Go(f);if(!gt[g])return;r||(r=va());const p=u>1?N1(Jr,c):[],h=[];gt[g]=gt[g].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&s4(b.mods,p);return v&&h.push(b.element),!v}),h.forEach(b=>Xp(b))})};function ny(e,t,r,n){if(t.element!==n)return;let i;if(t.scope===r||t.scope==="all"){i=t.mods.length>0;for(const s in Bt)Object.prototype.hasOwnProperty.call(Bt,s)&&(!Bt[s]&&t.mods.indexOf(+s)>-1||Bt[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!Bt[16]&&!Bt[18]&&!Bt[17]&&!Bt[91]||i||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ft),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function iy(e,t){const r=gt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Yr.filter.call(this,e))return;if((n===93||n===224)&&(n=91),ft.indexOf(n)===-1&&n!==229&&ft.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=Xs[c];e[c]&&ft.indexOf(u)===-1?ft.push(u):!e[c]&&ft.indexOf(u)>-1?ft.splice(ft.indexOf(u),1):c==="metaKey"&&e[c]&&(ft=ft.filter(f=>f in Xs||f===n))}),n in Bt){Bt[n]=!0;for(const c in Jr)if(Object.prototype.hasOwnProperty.call(Jr,c)){const u=Xs[Jr[c]];Yr[c]=e[u]}if(!r)return}for(const c in Bt)Object.prototype.hasOwnProperty.call(Bt,c)&&(Bt[c]=e[Xs[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ft.indexOf(17)===-1&&ft.push(17),ft.indexOf(18)===-1&&ft.push(18),Bt[17]=!0,Bt[18]=!0);const i=va();if(r)for(let c=0;c<r.length;c++)r[c].scope===i&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&ny(e,r[c],i,t);if(!(n in gt))return;const s=gt[n],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const u=s[c],{splitKey:f}=u,g=u.key.split(f),p=[];for(let h=0;h<g.length;h++)p.push(Go(g[h]));p.sort().join("")===ft.sort().join("")&&ny(e,u,i,t)}}function Yr(e,t,r){ft=[];const n=M1(e);let i=[],s="all",l=document,c=0,u=!1,f=!0,g="+",p=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(f=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(s=t),h&&z1(e,s);c<n.length;c++)e=n[c].split(g),i=[],e.length>1&&(i=N1(Jr,e)),e=e[e.length-1],e=e==="*"?"*":Go(e),e in gt||(gt[e]=[]),gt[e].push({keyup:u,keydown:f,scope:s,mods:i,shortcut:n[c],method:r,key:n[c],splitKey:g,element:l});if(typeof l<"u"&&window){if(!Ln.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return iy(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;iy(v,l),g4(v)};Ln.set(l,{keydownListener:b,keyupListenr:S,capture:p}),yf(l,"keydown",b,p),yf(l,"keyup",S,p)}if(!aa){const b=()=>{ft=[]};aa={listener:b,capture:p},yf(window,"focus",b,p)}}}function v4(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(gt).forEach(r=>{gt[r].filter(i=>i.scope===t&&i.shortcut===e).forEach(i=>{i&&i.method&&i.method()})})}function Xp(e){const t=Object.values(gt).flat();if(t.findIndex(n=>{let{element:i}=n;return i===e})<0){const{keydownListener:n,keyupListenr:i,capture:s}=Ln.get(e)||{};n&&i&&(qs(e,"keyup",i,s),qs(e,"keydown",n,s),Ln.delete(e))}if((t.length<=0||Ln.size<=0)&&(Object.keys(Ln).forEach(i=>{const{keydownListener:s,keyupListenr:l,capture:c}=Ln.get(i)||{};s&&l&&(qs(i,"keyup",l,c),qs(i,"keydown",s,c),Ln.delete(i))}),Ln.clear(),Object.keys(gt).forEach(i=>delete gt[i]),aa)){const{listener:i,capture:s}=aa;qs(window,"focus",i,s),aa=null}}const wf={getPressedKeyString:u4,setScope:L1,getScope:va,deleteScope:h4,getPressedKeyCodes:c4,getAllKeyCodes:d4,isPressed:p4,filter:f4,trigger:v4,unbind:z1,keyMap:ga,modifier:Jr,modifierMap:Xs};for(const e in wf)Object.prototype.hasOwnProperty.call(wf,e)&&(Yr[e]=wf[e]);if(typeof window<"u"){const e=window.hotkeys;Yr.noConflict=t=>(t&&window.hotkeys===Yr&&(window.hotkeys=e),Yr),window.hotkeys=Yr}Yr.filter=()=>!0;function m4(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:i=!0}=r,s=N.useCallback((c,u)=>{i&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Yr.unbind(e,s)};N.useEffect(()=>(Yr(e,r,s),l),[e,r,s])}const b4=e=>{const t=N.useRef(null);return N.useEffect(()=>{const r=n=>{t.current&&!t.current.contains(n.target)&&e(n)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function y4(e){const t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}function w4(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function x4(e){const t=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function S4(e){const[t,r]=N.useState(e),n=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},i=N.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:i}}const $1=N.createContext(""),E4=e=>A.jsx($1.Provider,{value:e.value,children:e.children}),_4=()=>{const e=N.useContext($1);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function O4(e){const[t,r]=N.useState(e),n=N.useMemo(()=>k4(t,r),[]);return{state:t,actions:{...n,set:i=>{r(typeof i=="function"?i:s=>({...s,...i}))}}}}function k4(e,t=()=>{}){return Object.keys(e).reduce((n,i)=>({...n,[`set${He.upperFirst(i)}`]:s=>t(l=>({...l,[i]:s}))}),{})}const A4=(e,t,r={})=>{r={timeout:200,...r};const n=N.useRef(),i=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return N.useCallback((s,...l)=>{i(),t&&s.detail===1&&(n.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function Wt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=M4[e],s=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fo(e){return!!e&&!!e[_r]}function qi(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===D4})(e)||Array.isArray(e)||!!e[fy]||!!(!((t=e.constructor)===null||t===void 0)&&t[fy])||Jp(e)||Qp(e))}function ma(e,t,r){r===void 0&&(r=!1),Zo(e)===0?(r?Object.keys:nh)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Zo(e){var t=e[_r];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Jp(e)?2:Qp(e)?3:0}function Jf(e,t){return Zo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function T4(e,t){return Zo(e)===2?e.get(t):e[t]}function j1(e,t,r){var n=Zo(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function R4(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Jp(e){return P4&&e instanceof Map}function Qp(e){return N4&&e instanceof Set}function Li(e){return e.o||e.t}function eh(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=L4(e);delete t[_r];for(var r=nh(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function ba(e,t){return t===void 0&&(t=!1),th(e)||Fo(e)||!qi(e)||(Zo(e)>1&&(e.set=e.add=e.clear=e.delete=C4),Object.freeze(e),t&&ma(e,(function(r,n){return ba(n,!0)}),!0)),e}function C4(){Wt(2)}function th(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=z4[e];return t||Wt(18,e),t}function oy(){return process.env.NODE_ENV==="production"||Ho||Wt(0),Ho}function xf(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function $c(e){Qf(e),e.p.forEach(I4),e.p=null}function Qf(e){e===Ho&&(Ho=e.l)}function sy(e){return Ho={p:[],l:Ho,h:e,m:!0,_:0}}function I4(e){var t=e[_r];t.i===0||t.i===1?t.j():t.g=!0}function Sf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||xn("ES5").S(t,e,n),n?(r[_r].P&&($c(t),Wt(4)),qi(e)&&(e=jc(t,e),t.l||Fc(t,e)),t.u&&xn("Patches").M(r[_r].t,e,t.u,t.s)):e=jc(t,r,[]),$c(t),t.u&&t.v(t.u,t.s),e!==H1?e:void 0}function jc(e,t,r){if(th(t))return t;var n=t[_r];if(!n)return ma(t,(function(c,u){return ay(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Fc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=eh(n.k):n.o,s=i,l=!1;n.i===3&&(s=new Set(i),i.clear(),l=!0),ma(s,(function(c,u){return ay(e,n,i,c,u,r,l)})),Fc(e,i,!1),r&&e.u&&xn("Patches").N(n,r,e.u,e.s)}return n.o}function ay(e,t,r,n,i,s,l){if(process.env.NODE_ENV!=="production"&&i===r&&Wt(5),Fo(i)){var c=jc(e,i,s&&t&&t.i!==3&&!Jf(t.R,n)?s.concat(n):void 0);if(j1(r,n,c),!Fo(c))return;e.m=!1}else l&&r.add(i);if(qi(i)&&!th(i)){if(!e.h.D&&e._<1)return;jc(e,i),t&&t.A.l||Fc(e,i)}}function Fc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ba(t,r)}function Ef(e,t){var r=e[_r];return(r?Li(r):e)[t]}function ly(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ep(e){e.P||(e.P=!0,e.l&&ep(e.l))}function _f(e){e.o||(e.o=eh(e.t))}function tp(e,t,r){var n=Jp(t)?xn("MapSet").F(t,r):Qp(t)?xn("MapSet").T(t,r):e.O?(function(i,s){var l=Array.isArray(i),c={i:l?1:0,A:s?s.A:oy(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=c,f=rp;l&&(u=[c],f=Js);var g=Proxy.revocable(u,f),p=g.revoke,h=g.proxy;return c.k=h,c.j=p,h})(t,r):xn("ES5").J(t,r);return(r?r.A:oy()).p.push(n),n}function F1(e){return Fo(e)||Wt(22,e),(function t(r){if(!qi(r))return r;var n,i=r[_r],s=Zo(r);if(i){if(!i.P&&(i.i<4||!xn("ES5").K(i)))return i.t;i.I=!0,n=cy(r,s),i.I=!1}else n=cy(r,s);return ma(n,(function(l,c){i&&T4(i.t,l)===c||j1(n,l,t(c))})),s===3?new Set(n):n})(e)}function cy(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return eh(e)}var uy,Ho,rh=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",P4=typeof Map<"u",N4=typeof Set<"u",dy=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",H1=rh?Symbol.for("immer-nothing"):((uy={})["immer-nothing"]=!0,uy),fy=rh?Symbol.for("immer-draftable"):"__$immer_draftable",_r=rh?Symbol.for("immer-state"):"__$immer_state",M4={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},D4=""+Object.prototype.constructor,nh=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,L4=Object.getOwnPropertyDescriptors||function(e){var t={};return nh(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},z4={},rp={get:function(e,t){if(t===_r)return e;var r=Li(e);if(!Jf(r,t))return(function(i,s,l){var c,u=ly(s,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!qi(n)?n:n===Ef(e.t,t)?(_f(e),e.o[t]=tp(e.A.h,n,e)):n},has:function(e,t){return t in Li(e)},ownKeys:function(e){return Reflect.ownKeys(Li(e))},set:function(e,t,r){var n=ly(Li(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Ef(Li(e),t),s=i==null?void 0:i[_r];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(R4(r,i)&&(r!==void 0||Jf(e.t,t)))return!0;_f(e),ep(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Ef(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,_f(e),ep(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Li(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Wt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Wt(12)}},Js={};ma(rp,(function(e,t){Js[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Js.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Wt(13),Js.set.call(this,e,t,void 0)},Js.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Wt(14),rp.set.call(this,e[0],t,r,e[0])};var $4=(function(){function e(r){var n=this;this.O=dy,this.D=!0,this.produce=function(i,s,l){if(typeof i=="function"&&typeof s!="function"){var c=s;s=i;var u=n;return function(v){var y=this;v===void 0&&(v=c);for(var m=arguments.length,w=Array(m>1?m-1:0),x=1;x<m;x++)w[x-1]=arguments[x];return u.produce(v,(function(O){var _;return(_=s).call.apply(_,[y,O].concat(w))}))}}var f;if(typeof s!="function"&&Wt(6),l!==void 0&&typeof l!="function"&&Wt(7),qi(i)){var g=sy(n),p=tp(n,i,void 0),h=!0;try{f=s(p),h=!1}finally{h?$c(g):Qf(g)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return xf(g,l),Sf(v,g)}),(function(v){throw $c(g),v})):(xf(g,l),Sf(f,g))}if(!i||typeof i!="object"){if((f=s(i))===void 0&&(f=i),f===H1&&(f=void 0),n.D&&ba(f,!0),l){var b=[],S=[];xn("Patches").M(i,f,b,S),l(b,S)}return f}Wt(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(f){for(var g=arguments.length,p=Array(g>1?g-1:0),h=1;h<g;h++)p[h-1]=arguments[h];return n.produceWithPatches(f,(function(b){return i.apply(void 0,[b].concat(p))}))};var l,c,u=n.produce(i,s,(function(f,g){l=f,c=g}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(f){return[f,l,c]})):[u,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){qi(r)||Wt(8),Fo(r)&&(r=F1(r));var n=sy(this),i=tp(this,r,void 0);return i[_r].C=!0,Qf(n),i},t.finishDraft=function(r,n){var i=r&&r[_r];process.env.NODE_ENV!=="production"&&(i&&i.C||Wt(9),i.I&&Wt(10));var s=i.A;return xf(s,n),Sf(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!dy&&Wt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var l=xn("Patches").$;return Fo(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),Or=new $4,j4=Or.produce;Or.produceWithPatches.bind(Or);Or.setAutoFreeze.bind(Or);Or.setUseProxies.bind(Or);Or.applyPatches.bind(Or);Or.createDraft.bind(Or);Or.finishDraft.bind(Or);function F4(e){var t=N.useState(function(){return ba(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],N.useCallback(function(n){r(typeof n=="function"?j4(n):ba(n))},[])]}const H4=process.env.NODE_ENV==="development",Of=H4&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,B4=(e,t,r)=>{const[n,i]=F4(e),s=N.useRef(null);N.useEffect(()=>{var u;return r&&(s.current=Of==null?void 0:Of.connect({name:r,trace:!0}),(u=s.current)==null||u.init(e)),()=>{var f,g;(g=(f=s.current)==null?void 0:f.disconnect)==null||g.call(f)}},[]);const l=t&&typeof t=="object"?t:{},c=N.useMemo(()=>Object.keys(l).reduce((u,f)=>({...u,[f]:g=>(i(p=>{var h;l[f](p,g),(h=s.current)==null||h.send({type:l[f].name},F1(p))}),c)}),{}),[i]);return{state:n,dispatch:c}},W4=e=>{const t=mh(e),r=()=>{const{id:n,namespace:i}=t,s=window.DataSource.spaces[i];if(s&&s.sources)return s.sources[n]};return{actions:{setProperty:(n,i)=>{try{const s=r();s&&s.setValue(n,i)}catch{}},getValue:()=>r()}}},V4=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:i}=mh(e),[s,l]=N.useState(!1),c=N.useCallback(()=>{try{return window.DataSource.getSource(n,i)}catch{return}},[i,n]),u=(p,h)=>{const b=c();b&&b.setValue(p,h)},f=async()=>{const p=c();if(!p)return;const h=await(p==null?void 0:p.getValue());r==null||r(h)},g=p=>{const{id:h}=p;!s&&h&&h.startsWith(n)&&l(!0)};return N.useEffect(()=>{if(s){const p=c();return p?(p==null||p.addListener("changed",f),()=>p==null?void 0:p.removeListener("changed",f)):void 0}},[s]),N.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:s,setCurrentSource:u}};function U4(e=!1){const[t,r]=N.useState(e),n=N.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(i=>!i)}),[]);return[t,n]}function q4(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),N.useCallback((...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function B1(e,t){const r=e!==void 0;return[r,r?e:t]}function G4({value:e,defaultValue:t,onChange:r}){const[n,i]=N.useState(t),[s,l]=B1(e,n),c=N.useCallback(u=>{const f=typeof u=="function"?u(l):u;s||i(f),f!==l&&(r==null||r(f))},[l,s,r]);return[l,c]}const Z4=typeof window<"u"?N.useLayoutEffect:N.useEffect;function K4(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function Y4(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function Hn(e){return typeof e=="function"}function W1(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var kf=W1(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
250
+ `)+ce+`return __p
251
+ }`;var Ne=Xv(function(){return We(C,Se+"return "+ce).apply(r,L)});if(Ne.source=ce,bd(Ne))throw Ne;return Ne}function OR(o){return qe(o).toLowerCase()}function kR(o){return qe(o).toUpperCase()}function AR(o,a,d){if(o=qe(o),o&&(d||a===r))return og(o);if(!o||!(a=gr(a)))return o;var E=Br(o),k=Br(a),C=sg(E,k),L=ag(E,k)+1;return ti(E,C,L).join("")}function TR(o,a,d){if(o=qe(o),o&&(d||a===r))return o.slice(0,cg(o)+1);if(!o||!(a=gr(a)))return o;var E=Br(o),k=ag(E,Br(a))+1;return ti(E,0,k).join("")}function RR(o,a,d){if(o=qe(o),o&&(d||a===r))return o.replace(On,"");if(!o||!(a=gr(a)))return o;var E=Br(o),k=sg(E,Br(a));return ti(E,k).join("")}function CR(o,a){var d=$,E=M;if(pt(a)){var k="separator"in a?a.separator:k;d="length"in a?Ie(a.length):d,E="omission"in a?gr(a.omission):E}o=qe(o);var C=o.length;if(no(o)){var L=Br(o);C=L.length}if(d>=C)return o;var B=d-io(E);if(B<1)return E;var G=L?ti(L,0,B).join(""):o.slice(0,B);if(k===r)return G+E;if(L&&(B+=G.length-B),yd(k)){if(o.slice(B).search(k)){var oe,se=G;for(k.global||(k=Du(k.source,qe(kn.exec(k))+"g")),k.lastIndex=0;oe=k.exec(se);)var ce=oe.index;G=G.slice(0,ce===r?B:ce)}}else if(o.indexOf(gr(k),B)!=B){var me=G.lastIndexOf(k);me>-1&&(G=G.slice(0,me))}return G+E}function PR(o){return o=qe(o),o&&es.test(o)?o.replace(Qo,a_):o}var IR=fo(function(o,a,d){return o+(d?" ":"")+a.toUpperCase()}),Ed=Xg("toUpperCase");function Yv(o,a,d){return o=qe(o),a=d?r:a,a===r?r_(o)?u_(o):GE(o):o.match(a)||[]}var Xv=Me(function(o,a){try{return fr(o,r,a)}catch(d){return bd(d)?d:new Re(d)}}),NR=Cn(function(o,a){return pr(a,function(d){d=Ur(d),sn(o,d,vd(o[d],o))}),o});function MR(o){var a=o==null?0:o.length,d=ke();return o=a?ut(o,function(E){if(typeof E[1]!="function")throw new Rr(l);return[d(E[0]),E[1]]}):[],Me(function(E){for(var k=-1;++k<a;){var C=o[k];if(fr(C[0],this,E))return fr(C[1],this,E)}})}function DR(o){return aO(Pr(o,h))}function _d(o){return function(){return o}}function LR(o,a){return o==null||o!==o?a:o}var zR=Qg(),$R=Qg(!0);function or(o){return o}function Od(o){return Rg(typeof o=="function"?o:Pr(o,h))}function jR(o){return Pg(Pr(o,h))}function FR(o,a){return Ig(o,Pr(a,h))}var HR=Me(function(o,a){return function(d){return us(d,o,a)}}),WR=Me(function(o,a){return function(d){return us(o,d,a)}});function kd(o,a,d){var E=It(a),k=sl(a,E);d==null&&!(pt(a)&&(k.length||!E.length))&&(d=a,a=o,o=this,k=sl(a,It(a)));var C=!(pt(d)&&"chain"in d)||!!d.chain,L=In(o);return pr(k,function(B){var G=a[B];o[B]=G,L&&(o.prototype[B]=function(){var oe=this.__chain__;if(C||oe){var se=o(this.__wrapped__),ce=se.__actions__=rr(this.__actions__);return ce.push({func:G,args:arguments,thisArg:o}),se.__chain__=oe,se}return G.apply(o,Kn([this.value()],arguments))})}),o}function BR(){return $t._===this&&($t._=v_),this}function Ad(){}function VR(o){return o=Ie(o),Me(function(a){return Ng(a,o)})}var UR=nd(ut),qR=nd(eg),GR=nd(Tu);function Jv(o){return ud(o)?Ru(Ur(o)):_O(o)}function ZR(o){return function(a){return o==null?r:Ai(o,a)}}var KR=tv(),YR=tv(!0);function Td(){return[]}function Rd(){return!1}function XR(){return{}}function JR(){return""}function QR(){return!0}function eC(o,a){if(o=Ie(o),o<1||o>ve)return[];var d=ee,E=qt(o,ee);a=ke(a),o-=ee;for(var k=Iu(E,a);++d<o;)a(d);return k}function tC(o){return Pe(o)?ut(o,Ur):vr(o)?[o]:rr(mv(qe(o)))}function rC(o){var a=++h_;return qe(o)+a}var nC=fl(function(o,a){return o+a},0),iC=id("ceil"),oC=fl(function(o,a){return o/a},1),sC=id("floor");function aC(o){return o&&o.length?ol(o,or,Bu):r}function lC(o,a){return o&&o.length?ol(o,ke(a,2),Bu):r}function cC(o){return ng(o,or)}function uC(o,a){return ng(o,ke(a,2))}function dC(o){return o&&o.length?ol(o,or,Gu):r}function fC(o,a){return o&&o.length?ol(o,ke(a,2),Gu):r}var pC=fl(function(o,a){return o*a},1),hC=id("round"),gC=fl(function(o,a){return o-a},0);function vC(o){return o&&o.length?Pu(o,or):0}function mC(o,a){return o&&o.length?Pu(o,ke(a,2)):0}return T.after=FA,T.ary=Tv,T.assign=AT,T.assignIn=Wv,T.assignInWith=Bv,T.assignWith=wd,T.at=TT,T.before=Rv,T.bind=vd,T.bindAll=NR,T.bindKey=Cv,T.castArray=JA,T.chain=Ov,T.chunk=ak,T.compact=lk,T.concat=ck,T.cond=MR,T.conforms=DR,T.constant=_d,T.countBy=mA,T.create=RT,T.curry=Pv,T.curryRight=Iv,T.debounce=Nv,T.defaults=CT,T.defaultsDeep=PT,T.defer=HA,T.delay=WA,T.difference=uk,T.differenceBy=dk,T.differenceWith=fk,T.drop=pk,T.dropRight=hk,T.dropRightWhile=gk,T.dropWhile=vk,T.fill=mk,T.filter=yA,T.flatMap=SA,T.flatMapDeep=EA,T.flatMapDepth=_A,T.flatten=xv,T.flattenDeep=bk,T.flattenDepth=yk,T.flip=BA,T.flow=zR,T.flowRight=$R,T.fromPairs=wk,T.functions=$T,T.functionsIn=jT,T.groupBy=OA,T.initial=Sk,T.intersection=Ek,T.intersectionBy=_k,T.intersectionWith=Ok,T.invert=HT,T.invertBy=WT,T.invokeMap=AA,T.iteratee=Od,T.keyBy=TA,T.keys=It,T.keysIn=ir,T.map=yl,T.mapKeys=VT,T.mapValues=UT,T.matches=jR,T.matchesProperty=FR,T.memoize=xl,T.merge=qT,T.mergeWith=Vv,T.method=HR,T.methodOf=WR,T.mixin=kd,T.negate=Sl,T.nthArg=VR,T.omit=GT,T.omitBy=ZT,T.once=VA,T.orderBy=RA,T.over=UR,T.overArgs=UA,T.overEvery=qR,T.overSome=GR,T.partial=md,T.partialRight=Mv,T.partition=CA,T.pick=KT,T.pickBy=Uv,T.property=Jv,T.propertyOf=ZR,T.pull=Rk,T.pullAll=Ev,T.pullAllBy=Ck,T.pullAllWith=Pk,T.pullAt=Ik,T.range=KR,T.rangeRight=YR,T.rearg=qA,T.reject=NA,T.remove=Nk,T.rest=GA,T.reverse=hd,T.sampleSize=DA,T.set=XT,T.setWith=JT,T.shuffle=LA,T.slice=Mk,T.sortBy=jA,T.sortedUniq=Hk,T.sortedUniqBy=Wk,T.split=xR,T.spread=ZA,T.tail=Bk,T.take=Vk,T.takeRight=Uk,T.takeRightWhile=qk,T.takeWhile=Gk,T.tap=lA,T.throttle=KA,T.thru=bl,T.toArray=jv,T.toPairs=qv,T.toPairsIn=Gv,T.toPath=tC,T.toPlainObject=Hv,T.transform=QT,T.unary=YA,T.union=Zk,T.unionBy=Kk,T.unionWith=Yk,T.uniq=Xk,T.uniqBy=Jk,T.uniqWith=Qk,T.unset=eR,T.unzip=gd,T.unzipWith=_v,T.update=tR,T.updateWith=rR,T.values=go,T.valuesIn=nR,T.without=eA,T.words=Yv,T.wrap=XA,T.xor=tA,T.xorBy=rA,T.xorWith=nA,T.zip=iA,T.zipObject=oA,T.zipObjectDeep=sA,T.zipWith=aA,T.entries=qv,T.entriesIn=Gv,T.extend=Wv,T.extendWith=Bv,kd(T,T),T.add=nC,T.attempt=Xv,T.camelCase=aR,T.capitalize=Zv,T.ceil=iC,T.clamp=iR,T.clone=QA,T.cloneDeep=tT,T.cloneDeepWith=rT,T.cloneWith=eT,T.conformsTo=nT,T.deburr=Kv,T.defaultTo=LR,T.divide=oC,T.endsWith=lR,T.eq=qr,T.escape=cR,T.escapeRegExp=uR,T.every=bA,T.find=wA,T.findIndex=yv,T.findKey=IT,T.findLast=xA,T.findLastIndex=wv,T.findLastKey=NT,T.floor=sC,T.forEach=kv,T.forEachRight=Av,T.forIn=MT,T.forInRight=DT,T.forOwn=LT,T.forOwnRight=zT,T.get=xd,T.gt=iT,T.gte=oT,T.has=FT,T.hasIn=Sd,T.head=Sv,T.identity=or,T.includes=kA,T.indexOf=xk,T.inRange=oR,T.invoke=BT,T.isArguments=Ci,T.isArray=Pe,T.isArrayBuffer=sT,T.isArrayLike=nr,T.isArrayLikeObject=mt,T.isBoolean=aT,T.isBuffer=ri,T.isDate=lT,T.isElement=cT,T.isEmpty=uT,T.isEqual=dT,T.isEqualWith=fT,T.isError=bd,T.isFinite=pT,T.isFunction=In,T.isInteger=Dv,T.isLength=El,T.isMap=Lv,T.isMatch=hT,T.isMatchWith=gT,T.isNaN=vT,T.isNative=mT,T.isNil=yT,T.isNull=bT,T.isNumber=zv,T.isObject=pt,T.isObjectLike=vt,T.isPlainObject=vs,T.isRegExp=yd,T.isSafeInteger=wT,T.isSet=$v,T.isString=_l,T.isSymbol=vr,T.isTypedArray=ho,T.isUndefined=xT,T.isWeakMap=ST,T.isWeakSet=ET,T.join=kk,T.kebabCase=dR,T.last=Nr,T.lastIndexOf=Ak,T.lowerCase=fR,T.lowerFirst=pR,T.lt=_T,T.lte=OT,T.max=aC,T.maxBy=lC,T.mean=cC,T.meanBy=uC,T.min=dC,T.minBy=fC,T.stubArray=Td,T.stubFalse=Rd,T.stubObject=XR,T.stubString=JR,T.stubTrue=QR,T.multiply=pC,T.nth=Tk,T.noConflict=BR,T.noop=Ad,T.now=wl,T.pad=hR,T.padEnd=gR,T.padStart=vR,T.parseInt=mR,T.random=sR,T.reduce=PA,T.reduceRight=IA,T.repeat=bR,T.replace=yR,T.result=YT,T.round=hC,T.runInContext=q,T.sample=MA,T.size=zA,T.snakeCase=wR,T.some=$A,T.sortedIndex=Dk,T.sortedIndexBy=Lk,T.sortedIndexOf=zk,T.sortedLastIndex=$k,T.sortedLastIndexBy=jk,T.sortedLastIndexOf=Fk,T.startCase=SR,T.startsWith=ER,T.subtract=gC,T.sum=vC,T.sumBy=mC,T.template=_R,T.times=eC,T.toFinite=Nn,T.toInteger=Ie,T.toLength=Fv,T.toLower=OR,T.toNumber=Mr,T.toSafeInteger=kT,T.toString=qe,T.toUpper=kR,T.trim=AR,T.trimEnd=TR,T.trimStart=RR,T.truncate=CR,T.unescape=PR,T.uniqueId=rC,T.upperCase=IR,T.upperFirst=Ed,T.each=kv,T.eachRight=Av,T.first=Sv,kd(T,(function(){var o={};return an(T,function(a,d){Ue.call(T.prototype,d)||(o[d]=a)}),o})(),{chain:!1}),T.VERSION=n,pr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){T[o].placeholder=T}),pr(["drop","take"],function(o,a){ze.prototype[o]=function(d){d=d===r?1:At(Ie(d),0);var E=this.__filtered__&&!a?new ze(this):this.clone();return E.__filtered__?E.__takeCount__=qt(d,E.__takeCount__):E.__views__.push({size:qt(d,ee),type:o+(E.__dir__<0?"Right":"")}),E},ze.prototype[o+"Right"]=function(d){return this.reverse()[o](d).reverse()}}),pr(["filter","map","takeWhile"],function(o,a){var d=a+1,E=d==I||d==te;ze.prototype[o]=function(k){var C=this.clone();return C.__iteratees__.push({iteratee:ke(k,3),type:d}),C.__filtered__=C.__filtered__||E,C}}),pr(["head","last"],function(o,a){var d="take"+(a?"Right":"");ze.prototype[o]=function(){return this[d](1).value()[0]}}),pr(["initial","tail"],function(o,a){var d="drop"+(a?"":"Right");ze.prototype[o]=function(){return this.__filtered__?new ze(this):this[d](1)}}),ze.prototype.compact=function(){return this.filter(or)},ze.prototype.find=function(o){return this.filter(o).head()},ze.prototype.findLast=function(o){return this.reverse().find(o)},ze.prototype.invokeMap=Me(function(o,a){return typeof o=="function"?new ze(this):this.map(function(d){return us(d,o,a)})}),ze.prototype.reject=function(o){return this.filter(Sl(ke(o)))},ze.prototype.slice=function(o,a){o=Ie(o);var d=this;return d.__filtered__&&(o>0||a<0)?new ze(d):(o<0?d=d.takeRight(-o):o&&(d=d.drop(o)),a!==r&&(a=Ie(a),d=a<0?d.dropRight(-a):d.take(a-o)),d)},ze.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},ze.prototype.toArray=function(){return this.take(ee)},an(ze.prototype,function(o,a){var d=/^(?:filter|find|map|reject)|While$/.test(a),E=/^(?:head|last)$/.test(a),k=T[E?"take"+(a=="last"?"Right":""):a],C=E||/^find/.test(a);k&&(T.prototype[a]=function(){var L=this.__wrapped__,B=E?[1]:arguments,G=L instanceof ze,oe=B[0],se=G||Pe(L),ce=function(Le){var $e=k.apply(T,Kn([Le],B));return E&&me?$e[0]:$e};se&&d&&typeof oe=="function"&&oe.length!=1&&(G=se=!1);var me=this.__chain__,Se=!!this.__actions__.length,Ae=C&&!me,Ne=G&&!Se;if(!C&&se){L=Ne?L:new ze(this);var _e=o.apply(L,B);return _e.__actions__.push({func:bl,args:[ce],thisArg:r}),new Cr(_e,me)}return Ae&&Ne?o.apply(this,B):(_e=this.thru(ce),Ae?E?_e.value()[0]:_e.value():_e)})}),pr(["pop","push","shift","sort","splice","unshift"],function(o){var a=Va[o],d=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",E=/^(?:pop|shift)$/.test(o);T.prototype[o]=function(){var k=arguments;if(E&&!this.__chain__){var C=this.value();return a.apply(Pe(C)?C:[],k)}return this[d](function(L){return a.apply(Pe(L)?L:[],k)})}}),an(ze.prototype,function(o,a){var d=T[a];if(d){var E=d.name+"";Ue.call(lo,E)||(lo[E]=[]),lo[E].push({name:a,func:d})}}),lo[dl(r,w).name]=[{name:"wrapper",func:r}],ze.prototype.clone=I_,ze.prototype.reverse=N_,ze.prototype.value=M_,T.prototype.at=cA,T.prototype.chain=uA,T.prototype.commit=dA,T.prototype.next=fA,T.prototype.plant=hA,T.prototype.reverse=gA,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=vA,T.prototype.first=T.prototype.head,ns&&(T.prototype[ns]=pA),T}),oo=d_();Si?((Si.exports=oo)._=oo,_u._=oo):$t._=oo}).call(B4)})(Ys,Ys.exports)),Ys.exports}var Fe=V4();const tp={FdSave:V5,FdWarningDanger:Op,FdInfoCircle:z5,FdInfoBold:zf};var eh=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(eh||{}),Io=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Io||{}),To=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(To||{});const U4={[Io.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Io.DANGER]:{icon:"red-500",button:"primary-dark"},[Io.WARNING]:{icon:"yellow-400",button:"primary-dark"}},q4=({name:e,color:t=Io.PRIMARY,className:r="w-8 h-8"})=>{const n=tp[e]||tp.FdInfoCircle,i=`text-${U4[t].icon}`;return A.jsx(n,{className:st(r,i)})},G4=({id:e,title:t,message:r,icon:n,type:i,color:s,zIndex:l=3e3,views:c,width:u=520,hasOverlay:f=!0,container:g,onClose:p,onEdit:h})=>{const b=y=>{p({id:e,reason:y})};N.useEffect(()=>{function y(m){m.key==="Escape"&&b(To.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const S=Fe.merge(Fe.values(c==null?void 0:c.toggles).flatMap(y=>y.value?y.warnings||[]:[]),c==null?void 0:c.tips),v=(y,m)=>{var x;if(!(c!=null&&c.toggles))return;const w=Fe.cloneDeep(c);(x=w.toggles)!=null&&x[y]&&(w.toggles[y].value=m),h({id:e,views:w})};return En.createPortal(A.jsx($c,{appear:!0,show:!0,as:N.Fragment,children:A.jsx("div",{className:st("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":f}),style:{zIndex:l},onClick:()=>b(To.CANCELED),children:A.jsx($c.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:A.jsx(qi,{depth:3,borderType:"light","data-cy":"confirmation-modal-cy",className:"relative rounded-md border",style:{width:u},onClick:y=>y.stopPropagation(),children:A.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?A.jsx("div",{className:"flex items-center justify-center",children:A.jsx(q4,{name:n,color:s,className:"w-6 h-6"})}):null,A.jsx(Z4,{condition:t,children:A.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-center",children:t})}),A.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium",children:r}),A.jsx("div",{className:"text-xs",children:Fe.values(c==null?void 0:c.toggles).map(y=>A.jsx("div",{children:A.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[A.jsx(Nw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),A.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),A.jsx(K4,{warnings:S}),A.jsx("div",{className:"flex items-center gap-4",children:i===eh.CONFIRM?A.jsxs(A.Fragment,{children:[A.jsx(Wn,{autoFocus:!0,color:"primary",onClick:()=>b(To.CONFIRMED),children:"Confirm"}),A.jsx(Wn,{color:"white",variant:"outline",onClick:()=>b(To.CANCELED),children:"Cancel"})]}):A.jsx(Wn,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),g||document.body)},Z4=e=>e.condition?A.jsx(A.Fragment,{children:e.children}):null,K4=e=>e.warnings?A.jsx($c,{appear:!0,show:!!e.warnings.length,as:N.Fragment,children:A.jsx(qi,{depth:1,className:"flex flex-col gap-1 rounded-sm p-2 text-xs",children:e.warnings.map((t,r)=>A.jsx($c.Child,{as:N.Fragment,enter:"ease-out duration-300",enterFrom:"opacity-0 scale-95",enterTo:"opacity-100 scale-100",leave:"ease-in duration-200",leaveFrom:"opacity-100 scale-100",leaveTo:"opacity-0 scale-95",children:A.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[A.jsx(Op,{className:st({"h-3 w-3":!0,"text-warning-text":t.type==="warning","text-negative-text":t.type==="error","text-primary":t.type==="info"},"mr-3")}),A.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var I1=(e=>(e[e.MIN=.5]="MIN",e[e.MAX=10]="MAX",e[e.STEP=.5]="STEP",e[e.INIT=1]="INIT",e[e.TRANSITION=200]="TRANSITION",e))(I1||{});const Y4=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:i})=>A.jsxs(qi,{depth:4,className:"flex items-center rounded p-1",children:[A.jsx($5,{onClick:i,className:st("h-5 w-5 p-1",{"text-inactive-text":e<=t,"cursor-pointer rounded hover:bg-primary-hover":e>t})}),A.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),A.jsx(j5,{onClick:n,className:st("h-5 w-5 p-1",{"text-inactive-text":e>=r,"cursor-pointer rounded hover:bg-primary-hover":e<r})})]}),hn=30,N1=.3,M1=.6,X4=()=>typeof window>"u"?400:Math.round(window.innerHeight*N1),D1=()=>typeof window>"u"?600:Math.round(window.innerHeight*M1),sy=e=>{const t=D1();return Math.min(Math.max(e,hn),t)},J4=e=>{const[t,r]=N.useState(hn),n=N.useRef(),i=N.useRef(null),s=D1(),l=X4(),c=t>hn;N.useEffect(()=>{r(e.isOpen?l:hn)},[e.isOpen,l]),N.useEffect(()=>{const f=()=>{r(g=>g<=hn?hn:sy(g))};return window.addEventListener("resize",f),()=>{window.removeEventListener("resize",f),i.current&&cancelAnimationFrame(i.current)}},[]);const u=()=>{if(c){r(hn),e.onClose();return}r(l),e.onOpen()};return A.jsx(Pw,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:s,minHeight:hn,onResizeStart:()=>{n.current&&Date.now()-n.current<200?r(c?hn:l):n.current=Date.now()},onResize:(f,g,p)=>{i.current&&cancelAnimationFrame(i.current),i.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),i.current=null})},onResizeStop:(f,g,p,h)=>{r(b=>sy(b+h.height))},handleComponent:{top:A.jsx(Iw,{})},depth:1,children:A.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Fe.kebabCase(e.path)}`,children:[A.jsxs("div",{className:st("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[A.jsxs("div",{className:"group flex items-center justify-start",children:[A.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),e.tipKey?A.jsx(a1,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,A.jsx(Wn,{variant:"ghost",color:"white","data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,onClick:u,children:c?A.jsx(D5,{className:"h-4 w-4"}):A.jsx(L5,{className:"h-4 w-4"})})]}),e.headerRightSide]}),A.jsxs(mc,{of:c,children:[A.jsx(mc,{of:e.render,children:e.render}),A.jsx(mc,{of:!e.render,children:e.children})]})]})})},Q4=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:n,onReset:i,resetButtonLabel:s="Reset Page"})=>A.jsx("div",{className:"flex h-full w-full items-center justify-center",children:A.jsxs(qi,{depth:4,borderType:"light",className:"flex flex-col items-center rounded px-10 py-6 text-center shadow-md",children:[A.jsxs("div",{className:"relative",children:[A.jsx(W5,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),A.jsx("div",{className:"size-full absolute inset-0 rounded-full z-0 bg-white"})]}),A.jsx("p",{className:"mb-2 mt-4 text-2xl text-body",children:e}),A.jsx("p",{className:"text-md mb-4 font-extralight text-muted",children:t}),A.jsxs("div",{className:"flex gap-4",children:[n&&A.jsx(Wn,{onClick:n,children:"Open in Text Editor"}),i&&A.jsx(Wn,{color:"negative",onClick:i,children:"Reset Page"}),r&&A.jsx(Wn,{color:"white",variant:"outline",onClick:r,children:"Close"})]})]})}),ez=({onChange:e,value:t,delay:r,placeholder:n,containerClassName:i,onFocusInput:s,icon:l,"data-cy":c})=>{const[u,f]=N.useState(t),g=N.useRef(null);return A.jsx(xs.Root,{className:st("w-full",i),children:A.jsxs(xs.Group,{children:[A.jsx(xs.Icon,{children:l?A.jsx("button",{className:"mr-1 flex h-6 w-7 items-center justify-center text-xs rounded bg-grey-300 hover:bg-primary-hover",onClick:()=>{var p;return(p=g.current)==null?void 0:p.focus()},children:A.jsx("span",{className:`text-base fa ${l}`})}):A.jsx(U5,{})}),A.jsx(xs.Field,{ref:g,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:p=>{f(p.currentTarget.value);const h=Fe.escapeRegExp(p.target.value);if(!r)return e(h);Fe.debounce(e,r)(h)},value:u,onFocus:()=>s&&s(),onDrop:p=>p.preventDefault()}),t&&A.jsx(xs.Icon,{isAction:!0,onClick:()=>{e(""),f("")},children:A.jsx(Wo,{})})]})})},tz=N.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:i,...s},l)=>A.jsx(A.Fragment,{children:A.jsx(Aw,{label:e,children:A.jsx(Wn,{ref:l,variant:"ghost",color:"white",...s,children:A.jsx(t,{className:st(i)})})})}));function Ro(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function rz({rowGap:e,columnGap:t,templateColumns:r,templateRows:n,height:i,width:s,style:l,...c}){return A.jsx("div",{...c,style:{display:"grid",rowGap:Ro(e),columnGap:Ro(t),gridTemplateColumns:r,gridTemplateRows:n,height:Ro(i),width:Ro(s),...l}})}function nz({colStart:e,colSpan:t,rowStart:r,rowSpan:n,sx:i,style:s,...l}){return A.jsx("div",{...l,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:n?`span ${n}`:void 0,...i,...s}})}function iz({columns:e=1,spacingX:t,spacingY:r,style:n,...i}){return A.jsx("div",{...i,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:Ro(t),rowGap:Ro(r),...n}})}const L1=N.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:n,style:i,...s},l)=>{const[c,u]=N.useState(!1);return N.useEffect(()=>{u(!1)},[n]),!n||c?A.jsx(A.Fragment,{children:e}):A.jsx("img",{...s,ref:l,src:n,style:i,onLoad:f=>{u(!1),r==null||r(f)},onError:f=>{u(!0),t==null||t(f)}})});L1.displayName="Image";function oz(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Sf=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Ef(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function qs(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function z1(e,t){const r=t.slice(0,t.length-1);for(let n=0;n<r.length;n++)r[n]=e[r[n].toLowerCase()];return r}function $1(e){typeof e!="string"&&(e=""),e=e.replace(/\s/g,"");const t=e.split(",");let r=t.lastIndexOf("");for(;r>=0;)t[r-1]+=",",t.splice(r,1),r=t.lastIndexOf("");return t}function sz(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let i=!0;for(let s=0;s<r.length;s++)n.indexOf(r[s])===-1&&(i=!1);return i}const ga={backspace:8,"⌫":8,tab:9,clear:12,enter:13,"↩":13,return:13,esc:27,escape:27,space:32,left:37,up:38,right:39,down:40,arrowup:38,arrowdown:40,arrowleft:37,arrowright:39,del:46,delete:46,ins:45,insert:45,home:36,end:35,pageup:33,pagedown:34,capslock:20,num_0:96,num_1:97,num_2:98,num_3:99,num_4:100,num_5:101,num_6:102,num_7:103,num_8:104,num_9:105,num_multiply:106,num_add:107,num_enter:108,num_subtract:109,num_decimal:110,num_divide:111,"⇪":20,",":188,".":190,"/":191,"`":192,"-":Sf?173:189,"=":Sf?61:187,";":Sf?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Qr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Xs={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},Wt={16:!1,18:!1,17:!1,91:!1},gt={};for(let e=1;e<20;e++)ga["f".concat(e)]=111+e;let ft=[],aa=null,j1="all";const $n=new Map,Go=e=>ga[e.toLowerCase()]||Qr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),az=e=>Object.keys(ga).find(t=>ga[t]===e),lz=e=>Object.keys(Qr).find(t=>Qr[t]===e);function F1(e){j1=e||"all"}function va(){return j1||"all"}function cz(){return ft.slice(0)}function uz(){return ft.map(e=>az(e)||lz(e)||String.fromCharCode(e))}function dz(){const e=[];return Object.keys(gt).forEach(t=>{gt[t].forEach(r=>{let{key:n,scope:i,mods:s,shortcut:l}=r;e.push({scope:i,shortcut:l,mods:s,keys:n.split("+").map(c=>Go(c))})})}),e}function fz(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const i=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(i||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function pz(e){return typeof e=="string"&&(e=Go(e)),ft.indexOf(e)!==-1}function hz(e,t){let r,n;e||(e=va());for(const i in gt)if(Object.prototype.hasOwnProperty.call(gt,i))for(r=gt[i],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return th(c)}):n++;va()===e&&F1(t||"all")}function gz(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Go(e.key));const r=ft.indexOf(t);if(r>=0&&ft.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&ft.splice(0,ft.length),(t===93||t===224)&&(t=91),t in Wt){Wt[t]=!1;for(const n in Qr)Qr[n]===t&&(Xr[n]=!1)}}function H1(e){if(typeof e>"u")Object.keys(gt).forEach(i=>{Array.isArray(gt[i])&&gt[i].forEach(s=>tc(s)),delete gt[i]}),th(null);else if(Array.isArray(e))e.forEach(i=>{i.key&&tc(i)});else if(typeof e=="object")e.key&&tc(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];let[i,s]=r;typeof i=="function"&&(s=i,i=""),tc({key:e,scope:i,method:s,splitKey:"+"})}}const tc=e=>{let{key:t,scope:r,method:n,splitKey:i="+"}=e;$1(t).forEach(l=>{const c=l.split(i),u=c.length,f=c[u-1],g=f==="*"?"*":Go(f);if(!gt[g])return;r||(r=va());const p=u>1?z1(Qr,c):[],h=[];gt[g]=gt[g].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&sz(b.mods,p);return v&&h.push(b.element),!v}),h.forEach(b=>th(b))})};function ay(e,t,r,n){if(t.element!==n)return;let i;if(t.scope===r||t.scope==="all"){i=t.mods.length>0;for(const s in Wt)Object.prototype.hasOwnProperty.call(Wt,s)&&(!Wt[s]&&t.mods.indexOf(+s)>-1||Wt[s]&&t.mods.indexOf(+s)===-1)&&(i=!1);(t.mods.length===0&&!Wt[16]&&!Wt[18]&&!Wt[17]&&!Wt[91]||i||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(ft),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function ly(e,t){const r=gt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Xr.filter.call(this,e))return;if((n===93||n===224)&&(n=91),ft.indexOf(n)===-1&&n!==229&&ft.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=Xs[c];e[c]&&ft.indexOf(u)===-1?ft.push(u):!e[c]&&ft.indexOf(u)>-1?ft.splice(ft.indexOf(u),1):c==="metaKey"&&e[c]&&(ft=ft.filter(f=>f in Xs||f===n))}),n in Wt){Wt[n]=!0;for(const c in Qr)if(Object.prototype.hasOwnProperty.call(Qr,c)){const u=Xs[Qr[c]];Xr[c]=e[u]}if(!r)return}for(const c in Wt)Object.prototype.hasOwnProperty.call(Wt,c)&&(Wt[c]=e[Xs[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(ft.indexOf(17)===-1&&ft.push(17),ft.indexOf(18)===-1&&ft.push(18),Wt[17]=!0,Wt[18]=!0);const i=va();if(r)for(let c=0;c<r.length;c++)r[c].scope===i&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&ay(e,r[c],i,t);if(!(n in gt))return;const s=gt[n],l=s.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&s[c].keydown||e.type==="keyup"&&s[c].keyup)&&s[c].key){const u=s[c],{splitKey:f}=u,g=u.key.split(f),p=[];for(let h=0;h<g.length;h++)p.push(Go(g[h]));p.sort().join("")===ft.sort().join("")&&ay(e,u,i,t)}}function Xr(e,t,r){ft=[];const n=$1(e);let i=[],s="all",l=document,c=0,u=!1,f=!0,g="+",p=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(s=t.scope),t.element&&(l=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(f=t.keydown),t.capture!==void 0&&(p=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(s=t),h&&H1(e,s);c<n.length;c++)e=n[c].split(g),i=[],e.length>1&&(i=z1(Qr,e)),e=e[e.length-1],e=e==="*"?"*":Go(e),e in gt||(gt[e]=[]),gt[e].push({keyup:u,keydown:f,scope:s,mods:i,shortcut:n[c],method:r,key:n[c],splitKey:g,element:l});if(typeof l<"u"&&window){if(!$n.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return ly(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;ly(v,l),gz(v)};$n.set(l,{keydownListener:b,keyupListenr:S,capture:p}),Ef(l,"keydown",b,p),Ef(l,"keyup",S,p)}if(!aa){const b=()=>{ft=[]};aa={listener:b,capture:p},Ef(window,"focus",b,p)}}}function vz(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(gt).forEach(r=>{gt[r].filter(i=>i.scope===t&&i.shortcut===e).forEach(i=>{i&&i.method&&i.method()})})}function th(e){const t=Object.values(gt).flat();if(t.findIndex(n=>{let{element:i}=n;return i===e})<0){const{keydownListener:n,keyupListenr:i,capture:s}=$n.get(e)||{};n&&i&&(qs(e,"keyup",i,s),qs(e,"keydown",n,s),$n.delete(e))}if((t.length<=0||$n.size<=0)&&(Object.keys($n).forEach(i=>{const{keydownListener:s,keyupListenr:l,capture:c}=$n.get(i)||{};s&&l&&(qs(i,"keyup",l,c),qs(i,"keydown",s,c),$n.delete(i))}),$n.clear(),Object.keys(gt).forEach(i=>delete gt[i]),aa)){const{listener:i,capture:s}=aa;qs(window,"focus",i,s),aa=null}}const _f={getPressedKeyString:uz,setScope:F1,getScope:va,deleteScope:hz,getPressedKeyCodes:cz,getAllKeyCodes:dz,isPressed:pz,filter:fz,trigger:vz,unbind:H1,keyMap:ga,modifier:Qr,modifierMap:Xs};for(const e in _f)Object.prototype.hasOwnProperty.call(_f,e)&&(Xr[e]=_f[e]);if(typeof window<"u"){const e=window.hotkeys;Xr.noConflict=t=>(t&&window.hotkeys===Xr&&(window.hotkeys=e),Xr),window.hotkeys=Xr}Xr.filter=()=>!0;function mz(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:i=!0}=r,s=N.useCallback((c,u)=>{i&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Xr.unbind(e,s)};N.useEffect(()=>(Xr(e,r,s),l),[e,r,s])}const bz=e=>{const t=N.useRef(null);return N.useEffect(()=>{const r=n=>{t.current&&!t.current.contains(n.target)&&e(n)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function yz(e){const t=N.useRef();return N.useEffect(()=>{t.current=e},[e]),t.current}function wz(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e},[e]),t}function xz(e){const t=N.useRef(null);return N.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function Sz(e){const[t,r]=N.useState(e),n=(s,l)=>{r(c=>({...c,features:{...c.features,[s]:{enabled:l}}}))},i=N.useCallback((...s)=>s.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:i}}const W1=N.createContext(""),Ez=e=>A.jsx(W1.Provider,{value:e.value,children:e.children}),_z=()=>{const e=N.useContext(W1);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Oz(e){const[t,r]=N.useState(e),n=N.useMemo(()=>kz(t,r),[]);return{state:t,actions:{...n,set:i=>{r(typeof i=="function"?i:s=>({...s,...i}))}}}}function kz(e,t=()=>{}){return Object.keys(e).reduce((n,i)=>({...n,[`set${Fe.upperFirst(i)}`]:s=>t(l=>({...l,[i]:s}))}),{})}const Az=(e,t,r={})=>{r={timeout:200,...r};const n=N.useRef(),i=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return N.useCallback((s,...l)=>{i(),t&&s.detail===1&&(n.current=setTimeout(()=>{t(s,...l)},r.timeout)),s.detail%2===0&&e(s,...l)},[t,e,r.timeout])};function Bt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var i=Mz[e],s=i?typeof i=="function"?i.apply(null,r):i:"unknown error nr: "+e;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Fo(e){return!!e&&!!e[Er]}function Ui(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var i=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return i===Object||typeof i=="function"&&Function.toString.call(i)===Dz})(e)||Array.isArray(e)||!!e[vy]||!!(!((t=e.constructor)===null||t===void 0)&&t[vy])||rh(e)||nh(e))}function ma(e,t,r){r===void 0&&(r=!1),Zo(e)===0?(r?Object.keys:ah)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,i){return t(i,n,e)}))}function Zo(e){var t=e[Er];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:rh(e)?2:nh(e)?3:0}function rp(e,t){return Zo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tz(e,t){return Zo(e)===2?e.get(t):e[t]}function B1(e,t,r){var n=Zo(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Rz(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function rh(e){return Iz&&e instanceof Map}function nh(e){return Nz&&e instanceof Set}function Di(e){return e.o||e.t}function ih(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Lz(e);delete t[Er];for(var r=ah(t),n=0;n<r.length;n++){var i=r[n],s=t[i];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(t[i]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[i]})}return Object.create(Object.getPrototypeOf(e),t)}function ba(e,t){return t===void 0&&(t=!1),oh(e)||Fo(e)||!Ui(e)||(Zo(e)>1&&(e.set=e.add=e.clear=e.delete=Cz),Object.freeze(e),t&&ma(e,(function(r,n){return ba(n,!0)}),!0)),e}function Cz(){Bt(2)}function oh(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function xn(e){var t=zz[e];return t||Bt(18,e),t}function cy(){return process.env.NODE_ENV==="production"||Ho||Bt(0),Ho}function Of(e,t){t&&(xn("Patches"),e.u=[],e.s=[],e.v=t)}function jc(e){np(e),e.p.forEach(Pz),e.p=null}function np(e){e===Ho&&(Ho=e.l)}function uy(e){return Ho={p:[],l:Ho,h:e,m:!0,_:0}}function Pz(e){var t=e[Er];t.i===0||t.i===1?t.j():t.g=!0}function kf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||xn("ES5").S(t,e,n),n?(r[Er].P&&(jc(t),Bt(4)),Ui(e)&&(e=Fc(t,e),t.l||Hc(t,e)),t.u&&xn("Patches").M(r[Er].t,e,t.u,t.s)):e=Fc(t,r,[]),jc(t),t.u&&t.v(t.u,t.s),e!==U1?e:void 0}function Fc(e,t,r){if(oh(t))return t;var n=t[Er];if(!n)return ma(t,(function(c,u){return dy(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return Hc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var i=n.i===4||n.i===5?n.o=ih(n.k):n.o,s=i,l=!1;n.i===3&&(s=new Set(i),i.clear(),l=!0),ma(s,(function(c,u){return dy(e,n,i,c,u,r,l)})),Hc(e,i,!1),r&&e.u&&xn("Patches").N(n,r,e.u,e.s)}return n.o}function dy(e,t,r,n,i,s,l){if(process.env.NODE_ENV!=="production"&&i===r&&Bt(5),Fo(i)){var c=Fc(e,i,s&&t&&t.i!==3&&!rp(t.R,n)?s.concat(n):void 0);if(B1(r,n,c),!Fo(c))return;e.m=!1}else l&&r.add(i);if(Ui(i)&&!oh(i)){if(!e.h.D&&e._<1)return;Fc(e,i),t&&t.A.l||Hc(e,i)}}function Hc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&ba(t,r)}function Af(e,t){var r=e[Er];return(r?Di(r):e)[t]}function fy(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var n=Object.getOwnPropertyDescriptor(r,t);if(n)return n;r=Object.getPrototypeOf(r)}}function ip(e){e.P||(e.P=!0,e.l&&ip(e.l))}function Tf(e){e.o||(e.o=ih(e.t))}function op(e,t,r){var n=rh(t)?xn("MapSet").F(t,r):nh(t)?xn("MapSet").T(t,r):e.O?(function(i,s){var l=Array.isArray(i),c={i:l?1:0,A:s?s.A:cy(),P:!1,I:!1,R:{},l:s,t:i,k:null,o:null,j:null,C:!1},u=c,f=sp;l&&(u=[c],f=Js);var g=Proxy.revocable(u,f),p=g.revoke,h=g.proxy;return c.k=h,c.j=p,h})(t,r):xn("ES5").J(t,r);return(r?r.A:cy()).p.push(n),n}function V1(e){return Fo(e)||Bt(22,e),(function t(r){if(!Ui(r))return r;var n,i=r[Er],s=Zo(r);if(i){if(!i.P&&(i.i<4||!xn("ES5").K(i)))return i.t;i.I=!0,n=py(r,s),i.I=!1}else n=py(r,s);return ma(n,(function(l,c){i&&Tz(i.t,l)===c||B1(n,l,t(c))})),s===3?new Set(n):n})(e)}function py(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return ih(e)}var hy,Ho,sh=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Iz=typeof Map<"u",Nz=typeof Set<"u",gy=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",U1=sh?Symbol.for("immer-nothing"):((hy={})["immer-nothing"]=!0,hy),vy=sh?Symbol.for("immer-draftable"):"__$immer_draftable",Er=sh?Symbol.for("immer-state"):"__$immer_state",Mz={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(e){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+e},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(e){return"Cannot apply patch, path doesn't resolve: "+e},16:'Sets cannot have "replace" patches.',17:function(e){return"Unsupported patch operation: "+e},18:function(e){return"The plugin for '"+e+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+e+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(e){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+e+"'"},22:function(e){return"'current' expects a draft, got: "+e},23:function(e){return"'original' expects a draft, got: "+e},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},Dz=""+Object.prototype.constructor,ah=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Lz=Object.getOwnPropertyDescriptors||function(e){var t={};return ah(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},zz={},sp={get:function(e,t){if(t===Er)return e;var r=Di(e);if(!rp(r,t))return(function(i,s,l){var c,u=fy(s,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(i.k):void 0})(e,r,t);var n=r[t];return e.I||!Ui(n)?n:n===Af(e.t,t)?(Tf(e),e.o[t]=op(e.A.h,n,e)):n},has:function(e,t){return t in Di(e)},ownKeys:function(e){return Reflect.ownKeys(Di(e))},set:function(e,t,r){var n=fy(Di(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var i=Af(Di(e),t),s=i==null?void 0:i[Er];if(s&&s.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Rz(r,i)&&(r!==void 0||rp(e.t,t)))return!0;Tf(e),ip(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return Af(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,Tf(e),ip(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Di(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Bt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Bt(12)}},Js={};ma(sp,(function(e,t){Js[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Js.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Bt(13),Js.set.call(this,e,t,void 0)},Js.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Bt(14),sp.set.call(this,e[0],t,r,e[0])};var $z=(function(){function e(r){var n=this;this.O=gy,this.D=!0,this.produce=function(i,s,l){if(typeof i=="function"&&typeof s!="function"){var c=s;s=i;var u=n;return function(v){var y=this;v===void 0&&(v=c);for(var m=arguments.length,w=Array(m>1?m-1:0),x=1;x<m;x++)w[x-1]=arguments[x];return u.produce(v,(function(O){var _;return(_=s).call.apply(_,[y,O].concat(w))}))}}var f;if(typeof s!="function"&&Bt(6),l!==void 0&&typeof l!="function"&&Bt(7),Ui(i)){var g=uy(n),p=op(n,i,void 0),h=!0;try{f=s(p),h=!1}finally{h?jc(g):np(g)}return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return Of(g,l),kf(v,g)}),(function(v){throw jc(g),v})):(Of(g,l),kf(f,g))}if(!i||typeof i!="object"){if((f=s(i))===void 0&&(f=i),f===U1&&(f=void 0),n.D&&ba(f,!0),l){var b=[],S=[];xn("Patches").M(i,f,b,S),l(b,S)}return f}Bt(21,i)},this.produceWithPatches=function(i,s){if(typeof i=="function")return function(f){for(var g=arguments.length,p=Array(g>1?g-1:0),h=1;h<g;h++)p[h-1]=arguments[h];return n.produceWithPatches(f,(function(b){return i.apply(void 0,[b].concat(p))}))};var l,c,u=n.produce(i,s,(function(f,g){l=f,c=g}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(f){return[f,l,c]})):[u,l,c]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){Ui(r)||Bt(8),Fo(r)&&(r=V1(r));var n=uy(this),i=op(this,r,void 0);return i[Er].C=!0,np(n),i},t.finishDraft=function(r,n){var i=r&&r[Er];process.env.NODE_ENV!=="production"&&(i&&i.C||Bt(9),i.I&&Bt(10));var s=i.A;return Of(s,n),kf(void 0,s)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!gy&&Bt(20),this.O=r},t.applyPatches=function(r,n){var i;for(i=n.length-1;i>=0;i--){var s=n[i];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}i>-1&&(n=n.slice(i+1));var l=xn("Patches").$;return Fo(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),_r=new $z,jz=_r.produce;_r.produceWithPatches.bind(_r);_r.setAutoFreeze.bind(_r);_r.setUseProxies.bind(_r);_r.applyPatches.bind(_r);_r.createDraft.bind(_r);_r.finishDraft.bind(_r);function Fz(e){var t=N.useState(function(){return ba(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],N.useCallback(function(n){r(typeof n=="function"?jz(n):ba(n))},[])]}const Hz=process.env.NODE_ENV==="development",Rf=Hz&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,Wz=(e,t,r)=>{const[n,i]=Fz(e),s=N.useRef(null);N.useEffect(()=>{var u;return r&&(s.current=Rf==null?void 0:Rf.connect({name:r,trace:!0}),(u=s.current)==null||u.init(e)),()=>{var f,g;(g=(f=s.current)==null?void 0:f.disconnect)==null||g.call(f)}},[]);const l=t&&typeof t=="object"?t:{},c=N.useMemo(()=>Object.keys(l).reduce((u,f)=>({...u,[f]:g=>(i(p=>{var h;l[f](p,g),(h=s.current)==null||h.send({type:l[f].name},V1(p))}),c)}),{}),[i]);return{state:n,dispatch:c}},Bz=e=>{const t=xh(e),r=()=>{const{id:n,namespace:i}=t,s=window.DataSource.spaces[i];if(s&&s.sources)return s.sources[n]};return{actions:{setProperty:(n,i)=>{try{const s=r();s&&s.setValue(n,i)}catch{}},getValue:()=>r()}}},Vz=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:i}=xh(e),[s,l]=N.useState(!1),c=N.useCallback(()=>{try{return window.DataSource.getSource(n,i)}catch{return}},[i,n]),u=(p,h)=>{const b=c();b&&b.setValue(p,h)},f=async()=>{const p=c();if(!p)return;const h=await(p==null?void 0:p.getValue());r==null||r(h)},g=p=>{const{id:h}=p;!s&&h&&h.startsWith(n)&&l(!0)};return N.useEffect(()=>{if(s){const p=c();return p?(p==null||p.addListener("changed",f),()=>p==null?void 0:p.removeListener("changed",f)):void 0}},[s]),N.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:s,setCurrentSource:u}};function Uz(e=!1){const[t,r]=N.useState(e),n=N.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(i=>!i)}),[]);return[t,n]}function qz(e){const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),N.useCallback((...r)=>{var n;return(n=t.current)==null?void 0:n.call(t,...r)},[])}function q1(e,t){const r=e!==void 0;return[r,r?e:t]}function Gz({value:e,defaultValue:t,onChange:r}){const[n,i]=N.useState(t),[s,l]=q1(e,n),c=N.useCallback(u=>{const f=typeof u=="function"?u(l):u;s||i(f),f!==l&&(r==null||r(f))},[l,s,r]);return[l,c]}const Zz=typeof window<"u"?N.useLayoutEffect:N.useEffect;function Kz(e,t){const r=N.useRef(!1);N.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function Yz(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function Bn(e){return typeof e=="function"}function G1(e){var t=function(n){Error.call(n),n.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var Cf=G1(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
252
252
  `+r.map(function(n,i){return i+1+") "+n.toString()}).join(`
253
- `):"",this.name="UnsubscriptionError",this.errors=r}});function np(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var ou=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Hf(l),u=c.next();!u.done;u=c.next()){var f=u.value;f.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var g=this.initialTeardown;if(Hn(g))try{g()}catch(v){s=v instanceof kf?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=Hf(p),b=h.next();!b.done;b=h.next()){var S=b.value;try{py(S)}catch(v){s=s??[],v instanceof kf?s=Pc(Pc([],Bf(s)),Bf(v.errors)):s.push(v)}}}catch(v){n={error:v}}finally{try{b&&!b.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new kf(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)py(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&np(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&np(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),V1=ou.EMPTY;function U1(e){return e instanceof ou||e&&"closed"in e&&Hn(e.remove)&&Hn(e.add)&&Hn(e.unsubscribe)}function py(e){Hn(e)?e():e.unsubscribe()}var X4={Promise:void 0},J4={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Pc([e,t],Bf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Q4(e){J4.setTimeout(function(){throw e})}function hy(){}function xc(e){e()}var q1=(function(e){Jc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,U1(r)&&r.add(n)):n.destination=r$,n}return t.create=function(r,n,i){return new ip(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(ou),e$=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){tc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){tc(n)}else tc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){tc(r)}},e})(),ip=(function(e){Jc(t,e);function t(r,n,i){var s=e.call(this)||this,l;return Hn(r)||!r?l={next:r??void 0,error:n??void 0,complete:i??void 0}:l=r,s.destination=new e$(l),s}return t})(q1);function tc(e){Q4(e)}function t$(e){throw e}var r$={closed:!0,next:hy,error:t$,complete:hy},n$=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function i$(e){return e}function o$(e){return e.length===0?i$:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var gy=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=a$(t)?t:new ip(t,r,n);return xc(function(){var l=i,c=l.operator,u=l.source;s.add(c?c.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=vy(r),new r(function(i,s){var l=new ip({next:function(c){try{t(c)}catch(u){s(u),l.unsubscribe()}},error:s,complete:i});n.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[n$]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return o$(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=vy(t),new t(function(n,i){var s;r.subscribe(function(l){return s=l},function(l){return i(l)},function(){return n(s)})})},e.create=function(t){return new e(t)},e})();function vy(e){var t;return(t=e??X4.Promise)!==null&&t!==void 0?t:Promise}function s$(e){return e&&Hn(e.next)&&Hn(e.error)&&Hn(e.complete)}function a$(e){return e&&e instanceof q1||s$(e)&&U1(e)}var l$=W1(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_n=(function(e){Jc(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new my(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new l$},t.prototype.next=function(r){var n=this;xc(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Hf(n.currentObservers),c=l.next();!c.done;c=l.next()){var u=c.value;u.next(r)}}catch(f){i={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;xc(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;xc(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,l=i.isStopped,c=i.observers;return s||l?V1:(this.currentObservers=null,c.push(r),new ou(function(){n.currentObservers=null,np(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,l=n.isStopped;i?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new gy;return r.source=this,r},t.create=function(r,n){return new my(r,n)},t})(gy),my=(function(e){Jc(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:V1},t})(_n),G1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(G1||{}),Z1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Z1||{});const c$=new _n,u$=new _n,ih=new _n;var K1=(e=>(e.SAVE_ALL="save-all",e))(K1||{});const d$=new _n;var Y1=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(Y1||{});const f$=new _n;var X1=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(X1||{});const p$=new _n,h$=new _n;var ya=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(ya||{});const Hc=new _n,g$=new _n,oh=255;var sh=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${oh} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(sh||{});function su(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>oh)throw new Error(sh.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function v$(e){if(!e)return null;if(typeof e=="string")try{su(e)}catch(t){return t.message}}function m$(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!He.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!He.isObject(n)||Array.isArray(n))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function b$(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function au(e){const{PLACEHOLDER_PREFIX:t,counter:r}=b$();let n=r;const i=[],s="@!",l=g=>(i.push(g),`${t}${n++}${s}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,p,h)=>p+l(h)),c=c.replace(/:\d{2}:\d{2}/g,l);const u=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let f=c.replace(u,"");for(let g=0;g<i.length;g++){const h=`${t}${g}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(h,"g");f=f.replace(b,i[g])}return f}const J1=(e,t,r)=>{const n=e instanceof RegExp?by(e,r):e,i=t instanceof RegExp?by(t,r):t,s=n!==null&&i!=null&&y$(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},by=(e,t)=>{const r=t.match(e);return r?r[0]:null},y$=(e,t,r)=>{let n,i,s,l,c,u=r.indexOf(e),f=r.indexOf(t,u+1),g=u;if(u>=0&&f>0){if(e===t)return[u,f];for(n=[],s=r.length;g>=0&&!c;){if(g===u)n.push(g),u=r.indexOf(e,g+1);else if(n.length===1){const p=n.pop();p!==void 0&&(c=[p,f])}else i=n.pop(),i!==void 0&&i<s&&(s=i,l=f),f=r.indexOf(t,g+1);g=u<f&&u>=0?u:f}n.length&&l!==void 0&&(c=[s,l])}return c},Q1="\0SLASH"+Math.random()+"\0",eS="\0OPEN"+Math.random()+"\0",ah="\0CLOSE"+Math.random()+"\0",tS="\0COMMA"+Math.random()+"\0",rS="\0PERIOD"+Math.random()+"\0",w$=new RegExp(Q1,"g"),x$=new RegExp(eS,"g"),S$=new RegExp(ah,"g"),E$=new RegExp(tS,"g"),_$=new RegExp(rS,"g"),O$=/\\\\/g,k$=/\\{/g,A$=/\\}/g,T$=/\\,/g,R$=/\\\./g,C$=1e5;function Af(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function I$(e){return e.replace(O$,Q1).replace(k$,eS).replace(A$,ah).replace(T$,tS).replace(R$,rS)}function P$(e){return e.replace(w$,"\\").replace(x$,"{").replace(S$,"}").replace(E$,",").replace(_$,".")}function nS(e){if(!e)return[""];const t=[],r=J1("{","}",e);if(!r)return e.split(",");const{pre:n,body:i,post:s}=r,l=n.split(",");l[l.length-1]+="{"+i+"}";const c=nS(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function N$(e,t={}){if(!e)return[];const{max:r=C$}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Qs(I$(e),r,!0).map(P$)}function M$(e){return"{"+e+"}"}function D$(e){return/^-?0\d/.test(e)}function L$(e,t){return e<=t}function z$(e,t){return e>=t}function Qs(e,t,r){const n=[],i=J1("{","}",e);if(!i)return[e];const s=i.pre,l=i.post.length?Qs(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c<l.length&&c<t;c++){const u=s+"{"+i.body+"}"+l[c];n.push(u)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=c||u,g=i.body.indexOf(",")>=0;if(!f&&!g)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+ah+i.post,Qs(e,t,!0)):[e];let p;if(f)p=i.body.split(/\.\./);else if(p=nS(i.body),p.length===1&&p[0]!==void 0&&(p=Qs(p[0],t,!1).map(M$),p.length===1))return l.map(b=>i.pre+p[0]+b);let h;if(f&&p[0]!==void 0&&p[1]!==void 0){const b=Af(p[0]),S=Af(p[1]),v=Math.max(p[0].length,p[1].length);let y=p.length===3&&p[2]!==void 0?Math.max(Math.abs(Af(p[2])),1):1,m=L$;S<b&&(y*=-1,m=z$);const x=p.some(D$);h=[];for(let O=b;m(O,S);O+=y){let _;if(u)_=String.fromCharCode(O),_==="\\"&&(_="");else if(_=String(O),x){const R=v-_.length;if(R>0){const H=new Array(R+1).join("0");O<0?_="-"+H+_.slice(1):_=H+_}}h.push(_)}}else{h=[];for(let b=0;b<p.length;b++)h.push.apply(h,Qs(p[b],t,!1))}for(let b=0;b<h.length;b++)for(let S=0;S<l.length&&n.length<t;S++){const v=s+h[b]+l[S];(!r||f||v)&&n.push(v)}}return n}const $$=1024*64,Bc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$$)throw new TypeError("pattern is too long")},j$={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Gs=e=>e.replace(/[[\]\\-]/g,"\\$&"),F$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),yy=e=>e.join(""),H$=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],i=[];let s=r+1,l=!1,c=!1,u=!1,f=!1,g=r,p="";e:for(;s<e.length;){const v=e.charAt(s);if((v==="!"||v==="^")&&s===r+1){f=!0,s++;continue}if(v==="]"&&l&&!u){g=s+1;break}if(l=!0,v==="\\"&&!u){u=!0,s++;continue}if(v==="["&&!u){for(const[y,[m,w,x]]of Object.entries(j$))if(e.startsWith(y,s)){if(p)return["$.",!1,e.length-r,!0];s+=y.length,x?i.push(m):n.push(m),c=c||w;continue e}}if(u=!1,p){v>p?n.push(Gs(p)+"-"+Gs(v)):v===p&&n.push(Gs(v)),p="",s++;continue}if(e.startsWith("-]",s+1)){n.push(Gs(v+"-")),s+=2;continue}if(e.startsWith("-",s+1)){p=v,s+=2;continue}n.push(Gs(v)),s++}if(g<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){const v=n[0].length===2?n[0].slice(-1):n[0];return[F$(v),!1,g-r,!1]}const h="["+(f?"^":"")+yy(n)+"]",b="["+(f?"":"^")+yy(i)+"]";return[n.length&&i.length?"("+h+"|"+b+")":n.length?h:b,c,g-r,!0]},ea=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var lr;const B$=new Set(["!","?","+","*","@"]),op=e=>B$.has(e),wy=e=>op(e.type),W$=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),V$=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),U$=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),xy=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),q$="(?!(?:^|/)\\.\\.?(?:$|/))",rc="(?!\\.)",G$=new Set(["[","."]),Z$=new Set(["..","."]),K$=new Set("().*{}+?[]^$\\!"),Y$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),lh="[^/]",Sy=lh+"*?",Ey=lh+"+?";let X$=0;var St,Nt,$n,Ce,dt,di,ji,fi,gn,vn,No,We,iS,hi,Sc,oS,sp,Ec,sS,ap,aS,lS,cS,_c,lp,uS;class lu{constructor(t,r,n={}){Ft(this,We);Ae(this,"type");Ft(this,St);Ft(this,Nt);Ft(this,$n,!1);Ft(this,Ce,[]);Ft(this,dt);Ft(this,di);Ft(this,ji);Ft(this,fi,!1);Ft(this,gn);Ft(this,vn);Ft(this,No,!1);Ae(this,"id",++X$);this.type=t,t&&Qe(this,Nt,!0),Qe(this,dt,r),Qe(this,St,le(this,dt)?le(le(this,dt),St):this),Qe(this,gn,le(this,St)===this?n:le(le(this,St),gn)),Qe(this,ji,le(this,St)===this?[]:le(le(this,St),ji)),t==="!"&&!le(le(this,St),fi)&&le(this,ji).push(this),Qe(this,di,le(this,dt)?le(le(this,dt),Ce).length:0)}get depth(){var t;return(((t=le(this,dt))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:le(this,St).id,parent:(t=le(this,dt))==null?void 0:t.id,depth:this.depth,partsLength:le(this,Ce).length,parts:le(this,Ce)}}get hasMagic(){if(le(this,Nt)!==void 0)return le(this,Nt);for(const t of le(this,Ce))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,Nt,!0);return le(this,Nt)}toString(){return le(this,vn)!==void 0?le(this,vn):this.type?Qe(this,vn,this.type+"("+le(this,Ce).map(t=>String(t)).join("|")+")"):Qe(this,vn,le(this,Ce).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof lr&&le(r,dt)===this))throw new Error("invalid part: "+r);le(this,Ce).push(r)}}toJSON(){var r;const t=this.type===null?le(this,Ce).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...le(this,Ce).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===le(this,St)||le(le(this,St),fi)&&((r=le(this,dt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(le(this,St)===this)return!0;if(!((r=le(this,dt))!=null&&r.isStart()))return!1;if(le(this,di)===0)return!0;const t=le(this,dt);for(let n=0;n<le(this,di);n++){const i=le(t,Ce)[n];if(!(i instanceof lr&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(le(this,St)===this||((r=le(this,dt))==null?void 0:r.type)==="!")return!0;if(!((n=le(this,dt))!=null&&n.isEnd()))return!1;if(!this.type)return(i=le(this,dt))==null?void 0:i.isEnd();const t=le(this,dt)?le(le(this,dt),Ce).length:0;return le(this,di)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new lr(this.type,t);for(const n of le(this,Ce))r.copyIn(n);return r}static fromGlob(t,r={}){var i;const n=new lr(null,void 0,r);return Ee(i=lr,hi,Sc).call(i,t,n,0,r,0),n}toMMPattern(){if(this!==le(this,St))return le(this,St).toMMPattern();const t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||le(this,Nt)||le(this,gn).nocase&&!le(this,gn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(le(this,gn).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return le(this,gn)}toRegExpSource(t){var u;const r=t??!!le(this,gn).dot;if(le(this,St)===this&&(Ee(this,We,_c).call(this),Ee(this,We,iS).call(this)),!wy(this)){const f=this.isStart()&&this.isEnd()&&!le(this,Ce).some(S=>typeof S!="string"),g=le(this,Ce).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?Ee(x=lr,hi,uS).call(x,S,le(this,Nt),f):S.toRegExpSource(t);return Qe(this,Nt,le(this,Nt)||m),Qe(this,$n,le(this,$n)||w),v}).join("");let p="";if(this.isStart()&&typeof le(this,Ce)[0]=="string"&&!(le(this,Ce).length===1&&Z$.has(le(this,Ce)[0]))){const v=G$,y=r&&v.has(g.charAt(0))||g.startsWith("\\.")&&v.has(g.charAt(2))||g.startsWith("\\.\\.")&&v.has(g.charAt(4)),m=!r&&!t&&v.has(g.charAt(0));p=y?q$:m?rc:""}let h="";return this.isEnd()&&le(le(this,St),fi)&&((u=le(this,dt))==null?void 0:u.type)==="!"&&(h="(?:$|\\/)"),[p+g+h,ea(g),Qe(this,Nt,!!le(this,Nt)),le(this,$n)]}const n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let s=Ee(this,We,lp).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const f=this.toString(),g=this;return Qe(g,Ce,[f]),g.type=null,Qe(g,Nt,void 0),[f,ea(this.toString()),!1,!1]}let l=!n||t||r||!rc?"":Ee(this,We,lp).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&le(this,No))c=(this.isStart()&&!r?rc:"")+Ey;else{const f=this.type==="!"?"))"+(this.isStart()&&!r&&!t?rc:"")+Sy+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=i+s+f}return[c,ea(s),Qe(this,Nt,!!le(this,Nt)),le(this,$n)]}}St=new WeakMap,Nt=new WeakMap,$n=new WeakMap,Ce=new WeakMap,dt=new WeakMap,di=new WeakMap,ji=new WeakMap,fi=new WeakMap,gn=new WeakMap,vn=new WeakMap,No=new WeakMap,We=new WeakSet,iS=function(){if(this!==le(this,St))throw new Error("should only call on root");if(le(this,fi))return this;this.toString(),Qe(this,fi,!0);let t;for(;t=le(this,ji).pop();){if(t.type!=="!")continue;let r=t,n=le(r,dt);for(;n;){for(let i=le(r,di)+1;!n.type&&i<le(n,Ce).length;i++)for(const s of le(t,Ce)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(le(n,Ce)[i])}r=n,n=le(r,dt)}}return this},hi=new WeakSet,Sc=function(t,r,n,i,s){var v,y,m,w;const l=i.maxExtglobRecursion??2;let c=!1,u=!1,f=-1,g=!1;if(r.type===null){let x=n,O="";for(;x<t.length;){const _=t.charAt(x++);if(c||_==="\\"){c=!c,O+=_;continue}if(u){x===f+1?(_==="^"||_==="!")&&(g=!0):_==="]"&&!(x===f+2&&g)&&(u=!1),O+=_;continue}else if(_==="["){u=!0,f=x,g=!1,O+=_;continue}if(!i.noext&&op(_)&&t.charAt(x)==="("&&s<=l){r.push(O),O="";const H=new lr(_,r);x=Ee(v=lr,hi,Sc).call(v,t,H,x,i,s+1),r.push(H);continue}O+=_}return r.push(O),x}let p=n+1,h=new lr(null,r);const b=[];let S="";for(;p<t.length;){const x=t.charAt(p++);if(c||x==="\\"){c=!c,S+=x;continue}if(u){p===f+1?(x==="^"||x==="!")&&(g=!0):x==="]"&&!(p===f+2&&g)&&(u=!1),S+=x;continue}else if(x==="["){u=!0,f=p,g=!1,S+=x;continue}if(!i.noext&&op(x)&&t.charAt(p)==="("&&(s<=l||r&&Ee(y=r,We,Ec).call(y,x))){const _=r&&Ee(m=r,We,Ec).call(m,x)?0:1;h.push(S),S="";const R=new lr(x,h);h.push(R),p=Ee(w=lr,hi,Sc).call(w,t,R,p,i,s+_);continue}if(x==="|"){h.push(S),S="",b.push(h),h=new lr(null,r);continue}if(x===")")return S===""&&le(r,Ce).length===0&&Qe(r,No,!0),h.push(S),S="",r.push(...b,h),p;S+=x}return r.type=null,Qe(r,Nt,void 0),Qe(r,Ce,[t.substring(n-1)]),p},oS=function(t){return Ee(this,We,sp).call(this,t,V$)},sp=function(t,r=W$){if(!t||typeof t!="object"||t.type!==null||le(t,Ce).length!==1||this.type===null)return!1;const n=le(t,Ce)[0];return!n||typeof n!="object"||n.type===null?!1:Ee(this,We,Ec).call(this,n.type,r)},Ec=function(t,r=U$){var n;return!!((n=r.get(this.type))!=null&&n.includes(t))},sS=function(t,r){const n=le(t,Ce)[0],i=new lr(null,n,this.options);le(i,Ce).push(""),n.push(i),Ee(this,We,ap).call(this,t,r)},ap=function(t,r){const n=le(t,Ce)[0];le(this,Ce).splice(r,1,...le(n,Ce));for(const i of le(n,Ce))typeof i=="object"&&Qe(i,dt,this);Qe(this,vn,void 0)},aS=function(t){const r=xy.get(this.type);return!!(r!=null&&r.has(t))},lS=function(t){if(!t||typeof t!="object"||t.type!==null||le(t,Ce).length!==1||this.type===null||le(this,Ce).length!==1)return!1;const r=le(t,Ce)[0];return!r||typeof r!="object"||r.type===null?!1:Ee(this,We,aS).call(this,r.type)},cS=function(t){const r=xy.get(this.type),n=le(t,Ce)[0],i=r==null?void 0:r.get(n.type);if(!i)return!1;Qe(this,Ce,le(n,Ce));for(const s of le(this,Ce))typeof s=="object"&&Qe(s,dt,this);this.type=i,Qe(this,vn,void 0),Qe(this,No,!1)},_c=function(){var t,r;if(wy(this)){let n=0,i=!1;do{i=!0;for(let s=0;s<le(this,Ce).length;s++){const l=le(this,Ce)[s];typeof l=="object"&&(Ee(r=l,We,_c).call(r),Ee(this,We,sp).call(this,l)?(i=!1,Ee(this,We,ap).call(this,l,s)):Ee(this,We,oS).call(this,l)?(i=!1,Ee(this,We,sS).call(this,l,s)):Ee(this,We,lS).call(this,l)&&(i=!1,Ee(this,We,cS).call(this,l)))}}while(!i&&++n<10)}else for(const n of le(this,Ce))typeof n=="object"&&Ee(t=n,We,_c).call(t);Qe(this,vn,void 0)},lp=function(t){return le(this,Ce).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,i,s,l]=r.toRegExpSource(t);return Qe(this,$n,le(this,$n)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},uS=function(t,r,n=!1){let i=!1,s="",l=!1,c=!1;for(let u=0;u<t.length;u++){const f=t.charAt(u);if(i){i=!1,s+=(K$.has(f)?"\\":"")+f;continue}if(f==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(t)?Ey:Sy,r=!0;continue}else c=!1;if(f==="\\"){u===t.length-1?s+="\\\\":i=!0;continue}if(f==="["){const[g,p,h,b]=H$(t,u);if(h){s+=g,l=l||p,u+=h-1,r=r||b;continue}}if(f==="?"){s+=lh,r=!0;continue}s+=Y$(f)}return[s,ea(t),!!r,l]},Ft(lu,hi);lr=lu;const J$=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Vt=(e,t,r={})=>(Bc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new cu(t,r).match(e)),Q$=/^\*+([^+@!?*[(]*)$/,ej=e=>t=>!t.startsWith(".")&&t.endsWith(e),tj=e=>t=>t.endsWith(e),rj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),nj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),ij=/^\*+\.\*+$/,oj=e=>!e.startsWith(".")&&e.includes("."),sj=e=>e!=="."&&e!==".."&&e.includes("."),aj=/^\.\*+$/,lj=e=>e!=="."&&e!==".."&&e.startsWith("."),cj=/^\*+$/,uj=e=>e.length!==0&&!e.startsWith("."),dj=e=>e.length!==0&&e!=="."&&e!=="..",fj=/^\?+([^+@!?*[(]*)?$/,pj=([e,t=""])=>{const r=dS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},hj=([e,t=""])=>{const r=fS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},gj=([e,t=""])=>{const r=fS([e]);return t?n=>r(n)&&n.endsWith(t):r},vj=([e,t=""])=>{const r=dS([e]);return t?n=>r(n)&&n.endsWith(t):r},dS=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},fS=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},pS=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",_y={win32:{sep:"\\"},posix:{sep:"/"}},mj=pS==="win32"?_y.win32.sep:_y.posix.sep;Vt.sep=mj;const Kt=Symbol("globstar **");Vt.GLOBSTAR=Kt;const bj="[^/]",yj=bj+"*?",wj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",xj="(?:(?!(?:\\/|^)\\.).)*?",Sj=(e,t={})=>r=>Vt(r,e,t);Vt.filter=Sj;const Mr=(e,t={})=>Object.assign({},e,t),Ej=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Vt;const t=Vt;return Object.assign((n,i,s={})=>t(n,i,Mr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,Mr(e,s))}static defaults(i){return t.defaults(Mr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,l={}){super(i,s,Mr(e,l))}static fromGlob(i,s={}){return t.AST.fromGlob(i,Mr(e,s))}},unescape:(n,i={})=>t.unescape(n,Mr(e,i)),escape:(n,i={})=>t.escape(n,Mr(e,i)),filter:(n,i={})=>t.filter(n,Mr(e,i)),defaults:n=>t.defaults(Mr(e,n)),makeRe:(n,i={})=>t.makeRe(n,Mr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,Mr(e,i)),match:(n,i,s={})=>t.match(n,i,Mr(e,s)),sep:t.sep,GLOBSTAR:Kt})};Vt.defaults=Ej;const hS=(e,t={})=>(Bc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:N$(e,{max:t.braceExpandMax}));Vt.braceExpand=hS;const _j=(e,t={})=>new cu(e,t).makeRe();Vt.makeRe=_j;const Oj=(e,t,r={})=>{const n=new cu(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};Vt.match=Oj;const Oy=/[?*]|[+@!]\(.*?\)|\[|\]/,kj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var Sr,gS,cp,Oo;class cu{constructor(t,r={}){Ft(this,Sr);Ae(this,"options");Ae(this,"set");Ae(this,"pattern");Ae(this,"windowsPathsNoEscape");Ae(this,"nonegate");Ae(this,"negate");Ae(this,"comment");Ae(this,"empty");Ae(this,"preserveMultipleSlashes");Ae(this,"partial");Ae(this,"globSet");Ae(this,"globParts");Ae(this,"nocase");Ae(this,"isWindows");Ae(this,"platform");Ae(this,"windowsNoMagicRoot");Ae(this,"maxGlobstarRecursion");Ae(this,"regexp");Bc(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||pS,this.isWindows=this.platform==="win32";const n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=s[0]===""&&s[1]===""&&(s[2]==="?"||!Oy.test(s[2]))&&!Oy.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(g=>this.parse(g))];if(f)return[s[0],...s.slice(1).map(g=>this.parse(g))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const n of t)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{const s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let l=i;for(;n[l+1]==="**";)l++;l>i&&n.splice(i+1,l-i);let c=n[i+1];const u=n[i+2],f=n[i+3];if(c!==".."||!u||u==="."||u===".."||!f||f==="."||f==="..")continue;r=!0,n.splice(i,1);const g=n.slice(0);g[i]="**",t.push(g),i--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){const c=n[l];l===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){const l=n[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,l=[],c="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])l.push(c==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])l.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])l.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),i++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,s=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=u?3:c?0:void 0,h=g?3:f?0:void 0;if(typeof p=="number"&&typeof h=="number"){const[b,S]=[t[p],r[h]];b.toLowerCase()===S.toLowerCase()&&(r[h]=b,s=h,i=p)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Kt)?Ee(this,Sr,gS).call(this,t,r,n,i,s):Ee(this,Sr,Oo).call(this,t,r,n,i,s)}braceExpand(){return hS(this.pattern,this.options)}parse(t){Bc(t);const r=this.options;if(t==="**")return Kt;if(t==="")return"";let n,i=null;(n=t.match(cj))?i=r.dot?dj:uj:(n=t.match(Q$))?i=(r.nocase?r.dot?nj:rj:r.dot?tj:ej)(n[1]):(n=t.match(fj))?i=(r.nocase?r.dot?hj:pj:r.dot?gj:vj)(n):(n=t.match(ij))?i=r.dot?sj:oj:(n=t.match(aj))&&(i=lj);const s=lu.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?yj:r.dot?wj:xj,i=new Set(r.nocase?["i"]:[]);let s=t.map(u=>{const f=u.map(p=>{if(p instanceof RegExp)for(const h of p.flags.split(""))i.add(h);return typeof p=="string"?kj(p):p===Kt?Kt:p._src});f.forEach((p,h)=>{const b=f[h+1],S=f[h-1];p!==Kt||S===Kt||(S===void 0?b!==void 0&&b!==Kt?f[h+1]="(?:\\/|"+n+"\\/)?"+b:f[h]=n:b===void 0?f[h-1]=S+"(?:\\/|\\/"+n+")?":b!==Kt&&(f[h-1]=S+"(?:\\/|\\/"+n+"\\/)"+b,f[h+1]=Kt))});const g=f.filter(p=>p!==Kt);if(this.partial&&g.length>=1){const p=[];for(let h=1;h<=g.length;h++)p.push(g.slice(0,h).join("/"));return"(?:"+p.join("|")+")"}return g.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.partial&&(s="^(?:\\/|"+l+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const s=this.set;this.debug(this.pattern,"set",s);let l=i[i.length-1];if(!l)for(let c=i.length-2;!l&&c>=0;c--)l=i[c];for(const c of s){let u=i;if(n.matchBase&&c.length===1&&(u=[l]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Vt.defaults(t).Minimatch}}Sr=new WeakSet,gS=function(t,r,n,i,s){const l=r.indexOf(Kt,s),c=r.lastIndexOf(Kt),[u,f,g]=n?[r.slice(s,l),r.slice(l+1),[]]:[r.slice(s,l),r.slice(l+1,c),r.slice(c+1)];if(u.length){const w=t.slice(i,i+u.length);if(!Ee(this,Sr,Oo).call(this,w,u,n,0,0))return!1;i+=u.length,s+=u.length}let p=0;if(g.length){if(g.length+i>t.length)return!1;let w=t.length-g.length;if(Ee(this,Sr,Oo).call(this,t,g,n,w,0))p=g.length;else{if(t[t.length-1]!==""||i+g.length===t.length||(w--,!Ee(this,Sr,Oo).call(this,t,g,n,w,0)))return!1;p=g.length+1}}if(!f.length){let w=!!p;for(let x=i;x<t.length-p;x++){const O=String(t[x]);if(w=!0,O==="."||O===".."||!this.options.dot&&O.startsWith("."))return!1}return n||w}const h=[[[],0]];let b=h[0],S=0;const v=[0];for(const w of f)w===Kt?(v.push(S),b=[[],0],h.push(b)):(b[0].push(w),S++);let y=h.length-1;const m=t.length-p;for(const w of h)w[1]=m-(v[y--]+w[0].length);return!!Ee(this,Sr,cp).call(this,t,h,i,0,n,0,!!p)},cp=function(t,r,n,i,s,l,c){const u=r[i];if(!u){for(let p=n;p<t.length;p++){c=!0;const h=t[p];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}const[f,g]=u;for(;n<=g;){if(Ee(this,Sr,Oo).call(this,t.slice(0,n+f.length),f,s,n,0)&&l<this.maxGlobstarRecursion){const b=Ee(this,Sr,cp).call(this,t,r,n+f.length,i+1,s,l+1,c);if(b!==!1)return b}const h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null},Oo=function(t,r,n,i,s){let l,c,u,f;for(l=i,c=s,f=t.length,u=r.length;l<f&&c<u;l++,c++){this.debug("matchOne loop");let g=r[c],p=t[l];if(this.debug(r,g,p),g===!1||g===Kt)return!1;let h;if(typeof g=="string"?(h=p===g,this.debug("string match",g,p,h)):(h=g.test(p),this.debug("pattern match",g,p,h)),!h)return!1}if(l===f&&c===u)return!0;if(l===f)return n;if(c===u)return l===f-1&&t[l]==="";throw new Error("wtf?")};Vt.AST=lu;Vt.Minimatch=cu;Vt.escape=J$;Vt.unescape=ea;var ch=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(ch||{});const Xr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var je=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(je||{}),mi=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(mi||{}),uh=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(uh||{});const dh="roles.json",fh="qodlyApp.json",vS="model.4DModel",ph="HTTPHandlers.json",hh="Shared/i18n.json",mS=[{pattern:fh,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:dh,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:ph,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:hh,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:vS,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:event-report"},{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.qodoc",editor:{key:"editors:reports"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}];function Aj(e){const t=gh(e);switch(t){case je.SETTINGS:return{filename:"Settings",type:t};case je.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case je.ROLES:return{filename:"Roles & Privileges",type:t};case je.LOCALIZATION:return{filename:"Localization",type:t};case je.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function Tj(e){const t=mS.find(({pattern:r})=>Vt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function gh(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return je.MODEL;case r==="WebForm":return je.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Xr.METHODS):return je.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Xr.CLASSES):return je.CLASS;case e===dh:return je.ROLES;case e===ph:return je.HTTP_HANDLERS;case e===fh:return je.SETTINGS;case e===hh:return je.LOCALIZATION;default:return je.TEXT}}function bS(e,t=!1){switch(e){case Xr.REPORTS:case"report":return"QoDoc";case Xr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Xr.CLASSES:case Xr.METHODS:return t?"4qs":"4dm";default:return""}}function Rj(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function Cj(e,t,r){switch(t){case je.MOBILEFORM:return`${e}.MForm`;case je.WEBFORM:return`${e}.WebForm`;case je.REPORT:return`${e}.QoDoc`;case je.METHOD:case je.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class yS{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(i=>{t=i}),n=this.current.then(()=>t);return this.current=r,n}}function vh(){const e=new yS;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const Ij="4DWS_PREFS",wS=He.curry((e,t,r)=>e&&He.get(r,e)===t),Pj=He.curry((e,t,r)=>He.get(r,e)!==t),Nj=He.curry((e,t)=>He.get(t,"id")!==e),Mj=He.curry((e,t)=>He.get(t,"id")===e),Dj=He.curry((e,t)=>He.get(t,"path")===e);function Lj(e="id",t,r){return r.findIndex(wS(e,t))!==-1}function xS(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function zj(){try{const e=localStorage.getItem(Ij);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function $j(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function mh(e=""){const t=e.trim().split(":")||[];let r="",n="";return t.length>1?(r=t[1],n=t[0]):r=t[0],{id:r,namespace:n,root:r.split(".").filter(Boolean)[0],original:n?`${n}:${r}`:r,parts:t}}function SS(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function jj(e){return e.type==="object"}function ES(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function _S(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!SS(e)}function Fj(e){return ES(e)||_S(e)}function Hj(e){return e.applyTo==="dataStore"}function Bj(e){return e.applyTo==="dataClass"}function Wj(e){return e.applyTo==="entity"}function Vj(e){return e.applyTo==="entityCollection"}function Uj(e){return e.type==="entity"}function qj(e){return e.type==="entitysel"}function OS(e){return e.dataType==="array"}function kS(e){return e.dataType==="object"}function AS(e){return e.type==="scalar"}function Gj(e){return OS(e)||kS(e)||AS(e)}const Zj=e=>e!=null&&e.type==="entity",Kj=e=>e.type==="entitysel",Yj=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",Xj=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",Jj=e=>e.type==="scalar"&&e.dataType==="date",Qj=(e,t)=>(e||"")===(t||"");function eF(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function tF(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const ta="Qodly",TS="Location",RS="UserLanguage",CS="Title",Wc={[ta]:[{id:CS,dataType:"string",type:"scalar",namespace:ta,initialValue:""},{id:TS,dataType:"object",type:"scalar",namespace:ta,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:RS,dataType:"object",type:"scalar",namespace:ta,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var wa=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(wa||{}),IS=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(IS||{}),bh=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(bh||{});const rF={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function nF(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:wa.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:bh.table}},...n}}function PS(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[wa.capable,wa.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function iF(e,t,r=!1){const n=He.isString(t)?t:PS(t);if(!r&&NS(e))return e;const i=MS(e);return`//%attributes = ${n}\r
254
- ${i}`}function NS(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function MS(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const up=()=>gi.uuid().replaceAll("-","").toUpperCase();function oF(e){var i,s;const t=new Map,r=new Map,n=new Map;return(i=e.singletons)==null||i.forEach(({methods:l=[],...c})=>{n.set(c.name,{...c,methods:l})}),(s=e.dataClasses)==null||s.forEach(({methods:l=[],...c})=>{const u={...c,methods:l};if(u.uuid||(u.uuid=up()),u.attributes){const f=["storage","relatedEntity"];u.attributes=u.attributes.map(g=>f.includes(g.kind)&&!g.uuid?{...g,uuid:up()}:g)}r.set(u.className,u),t.set(u.collectionName,u)}),{...e,methods:e.methods||[],dataClasses:Object.fromEntries(r.entries()),dataClassByCollectionName:Object.fromEntries(t.entries()),singletons:Object.fromEntries(n.entries())}}const sF=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Xe=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Xe||{}),ct=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ct||{});const aF=[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE,Xe.SINGLETON_METHOD,Xe.SINGLETON,Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD],ky=e=>[ct.DS_METHOD,ct.ENTITY_METHOD,ct.DATACLASS_METHOD].includes(e)?Xe.METHOD:e,Vc="guest",yh=[{key:"read",label:"Read",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD,Xe.SINGLETON,Xe.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD,Xe.SINGLETON_METHOD]}];function Fr(e,...t){return Array.from(new Set([...e,...t]))}function DS(e){const t={},r=new Map;e.forEach(u=>{const f=u.id||gi.generate();t[f]={...u,id:f,parents:[],includes:Fr(u.includes||[]),resources:[]},r.set(u.privilege,f)}),Object.entries(t).forEach(([u,f])=>{const g=f.includes.map(p=>{const h=r.get(p);return h?(t[h].parents=Fr(t[h].parents,h),h):""}).filter(Boolean);t[u]={...f,includes:g}});const n=LS(t),i=new Set;function s(u){i.add(u.id),u.includes=u.includes.filter(f=>!i.has(f))}if(n.forEach(s),n.forEach(u=>u.parents=[]),n.forEach(u=>{u.includes.forEach(f=>t[f].parents.push(u.id))}),Object.values(t).find(({privilege:u})=>u===Vc))return t;const c=gi.generate();return{[c]:{id:c,privilege:Vc,includes:[],parents:[],resources:[]},...t}}function LS(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function uu(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(i=>{n=Fr(n,...uu(i,t),i)}),n}function Uc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(i=>{n=Fr(n,...Uc(i,t),i)}),n}function lF(e,t){const r=t[e];if(!r)return[];const n=[e,...uu(e,t),...r.includes];return Object.keys(t).filter(i=>!n.includes(i))}function cF(e,t){return t[e]?Object.keys(t).reduce((n,i)=>i===e?n:{...n,[i]:{...t[i],parents:t[i].parents.filter(s=>s!==e),includes:t[i].includes.filter(s=>s!==e)}},{}):t}function uF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:Fr(n.includes,t)},[t]:{...r[t],parents:Fr(i.parents,e)}}}function dF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(s=>s!==t)},[t]:{...r[t],parents:r[t].parents.filter(s=>s!==e)}}}function fF(e,t){su(e),Object.entries(t).forEach(([,{privilege:n}])=>{if(e.toLowerCase()===n.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=gi.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function pF(e,t,r){if(!e)throw new Error("Please enter a name");if(!r[t])throw new Error("Invalid privilege");return Object.entries(r).forEach(([,{privilege:n,id:i}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==i)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function hF(e,t){return e.map(r=>Wn(r,t))}function Wn(e,t){return t[e]?t[e]:null}function zS({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[i,s])=>{const l=He.find(yh,["key",i]);return!l||!l.canApplyTo.includes(t)||(typeof s=="string"?s.split(","):s).forEach(u=>{n[u]=Fr(n[u]||[],i)}),n},{})}const Ay=(e,t=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${t?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${t?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${t?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function wh(e){return{permissions:yh.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Xe.DATASTORE:return{...n,info:Ay(r,!0)};case Xe.DATACLASS:return{...n,info:Ay(r)};default:return n}}),resource:e.applyTo,type:e.type}}function $S(e,t){const r=jS(t),n={};return e.filter(({type:i})=>aF.includes(i)).forEach(i=>{const s=zS(i);Object.entries(s).forEach(([l,c])=>{var g;const u=(g=r[l])==null?void 0:g.id;if(!u)return;n[u]=n[u]||{...t[u]};let f=He.find(n[u].resources,{resource:i.applyTo,type:i.type});f||(f=wh(i),n[u].resources.push(f)),f.permissions=f.permissions.map(p=>({...p,checked:p.checked||c.includes(p.name)}))})}),{...t,...n}}function jS(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function gF(e){var r;if(!e)throw new Error("Invalid roles data");const t=DS(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:$S(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=gi.generate(),role:i,privileges:s=[]})=>({id:n,role:i,privileges:Fr(s).map(l=>{var c;return(c=Object.values(t).find(({privilege:u})=>u===l))==null?void 0:c.id}).filter(Boolean)})).reduce((n,i)=>({...n,[i.id]:{...i}}),{})}}function vF(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>uu(n,e.privileges).reverse())].flat().filter((n,i,s)=>s.indexOf(n)===i).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,i)=>(i.resources.forEach(({permissions:s,resource:l,type:c})=>{let u=He.find(n,{applyTo:l,type:ky(c)});u||(u={applyTo:l,type:ky(c)},n.push(u)),s.forEach(({name:f,checked:g})=>{g&&u&&(u[f]=u[f]||[],u[f].push(i.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==Vc).map(({id:n,includes:i,privilege:s})=>({id:n,privilege:s,includes:i.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(i=>{var s;return(s=e.privileges[i])==null?void 0:s.privilege}).filter(Boolean)}))}}function mF(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function i(c,u,f=[]){const g=c.reduce((p,h)=>[...p,...t[h][u]],[]);return g.length===0?f:(f.push(g),i(g,u,f))}function s(c){const u=[],f=[];for(let g=c.length-1;g>=0;g-=1){const p=c[g].filter(h=>u.includes(h)?!1:(u.push(h),!0));p.length>0&&f.unshift(Fr(p))}return f}function l(c,u){const f=[];return c.reduce((g,p)=>(p.forEach(h=>{t[h][u==="parents"?"includes":"parents"].forEach(S=>{f.includes(S)&&g.push(u==="parents"?{source:h,target:S}:{source:S,target:h})}),f.push(h)}),g),[])}return n.children=i([e],"includes"),n.children=s(n.children),n.parents=i([e],"parents"),n.parents=s(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function bF(e,t,r){const n=Wn(e,r);if(!n||He.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const i={...n,resources:[...n.resources,wh(t)]};return{...r,[e]:i}}function yF(e,t,r){const n=Wn(e,r);if(!n)return r;const i={...n,resources:n.resources.filter(({resource:s,type:l})=>s!==t.applyTo||l!==t.type)};return{...r,[e]:i}}function wF(e,t){const r=Object.entries(e).map(([n,i])=>{const s=Wn(n,t);if(!s)return{[n]:t[n]};const l={...s,resources:s.resources.filter(({resource:c,type:u})=>!i.some(f=>f.applyTo===c&&f.type===u))};return{[n]:l}}).reduce((n,i)=>({...n,...i}),{});return{...t,...r}}function xF(e,t){const r=Wn(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(i=>i.permissions.some(s=>s.from.length)).map(i=>({...i,permissions:i.permissions.map(s=>({...s,checked:!1}))}))};return{...t,[e]:n}}function SF(e,t,r,n){const i=Wn(e,n);if(!i)return n;const l=He.find(i.resources,{type:t.type,resource:t.resource})?{...i,resources:i.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(u=>u.name===r.name?{...u,checked:!u.checked,from:[]}:u)}:c)}:{...i,resources:[...i.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...n,[e]:l}}function EF(e,t){var u;const r=FS(e,t)||[],n=((u=Wn(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:f})=>[ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD].includes(f))||[]).map(({resource:f})=>f);return Object.entries(t).reduce((f,[g,{resources:p}])=>(p.filter(({resource:h,type:b})=>[ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD].includes(b)&&l.includes(h)).forEach(({permissions:h,resource:b})=>{var v;((v=h.find(({name:y})=>y==="promote"))==null?void 0:v.checked)&&(f[b]=Fr(f[b]||[],g))}),f),{})}function FS(e,t){var l;const r=Wn(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===Vc))==null?void 0:l.id;return(n&&n!==e?Fr(Uc(e,t),n):Uc(e,t)).reduce((c,u)=>(t[u].resources.forEach(g=>{if(g.permissions.filter(({checked:b,name:S})=>b&&S!=="promote").length===0)return;const h=He.find(c,{type:g.type,resource:g.resource});if(!h){c.push({...g,permissions:g.permissions.map(b=>({...b,from:b.checked?[u]:[],checked:!1}))});return}h.permissions=h.permissions.map((b,S)=>{let{from:v=[]}=b;return g.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...b,from:v,checked:b.checked}})}),c),He.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...f})=>({...f,checked:!!u}))}))))}const _F=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},OF=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,kF=(e,t)=>{if(su(e.role),Object.values(t).find(n=>n.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((n,i)=>e.id===i.id?{...n,[e.id]:e}:{...n,[i.id]:i},{})};function HS(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function BS(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function AF(e,t){const r=HS(e);return BS(r,t)}function TF(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var WS=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(WS||{}),VS=(e=>(e.GROUP="group",e.TEXT_FIELD="textfield",e.COLOR_PICKER="colorpicker",e.LAYOUT="layout",e.RADIOGROUP="radiogroup",e.SELECT="select",e.BORDERS="borders",e.BORDER_RADIUS="borderRadius",e.DIMENSIONS="dimensions",e.COMBOBOX="combobox",e.UNITFIELD="unitfield",e.DATAGRID="datagrid",e.CHECKBOX="checkbox",e.NUMBER_FIELD="number",e.FORMAT_FIELD="format",e.DISPLAY="display",e.BOXSHADOW="boxshadow",e.CSSCLASS_SELECTOR="cssClassSelector",e.CUSTOM_STYLE_PROPS_SELECTOR="customStylePropertiesSelector",e.ICON_PICKER="iconPicker",e.ASYNC_SELECT="asyncSelect",e.DS_AUTO_SUGGEST="dsAutoSuggest",e.POSITION="position",e.BACKGROUND="background",e.SELECTBOXLENGTH="selectBoxLength",e.I18NFIELD="i18nField",e.DATE_INTERVALS="dateIntervals",e))(VS||{}),US=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(US||{}),xh=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(xh||{}),qS=(e=>(e.GRID="grid",e.COMPACT="compact",e))(qS||{}),GS=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(GS||{}),ZS=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(ZS||{});const RF={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var KS=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(KS||{});const YS={label:"Base",id:"root"},CF=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],IF=e=>e.id===YS.id,Sh=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(n=>Sh(n,t,r))}:e:e;function PF(e,t){const{id:r,label:n}=t;return{...e,components:Object.entries(e.components||{}).reduce((i,[s,l])=>({...i,[s]:{...l,custom:Object.entries(l.custom).reduce((c,[u,f])=>u===`states:${r}`?c:{...c,[u]:f},{}),props:Object.entries(l.props).reduce((c,[u,f])=>{let g=f;return u==="events"&&(g=g.map(p=>{var h,b;return p.type==="simple-action"?{...p,state:{...p.state,states:(b=(h=p.state)==null?void 0:h.states)==null?void 0:b.filter(S=>S!==r)}}:p})),{...c,[u]:g}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(i=>(i==null?void 0:i.id)!==r).map(i=>i.conditions?{...i,conditions:Sh(i.conditions,n)}:i)}}}const XS=(e,t,r)=>{switch(e.type){case"datasource":return{...e,path:e.path===t?r:e.path,value:e.valueType==="datasource"&&e.value===t?r:e.value,compareValue:e.compareValueType==="datasource"&&e.compareValue===t?r:e.compareValue};case"privilege":case"currentState":case"parentState":if(e.valueType==="datasource")return{...e,value:e.value===t?r:e.value};break;case"combination":return{...e,conditions:(e.conditions||[]).map(n=>XS(n,t,r))}}return e},JS=(e,t)=>{if(e.id===t||e.type==="reference"&&e.ref===t)return null;if(e.type==="combination"&&e.conditions){const r=e.conditions.map(n=>JS(n,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},QS=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(QS)}:e:{...e,id:gi.generate()};function NF(e,t={}){switch(e){case je.WEBFORM:case je.WEBFORMS:{const r={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white w-full px-6",classNames:[],events:[]},displayName:"Page",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return t["webforms.display-mode"]===xh.AIRY&&(r.components.ROOT.props.airyMode=!0),r}case je.REPORT:return{metadata:{v:"1.0",datasources:[],styles:[]},pages:[{name:"doc",id:"index",components:{ROOT:{type:{resolvedName:"Document"},isCanvas:!0,props:{classNames:[],events:[],airyMode:!1,className:"bg-white w-full px-6"},displayName:"Document",custom:{},parent:"",hidden:!1,nodes:[],linkedNodes:{}}}}]};case je.METHOD:case je.METHODS:return`//%attributes = {}
255
- `;case je.HTTP_HANDLERS:return[];case je.LOCALIZATION:case je.SETTINGS:return{};case je.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function MF(e,t){return He.isEqual(e,t)}function DF(e,t){const{qodly:r=!0,withExtension:n=!0}=t||{},i=bS(e.type,r);let s="";switch(e.type){case je.WEBFORM:s=`${Xr.WEBFORMS}/${e.name}`;break;case je.METHOD:s=`${Xr.METHODS}/${e.name}`;break;case je.CLASS:s=`${Xr.CLASSES}/${e.name}`;break;default:return""}return`${s}${n?`.${i}`:""}`}function eE(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const LF=eE;function zF(e){return e?"":void 0}function $F(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function jF(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function FF({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const HF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function BF(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function WF(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function VF(e){e.preventDefault(),e.stopPropagation()}const _t="/rest/$designer",Ca="/rest/$designer-ext";function UF(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(n=>{typeof r[n]=="string"&&(r[n]=new Date(r[n]))}),r}}class dp extends Error{constructor(t,r,n){super(),this.url=t,this.response=r,this.data=n}log(){console.error("Error while sending the request",this)}}async function Je(e,t){var i;Hc.next({action:ya.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let s;try{const l=await r.json();((i=l==null?void 0:l.__ERROR)==null?void 0:i.some(u=>u.errCode===1651))&&Hc.next({action:ya.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new dp(e,r,l)}catch{s=new dp(e,r)}throw s.log(),s}return await r.json()}function qF(e){return Hc.next({action:ya.REQUEST_SENT}),e}var dn={},Ht={},Ty;function $i(){if(Ty)return Ht;Ty=1;var e=Ht.ValidationError=function(v,y,m,w,x,O){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,H){return R+c(H)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var _=m.$id||m.id;this.schema=_||m}y!==void 0&&(this.instance=y),this.name=x,this.argument=O,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Ht.ValidatorResult=function(v,y,m,w){this.instance=v,this.schema=y,this.options=m,this.path=w.path,this.propertyPath=w.propertyPath,this.errors=[],this.throwError=m&&m.throwError,this.throwFirst=m&&m.throwFirst,this.throwAll=m&&m.throwAll,this.disableFormat=m&&m.disableFormat===!0};t.prototype.addError=function(v){var y;if(typeof v=="string")y=new e(v,this.instance,this.schema,this.path);else{if(!v)throw new Error("Missing error detail");if(!v.message)throw new Error("Missing error message");if(!v.name)throw new Error("Missing validator type");y=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(y),this.throwFirst)throw new n(this);if(this.throwError)throw y;return y},t.prototype.importErrors=function(v){typeof v=="string"||v&&v.validatorType?this.addError(v):v&&v.errors&&(this.errors=this.errors.concat(v.errors))};function r(S,v){return v+": "+S.toString()+`
256
- `}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Ht.ValidatorResultError=n;function n(S){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=S.instance,this.schema=S.schema,this.options=S.options,this.errors=S.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var i=Ht.SchemaError=function S(v,y){this.message=v,this.schema=y,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=Ht.SchemaContext=function(v,y,m,w,x){this.schema=v,this.options=y,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(O,_){return O+c(_)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};s.prototype.resolve=function(v){return b(this.base,v)},s.prototype.makeChild=function(v,y){var m=y===void 0?this.path:this.path.concat([y]),w=v.$id||v.id;let x=b(this.base,w||"");var O=new s(v,this.options,m,x,Object.create(this.schemas));return w&&!O.schemas[x]&&(O.schemas[x]=v),O};var l=Ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(S){return typeof S=="string"&&parseFloat(S)===parseInt(S,10)&&!isNaN(S)},regex:function(S){var v=!0;try{new RegExp(S)}catch{v=!1}return v},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],Ht.isFormat=function(v,y,m){if(typeof v=="string"&&l[y]!==void 0){if(l[y]instanceof RegExp)return l[y].test(v);if(typeof l[y]=="function")return l[y](v)}else if(m&&m.customFormats&&typeof m.customFormats[y]=="function")return m.customFormats[y](v);return!0};var c=Ht.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Ht.deepCompareStrict=function S(v,y){if(typeof v!=typeof y)return!1;if(Array.isArray(v))return!Array.isArray(y)||v.length!==y.length?!1:v.every(function(x,O){return S(v[O],y[O])});if(typeof v=="object"){if(!v||!y)return v===y;var m=Object.keys(v),w=Object.keys(y);return m.length!==w.length?!1:m.every(function(x){return S(v[x],y[x])})}return v===y};function u(S,v,y,m){typeof y=="object"?v[m]=p(S[m],y):S.indexOf(y)===-1&&v.push(y)}function f(S,v,y){v[y]=S[y]}function g(S,v,y,m){typeof v[m]!="object"||!v[m]?y[m]=v[m]:S[m]?y[m]=p(S[m],v[m]):y[m]=v[m]}function p(S,v){var y=Array.isArray(v),m=y&&[]||{};return y?(S=S||[],m=m.concat(S),v.forEach(u.bind(null,S,m))):(S&&typeof S=="object"&&Object.keys(S).forEach(f.bind(null,S,m)),Object.keys(v).forEach(g.bind(null,S,v,m))),m}Ht.deepMerge=p,Ht.objectGetPath=function(v,y){for(var m=y.split("/").slice(1),w;typeof(w=m.shift())=="string";){var x=decodeURIComponent(w.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in v))return;v=v[x]}return v};function h(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Ht.encodePath=function(v){return v.map(h).join("")},Ht.getDecimalPlaces=function(v){var y=0;if(isNaN(v))return y;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return y;y=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(y+=w[1].length),y},Ht.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var b=Ht.resolveUrl=function(v,y){const m=new URL(y,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:O}=m;return w+x+O}return m.toString()};return Ht}var Tf,Ry;function GF(){if(Ry)return Tf;Ry=1;var e=$i(),t=e.ValidatorResult,r=e.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var i=n.validators={};i.type=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=Array.isArray(h.type)?h.type:[h.type];if(!y.some(this.testType.bind(this,p,h,b,S))){var m=y.map(function(w){if(w){var x=w.$id||w.id;return x?"<"+x+">":w+""}});v.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return v};function s(g,p,h,b,S){var v=p.throwError,y=p.throwAll;p.throwError=!1,p.throwAll=!1;var m=this.validateSchema(g,S,p,h);return p.throwError=v,p.throwAll=y,!m.valid&&b instanceof Function&&b(m),m.valid}i.anyOf=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=new t(p,h,b,S);if(!Array.isArray(h.anyOf))throw new r("anyOf must be an array");if(!h.anyOf.some(s.bind(this,p,b,S,function(w){y.importErrors(w)}))){var m=h.anyOf.map(function(w,x){var O=w.$id||w.id;return O?"<"+O+">":w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+x+"]"});b.nestedErrors&&v.importErrors(y),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},i.allOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.allOf))throw new r("allOf must be an array");var v=new t(p,h,b,S),y=this;return h.allOf.forEach(function(m,w){var x=y.validateSchema(p,m,b,S);if(!x.valid){var O=m.$id||m.id,_=O||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:_,length:x.errors.length,valid:x},message:"does not match allOf schema "+_+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},i.oneOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.oneOf))throw new r("oneOf must be an array");var v=new t(p,h,b,S),y=new t(p,h,b,S),m=h.oneOf.filter(s.bind(this,p,b,S,function(x){y.importErrors(x)})).length,w=h.oneOf.map(function(x,O){var _=x.$id||x.id;return _||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+O+"]"});return m!==1&&(b.nestedErrors&&v.importErrors(y),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},i.if=function(p,h,b,S){if(p===void 0)return null;if(!e.isSchema(h.if))throw new Error('Expected "if" keyword to be a schema');var v=s.call(this,p,b,S,null,h.if),y=new t(p,h,b,S),m;if(v){if(h.then===void 0)return;if(!e.isSchema(h.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(p,h.then,b,S.makeChild(h.then)),y.importErrors(m)}else{if(h.else===void 0)return;if(!e.isSchema(h.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(p,h.else,b,S.makeChild(h.else)),y.importErrors(m)}return y};function l(g,p){if(Object.hasOwnProperty.call(g,p))return g[p];if(p in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,p))return g[p]}}i.propertyNames=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.propertyNames!==void 0?h.propertyNames:{};if(!e.isSchema(y))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in p)if(l(p,m)!==void 0){var w=this.validateSchema(m,y,b,S.makeChild(y));v.importErrors(w)}return v}},i.properties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.properties||{};for(var m in y){var w=y[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,w,b,S);var x=l(p,m),O=this.validateSchema(x,w,b,S.makeChild(w,m));O.instance!==v.instance[m]&&(v.instance[m]=O.instance),v.importErrors(O)}}return v}};function c(g,p,h,b,S,v){if(this.types.object(g)&&!(p.properties&&p.properties[S]!==void 0))if(p.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var y=p.additionalProperties||{};typeof h.preValidateProperty=="function"&&h.preValidateProperty(g,S,y,h,b);var m=this.validateSchema(g[S],y,h,b.makeChild(y,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}i.patternProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.patternProperties||{};for(var m in p){var w=!0;for(var x in y){var O=y[x];if(O!==void 0){if(O===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var _=new RegExp(x,"u")}catch{_=new RegExp(x)}if(_.test(m)){w=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,O,b,S);var R=this.validateSchema(p[m],O,b,S.makeChild(O,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,p,h,b,S,m,v)}return v}},i.additionalProperties=function(p,h,b,S){if(this.types.object(p)){if(h.patternProperties)return null;var v=new t(p,h,b,S);for(var y in p)c.call(this,p,h,b,S,y,v);return v}},i.minProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length>=h.minProperties||v.addError({name:"minProperties",argument:h.minProperties,message:"does not meet minimum property length of "+h.minProperties}),v}},i.maxProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length<=h.maxProperties||v.addError({name:"maxProperties",argument:h.maxProperties,message:"does not meet maximum property length of "+h.maxProperties}),v}},i.items=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.items!==void 0){var y=new t(p,h,b,S);return p.every(function(m,w){if(Array.isArray(h.items))var x=h.items[w]===void 0?h.additionalItems:h.items[w];else var x=h.items;if(x===void 0)return!0;if(x===!1)return y.addError({name:"items",message:"additionalItems not permitted"}),!1;var O=v.validateSchema(m,x,b,S.makeChild(x,w));return O.instance!==y.instance[w]&&(y.instance[w]=O.instance),y.importErrors(O),!0}),y}},i.contains=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.contains!==void 0){if(!e.isSchema(h.contains))throw new Error('Expected "contains" keyword to be a schema');var y=new t(p,h,b,S),m=p.some(function(w,x){var O=v.validateSchema(w,h.contains,b,S.makeChild(h.contains,x));return O.errors.length===0});return m===!1&&y.addError({name:"contains",argument:h.contains,message:"must contain an item matching given schema"}),y}},i.minimum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMinimum&&h.exclusiveMinimum===!0?p>h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than "+h.minimum}):p>=h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than or equal to "+h.minimum}),v}},i.maximum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMaximum&&h.exclusiveMaximum===!0?p<h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than "+h.maximum}):p<=h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than or equal to "+h.maximum}),v}},i.exclusiveMinimum=function(p,h,b,S){if(typeof h.exclusiveMinimum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p>h.exclusiveMinimum;return y||v.addError({name:"exclusiveMinimum",argument:h.exclusiveMinimum,message:"must be strictly greater than "+h.exclusiveMinimum}),v}},i.exclusiveMaximum=function(p,h,b,S){if(typeof h.exclusiveMaximum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p<h.exclusiveMaximum;return y||v.addError({name:"exclusiveMaximum",argument:h.exclusiveMaximum,message:"must be strictly less than "+h.exclusiveMaximum}),v}};var u=function(p,h,b,S,v,y){if(this.types.number(p)){var m=h[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(p,h,b,S),x=e.getDecimalPlaces(p),O=e.getDecimalPlaces(m),_=Math.max(x,O),R=Math.pow(10,_);return Math.round(p*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:y+JSON.stringify(m)}),w}};i.multipleOf=function(p,h,b,S){return u.call(this,p,h,b,S,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(p,h,b,S){return u.call(this,p,h,b,S,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(p,h,b,S){var v=new t(p,h,b,S);return p===void 0&&h.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(h.required)&&h.required.forEach(function(y){l(p,y)===void 0&&v.addError({name:"required",argument:y,message:"requires property "+JSON.stringify(y)})}),v},i.pattern=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=h.pattern;try{var m=new RegExp(y,"u")}catch{m=new RegExp(y)}return p.match(m)||v.addError({name:"pattern",argument:h.pattern,message:"does not match pattern "+JSON.stringify(h.pattern.toString())}),v}},i.format=function(p,h,b,S){if(p!==void 0){var v=new t(p,h,b,S);return!v.disableFormat&&!e.isFormat(p,h.format,this)&&v.addError({name:"format",argument:h.format,message:"does not conform to the "+JSON.stringify(h.format)+" format"}),v}},i.minLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m>=h.minLength||v.addError({name:"minLength",argument:h.minLength,message:"does not meet minimum length of "+h.minLength}),v}},i.maxLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m<=h.maxLength||v.addError({name:"maxLength",argument:h.maxLength,message:"does not meet maximum length of "+h.maxLength}),v}},i.minItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length>=h.minItems||v.addError({name:"minItems",argument:h.minItems,message:"does not meet minimum length of "+h.minItems}),v}},i.maxItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length<=h.maxItems||v.addError({name:"maxItems",argument:h.maxItems,message:"does not meet maximum length of "+h.maxItems}),v}};function f(g,p,h){var b,S=h.length;for(b=p+1,S;b<S;b++)if(e.deepCompareStrict(g,h[b]))return!1;return!0}return i.uniqueItems=function(p,h,b,S){if(h.uniqueItems===!0&&this.types.array(p)){var v=new t(p,h,b,S);return p.every(f)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},i.dependencies=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S);for(var y in h.dependencies)if(p[y]!==void 0){var m=h.dependencies[y],w=S.makeChild(m,y);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(O){p[O]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+O+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(p,m,b,w);v.instance!==x.instance&&(v.instance=x.instance),x&&x.errors.length&&(v.addError({name:"dependencies",argument:w.propertyPath,message:"does not meet dependency required by "+w.propertyPath}),v.importErrors(x))}}return v}},i.enum=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.enum))throw new r("enum expects an array",h);var v=new t(p,h,b,S);return h.enum.some(e.deepCompareStrict.bind(null,p))||v.addError({name:"enum",argument:h.enum,message:"is not one of enum values: "+h.enum.map(String).join(",")}),v},i.const=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S);return e.deepCompareStrict(h.const,p)||v.addError({name:"const",argument:h.const,message:"does not exactly match expected constant: "+h.const}),v},i.not=i.disallow=function(p,h,b,S){var v=this;if(p===void 0)return null;var y=new t(p,h,b,S),m=h.not||h.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(p,h,b,S,w)){var x=w&&(w.$id||w.id),O=x||w;y.addError({name:"not",argument:O,message:"is of prohibited type "+O})}}),y):null},Tf=n,Tf}var nc={},Cy;function fp(){if(Cy)return nc;Cy=1;var e=$i();nc.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return nc.scan=function(n,i){function s(g,p){if(!p||typeof p!="object")return;if(p.$ref){let v=e.resolveUrl(g,p.$ref);f[v]=f[v]?f[v]+1:0;return}var h=p.$id||p.id;let b=e.resolveUrl(g,h);var S=h?b:g;if(S){if(S.indexOf("#")<0&&(S+="#"),u[S]){if(!e.deepCompareStrict(u[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=p,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=p)}l(S+"/items",Array.isArray(p.items)?p.items:[p.items]),l(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),s(S+"/additionalItems",p.additionalItems),c(S+"/properties",p.properties),s(S+"/additionalProperties",p.additionalProperties),c(S+"/definitions",p.definitions),c(S+"/patternProperties",p.patternProperties),c(S+"/dependencies",p.dependencies),l(S+"/disallow",p.disallow),l(S+"/allOf",p.allOf),l(S+"/anyOf",p.anyOf),l(S+"/oneOf",p.oneOf),s(S+"/not",p.not)}function l(g,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)s(g+"/"+h,p[h])}function c(g,p){if(!(!p||typeof p!="object"))for(var h in p)s(g+"/"+h,p[h])}var u={},f={};return s(n,i),new t(u,f)},nc}var Rf,Iy;function ZF(){if(Iy)return Rf;Iy=1;var e=GF(),t=$i(),r=fp().scan,n=t.ValidatorResult,i=t.ValidatorResultError,s=t.SchemaError,l=t.SchemaContext,c="/",u=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),this.attributes=Object.create(e.validators)};u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function(h,b){var S=this;if(!h)return null;var v=r(b||c,h),y=b||h.$id||h.id;for(var m in v.id)this.schemas[m]=v.id[m];for(var m in v.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(w){return typeof S.schemas[w]>"u"}),this.schemas[y]},u.prototype.addSubSchemaArray=function(h,b){if(Array.isArray(b))for(var S=0;S<b.length;S++)this.addSubSchema(h,b[S])},u.prototype.addSubSchemaObject=function(h,b){if(!(!b||typeof b!="object"))for(var S in b)this.addSubSchema(h,b[S])},u.prototype.setSchemas=function(h){this.schemas=h},u.prototype.getSchema=function(h){return this.schemas[h]},u.prototype.validate=function(h,b,S,v){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new s("Expected `schema` to be an object or boolean");S||(S={});var y=b.$id||b.id;let m=t.resolveUrl(S.base,y||"");if(!v){v=new l(b,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=b);var w=r(m,b);for(var x in w.id){var O=w.id[x];v.schemas[x]=O}}if(S.required&&h===void 0){var _=new n(h,b,S,v);return _.addError("is required, but is undefined"),_}var _=this.validateSchema(h,b,S,v);if(_){if(S.throwAll&&_.errors.length)throw new i(_)}else throw new Error("Result undefined");return _};function f(p){var h=typeof p=="string"?p:p.$ref;return typeof h=="string"?h:!1}u.prototype.validateSchema=function(h,b,S,v){var y=new n(h,b,S,v);if(typeof b=="boolean")b===!0?b={}:b===!1&&(b={type:[]});else if(!b)throw new Error("schema is undefined");if(b.extends)if(Array.isArray(b.extends)){var m={schema:b,ctx:v};b.extends.forEach(this.schemaTraverser.bind(this,m)),b=m.schema,m.schema=null,m.ctx=null,m=null}else b=t.deepMerge(b,this.superResolve(b.extends,v));var w=f(b);if(w){var x=this.resolve(b,w,v),O=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(h,x.subschema,S,O)}var _=S&&S.skipAttributes||[];for(var R in b)if(!e.ignoreProperties[R]&&_.indexOf(R)<0){var H=null,I=this.attributes[R];if(I)H=I.call(this,h,b,S,v);else if(S.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+R,b);H&&y.importErrors(H)}if(typeof S.rewrite=="function"){var $=S.rewrite.call(this,h,b,S,v);y.instance=$}return y},u.prototype.schemaTraverser=function(h,b){h.schema=t.deepMerge(h.schema,this.superResolve(b,h.ctx))},u.prototype.superResolve=function(h,b){var S=f(h);return S?this.resolve(h,S,b).subschema:h},u.prototype.resolve=function(h,b,S){if(b=S.resolve(b),S.schemas[b])return{subschema:S.schemas[b],switchSchema:b};let y=new URL(b,"thismessage::/").hash;var m=y&&y.length&&b.substr(0,b.length-y.length);if(!m||!S.schemas[m])throw new s("no such schema <"+b+">",h);var w=t.objectGetPath(S.schemas[m],y.substr(1));if(w===void 0)throw new s("no such schema "+y+" located in <"+m+">",h);return{subschema:w,switchSchema:b}},u.prototype.testType=function(h,b,S,v,y){if(y!==void 0){if(y===null)throw new s('Unexpected null in "type" keyword');if(typeof this.types[y]=="function")return this.types[y].call(this,h);if(y&&typeof y=="object"){var m=this.validateSchema(h,y,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var g=u.prototype.types={};return g.string=function(h){return typeof h=="string"},g.number=function(h){return typeof h=="number"&&isFinite(h)},g.integer=function(h){return typeof h=="number"&&h%1===0},g.boolean=function(h){return typeof h=="boolean"},g.array=function(h){return Array.isArray(h)},g.null=function(h){return h===null},g.date=function(h){return h instanceof Date},g.any=function(h){return!0},g.object=function(h){return h&&typeof h=="object"&&!Array.isArray(h)&&!(h instanceof Date)},Rf=u,Rf}var Py;function KF(){if(Py)return dn;Py=1;var e=dn.Validator=ZF();return dn.ValidatorResult=$i().ValidatorResult,dn.ValidatorResultError=$i().ValidatorResultError,dn.ValidationError=$i().ValidationError,dn.SchemaError=$i().SchemaError,dn.SchemaScanResult=fp().SchemaScanResult,dn.scan=fp().scan,dn.validate=function(t,r,n){var i=new e;return i.validate(t,r,n)},dn}var YF=KF();const xa="/$shared",XF={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function tE(e){const t=Object.entries(XF).find(([r])=>Vt(e,r));return t==null?void 0:t[1]}function du(e){var n;const t=(n=tE(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${xa}/`,"Shared/");Eh({name:r,content:t,asText:typeof t=="string"})}async function JF(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Je(`${xa}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){rE(r)&&du(`${xa}/${t}`)}}function Ia({path:e,createIfNotExists:t=!1}){const r=`${xa}/${e}`;return Je(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const i=tE(e);let s=n;if(!i)return s;if(typeof s=="string")try{switch(i.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(i.schema&&!new YF.Validator().validate(s,i.schema).valid)throw new Error("Invalid Schema");return s}).catch(n=>{if(rE(n)&&t){const i=QF(n,e);ih.next({message:i,kind:"warning"}),du(r)}throw n})}function rE(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function QF(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function e6(e){return Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t6(e){return Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const nE=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:uh.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function r6(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const i=await Je(_t,{method:"POST",body:JSON.stringify({verb:mi.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(i.rendererPath)return i.rendererPath;const l=`http://${e}:${i.webServerHTTPPort}`,c=`https://${e}:${i.webServerHTTPSPort}`;return i.webServerHTTPPort&&i.webServerHTTPSPort?n?c:l:i.webServerHTTPPort?l:c})();return{projectOpened:i.webServerHTTPSPort>0||i.webServerHTTPPort>0,remoteDebuggerMode:i.remoteDebuggerMode,baseUrl:s,qodly:typeof i.qodly>"u"?!0:i.qodly,urls:{renderer:i.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:i.isRESTActive}}catch(i){return console.error(i),nE()}}async function iE(e){return await Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function n6(...e){return(await Promise.all(e.map(n=>iE({root:n,verb:mi.GET_FOLDER})))).map(({children:n})=>n.map(({name:i,date:s,type:l})=>({name:i,type:l,date:s,path:`${l}/${i}`}))).flat()}function i6(e,t={}){const{sanitize:r=!0}=t;return Je(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const i=new Map;return{...n,components:He.entries(n.components).map(([s,l])=>{const c=s,{resolvedName:u}=l.type;if(u==="WebformLoader"){const f=gi.generate();i.set(s,f),s=f}return[s,l,c]}).reduce((s,[l,c,u])=>{var f;return c.nodes&&(c.nodes=c.nodes.map(g=>i.get(g)||g)),c.linkedNodes&&(c.linkedNodes=He.entries(c.linkedNodes).reduce((g,[p,h])=>({...g,[p]:i.get(h)||h}),{})),(f=c.props)!=null&&f.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=i.get(g.loader)||g.loader),g))),{...s,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function o6(e){return Je(_t,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[je.METHOD,je.CLASS].includes(t.type)?au(t.content):t.content}))}function s6(e){return e.type==="folder"?Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function a6(e){return e.type==="folder"?(await Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function l6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function c6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function u6(e){return(await Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function d6(...e){return await Je(_t,{method:"POST",body:JSON.stringify({verb:mi.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function f6(e){const t=await Je("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function p6(){return await Je("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function h6(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,n=await(await fetch(t)).text(),{supported:i}=JSON.parse(n);return i}catch{return[]}}async function g6({name:e,path:t="",root:r="root",asText:n=!1}){return Je(_t,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function v6(e={}){try{return{...await Ia({path:"shared_datasources.json",...e}),...Wc}}catch{return{...Wc}}}async function m6(e={}){try{return await Ia({path:"shared_app_events.json",...e})}catch{return[]}}async function b6(e={}){try{return await Ia({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function y6(e={}){try{return await Ia({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function w6(){try{return await Je("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function x6(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const S6=vh(),E6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:He.omit(e,He.keys(Wc))};return S6(()=>Je(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},_6=vh(),O6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return _6(()=>Je(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Eh=async e=>{const t=await Je(_t,{method:"POST",body:JSON.stringify({...e,verb:mi.SET_FILE_CONTENT,root:ch.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=gh(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},k6=async e=>await Eh({name:"crafted_components.json",path:Xr.WEBFORMS,content:e});function A6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function T6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function C6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?au(t.content):t.content}).catch(t=>{var r,n;throw((n=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:n.errCode)===1839&&du(e.path),t})}function I6(e){return Je(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function P6(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function N6(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function M6(e){const t=P6(e).split(/[;,]/g).filter(Boolean).map(i=>{const s=i.split(":")[0].trim(),l=i.split(":")[1].trim();return{name:s,type:l}}),r=N6(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function D6(e,t){const n=e.split(".").pop();try{const i=await Je(_t,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});i.content=au(i.content);const{params:s,result:l}=M6(i.parameters);return{...i,params:s,returns:l}}catch(i){return console.error(i),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var oE=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(oE||{});function L6(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function z6(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const $6={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},j6={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},sE=N.createContext(void 0),F6=N.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const n=N.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return A.jsx(sE.Provider,{value:n,children:e})});function H6(){const e=N.useContext(sE);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const aE=N.createContext(null),B6=5e3,W6={top:"top-4",bottom:"bottom-4"};function V6({children:e}){const[t,r]=N.useState([]),n=N.useRef(0),i=N.useCallback(c=>{r(u=>u.filter(f=>f.id!==c))},[]),s=N.useCallback((c,u)=>{const f=++n.current,g={id:f,containerStyle:u==null?void 0:u.containerStyle,duration:c.duration??B6,position:c.position??"bottom",render:c.render};return r(p=>[...p,g]),f},[]);N.useEffect(()=>{const c=ih.subscribe(u=>{s({position:"bottom",render:({onClose:f})=>A.jsx(mx,{...u,onClose:f})})});return()=>{c.unsubscribe()}},[s]);const l=N.useMemo(()=>({pushToast:s,removeToast:i}),[s,i]);return A.jsxs(aE.Provider,{value:l,children:[e,typeof document<"u"?En.createPortal(A.jsx(A.Fragment,{children:["top","bottom"].map(c=>{const u=t.filter(f=>f.position===c);return u.length===0?null:A.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-[2147483647] flex flex-col items-center gap-3 ${W6[c]}`,children:u.map(f=>A.jsx(U6,{toast:f,onClose:()=>i(f.id)},f.id))},c)})}),document.body):null]})}function U6({toast:e,onClose:t}){return N.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),A.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function q6(e){const t=N.useContext(aE);if(!t)throw new Error("useToast must be used within a ToastProvider");return N.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=_t;exports.AppLoader=bz;exports.DATASOURCE_THEMES=$6;exports.DatasourcesActions=Z1;exports.DebuggerActions=X1;exports.DesignerRequestVerb=mi;exports.Dialog=I2;exports.DialogBody=Gy;exports.EActivity=oE;exports.ECustomStylePropsViewMode=qS;exports.EDITOR=j6;exports.EDisplayMode=xh;exports.EIDENTIFIERS=ZS;exports.EPermissionType=Xe;exports.ERROR_CODES=KS;exports.ESetting=VS;exports.ESubPermissionType=ct;exports.ETooltipBehavior=US;exports.EWebFormStyleClassScope=WS;exports.EXT_API_PREFIX=Ca;exports.FileFolderType=je;exports.FolderRootPath=Xr;exports.FolderRootType=ch;exports.Grid=r4;exports.GridItem=n4;exports.HTTPError=dp;exports.HTTP_HANDLERS_TAB_PATH=ph;exports.IPreemptive=wa;exports.IPublished=IS;exports.IPublishedRestScope=bh;exports.IdentityProvider=E4;exports.Image=P1;exports.Incase=vc;exports.IndentLines=Sx;exports.InvalidJsonError=Qz;exports.LOCALIZATION_TAB_PATH=hh;exports.LOCATION_DATASOURCE_ID=TS;exports.LogoSVG=m1;exports.LspActions=Y1;exports.MAX_FILE_NAME_LENGTH=oh;exports.MODEL_TAB_PATH=vS;exports.Modal=Gz;exports.ModalCloseReason=To;exports.ModalColor=Po;exports.ModalIcons=Xf;exports.ModalType=Yp;exports.Mutex=yS;exports.NameError=sh;exports.Overlay=qy;exports.PANEL_COLLAPSED_HEIGHT=hn;exports.PANEL_INITIAL_OPEN_RATIO=R1;exports.PANEL_MAX_RATIO=C1;exports.PERMISSIONS=yh;exports.Panel=Jz;exports.PopperTooltip=vz;exports.Portal=Dy;exports.PublishOptions=rF;exports.QODLY_NAMESPACE=ta;exports.ROLES_TAB_PATH=dh;exports.ROOT_WEBFORM_STATE=YS;exports.RemoteDebuggerMode=uh;exports.SETTINGS_TAB_PATH=fh;exports.SHARED_API_PREFIX=xa;exports.SHARED_USER_NAMESPACE=Wc;exports.SearchInput=e4;exports.SimpleGrid=i4;exports.SourceCodeDescriptor=GS;exports.StudioContextProvider=F6;exports.Switcher=Ex;exports.THEME_CLASSES=CF;exports.TITLE_DATASOURCE_ID=CS;exports.TabEventsActions=K1;exports.Tip=n1;exports.TipsProvider=wL;exports.Toast=mx;exports.ToastProvider=V6;exports.ToolbarIcon=t4;exports.Tooltip=gz;exports.Tree=uD;exports.TreeIcon=bx;exports.TreeNode=Mp;exports.USER_LANGUAGE_DATASOURCE_ID=RS;exports.WT_FLAGS_KEYS=RF;exports.WebformActions=G1;exports.WebformEventsActions=ya;exports.ZoomComponent=Yz;exports.ZoomLevel=T1;exports._isArrayDatasource=Yj;exports._isObjectDatasource=Xj;exports.actionsToPrivs=zS;exports.addAttributesToContent=iF;exports.addFolder=l6;exports.addItem=BF;exports.addPermission=bF;exports.addPrivilegeIn=uF;exports.allowed=lF;exports.by=wS;exports.byId=Mj;exports.byPath=Dj;exports.callAll=eE;exports.callAllHandlers=LF;exports.callServerSideParser=qF;exports.checkUpdates=e6;exports.children=Uc;exports.createFolder=A6;exports.createPrivilege=fF;exports.createRole=_F;exports.dataAttr=zF;exports.datasourcesSubject=c$;exports.debuggerSubject=p$;exports.deepDeleteCondition=JS;exports.deepSanitizeCondition=QS;exports.dropFile=a6;exports.dropFolder=u6;exports.editors=mS;exports.exists=Lj;exports.extractWebformName=Rj;exports.filterBySeriousError=BS;exports.focus=$F;exports.formatErrorsAsBulletToast=TF;exports.generateUUID=up;exports.getAppSettings=r6;exports.getCashedPrefrences=zj;exports.getCatalog=p6;exports.getDatasourceId=$j;exports.getDefaultAppSettings=nE;exports.getDefaultContent=NF;exports.getDictByName=jS;exports.getDisplayableFeedbackErrors=AF;exports.getEditors=Tj;exports.getErrorListFromPayload=HS;exports.getFile=o6;exports.getFileContent=g6;exports.getFileExtentionFromType=bS;exports.getFilePath=DF;exports.getFilenameAndTypeFromPath=Aj;exports.getFilenameFromType=Cj;exports.getFilesInfo=d6;exports.getFolder=iE;exports.getFolders=n6;exports.getFunctionContent=D6;exports.getGraphData=mF;exports.getInheritedResources=FS;exports.getMonacoTheme=x6;exports.getNodeInfo=C6;exports.getPrivilegeById=Wn;exports.getPromotions=EF;exports.getResourceFromType=wh;exports.getSavedConditions=y6;exports.getSharedAppEvents=m6;exports.getSharedCSS=b6;exports.getSharedDatasources=v6;exports.getSharedResource=Ia;exports.getSupportedLanguages=h6;exports.getTypeFromExtension=gh;exports.getUserPrivileges=w6;exports.getWebForm=i6;exports.hasAttributesString=NS;exports.http=Je;exports.i18nSubject=g$;exports.initializeDefaultProjectFiles=JF;exports.installUpdates=t6;exports.isArrayDatasource=OS;exports.isBaseState=IF;exports.isDataClassMethod=Bj;exports.isDataStoreMethod=Hj;exports.isDateDatasource=Jj;exports.isEntity=Zj;exports.isEntityDatasource=Uj;exports.isEntityMethod=Wj;exports.isEntitySelection=Kj;exports.isEntitySelectionDatasource=qj;exports.isEntitySelectionMethod=Vj;exports.isInputEvent=WF;exports.isObjectAttribute=jj;exports.isObjectDatasource=kS;exports.isRelatedAttribute=Fj;exports.isRelatedEntitiesAttribute=ES;exports.isRelatedEntityAttribute=_S;exports.isSameNamespace=Qj;exports.isScalarDatasource=AS;exports.isSimpleAttribute=SS;exports.isSimpleDatasource=Gj;exports.loadDS=eF;exports.loadI18n=tF;exports.localeCompare=xS;exports.log=L6;exports.login=f6;exports.lspSubject=f$;exports.mergeRefs=jF;exports.moveItem=R6;exports.outBy=Pj;exports.outById=Nj;exports.parents=uu;exports.parseAttributes=nF;exports.parseCatalog=oF;exports.populateShallow=hF;exports.queue=vh;exports.refactorConditions=Sh;exports.refactorWebform=PF;exports.removeAttributesString=MS;exports.removeItem=T6;exports.removeMultiplePermissions=wF;exports.removePermission=yF;exports.removePrivilege=cF;exports.removePrivilegeFrom=dF;exports.removeRole=OF;exports.renameFile=s6;exports.renameFolder=c6;exports.renamePrivilege=pF;exports.resetResources=xF;exports.rolesToAPI=vF;exports.sanitizeContent=au;exports.sanitizeNameCY=sF;exports.sanitizePermissions=$S;exports.sanitizePrivileges=DS;exports.sanitizeRoles=gF;exports.saveContent=I6;exports.saveRole=kF;exports.selectorEqualityFn=MF;exports.setCraftedComponents=k6;exports.setFileContent=Eh;exports.setSharedAppEvents=O6;exports.setSharedSources=E6;exports.sortPrivileges=LS;exports.splitDatasourceID=mh;exports.stopEvent=VF;exports.stringifyAttributes=PS;exports.tabEventsSubject=d$;exports.tasksManagerSubject=h$;exports.toastSubject=ih;exports.togglePermission=SF;exports.trackEvent=z6;exports.transformDates=UF;exports.tryCreateSharedResource=du;exports.uniquePush=Fr;exports.updateDsCondition=XS;exports.useBoolean=U4;exports.useCallbackRef=q4;exports.useControllableProp=B1;exports.useControllableState=G4;exports.useDidMountEffect=o4;exports.useDoubleClick=A4;exports.useDsChangeRenderer=V4;exports.useDsRendererAdapter=W4;exports.useEnhancedState=B4;exports.useFeatureFlags=S4;exports.useFormControlProps=Y4;exports.useForwardedRef=x4;exports.useHotkeys=m4;exports.useIdentity=_4;exports.useOutsideClick=b4;exports.usePrevious=y4;exports.useSafeLayoutEffect=Z4;exports.useStateObject=O4;exports.useStateRef=w4;exports.useStudioContext=H6;exports.useTip=r1;exports.useToast=q6;exports.useUpdateEffect=K4;exports.validateName=su;exports.validateServerSide=v$;exports.validateValue=m$;exports.visuallyHiddenStyle=HF;exports.warn=FF;exports.webformEventsSubject=Hc;exports.webformSubject=u$;
253
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function ap(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var su=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,n,i,s;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=Uf(l),u=c.next();!u.done;u=c.next()){var f=u.value;f.remove(this)}}catch(v){t={error:v}}finally{try{u&&!u.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var g=this.initialTeardown;if(Bn(g))try{g()}catch(v){s=v instanceof Cf?v.errors:[v]}var p=this._finalizers;if(p){this._finalizers=null;try{for(var h=Uf(p),b=h.next();!b.done;b=h.next()){var S=b.value;try{my(S)}catch(v){s=s??[],v instanceof Cf?s=Nc(Nc([],qf(s)),qf(v.errors)):s.push(v)}}}catch(v){n={error:v}}finally{try{b&&!b.done&&(i=h.return)&&i.call(h)}finally{if(n)throw n.error}}}if(s)throw new Cf(s)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)my(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(t)}},e.prototype._hasParent=function(t){var r=this._parentage;return r===t||Array.isArray(r)&&r.includes(t)},e.prototype._addParent=function(t){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(t),r):r?[r,t]:t},e.prototype._removeParent=function(t){var r=this._parentage;r===t?this._parentage=null:Array.isArray(r)&&ap(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&ap(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Z1=su.EMPTY;function K1(e){return e instanceof su||e&&"closed"in e&&Bn(e.remove)&&Bn(e.add)&&Bn(e.unsubscribe)}function my(e){Bn(e)?e():e.unsubscribe()}var Xz={Promise:void 0},Jz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,Nc([e,t],qf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Qz(e){Jz.setTimeout(function(){throw e})}function by(){}function Sc(e){e()}var Y1=(function(e){Qc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,K1(r)&&r.add(n)):n.destination=r$,n}return t.create=function(r,n,i){return new lp(r,n,i)},t.prototype.next=function(r){this.isStopped||this._next(r)},t.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(r){this.destination.next(r)},t.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t})(su),e$=(function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var r=this.partialObserver;if(r.next)try{r.next(t)}catch(n){rc(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){rc(n)}else rc(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){rc(r)}},e})(),lp=(function(e){Qc(t,e);function t(r,n,i){var s=e.call(this)||this,l;return Bn(r)||!r?l={next:r??void 0,error:n??void 0,complete:i??void 0}:l=r,s.destination=new e$(l),s}return t})(Y1);function rc(e){Qz(e)}function t$(e){throw e}var r$={closed:!0,next:by,error:t$,complete:by},n$=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function i$(e){return e}function o$(e){return e.length===0?i$:e.length===1?e[0]:function(r){return e.reduce(function(n,i){return i(n)},r)}}var yy=(function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(t,r,n){var i=this,s=a$(t)?t:new lp(t,r,n);return Sc(function(){var l=i,c=l.operator,u=l.source;s.add(c?c.call(s,u):u?i._subscribe(s):i._trySubscribe(s))}),s},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var n=this;return r=wy(r),new r(function(i,s){var l=new lp({next:function(c){try{t(c)}catch(u){s(u),l.unsubscribe()}},error:s,complete:i});n.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[n$]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return o$(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=wy(t),new t(function(n,i){var s;r.subscribe(function(l){return s=l},function(l){return i(l)},function(){return n(s)})})},e.create=function(t){return new e(t)},e})();function wy(e){var t;return(t=e??Xz.Promise)!==null&&t!==void 0?t:Promise}function s$(e){return e&&Bn(e.next)&&Bn(e.error)&&Bn(e.complete)}function a$(e){return e&&e instanceof Y1||s$(e)&&K1(e)}var l$=G1(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),_n=(function(e){Qc(t,e);function t(){var r=e.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return t.prototype.lift=function(r){var n=new xy(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new l$},t.prototype.next=function(r){var n=this;Sc(function(){var i,s;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=Uf(n.currentObservers),c=l.next();!c.done;c=l.next()){var u=c.value;u.next(r)}}catch(f){i={error:f}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(i)throw i.error}}}})},t.prototype.error=function(r){var n=this;Sc(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var i=n.observers;i.length;)i.shift().error(r)}})},t.prototype.complete=function(){var r=this;Sc(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.observers;n.length;)n.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(r){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,r)},t.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},t.prototype._innerSubscribe=function(r){var n=this,i=this,s=i.hasError,l=i.isStopped,c=i.observers;return s||l?Z1:(this.currentObservers=null,c.push(r),new su(function(){n.currentObservers=null,ap(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,i=n.hasError,s=n.thrownError,l=n.isStopped;i?r.error(s):l&&r.complete()},t.prototype.asObservable=function(){var r=new yy;return r.source=this,r},t.create=function(r,n){return new xy(r,n)},t})(yy),xy=(function(e){Qc(t,e);function t(r,n){var i=e.call(this)||this;return i.destination=r,i.source=n,i}return t.prototype.next=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.next)===null||i===void 0||i.call(n,r)},t.prototype.error=function(r){var n,i;(i=(n=this.destination)===null||n===void 0?void 0:n.error)===null||i===void 0||i.call(n,r)},t.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},t.prototype._subscribe=function(r){var n,i;return(i=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&i!==void 0?i:Z1},t})(_n),X1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(X1||{}),J1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(J1||{});const c$=new _n,u$=new _n,lh=new _n;var Q1=(e=>(e.SAVE_ALL="save-all",e))(Q1||{});const d$=new _n;var eS=(e=>(e.WILL_SAVE="will-save",e.DID_SAVE="did-save",e.WILL_CREATE="will-create",e.WILL_RENAME="will-rename",e.WILL_DELETE="will-delete",e.DID_CREATE="did-create",e.DID_RENAME="did-rename",e.DID_DELETE="did-delete",e.DIAGNOSTIC_REFRESH="diagnostic-refresh",e))(eS||{});const f$=new _n;var tS=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(tS||{});const p$=new _n,h$=new _n;var ya=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(ya||{});const Wc=new _n,g$=new _n,ch=255;var uh=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${ch} characters (including extension)`,e.SHOULD_START_WITH_LETTER="The name can only start with a letter or a Japanese character",e.INVALID="Invalid name",e))(uh||{});function au(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>ch)throw new Error(uh.LENGTH_EXCEEDED);if(!/^[a-zA-Z\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF]/.test(r))throw new Error("The name can only start with a letter or a Japanese character");if(!/^[\w\u3040-\u30FF\u3400-\u4DBF\u4E00-\u9FAF-]+$/i.test(r))throw new Error("Invalid name");return!0}function v$(e){if(!e)return null;if(typeof e=="string")try{au(e)}catch(t){return t.message}}function m$(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!Fe.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Fe.isObject(n)||Array.isArray(n))&&(r=`Invalid value for type ${t}`)}catch{r=`Invalid value for type ${t}`}return t==="date"&&(new RegExp(/^(0?[1-9]|[12][0-9]|3[01])[/-](0?[1-9]|1[012])[/-]\d{4}$/).test(e)||(r=`Invalid value for type ${t}`)),t==="number"&&isNaN(+e)&&(r=`Invalid value for type ${t}`),["boolean","bool"].includes(t)&&typeof e!="boolean"&&!["true","false"].includes(e)&&(r=`Invalid value for type ${t}`),r}function b$(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function lu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=b$();let n=r;const i=[],s="@!",l=g=>(i.push(g),`${t}${n++}${s}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,p,h)=>p+l(h)),c=c.replace(/:\d{2}:\d{2}/g,l);const u=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let f=c.replace(u,"");for(let g=0;g<i.length;g++){const h=`${t}${g}${s}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(h,"g");f=f.replace(b,i[g])}return f}const rS=(e,t,r)=>{const n=e instanceof RegExp?Sy(e,r):e,i=t instanceof RegExp?Sy(t,r):t,s=n!==null&&i!=null&&y$(n,i,r);return s&&{start:s[0],end:s[1],pre:r.slice(0,s[0]),body:r.slice(s[0]+n.length,s[1]),post:r.slice(s[1]+i.length)}},Sy=(e,t)=>{const r=t.match(e);return r?r[0]:null},y$=(e,t,r)=>{let n,i,s,l,c,u=r.indexOf(e),f=r.indexOf(t,u+1),g=u;if(u>=0&&f>0){if(e===t)return[u,f];for(n=[],s=r.length;g>=0&&!c;){if(g===u)n.push(g),u=r.indexOf(e,g+1);else if(n.length===1){const p=n.pop();p!==void 0&&(c=[p,f])}else i=n.pop(),i!==void 0&&i<s&&(s=i,l=f),f=r.indexOf(t,g+1);g=u<f&&u>=0?u:f}n.length&&l!==void 0&&(c=[s,l])}return c},nS="\0SLASH"+Math.random()+"\0",iS="\0OPEN"+Math.random()+"\0",dh="\0CLOSE"+Math.random()+"\0",oS="\0COMMA"+Math.random()+"\0",sS="\0PERIOD"+Math.random()+"\0",w$=new RegExp(nS,"g"),x$=new RegExp(iS,"g"),S$=new RegExp(dh,"g"),E$=new RegExp(oS,"g"),_$=new RegExp(sS,"g"),O$=/\\\\/g,k$=/\\{/g,A$=/\\}/g,T$=/\\,/g,R$=/\\\./g,C$=1e5;function Pf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function P$(e){return e.replace(O$,nS).replace(k$,iS).replace(A$,dh).replace(T$,oS).replace(R$,sS)}function I$(e){return e.replace(w$,"\\").replace(x$,"{").replace(S$,"}").replace(E$,",").replace(_$,".")}function aS(e){if(!e)return[""];const t=[],r=rS("{","}",e);if(!r)return e.split(",");const{pre:n,body:i,post:s}=r,l=n.split(",");l[l.length-1]+="{"+i+"}";const c=aS(s);return s.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function N$(e,t={}){if(!e)return[];const{max:r=C$}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),Qs(P$(e),r,!0).map(I$)}function M$(e){return"{"+e+"}"}function D$(e){return/^-?0\d/.test(e)}function L$(e,t){return e<=t}function z$(e,t){return e>=t}function Qs(e,t,r){const n=[],i=rS("{","}",e);if(!i)return[e];const s=i.pre,l=i.post.length?Qs(i.post,t,!1):[""];if(/\$$/.test(i.pre))for(let c=0;c<l.length&&c<t;c++){const u=s+"{"+i.body+"}"+l[c];n.push(u)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=c||u,g=i.body.indexOf(",")>=0;if(!f&&!g)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+dh+i.post,Qs(e,t,!0)):[e];let p;if(f)p=i.body.split(/\.\./);else if(p=aS(i.body),p.length===1&&p[0]!==void 0&&(p=Qs(p[0],t,!1).map(M$),p.length===1))return l.map(b=>i.pre+p[0]+b);let h;if(f&&p[0]!==void 0&&p[1]!==void 0){const b=Pf(p[0]),S=Pf(p[1]),v=Math.max(p[0].length,p[1].length);let y=p.length===3&&p[2]!==void 0?Math.max(Math.abs(Pf(p[2])),1):1,m=L$;S<b&&(y*=-1,m=z$);const x=p.some(D$);h=[];for(let O=b;m(O,S);O+=y){let _;if(u)_=String.fromCharCode(O),_==="\\"&&(_="");else if(_=String(O),x){const R=v-_.length;if(R>0){const H=new Array(R+1).join("0");O<0?_="-"+H+_.slice(1):_=H+_}}h.push(_)}}else{h=[];for(let b=0;b<p.length;b++)h.push.apply(h,Qs(p[b],t,!1))}for(let b=0;b<h.length;b++)for(let S=0;S<l.length&&n.length<t;S++){const v=s+h[b]+l[S];(!r||f||v)&&n.push(v)}}return n}const $$=1024*64,Bc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>$$)throw new TypeError("pattern is too long")},j$={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},Gs=e=>e.replace(/[[\]\\-]/g,"\\$&"),F$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Ey=e=>e.join(""),H$=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],i=[];let s=r+1,l=!1,c=!1,u=!1,f=!1,g=r,p="";e:for(;s<e.length;){const v=e.charAt(s);if((v==="!"||v==="^")&&s===r+1){f=!0,s++;continue}if(v==="]"&&l&&!u){g=s+1;break}if(l=!0,v==="\\"&&!u){u=!0,s++;continue}if(v==="["&&!u){for(const[y,[m,w,x]]of Object.entries(j$))if(e.startsWith(y,s)){if(p)return["$.",!1,e.length-r,!0];s+=y.length,x?i.push(m):n.push(m),c=c||w;continue e}}if(u=!1,p){v>p?n.push(Gs(p)+"-"+Gs(v)):v===p&&n.push(Gs(v)),p="",s++;continue}if(e.startsWith("-]",s+1)){n.push(Gs(v+"-")),s+=2;continue}if(e.startsWith("-",s+1)){p=v,s+=2;continue}n.push(Gs(v)),s++}if(g<s)return["",!1,0,!1];if(!n.length&&!i.length)return["$.",!1,e.length-r,!0];if(i.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!f){const v=n[0].length===2?n[0].slice(-1):n[0];return[F$(v),!1,g-r,!1]}const h="["+(f?"^":"")+Ey(n)+"]",b="["+(f?"":"^")+Ey(i)+"]";return[n.length&&i.length?"("+h+"|"+b+")":n.length?h:b,c,g-r,!0]},ea=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!0}={})=>r?t?e.replace(/\[([^/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):t?e.replace(/\[([^/\\{}])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");var ar;const W$=new Set(["!","?","+","*","@"]),cp=e=>W$.has(e),_y=e=>cp(e.type),B$=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),V$=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),U$=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Oy=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),q$="(?!(?:^|/)\\.\\.?(?:$|/))",nc="(?!\\.)",G$=new Set(["[","."]),Z$=new Set(["..","."]),K$=new Set("().*{}+?[]^$\\!"),Y$=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),fh="[^/]",ky=fh+"*?",Ay=fh+"+?";let X$=0;var Et,Nt,Fn,Ce,dt,di,$i,fi,gn,vn,No,Be,lS,hi,Ec,cS,up,_c,uS,dp,dS,fS,pS,Oc,fp,hS;class cu{constructor(t,r,n={}){Ft(this,Be);Te(this,"type");Ft(this,Et);Ft(this,Nt);Ft(this,Fn,!1);Ft(this,Ce,[]);Ft(this,dt);Ft(this,di);Ft(this,$i);Ft(this,fi,!1);Ft(this,gn);Ft(this,vn);Ft(this,No,!1);Te(this,"id",++X$);this.type=t,t&&Qe(this,Nt,!0),Qe(this,dt,r),Qe(this,Et,ae(this,dt)?ae(ae(this,dt),Et):this),Qe(this,gn,ae(this,Et)===this?n:ae(ae(this,Et),gn)),Qe(this,$i,ae(this,Et)===this?[]:ae(ae(this,Et),$i)),t==="!"&&!ae(ae(this,Et),fi)&&ae(this,$i).push(this),Qe(this,di,ae(this,dt)?ae(ae(this,dt),Ce).length:0)}get depth(){var t;return(((t=ae(this,dt))==null?void 0:t.depth)??-1)+1}[Symbol.for("nodejs.util.inspect.custom")](){var t;return{"@@type":"AST",id:this.id,type:this.type,root:ae(this,Et).id,parent:(t=ae(this,dt))==null?void 0:t.id,depth:this.depth,partsLength:ae(this,Ce).length,parts:ae(this,Ce)}}get hasMagic(){if(ae(this,Nt)!==void 0)return ae(this,Nt);for(const t of ae(this,Ce))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,Nt,!0);return ae(this,Nt)}toString(){return ae(this,vn)!==void 0?ae(this,vn):this.type?Qe(this,vn,this.type+"("+ae(this,Ce).map(t=>String(t)).join("|")+")"):Qe(this,vn,ae(this,Ce).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof ar&&ae(r,dt)===this))throw new Error("invalid part: "+r);ae(this,Ce).push(r)}}toJSON(){var r;const t=this.type===null?ae(this,Ce).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...ae(this,Ce).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===ae(this,Et)||ae(ae(this,Et),fi)&&((r=ae(this,dt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(ae(this,Et)===this)return!0;if(!((r=ae(this,dt))!=null&&r.isStart()))return!1;if(ae(this,di)===0)return!0;const t=ae(this,dt);for(let n=0;n<ae(this,di);n++){const i=ae(t,Ce)[n];if(!(i instanceof ar&&i.type==="!"))return!1}return!0}isEnd(){var r,n,i;if(ae(this,Et)===this||((r=ae(this,dt))==null?void 0:r.type)==="!")return!0;if(!((n=ae(this,dt))!=null&&n.isEnd()))return!1;if(!this.type)return(i=ae(this,dt))==null?void 0:i.isEnd();const t=ae(this,dt)?ae(ae(this,dt),Ce).length:0;return ae(this,di)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new ar(this.type,t);for(const n of ae(this,Ce))r.copyIn(n);return r}static fromGlob(t,r={}){var i;const n=new ar(null,void 0,r);return Ee(i=ar,hi,Ec).call(i,t,n,0,r,0),n}toMMPattern(){if(this!==ae(this,Et))return ae(this,Et).toMMPattern();const t=this.toString(),[r,n,i,s]=this.toRegExpSource();if(!(i||ae(this,Nt)||ae(this,gn).nocase&&!ae(this,gn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(ae(this,gn).nocase?"i":"")+(s?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return ae(this,gn)}toRegExpSource(t){var u;const r=t??!!ae(this,gn).dot;if(ae(this,Et)===this&&(Ee(this,Be,Oc).call(this),Ee(this,Be,lS).call(this)),!_y(this)){const f=this.isStart()&&this.isEnd()&&!ae(this,Ce).some(S=>typeof S!="string"),g=ae(this,Ce).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?Ee(x=ar,hi,hS).call(x,S,ae(this,Nt),f):S.toRegExpSource(t);return Qe(this,Nt,ae(this,Nt)||m),Qe(this,Fn,ae(this,Fn)||w),v}).join("");let p="";if(this.isStart()&&typeof ae(this,Ce)[0]=="string"&&!(ae(this,Ce).length===1&&Z$.has(ae(this,Ce)[0]))){const v=G$,y=r&&v.has(g.charAt(0))||g.startsWith("\\.")&&v.has(g.charAt(2))||g.startsWith("\\.\\.")&&v.has(g.charAt(4)),m=!r&&!t&&v.has(g.charAt(0));p=y?q$:m?nc:""}let h="";return this.isEnd()&&ae(ae(this,Et),fi)&&((u=ae(this,dt))==null?void 0:u.type)==="!"&&(h="(?:$|\\/)"),[p+g+h,ea(g),Qe(this,Nt,!!ae(this,Nt)),ae(this,Fn)]}const n=this.type==="*"||this.type==="+",i=this.type==="!"?"(?:(?!(?:":"(?:";let s=Ee(this,Be,fp).call(this,r);if(this.isStart()&&this.isEnd()&&!s&&this.type!=="!"){const f=this.toString(),g=this;return Qe(g,Ce,[f]),g.type=null,Qe(g,Nt,void 0),[f,ea(this.toString()),!1,!1]}let l=!n||t||r||!nc?"":Ee(this,Be,fp).call(this,!0);l===s&&(l=""),l&&(s=`(?:${s})(?:${l})*?`);let c="";if(this.type==="!"&&ae(this,No))c=(this.isStart()&&!r?nc:"")+Ay;else{const f=this.type==="!"?"))"+(this.isStart()&&!r&&!t?nc:"")+ky+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=i+s+f}return[c,ea(s),Qe(this,Nt,!!ae(this,Nt)),ae(this,Fn)]}}Et=new WeakMap,Nt=new WeakMap,Fn=new WeakMap,Ce=new WeakMap,dt=new WeakMap,di=new WeakMap,$i=new WeakMap,fi=new WeakMap,gn=new WeakMap,vn=new WeakMap,No=new WeakMap,Be=new WeakSet,lS=function(){if(this!==ae(this,Et))throw new Error("should only call on root");if(ae(this,fi))return this;this.toString(),Qe(this,fi,!0);let t;for(;t=ae(this,$i).pop();){if(t.type!=="!")continue;let r=t,n=ae(r,dt);for(;n;){for(let i=ae(r,di)+1;!n.type&&i<ae(n,Ce).length;i++)for(const s of ae(t,Ce)){if(typeof s=="string")throw new Error("string part in extglob AST??");s.copyIn(ae(n,Ce)[i])}r=n,n=ae(r,dt)}}return this},hi=new WeakSet,Ec=function(t,r,n,i,s){var v,y,m,w;const l=i.maxExtglobRecursion??2;let c=!1,u=!1,f=-1,g=!1;if(r.type===null){let x=n,O="";for(;x<t.length;){const _=t.charAt(x++);if(c||_==="\\"){c=!c,O+=_;continue}if(u){x===f+1?(_==="^"||_==="!")&&(g=!0):_==="]"&&!(x===f+2&&g)&&(u=!1),O+=_;continue}else if(_==="["){u=!0,f=x,g=!1,O+=_;continue}if(!i.noext&&cp(_)&&t.charAt(x)==="("&&s<=l){r.push(O),O="";const H=new ar(_,r);x=Ee(v=ar,hi,Ec).call(v,t,H,x,i,s+1),r.push(H);continue}O+=_}return r.push(O),x}let p=n+1,h=new ar(null,r);const b=[];let S="";for(;p<t.length;){const x=t.charAt(p++);if(c||x==="\\"){c=!c,S+=x;continue}if(u){p===f+1?(x==="^"||x==="!")&&(g=!0):x==="]"&&!(p===f+2&&g)&&(u=!1),S+=x;continue}else if(x==="["){u=!0,f=p,g=!1,S+=x;continue}if(!i.noext&&cp(x)&&t.charAt(p)==="("&&(s<=l||r&&Ee(y=r,Be,_c).call(y,x))){const _=r&&Ee(m=r,Be,_c).call(m,x)?0:1;h.push(S),S="";const R=new ar(x,h);h.push(R),p=Ee(w=ar,hi,Ec).call(w,t,R,p,i,s+_);continue}if(x==="|"){h.push(S),S="",b.push(h),h=new ar(null,r);continue}if(x===")")return S===""&&ae(r,Ce).length===0&&Qe(r,No,!0),h.push(S),S="",r.push(...b,h),p;S+=x}return r.type=null,Qe(r,Nt,void 0),Qe(r,Ce,[t.substring(n-1)]),p},cS=function(t){return Ee(this,Be,up).call(this,t,V$)},up=function(t,r=B$){if(!t||typeof t!="object"||t.type!==null||ae(t,Ce).length!==1||this.type===null)return!1;const n=ae(t,Ce)[0];return!n||typeof n!="object"||n.type===null?!1:Ee(this,Be,_c).call(this,n.type,r)},_c=function(t,r=U$){var n;return!!((n=r.get(this.type))!=null&&n.includes(t))},uS=function(t,r){const n=ae(t,Ce)[0],i=new ar(null,n,this.options);ae(i,Ce).push(""),n.push(i),Ee(this,Be,dp).call(this,t,r)},dp=function(t,r){const n=ae(t,Ce)[0];ae(this,Ce).splice(r,1,...ae(n,Ce));for(const i of ae(n,Ce))typeof i=="object"&&Qe(i,dt,this);Qe(this,vn,void 0)},dS=function(t){const r=Oy.get(this.type);return!!(r!=null&&r.has(t))},fS=function(t){if(!t||typeof t!="object"||t.type!==null||ae(t,Ce).length!==1||this.type===null||ae(this,Ce).length!==1)return!1;const r=ae(t,Ce)[0];return!r||typeof r!="object"||r.type===null?!1:Ee(this,Be,dS).call(this,r.type)},pS=function(t){const r=Oy.get(this.type),n=ae(t,Ce)[0],i=r==null?void 0:r.get(n.type);if(!i)return!1;Qe(this,Ce,ae(n,Ce));for(const s of ae(this,Ce))typeof s=="object"&&Qe(s,dt,this);this.type=i,Qe(this,vn,void 0),Qe(this,No,!1)},Oc=function(){var t,r;if(_y(this)){let n=0,i=!1;do{i=!0;for(let s=0;s<ae(this,Ce).length;s++){const l=ae(this,Ce)[s];typeof l=="object"&&(Ee(r=l,Be,Oc).call(r),Ee(this,Be,up).call(this,l)?(i=!1,Ee(this,Be,dp).call(this,l,s)):Ee(this,Be,cS).call(this,l)?(i=!1,Ee(this,Be,uS).call(this,l,s)):Ee(this,Be,fS).call(this,l)&&(i=!1,Ee(this,Be,pS).call(this,l)))}}while(!i&&++n<10)}else for(const n of ae(this,Ce))typeof n=="object"&&Ee(t=n,Be,Oc).call(t);Qe(this,vn,void 0)},fp=function(t){return ae(this,Ce).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,i,s,l]=r.toRegExpSource(t);return Qe(this,Fn,ae(this,Fn)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},hS=function(t,r,n=!1){let i=!1,s="",l=!1,c=!1;for(let u=0;u<t.length;u++){const f=t.charAt(u);if(i){i=!1,s+=(K$.has(f)?"\\":"")+f;continue}if(f==="*"){if(c)continue;c=!0,s+=n&&/^[*]+$/.test(t)?Ay:ky,r=!0;continue}else c=!1;if(f==="\\"){u===t.length-1?s+="\\\\":i=!0;continue}if(f==="["){const[g,p,h,b]=H$(t,u);if(h){s+=g,l=l||p,u+=h-1,r=r||b;continue}}if(f==="?"){s+=fh,r=!0;continue}s+=Y$(f)}return[s,ea(t),!!r,l]},Ft(cu,hi);ar=cu;const J$=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Vt=(e,t,r={})=>(Bc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new uu(t,r).match(e)),Q$=/^\*+([^+@!?*[(]*)$/,ej=e=>t=>!t.startsWith(".")&&t.endsWith(e),tj=e=>t=>t.endsWith(e),rj=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),nj=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),ij=/^\*+\.\*+$/,oj=e=>!e.startsWith(".")&&e.includes("."),sj=e=>e!=="."&&e!==".."&&e.includes("."),aj=/^\.\*+$/,lj=e=>e!=="."&&e!==".."&&e.startsWith("."),cj=/^\*+$/,uj=e=>e.length!==0&&!e.startsWith("."),dj=e=>e.length!==0&&e!=="."&&e!=="..",fj=/^\?+([^+@!?*[(]*)?$/,pj=([e,t=""])=>{const r=gS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},hj=([e,t=""])=>{const r=vS([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},gj=([e,t=""])=>{const r=vS([e]);return t?n=>r(n)&&n.endsWith(t):r},vj=([e,t=""])=>{const r=gS([e]);return t?n=>r(n)&&n.endsWith(t):r},gS=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},vS=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},mS=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Ty={win32:{sep:"\\"},posix:{sep:"/"}},mj=mS==="win32"?Ty.win32.sep:Ty.posix.sep;Vt.sep=mj;const Zt=Symbol("globstar **");Vt.GLOBSTAR=Zt;const bj="[^/]",yj=bj+"*?",wj="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",xj="(?:(?!(?:\\/|^)\\.).)*?",Sj=(e,t={})=>r=>Vt(r,e,t);Vt.filter=Sj;const Dr=(e,t={})=>Object.assign({},e,t),Ej=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Vt;const t=Vt;return Object.assign((n,i,s={})=>t(n,i,Dr(e,s)),{Minimatch:class extends t.Minimatch{constructor(i,s={}){super(i,Dr(e,s))}static defaults(i){return t.defaults(Dr(e,i)).Minimatch}},AST:class extends t.AST{constructor(i,s,l={}){super(i,s,Dr(e,l))}static fromGlob(i,s={}){return t.AST.fromGlob(i,Dr(e,s))}},unescape:(n,i={})=>t.unescape(n,Dr(e,i)),escape:(n,i={})=>t.escape(n,Dr(e,i)),filter:(n,i={})=>t.filter(n,Dr(e,i)),defaults:n=>t.defaults(Dr(e,n)),makeRe:(n,i={})=>t.makeRe(n,Dr(e,i)),braceExpand:(n,i={})=>t.braceExpand(n,Dr(e,i)),match:(n,i,s={})=>t.match(n,i,Dr(e,s)),sep:t.sep,GLOBSTAR:Zt})};Vt.defaults=Ej;const bS=(e,t={})=>(Bc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:N$(e,{max:t.braceExpandMax}));Vt.braceExpand=bS;const _j=(e,t={})=>new uu(e,t).makeRe();Vt.makeRe=_j;const Oj=(e,t,r={})=>{const n=new uu(t,r);return e=e.filter(i=>n.match(i)),n.options.nonull&&!e.length&&e.push(t),e};Vt.match=Oj;const Ry=/[?*]|[+@!]\(.*?\)|\[|\]/,kj=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var xr,yS,pp,Oo;class uu{constructor(t,r={}){Ft(this,xr);Te(this,"options");Te(this,"set");Te(this,"pattern");Te(this,"windowsPathsNoEscape");Te(this,"nonegate");Te(this,"negate");Te(this,"comment");Te(this,"empty");Te(this,"preserveMultipleSlashes");Te(this,"partial");Te(this,"globSet");Te(this,"globParts");Te(this,"nocase");Te(this,"isWindows");Te(this,"platform");Te(this,"windowsNoMagicRoot");Te(this,"maxGlobstarRecursion");Te(this,"regexp");Bc(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||mS,this.isWindows=this.platform==="win32";const n="allowWindowsEscape";this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[n]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make()}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(const t of this.set)for(const r of t)if(typeof r!="string")return!0;return!1}debug(...t){}make(){const t=this.pattern,r=this.options;if(!r.nocomment&&t.charAt(0)==="#"){this.comment=!0;return}if(!t){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],r.debug&&(this.debug=(...s)=>console.error(...s)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(s=>this.slashSplit(s));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let i=this.globParts.map((s,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=s[0]===""&&s[1]===""&&(s[2]==="?"||!Ry.test(s[2]))&&!Ry.test(s[3]),f=/^[a-z]:/i.test(s[0]);if(u)return[...s.slice(0,4),...s.slice(4).map(g=>this.parse(g))];if(f)return[s[0],...s.slice(1).map(g=>this.parse(g))]}return s.map(u=>this.parse(u))});if(this.debug(this.pattern,i),this.set=i.filter(s=>s.indexOf(!1)===-1),this.isWindows)for(let s=0;s<this.set.length;s++){const l=this.set[s];l[0]===""&&l[1]===""&&this.globParts[s][2]==="?"&&typeof l[3]=="string"&&/^[a-z]:$/i.test(l[3])&&(l[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(const n of t)for(let i=0;i<n.length;i++)n[i]==="**"&&(n[i]="*");const{optimizationLevel:r=1}=this.options;return r>=2?(t=this.firstPhasePreProcess(t),t=this.secondPhasePreProcess(t)):r>=1?t=this.levelOneOptimize(t):t=this.adjascentGlobstarOptimize(t),t}adjascentGlobstarOptimize(t){return t.map(r=>{let n=-1;for(;(n=r.indexOf("**",n+1))!==-1;){let i=n;for(;r[i+1]==="**";)i++;i!==n&&r.splice(n,i-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,i)=>{const s=n[n.length-1];return i==="**"&&s==="**"?n:i===".."&&s&&s!==".."&&s!=="."&&s!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let i=1;i<t.length-1;i++){const s=t[i];i===1&&s===""&&t[0]===""||(s==="."||s==="")&&(r=!0,t.splice(i,1),i--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const i=t[n-1];i&&i!=="."&&i!==".."&&i!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(i))&&(r=!0,t.splice(n-1,2),n-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let n of t){let i=-1;for(;(i=n.indexOf("**",i+1))!==-1;){let l=i;for(;n[l+1]==="**";)l++;l>i&&n.splice(i+1,l-i);let c=n[i+1];const u=n[i+2],f=n[i+3];if(c!==".."||!u||u==="."||u===".."||!f||f==="."||f==="..")continue;r=!0,n.splice(i,1);const g=n.slice(0);g[i]="**",t.push(g),i--}if(!this.preserveMultipleSlashes){for(let l=1;l<n.length-1;l++){const c=n[l];l===1&&c===""&&n[0]===""||(c==="."||c==="")&&(r=!0,n.splice(l,1),l--)}n[0]==="."&&n.length===2&&(n[1]==="."||n[1]==="")&&(r=!0,n.pop())}let s=0;for(;(s=n.indexOf("..",s+1))!==-1;){const l=n[s-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=s===1&&n[s+1]==="**"?["."]:[];n.splice(s-1,2,...u),n.length===0&&n.push(""),s-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let n=r+1;n<t.length;n++){const i=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(i){t[r]=[],t[n]=i;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let i=0,s=0,l=[],c="";for(;i<t.length&&s<r.length;)if(t[i]===r[s])l.push(c==="b"?r[s]:t[i]),i++,s++;else if(n&&t[i]==="**"&&r[s]===t[i+1])l.push(t[i]),i++;else if(n&&r[s]==="**"&&t[i]===r[s+1])l.push(r[s]),s++;else if(t[i]==="*"&&r[s]&&(this.options.dot||!r[s].startsWith("."))&&r[s]!=="**"){if(c==="b")return!1;c="a",l.push(t[i]),i++,s++}else if(r[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(c==="a")return!1;c="b",l.push(r[s]),i++,s++}else return!1;return t.length===r.length&&l}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,n=0;for(let i=0;i<t.length&&t.charAt(i)==="!";i++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let i=0,s=0;if(this.isWindows){const c=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),u=!c&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),f=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!f&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),p=u?3:c?0:void 0,h=g?3:f?0:void 0;if(typeof p=="number"&&typeof h=="number"){const[b,S]=[t[p],r[h]];b.toLowerCase()===S.toLowerCase()&&(r[h]=b,s=h,i=p)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Zt)?Ee(this,xr,yS).call(this,t,r,n,i,s):Ee(this,xr,Oo).call(this,t,r,n,i,s)}braceExpand(){return bS(this.pattern,this.options)}parse(t){Bc(t);const r=this.options;if(t==="**")return Zt;if(t==="")return"";let n,i=null;(n=t.match(cj))?i=r.dot?dj:uj:(n=t.match(Q$))?i=(r.nocase?r.dot?nj:rj:r.dot?tj:ej)(n[1]):(n=t.match(fj))?i=(r.nocase?r.dot?hj:pj:r.dot?gj:vj)(n):(n=t.match(ij))?i=r.dot?sj:oj:(n=t.match(aj))&&(i=lj);const s=cu.fromGlob(t,this.options).toMMPattern();return i&&typeof s=="object"&&Reflect.defineProperty(s,"test",{value:i}),s}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;const t=this.set;if(!t.length)return this.regexp=!1,this.regexp;const r=this.options,n=r.noglobstar?yj:r.dot?wj:xj,i=new Set(r.nocase?["i"]:[]);let s=t.map(u=>{const f=u.map(p=>{if(p instanceof RegExp)for(const h of p.flags.split(""))i.add(h);return typeof p=="string"?kj(p):p===Zt?Zt:p._src});f.forEach((p,h)=>{const b=f[h+1],S=f[h-1];p!==Zt||S===Zt||(S===void 0?b!==void 0&&b!==Zt?f[h+1]="(?:\\/|"+n+"\\/)?"+b:f[h]=n:b===void 0?f[h-1]=S+"(?:\\/|\\/"+n+")?":b!==Zt&&(f[h-1]=S+"(?:\\/|\\/"+n+"\\/)"+b,f[h+1]=Zt))});const g=f.filter(p=>p!==Zt);if(this.partial&&g.length>=1){const p=[];for(let h=1;h<=g.length;h++)p.push(g.slice(0,h).join("/"));return"(?:"+p.join("|")+")"}return g.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];s="^"+l+s+c+"$",this.partial&&(s="^(?:\\/|"+l+s.slice(1,-1)+c+")$"),this.negate&&(s="^(?!"+s+").+$");try{this.regexp=new RegExp(s,[...i].join(""))}catch{this.regexp=!1}return this.regexp}slashSplit(t){return this.preserveMultipleSlashes?t.split("/"):this.isWindows&&/^\/\/[^/]+/.test(t)?["",...t.split(/\/+/)]:t.split(/\/+/)}match(t,r=this.partial){if(this.debug("match",t,this.pattern),this.comment)return!1;if(this.empty)return t==="";if(t==="/"&&r)return!0;const n=this.options;this.isWindows&&(t=t.split("\\").join("/"));const i=this.slashSplit(t);this.debug(this.pattern,"split",i);const s=this.set;this.debug(this.pattern,"set",s);let l=i[i.length-1];if(!l)for(let c=i.length-2;!l&&c>=0;c--)l=i[c];for(const c of s){let u=i;if(n.matchBase&&c.length===1&&(u=[l]),this.matchOne(u,c,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Vt.defaults(t).Minimatch}}xr=new WeakSet,yS=function(t,r,n,i,s){const l=r.indexOf(Zt,s),c=r.lastIndexOf(Zt),[u,f,g]=n?[r.slice(s,l),r.slice(l+1),[]]:[r.slice(s,l),r.slice(l+1,c),r.slice(c+1)];if(u.length){const w=t.slice(i,i+u.length);if(!Ee(this,xr,Oo).call(this,w,u,n,0,0))return!1;i+=u.length,s+=u.length}let p=0;if(g.length){if(g.length+i>t.length)return!1;let w=t.length-g.length;if(Ee(this,xr,Oo).call(this,t,g,n,w,0))p=g.length;else{if(t[t.length-1]!==""||i+g.length===t.length||(w--,!Ee(this,xr,Oo).call(this,t,g,n,w,0)))return!1;p=g.length+1}}if(!f.length){let w=!!p;for(let x=i;x<t.length-p;x++){const O=String(t[x]);if(w=!0,O==="."||O===".."||!this.options.dot&&O.startsWith("."))return!1}return n||w}const h=[[[],0]];let b=h[0],S=0;const v=[0];for(const w of f)w===Zt?(v.push(S),b=[[],0],h.push(b)):(b[0].push(w),S++);let y=h.length-1;const m=t.length-p;for(const w of h)w[1]=m-(v[y--]+w[0].length);return!!Ee(this,xr,pp).call(this,t,h,i,0,n,0,!!p)},pp=function(t,r,n,i,s,l,c){const u=r[i];if(!u){for(let p=n;p<t.length;p++){c=!0;const h=t[p];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}const[f,g]=u;for(;n<=g;){if(Ee(this,xr,Oo).call(this,t.slice(0,n+f.length),f,s,n,0)&&l<this.maxGlobstarRecursion){const b=Ee(this,xr,pp).call(this,t,r,n+f.length,i+1,s,l+1,c);if(b!==!1)return b}const h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return s||null},Oo=function(t,r,n,i,s){let l,c,u,f;for(l=i,c=s,f=t.length,u=r.length;l<f&&c<u;l++,c++){this.debug("matchOne loop");let g=r[c],p=t[l];if(this.debug(r,g,p),g===!1||g===Zt)return!1;let h;if(typeof g=="string"?(h=p===g,this.debug("string match",g,p,h)):(h=g.test(p),this.debug("pattern match",g,p,h)),!h)return!1}if(l===f&&c===u)return!0;if(l===f)return n;if(c===u)return l===f-1&&t[l]==="";throw new Error("wtf?")};Vt.AST=cu;Vt.Minimatch=uu;Vt.escape=J$;Vt.unescape=ea;var ph=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(ph||{});const Jr={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var je=(e=>(e.FOLDER="folder",e.WEBFORM="webform",e.REPORT="report",e.METHOD="method",e.CLASS="class",e.CLASS_FOLDER="classfolder",e.DEBUGGER="debugger",e.WELCOME="welcome",e.SETTINGS="settings",e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.DEBUGGERS="debugger",e.MODELS="models",e.ROLES="roles",e.HTTP_HANDLERS="http-handlers",e.LOCALIZATION="localization",e.MODEL="model",e.DATA_EXPLORER="dataexplorer",e.MOBILE="mobile",e.MOBILEFORM="mform",e.FILE="file",e.TEXT="text",e))(je||{}),mi=(e=>(e.GET_FOLDER="getFolder",e.GET="get",e.SAVE="save",e.RENAME="rename",e.DROP="drop",e.ADD_FOLDER="addFolder",e.CREATE_FOLDER="mkdir",e.RENAME_FOLDER="renameFolder",e.DROP_FOLDER="dropFolder",e.REMOVE_ITEM="removeItem",e.MOVE_ITEM="moveItem",e.GET_INFO="getInfo",e.SAVE_CONTENT="save",e.UPDATE_CHECK="update:check",e.UPDATE_INSTALL="update:install",e.GET_APP_SETTINGS="getWebServerInfo",e.GET_FILE_CONTENT="getFileContent",e.SET_FILE_CONTENT="setFileContent",e.GET_FILES_INFO="getFilesInfo",e))(mi||{}),hh=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(hh||{});const gh="roles.json",vh="qodlyApp.json",wS="model.4DModel",mh="HTTPHandlers.json",bh="Shared/i18n.json",xS=[{pattern:vh,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:gh,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:mh,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:bh,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:wS,editor:{key:"editors:model"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.webform",editor:{key:"editors:webforms"},supportedEditors:[{key:"editors:event-report"},{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"**/*.qodoc",editor:{key:"editors:reports"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:"Methods/*.4dm",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Methods/*.4qs",editor:{key:"editors:code:method",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4dm",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"Classes/*.4qs",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(json)",editor:{key:"editors:code",config:{language:"json"}}},{pattern:"**/*.+(js)",editor:{key:"editors:code",config:{language:"js"}}},{pattern:"**/*.+(css)",editor:{key:"editors:code",config:{language:"css"}}},{pattern:"**/*.+(txt)",editor:{key:"editors:code",config:{language:""}}},{pattern:"Debugger/*",editor:{key:"editors:code",config:{theme:"fd-dark",language:"4d"}}},{pattern:"**/*.+(png|jpeg|jpg|gif|svg)",editor:{key:"editors:img"}}];function Aj(e){const t=yh(e);switch(t){case je.SETTINGS:return{filename:"Settings",type:t};case je.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case je.ROLES:return{filename:"Roles & Privileges",type:t};case je.LOCALIZATION:return{filename:"Localization",type:t};case je.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function Tj(e){const t=xS.find(({pattern:r})=>Vt(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function yh(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return je.MODEL;case r==="WebForm":return je.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Jr.METHODS):return je.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Jr.CLASSES):return je.CLASS;case e===gh:return je.ROLES;case e===mh:return je.HTTP_HANDLERS;case e===vh:return je.SETTINGS;case e===bh:return je.LOCALIZATION;default:return je.TEXT}}function SS(e,t=!1){switch(e){case Jr.REPORTS:case"report":return"QoDoc";case Jr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Jr.CLASSES:case Jr.METHODS:return t?"4qs":"4dm";default:return""}}function Rj(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function Cj(e,t,r){switch(t){case je.MOBILEFORM:return`${e}.MForm`;case je.WEBFORM:return`${e}.WebForm`;case je.REPORT:return`${e}.QoDoc`;case je.METHOD:case je.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class ES{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(i=>{t=i}),n=this.current.then(()=>t);return this.current=r,n}}function wh(){const e=new ES;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const Pj="4DWS_PREFS",_S=Fe.curry((e,t,r)=>e&&Fe.get(r,e)===t),Ij=Fe.curry((e,t,r)=>Fe.get(r,e)!==t),Nj=Fe.curry((e,t)=>Fe.get(t,"id")!==e),Mj=Fe.curry((e,t)=>Fe.get(t,"id")===e),Dj=Fe.curry((e,t)=>Fe.get(t,"path")===e);function Lj(e="id",t,r){return r.findIndex(_S(e,t))!==-1}function OS(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function zj(){try{const e=localStorage.getItem(Pj);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function $j(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function xh(e=""){const t=e.trim().split(":")||[];let r="",n="";return t.length>1?(r=t[1],n=t[0]):r=t[0],{id:r,namespace:n,root:r.split(".").filter(Boolean)[0],original:n?`${n}:${r}`:r,parts:t}}function kS(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function jj(e){return e.type==="object"}function AS(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function TS(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!kS(e)}function Fj(e){return AS(e)||TS(e)}function Hj(e){return e.applyTo==="dataStore"}function Wj(e){return e.applyTo==="dataClass"}function Bj(e){return e.applyTo==="entity"}function Vj(e){return e.applyTo==="entityCollection"}function Uj(e){return e.type==="entity"}function qj(e){return e.type==="entitysel"}function RS(e){return e.dataType==="array"}function CS(e){return e.dataType==="object"}function PS(e){return e.type==="scalar"}function Gj(e){return RS(e)||CS(e)||PS(e)}const Zj=e=>e!=null&&e.type==="entity",Kj=e=>e.type==="entitysel",Yj=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",Xj=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",Jj=e=>e.type==="scalar"&&e.dataType==="date",Qj=(e,t)=>(e||"")===(t||"");function eF(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function tF(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const ta="Qodly",IS="Location",NS="UserLanguage",MS="Title",Vc={[ta]:[{id:MS,dataType:"string",type:"scalar",namespace:ta,initialValue:""},{id:IS,dataType:"object",type:"scalar",namespace:ta,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:NS,dataType:"object",type:"scalar",namespace:ta,initialValue:{selected:{},supported:[]},schema:{type:"object",properties:[{name:"selected",type:"object",initialValue:{},attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]},{name:"supported",type:"array",initialValue:[],attributes:[{name:"isocode",type:"string"},{name:"local",type:"string"},{name:"native",type:"string"},{name:"flag",type:"string"}]}]}}]};var wa=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(wa||{}),DS=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(DS||{}),Sh=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Sh||{});const rF={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function nF(e){var s;let t={};try{const l=((s=e.match(/\/\/%attributes = (.*)/))==null?void 0:s[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:wa.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Sh.table}},...n}}function LS(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[wa.capable,wa.incapable].includes(e.preemptive)&&(t.preemptive=e.preemptive),e.publishedSoap&&(t.publishedSoap=!0,e.publishedWsdl&&(t.publishedWsdl=!0)),e.publishedWeb&&(t.publishedWeb=!0),e.publishedSql&&(t.publishedSql=!0),e.publishedRest&&e.publishedRestOptions&&(t.published4DMobile=e.publishedRestOptions),JSON.stringify(t).replace(/"(true|false)"/g,"$1")}function iF(e,t,r=!1){const n=Fe.isString(t)?t:LS(t);if(!r&&zS(e))return e;const i=$S(e);return`//%attributes = ${n}\r
254
+ ${i}`}function zS(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function $S(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const hp=()=>gi.uuid().replaceAll("-","").toUpperCase();function oF(e){var i,s;const t=new Map,r=new Map,n=new Map;return(i=e.singletons)==null||i.forEach(({methods:l=[],...c})=>{n.set(c.name,{...c,methods:l})}),(s=e.dataClasses)==null||s.forEach(({methods:l=[],...c})=>{const u={...c,methods:l};if(u.uuid||(u.uuid=hp()),u.attributes){const f=["storage","relatedEntity"];u.attributes=u.attributes.map(g=>f.includes(g.kind)&&!g.uuid?{...g,uuid:hp()}:g)}r.set(u.className,u),t.set(u.collectionName,u)}),{...e,methods:e.methods||[],dataClasses:Object.fromEntries(r.entries()),dataClassByCollectionName:Object.fromEntries(t.entries()),singletons:Object.fromEntries(n.entries())}}const sF=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Xe=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Xe||{}),ct=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ct||{});const aF=[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE,Xe.SINGLETON_METHOD,Xe.SINGLETON,Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD],Cy=e=>[ct.DS_METHOD,ct.ENTITY_METHOD,ct.DATACLASS_METHOD].includes(e)?Xe.METHOD:e,Uc="guest",Eh=[{key:"read",label:"Read",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Xe.DATASTORE,Xe.DATACLASS,Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD,Xe.SINGLETON,Xe.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Xe.METHOD,ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD,Xe.SINGLETON_METHOD]}];function Hr(e,...t){return Array.from(new Set([...e,...t]))}function jS(e){const t={},r=new Map;e.forEach(u=>{const f=u.id||gi.generate();t[f]={...u,id:f,parents:[],includes:Hr(u.includes||[]),resources:[]},r.set(u.privilege,f)}),Object.entries(t).forEach(([u,f])=>{const g=f.includes.map(p=>{const h=r.get(p);return h?(t[h].parents=Hr(t[h].parents,h),h):""}).filter(Boolean);t[u]={...f,includes:g}});const n=FS(t),i=new Set;function s(u){i.add(u.id),u.includes=u.includes.filter(f=>!i.has(f))}if(n.forEach(s),n.forEach(u=>u.parents=[]),n.forEach(u=>{u.includes.forEach(f=>t[f].parents.push(u.id))}),Object.values(t).find(({privilege:u})=>u===Uc))return t;const c=gi.generate();return{[c]:{id:c,privilege:Uc,includes:[],parents:[],resources:[]},...t}}function FS(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function du(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(i=>{n=Hr(n,...du(i,t),i)}),n}function qc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(i=>{n=Hr(n,...qc(i,t),i)}),n}function lF(e,t){const r=t[e];if(!r)return[];const n=[e,...du(e,t),...r.includes];return Object.keys(t).filter(i=>!n.includes(i))}function cF(e,t){return t[e]?Object.keys(t).reduce((n,i)=>i===e?n:{...n,[i]:{...t[i],parents:t[i].parents.filter(s=>s!==e),includes:t[i].includes.filter(s=>s!==e)}},{}):t}function uF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:Hr(n.includes,t)},[t]:{...r[t],parents:Hr(i.parents,e)}}}function dF(e,t,r){const n=r[e],i=r[t];return!n||!i?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(s=>s!==t)},[t]:{...r[t],parents:r[t].parents.filter(s=>s!==e)}}}function fF(e,t){au(e),Object.entries(t).forEach(([,{privilege:n}])=>{if(e.toLowerCase()===n.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=gi.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function pF(e,t,r){if(!e)throw new Error("Please enter a name");if(!r[t])throw new Error("Invalid privilege");return Object.entries(r).forEach(([,{privilege:n,id:i}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==i)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function hF(e,t){return e.map(r=>Un(r,t))}function Un(e,t){return t[e]?t[e]:null}function HS({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[i,s])=>{const l=Fe.find(Eh,["key",i]);return!l||!l.canApplyTo.includes(t)||(typeof s=="string"?s.split(","):s).forEach(u=>{n[u]=Hr(n[u]||[],i)}),n},{})}const Py=(e,t=!1)=>["read","create","update","delete"].includes(e.toLowerCase())?`All ${t?"dataclasses and ":""}attributes have the '${e.toLowerCase()}' permission`:e.toLowerCase()==="execute"?`All functions defined ${t?"through the model (DataStore, Dataclasses, Entity selections, Entities) have the execute permission":"on this Dataclass, Entity selection class, Entity class have the execute permission"}`:`All ${t?"dataclasses, ":""}attributes and functions have the '${e.toLowerCase()}' permission`;function _h(e){return{permissions:Eh.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Xe.DATASTORE:return{...n,info:Py(r,!0)};case Xe.DATACLASS:return{...n,info:Py(r)};default:return n}}),resource:e.applyTo,type:e.type}}function WS(e,t){const r=BS(t),n={};return e.filter(({type:i})=>aF.includes(i)).forEach(i=>{const s=HS(i);Object.entries(s).forEach(([l,c])=>{var g;const u=(g=r[l])==null?void 0:g.id;if(!u)return;n[u]=n[u]||{...t[u]};let f=Fe.find(n[u].resources,{resource:i.applyTo,type:i.type});f||(f=_h(i),n[u].resources.push(f)),f.permissions=f.permissions.map(p=>({...p,checked:p.checked||c.includes(p.name)}))})}),{...t,...n}}function BS(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function gF(e){var r;if(!e)throw new Error("Invalid roles data");const t=jS(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:WS(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=gi.generate(),role:i,privileges:s=[]})=>({id:n,role:i,privileges:Hr(s).map(l=>{var c;return(c=Object.values(t).find(({privilege:u})=>u===l))==null?void 0:c.id}).filter(Boolean)})).reduce((n,i)=>({...n,[i.id]:{...i}}),{})}}function vF(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>du(n,e.privileges).reverse())].flat().filter((n,i,s)=>s.indexOf(n)===i).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,i)=>(i.resources.forEach(({permissions:s,resource:l,type:c})=>{let u=Fe.find(n,{applyTo:l,type:Cy(c)});u||(u={applyTo:l,type:Cy(c)},n.push(u)),s.forEach(({name:f,checked:g})=>{g&&u&&(u[f]=u[f]||[],u[f].push(i.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==Uc).map(({id:n,includes:i,privilege:s})=>({id:n,privilege:s,includes:i.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(i=>{var s;return(s=e.privileges[i])==null?void 0:s.privilege}).filter(Boolean)}))}}function mF(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function i(c,u,f=[]){const g=c.reduce((p,h)=>[...p,...t[h][u]],[]);return g.length===0?f:(f.push(g),i(g,u,f))}function s(c){const u=[],f=[];for(let g=c.length-1;g>=0;g-=1){const p=c[g].filter(h=>u.includes(h)?!1:(u.push(h),!0));p.length>0&&f.unshift(Hr(p))}return f}function l(c,u){const f=[];return c.reduce((g,p)=>(p.forEach(h=>{t[h][u==="parents"?"includes":"parents"].forEach(S=>{f.includes(S)&&g.push(u==="parents"?{source:h,target:S}:{source:S,target:h})}),f.push(h)}),g),[])}return n.children=i([e],"includes"),n.children=s(n.children),n.parents=i([e],"parents"),n.parents=s(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function bF(e,t,r){const n=Un(e,r);if(!n||Fe.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const i={...n,resources:[...n.resources,_h(t)]};return{...r,[e]:i}}function yF(e,t,r){const n=Un(e,r);if(!n)return r;const i={...n,resources:n.resources.filter(({resource:s,type:l})=>s!==t.applyTo||l!==t.type)};return{...r,[e]:i}}function wF(e,t){const r=Object.entries(e).map(([n,i])=>{const s=Un(n,t);if(!s)return{[n]:t[n]};const l={...s,resources:s.resources.filter(({resource:c,type:u})=>!i.some(f=>f.applyTo===c&&f.type===u))};return{[n]:l}}).reduce((n,i)=>({...n,...i}),{});return{...t,...r}}function xF(e,t){const r=Un(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(i=>i.permissions.some(s=>s.from.length)).map(i=>({...i,permissions:i.permissions.map(s=>({...s,checked:!1}))}))};return{...t,[e]:n}}function SF(e,t,r,n){const i=Un(e,n);if(!i)return n;const l=Fe.find(i.resources,{type:t.type,resource:t.resource})?{...i,resources:i.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(u=>u.name===r.name?{...u,checked:!u.checked,from:[]}:u)}:c)}:{...i,resources:[...i.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...n,[e]:l}}function EF(e,t){var u;const r=VS(e,t)||[],n=((u=Un(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:f})=>[ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD].includes(f))||[]).map(({resource:f})=>f);return Object.entries(t).reduce((f,[g,{resources:p}])=>(p.filter(({resource:h,type:b})=>[ct.DS_METHOD,ct.DATACLASS_METHOD,ct.ENTITY_METHOD,ct.ENTITY_SEL_METHOD].includes(b)&&l.includes(h)).forEach(({permissions:h,resource:b})=>{var v;((v=h.find(({name:y})=>y==="promote"))==null?void 0:v.checked)&&(f[b]=Hr(f[b]||[],g))}),f),{})}function VS(e,t){var l;const r=Un(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===Uc))==null?void 0:l.id;return(n&&n!==e?Hr(qc(e,t),n):qc(e,t)).reduce((c,u)=>(t[u].resources.forEach(g=>{if(g.permissions.filter(({checked:b,name:S})=>b&&S!=="promote").length===0)return;const h=Fe.find(c,{type:g.type,resource:g.resource});if(!h){c.push({...g,permissions:g.permissions.map(b=>({...b,from:b.checked?[u]:[],checked:!1}))});return}h.permissions=h.permissions.map((b,S)=>{let{from:v=[]}=b;return g.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...b,from:v,checked:b.checked}})}),c),Fe.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...f})=>({...f,checked:!!u}))}))))}const _F=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},OF=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,kF=(e,t)=>{if(au(e.role),Object.values(t).find(n=>n.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((n,i)=>e.id===i.id?{...n,[e.id]:e}:{...n,[i.id]:i},{})};function US(e){var r;if(!e||typeof e!="object")return[];const t=((r=e.__STATUS)==null?void 0:r.errors)??e.__ERRORS??e.errorStack;return Array.isArray(t)?t:[]}function qS(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function AF(e,t){const r=US(e);return qS(r,t)}function TF(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var GS=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(GS||{}),ZS=(e=>(e.GROUP="group",e.TEXT_FIELD="textfield",e.COLOR_PICKER="colorpicker",e.LAYOUT="layout",e.RADIOGROUP="radiogroup",e.SELECT="select",e.BORDERS="borders",e.BORDER_RADIUS="borderRadius",e.DIMENSIONS="dimensions",e.COMBOBOX="combobox",e.UNITFIELD="unitfield",e.DATAGRID="datagrid",e.CHECKBOX="checkbox",e.NUMBER_FIELD="number",e.FORMAT_FIELD="format",e.DISPLAY="display",e.BOXSHADOW="boxshadow",e.CSSCLASS_SELECTOR="cssClassSelector",e.CUSTOM_STYLE_PROPS_SELECTOR="customStylePropertiesSelector",e.ICON_PICKER="iconPicker",e.ASYNC_SELECT="asyncSelect",e.DS_AUTO_SUGGEST="dsAutoSuggest",e.POSITION="position",e.BACKGROUND="background",e.SELECTBOXLENGTH="selectBoxLength",e.I18NFIELD="i18nField",e.DATE_INTERVALS="dateIntervals",e))(ZS||{}),KS=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(KS||{}),Oh=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(Oh||{}),YS=(e=>(e.GRID="grid",e.COMPACT="compact",e))(YS||{}),XS=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(XS||{}),JS=(e=>(e.WelCome="WelCome",e.ActionPanel="ActionPanel",e.SideBar="SideBar",e.Settings="Settings",e.Main="Main",e.Explorer="Explorer",e.Header="Header",e.ComponentList="ComponentList",e))(JS||{});const RF={SIDEBAR_SECTION_RESIZABLE:"sidebar.section.resizable"};var QS=(e=>(e[e.FILE_NOT_FOUND=1839]="FILE_NOT_FOUND",e[e.JSON_MALFORMED=554]="JSON_MALFORMED",e[e.JSON_MALFORMED_AT_LINE=550]="JSON_MALFORMED_AT_LINE",e))(QS||{});const eE={label:"Base",id:"root"},CF=["rounded-full","rounded-lg","border-gray-400","border-2","bg-red-500","bg-blue-500","bg-indigo-500","bg-transparent","bg-primary-dark","bg-green-500","bg-yellow-400","text-gray-500","text-4xl","text-white","px-4","py-2","primary","info","secondary","success","warning","danger","w-10","w-20","w-40","w-60","w-80","mb-2","mb-3","shadow","shadow-lg","shadow-xl","shadow-2xl"],PF=e=>e.id===eE.id,kh=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(n=>kh(n,t,r))}:e:e;function IF(e,t){const{id:r,label:n}=t;return{...e,components:Object.entries(e.components||{}).reduce((i,[s,l])=>({...i,[s]:{...l,custom:Object.entries(l.custom).reduce((c,[u,f])=>u===`states:${r}`?c:{...c,[u]:f},{}),props:Object.entries(l.props).reduce((c,[u,f])=>{let g=f;return u==="events"&&(g=g.map(p=>{var h,b;return p.type==="simple-action"?{...p,state:{...p.state,states:(b=(h=p.state)==null?void 0:h.states)==null?void 0:b.filter(S=>S!==r)}}:p})),{...c,[u]:g}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(i=>(i==null?void 0:i.id)!==r).map(i=>i.conditions?{...i,conditions:kh(i.conditions,n)}:i)}}}const tE=(e,t,r)=>{switch(e.type){case"datasource":return{...e,path:e.path===t?r:e.path,value:e.valueType==="datasource"&&e.value===t?r:e.value,compareValue:e.compareValueType==="datasource"&&e.compareValue===t?r:e.compareValue};case"privilege":case"currentState":case"parentState":if(e.valueType==="datasource")return{...e,value:e.value===t?r:e.value};break;case"combination":return{...e,conditions:(e.conditions||[]).map(n=>tE(n,t,r))}}return e},rE=(e,t)=>{if(e.id===t||e.type==="reference"&&e.ref===t)return null;if(e.type==="combination"&&e.conditions){const r=e.conditions.map(n=>rE(n,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},nE=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(nE)}:e:{...e,id:gi.generate()};function NF(e,t={}){switch(e){case je.WEBFORM:case je.WEBFORMS:{const r={metadata:{v:"1.0",datasources:[],styles:[]},components:{ROOT:{parent:"",type:{resolvedName:"Container"},isCanvas:!0,props:{airyMode:!1,className:"bg-white w-full px-6",classNames:[],events:[]},displayName:"Page",custom:{},hidden:!1,nodes:[],linkedNodes:{}}}};return t["webforms.display-mode"]===Oh.AIRY&&(r.components.ROOT.props.airyMode=!0),r}case je.REPORT:return{metadata:{v:"1.0",datasources:[],styles:[]},pages:[{name:"doc",id:"index",components:{ROOT:{type:{resolvedName:"Document"},isCanvas:!0,props:{classNames:[],events:[],airyMode:!1,className:"bg-white w-full px-6"},displayName:"Document",custom:{},parent:"",hidden:!1,nodes:[],linkedNodes:{}}}}]};case je.METHOD:case je.METHODS:return`//%attributes = {}
255
+ `;case je.HTTP_HANDLERS:return[];case je.LOCALIZATION:case je.SETTINGS:return{};case je.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function MF(e,t){return Fe.isEqual(e,t)}function DF(e,t){const{qodly:r=!0,withExtension:n=!0}=t||{},i=SS(e.type,r);let s="";switch(e.type){case je.WEBFORM:s=`${Jr.WEBFORMS}/${e.name}`;break;case je.METHOD:s=`${Jr.METHODS}/${e.name}`;break;case je.CLASS:s=`${Jr.CLASSES}/${e.name}`;break;default:return""}return`${s}${n?`.${i}`:""}`}function iE(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const LF=iE;function zF(e){return e?"":void 0}function $F(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function jF(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function FF({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const HF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function WF(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function BF(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function VF(e){e.preventDefault(),e.stopPropagation()}const Ot="/rest/$designer",Ca="/rest/$designer-ext";function UF(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(n=>{typeof r[n]=="string"&&(r[n]=new Date(r[n]))}),r}}class gp extends Error{constructor(t,r,n){super(),this.url=t,this.response=r,this.data=n}log(){console.error("Error while sending the request",this)}}async function Je(e,t){var i;Wc.next({action:ya.REQUEST_SENT});const r=await window.fetch(e,t);if(/401/.test(r.status.toString())&&(window.location.href="/login.html?redirect=studio"),/^[45]/.test(r.status.toString())){let s;try{const l=await r.json();((i=l==null?void 0:l.__ERROR)==null?void 0:i.some(u=>u.errCode===1651))&&Wc.next({action:ya.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),s=new gp(e,r,l)}catch{s=new gp(e,r)}throw s.log(),s}return await r.json()}function qF(e){return Wc.next({action:ya.REQUEST_SENT}),e}var dn={},Ht={},Iy;function zi(){if(Iy)return Ht;Iy=1;var e=Ht.ValidationError=function(v,y,m,w,x,O){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,H){return R+c(H)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var _=m.$id||m.id;this.schema=_||m}y!==void 0&&(this.instance=y),this.name=x,this.argument=O,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=Ht.ValidatorResult=function(v,y,m,w){this.instance=v,this.schema=y,this.options=m,this.path=w.path,this.propertyPath=w.propertyPath,this.errors=[],this.throwError=m&&m.throwError,this.throwFirst=m&&m.throwFirst,this.throwAll=m&&m.throwAll,this.disableFormat=m&&m.disableFormat===!0};t.prototype.addError=function(v){var y;if(typeof v=="string")y=new e(v,this.instance,this.schema,this.path);else{if(!v)throw new Error("Missing error detail");if(!v.message)throw new Error("Missing error message");if(!v.name)throw new Error("Missing validator type");y=new e(v.message,this.instance,this.schema,this.path,v.name,v.argument)}if(this.errors.push(y),this.throwFirst)throw new n(this);if(this.throwError)throw y;return y},t.prototype.importErrors=function(v){typeof v=="string"||v&&v.validatorType?this.addError(v):v&&v.errors&&(this.errors=this.errors.concat(v.errors))};function r(S,v){return v+": "+S.toString()+`
256
+ `}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),Ht.ValidatorResultError=n;function n(S){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,n),this.instance=S.instance,this.schema=S.schema,this.options=S.options,this.errors=S.errors}n.prototype=new Error,n.prototype.constructor=n,n.prototype.name="Validation Error";var i=Ht.SchemaError=function S(v,y){this.message=v,this.schema=y,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};i.prototype=Object.create(Error.prototype,{constructor:{value:i,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var s=Ht.SchemaContext=function(v,y,m,w,x){this.schema=v,this.options=y,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(O,_){return O+c(_)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};s.prototype.resolve=function(v){return b(this.base,v)},s.prototype.makeChild=function(v,y){var m=y===void 0?this.path:this.path.concat([y]),w=v.$id||v.id;let x=b(this.base,w||"");var O=new s(v,this.options,m,x,Object.create(this.schemas));return w&&!O.schemas[x]&&(O.schemas[x]=v),O};var l=Ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(S){return typeof S=="string"&&parseFloat(S)===parseInt(S,10)&&!isNaN(S)},regex:function(S){var v=!0;try{new RegExp(S)}catch{v=!1}return v},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],Ht.isFormat=function(v,y,m){if(typeof v=="string"&&l[y]!==void 0){if(l[y]instanceof RegExp)return l[y].test(v);if(typeof l[y]=="function")return l[y](v)}else if(m&&m.customFormats&&typeof m.customFormats[y]=="function")return m.customFormats[y](v);return!0};var c=Ht.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};Ht.deepCompareStrict=function S(v,y){if(typeof v!=typeof y)return!1;if(Array.isArray(v))return!Array.isArray(y)||v.length!==y.length?!1:v.every(function(x,O){return S(v[O],y[O])});if(typeof v=="object"){if(!v||!y)return v===y;var m=Object.keys(v),w=Object.keys(y);return m.length!==w.length?!1:m.every(function(x){return S(v[x],y[x])})}return v===y};function u(S,v,y,m){typeof y=="object"?v[m]=p(S[m],y):S.indexOf(y)===-1&&v.push(y)}function f(S,v,y){v[y]=S[y]}function g(S,v,y,m){typeof v[m]!="object"||!v[m]?y[m]=v[m]:S[m]?y[m]=p(S[m],v[m]):y[m]=v[m]}function p(S,v){var y=Array.isArray(v),m=y&&[]||{};return y?(S=S||[],m=m.concat(S),v.forEach(u.bind(null,S,m))):(S&&typeof S=="object"&&Object.keys(S).forEach(f.bind(null,S,m)),Object.keys(v).forEach(g.bind(null,S,v,m))),m}Ht.deepMerge=p,Ht.objectGetPath=function(v,y){for(var m=y.split("/").slice(1),w;typeof(w=m.shift())=="string";){var x=decodeURIComponent(w.replace(/~0/,"~").replace(/~1/g,"/"));if(!(x in v))return;v=v[x]}return v};function h(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}Ht.encodePath=function(v){return v.map(h).join("")},Ht.getDecimalPlaces=function(v){var y=0;if(isNaN(v))return y;typeof v!="number"&&(v=Number(v));var m=v.toString().split("e");if(m.length===2){if(m[1][0]!=="-")return y;y=Number(m[1].slice(1))}var w=m[0].split(".");return w.length===2&&(y+=w[1].length),y},Ht.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var b=Ht.resolveUrl=function(v,y){const m=new URL(y,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:O}=m;return w+x+O}return m.toString()};return Ht}var If,Ny;function GF(){if(Ny)return If;Ny=1;var e=zi(),t=e.ValidatorResult,r=e.SchemaError,n={};n.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var i=n.validators={};i.type=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=Array.isArray(h.type)?h.type:[h.type];if(!y.some(this.testType.bind(this,p,h,b,S))){var m=y.map(function(w){if(w){var x=w.$id||w.id;return x?"<"+x+">":w+""}});v.addError({name:"type",argument:m,message:"is not of a type(s) "+m})}return v};function s(g,p,h,b,S){var v=p.throwError,y=p.throwAll;p.throwError=!1,p.throwAll=!1;var m=this.validateSchema(g,S,p,h);return p.throwError=v,p.throwAll=y,!m.valid&&b instanceof Function&&b(m),m.valid}i.anyOf=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S),y=new t(p,h,b,S);if(!Array.isArray(h.anyOf))throw new r("anyOf must be an array");if(!h.anyOf.some(s.bind(this,p,b,S,function(w){y.importErrors(w)}))){var m=h.anyOf.map(function(w,x){var O=w.$id||w.id;return O?"<"+O+">":w.title&&JSON.stringify(w.title)||w.$ref&&"<"+w.$ref+">"||"[subschema "+x+"]"});b.nestedErrors&&v.importErrors(y),v.addError({name:"anyOf",argument:m,message:"is not any of "+m.join(",")})}return v},i.allOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.allOf))throw new r("allOf must be an array");var v=new t(p,h,b,S),y=this;return h.allOf.forEach(function(m,w){var x=y.validateSchema(p,m,b,S);if(!x.valid){var O=m.$id||m.id,_=O||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:_,length:x.errors.length,valid:x},message:"does not match allOf schema "+_+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},i.oneOf=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.oneOf))throw new r("oneOf must be an array");var v=new t(p,h,b,S),y=new t(p,h,b,S),m=h.oneOf.filter(s.bind(this,p,b,S,function(x){y.importErrors(x)})).length,w=h.oneOf.map(function(x,O){var _=x.$id||x.id;return _||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+O+"]"});return m!==1&&(b.nestedErrors&&v.importErrors(y),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},i.if=function(p,h,b,S){if(p===void 0)return null;if(!e.isSchema(h.if))throw new Error('Expected "if" keyword to be a schema');var v=s.call(this,p,b,S,null,h.if),y=new t(p,h,b,S),m;if(v){if(h.then===void 0)return;if(!e.isSchema(h.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(p,h.then,b,S.makeChild(h.then)),y.importErrors(m)}else{if(h.else===void 0)return;if(!e.isSchema(h.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(p,h.else,b,S.makeChild(h.else)),y.importErrors(m)}return y};function l(g,p){if(Object.hasOwnProperty.call(g,p))return g[p];if(p in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,p))return g[p]}}i.propertyNames=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.propertyNames!==void 0?h.propertyNames:{};if(!e.isSchema(y))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var m in p)if(l(p,m)!==void 0){var w=this.validateSchema(m,y,b,S.makeChild(y));v.importErrors(w)}return v}},i.properties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.properties||{};for(var m in y){var w=y[m];if(w!==void 0){if(w===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,w,b,S);var x=l(p,m),O=this.validateSchema(x,w,b,S.makeChild(w,m));O.instance!==v.instance[m]&&(v.instance[m]=O.instance),v.importErrors(O)}}return v}};function c(g,p,h,b,S,v){if(this.types.object(g)&&!(p.properties&&p.properties[S]!==void 0))if(p.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var y=p.additionalProperties||{};typeof h.preValidateProperty=="function"&&h.preValidateProperty(g,S,y,h,b);var m=this.validateSchema(g[S],y,h,b.makeChild(y,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}i.patternProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=h.patternProperties||{};for(var m in p){var w=!0;for(var x in y){var O=y[x];if(O!==void 0){if(O===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var _=new RegExp(x,"u")}catch{_=new RegExp(x)}if(_.test(m)){w=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(p,m,O,b,S);var R=this.validateSchema(p[m],O,b,S.makeChild(O,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,p,h,b,S,m,v)}return v}},i.additionalProperties=function(p,h,b,S){if(this.types.object(p)){if(h.patternProperties)return null;var v=new t(p,h,b,S);for(var y in p)c.call(this,p,h,b,S,y,v);return v}},i.minProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length>=h.minProperties||v.addError({name:"minProperties",argument:h.minProperties,message:"does not meet minimum property length of "+h.minProperties}),v}},i.maxProperties=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S),y=Object.keys(p);return y.length<=h.maxProperties||v.addError({name:"maxProperties",argument:h.maxProperties,message:"does not meet maximum property length of "+h.maxProperties}),v}},i.items=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.items!==void 0){var y=new t(p,h,b,S);return p.every(function(m,w){if(Array.isArray(h.items))var x=h.items[w]===void 0?h.additionalItems:h.items[w];else var x=h.items;if(x===void 0)return!0;if(x===!1)return y.addError({name:"items",message:"additionalItems not permitted"}),!1;var O=v.validateSchema(m,x,b,S.makeChild(x,w));return O.instance!==y.instance[w]&&(y.instance[w]=O.instance),y.importErrors(O),!0}),y}},i.contains=function(p,h,b,S){var v=this;if(this.types.array(p)&&h.contains!==void 0){if(!e.isSchema(h.contains))throw new Error('Expected "contains" keyword to be a schema');var y=new t(p,h,b,S),m=p.some(function(w,x){var O=v.validateSchema(w,h.contains,b,S.makeChild(h.contains,x));return O.errors.length===0});return m===!1&&y.addError({name:"contains",argument:h.contains,message:"must contain an item matching given schema"}),y}},i.minimum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMinimum&&h.exclusiveMinimum===!0?p>h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than "+h.minimum}):p>=h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than or equal to "+h.minimum}),v}},i.maximum=function(p,h,b,S){if(this.types.number(p)){var v=new t(p,h,b,S);return h.exclusiveMaximum&&h.exclusiveMaximum===!0?p<h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than "+h.maximum}):p<=h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than or equal to "+h.maximum}),v}},i.exclusiveMinimum=function(p,h,b,S){if(typeof h.exclusiveMinimum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p>h.exclusiveMinimum;return y||v.addError({name:"exclusiveMinimum",argument:h.exclusiveMinimum,message:"must be strictly greater than "+h.exclusiveMinimum}),v}},i.exclusiveMaximum=function(p,h,b,S){if(typeof h.exclusiveMaximum!="boolean"&&this.types.number(p)){var v=new t(p,h,b,S),y=p<h.exclusiveMaximum;return y||v.addError({name:"exclusiveMaximum",argument:h.exclusiveMaximum,message:"must be strictly less than "+h.exclusiveMaximum}),v}};var u=function(p,h,b,S,v,y){if(this.types.number(p)){var m=h[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(p,h,b,S),x=e.getDecimalPlaces(p),O=e.getDecimalPlaces(m),_=Math.max(x,O),R=Math.pow(10,_);return Math.round(p*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:y+JSON.stringify(m)}),w}};i.multipleOf=function(p,h,b,S){return u.call(this,p,h,b,S,"multipleOf","is not a multiple of (divisible by) ")},i.divisibleBy=function(p,h,b,S){return u.call(this,p,h,b,S,"divisibleBy","is not divisible by (multiple of) ")},i.required=function(p,h,b,S){var v=new t(p,h,b,S);return p===void 0&&h.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(p)&&Array.isArray(h.required)&&h.required.forEach(function(y){l(p,y)===void 0&&v.addError({name:"required",argument:y,message:"requires property "+JSON.stringify(y)})}),v},i.pattern=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=h.pattern;try{var m=new RegExp(y,"u")}catch{m=new RegExp(y)}return p.match(m)||v.addError({name:"pattern",argument:h.pattern,message:"does not match pattern "+JSON.stringify(h.pattern.toString())}),v}},i.format=function(p,h,b,S){if(p!==void 0){var v=new t(p,h,b,S);return!v.disableFormat&&!e.isFormat(p,h.format,this)&&v.addError({name:"format",argument:h.format,message:"does not conform to the "+JSON.stringify(h.format)+" format"}),v}},i.minLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m>=h.minLength||v.addError({name:"minLength",argument:h.minLength,message:"does not meet minimum length of "+h.minLength}),v}},i.maxLength=function(p,h,b,S){if(this.types.string(p)){var v=new t(p,h,b,S),y=p.match(/[\uDC00-\uDFFF]/g),m=p.length-(y?y.length:0);return m<=h.maxLength||v.addError({name:"maxLength",argument:h.maxLength,message:"does not meet maximum length of "+h.maxLength}),v}},i.minItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length>=h.minItems||v.addError({name:"minItems",argument:h.minItems,message:"does not meet minimum length of "+h.minItems}),v}},i.maxItems=function(p,h,b,S){if(this.types.array(p)){var v=new t(p,h,b,S);return p.length<=h.maxItems||v.addError({name:"maxItems",argument:h.maxItems,message:"does not meet maximum length of "+h.maxItems}),v}};function f(g,p,h){var b,S=h.length;for(b=p+1,S;b<S;b++)if(e.deepCompareStrict(g,h[b]))return!1;return!0}return i.uniqueItems=function(p,h,b,S){if(h.uniqueItems===!0&&this.types.array(p)){var v=new t(p,h,b,S);return p.every(f)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},i.dependencies=function(p,h,b,S){if(this.types.object(p)){var v=new t(p,h,b,S);for(var y in h.dependencies)if(p[y]!==void 0){var m=h.dependencies[y],w=S.makeChild(m,y);if(typeof m=="string"&&(m=[m]),Array.isArray(m))m.forEach(function(O){p[O]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+O+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(p,m,b,w);v.instance!==x.instance&&(v.instance=x.instance),x&&x.errors.length&&(v.addError({name:"dependencies",argument:w.propertyPath,message:"does not meet dependency required by "+w.propertyPath}),v.importErrors(x))}}return v}},i.enum=function(p,h,b,S){if(p===void 0)return null;if(!Array.isArray(h.enum))throw new r("enum expects an array",h);var v=new t(p,h,b,S);return h.enum.some(e.deepCompareStrict.bind(null,p))||v.addError({name:"enum",argument:h.enum,message:"is not one of enum values: "+h.enum.map(String).join(",")}),v},i.const=function(p,h,b,S){if(p===void 0)return null;var v=new t(p,h,b,S);return e.deepCompareStrict(h.const,p)||v.addError({name:"const",argument:h.const,message:"does not exactly match expected constant: "+h.const}),v},i.not=i.disallow=function(p,h,b,S){var v=this;if(p===void 0)return null;var y=new t(p,h,b,S),m=h.not||h.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(p,h,b,S,w)){var x=w&&(w.$id||w.id),O=x||w;y.addError({name:"not",argument:O,message:"is of prohibited type "+O})}}),y):null},If=n,If}var ic={},My;function vp(){if(My)return ic;My=1;var e=zi();ic.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return ic.scan=function(n,i){function s(g,p){if(!p||typeof p!="object")return;if(p.$ref){let v=e.resolveUrl(g,p.$ref);f[v]=f[v]?f[v]+1:0;return}var h=p.$id||p.id;let b=e.resolveUrl(g,h);var S=h?b:g;if(S){if(S.indexOf("#")<0&&(S+="#"),u[S]){if(!e.deepCompareStrict(u[S],p))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=p,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=p)}l(S+"/items",Array.isArray(p.items)?p.items:[p.items]),l(S+"/extends",Array.isArray(p.extends)?p.extends:[p.extends]),s(S+"/additionalItems",p.additionalItems),c(S+"/properties",p.properties),s(S+"/additionalProperties",p.additionalProperties),c(S+"/definitions",p.definitions),c(S+"/patternProperties",p.patternProperties),c(S+"/dependencies",p.dependencies),l(S+"/disallow",p.disallow),l(S+"/allOf",p.allOf),l(S+"/anyOf",p.anyOf),l(S+"/oneOf",p.oneOf),s(S+"/not",p.not)}function l(g,p){if(Array.isArray(p))for(var h=0;h<p.length;h++)s(g+"/"+h,p[h])}function c(g,p){if(!(!p||typeof p!="object"))for(var h in p)s(g+"/"+h,p[h])}var u={},f={};return s(n,i),new t(u,f)},ic}var Nf,Dy;function ZF(){if(Dy)return Nf;Dy=1;var e=GF(),t=zi(),r=vp().scan,n=t.ValidatorResult,i=t.ValidatorResultError,s=t.SchemaError,l=t.SchemaContext,c="/",u=function p(){this.customFormats=Object.create(p.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),this.attributes=Object.create(e.validators)};u.prototype.customFormats={},u.prototype.schemas=null,u.prototype.types=null,u.prototype.attributes=null,u.prototype.unresolvedRefs=null,u.prototype.addSchema=function(h,b){var S=this;if(!h)return null;var v=r(b||c,h),y=b||h.$id||h.id;for(var m in v.id)this.schemas[m]=v.id[m];for(var m in v.ref)this.unresolvedRefs.push(m);return this.unresolvedRefs=this.unresolvedRefs.filter(function(w){return typeof S.schemas[w]>"u"}),this.schemas[y]},u.prototype.addSubSchemaArray=function(h,b){if(Array.isArray(b))for(var S=0;S<b.length;S++)this.addSubSchema(h,b[S])},u.prototype.addSubSchemaObject=function(h,b){if(!(!b||typeof b!="object"))for(var S in b)this.addSubSchema(h,b[S])},u.prototype.setSchemas=function(h){this.schemas=h},u.prototype.getSchema=function(h){return this.schemas[h]},u.prototype.validate=function(h,b,S,v){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new s("Expected `schema` to be an object or boolean");S||(S={});var y=b.$id||b.id;let m=t.resolveUrl(S.base,y||"");if(!v){v=new l(b,S,[],m,Object.create(this.schemas)),v.schemas[m]||(v.schemas[m]=b);var w=r(m,b);for(var x in w.id){var O=w.id[x];v.schemas[x]=O}}if(S.required&&h===void 0){var _=new n(h,b,S,v);return _.addError("is required, but is undefined"),_}var _=this.validateSchema(h,b,S,v);if(_){if(S.throwAll&&_.errors.length)throw new i(_)}else throw new Error("Result undefined");return _};function f(p){var h=typeof p=="string"?p:p.$ref;return typeof h=="string"?h:!1}u.prototype.validateSchema=function(h,b,S,v){var y=new n(h,b,S,v);if(typeof b=="boolean")b===!0?b={}:b===!1&&(b={type:[]});else if(!b)throw new Error("schema is undefined");if(b.extends)if(Array.isArray(b.extends)){var m={schema:b,ctx:v};b.extends.forEach(this.schemaTraverser.bind(this,m)),b=m.schema,m.schema=null,m.ctx=null,m=null}else b=t.deepMerge(b,this.superResolve(b.extends,v));var w=f(b);if(w){var x=this.resolve(b,w,v),O=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(h,x.subschema,S,O)}var _=S&&S.skipAttributes||[];for(var R in b)if(!e.ignoreProperties[R]&&_.indexOf(R)<0){var H=null,P=this.attributes[R];if(P)H=P.call(this,h,b,S,v);else if(S.allowUnknownAttributes===!1)throw new s("Unsupported attribute: "+R,b);H&&y.importErrors(H)}if(typeof S.rewrite=="function"){var z=S.rewrite.call(this,h,b,S,v);y.instance=z}return y},u.prototype.schemaTraverser=function(h,b){h.schema=t.deepMerge(h.schema,this.superResolve(b,h.ctx))},u.prototype.superResolve=function(h,b){var S=f(h);return S?this.resolve(h,S,b).subschema:h},u.prototype.resolve=function(h,b,S){if(b=S.resolve(b),S.schemas[b])return{subschema:S.schemas[b],switchSchema:b};let y=new URL(b,"thismessage::/").hash;var m=y&&y.length&&b.substr(0,b.length-y.length);if(!m||!S.schemas[m])throw new s("no such schema <"+b+">",h);var w=t.objectGetPath(S.schemas[m],y.substr(1));if(w===void 0)throw new s("no such schema "+y+" located in <"+m+">",h);return{subschema:w,switchSchema:b}},u.prototype.testType=function(h,b,S,v,y){if(y!==void 0){if(y===null)throw new s('Unexpected null in "type" keyword');if(typeof this.types[y]=="function")return this.types[y].call(this,h);if(y&&typeof y=="object"){var m=this.validateSchema(h,y,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var g=u.prototype.types={};return g.string=function(h){return typeof h=="string"},g.number=function(h){return typeof h=="number"&&isFinite(h)},g.integer=function(h){return typeof h=="number"&&h%1===0},g.boolean=function(h){return typeof h=="boolean"},g.array=function(h){return Array.isArray(h)},g.null=function(h){return h===null},g.date=function(h){return h instanceof Date},g.any=function(h){return!0},g.object=function(h){return h&&typeof h=="object"&&!Array.isArray(h)&&!(h instanceof Date)},Nf=u,Nf}var Ly;function KF(){if(Ly)return dn;Ly=1;var e=dn.Validator=ZF();return dn.ValidatorResult=zi().ValidatorResult,dn.ValidatorResultError=zi().ValidatorResultError,dn.ValidationError=zi().ValidationError,dn.SchemaError=zi().SchemaError,dn.SchemaScanResult=vp().SchemaScanResult,dn.scan=vp().scan,dn.validate=function(t,r,n){var i=new e;return i.validate(t,r,n)},dn}var YF=KF();const xa="/$shared",XF={"**/saved_conditions.json":{parser:"json",content:{conditions:[]},schema:{type:"object",properties:{conditions:{type:"array",items:{type:"object"}}},required:["conditions"]}},"**/shared_datasources.json":{parser:"json",content:{},schema:{type:"object",additionalProperties:!0,patternProperties:{"^.*$":{type:"array"}}}},"**/shared_css.json":{parser:"json",content:{classes:[]},schema:{type:"object",properties:{classes:{type:"array",items:{type:"object"}}},required:["classes"]}},"**/shared_app_events.json":{parser:"json",content:[]},"**/CustomComponents/manifest.json":{parser:"json",content:[],schema:{type:"array",items:{type:"object"}}},"**/crafted_components.json":{parser:"json",content:[],schema:{type:"array"}},"**/HTTPHandlers.json":{parser:"json",content:[],schema:{type:"array"}},"**/i18n.json":{parser:"json",content:{keys:{},userLang:{primary:"",supported:[]}},schema:{type:"object",properties:{keys:{type:"object"},userLang:{type:"object",properties:{primary:{type:"string"},supported:{type:"array",items:{type:"string"}}},required:["primary","supported"]}},required:["keys","userLang"]}},"**/*.json":{parser:"json",content:{}}};function oE(e){const t=Object.entries(XF).find(([r])=>Vt(e,r));return t==null?void 0:t[1]}function fu(e){var n;const t=(n=oE(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${xa}/`,"Shared/");Ah({name:r,content:t,asText:typeof t=="string"})}async function JF(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Je(`${xa}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){sE(r)&&fu(`${xa}/${t}`)}}function Pa({path:e,createIfNotExists:t=!1}){const r=`${xa}/${e}`;return Je(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const i=oE(e);let s=n;if(!i)return s;if(typeof s=="string")try{switch(i.parser){case"json":s=JSON.parse(s);break;default:break}}catch{throw new Error("Cannot parse")}if(i.schema&&!new YF.Validator().validate(s,i.schema).valid)throw new Error("Invalid Schema");return s}).catch(n=>{if(sE(n)&&t){const i=QF(n,e);lh.next({message:i,kind:"warning"}),fu(r)}throw n})}function sE(e){var t;return((t=e==null?void 0:e.response)==null?void 0:t.status)===404||(e==null?void 0:e.message)==="Invalid Schema"||(e==null?void 0:e.message)==="Cannot parse"||(e==null?void 0:e.name)==="SyntaxError"}function QF(e,t){var r;switch(!0){case((e==null?void 0:e.message)==="Cannot parse "||(e==null?void 0:e.name)==="SyntaxError"):return`Cannot parse file '${t}', resetting...`;case(e==null?void 0:e.message)==="Invalid Schema":return`File '${t}' is corrupt, resetting...`;case((r=e==null?void 0:e.response)==null?void 0:r.status)===404:return`File '${t}' not found, creating...`;default:return e==null?void 0:e.message}}function e6(e){return Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function t6(e){return Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const aE=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:hh.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function r6(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const i=await Je(Ot,{method:"POST",body:JSON.stringify({verb:mi.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),s=(()=>{if(i.rendererPath)return i.rendererPath;const l=`http://${e}:${i.webServerHTTPPort}`,c=`https://${e}:${i.webServerHTTPSPort}`;return i.webServerHTTPPort&&i.webServerHTTPSPort?n?c:l:i.webServerHTTPPort?l:c})();return{projectOpened:i.webServerHTTPSPort>0||i.webServerHTTPPort>0,remoteDebuggerMode:i.remoteDebuggerMode,baseUrl:s,qodly:typeof i.qodly>"u"?!0:i.qodly,urls:{renderer:i.rendererPath||`${s}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:i.isRESTActive}}catch(i){return console.error(i),aE()}}async function lE(e){return await Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function n6(...e){return(await Promise.all(e.map(n=>lE({root:n,verb:mi.GET_FOLDER})))).map(({children:n})=>n.map(({name:i,date:s,type:l})=>({name:i,type:l,date:s,path:`${l}/${i}`}))).flat()}function i6(e,t={}){const{sanitize:r=!0}=t;return Je(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const i=new Map;return{...n,components:Fe.entries(n.components).map(([s,l])=>{const c=s,{resolvedName:u}=l.type;if(u==="WebformLoader"){const f=gi.generate();i.set(s,f),s=f}return[s,l,c]}).reduce((s,[l,c,u])=>{var f;return c.nodes&&(c.nodes=c.nodes.map(g=>i.get(g)||g)),c.linkedNodes&&(c.linkedNodes=Fe.entries(c.linkedNodes).reduce((g,[p,h])=>({...g,[p]:i.get(h)||h}),{})),(f=c.props)!=null&&f.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=i.get(g.loader)||g.loader),g))),{...s,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function o6(e){return Je(Ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[je.METHOD,je.CLASS].includes(t.type)?lu(t.content):t.content}))}function s6(e){return e.type==="folder"?Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function a6(e){return e.type==="folder"?(await Je(Ca,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function l6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function c6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function u6(e){return(await Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function d6(...e){return await Je(Ot,{method:"POST",body:JSON.stringify({verb:mi.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function f6(e){const t=await Je("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function p6(){return await Je("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function h6(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,n=await(await fetch(t)).text(),{supported:i}=JSON.parse(n);return i}catch{return[]}}async function g6({name:e,path:t="",root:r="root",asText:n=!1}){return Je(Ot,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function v6(e={}){try{return{...await Pa({path:"shared_datasources.json",...e}),...Vc}}catch{return{...Vc}}}async function m6(e={}){try{return await Pa({path:"shared_app_events.json",...e})}catch{return[]}}async function b6(e={}){try{return await Pa({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function y6(e={}){try{return await Pa({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function w6(){try{return await Je("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function x6(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const S6=wh(),E6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Fe.omit(e,Fe.keys(Vc))};return S6(()=>Je(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},_6=wh(),O6=async e=>{const t={verb:mi.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return _6(()=>Je(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Ah=async e=>{const t=await Je(Ot,{method:"POST",body:JSON.stringify({...e,verb:mi.SET_FILE_CONTENT,root:ph.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=yh(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},k6=async e=>await Ah({name:"crafted_components.json",path:Jr.WEBFORMS,content:e});function A6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function T6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function R6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function C6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?lu(t.content):t.content}).catch(t=>{var r,n;throw((n=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:n.errCode)===1839&&fu(e.path),t})}function P6(e){return Je(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function I6(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function N6(e){const t=new RegExp(/(->)(.*)/gi).exec(e);if(t!==null)return t[0].replace("->","");const r=/:([^)]*)$/.exec(e);return r!==null?`result : ${r[1].trim()}`:""}function M6(e){const t=I6(e).split(/[;,]/g).filter(Boolean).map(i=>{const s=i.split(":")[0].trim(),l=i.split(":")[1].trim();return{name:s,type:l}}),r=N6(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function D6(e,t){const n=e.split(".").pop();try{const i=await Je(Ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});i.content=lu(i.content);const{params:s,result:l}=M6(i.parameters);return{...i,params:s,returns:l}}catch(i){return console.error(i),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var cE=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(cE||{});function L6(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function z6(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const $6={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},j6={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},uE=N.createContext(void 0),F6=N.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const n=N.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return A.jsx(uE.Provider,{value:n,children:e})});function H6(){const e=N.useContext(uE);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const dE=N.createContext(null),W6=5e3,B6={top:"top-4",bottom:"bottom-4"};function V6({children:e}){const[t,r]=N.useState([]),n=N.useRef(0),i=N.useCallback(c=>{r(u=>u.filter(f=>f.id!==c))},[]),s=N.useCallback((c,u)=>{const f=++n.current,g={id:f,containerStyle:u==null?void 0:u.containerStyle,duration:c.duration??W6,position:c.position??"bottom",render:c.render};return r(p=>[...p,g]),f},[]);N.useEffect(()=>{const c=lh.subscribe(u=>{s({position:"bottom",render:({onClose:f})=>A.jsx(xx,{...u,onClose:f})})});return()=>{c.unsubscribe()}},[s]);const l=N.useMemo(()=>({pushToast:s,removeToast:i}),[s,i]);return A.jsxs(dE.Provider,{value:l,children:[e,typeof document<"u"?En.createPortal(A.jsx(A.Fragment,{children:["top","bottom"].map(c=>{const u=t.filter(f=>f.position===c);return u.length===0?null:A.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-[2147483647] flex flex-col items-center gap-3 ${B6[c]}`,children:u.map(f=>A.jsx(U6,{toast:f,onClose:()=>i(f.id)},f.id))},c)})}),document.body):null]})}function U6({toast:e,onClose:t}){return N.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),A.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function q6(e){const t=N.useContext(dE);if(!t)throw new Error("useToast must be used within a ToastProvider");return N.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=Ot;exports.AppLoader=b4;exports.DATASOURCE_THEMES=$6;exports.DatasourcesActions=J1;exports.DebuggerActions=tS;exports.DesignerRequestVerb=mi;exports.Dialog=P5;exports.DialogBody=Xy;exports.EActivity=cE;exports.ECustomStylePropsViewMode=YS;exports.EDITOR=j6;exports.EDisplayMode=Oh;exports.EIDENTIFIERS=JS;exports.EPermissionType=Xe;exports.ERROR_CODES=QS;exports.ESetting=ZS;exports.ESubPermissionType=ct;exports.ETooltipBehavior=KS;exports.EWebFormStyleClassScope=GS;exports.EXT_API_PREFIX=Ca;exports.FileFolderType=je;exports.FolderRootPath=Jr;exports.FolderRootType=ph;exports.Grid=rz;exports.GridItem=nz;exports.HTTPError=gp;exports.HTTP_HANDLERS_TAB_PATH=mh;exports.IPreemptive=wa;exports.IPublished=DS;exports.IPublishedRestScope=Sh;exports.IdentityProvider=Ez;exports.Image=L1;exports.Incase=mc;exports.IndentLines=kx;exports.InvalidJsonError=Q4;exports.LOCALIZATION_TAB_PATH=bh;exports.LOCATION_DATASOURCE_ID=IS;exports.LogoSVG=x1;exports.LspActions=eS;exports.MAX_FILE_NAME_LENGTH=ch;exports.MODEL_TAB_PATH=wS;exports.Modal=G4;exports.ModalCloseReason=To;exports.ModalColor=Io;exports.ModalIcons=tp;exports.ModalType=eh;exports.Mutex=ES;exports.NameError=uh;exports.Overlay=Yy;exports.PANEL_COLLAPSED_HEIGHT=hn;exports.PANEL_INITIAL_OPEN_RATIO=N1;exports.PANEL_MAX_RATIO=M1;exports.PERMISSIONS=Eh;exports.Panel=J4;exports.PopperTooltip=v4;exports.Portal=jy;exports.PublishOptions=rF;exports.QODLY_NAMESPACE=ta;exports.ROLES_TAB_PATH=gh;exports.ROOT_WEBFORM_STATE=eE;exports.RemoteDebuggerMode=hh;exports.SETTINGS_TAB_PATH=vh;exports.SHARED_API_PREFIX=xa;exports.SHARED_USER_NAMESPACE=Vc;exports.SearchInput=ez;exports.SimpleGrid=iz;exports.SourceCodeDescriptor=XS;exports.StudioContextProvider=F6;exports.Switcher=Ax;exports.THEME_CLASSES=CF;exports.TITLE_DATASOURCE_ID=MS;exports.TabEventsActions=Q1;exports.Tip=a1;exports.TipsProvider=wL;exports.Toast=xx;exports.ToastProvider=V6;exports.ToolbarIcon=tz;exports.Tooltip=g4;exports.Tree=uD;exports.TreeIcon=Sx;exports.TreeNode=$p;exports.USER_LANGUAGE_DATASOURCE_ID=NS;exports.WT_FLAGS_KEYS=RF;exports.WebformActions=X1;exports.WebformEventsActions=ya;exports.ZoomComponent=Y4;exports.ZoomLevel=I1;exports._isArrayDatasource=Yj;exports._isObjectDatasource=Xj;exports.actionsToPrivs=HS;exports.addAttributesToContent=iF;exports.addFolder=l6;exports.addItem=WF;exports.addPermission=bF;exports.addPrivilegeIn=uF;exports.allowed=lF;exports.by=_S;exports.byId=Mj;exports.byPath=Dj;exports.callAll=iE;exports.callAllHandlers=LF;exports.callServerSideParser=qF;exports.checkUpdates=e6;exports.children=qc;exports.createFolder=A6;exports.createPrivilege=fF;exports.createRole=_F;exports.dataAttr=zF;exports.datasourcesSubject=c$;exports.debuggerSubject=p$;exports.deepDeleteCondition=rE;exports.deepSanitizeCondition=nE;exports.dropFile=a6;exports.dropFolder=u6;exports.editors=xS;exports.exists=Lj;exports.extractWebformName=Rj;exports.filterBySeriousError=qS;exports.focus=$F;exports.formatErrorsAsBulletToast=TF;exports.generateUUID=hp;exports.getAppSettings=r6;exports.getCashedPrefrences=zj;exports.getCatalog=p6;exports.getDatasourceId=$j;exports.getDefaultAppSettings=aE;exports.getDefaultContent=NF;exports.getDictByName=BS;exports.getDisplayableFeedbackErrors=AF;exports.getEditors=Tj;exports.getErrorListFromPayload=US;exports.getFile=o6;exports.getFileContent=g6;exports.getFileExtentionFromType=SS;exports.getFilePath=DF;exports.getFilenameAndTypeFromPath=Aj;exports.getFilenameFromType=Cj;exports.getFilesInfo=d6;exports.getFolder=lE;exports.getFolders=n6;exports.getFunctionContent=D6;exports.getGraphData=mF;exports.getInheritedResources=VS;exports.getMonacoTheme=x6;exports.getNodeInfo=C6;exports.getPrivilegeById=Un;exports.getPromotions=EF;exports.getResourceFromType=_h;exports.getSavedConditions=y6;exports.getSharedAppEvents=m6;exports.getSharedCSS=b6;exports.getSharedDatasources=v6;exports.getSharedResource=Pa;exports.getSupportedLanguages=h6;exports.getTypeFromExtension=yh;exports.getUserPrivileges=w6;exports.getWebForm=i6;exports.hasAttributesString=zS;exports.http=Je;exports.i18nSubject=g$;exports.initializeDefaultProjectFiles=JF;exports.installUpdates=t6;exports.isArrayDatasource=RS;exports.isBaseState=PF;exports.isDataClassMethod=Wj;exports.isDataStoreMethod=Hj;exports.isDateDatasource=Jj;exports.isEntity=Zj;exports.isEntityDatasource=Uj;exports.isEntityMethod=Bj;exports.isEntitySelection=Kj;exports.isEntitySelectionDatasource=qj;exports.isEntitySelectionMethod=Vj;exports.isInputEvent=BF;exports.isObjectAttribute=jj;exports.isObjectDatasource=CS;exports.isRelatedAttribute=Fj;exports.isRelatedEntitiesAttribute=AS;exports.isRelatedEntityAttribute=TS;exports.isSameNamespace=Qj;exports.isScalarDatasource=PS;exports.isSimpleAttribute=kS;exports.isSimpleDatasource=Gj;exports.loadDS=eF;exports.loadI18n=tF;exports.localeCompare=OS;exports.log=L6;exports.login=f6;exports.lspSubject=f$;exports.mergeRefs=jF;exports.moveItem=R6;exports.outBy=Ij;exports.outById=Nj;exports.parents=du;exports.parseAttributes=nF;exports.parseCatalog=oF;exports.populateShallow=hF;exports.queue=wh;exports.refactorConditions=kh;exports.refactorWebform=IF;exports.removeAttributesString=$S;exports.removeItem=T6;exports.removeMultiplePermissions=wF;exports.removePermission=yF;exports.removePrivilege=cF;exports.removePrivilegeFrom=dF;exports.removeRole=OF;exports.renameFile=s6;exports.renameFolder=c6;exports.renamePrivilege=pF;exports.resetResources=xF;exports.rolesToAPI=vF;exports.sanitizeContent=lu;exports.sanitizeNameCY=sF;exports.sanitizePermissions=WS;exports.sanitizePrivileges=jS;exports.sanitizeRoles=gF;exports.saveContent=P6;exports.saveRole=kF;exports.selectorEqualityFn=MF;exports.setCraftedComponents=k6;exports.setFileContent=Ah;exports.setSharedAppEvents=O6;exports.setSharedSources=E6;exports.sortPrivileges=FS;exports.splitDatasourceID=xh;exports.stopEvent=VF;exports.stringifyAttributes=LS;exports.tabEventsSubject=d$;exports.tasksManagerSubject=h$;exports.toastSubject=lh;exports.togglePermission=SF;exports.trackEvent=z6;exports.transformDates=UF;exports.tryCreateSharedResource=fu;exports.uniquePush=Hr;exports.updateDsCondition=tE;exports.useBoolean=Uz;exports.useCallbackRef=qz;exports.useControllableProp=q1;exports.useControllableState=Gz;exports.useDidMountEffect=oz;exports.useDoubleClick=Az;exports.useDsChangeRenderer=Vz;exports.useDsRendererAdapter=Bz;exports.useEnhancedState=Wz;exports.useFeatureFlags=Sz;exports.useFormControlProps=Yz;exports.useForwardedRef=xz;exports.useHotkeys=mz;exports.useIdentity=_z;exports.useOutsideClick=bz;exports.usePrevious=yz;exports.useSafeLayoutEffect=Zz;exports.useStateObject=Oz;exports.useStateRef=wz;exports.useStudioContext=H6;exports.useTip=s1;exports.useToast=q6;exports.useUpdateEffect=Kz;exports.validateName=au;exports.validateServerSide=v$;exports.validateValue=m$;exports.visuallyHiddenStyle=HF;exports.warn=FF;exports.webformEventsSubject=Wc;exports.webformSubject=u$;
257
257
  //# sourceMappingURL=index.cjs.js.map