@ws-ui/shared 1.11.12-rc1 → 1.11.12-rc14

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.
Files changed (37) hide show
  1. package/dist/components/Checkbox/index.d.ts +1 -0
  2. package/dist/components/Grid.d.ts +26 -0
  3. package/dist/components/Image.d.ts +5 -0
  4. package/dist/components/InvalidJsonError.d.ts +1 -0
  5. package/dist/components/Panel.d.ts +3 -2
  6. package/dist/components/index.d.ts +3 -2
  7. package/dist/declarations/datasources/interfaces/catalog.d.ts +114 -114
  8. package/dist/declarations/webform/webform.d.ts +2 -0
  9. package/dist/hooks/index.d.ts +6 -0
  10. package/dist/hooks/use-boolean.d.ts +5 -0
  11. package/dist/hooks/use-callback-ref.d.ts +1 -0
  12. package/dist/hooks/use-controllable-state.d.ts +7 -0
  13. package/dist/hooks/use-form-control-props.d.ts +15 -0
  14. package/dist/hooks/use-safe-layout-effect.d.ts +2 -0
  15. package/dist/hooks/use-update-effect.d.ts +2 -0
  16. package/dist/index.cjs.js +162 -116
  17. package/dist/index.cjs.js.map +1 -1
  18. package/dist/index.es.js +24440 -14858
  19. package/dist/index.es.js.map +1 -1
  20. package/dist/providers/index.d.ts +1 -0
  21. package/dist/providers/toast-provider.d.ts +18 -0
  22. package/dist/shared.css +1 -1
  23. package/dist/types/adapter.d.ts +12 -0
  24. package/dist/types/explorer.d.ts +31 -0
  25. package/dist/types/index.d.ts +2 -0
  26. package/dist/types/settings.d.ts +28 -0
  27. package/dist/types/shared.d.ts +2 -0
  28. package/dist/types/webform-editor.d.ts +75 -0
  29. package/dist/types/welcome-tour.d.ts +3 -0
  30. package/dist/utils/catalog.d.ts +1 -0
  31. package/dist/utils/chakra-utils.d.ts +21 -0
  32. package/dist/utils/common.d.ts +1 -0
  33. package/dist/utils/explorer.d.ts +4 -1
  34. package/dist/utils/index.d.ts +3 -0
  35. package/dist/utils/webform-editor.d.ts +91 -0
  36. package/package.json +4 -4
  37. package/dist/components/Modal/Button.d.ts +0 -10
package/dist/index.cjs.js CHANGED
@@ -1,157 +1,201 @@
1
- "use strict";var UT=Object.defineProperty;var wh=e=>{throw TypeError(e)};var WT=(e,t,r)=>t in e?UT(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>WT(e,typeof t!="symbol"?t+"":t,r),Ol=(e,t,r)=>t.has(e)||wh("Cannot "+r);var re=(e,t,r)=>(Ol(e,t,"read from private field"),r?r.call(e):t.get(e)),Et=(e,t,r)=>t.has(e)?wh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),rt=(e,t,r,i)=>(Ol(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(Ol(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const $=require("react/jsx-runtime"),z=require("react"),Pi=require("react-dom"),Ke=require("@ws-ui/icons"),vc=require("@emotion/react"),HT=require("re-resizable");function rv(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,i.get?i:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const I=rv(z),qT=rv(Pi),nv=({children:e,container:t=document.body})=>Pi.createPortal(e,t);var xh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},Sh=typeof window<"u"&&window.document&&window.document.createElement?I.useLayoutEffect:I.useEffect,Mt="top",ar="bottom",ur="right",Dt="left",Hc="auto",Wo=[Mt,ar,ur,Dt],Si="start",Io="end",ZT="clippingParents",iv="viewport",Vi="popper",GT="reference",Eh=Wo.reduce(function(e,t){return e.concat([t+"-"+Si,t+"-"+Io])},[]),ov=[].concat(Wo,[Hc]).reduce(function(e,t){return e.concat([t,t+"-"+Si,t+"-"+Io])},[]),VT="beforeRead",KT="read",YT="afterRead",XT="beforeMain",JT="main",QT="afterMain",eO="beforeWrite",tO="write",rO="afterWrite",nO=[VT,KT,YT,XT,JT,QT,eO,tO,rO];function Ir(e){return e?(e.nodeName||"").toLowerCase():null}function Zt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function qn(e){var t=Zt(e).Element;return e instanceof t||e instanceof Element}function sr(e){var t=Zt(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function qc(e){if(typeof ShadowRoot>"u")return!1;var t=Zt(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function iO(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var i=t.styles[r]||{},s=t.attributes[r]||{},a=t.elements[r];!sr(a)||!Ir(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(u){var c=s[u];c===!1?a.removeAttribute(u):a.setAttribute(u,c===!0?"":c)}))})}function oO(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(i){var s=t.elements[i],a=t.attributes[i]||{},u=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=u.reduce(function(f,m){return f[m]="",f},{});!sr(s)||!Ir(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const sO={name:"applyStyles",enabled:!0,phase:"write",fn:iO,effect:oO,requires:["computeStyles"]};function Cr(e){return e.split("-")[0]}var Wn=Math.max,wa=Math.min,Ei=Math.round;function yc(){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 sv(){return!/^((?!chrome|android).)*safari/i.test(yc())}function _i(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&sr(e)&&(s=e.offsetWidth>0&&Ei(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ei(i.height)/e.offsetHeight||1);var u=qn(e)?Zt(e):window,c=u.visualViewport,f=!sv()&&r,m=(i.left+(f&&c?c.offsetLeft:0))/s,g=(i.top+(f&&c?c.offsetTop:0))/a,h=i.width/s,d=i.height/a;return{width:h,height:d,top:g,right:m+h,bottom:g+d,left:m,x:m,y:g}}function Zc(e){var t=_i(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function av(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&qc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yr(e){return Zt(e).getComputedStyle(e)}function aO(e){return["table","td","th"].indexOf(Ir(e))>=0}function wn(e){return((qn(e)?e.ownerDocument:e.document)||window.document).documentElement}function Fa(e){return Ir(e)==="html"?e:e.assignedSlot||e.parentNode||(qc(e)?e.host:null)||wn(e)}function _h(e){return!sr(e)||Yr(e).position==="fixed"?null:e.offsetParent}function uO(e){var t=/firefox/i.test(yc()),r=/Trident/i.test(yc());if(r&&sr(e)){var i=Yr(e);if(i.position==="fixed")return null}var s=Fa(e);for(qc(s)&&(s=s.host);sr(s)&&["html","body"].indexOf(Ir(s))<0;){var a=Yr(s);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return s;s=s.parentNode}return null}function Ho(e){for(var t=Zt(e),r=_h(e);r&&aO(r)&&Yr(r).position==="static";)r=_h(r);return r&&(Ir(r)==="html"||Ir(r)==="body"&&Yr(r).position==="static")?t:r||uO(e)||t}function Gc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ao(e,t,r){return Wn(e,wa(t,r))}function lO(e,t,r){var i=Ao(e,t,r);return i>r?r:i}function uv(){return{top:0,right:0,bottom:0,left:0}}function lv(e){return Object.assign({},uv(),e)}function cv(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var cO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,lv(typeof t!="number"?t:cv(t,Wo))};function fO(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,u=r.modifiersData.popperOffsets,c=Cr(r.placement),f=Gc(c),m=[Dt,ur].indexOf(c)>=0,g=m?"height":"width";if(!(!a||!u)){var h=cO(s.padding,r),d=Zc(a),y=f==="y"?Mt:Dt,x=f==="y"?ar:ur,p=r.rects.reference[g]+r.rects.reference[f]-u[f]-r.rects.popper[g],w=u[f]-r.rects.reference[f],v=Ho(a),S=v?f==="y"?v.clientHeight||0:v.clientWidth||0:0,E=p/2-w/2,R=h[y],T=S-d[g]-h[x],k=S/2-d[g]/2+E,U=Ao(R,k,T),D=f;r.modifiersData[i]=(t={},t[D]=U,t.centerOffset=U-k,t)}}function dO(e){var t=e.state,r=e.options,i=r.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||av(t.elements.popper,s)&&(t.elements.arrow=s))}const pO={name:"arrow",enabled:!0,phase:"main",fn:fO,effect:dO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ti(e){return e.split("-")[1]}var hO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function gO(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Ei(r*s)/s||0,y:Ei(i*s)/s||0}}function Th(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,u=e.offsets,c=e.position,f=e.gpuAcceleration,m=e.adaptive,g=e.roundOffsets,h=e.isFixed,d=u.x,y=d===void 0?0:d,x=u.y,p=x===void 0?0:x,w=typeof g=="function"?g({x:y,y:p}):{x:y,y:p};y=w.x,p=w.y;var v=u.hasOwnProperty("x"),S=u.hasOwnProperty("y"),E=Dt,R=Mt,T=window;if(m){var k=Ho(r),U="clientHeight",D="clientWidth";if(k===Zt(r)&&(k=wn(r),Yr(k).position!=="static"&&c==="absolute"&&(U="scrollHeight",D="scrollWidth")),k=k,s===Mt||(s===Dt||s===ur)&&a===Io){R=ar;var N=h&&k===T&&T.visualViewport?T.visualViewport.height:k[U];p-=N-i.height,p*=f?1:-1}if(s===Dt||(s===Mt||s===ar)&&a===Io){E=ur;var G=h&&k===T&&T.visualViewport?T.visualViewport.width:k[D];y-=G-i.width,y*=f?1:-1}}var j=Object.assign({position:c},m&&hO),M=g===!0?gO({x:y,y:p},Zt(r)):{x:y,y:p};if(y=M.x,p=M.y,f){var W;return Object.assign({},j,(W={},W[R]=S?"0":"",W[E]=v?"0":"",W.transform=(T.devicePixelRatio||1)<=1?"translate("+y+"px, "+p+"px)":"translate3d("+y+"px, "+p+"px, 0)",W))}return Object.assign({},j,(t={},t[R]=S?p+"px":"",t[E]=v?y+"px":"",t.transform="",t))}function mO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,u=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,m={placement:Cr(t.placement),variation:Ti(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Th(Object.assign({},m,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:u,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Th(Object.assign({},m,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const vO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mO,data:{}};var Us={passive:!0};function yO(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,u=i.resize,c=u===void 0?!0:u,f=Zt(t.elements.popper),m=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&m.forEach(function(g){g.addEventListener("scroll",r.update,Us)}),c&&f.addEventListener("resize",r.update,Us),function(){a&&m.forEach(function(g){g.removeEventListener("scroll",r.update,Us)}),c&&f.removeEventListener("resize",r.update,Us)}}const bO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yO,data:{}};var wO={left:"right",right:"left",bottom:"top",top:"bottom"};function ca(e){return e.replace(/left|right|bottom|top/g,function(t){return wO[t]})}var xO={start:"end",end:"start"};function Oh(e){return e.replace(/start|end/g,function(t){return xO[t]})}function Vc(e){var t=Zt(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function Kc(e){return _i(wn(e)).left+Vc(e).scrollLeft}function SO(e,t){var r=Zt(e),i=wn(e),s=r.visualViewport,a=i.clientWidth,u=i.clientHeight,c=0,f=0;if(s){a=s.width,u=s.height;var m=sv();(m||!m&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:u,x:c+Kc(e),y:f}}function EO(e){var t,r=wn(e),i=Vc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=Wn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),u=Wn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+Kc(e),f=-i.scrollTop;return Yr(s||r).direction==="rtl"&&(c+=Wn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:u,x:c,y:f}}function Yc(e){var t=Yr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function fv(e){return["html","body","#document"].indexOf(Ir(e))>=0?e.ownerDocument.body:sr(e)&&Yc(e)?e:fv(Fa(e))}function Ro(e,t){var r;t===void 0&&(t=[]);var i=fv(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Zt(i),u=s?[a].concat(a.visualViewport||[],Yc(i)?i:[]):i,c=t.concat(u);return s?c:c.concat(Ro(Fa(u)))}function bc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function _O(e,t){var r=_i(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 Ah(e,t,r){return t===iv?bc(SO(e,r)):qn(t)?_O(t,r):bc(EO(wn(e)))}function TO(e){var t=Ro(Fa(e)),r=["absolute","fixed"].indexOf(Yr(e).position)>=0,i=r&&sr(e)?Ho(e):e;return qn(i)?t.filter(function(s){return qn(s)&&av(s,i)&&Ir(s)!=="body"}):[]}function OO(e,t,r,i){var s=t==="clippingParents"?TO(e):[].concat(t),a=[].concat(s,[r]),u=a[0],c=a.reduce(function(f,m){var g=Ah(e,m,i);return f.top=Wn(g.top,f.top),f.right=wa(g.right,f.right),f.bottom=wa(g.bottom,f.bottom),f.left=Wn(g.left,f.left),f},Ah(e,u,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function dv(e){var t=e.reference,r=e.element,i=e.placement,s=i?Cr(i):null,a=i?Ti(i):null,u=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case Mt:f={x:u,y:t.y-r.height};break;case ar:f={x:u,y:t.y+t.height};break;case ur:f={x:t.x+t.width,y:c};break;case Dt:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var m=s?Gc(s):null;if(m!=null){var g=m==="y"?"height":"width";switch(a){case Si:f[m]=f[m]-(t[g]/2-r[g]/2);break;case Io:f[m]=f[m]+(t[g]/2-r[g]/2);break}}return f}function $o(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,u=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?ZT:c,m=r.rootBoundary,g=m===void 0?iv:m,h=r.elementContext,d=h===void 0?Vi:h,y=r.altBoundary,x=y===void 0?!1:y,p=r.padding,w=p===void 0?0:p,v=lv(typeof w!="number"?w:cv(w,Wo)),S=d===Vi?GT:Vi,E=e.rects.popper,R=e.elements[x?S:d],T=OO(qn(R)?R:R.contextElement||wn(e.elements.popper),f,g,u),k=_i(e.elements.reference),U=dv({reference:k,element:E,placement:s}),D=bc(Object.assign({},E,U)),N=d===Vi?D:k,G={top:T.top-N.top+v.top,bottom:N.bottom-T.bottom+v.bottom,left:T.left-N.left+v.left,right:N.right-T.right+v.right},j=e.modifiersData.offset;if(d===Vi&&j){var M=j[s];Object.keys(G).forEach(function(W){var q=[ur,ar].indexOf(W)>=0?1:-1,C=[Mt,ar].indexOf(W)>=0?"y":"x";G[W]+=M[C]*q})}return G}function AO(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,u=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,m=f===void 0?ov:f,g=Ti(i),h=g?c?Eh:Eh.filter(function(x){return Ti(x)===g}):Wo,d=h.filter(function(x){return m.indexOf(x)>=0});d.length===0&&(d=h);var y=d.reduce(function(x,p){return x[p]=$o(e,{placement:p,boundary:s,rootBoundary:a,padding:u})[Cr(p)],x},{});return Object.keys(y).sort(function(x,p){return y[x]-y[p]})}function RO(e){if(Cr(e)===Hc)return[];var t=ca(e);return[Oh(e),t,Oh(t)]}function PO(e){var t=e.state,r=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!0:u,f=r.fallbackPlacements,m=r.padding,g=r.boundary,h=r.rootBoundary,d=r.altBoundary,y=r.flipVariations,x=y===void 0?!0:y,p=r.allowedAutoPlacements,w=t.options.placement,v=Cr(w),S=v===w,E=f||(S||!x?[ca(w)]:RO(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Cr(ce)===Hc?AO(t,{placement:ce,boundary:g,rootBoundary:h,padding:m,flipVariations:x,allowedAutoPlacements:p}):ce)},[]),T=t.rects.reference,k=t.rects.popper,U=new Map,D=!0,N=R[0],G=0;G<R.length;G++){var j=R[G],M=Cr(j),W=Ti(j)===Si,q=[Mt,ar].indexOf(M)>=0,C=q?"width":"height",J=$o(t,{placement:j,boundary:g,rootBoundary:h,altBoundary:d,padding:m}),Y=q?W?ur:Dt:W?ar:Mt;T[C]>k[C]&&(Y=ca(Y));var te=ca(Y),de=[];if(a&&de.push(J[M]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){N=j,D=!1;break}U.set(j,de)}if(D)for(var Z=x?3:1,Q=function(ce){var fe=R.find(function(ye){var me=U.get(ye);if(me)return me.slice(0,ce).every(function(Ee){return Ee})});if(fe)return N=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==N&&(t.modifiersData[i]._skip=!0,t.placement=N,t.reset=!0)}}const CO={name:"flip",enabled:!0,phase:"main",fn:PO,requiresIfExists:["offset"],data:{_skip:!1}};function Rh(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 Ph(e){return[Mt,ur,ar,Dt].some(function(t){return e[t]>=0})}function kO(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,u=$o(t,{elementContext:"reference"}),c=$o(t,{altBoundary:!0}),f=Rh(u,i),m=Rh(c,s,a),g=Ph(f),h=Ph(m);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:m,isReferenceHidden:g,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":h})}const IO={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kO};function $O(e,t,r){var i=Cr(e),s=[Dt,Mt].indexOf(i)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,u=a[0],c=a[1];return u=u||0,c=(c||0)*s,[Dt,ur].indexOf(i)>=0?{x:c,y:u}:{x:u,y:c}}function LO(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,u=ov.reduce(function(g,h){return g[h]=$O(h,t.rects,a),g},{}),c=u[t.placement],f=c.x,m=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=m),t.modifiersData[i]=u}const MO={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:LO};function DO(e){var t=e.state,r=e.name;t.modifiersData[r]=dv({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const NO={name:"popperOffsets",enabled:!0,phase:"read",fn:DO,data:{}};function FO(e){return e==="x"?"y":"x"}function jO(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,u=r.altAxis,c=u===void 0?!1:u,f=r.boundary,m=r.rootBoundary,g=r.altBoundary,h=r.padding,d=r.tether,y=d===void 0?!0:d,x=r.tetherOffset,p=x===void 0?0:x,w=$o(t,{boundary:f,rootBoundary:m,padding:h,altBoundary:g}),v=Cr(t.placement),S=Ti(t.placement),E=!S,R=Gc(v),T=FO(R),k=t.modifiersData.popperOffsets,U=t.rects.reference,D=t.rects.popper,N=typeof p=="function"?p(Object.assign({},t.rects,{placement:t.placement})):p,G=typeof N=="number"?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,M={x:0,y:0};if(k){if(a){var W,q=R==="y"?Mt:Dt,C=R==="y"?ar:ur,J=R==="y"?"height":"width",Y=k[R],te=Y+w[q],de=Y-w[C],Z=y?-D[J]/2:0,Q=S===Si?U[J]:D[J],se=S===Si?-D[J]:-U[J],ue=t.elements.arrow,ne=y&&ue?Zc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:uv(),fe=ce[q],ye=ce[C],me=Ao(0,U[J],ne[J]),Ee=E?U[J]/2-Z-me-fe-G.mainAxis:Q-me-fe-G.mainAxis,Oe=E?-U[J]/2+Z+me+ye+G.mainAxis:se+me+ye+G.mainAxis,Ye=t.elements.arrow&&Ho(t.elements.arrow),ie=Ye?R==="y"?Ye.clientTop||0:Ye.clientLeft||0:0,bt=(W=j==null?void 0:j[R])!=null?W:0,ft=Y+Ee-bt-ie,br=Y+Oe-bt,Xo=Ao(y?wa(te,ft):te,Y,y?Wn(de,br):de);k[R]=Xo,M[R]=Xo-Y}if(c){var Kt,Jo=R==="x"?Mt:Dt,iu=R==="x"?ar:ur,Nt=k[T],wt=T==="y"?"height":"width",Jr=Nt+w[Jo],_n=Nt-w[iu],Ii=[Mt,Dt].indexOf(v)!==-1,Qr=(Kt=j==null?void 0:j[T])!=null?Kt:0,Qo=Ii?Jr:Nt-U[wt]-D[wt]-Qr+G.altAxis,en=Ii?Nt+U[wt]+D[wt]-Qr-G.altAxis:_n,Mr=y&&Ii?lO(Qo,Nt,en):Ao(y?Qo:Jr,Nt,y?en:_n);k[T]=Mr,M[T]=Mr-Nt}t.modifiersData[i]=M}}const zO={name:"preventOverflow",enabled:!0,phase:"main",fn:jO,requiresIfExists:["offset"]};function BO(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function UO(e){return e===Zt(e)||!sr(e)?Vc(e):BO(e)}function WO(e){var t=e.getBoundingClientRect(),r=Ei(t.width)/e.offsetWidth||1,i=Ei(t.height)/e.offsetHeight||1;return r!==1||i!==1}function HO(e,t,r){r===void 0&&(r=!1);var i=sr(t),s=sr(t)&&WO(t),a=wn(t),u=_i(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Ir(t)!=="body"||Yc(a))&&(c=UO(t)),sr(t)?(f=_i(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=Kc(a))),{x:u.left+c.scrollLeft-f.x,y:u.top+c.scrollTop-f.y,width:u.width,height:u.height}}function qO(e){var t=new Map,r=new Set,i=[];e.forEach(function(a){t.set(a.name,a)});function s(a){r.add(a.name);var u=[].concat(a.requires||[],a.requiresIfExists||[]);u.forEach(function(c){if(!r.has(c)){var f=t.get(c);f&&s(f)}}),i.push(a)}return e.forEach(function(a){r.has(a.name)||s(a)}),i}function ZO(e){var t=qO(e);return nO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function GO(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function VO(e){var t=e.reduce(function(r,i){var s=r[i.name];return r[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,r},{});return Object.keys(t).map(function(r){return t[r]})}var Ch={placement:"bottom",modifiers:[],strategy:"absolute"};function kh(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function KO(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?Ch:s;return function(c,f,m){m===void 0&&(m=a);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ch,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},h=[],d=!1,y={state:g,setOptions:function(v){var S=typeof v=="function"?v(g.options):v;p(),g.options=Object.assign({},a,g.options,S),g.scrollParents={reference:qn(c)?Ro(c):c.contextElement?Ro(c.contextElement):[],popper:Ro(f)};var E=ZO(VO([].concat(i,g.options.modifiers)));return g.orderedModifiers=E.filter(function(R){return R.enabled}),x(),y.update()},forceUpdate:function(){if(!d){var v=g.elements,S=v.reference,E=v.popper;if(kh(S,E)){g.rects={reference:HO(S,Ho(E),g.options.strategy==="fixed"),popper:Zc(E)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(G){return g.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<g.orderedModifiers.length;R++){if(g.reset===!0){g.reset=!1,R=-1;continue}var T=g.orderedModifiers[R],k=T.fn,U=T.options,D=U===void 0?{}:U,N=T.name;typeof k=="function"&&(g=k({state:g,options:D,name:N,instance:y})||g)}}}},update:GO(function(){return new Promise(function(w){y.forceUpdate(),w(g)})}),destroy:function(){p(),d=!0}};if(!kh(c,f))return y;y.setOptions(m).then(function(w){!d&&m.onFirstUpdate&&m.onFirstUpdate(w)});function x(){g.orderedModifiers.forEach(function(w){var v=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var T=R({state:g,name:v,instance:y,options:E}),k=function(){};h.push(T||k)}})}function p(){h.forEach(function(w){return w()}),h=[]}return y}}var YO=[bO,NO,vO,sO,MO,CO,zO,pO,IO],XO=KO({defaultModifiers:YO}),Ws=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Al,Ih;function JO(){if(Ih)return Al;Ih=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(a,u){if(a===u)return!0;if(a&&u&&typeof a=="object"&&typeof u=="object"){if(a.constructor!==u.constructor)return!1;var c,f,m;if(Array.isArray(a)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(!s(a[f],u[f]))return!1;return!0}var g;if(t&&a instanceof Map&&u instanceof Map){if(a.size!==u.size)return!1;for(g=a.entries();!(f=g.next()).done;)if(!u.has(f.value[0]))return!1;for(g=a.entries();!(f=g.next()).done;)if(!s(f.value[1],u.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&u instanceof Set){if(a.size!==u.size)return!1;for(g=a.entries();!(f=g.next()).done;)if(!u.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(u)){if(c=a.length,c!=u.length)return!1;for(f=c;f--!==0;)if(a[f]!==u[f])return!1;return!0}if(a.constructor===RegExp)return a.source===u.source&&a.flags===u.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof u.valueOf=="function")return a.valueOf()===u.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof u.toString=="function")return a.toString()===u.toString();if(m=Object.keys(a),c=m.length,c!==Object.keys(u).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(u,m[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((m[f]==="_owner"||m[f]==="__v"||m[f]==="__o")&&a.$$typeof)&&!s(a[m[f]],u[m[f]]))return!1;return!0}return a!==a&&u!==u}return Al=function(u,c){try{return s(u,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},Al}var QO=JO();const eA=pv(QO);var tA=[],Xc=function(t,r,i){i===void 0&&(i={});var s=I.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||tA},u=I.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=u[0],f=u[1],m=I.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(y){var x=y.state,p=Object.keys(x.elements);qT.flushSync(function(){f({styles:xh(p.map(function(w){return[w,x.styles[w]||{}]})),attributes:xh(p.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),g=I.useMemo(function(){var d={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[m,{name:"applyStyles",enabled:!1}])};return eA(s.current,d)?s.current||d:(s.current=d,d)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,m]),h=I.useRef();return Sh(function(){h.current&&h.current.setOptions(g)},[g]),Sh(function(){if(!(t==null||r==null)){var d=i.createPopper||XO,y=d(t,r,g);return h.current=y,function(){y.destroy(),h.current=null}}},[t,r,i.createPopper]),{state:h.current?h.current.state:null,styles:c.styles,attributes:c.attributes,update:h.current?h.current.update:null,forceUpdate:h.current?h.current.forceUpdate:null}};const hv=e=>$.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),gv=z.forwardRef(({children:e,style:t,attributes:r},i)=>$.jsx("div",{style:{...t,zIndex:2e3},...r,ref:i,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),rA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,u]=z.useState(null),{styles:c,attributes:f}=Xc(e,a,{placement:t||"bottom-start"}),m=z.useCallback(()=>{s&&s()},[s]);return r?$.jsxs(nv,{children:[$.jsx(hv,{onClick:()=>m()}),$.jsx(gv,{ref:u,style:c.popper,attributes:f.popper,children:i})]}):null};var Rl={exports:{}};/*!
1
+ "use strict";var lC=Object.defineProperty;var Nv=e=>{throw TypeError(e)};var cC=(e,t,r)=>t in e?lC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>cC(e,typeof t!="symbol"?t+"":t,r),sd=(e,t,r)=>t.has(e)||Nv("Cannot "+r);var se=(e,t,r)=>(sd(e,t,"read from private field"),r?r.call(e):t.get(e)),Lt=(e,t,r)=>t.has(e)?Nv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),et=(e,t,r,n)=>(sd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),_e=(e,t,r)=>(sd(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("react/jsx-runtime"),M=require("react"),$n=require("react-dom"),ht=require("@ws-ui/icons"),ff=require("@emotion/react");function d0(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 B=d0(M),uC=d0($n),f0=({children:e,container:t=document.body})=>$n.createPortal(e,t);var Dv=function(t){return t.reduce(function(r,n){var o=n[0],a=n[1];return r[o]=a,r},{})},Mv=typeof window<"u"&&window.document&&window.document.createElement?B.useLayoutEffect:B.useEffect,ir="top",Dr="bottom",Mr="right",or="left",Zf="auto",cs=[ir,Dr,Mr,or],ko="start",Za="end",dC="clippingParents",p0="viewport",ia="popper",fC="reference",Lv=cs.reduce(function(e,t){return e.concat([t+"-"+ko,t+"-"+Za])},[]),h0=[].concat(cs,[Zf]).reduce(function(e,t){return e.concat([t,t+"-"+ko,t+"-"+Za])},[]),pC="beforeRead",hC="read",gC="afterRead",vC="beforeMain",mC="main",bC="afterMain",yC="beforeWrite",wC="write",xC="afterWrite",SC=[pC,hC,gC,vC,mC,bC,yC,wC,xC];function gn(e){return e?(e.nodeName||"").toLowerCase():null}function br(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Mi(e){var t=br(e).Element;return e instanceof t||e instanceof Element}function Nr(e){var t=br(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Yf(e){if(typeof ShadowRoot>"u")return!1;var t=br(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _C(e){var t=e.state;Object.keys(t.elements).forEach(function(r){var n=t.styles[r]||{},o=t.attributes[r]||{},a=t.elements[r];!Nr(a)||!gn(a)||(Object.assign(a.style,n),Object.keys(o).forEach(function(l){var c=o[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function EC(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 o=t.elements[n],a=t.attributes[n]||{},l=Object.keys(t.styles.hasOwnProperty(n)?t.styles[n]:r[n]),c=l.reduce(function(u,p){return u[p]="",u},{});!Nr(o)||!gn(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const kC={name:"applyStyles",enabled:!0,phase:"write",fn:_C,effect:EC,requires:["computeStyles"]};function pn(e){return e.split("-")[0]}var Ni=Math.max,ac=Math.min,Oo=Math.round;function pf(){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 g0(){return!/^((?!chrome|android).)*safari/i.test(pf())}function To(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Nr(e)&&(o=e.offsetWidth>0&&Oo(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Oo(n.height)/e.offsetHeight||1);var l=Mi(e)?br(e):window,c=l.visualViewport,u=!g0()&&r,p=(n.left+(u&&c?c.offsetLeft:0))/o,g=(n.top+(u&&c?c.offsetTop:0))/a,f=n.width/o,h=n.height/a;return{width:f,height:h,top:g,right:p+f,bottom:g+h,left:p,x:p,y:g}}function Xf(e){var t=To(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 v0(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Yf(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Ln(e){return br(e).getComputedStyle(e)}function OC(e){return["table","td","th"].indexOf(gn(e))>=0}function si(e){return((Mi(e)?e.ownerDocument:e.document)||window.document).documentElement}function Tc(e){return gn(e)==="html"?e:e.assignedSlot||e.parentNode||(Yf(e)?e.host:null)||si(e)}function $v(e){return!Nr(e)||Ln(e).position==="fixed"?null:e.offsetParent}function TC(e){var t=/firefox/i.test(pf()),r=/Trident/i.test(pf());if(r&&Nr(e)){var n=Ln(e);if(n.position==="fixed")return null}var o=Tc(e);for(Yf(o)&&(o=o.host);Nr(o)&&["html","body"].indexOf(gn(o))<0;){var a=Ln(o);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return o;o=o.parentNode}return null}function us(e){for(var t=br(e),r=$v(e);r&&OC(r)&&Ln(r).position==="static";)r=$v(r);return r&&(gn(r)==="html"||gn(r)==="body"&&Ln(r).position==="static")?t:r||TC(e)||t}function Jf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ba(e,t,r){return Ni(e,ac(t,r))}function AC(e,t,r){var n=Ba(e,t,r);return n>r?r:n}function m0(){return{top:0,right:0,bottom:0,left:0}}function b0(e){return Object.assign({},m0(),e)}function y0(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var RC=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,b0(typeof t!="number"?t:y0(t,cs))};function CC(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=pn(r.placement),u=Jf(c),p=[or,Mr].indexOf(c)>=0,g=p?"height":"width";if(!(!a||!l)){var f=RC(o.padding,r),h=Xf(a),b=u==="y"?ir:or,S=u==="y"?Dr:Mr,v=r.rects.reference[g]+r.rects.reference[u]-l[u]-r.rects.popper[g],y=l[u]-r.rects.reference[u],m=us(a),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-y/2,k=f[b],E=w-h[g]-f[S],R=w/2-h[g]/2+x,F=Ba(k,R,E),P=u;r.modifiersData[n]=(t={},t[P]=F,t.centerOffset=F-R,t)}}function PC(e){var t=e.state,r=e.options,n=r.element,o=n===void 0?"[data-popper-arrow]":n;o!=null&&(typeof o=="string"&&(o=t.elements.popper.querySelector(o),!o)||v0(t.elements.popper,o)&&(t.elements.arrow=o))}const IC={name:"arrow",enabled:!0,phase:"main",fn:CC,effect:PC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ao(e){return e.split("-")[1]}var NC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function DC(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:Oo(r*o)/o||0,y:Oo(n*o)/o||0}}function zv(e){var t,r=e.popper,n=e.popperRect,o=e.placement,a=e.variation,l=e.offsets,c=e.position,u=e.gpuAcceleration,p=e.adaptive,g=e.roundOffsets,f=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=or,k=ir,E=window;if(p){var R=us(r),F="clientHeight",P="clientWidth";if(R===br(r)&&(R=si(r),Ln(R).position!=="static"&&c==="absolute"&&(F="scrollHeight",P="scrollWidth")),R=R,o===ir||(o===or||o===Mr)&&a===Za){k=Dr;var $=f&&R===E&&E.visualViewport?E.visualViewport.height:R[F];v-=$-n.height,v*=u?1:-1}if(o===or||(o===ir||o===Dr)&&a===Za){x=Mr;var V=f&&R===E&&E.visualViewport?E.visualViewport.width:R[P];b-=V-n.width,b*=u?1:-1}}var z=Object.assign({position:c},p&&NC),I=g===!0?DC({x:b,y:v},br(r)):{x:b,y:v};if(b=I.x,v=I.y,u){var j;return Object.assign({},z,(j={},j[k]=w?"0":"",j[x]=m?"0":"",j.transform=(E.devicePixelRatio||1)<=1?"translate("+b+"px, "+v+"px)":"translate3d("+b+"px, "+v+"px, 0)",j))}return Object.assign({},z,(t={},t[k]=w?v+"px":"",t[x]=m?b+"px":"",t.transform="",t))}function MC(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=n===void 0?!0:n,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,u=c===void 0?!0:c,p={placement:pn(t.placement),variation:Ao(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,zv(Object.assign({},p,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:u})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zv(Object.assign({},p,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const LC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:MC,data:{}};var sl={passive:!0};function $C(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,a=o===void 0?!0:o,l=n.resize,c=l===void 0?!0:l,u=br(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(g){g.addEventListener("scroll",r.update,sl)}),c&&u.addEventListener("resize",r.update,sl),function(){a&&p.forEach(function(g){g.removeEventListener("scroll",r.update,sl)}),c&&u.removeEventListener("resize",r.update,sl)}}const zC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:$C,data:{}};var jC={left:"right",right:"left",bottom:"top",top:"bottom"};function Bl(e){return e.replace(/left|right|bottom|top/g,function(t){return jC[t]})}var FC={start:"end",end:"start"};function jv(e){return e.replace(/start|end/g,function(t){return FC[t]})}function Qf(e){var t=br(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function ep(e){return To(si(e)).left+Qf(e).scrollLeft}function HC(e,t){var r=br(e),n=si(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){a=o.width,l=o.height;var p=g0();(p||!p&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:c+ep(e),y:u}}function BC(e){var t,r=si(e),n=Qf(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ni(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ni(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+ep(e),u=-n.scrollTop;return Ln(o||r).direction==="rtl"&&(c+=Ni(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:u}}function tp(e){var t=Ln(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function w0(e){return["html","body","#document"].indexOf(gn(e))>=0?e.ownerDocument.body:Nr(e)&&tp(e)?e:w0(Tc(e))}function Wa(e,t){var r;t===void 0&&(t=[]);var n=w0(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=br(n),l=o?[a].concat(a.visualViewport||[],tp(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(Wa(Tc(l)))}function hf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function WC(e,t){var r=To(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 Fv(e,t,r){return t===p0?hf(HC(e,r)):Mi(t)?WC(t,r):hf(BC(si(e)))}function UC(e){var t=Wa(Tc(e)),r=["absolute","fixed"].indexOf(Ln(e).position)>=0,n=r&&Nr(e)?us(e):e;return Mi(n)?t.filter(function(o){return Mi(o)&&v0(o,n)&&gn(o)!=="body"}):[]}function qC(e,t,r,n){var o=t==="clippingParents"?UC(e):[].concat(t),a=[].concat(o,[r]),l=a[0],c=a.reduce(function(u,p){var g=Fv(e,p,n);return u.top=Ni(g.top,u.top),u.right=ac(g.right,u.right),u.bottom=ac(g.bottom,u.bottom),u.left=Ni(g.left,u.left),u},Fv(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 x0(e){var t=e.reference,r=e.element,n=e.placement,o=n?pn(n):null,a=n?Ao(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(o){case ir:u={x:l,y:t.y-r.height};break;case Dr:u={x:l,y:t.y+t.height};break;case Mr:u={x:t.x+t.width,y:c};break;case or:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var p=o?Jf(o):null;if(p!=null){var g=p==="y"?"height":"width";switch(a){case ko:u[p]=u[p]-(t[g]/2-r[g]/2);break;case Za:u[p]=u[p]+(t[g]/2-r[g]/2);break}}return u}function Ya(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=n===void 0?e.placement:n,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,u=c===void 0?dC:c,p=r.rootBoundary,g=p===void 0?p0:p,f=r.elementContext,h=f===void 0?ia:f,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=b0(typeof y!="number"?y:y0(y,cs)),w=h===ia?fC:ia,x=e.rects.popper,k=e.elements[S?w:h],E=qC(Mi(k)?k:k.contextElement||si(e.elements.popper),u,g,l),R=To(e.elements.reference),F=x0({reference:R,element:x,placement:o}),P=hf(Object.assign({},x,F)),$=h===ia?P:R,V={top:E.top-$.top+m.top,bottom:$.bottom-E.bottom+m.bottom,left:E.left-$.left+m.left,right:$.right-E.right+m.right},z=e.modifiersData.offset;if(h===ia&&z){var I=z[o];Object.keys(V).forEach(function(j){var W=[Mr,Dr].indexOf(j)>=0?1:-1,N=[ir,Dr].indexOf(j)>=0?"y":"x";V[j]+=I[N]*W})}return V}function VC(e,t){t===void 0&&(t={});var r=t,n=r.placement,o=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,u=r.allowedAutoPlacements,p=u===void 0?h0:u,g=Ao(n),f=g?c?Lv:Lv.filter(function(S){return Ao(S)===g}):cs,h=f.filter(function(S){return p.indexOf(S)>=0});h.length===0&&(h=f);var b=h.reduce(function(S,v){return S[v]=Ya(e,{placement:v,boundary:o,rootBoundary:a,padding:l})[pn(v)],S},{});return Object.keys(b).sort(function(S,v){return b[S]-b[v]})}function GC(e){if(pn(e)===Zf)return[];var t=Bl(e);return[jv(e),t,jv(t)]}function KC(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!0:l,u=r.fallbackPlacements,p=r.padding,g=r.boundary,f=r.rootBoundary,h=r.altBoundary,b=r.flipVariations,S=b===void 0?!0:b,v=r.allowedAutoPlacements,y=t.options.placement,m=pn(y),w=m===y,x=u||(w||!S?[Bl(y)]:GC(y)),k=[y].concat(x).reduce(function(J,ce){return J.concat(pn(ce)===Zf?VC(t,{placement:ce,boundary:g,rootBoundary:f,padding:p,flipVariations:S,allowedAutoPlacements:v}):ce)},[]),E=t.rects.reference,R=t.rects.popper,F=new Map,P=!0,$=k[0],V=0;V<k.length;V++){var z=k[V],I=pn(z),j=Ao(z)===ko,W=[ir,Dr].indexOf(I)>=0,N=W?"width":"height",Y=Ya(t,{placement:z,boundary:g,rootBoundary:f,altBoundary:h,padding:p}),X=W?j?Mr:or:j?Dr:ir;E[N]>R[N]&&(X=Bl(X));var K=Bl(X),ge=[];if(a&&ge.push(Y[I]<=0),c&&ge.push(Y[X]<=0,Y[K]<=0),ge.every(function(J){return J})){$=z,P=!1;break}F.set(z,ge)}if(P)for(var D=S?3:1,U=function(ce){var ae=k.find(function(re){var de=F.get(re);if(de)return de.slice(0,ce).every(function(he){return he})});if(ae)return $=ae,"break"},ee=D;ee>0;ee--){var te=U(ee);if(te==="break")break}t.placement!==$&&(t.modifiersData[n]._skip=!0,t.placement=$,t.reset=!0)}}const ZC={name:"flip",enabled:!0,phase:"main",fn:KC,requiresIfExists:["offset"],data:{_skip:!1}};function Hv(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 Bv(e){return[ir,Mr,Dr,or].some(function(t){return e[t]>=0})}function YC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=Ya(t,{elementContext:"reference"}),c=Ya(t,{altBoundary:!0}),u=Hv(l,n),p=Hv(c,o,a),g=Bv(u),f=Bv(p);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:g,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":g,"data-popper-escaped":f})}const XC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:YC};function JC(e,t,r){var n=pn(e),o=[or,ir].indexOf(n)>=0?-1:1,a=typeof r=="function"?r(Object.assign({},t,{placement:e})):r,l=a[0],c=a[1];return l=l||0,c=(c||0)*o,[or,Mr].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function QC(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,l=h0.reduce(function(g,f){return g[f]=JC(f,t.rects,a),g},{}),c=l[t.placement],u=c.x,p=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=p),t.modifiersData[n]=l}const eP={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:QC};function tP(e){var t=e.state,r=e.name;t.modifiersData[r]=x0({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const rP={name:"popperOffsets",enabled:!0,phase:"read",fn:tP,data:{}};function nP(e){return e==="x"?"y":"x"}function iP(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,a=o===void 0?!0:o,l=r.altAxis,c=l===void 0?!1:l,u=r.boundary,p=r.rootBoundary,g=r.altBoundary,f=r.padding,h=r.tether,b=h===void 0?!0:h,S=r.tetherOffset,v=S===void 0?0:S,y=Ya(t,{boundary:u,rootBoundary:p,padding:f,altBoundary:g}),m=pn(t.placement),w=Ao(t.placement),x=!w,k=Jf(m),E=nP(k),R=t.modifiersData.popperOffsets,F=t.rects.reference,P=t.rects.popper,$=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,V=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),z=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(R){if(a){var j,W=k==="y"?ir:or,N=k==="y"?Dr:Mr,Y=k==="y"?"height":"width",X=R[k],K=X+y[W],ge=X-y[N],D=b?-P[Y]/2:0,U=w===ko?F[Y]:P[Y],ee=w===ko?-P[Y]:-F[Y],te=t.elements.arrow,J=b&&te?Xf(te):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:m0(),ae=ce[W],re=ce[N],de=Ba(0,F[Y],J[Y]),he=x?F[Y]/2-D-de-ae-V.mainAxis:U-de-ae-V.mainAxis,fe=x?-F[Y]/2+D+de+re+V.mainAxis:ee+de+re+V.mainAxis,xe=t.elements.arrow&&us(t.elements.arrow),Z=xe?k==="y"?xe.clientTop||0:xe.clientLeft||0:0,ke=(j=z==null?void 0:z[k])!=null?j:0,me=X+he-ke-Z,nt=X+fe-ke,gt=Ba(b?ac(K,me):K,X,b?Ni(ge,nt):ge);R[k]=gt,I[k]=gt-X}if(c){var mn,ar=k==="x"?ir:or,Xt=k==="x"?Dr:Mr,sr=R[E],xr=E==="y"?"height":"width",Nt=sr+y[ar],$r=sr-y[Xt],Xr=[ir,or].indexOf(m)!==-1,ci=(mn=z==null?void 0:z[E])!=null?mn:0,zr=Xr?Nt:sr-F[xr]-P[xr]-ci+V.altAxis,ui=Xr?sr+F[xr]+P[xr]-ci-V.altAxis:$r,jr=b&&Xr?AC(zr,sr,ui):Ba(b?zr:Nt,sr,b?ui:$r);R[E]=jr,I[E]=jr-sr}t.modifiersData[n]=I}}const oP={name:"preventOverflow",enabled:!0,phase:"main",fn:iP,requiresIfExists:["offset"]};function aP(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function sP(e){return e===br(e)||!Nr(e)?Qf(e):aP(e)}function lP(e){var t=e.getBoundingClientRect(),r=Oo(t.width)/e.offsetWidth||1,n=Oo(t.height)/e.offsetHeight||1;return r!==1||n!==1}function cP(e,t,r){r===void 0&&(r=!1);var n=Nr(t),o=Nr(t)&&lP(t),a=si(t),l=To(e,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((gn(t)!=="body"||tp(a))&&(c=sP(t)),Nr(t)?(u=To(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=ep(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function uP(e){var t=new Map,r=new Set,n=[];e.forEach(function(a){t.set(a.name,a)});function o(a){r.add(a.name);var l=[].concat(a.requires||[],a.requiresIfExists||[]);l.forEach(function(c){if(!r.has(c)){var u=t.get(c);u&&o(u)}}),n.push(a)}return e.forEach(function(a){r.has(a.name)||o(a)}),n}function dP(e){var t=uP(e);return SC.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function fP(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function pP(e){var t=e.reduce(function(r,n){var o=r[n.name];return r[n.name]=o?Object.assign({},o,n,{options:Object.assign({},o.options,n.options),data:Object.assign({},o.data,n.data)}):n,r},{});return Object.keys(t).map(function(r){return t[r]})}var Wv={placement:"bottom",modifiers:[],strategy:"absolute"};function Uv(){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 hP(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Wv:o;return function(c,u,p){p===void 0&&(p=a);var g={placement:"bottom",orderedModifiers:[],options:Object.assign({},Wv,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},f=[],h=!1,b={state:g,setOptions:function(m){var w=typeof m=="function"?m(g.options):m;v(),g.options=Object.assign({},a,g.options,w),g.scrollParents={reference:Mi(c)?Wa(c):c.contextElement?Wa(c.contextElement):[],popper:Wa(u)};var x=dP(pP([].concat(n,g.options.modifiers)));return g.orderedModifiers=x.filter(function(k){return k.enabled}),S(),b.update()},forceUpdate:function(){if(!h){var m=g.elements,w=m.reference,x=m.popper;if(Uv(w,x)){g.rects={reference:cP(w,us(x),g.options.strategy==="fixed"),popper:Xf(x)},g.reset=!1,g.placement=g.options.placement,g.orderedModifiers.forEach(function(V){return g.modifiersData[V.name]=Object.assign({},V.data)});for(var k=0;k<g.orderedModifiers.length;k++){if(g.reset===!0){g.reset=!1,k=-1;continue}var E=g.orderedModifiers[k],R=E.fn,F=E.options,P=F===void 0?{}:F,$=E.name;typeof R=="function"&&(g=R({state:g,options:P,name:$,instance:b})||g)}}}},update:fP(function(){return new Promise(function(y){b.forceUpdate(),y(g)})}),destroy:function(){v(),h=!0}};if(!Uv(c,u))return b;b.setOptions(p).then(function(y){!h&&p.onFirstUpdate&&p.onFirstUpdate(y)});function S(){g.orderedModifiers.forEach(function(y){var m=y.name,w=y.options,x=w===void 0?{}:w,k=y.effect;if(typeof k=="function"){var E=k({state:g,name:m,instance:b,options:x}),R=function(){};f.push(E||R)}})}function v(){f.forEach(function(y){return y()}),f=[]}return b}}var gP=[zC,rP,LC,kC,eP,ZC,oP,IC,XC],vP=hP({defaultModifiers:gP}),ll=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function S0(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ld,qv;function mP(){if(qv)return ld;qv=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",n=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function o(a,l){if(a===l)return!0;if(a&&l&&typeof a=="object"&&typeof l=="object"){if(a.constructor!==l.constructor)return!1;var c,u,p;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(u=c;u--!==0;)if(!o(a[u],l[u]))return!1;return!0}var g;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(g=a.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;for(g=a.entries();!(u=g.next()).done;)if(!o(u.value[1],l.get(u.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(g=a.entries();!(u=g.next()).done;)if(!l.has(u.value[0]))return!1;return!0}if(n&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(u=c;u--!==0;)if(a[u]!==l[u])return!1;return!0}if(a.constructor===RegExp)return a.source===l.source&&a.flags===l.flags;if(a.valueOf!==Object.prototype.valueOf&&typeof a.valueOf=="function"&&typeof l.valueOf=="function")return a.valueOf()===l.valueOf();if(a.toString!==Object.prototype.toString&&typeof a.toString=="function"&&typeof l.toString=="function")return a.toString()===l.toString();if(p=Object.keys(a),c=p.length,c!==Object.keys(l).length)return!1;for(u=c;u--!==0;)if(!Object.prototype.hasOwnProperty.call(l,p[u]))return!1;if(e&&a instanceof Element)return!1;for(u=c;u--!==0;)if(!((p[u]==="_owner"||p[u]==="__v"||p[u]==="__o")&&a.$$typeof)&&!o(a[p[u]],l[p[u]]))return!1;return!0}return a!==a&&l!==l}return ld=function(l,c){try{return o(l,c)}catch(u){if((u.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw u}},ld}var bP=mP();const yP=S0(bP);var wP=[],rp=function(t,r,n){n===void 0&&(n={});var o=B.useRef(null),a={onFirstUpdate:n.onFirstUpdate,placement:n.placement||"bottom",strategy:n.strategy||"absolute",modifiers:n.modifiers||wP},l=B.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],u=l[1],p=B.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var S=b.state,v=Object.keys(S.elements);uC.flushSync(function(){u({styles:Dv(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:Dv(v.map(function(y){return[y,S.attributes[y]]}))})})},requires:["computeStyles"]}},[]),g=B.useMemo(function(){var h={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[p,{name:"applyStyles",enabled:!1}])};return yP(o.current,h)?o.current||h:(o.current=h,h)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,p]),f=B.useRef();return Mv(function(){f.current&&f.current.setOptions(g)},[g]),Mv(function(){if(!(t==null||r==null)){var h=n.createPopper||vP,b=h(t,r,g);return f.current=b,function(){b.destroy(),f.current=null}}},[t,r,n.createPopper]),{state:f.current?f.current.state:null,styles:c.styles,attributes:c.attributes,update:f.current?f.current.update:null,forceUpdate:f.current?f.current.forceUpdate:null}};const _0=e=>T.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),E0=M.forwardRef(({children:e,style:t,attributes:r},n)=>T.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})),xP=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:o})=>{const[a,l]=M.useState(null),{styles:c,attributes:u}=rp(e,a,{placement:t||"bottom-start"}),p=M.useCallback(()=>{o&&o()},[o]);return r?T.jsxs(f0,{children:[T.jsx(_0,{onClick:()=>p()}),T.jsx(E0,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};var cd={exports:{}};/*!
2
2
  Copyright (c) 2018 Jed Watson.
3
3
  Licensed under the MIT License (MIT), see
4
4
  http://jedwatson.github.io/classnames
5
- */var $h;function mv(){return $h||($h=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",u=0;u<arguments.length;u++){var c=arguments[u];c&&(a=s(a,i(c)))}return a}function i(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var u="";for(var c in a)t.call(a,c)&&a[c]&&(u=s(u,c));return u}function s(a,u){return u?a?a+" "+u:a+u:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Rl)),Rl.exports}var nA=mv();const je=pv(nA);function jn(){return jn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},jn.apply(this,arguments)}const iA=["children","options"],Lh=["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"}),Mh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},oA=["style","script","pre"],sA=["src","href","data","formAction","srcDoc","action"],aA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,uA=/\n{2,}$/,Dh=/^(\s*>[\s\S]*?)(?=\n\n|$)/,lA=/^ *> ?/gm,cA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,fA=/^ {2,}\n/,dA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Nh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Fh=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,pA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,hA=/^(?:\n *)*\n/,gA=/\r\n?/g,mA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,vA=/^\[\^([^\]]+)]/,yA=/\f/g,bA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,wA=/^\s*?\[(x|\s)\]/,jh=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,zh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Bh=/^([^\n]+)\n *(=|-)\2{2,} *\n/,Pl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,xA=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Uh=/^<!--[\s\S]*?(?:-->)/,SA=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,Cl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,EA=/^\{.*\}$/,_A=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,TA=/^<([^ >]+[:@\/][^ >]+)>/,OA=/-([a-z])?/gi,Wh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,AA=/^[^\n]+(?: \n|\n{2,})/,RA=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,PA=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,CA=/^\[([^\]]*)\] ?\[([^\]]*)\]/,kA=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,IA=/\t/g,$A=/(^ *\||\| *$)/g,LA=/^ *:-+: *$/,MA=/^ *:-+ *$/,DA=/^ *-+: *$/,ja=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,za="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",NA=RegExp(`^([*_])\\1${ja(1)}${za}\\1\\1(?!\\1)`),FA=RegExp(`^([*_])${ja(0)}${za}\\1(?!\\1)`),jA=RegExp(`^(==)${ja(0)}${za}\\1`),zA=RegExp(`^(~~)${ja(0)}${za}\\1`),BA=/^(:[a-zA-Z0-9-_]+:)/,UA=/^\\([^0-9A-Za-z\s])/,WA=/\\([^0-9A-Za-z\s])/g,HA=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,qA=/^\n+/,ZA=/^([ \t]*)/,GA=/(?:^|\n)( *)$/,Jc="(?:\\d+\\.)",Qc="(?:[*+-])";function vv(e){return"( *)("+(e===1?Jc:Qc)+") +"}const yv=vv(1),bv=vv(2);function wv(e){return RegExp("^"+(e===1?yv:bv))}const VA=wv(1),KA=wv(2);function xv(e){return RegExp("^"+(e===1?yv:bv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Jc:Qc)+" )[^\\n]*)*(\\n|$)","gm")}const YA=xv(1),XA=xv(2);function Sv(e){const t=e===1?Jc:Qc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const Ev=Sv(1),_v=Sv(2);function Hh(e,t){const r=t===1,i=r?Ev:_v,s=r?YA:XA,a=r?VA:KA;return{t:u=>a.test(u),o:Oi(function(u,c){const f=GA.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(u=f[1]+u):null}),i:1,u(u,c,f){const m=r?+u[2]:void 0,g=u[0].replace(uA,`
6
- `).match(s);let h=!1;return{items:g.map(function(d,y){const x=a.exec(d)[0].length,p=RegExp("^ {1,"+x+"}","gm"),w=d.replace(p,"").replace(a,""),v=y===g.length-1,S=w.indexOf(`
5
+ */var Vv;function k0(){return Vv||(Vv=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=o(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=o(l,c));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(cd)),cd.exports}var SP=k0();const at=S0(SP);function Ci(){return Ci=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},Ci.apply(this,arguments)}const _P=["children","options"],Gv=["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"}),Kv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},EP=["style","script","pre"],kP=["src","href","data","formAction","srcDoc","action"],OP=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,TP=/\n{2,}$/,Zv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,AP=/^ *> ?/gm,RP=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,CP=/^ {2,}\n/,PP=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Yv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Xv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,IP=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,NP=/^(?:\n *)*\n/,DP=/\r\n?/g,MP=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,LP=/^\[\^([^\]]+)]/,$P=/\f/g,zP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,jP=/^\s*?\[(x|\s)\]/,Jv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Qv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,em=/^([^\n]+)\n *(=|-)\2{2,} *\n/,ud=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,FP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,tm=/^<!--[\s\S]*?(?:-->)/,HP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,dd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,BP=/^\{.*\}$/,WP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,UP=/^<([^ >]+[:@\/][^ >]+)>/,qP=/-([a-z])?/gi,rm=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,VP=/^[^\n]+(?: \n|\n{2,})/,GP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,KP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,ZP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,YP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,XP=/\t/g,JP=/(^ *\||\| *$)/g,QP=/^ *:-+: *$/,eI=/^ *:-+ *$/,tI=/^ *-+: *$/,Ac=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Rc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",rI=RegExp(`^([*_])\\1${Ac(1)}${Rc}\\1\\1(?!\\1)`),nI=RegExp(`^([*_])${Ac(0)}${Rc}\\1(?!\\1)`),iI=RegExp(`^(==)${Ac(0)}${Rc}\\1`),oI=RegExp(`^(~~)${Ac(0)}${Rc}\\1`),aI=/^(:[a-zA-Z0-9-_]+:)/,sI=/^\\([^0-9A-Za-z\s])/,lI=/\\([^0-9A-Za-z\s])/g,cI=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,uI=/^\n+/,dI=/^([ \t]*)/,fI=/(?:^|\n)( *)$/,np="(?:\\d+\\.)",ip="(?:[*+-])";function O0(e){return"( *)("+(e===1?np:ip)+") +"}const T0=O0(1),A0=O0(2);function R0(e){return RegExp("^"+(e===1?T0:A0))}const pI=R0(1),hI=R0(2);function C0(e){return RegExp("^"+(e===1?T0:A0)+"[^\\n]*(?:\\n(?!\\1"+(e===1?np:ip)+" )[^\\n]*)*(\\n|$)","gm")}const gI=C0(1),vI=C0(2);function P0(e){const t=e===1?np:ip;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const I0=P0(1),N0=P0(2);function nm(e,t){const r=t===1,n=r?I0:N0,o=r?gI:vI,a=r?pI:hI;return{t:l=>a.test(l),o:Ro(function(l,c){const u=fI.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 p=r?+l[2]:void 0,g=l[0].replace(TP,`
6
+ `).match(o);let f=!1;return{items:g.map(function(h,b){const S=a.exec(h)[0].length,v=RegExp("^ {1,"+S+"}","gm"),y=h.replace(v,"").replace(a,""),m=b===g.length-1,w=y.indexOf(`
7
7
 
8
- `)!==-1||v&&h;h=S;const E=f.inline,R=f.list;let T;f.list=!0,S?(f.inline=!1,T=Po(w)+`
8
+ `)!==-1||m&&f;f=w;const x=u.inline,k=u.list;let E;u.list=!0,w?(u.inline=!1,E=Ua(y)+`
9
9
 
10
- `):(f.inline=!0,T=Po(w));const k=c(T,f);return f.inline=E,f.list=R,k}),ordered:r,start:m}},l:(u,c,f)=>e(u.ordered?"ol":"ul",{key:f.key,start:u.type==="20"?u.start:void 0},u.items.map(function(m,g){return e("li",{key:g},c(m,f))}))}}const JA=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),QA=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function qh(e){return typeof e=="string"}function Po(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function fa(e,t){return e.startsWith(t)}function eR(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(fa(e,r[i]))return!0;return!1}return r(e,t)}function Ki(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 tR(e){return DA.test(e)?"right":LA.test(e)?"center":MA.test(e)?"left":null}function Zh(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],u="";function c(){if(!u)return;const f=a[a.length-1];f.push.apply(f,t(u,r)),u=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,m,g)=>{f.trim()==="|"&&(c(),i)?m!==0&&m!==g.length-1&&a.push([]):u+=f}),c(),r.inTable=s,a}function rR(e,t,r){r.inline=!0;const i=e[2]?e[2].replace($A,"").split("|").map(tR):[],s=e[3]?(function(u,c,f){return u.trim().split(`
11
- `).map(function(m){return Zh(m,c,f,!0)})})(e[3],t,r):[],a=Zh(e[1],t,r,!!s.length);return r.inline=!1,s.length?{align:i,cells:s,header:a,type:"25"}:{children:a,type:"21"}}function Gh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Oi(e){return e.inline=1,e}function Ln(e){return Oi(function(t,r){return r.inline?e.exec(t):null})}function fn(e){return Oi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function qr(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function Hs(e){return Oi(function(t){return e.exec(t)})}const nR=/(javascript|vbscript|data(?!:image)):/i;function iR(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(nR.test(t))return null}catch{return null}return e}function Er(e){return e&&e.replace(WA,"$1")}function da(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function oR(e,t,r){const i=r.inline||!1,s=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=i,r.simple=s,a}function sR(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const kl=(e,t,r)=>({children:da(t,e[2],r)});function Il(){return{}}function $l(){return null}function aR(...e){return e.filter(Boolean).join(" ")}function Ll(e,t,r){let i=e;const s=t.split(".");for(;s.length&&(i=i[s[0]],i!==void 0);)s.shift();return i||r}function uR(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?jn({},Mh,t.namedCodesToUnicode):Mh;const r=t.slugify||Ki,i=t.sanitizer||iR,s=t.createElement||I.createElement,a=[Dh,Nh,Fh,t.enforceAtxHeadings?zh:jh,Bh,Wh,Ev,_v],u=[...a,AA,Pl,Uh,Cl];function c(v,S){for(let E=0;E<v.length;E++)if(v[E].test(S))return!0;return!1}function f(v,S,...E){const R=Ll(t.overrides,v+".props",{});return s((function(T,k){const U=Ll(k,T);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:Ll(k,T+".component",T):T})(v,t.overrides),jn({},S,R,{className:aR(S==null?void 0:S.className,R.className)||void 0}),...E)}function m(v){v=v.replace(bA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=kA.test(v)===!1);const E=p(x(S?v:Po(v).replace(qA,"")+`
10
+ `):(u.inline=!0,E=Ua(y));const R=c(E,u);return u.inline=x,u.list=k,R}),ordered:r,start:p}},l:(l,c,u)=>e(l.ordered?"ol":"ul",{key:u.key,start:l.type==="20"?l.start:void 0},l.items.map(function(p,g){return e("li",{key:g},c(p,u))}))}}const mI=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),bI=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function im(e){return typeof e=="string"}function Ua(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Wl(e,t){return e.startsWith(t)}function yI(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(Wl(e,r[n]))return!0;return!1}return r(e,t)}function oa(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 wI(e){return tI.test(e)?"right":QP.test(e)?"center":eI.test(e)?"left":null}function om(e,t,r,n){const o=r.inTable;r.inTable=!0;let a=[[]],l="";function c(){if(!l)return;const u=a[a.length-1];u.push.apply(u,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((u,p,g)=>{u.trim()==="|"&&(c(),n)?p!==0&&p!==g.length-1&&a.push([]):l+=u}),c(),r.inTable=o,a}function xI(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(JP,"").split("|").map(wI):[],o=e[3]?(function(l,c,u){return l.trim().split(`
11
+ `).map(function(p){return om(p,c,u,!0)})})(e[3],t,r):[],a=om(e[1],t,r,!!o.length);return r.inline=!1,o.length?{align:n,cells:o,header:a,type:"25"}:{children:a,type:"21"}}function am(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function Ro(e){return e.inline=1,e}function ki(e){return Ro(function(t,r){return r.inline?e.exec(t):null})}function Kn(e){return Ro(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Tn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function cl(e){return Ro(function(t){return e.exec(t)})}const SI=/(javascript|vbscript|data(?!:image)):/i;function _I(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(SI.test(t))return null}catch{return null}return e}function tn(e){return e&&e.replace(lI,"$1")}function Ul(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!0,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function EI(e,t,r){const n=r.inline||!1,o=r.simple||!1;r.inline=!1,r.simple=!0;const a=e(t,r);return r.inline=n,r.simple=o,a}function kI(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const fd=(e,t,r)=>({children:Ul(t,e[2],r)});function pd(){return{}}function hd(){return null}function OI(...e){return e.filter(Boolean).join(" ")}function gd(e,t,r){let n=e;const o=t.split(".");for(;o.length&&(n=n[o[0]],n!==void 0);)o.shift();return n||r}function TI(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Ci({},Kv,t.namedCodesToUnicode):Kv;const r=t.slugify||oa,n=t.sanitizer||_I,o=t.createElement||B.createElement,a=[Zv,Yv,Xv,t.enforceAtxHeadings?Qv:Jv,em,rm,I0,N0],l=[...a,VP,ud,tm,dd];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 k=gd(t.overrides,m+".props",{});return o((function(E,R){const F=gd(R,E);return F?typeof F=="function"||typeof F=="object"&&"render"in F?F:gd(R,E+".component",E):E})(m,t.overrides),Ci({},w,k,{className:OI(w==null?void 0:w.className,k.className)||void 0}),...x)}function p(m){m=m.replace(zP,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=YP.test(m)===!1);const x=v(S(w?m:Ua(m).replace(uI,"")+`
12
12
 
13
- `,{inline:S}));for(;qh(E[E.length-1])&&!E[E.length-1].trim();)E.pop();if(t.wrapper===null)return E;const R=t.wrapper||(S?"span":"div");let T;if(E.length>1||t.forceWrapper)T=E;else{if(E.length===1)return T=E[0],typeof T=="string"?f("span",{key:"outer"},T):T;T=null}return s(R,{key:"outer"},T)}function g(v,S){if(!S||!S.trim())return null;const E=S.match(aA);return E?E.reduce(function(R,T){const k=T.indexOf("=");if(k!==-1){const U=(function(j){return j.indexOf("-")!==-1&&j.match(SA)===null&&(j=j.replace(OA,function(M,W){return W.toUpperCase()})),j})(T.slice(0,k)).trim(),D=(function(j){const M=j[0];return(M==='"'||M==="'")&&j.length>=2&&j[j.length-1]===M?j.slice(1,-1):j})(T.slice(k+1).trim()),N=Lh[U]||U;if(N==="ref")return R;const G=R[N]=(function(j,M,W,q){return M==="style"?(function(C){const J=[];let Y="",te=!1,de=!1,Z="";if(!C)return J;for(let se=0;se<C.length;se++){const ue=C[se];if(ue!=='"'&&ue!=="'"||te||(de?ue===Z&&(de=!1,Z=""):(de=!0,Z=ue)),ue==="("&&Y.endsWith("url")?te=!0:ue===")"&&te&&(te=!1),ue!==";"||de||te)Y+=ue;else{const ne=Y.trim();if(ne){const ce=ne.indexOf(":");if(ce>0){const fe=ne.slice(0,ce).trim(),ye=ne.slice(ce+1).trim();J.push([fe,ye])}}Y=""}}const Q=Y.trim();if(Q){const se=Q.indexOf(":");if(se>0){const ue=Q.slice(0,se).trim(),ne=Q.slice(se+1).trim();J.push([ue,ne])}}return J})(W).reduce(function(C,[J,Y]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(Y,j,J),C},{}):sA.indexOf(M)!==-1?q(Er(W),j,M):(W.match(EA)&&(W=Er(W.slice(1,W.length-1))),W==="true"||W!=="false"&&W)})(v,U,D,i);typeof G=="string"&&(Pl.test(G)||Cl.test(G))&&(R[N]=m(G.trim()))}else T!=="style"&&(R[Lh[T]||T]=!0);return R},{}):null}const h=[],d={},y={0:{t:[">"],o:qr(Dh),i:1,u(v,S,E){const[,R,T]=v[0].replace(lA,"").match(cA);return{alert:R,children:S(T,E)}},l(v,S,E){const R={key:E.key};return v.alert&&(R.className="markdown-alert-"+r(v.alert.toLowerCase(),Ki),v.children.unshift({attrs:{},children:[{type:"27",text:v.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(v.children,E))}},1:{t:[" "],o:Hs(fA),i:1,u:Il,l:(v,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:qr(dA),i:1,u:Il,l:(v,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:qr(Fh),i:0,u:v=>({lang:void 0,text:Er(Po(v[0].replace(/^ {4}/gm,"")))}),l:(v,S,E)=>f("pre",{key:E.key},f("code",jn({},v.attrs,{className:v.lang?"lang-"+v.lang:""}),v.text))},4:{t:["```","~~~"],o:qr(Nh),i:0,u:v=>({attrs:g("code",v[3]||""),lang:v[2]||void 0,text:v[4],type:"3"})},5:{t:["`"],o:fn(pA),i:3,u:v=>({text:Er(v[2])}),l:(v,S,E)=>f("code",{key:E.key},v.text)},6:{t:["[^"],o:qr(mA),i:0,u:v=>(h.push({footnote:v[2],identifier:v[1]}),{}),l:$l},7:{t:["[^"],o:Ln(vA),i:1,u:v=>({target:"#"+r(v[1],Ki),text:v[1]}),l:(v,S,E)=>f("a",{key:E.key,href:i(v.target,"a","href")},f("sup",{key:E.key},v.text))},8:{t:["[ ]","[x]"],o:Ln(wA),i:1,u:v=>({completed:v[1].toLowerCase()==="x"}),l:(v,S,E)=>f("input",{checked:v.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:qr(t.enforceAtxHeadings?zh:jh),i:1,u:(v,S,E)=>({children:da(S,v[2],E),id:r(v[2],Ki),level:v[1].length}),l:(v,S,E)=>f("h"+v.level,{id:v.id,key:E.key},S(v.children,E))},10:{t:v=>{const S=v.indexOf(`
14
- `);return S>0&&S<v.length-1&&(v[S+1]==="="||v[S+1]==="-")},o:qr(Bh),i:0,u:(v,S,E)=>({children:da(S,v[1],E),level:v[2]==="="?1:2,type:"9"})},11:{t:["<"],o:Hs(Pl),i:1,u(v,S,E){const[,R]=v[3].match(ZA),T=RegExp("^"+R,"gm"),k=v[3].replace(T,""),U=c(u,k)?sR:da,D=v[1].toLowerCase(),N=oA.indexOf(D)!==-1,G=(N?D:v[1]).trim(),j={attrs:g(G,v[2]),noInnerParse:N,tag:G};if(E.inAnchor=E.inAnchor||D==="a",N)j.text=v[3];else{const M=E.inHTML;E.inHTML=!0,j.children=U(S,k,E),E.inHTML=M}return E.inAnchor=!1,j},l:(v,S,E)=>f(v.tag,jn({key:E.key},v.attrs),v.text||(v.children?S(v.children,E):""))},13:{t:["<"],o:Hs(Cl),i:1,u(v){const S=v[1].trim();return{attrs:g(S,v[2]||""),tag:S}},l:(v,S,E)=>f(v.tag,jn({},v.attrs,{key:E.key}))},12:{t:["<!--"],o:Hs(Uh),i:1,u:()=>({}),l:$l},14:{t:["!["],o:fn(QA),i:1,u:v=>({alt:Er(v[1]),target:Er(v[2]),title:Er(v[3])}),l:(v,S,E)=>f("img",{key:E.key,alt:v.alt||void 0,title:v.title||void 0,src:i(v.target,"img","src")})},15:{t:["["],o:Ln(JA),i:3,u:(v,S,E)=>({children:oR(S,v[1],E),target:Er(v[2]),title:Er(v[3])}),l:(v,S,E)=>f("a",{key:E.key,href:i(v.target,"a","href"),title:v.title},S(v.children,E))},16:{t:["<"],o:Ln(TA),i:0,u(v){let S=v[1],E=!1;return S.indexOf("@")!==-1&&S.indexOf("//")===-1&&(E=!0,S=S.replace("mailto:","")),{children:[{text:S,type:"27"}],target:E?"mailto:"+S:S,type:"15"}}},17:{t:(v,S)=>!S.inAnchor&&!t.disableAutoLink&&(fa(v,"http://")||fa(v,"https://")),o:Ln(_A),i:0,u:v=>({children:[{text:v[1],type:"27"}],target:v[1],title:void 0,type:"15"})},20:Hh(f,1),33:Hh(f,2),19:{t:[`
15
- `],o:qr(hA),i:3,u:Il,l:()=>`
16
- `},21:{o:Oi(function(v,S){if(S.inline||S.simple||S.inHTML&&v.indexOf(`
13
+ `,{inline:w}));for(;im(x[x.length-1])&&!x[x.length-1].trim();)x.pop();if(t.wrapper===null)return x;const k=t.wrapper||(w?"span":"div");let E;if(x.length>1||t.forceWrapper)E=x;else{if(x.length===1)return E=x[0],typeof E=="string"?u("span",{key:"outer"},E):E;E=null}return o(k,{key:"outer"},E)}function g(m,w){if(!w||!w.trim())return null;const x=w.match(OP);return x?x.reduce(function(k,E){const R=E.indexOf("=");if(R!==-1){const F=(function(z){return z.indexOf("-")!==-1&&z.match(HP)===null&&(z=z.replace(qP,function(I,j){return j.toUpperCase()})),z})(E.slice(0,R)).trim(),P=(function(z){const I=z[0];return(I==='"'||I==="'")&&z.length>=2&&z[z.length-1]===I?z.slice(1,-1):z})(E.slice(R+1).trim()),$=Gv[F]||F;if($==="ref")return k;const V=k[$]=(function(z,I,j,W){return I==="style"?(function(N){const Y=[];let X="",K=!1,ge=!1,D="";if(!N)return Y;for(let ee=0;ee<N.length;ee++){const te=N[ee];if(te!=='"'&&te!=="'"||K||(ge?te===D&&(ge=!1,D=""):(ge=!0,D=te)),te==="("&&X.endsWith("url")?K=!0:te===")"&&K&&(K=!1),te!==";"||ge||K)X+=te;else{const J=X.trim();if(J){const ce=J.indexOf(":");if(ce>0){const ae=J.slice(0,ce).trim(),re=J.slice(ce+1).trim();Y.push([ae,re])}}X=""}}const U=X.trim();if(U){const ee=U.indexOf(":");if(ee>0){const te=U.slice(0,ee).trim(),J=U.slice(ee+1).trim();Y.push([te,J])}}return Y})(j).reduce(function(N,[Y,X]){return N[Y.replace(/(-[a-z])/g,K=>K[1].toUpperCase())]=W(X,z,Y),N},{}):kP.indexOf(I)!==-1?W(tn(j),z,I):(j.match(BP)&&(j=tn(j.slice(1,j.length-1))),j==="true"||j!=="false"&&j)})(m,F,P,n);typeof V=="string"&&(ud.test(V)||dd.test(V))&&(k[$]=p(V.trim()))}else E!=="style"&&(k[Gv[E]||E]=!0);return k},{}):null}const f=[],h={},b={0:{t:[">"],o:Tn(Zv),i:1,u(m,w,x){const[,k,E]=m[0].replace(AP,"").match(RP);return{alert:k,children:w(E,x)}},l(m,w,x){const k={key:x.key};return m.alert&&(k.className="markdown-alert-"+r(m.alert.toLowerCase(),oa),m.children.unshift({attrs:{},children:[{type:"27",text:m.alert}],noInnerParse:!0,type:"11",tag:"header"})),u("blockquote",k,w(m.children,x))}},1:{t:[" "],o:cl(CP),i:1,u:pd,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:Tn(PP),i:1,u:pd,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:Tn(Xv),i:0,u:m=>({lang:void 0,text:tn(Ua(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",Ci({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:Tn(Yv),i:0,u:m=>({attrs:g("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:Kn(IP),i:3,u:m=>({text:tn(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:Tn(MP),i:0,u:m=>(f.push({footnote:m[2],identifier:m[1]}),{}),l:hd},7:{t:["[^"],o:ki(LP),i:1,u:m=>({target:"#"+r(m[1],oa),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:ki(jP),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:Tn(t.enforceAtxHeadings?Qv:Jv),i:1,u:(m,w,x)=>({children:Ul(w,m[2],x),id:r(m[2],oa),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(`
14
+ `);return w>0&&w<m.length-1&&(m[w+1]==="="||m[w+1]==="-")},o:Tn(em),i:0,u:(m,w,x)=>({children:Ul(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:cl(ud),i:1,u(m,w,x){const[,k]=m[3].match(dI),E=RegExp("^"+k,"gm"),R=m[3].replace(E,""),F=c(l,R)?kI:Ul,P=m[1].toLowerCase(),$=EP.indexOf(P)!==-1,V=($?P:m[1]).trim(),z={attrs:g(V,m[2]),noInnerParse:$,tag:V};if(x.inAnchor=x.inAnchor||P==="a",$)z.text=m[3];else{const I=x.inHTML;x.inHTML=!0,z.children=F(w,R,x),x.inHTML=I}return x.inAnchor=!1,z},l:(m,w,x)=>u(m.tag,Ci({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:cl(dd),i:1,u(m){const w=m[1].trim();return{attrs:g(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,Ci({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:cl(tm),i:1,u:()=>({}),l:hd},14:{t:["!["],o:Kn(bI),i:1,u:m=>({alt:tn(m[1]),target:tn(m[2]),title:tn(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:ki(mI),i:3,u:(m,w,x)=>({children:EI(w,m[1],x),target:tn(m[2]),title:tn(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:ki(UP),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&&(Wl(m,"http://")||Wl(m,"https://")),o:ki(WP),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:nm(u,1),33:nm(u,2),19:{t:[`
15
+ `],o:Tn(NP),i:3,u:pd,l:()=>`
16
+ `},21:{o:Ro(function(m,w){if(w.inline||w.simple||w.inHTML&&m.indexOf(`
17
17
 
18
- `)===-1&&S.prevCapture.indexOf(`
18
+ `)===-1&&w.prevCapture.indexOf(`
19
19
 
20
- `)===-1)return null;let E="",R=0;for(;;){const k=v.indexOf(`
21
- `,R),U=v.slice(R,k===-1?void 0:k+1);if(c(a,U)||(E+=U,k===-1||!U.trim()))break;R=k+1}const T=Po(E);return T===""?null:[E,,T]}),i:3,u:kl,l:(v,S,E)=>f("p",{key:E.key},S(v.children,E))},22:{t:["["],o:Ln(RA),i:0,u:v=>(d[v[1]]={target:v[2],title:v[4]},{}),l:$l},23:{t:["!["],o:fn(PA),i:0,u:v=>({alt:v[1]?Er(v[1]):void 0,ref:v[2]}),l:(v,S,E)=>d[v.ref]?f("img",{key:E.key,alt:v.alt,src:i(d[v.ref].target,"img","src"),title:d[v.ref].title}):null},24:{t:v=>v[0]==="["&&v.indexOf("](")===-1,o:Ln(CA),i:0,u:(v,S,E)=>({children:S(v[1],E),fallbackChildren:v[0],ref:v[2]}),l:(v,S,E)=>d[v.ref]?f("a",{key:E.key,href:i(d[v.ref].target,"a","href"),title:d[v.ref].title},S(v.children,E)):f("span",{key:E.key},v.fallbackChildren)},25:{t:["|"],o:qr(Wh),i:1,u:rR,l(v,S,E){const R=v;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(T,k){return f("th",{key:k,style:Gh(R,k)},S(T,E))}))),f("tbody",null,R.cells.map(function(T,k){return f("tr",{key:k},T.map(function(U,D){return f("td",{key:D,style:Gh(R,D)},S(U,E))}))})))}},27:{o:Oi(function(v,S){let E;return fa(v,":")&&(E=BA.exec(v)),E||HA.exec(v)}),i:4,u(v){const S=v[0];return{text:S.indexOf("&")===-1?S:S.replace(xA,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:v=>v.text},28:{t:["**","__"],o:fn(NA),i:2,u:(v,S,E)=>({children:S(v[2],E)}),l:(v,S,E)=>f("strong",{key:E.key},S(v.children,E))},29:{t:v=>{const S=v[0];return(S==="*"||S==="_")&&v[1]!==S},o:fn(FA),i:3,u:(v,S,E)=>({children:S(v[2],E)}),l:(v,S,E)=>f("em",{key:E.key},S(v.children,E))},30:{t:["\\"],o:fn(UA),i:1,u:v=>({text:v[1],type:"27"})},31:{t:["=="],o:fn(jA),i:3,u:kl,l:(v,S,E)=>f("mark",{key:E.key},S(v.children,E))},32:{t:["~~"],o:fn(zA),i:3,u:kl,l:(v,S,E)=>f("del",{key:E.key},S(v.children,E))}};t.disableParsingRawHTML===!0&&(delete y[11],delete y[13]);const x=(function(v){var S=Object.keys(v);function E(R,T){var k=[];if(T.prevCapture=T.prevCapture||"",R.trim())for(;R;)for(var U=0;U<S.length;){var D=S[U],N=v[D];if(!N.t||eR(R,T,N.t)){var G=N.o(R,T);if(G&&G[0]){R=R.substring(G[0].length);var j=N.u(G,E,T);T.prevCapture+=G[0],j.type||(j.type=D),k.push(j);break}U++}else U++}return T.prevCapture="",k}return S.sort(function(R,T){return v[R].i-v[T].i||(R<T?-1:1)}),function(R,T){return E((function(k){return k.replace(gA,`
22
- `).replace(yA,"").replace(IA," ")})(R),T)}})(y),p=(function(v,S){return function E(R,T={}){if(Array.isArray(R)){const k=T.key,U=[];let D=!1;for(let N=0;N<R.length;N++){T.key=N;const G=E(R[N],T),j=qh(G);j&&D?U[U.length-1]+=G:G!==null&&U.push(G),D=j}return T.key=k,U}return(function(k,U,D){const N=v[k.type].l;return S?S(()=>N(k,U,D),k,U,D):N(k,U,D)})(R,E,T)}})(y,t.renderRule),w=m(e);return h.length?f("div",null,w,f("footer",{key:"footer"},h.map(function(v){return f("div",{id:r(v.identifier,Ki),key:v.identifier},v.identifier,p(x(v.footnote,{inline:!0})))}))):w}const xa=e=>{let{children:t="",options:r}=e,i=(function(s,a){if(s==null)return{};var u,c,f={},m=Object.keys(s);for(c=0;c<m.length;c++)a.indexOf(u=m[c])>=0||(f[u]=s[u]);return f})(e,iA);return I.cloneElement(uR(t,r),i)},Vh=({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 $.jsx(t,{className:je("flex-none size-6",r)});switch(e){case"error":case"danger":return $.jsx(Ke.FdSanityCheckInfo,{className:je("flex-none size-6",r)});case"info":return $.jsx($.Fragment,{children:$.jsx(Ke.FdInfoBold,{className:je("flex-none size-6",r)})});case"warning":return $.jsx($.Fragment,{children:$.jsx(Ke.FdWarningDanger,{className:je("flex-none size-6",r)})});case"message":return $.jsx($.Fragment,{children:$.jsx(Ke.FdInfoBold,{className:je("flex-none size-6",r)})});default:return null}},lR=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const u=({className:c}={})=>$.jsx("button",{onClick:t,className:je("flex justify-center p-1",c),children:$.jsx(Ke.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return $.jsx("div",{className:je("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?$.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[$.jsx("div",{className:"pt-1",children:$.jsx(Vh,{kind:r,customIcon:a})}),$.jsx("div",{className:"flex items-center gap-1 prose",children:s?$.jsx(xa,{children:i}):$.jsx($.Fragment,{children:i})}),u()]}):$.jsxs("div",{className:"flex items-start",children:[$.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>$.jsxs($.Fragment,{children:[c.title&&$.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[$.jsx(Vh,{kind:r,customIcon:a}),$.jsxs("span",{children:[c.title," :"]})]}),$.jsx("ul",{className:je("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>$.jsx("li",{children:s?$.jsx(xa,{children:f}):$.jsx($.Fragment,{children:f})}))})]}))}),u({className:"absolute top-1 right-1"})]})},e)},Tv=({children:e,size:t,className:r,...i})=>$.jsx("div",{style:{"--width":`${t||24}px`},className:je("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Ml={},Yi={},qs={},Kh;function Ov(){if(Kh)return qs;Kh=1,Object.defineProperty(qs,"__esModule",{value:!0}),qs.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 qs}var hi={},Xi={},Ji={},Yh;function cR(){if(Yh)return Ji;Yh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.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 Ji.default=e,Ji}var Xh;function Ba(){if(Xh)return Xi;Xh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var e=t(cR());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){return typeof s=="string"&&e.default.test(s)}var i=r;return Xi.default=i,Xi}var Jh;function Ua(){if(Jh)return hi;Jh=1,Object.defineProperty(hi,"__esModule",{value:!0}),hi.default=void 0,hi.unsafeStringify=i;var e=t(Ba());function t(u){return u&&u.__esModule?u:{default:u}}const r=[];for(let u=0;u<256;++u)r.push((u+256).toString(16).slice(1));function i(u,c=0){return r[u[c+0]]+r[u[c+1]]+r[u[c+2]]+r[u[c+3]]+"-"+r[u[c+4]]+r[u[c+5]]+"-"+r[u[c+6]]+r[u[c+7]]+"-"+r[u[c+8]]+r[u[c+9]]+"-"+r[u[c+10]]+r[u[c+11]]+r[u[c+12]]+r[u[c+13]]+r[u[c+14]]+r[u[c+15]]}function s(u,c=0){const f=i(u,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return hi.default=a,hi}var Qh;function fR(){if(Qh)return Yi;Qh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=r(Ov()),t=Ua();function r(m){return m&&m.__esModule?m:{default:m}}let i,s,a=0,u=0;function c(m,g,h){let d=g&&h||0;const y=g||new Array(16);m=m||{};let x=m.node||i,p=m.clockseq!==void 0?m.clockseq:s;if(x==null||p==null){const T=m.random||(m.rng||e.default)();x==null&&(x=i=[T[0]|1,T[1],T[2],T[3],T[4],T[5]]),p==null&&(p=s=(T[6]<<8|T[7])&16383)}let w=m.msecs!==void 0?m.msecs:Date.now(),v=m.nsecs!==void 0?m.nsecs:u+1;const S=w-a+(v-u)/1e4;if(S<0&&m.clockseq===void 0&&(p=p+1&16383),(S<0||w>a)&&m.nsecs===void 0&&(v=0),v>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,u=v,s=p,w+=122192928e5;const E=((w&268435455)*1e4+v)%4294967296;y[d++]=E>>>24&255,y[d++]=E>>>16&255,y[d++]=E>>>8&255,y[d++]=E&255;const R=w/4294967296*1e4&268435455;y[d++]=R>>>8&255,y[d++]=R&255,y[d++]=R>>>24&15|16,y[d++]=R>>>16&255,y[d++]=p>>>8|128,y[d++]=p&255;for(let T=0;T<6;++T)y[d+T]=x[T];return g||(0,t.unsafeStringify)(y)}var f=c;return Yi.default=f,Yi}var Qi={},dn={},eo={},eg;function Av(){if(eg)return eo;eg=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e=t(Ba());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");let a;const u=new Uint8Array(16);return u[0]=(a=parseInt(s.slice(0,8),16))>>>24,u[1]=a>>>16&255,u[2]=a>>>8&255,u[3]=a&255,u[4]=(a=parseInt(s.slice(9,13),16))>>>8,u[5]=a&255,u[6]=(a=parseInt(s.slice(14,18),16))>>>8,u[7]=a&255,u[8]=(a=parseInt(s.slice(19,23),16))>>>8,u[9]=a&255,u[10]=(a=parseInt(s.slice(24,36),16))/1099511627776&255,u[11]=a/4294967296&255,u[12]=a>>>24&255,u[13]=a>>>16&255,u[14]=a>>>8&255,u[15]=a&255,u}var i=r;return eo.default=i,eo}var tg;function Rv(){if(tg)return dn;tg=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.URL=dn.DNS=void 0,dn.default=u;var e=Ua(),t=r(Av());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let m=0;m<c.length;++m)f.push(c.charCodeAt(m));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";dn.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";dn.URL=a;function u(c,f,m){function g(h,d,y,x){var p;if(typeof h=="string"&&(h=i(h)),typeof d=="string"&&(d=(0,t.default)(d)),((p=d)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+h.length);if(w.set(d),w.set(h,d.length),w=m(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,y){x=x||0;for(let v=0;v<16;++v)y[x+v]=w[v];return y}return(0,e.unsafeStringify)(w)}try{g.name=c}catch{}return g.DNS=s,g.URL=a,g}return dn}var to={},rg;function dR(){if(rg)return to;rg=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;function e(y){if(typeof y=="string"){const x=unescape(encodeURIComponent(y));y=new Uint8Array(x.length);for(let p=0;p<x.length;++p)y[p]=x.charCodeAt(p)}return t(i(s(y),y.length*8))}function t(y){const x=[],p=y.length*32,w="0123456789abcdef";for(let v=0;v<p;v+=8){const S=y[v>>5]>>>v%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(y){return(y+64>>>9<<4)+14+1}function i(y,x){y[x>>5]|=128<<x%32,y[r(x)-1]=x;let p=1732584193,w=-271733879,v=-1732584194,S=271733878;for(let E=0;E<y.length;E+=16){const R=p,T=w,k=v,U=S;p=f(p,w,v,S,y[E],7,-680876936),S=f(S,p,w,v,y[E+1],12,-389564586),v=f(v,S,p,w,y[E+2],17,606105819),w=f(w,v,S,p,y[E+3],22,-1044525330),p=f(p,w,v,S,y[E+4],7,-176418897),S=f(S,p,w,v,y[E+5],12,1200080426),v=f(v,S,p,w,y[E+6],17,-1473231341),w=f(w,v,S,p,y[E+7],22,-45705983),p=f(p,w,v,S,y[E+8],7,1770035416),S=f(S,p,w,v,y[E+9],12,-1958414417),v=f(v,S,p,w,y[E+10],17,-42063),w=f(w,v,S,p,y[E+11],22,-1990404162),p=f(p,w,v,S,y[E+12],7,1804603682),S=f(S,p,w,v,y[E+13],12,-40341101),v=f(v,S,p,w,y[E+14],17,-1502002290),w=f(w,v,S,p,y[E+15],22,1236535329),p=m(p,w,v,S,y[E+1],5,-165796510),S=m(S,p,w,v,y[E+6],9,-1069501632),v=m(v,S,p,w,y[E+11],14,643717713),w=m(w,v,S,p,y[E],20,-373897302),p=m(p,w,v,S,y[E+5],5,-701558691),S=m(S,p,w,v,y[E+10],9,38016083),v=m(v,S,p,w,y[E+15],14,-660478335),w=m(w,v,S,p,y[E+4],20,-405537848),p=m(p,w,v,S,y[E+9],5,568446438),S=m(S,p,w,v,y[E+14],9,-1019803690),v=m(v,S,p,w,y[E+3],14,-187363961),w=m(w,v,S,p,y[E+8],20,1163531501),p=m(p,w,v,S,y[E+13],5,-1444681467),S=m(S,p,w,v,y[E+2],9,-51403784),v=m(v,S,p,w,y[E+7],14,1735328473),w=m(w,v,S,p,y[E+12],20,-1926607734),p=g(p,w,v,S,y[E+5],4,-378558),S=g(S,p,w,v,y[E+8],11,-2022574463),v=g(v,S,p,w,y[E+11],16,1839030562),w=g(w,v,S,p,y[E+14],23,-35309556),p=g(p,w,v,S,y[E+1],4,-1530992060),S=g(S,p,w,v,y[E+4],11,1272893353),v=g(v,S,p,w,y[E+7],16,-155497632),w=g(w,v,S,p,y[E+10],23,-1094730640),p=g(p,w,v,S,y[E+13],4,681279174),S=g(S,p,w,v,y[E],11,-358537222),v=g(v,S,p,w,y[E+3],16,-722521979),w=g(w,v,S,p,y[E+6],23,76029189),p=g(p,w,v,S,y[E+9],4,-640364487),S=g(S,p,w,v,y[E+12],11,-421815835),v=g(v,S,p,w,y[E+15],16,530742520),w=g(w,v,S,p,y[E+2],23,-995338651),p=h(p,w,v,S,y[E],6,-198630844),S=h(S,p,w,v,y[E+7],10,1126891415),v=h(v,S,p,w,y[E+14],15,-1416354905),w=h(w,v,S,p,y[E+5],21,-57434055),p=h(p,w,v,S,y[E+12],6,1700485571),S=h(S,p,w,v,y[E+3],10,-1894986606),v=h(v,S,p,w,y[E+10],15,-1051523),w=h(w,v,S,p,y[E+1],21,-2054922799),p=h(p,w,v,S,y[E+8],6,1873313359),S=h(S,p,w,v,y[E+15],10,-30611744),v=h(v,S,p,w,y[E+6],15,-1560198380),w=h(w,v,S,p,y[E+13],21,1309151649),p=h(p,w,v,S,y[E+4],6,-145523070),S=h(S,p,w,v,y[E+11],10,-1120210379),v=h(v,S,p,w,y[E+2],15,718787259),w=h(w,v,S,p,y[E+9],21,-343485551),p=a(p,R),w=a(w,T),v=a(v,k),S=a(S,U)}return[p,w,v,S]}function s(y){if(y.length===0)return[];const x=y.length*8,p=new Uint32Array(r(x));for(let w=0;w<x;w+=8)p[w>>5]|=(y[w/8]&255)<<w%32;return p}function a(y,x){const p=(y&65535)+(x&65535);return(y>>16)+(x>>16)+(p>>16)<<16|p&65535}function u(y,x){return y<<x|y>>>32-x}function c(y,x,p,w,v,S){return a(u(a(a(x,y),a(w,S)),v),p)}function f(y,x,p,w,v,S,E){return c(x&p|~x&w,y,x,v,S,E)}function m(y,x,p,w,v,S,E){return c(x&w|p&~w,y,x,v,S,E)}function g(y,x,p,w,v,S,E){return c(x^p^w,y,x,v,S,E)}function h(y,x,p,w,v,S,E){return c(p^(x|~w),y,x,v,S,E)}var d=e;return to.default=d,to}var ng;function pR(){if(ng)return Qi;ng=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;var e=r(Rv()),t=r(dR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Qi.default=s,Qi}var ro={},no={},ig;function hR(){if(ig)return no;ig=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return no.default=t,no}var og;function gR(){if(og)return ro;og=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=i(hR()),t=i(Ov()),r=Ua();function i(u){return u&&u.__esModule?u:{default:u}}function s(u,c,f){if(e.default.randomUUID&&!c&&!u)return e.default.randomUUID();u=u||{};const m=u.random||(u.rng||t.default)();if(m[6]=m[6]&15|64,m[8]=m[8]&63|128,c){f=f||0;for(let g=0;g<16;++g)c[f+g]=m[g];return c}return(0,r.unsafeStringify)(m)}var a=s;return ro.default=a,ro}var io={},oo={},sg;function mR(){if(sg)return oo;sg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0;function e(s,a,u,c){switch(s){case 0:return a&u^~a&c;case 1:return a^u^c;case 2:return a&u^a&c^u&c;case 3:return a^u^c}}function t(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],u=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const g=unescape(encodeURIComponent(s));s=[];for(let h=0;h<g.length;++h)s.push(g.charCodeAt(h))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),m=new Array(f);for(let g=0;g<f;++g){const h=new Uint32Array(16);for(let d=0;d<16;++d)h[d]=s[g*64+d*4]<<24|s[g*64+d*4+1]<<16|s[g*64+d*4+2]<<8|s[g*64+d*4+3];m[g]=h}m[f-1][14]=(s.length-1)*8/Math.pow(2,32),m[f-1][14]=Math.floor(m[f-1][14]),m[f-1][15]=(s.length-1)*8&4294967295;for(let g=0;g<f;++g){const h=new Uint32Array(80);for(let v=0;v<16;++v)h[v]=m[g][v];for(let v=16;v<80;++v)h[v]=t(h[v-3]^h[v-8]^h[v-14]^h[v-16],1);let d=u[0],y=u[1],x=u[2],p=u[3],w=u[4];for(let v=0;v<80;++v){const S=Math.floor(v/20),E=t(d,5)+e(S,y,x,p)+w+a[S]+h[v]>>>0;w=p,p=x,x=t(y,30)>>>0,y=d,d=E}u[0]=u[0]+d>>>0,u[1]=u[1]+y>>>0,u[2]=u[2]+x>>>0,u[3]=u[3]+p>>>0,u[4]=u[4]+w>>>0}return[u[0]>>24&255,u[0]>>16&255,u[0]>>8&255,u[0]&255,u[1]>>24&255,u[1]>>16&255,u[1]>>8&255,u[1]&255,u[2]>>24&255,u[2]>>16&255,u[2]>>8&255,u[2]&255,u[3]>>24&255,u[3]>>16&255,u[3]>>8&255,u[3]&255,u[4]>>24&255,u[4]>>16&255,u[4]>>8&255,u[4]&255]}var i=r;return oo.default=i,oo}var ag;function vR(){if(ag)return io;ag=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=r(Rv()),t=r(mR());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return io.default=s,io}var so={},ug;function yR(){if(ug)return so;ug=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e="00000000-0000-0000-0000-000000000000";return so.default=e,so}var ao={},lg;function bR(){if(lg)return ao;lg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=t(Ba());function t(s){return s&&s.__esModule?s:{default:s}}function r(s){if(!(0,e.default)(s))throw TypeError("Invalid UUID");return parseInt(s.slice(14,15),16)}var i=r;return ao.default=i,ao}var cg;function wR(){return cg||(cg=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return f.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 i.default}}),Object.defineProperty(e,"v5",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"validate",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"version",{enumerable:!0,get:function(){return u.default}});var t=g(fR()),r=g(pR()),i=g(gR()),s=g(vR()),a=g(yR()),u=g(bR()),c=g(Ba()),f=g(Ua()),m=g(Av());function g(h){return h&&h.__esModule?h:{default:h}}})(Ml)),Ml}var Dl,fg;function xR(){if(fg)return Dl;fg=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,i,s,a={},u=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,m=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<f;r++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(i=0,s=0,r=0;r<f;r++)i=i*u+a[r],i>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,m=this.dstAlphabet.slice(i,i+1).concat(m)}while(s!==0);return m},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Dl=e,Dl}var Nl,dg;function SR(){if(dg)return Nl;dg=1;var e=xR();function t(r,i){var s=new e(r,i);return function(a){return s.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",Nl=t,Nl}var Fl,pg;function ER(){if(pg)return Fl;pg=1;const{v4:e,validate:t}=wR(),r=SR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const u=(m,g,h)=>{const d=g(m.toLowerCase().replace(/-/g,""));return!h||!h.consistentLength?d:d.padStart(h.shortIdLength,h.paddingChar)},c=(m,g)=>{const d=g(m).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[d[1],d[2],d[3],d[4],d[5]].join("-")},f=m=>Math.ceil(Math.log(2**128)/Math.log(m));return Fl=(()=>{const m=(g,h)=>{const d=g||i.flickrBase58,y={...s,...h};if([...new Set(Array.from(d))].length!==d.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(d.length),p={shortIdLength:x,consistentLength:y.consistentLength,paddingChar:d[0]},w=r(r.HEX,d),v=r(d,r.HEX),S=()=>u(e(),w,p),R={alphabet:d,fromUUID:T=>u(T,w,p),maxLength:x,generate:S,new:S,toUUID:T=>c(T,v),uuid:e,validate:(T,k=!1)=>{if(!T||typeof T!="string")return!1;const U=y.consistentLength?T.length===x:T.length<=x,D=T.split("").every(N=>d.includes(N));return k===!1?U&&D:U&&D&&t(c(T,v))}};return Object.freeze(R),R};return m.constants=i,m.uuid=e,m.generate=()=>(a||(a=m(i.flickrBase58).generate),a()),m})(),Fl}var Zn=ER();const Pv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Zn.generate()}`;return $.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[$.jsx("defs",{children:$.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:$.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?$.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):$.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},Cv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?$.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return $.jsx(Ke.FdDown,{className:je(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?$.jsx(Ke.FdDown,{}):$.jsx(Ke.FdRight,{});default:return $.jsx(Ke.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):$.jsx("div",{className:"flex h-6 w-3 items-center"}),ef=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:u,onNodeClick:c})=>{var y;const{key:f,children:m}=e,g=z.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),h=u&&typeof u=="function"?u(e,t,g,s,a):OR(e,t,g,c);return!((y=e.options)!=null&&y.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?$.jsxs($.Fragment,{children:[$.jsx("div",{className:"flex items-center space-x-2",children:h},f),TR(m||[],t,a,r,i,g.expanded,s,c,u)]}):null},_R=function(e,t){var u;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=$.jsx(Tv,{children:i})),$.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(u=e.options)==null?void 0:u.draggable,onClick:()=>{t&&t(e)},children:[a,$.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&$.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},TR=function(e,t,r,i,s,a,u,c,f){var m,g;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((m=e[0].data)==null?void 0:m.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((h,d)=>y0(h.title,d.title))).map(h=>$.jsx(ef,{actions:u,node:h,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},h.key)):null},OR=function(e,t,r,i){return $.jsxs($.Fragment,{children:[$.jsx(Pv,{showLines:!0,depth:t}),$.jsx(Cv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),_R(e,i)]})},Zs=e=>t=>e===t,AR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:u,expandCondition:c="always",encapsulated:f,className:m}){const[g,h]=z.useState(()=>({expandedKeys:u||[],selectedKeys:[]}));z.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||h({...g,expandedKeys:u||g.expandedKeys})},[u]);const d=z.useCallback(v=>{if(!v)return;const S=g.expandedKeys.findIndex(Zs(v.key));let E=[];S===-1?(E=[...g.expandedKeys,v.key],h(()=>({...g,expandedKeys:E})),s&&s(E)):(E=g.expandedKeys.filter(R=>R!==v.key),h(()=>({...g,expandedKeys:E})),s&&s(E))},[g]),y=z.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;g.selectedKeys.findIndex(Zs(v.key))===-1&&h({...g,selectedKeys:[...g.selectedKeys,v.key]})},[g]),x=z.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable))return;g.selectedKeys.findIndex(Zs(v.key))===-1&&h({...g,selectedKeys:[v.key]})},[g]),p=z.useCallback(v=>{var E;if(!((E=v==null?void 0:v.options)!=null&&E.selectable)){h({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(Zs(v.key))!==-1&&h({...g,selectedKeys:g.selectedKeys.filter(R=>R!==v.key)})},[g]),w=z.useMemo(()=>({expand:d,select:y,selectSingle:x,deselect:p}),[p,d,y,x]);return $.jsx("div",{className:je("fd-tree",m,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(v=>$.jsx(ef,{node:v,searchQuery:a||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:w,renderNode:r,onNodeClick:i},v.key))})};function pa(e){return e.of&&e.children?$.jsx($.Fragment,{children:e.children}):null}function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},et.apply(null,arguments)}function RR(e){for(var t=0,r,i=0,s=e.length;s>=4;++i,s-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&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(s){case 3:t^=(e.charCodeAt(i+2)&255)<<16;case 2:t^=(e.charCodeAt(i+1)&255)<<8;case 1:t^=e.charCodeAt(i)&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 PR={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 kv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var CR=/[A-Z]|^ms/g,kR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Iv=function(t){return t.charCodeAt(1)===45},hg=function(t){return t!=null&&typeof t!="boolean"},jl=kv(function(e){return Iv(e)?e:e.replace(CR,"-$&").toLowerCase()}),gg=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(kR,function(i,s,a){return Ar={name:s,styles:a,next:Ar},s})}return PR[t]!==1&&!Iv(t)&&typeof r=="number"&&r!==0?r+"px":r};function Lo(e,t,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var s=r;if(s.anim===1)return Ar={name:s.name,styles:s.styles,next:Ar},s.name;var a=r;if(a.styles!==void 0){var u=a.next;if(u!==void 0)for(;u!==void 0;)Ar={name:u.name,styles:u.styles,next:Ar},u=u.next;var c=a.styles+";";return c}return IR(e,t,r)}case"function":{if(e!==void 0){var f=Ar,m=r(e);return Ar=f,Lo(e,t,m)}break}}var g=r;if(t==null)return g;var h=t[g];return h!==void 0?h:g}function IR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=Lo(e,t,r[s])+";";else for(var a in r){var u=r[a];if(typeof u!="object"){var c=u;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":hg(c)&&(i+=jl(a)+":"+gg(a,c)+";")}else if(Array.isArray(u)&&typeof u[0]=="string"&&(t==null||t[u[0]]===void 0))for(var f=0;f<u.length;f++)hg(u[f])&&(i+=jl(a)+":"+gg(a,u[f])+";");else{var m=Lo(e,t,u);switch(a){case"animation":case"animationName":{i+=jl(a)+":"+m+";";break}default:i+=a+"{"+m+"}"}}}return i}var mg=/label:\s*([^\s;{]+)\s*(;|$)/g,Ar;function $R(e,t,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,s="";Ar=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Lo(r,t,a);else{var u=a;s+=u[0]}for(var c=1;c<e.length;c++)if(s+=Lo(r,t,e[c]),i){var f=a;s+=f[c]}mg.lastIndex=0;for(var m="",g;(g=mg.exec(s))!==null;)m+="-"+g[1];var h=RR(s)+m;return{name:h,styles:s,next:Ar}}var LR=function(t){return t()},MR=I.useInsertionEffect?I.useInsertionEffect:!1,DR=MR||LR,NR=!0;function FR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var $v=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||NR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},jR=function(t,r,i){$v(t,r,i);var s=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},zR=/^((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)-.*))$/,BR=kv(function(e){return zR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),UR=BR,WR=function(t){return t!=="theme"},vg=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?UR:WR},yg=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(u){return t.__emotion_forwardProp(u)&&a(u)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},HR=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return $v(r,i,s),DR(function(){return jR(r,i,s)}),null},qR=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,u;r!==void 0&&(a=r.label,u=r.target);var c=yg(t,r,i),f=c||vg(s),m=!f("as");return function(){var g=arguments,h=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&h.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)h.push.apply(h,g);else{var d=g[0];h.push(d[0]);for(var y=g.length,x=1;x<y;x++)h.push(g[x],d[x])}var p=vc.withEmotionCache(function(w,v,S){var E=m&&w.as||s,R="",T=[],k=w;if(w.theme==null){k={};for(var U in w)k[U]=w[U];k.theme=I.useContext(vc.ThemeContext)}typeof w.className=="string"?R=FR(v.registered,T,w.className):w.className!=null&&(R=w.className+" ");var D=$R(h.concat(T),v.registered,k);R+=v.key+"-"+D.name,u!==void 0&&(R+=" "+u);var N=m&&c===void 0?vg(E):f,G={};for(var j in w)m&&j==="as"||N(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),I.createElement(I.Fragment,null,I.createElement(HR,{cache:v,serialized:D,isStringTag:typeof E=="string"}),I.createElement(E,G))});return p.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",p.defaultProps=t.defaultProps,p.__emotion_real=p,p.__emotion_base=s,p.__emotion_styles=h,p.__emotion_forwardProp=c,Object.defineProperty(p,"toString",{value:function(){return"."+u}}),p.withComponent=function(w,v){var S=e(w,et({},r,v,{shouldForwardProp:yg(p,v,!0)}));return S.apply(void 0,h)},p}},ZR=["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"],Sa=qR.bind(null);ZR.forEach(function(e){Sa[e]=Sa(e)});var GR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},gi=new WeakMap,Gs=new WeakMap,Vs={},zl=0,Lv=function(e){return e&&(e.host||Lv(e.parentNode))},VR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=Lv(r);return i&&e.contains(i)?i:(console.error("aria-hidden",r,"in not contained inside",e,". Doing nothing"),null)}).filter(function(r){return!!r})},KR=function(e,t,r,i){var s=VR(t,Array.isArray(e)?e:[e]);Vs[r]||(Vs[r]=new WeakMap);var a=Vs[r],u=[],c=new Set,f=new Set(s),m=function(h){!h||c.has(h)||(c.add(h),m(h.parentNode))};s.forEach(m);var g=function(h){!h||f.has(h)||Array.prototype.forEach.call(h.children,function(d){if(c.has(d))g(d);else try{var y=d.getAttribute(i),x=y!==null&&y!=="false",p=(gi.get(d)||0)+1,w=(a.get(d)||0)+1;gi.set(d,p),a.set(d,w),u.push(d),p===1&&x&&Gs.set(d,!0),w===1&&d.setAttribute(r,"true"),x||d.setAttribute(i,"true")}catch(v){console.error("aria-hidden: cannot operate on ",d,v)}})};return g(t),c.clear(),zl++,function(){u.forEach(function(h){var d=gi.get(h)-1,y=a.get(h)-1;gi.set(h,d),a.set(h,y),d||(Gs.has(h)||h.removeAttribute(i),Gs.delete(h)),y||h.removeAttribute(r)}),zl--,zl||(gi=new WeakMap,gi=new WeakMap,Gs=new WeakMap,Vs={})}},YR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=GR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),KR(i,s,r,"aria-hidden")):function(){return null}},wc=function(e,t){return wc=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var s in i)Object.prototype.hasOwnProperty.call(i,s)&&(r[s]=i[s])},wc(e,t)};function Wa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");wc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Rr=function(){return Rr=Object.assign||function(t){for(var r,i=1,s=arguments.length;i<s;i++){r=arguments[i];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},Rr.apply(this,arguments)};function Mv(e,t){var r={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,i=Object.getOwnPropertySymbols(e);s<i.length;s++)t.indexOf(i[s])<0&&Object.prototype.propertyIsEnumerable.call(e,i[s])&&(r[i[s]]=e[i[s]]);return r}function xc(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],i=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&i>=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Sc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],u;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){u={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(u)throw u.error}}return a}function Ea(e,t,r){if(r||arguments.length===2)for(var i=0,s=t.length,a;i<s;i++)(a||!(i in t))&&(a||(a=Array.prototype.slice.call(t,0,i)),a[i]=t[i]);return e.concat(a||Array.prototype.slice.call(t))}var ha="right-scroll-bar-position",ga="width-before-scroll-bar",XR="with-scroll-bars-hidden",JR="--removed-body-scroll-bar-size";function Bl(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function QR(e,t){var r=z.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(i){var s=r.value;s!==i&&(r.value=i,r.callback(i,s))}}}})[0];return r.callback=t,r.facade}var eP=typeof window<"u"?I.useLayoutEffect:I.useEffect,bg=new WeakMap;function tP(e,t){var r=QR(null,function(i){return e.forEach(function(s){return Bl(s,i)})});return eP(function(){var i=bg.get(r);if(i){var s=new Set(i),a=new Set(e),u=r.current;s.forEach(function(c){a.has(c)||Bl(c,null)}),a.forEach(function(c){s.has(c)||Bl(c,u)})}bg.set(r,e)},[e]),r}function rP(e){return e}function nP(e,t){t===void 0&&(t=rP);var r=[],i=!1,s={read:function(){if(i)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(a){var u=t(a,i);return r.push(u),function(){r=r.filter(function(c){return c!==u})}},assignSyncMedium:function(a){for(i=!0;r.length;){var u=r;r=[],u.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var u=[];if(r.length){var c=r;r=[],c.forEach(a),u=r}var f=function(){var g=u;u=[],g.forEach(a)},m=function(){return Promise.resolve().then(f)};m(),r={push:function(g){u.push(g),m()},filter:function(g){return u=u.filter(g),r}}}};return s}function iP(e){e===void 0&&(e={});var t=nP(null);return t.options=Rr({async:!0,ssr:!1},e),t}var Dv=function(e){var t=e.sideCar,r=Mv(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw new Error("Sidecar medium not found");return I.createElement(i,Rr({},r))};Dv.isSideCarExport=!0;function oP(e,t){return e.useMedium(t),Dv}var Nv=iP(),Ul=function(){},Ha=I.forwardRef(function(e,t){var r=I.useRef(null),i=I.useState({onScrollCapture:Ul,onWheelCapture:Ul,onTouchMoveCapture:Ul}),s=i[0],a=i[1],u=e.forwardProps,c=e.children,f=e.className,m=e.removeScrollBar,g=e.enabled,h=e.shards,d=e.sideCar,y=e.noRelative,x=e.noIsolation,p=e.inert,w=e.allowPinchZoom,v=e.as,S=v===void 0?"div":v,E=e.gapMode,R=Mv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),T=d,k=tP([r,t]),U=Rr(Rr({},R),s);return I.createElement(I.Fragment,null,g&&I.createElement(T,{sideCar:Nv,removeScrollBar:m,shards:h,noRelative:y,noIsolation:x,inert:p,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),u?I.cloneElement(I.Children.only(c),Rr(Rr({},U),{ref:k})):I.createElement(S,Rr({},U,{className:f,ref:k}),c))});Ha.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ha.classNames={fullWidth:ga,zeroRight:ha};var sP=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function aP(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=sP();return t&&e.setAttribute("nonce",t),e}function uP(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function lP(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var cP=function(){var e=0,t=null;return{add:function(r){e==0&&(t=aP())&&(uP(t,r),lP(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},fP=function(){var e=cP();return function(t,r){I.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Fv=function(){var e=fP(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},dP={left:0,top:0,right:0,gap:0},Wl=function(e){return parseInt(e||"",10)||0},pP=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],i=t[e==="padding"?"paddingTop":"marginTop"],s=t[e==="padding"?"paddingRight":"marginRight"];return[Wl(r),Wl(i),Wl(s)]},hP=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return dP;var t=pP(e),r=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-r+t[2]-t[0])}},gP=Fv(),bi="data-scroll-locked",mP=function(e,t,r,i){var s=e.left,a=e.top,u=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(XR,` {
24
- overflow: hidden `).concat(i,`;
25
- padding-right: `).concat(c,"px ").concat(i,`;
20
+ `)===-1)return null;let x="",k=0;for(;;){const R=m.indexOf(`
21
+ `,k),F=m.slice(k,R===-1?void 0:R+1);if(c(a,F)||(x+=F,R===-1||!F.trim()))break;k=R+1}const E=Ua(x);return E===""?null:[x,,E]}),i:3,u:fd,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:ki(GP),i:0,u:m=>(h[m[1]]={target:m[2],title:m[4]},{}),l:hd},23:{t:["!["],o:Kn(KP),i:0,u:m=>({alt:m[1]?tn(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:ki(ZP),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:Tn(rm),i:1,u:xI,l(m,w,x){const k=m;return u("table",{key:x.key},u("thead",null,u("tr",null,k.header.map(function(E,R){return u("th",{key:R,style:am(k,R)},w(E,x))}))),u("tbody",null,k.cells.map(function(E,R){return u("tr",{key:R},E.map(function(F,P){return u("td",{key:P,style:am(k,P)},w(F,x))}))})))}},27:{o:Ro(function(m,w){let x;return Wl(m,":")&&(x=aI.exec(m)),x||cI.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(FP,(x,k)=>t.namedCodesToUnicode[k]||x)}},l:m=>m.text},28:{t:["**","__"],o:Kn(rI),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:Kn(nI),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:Kn(sI),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:Kn(iI),i:3,u:fd,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:Kn(oI),i:3,u:fd,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(k,E){var R=[];if(E.prevCapture=E.prevCapture||"",k.trim())for(;k;)for(var F=0;F<w.length;){var P=w[F],$=m[P];if(!$.t||yI(k,E,$.t)){var V=$.o(k,E);if(V&&V[0]){k=k.substring(V[0].length);var z=$.u(V,x,E);E.prevCapture+=V[0],z.type||(z.type=P),R.push(z);break}F++}else F++}return E.prevCapture="",R}return w.sort(function(k,E){return m[k].i-m[E].i||(k<E?-1:1)}),function(k,E){return x((function(R){return R.replace(DP,`
22
+ `).replace($P,"").replace(XP," ")})(k),E)}})(b),v=(function(m,w){return function x(k,E={}){if(Array.isArray(k)){const R=E.key,F=[];let P=!1;for(let $=0;$<k.length;$++){E.key=$;const V=x(k[$],E),z=im(V);z&&P?F[F.length-1]+=V:V!==null&&F.push(V),P=z}return E.key=R,F}return(function(R,F,P){const $=m[R.type].l;return w?w(()=>$(R,F,P),R,F,P):$(R,F,P)})(k,x,E)}})(b,t.renderRule),y=p(e);return f.length?u("div",null,y,u("footer",{key:"footer"},f.map(function(m){return u("div",{id:r(m.identifier,oa),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):y}const sc=e=>{let{children:t="",options:r}=e,n=(function(o,a){if(o==null)return{};var l,c,u={},p=Object.keys(o);for(c=0;c<p.length;c++)a.indexOf(l=p[c])>=0||(u[l]=o[l]);return u})(e,_P);return B.cloneElement(TI(t,r),n)},sm=({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 T.jsx(t,{className:at("flex-none size-6",r)});switch(e){case"error":case"danger":return T.jsx(ht.FdSanityCheckInfo,{className:at("flex-none size-6",r)});case"info":return T.jsx(T.Fragment,{children:T.jsx(ht.FdInfoBold,{className:at("flex-none size-6",r)})});case"warning":return T.jsx(T.Fragment,{children:T.jsx(ht.FdWarningDanger,{className:at("flex-none size-6",r)})});case"message":return T.jsx(T.Fragment,{children:T.jsx(ht.FdInfoBold,{className:at("flex-none size-6",r)})});default:return null}},D0=({id:e,onClose:t,kind:r,message:n,markdown:o,customIcon:a})=>{const l=({className:c}={})=>T.jsx("button",{onClick:t,className:at("flex justify-center p-1",c),children:T.jsx(ht.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return T.jsx("div",{className:at("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?T.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[T.jsx("div",{className:"pt-1",children:T.jsx(sm,{kind:r,customIcon:a})}),T.jsx("div",{className:"flex items-center gap-1 prose",children:o?T.jsx(sc,{children:n}):T.jsx(T.Fragment,{children:n})}),l()]}):T.jsxs("div",{className:"flex items-start",children:[T.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>T.jsxs(T.Fragment,{children:[c.title&&T.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[T.jsx(sm,{kind:r,customIcon:a}),T.jsxs("span",{children:[c.title," :"]})]}),T.jsx("ul",{className:at("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>T.jsx("li",{children:o?T.jsx(sc,{children:u}):T.jsx(T.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},M0=({children:e,size:t,className:r,...n})=>T.jsx("div",{style:{"--width":`${t||24}px`},className:at("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var vd={},aa={},ul={},lm;function L0(){if(lm)return ul;lm=1,Object.defineProperty(ul,"__esModule",{value:!0}),ul.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 ul}var so={},sa={},la={},cm;function AI(){if(cm)return la;cm=1,Object.defineProperty(la,"__esModule",{value:!0}),la.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 la.default=e,la}var um;function Cc(){if(um)return sa;um=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.default=void 0;var e=t(AI());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){return typeof o=="string"&&e.default.test(o)}var n=r;return sa.default=n,sa}var dm;function Pc(){if(dm)return so;dm=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0,so.unsafeStringify=n;var e=t(Cc());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 o(l,c=0){const u=n(l,c);if(!(0,e.default)(u))throw TypeError("Stringified UUID is invalid");return u}var a=o;return so.default=a,so}var fm;function RI(){if(fm)return aa;fm=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.default=void 0;var e=r(L0()),t=Pc();function r(p){return p&&p.__esModule?p:{default:p}}let n,o,a=0,l=0;function c(p,g,f){let h=g&&f||0;const b=g||new Array(16);p=p||{};let S=p.node||n,v=p.clockseq!==void 0?p.clockseq:o;if(S==null||v==null){const E=p.random||(p.rng||e.default)();S==null&&(S=n=[E[0]|1,E[1],E[2],E[3],E[4],E[5]]),v==null&&(v=o=(E[6]<<8|E[7])&16383)}let y=p.msecs!==void 0?p.msecs:Date.now(),m=p.nsecs!==void 0?p.nsecs:l+1;const w=y-a+(m-l)/1e4;if(w<0&&p.clockseq===void 0&&(v=v+1&16383),(w<0||y>a)&&p.nsecs===void 0&&(m=0),m>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=y,l=m,o=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 k=y/4294967296*1e4&268435455;b[h++]=k>>>8&255,b[h++]=k&255,b[h++]=k>>>24&15|16,b[h++]=k>>>16&255,b[h++]=v>>>8|128,b[h++]=v&255;for(let E=0;E<6;++E)b[h+E]=S[E];return g||(0,t.unsafeStringify)(b)}var u=c;return aa.default=u,aa}var ca={},Zn={},ua={},pm;function $0(){if(pm)return ua;pm=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.default=void 0;var e=t(Cc());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");let a;const l=new Uint8Array(16);return l[0]=(a=parseInt(o.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(o.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(o.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(o.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(o.slice(24,36),16))/1099511627776&255,l[11]=a/4294967296&255,l[12]=a>>>24&255,l[13]=a>>>16&255,l[14]=a>>>8&255,l[15]=a&255,l}var n=r;return ua.default=n,ua}var hm;function z0(){if(hm)return Zn;hm=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.URL=Zn.DNS=void 0,Zn.default=l;var e=Pc(),t=r($0());function r(c){return c&&c.__esModule?c:{default:c}}function n(c){c=unescape(encodeURIComponent(c));const u=[];for(let p=0;p<c.length;++p)u.push(c.charCodeAt(p));return u}const o="6ba7b810-9dad-11d1-80b4-00c04fd430c8";Zn.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Zn.URL=a;function l(c,u,p){function g(f,h,b,S){var v;if(typeof f=="string"&&(f=n(f)),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+f.length);if(y.set(h),y.set(f,h.length),y=p(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=o,g.URL=a,g}return Zn}var da={},gm;function CI(){if(gm)return da;gm=1,Object.defineProperty(da,"__esModule",{value:!0}),da.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(o(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 k=v,E=y,R=m,F=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=p(v,y,m,w,b[x+1],5,-165796510),w=p(w,v,y,m,b[x+6],9,-1069501632),m=p(m,w,v,y,b[x+11],14,643717713),y=p(y,m,w,v,b[x],20,-373897302),v=p(v,y,m,w,b[x+5],5,-701558691),w=p(w,v,y,m,b[x+10],9,38016083),m=p(m,w,v,y,b[x+15],14,-660478335),y=p(y,m,w,v,b[x+4],20,-405537848),v=p(v,y,m,w,b[x+9],5,568446438),w=p(w,v,y,m,b[x+14],9,-1019803690),m=p(m,w,v,y,b[x+3],14,-187363961),y=p(y,m,w,v,b[x+8],20,1163531501),v=p(v,y,m,w,b[x+13],5,-1444681467),w=p(w,v,y,m,b[x+2],9,-51403784),m=p(m,w,v,y,b[x+7],14,1735328473),y=p(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=f(v,y,m,w,b[x],6,-198630844),w=f(w,v,y,m,b[x+7],10,1126891415),m=f(m,w,v,y,b[x+14],15,-1416354905),y=f(y,m,w,v,b[x+5],21,-57434055),v=f(v,y,m,w,b[x+12],6,1700485571),w=f(w,v,y,m,b[x+3],10,-1894986606),m=f(m,w,v,y,b[x+10],15,-1051523),y=f(y,m,w,v,b[x+1],21,-2054922799),v=f(v,y,m,w,b[x+8],6,1873313359),w=f(w,v,y,m,b[x+15],10,-30611744),m=f(m,w,v,y,b[x+6],15,-1560198380),y=f(y,m,w,v,b[x+13],21,1309151649),v=f(v,y,m,w,b[x+4],6,-145523070),w=f(w,v,y,m,b[x+11],10,-1120210379),m=f(m,w,v,y,b[x+2],15,718787259),y=f(y,m,w,v,b[x+9],21,-343485551),v=a(v,k),y=a(y,E),m=a(m,R),w=a(w,F)}return[v,y,m,w]}function o(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 a(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 a(l(a(a(S,b),a(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 p(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 f(b,S,v,y,m,w,x){return c(v^(S|~y),b,S,m,w,x)}var h=e;return da.default=h,da}var vm;function PI(){if(vm)return ca;vm=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.default=void 0;var e=r(z0()),t=r(CI());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v3",48,t.default);return ca.default=o,ca}var fa={},pa={},mm;function II(){if(mm)return pa;mm=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return pa.default=t,pa}var bm;function NI(){if(bm)return fa;bm=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=void 0;var e=n(II()),t=n(L0()),r=Pc();function n(l){return l&&l.__esModule?l:{default:l}}function o(l,c,u){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const p=l.random||(l.rng||t.default)();if(p[6]=p[6]&15|64,p[8]=p[8]&63|128,c){u=u||0;for(let g=0;g<16;++g)c[u+g]=p[g];return c}return(0,r.unsafeStringify)(p)}var a=o;return fa.default=a,fa}var ha={},ga={},ym;function DI(){if(ym)return ga;ym=1,Object.defineProperty(ga,"__esModule",{value:!0}),ga.default=void 0;function e(o,a,l,c){switch(o){case 0:return a&l^~a&c;case 1:return a^l^c;case 2:return a&l^a&c^l&c;case 3:return a^l^c}}function t(o,a){return o<<a|o>>>32-a}function r(o){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof o=="string"){const g=unescape(encodeURIComponent(o));o=[];for(let f=0;f<g.length;++f)o.push(g.charCodeAt(f))}else Array.isArray(o)||(o=Array.prototype.slice.call(o));o.push(128);const c=o.length/4+2,u=Math.ceil(c/16),p=new Array(u);for(let g=0;g<u;++g){const f=new Uint32Array(16);for(let h=0;h<16;++h)f[h]=o[g*64+h*4]<<24|o[g*64+h*4+1]<<16|o[g*64+h*4+2]<<8|o[g*64+h*4+3];p[g]=f}p[u-1][14]=(o.length-1)*8/Math.pow(2,32),p[u-1][14]=Math.floor(p[u-1][14]),p[u-1][15]=(o.length-1)*8&4294967295;for(let g=0;g<u;++g){const f=new Uint32Array(80);for(let m=0;m<16;++m)f[m]=p[g][m];for(let m=16;m<80;++m)f[m]=t(f[m-3]^f[m-8]^f[m-14]^f[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+a[w]+f[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 ga.default=n,ga}var wm;function MI(){if(wm)return ha;wm=1,Object.defineProperty(ha,"__esModule",{value:!0}),ha.default=void 0;var e=r(z0()),t=r(DI());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v5",80,t.default);return ha.default=o,ha}var va={},xm;function LI(){if(xm)return va;xm=1,Object.defineProperty(va,"__esModule",{value:!0}),va.default=void 0;var e="00000000-0000-0000-0000-000000000000";return va.default=e,va}var ma={},Sm;function $I(){if(Sm)return ma;Sm=1,Object.defineProperty(ma,"__esModule",{value:!0}),ma.default=void 0;var e=t(Cc());function t(o){return o&&o.__esModule?o:{default:o}}function r(o){if(!(0,e.default)(o))throw TypeError("Invalid UUID");return parseInt(o.slice(14,15),16)}var n=r;return ma.default=n,ma}var _m;function zI(){return _m||(_m=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"NIL",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"parse",{enumerable:!0,get:function(){return p.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 o.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(RI()),r=g(PI()),n=g(NI()),o=g(MI()),a=g(LI()),l=g($I()),c=g(Cc()),u=g(Pc()),p=g($0());function g(f){return f&&f.__esModule?f:{default:f}}})(vd)),vd}var md,Em;function jI(){if(Em)return md;Em=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,o,a={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,u=t.length,p=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++)a[r]=this.srcAlphabet.indexOf(t[r]);do{for(n=0,o=0,r=0;r<u;r++)n=n*l+a[r],n>=c?(a[o++]=parseInt(n/c,10),n=n%c):o>0&&(a[o++]=0);u=o,p=this.dstAlphabet.slice(n,n+1).concat(p)}while(o!==0);return p},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},md=e,md}var bd,km;function FI(){if(km)return bd;km=1;var e=jI();function t(r,n){var o=new e(r,n);return function(a){return o.convert(a)}}return t.BIN="01",t.OCT="01234567",t.DEC="0123456789",t.HEX="0123456789abcdef",bd=t,bd}var yd,Om;function HI(){if(Om)return yd;Om=1;const{v4:e,validate:t}=zI(),r=FI(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},o={consistentLength:!0};let a;const l=(p,g,f)=>{const h=g(p.toLowerCase().replace(/-/g,""));return!f||!f.consistentLength?h:h.padStart(f.shortIdLength,f.paddingChar)},c=(p,g)=>{const h=g(p).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=p=>Math.ceil(Math.log(2**128)/Math.log(p));return yd=(()=>{const p=(g,f)=>{const h=g||n.flickrBase58,b={...o,...f};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),k={alphabet:h,fromUUID:E=>l(E,y,v),maxLength:S,generate:w,new:w,toUUID:E=>c(E,m),uuid:e,validate:(E,R=!1)=>{if(!E||typeof E!="string")return!1;const F=b.consistentLength?E.length===S:E.length<=S,P=E.split("").every($=>h.includes($));return R===!1?F&&P:F&&P&&t(c(E,m))}};return Object.freeze(k),k};return p.constants=n,p.uuid=e,p.generate=()=>(a||(a=p(n.flickrBase58).generate),a()),p})(),yd}var ai=HI();const j0=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:o})=>{const a=`indent_line_${ai.generate()}`;return T.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[T.jsx("defs",{children:T.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:T.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,className:o?`stroke-[${o}]`:"stroke-body"})})}),n?T.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):T.jsx("rect",{fill:n?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},F0=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?T.jsx("div",{className:"flex h-6 w-5 items-center",onClick:o=>r&&r(o),children:(()=>{switch(n){case"arrow":return T.jsx(ht.FdDown,{className:at(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?T.jsx(ht.FdDown,{}):T.jsx(ht.FdRight,{});default:return T.jsx(ht.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):T.jsx("div",{className:"flex h-6 w-3 items-center"}),op=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:o,searchQuery:a,renderNode:l,onNodeClick:c})=>{var b;const{key:u,children:p}=e,g=M.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),f=l&&typeof l=="function"?l(e,t,g,o,a):UI(e,t,g,c);return!((b=e.options)!=null&&b.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?T.jsxs(T.Fragment,{children:[T.jsx("div",{className:"flex items-center space-x-2",children:f},u),WI(p||[],t,a,r,n,g.expanded,o,c,l)]}):null},BI=function(e,t){var l;const{title:r,icon:n,subtitle:o}=e;let a=null;return n&&(a=T.jsx(M0,{children:n})),T.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:[a,T.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),o&&T.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:o})]})},WI=function(e,t,r,n,o,a,l,c,u){var p,g;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((p=e[0].data)==null?void 0:p.nodeType)||((g=e[0].data)==null?void 0:g.type))?e:e.sort((f,h)=>X1(f.title,h.title))).map(f=>T.jsx(op,{actions:l,node:f,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:o,onNodeClick:c,renderNode:u},f.key)):null},UI=function(e,t,r,n){return T.jsxs(T.Fragment,{children:[T.jsx(j0,{showLines:!0,depth:t}),T.jsx(F0,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),BI(e,n)]})};(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-black:#000;--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-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-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-t-none:not(#\\#){border-top-left-radius:0;border-top-right-radius:0}.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-50:not(#\\#){color:var(--color-grey-50)}.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-black:hover:not(#\\#){border-color:var(--color-black)}.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-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-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-negative-hover:hover:not(#\\#){color:var(--color-negative-hover)}.hover\\:text-positive-400:hover:not(#\\#){color:var(--color-positive-400)}.hover\\:text-positive-hover:hover:not(#\\#){color:var(--color-positive-hover)}.hover\\:text-positive-text:hover:not(#\\#){color:var(--color-positive-text)}.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\\:text-warning-hover:hover:not(#\\#){color:var(--color-warning-hover)}.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}
23
+ `,document.head.appendChild(e)}catch(e){console.error("vite-plugin-inject-css: failed to inject css",e)}})();const qI=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),VI=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),Ic=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),GI=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),KI=e=>T.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:T.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"})}),ZI=(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},YI=(e,t)=>({classGroupId:e,validator:t}),H0=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),lc="-",Tm=[],XI="arbitrary..",JI=e=>{const t=eN(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return QI(o);const a=o.split(lc),l=a[0]===""&&a.length>1?1:0;return B0(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],c=r[o];return l?c?ZI(c,l):l:c||Tm}return r[o]||Tm}}},B0=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const u=B0(e,t+1,o);if(u)return u}const a=r.validators;if(a===null)return;const l=t===0?e.join(lc):e.slice(t).join(lc),c=a.length;for(let u=0;u<c;u++){const p=a[u];if(p.validator(l))return p.classGroupId}},QI=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?XI+n:void 0})(),eN=e=>{const{theme:t,classGroups:r}=e;return tN(r,t)},tN=(e,t)=>{const r=H0();for(const n in e){const o=e[n];ap(o,r,n,t)}return r},ap=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const l=e[a];rN(l,t,r,n)}},rN=(e,t,r,n)=>{if(typeof e=="string"){nN(e,t,r);return}if(typeof e=="function"){iN(e,t,r,n);return}oN(e,t,r,n)},nN=(e,t,r)=>{const n=e===""?t:W0(t,e);n.classGroupId=r},iN=(e,t,r,n)=>{if(aN(e)){ap(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(YI(r,e))},oN=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let l=0;l<a;l++){const[c,u]=o[l];ap(u,W0(t,c),r,n)}},W0=(e,t)=>{let r=e;const n=t.split(lc),o=n.length;for(let a=0;a<o;a++){const l=n[a];let c=r.nextPart.get(l);c||(c=H0(),r.nextPart.set(l,c)),r=c}return r},aN=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,sN=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(a,l)=>{r[a]=l,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(a){let l=r[a];if(l!==void 0)return l;if((l=n[a])!==void 0)return o(a,l),l},set(a,l){a in r?r[a]=l:o(a,l)}}},gf="!",Am=":",lN=[],Rm=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),cN=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let l=0,c=0,u=0,p;const g=o.length;for(let v=0;v<g;v++){const y=o[v];if(l===0&&c===0){if(y===Am){a.push(o.slice(u,v)),u=v+1;continue}if(y==="/"){p=v;continue}}y==="["?l++:y==="]"?l--:y==="("?c++:y===")"&&c--}const f=a.length===0?o:o.slice(u);let h=f,b=!1;f.endsWith(gf)?(h=f.slice(0,-1),b=!0):f.startsWith(gf)&&(h=f.slice(1),b=!0);const S=p&&p>u?p-u:void 0;return Rm(a,b,h,S)};if(t){const o=t+Am,a=n;n=l=>l.startsWith(o)?a(l.slice(o.length)):Rm(lN,!1,l,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},uN=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach((r,n)=>{t.set(r,1e6+n)}),r=>{const n=[];let o=[];for(let a=0;a<r.length;a++){const l=r[a],c=l[0]==="[",u=t.has(l);c||u?(o.length>0&&(o.sort(),n.push(...o),o=[]),n.push(l)):o.push(l)}return o.length>0&&(o.sort(),n.push(...o)),n}},dN=e=>({cache:sN(e.cacheSize),parseClassName:cN(e),sortModifiers:uN(e),...JI(e)}),fN=/\s+/,pN=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],c=e.trim().split(fN);let u="";for(let p=c.length-1;p>=0;p-=1){const g=c[p],{isExternal:f,modifiers:h,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}=r(g);if(f){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]:a(h).join(":"),x=b?w+gf:w,k=x+m;if(l.indexOf(k)>-1)continue;l.push(k);const E=o(m,y);for(let R=0;R<E.length;++R){const F=E[R];l.push(x+F)}u=g+(u.length>0?" "+u:u)}return u},hN=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=U0(r))&&(o&&(o+=" "),o+=n);return o},U0=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=U0(e[n]))&&(r&&(r+=" "),r+=t);return r},Cm=(e,...t)=>{let r,n,o,a;const l=u=>{const p=t.reduce((g,f)=>f(g),e());return r=dN(p),n=r.cache.get,o=r.cache.set,a=c,c(u)},c=u=>{const p=n(u);if(p)return p;const g=pN(u,r);return o(u,g),g};return a=l,(...u)=>a(hN(...u))},gN=[],Rt=e=>{const t=r=>r[e]||gN;return t.isThemeGetter=!0,t},q0=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,V0=/^\((?:(\w[\w-]*):)?(.+)\)$/i,vN=/^\d+\/\d+$/,mN=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,bN=/\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$/,yN=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,wN=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,xN=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,lo=e=>vN.test(e),Me=e=>!!e&&!Number.isNaN(Number(e)),Yn=e=>!!e&&Number.isInteger(Number(e)),wd=e=>e.endsWith("%")&&Me(e.slice(0,-1)),An=e=>mN.test(e),SN=()=>!0,_N=e=>bN.test(e)&&!yN.test(e),G0=()=>!1,EN=e=>wN.test(e),kN=e=>xN.test(e),ON=e=>!ye(e)&&!we(e),TN=e=>No(e,Y0,G0),ye=e=>q0.test(e),Oi=e=>No(e,X0,_N),xd=e=>No(e,IN,Me),Pm=e=>No(e,K0,G0),AN=e=>No(e,Z0,kN),dl=e=>No(e,J0,EN),we=e=>V0.test(e),ba=e=>Do(e,X0),RN=e=>Do(e,NN),Im=e=>Do(e,K0),CN=e=>Do(e,Y0),PN=e=>Do(e,Z0),fl=e=>Do(e,J0,!0),No=(e,t,r)=>{const n=q0.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Do=(e,t,r=!1)=>{const n=V0.exec(e);return n?n[1]?t(n[1]):r:!1},K0=e=>e==="position"||e==="percentage",Z0=e=>e==="image"||e==="url",Y0=e=>e==="length"||e==="size"||e==="bg-size",X0=e=>e==="length",IN=e=>e==="number",NN=e=>e==="family-name",J0=e=>e==="shadow",Nm=()=>{const e=Rt("color"),t=Rt("font"),r=Rt("text"),n=Rt("font-weight"),o=Rt("tracking"),a=Rt("leading"),l=Rt("breakpoint"),c=Rt("container"),u=Rt("spacing"),p=Rt("radius"),g=Rt("shadow"),f=Rt("inset-shadow"),h=Rt("text-shadow"),b=Rt("drop-shadow"),S=Rt("blur"),v=Rt("perspective"),y=Rt("aspect"),m=Rt("ease"),w=Rt("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),we,ye],R=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[we,ye,u],$=()=>[lo,"full","auto",...P()],V=()=>[Yn,"none","subgrid",we,ye],z=()=>["auto",{span:["full",Yn,we,ye]},Yn,we,ye],I=()=>[Yn,"auto",we,ye],j=()=>["auto","min","max","fr",we,ye],W=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],N=()=>["start","end","center","stretch","center-safe","end-safe"],Y=()=>["auto",...P()],X=()=>[lo,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],K=()=>[e,we,ye],ge=()=>[...k(),Im,Pm,{position:[we,ye]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",CN,TN,{size:[we,ye]}],ee=()=>[wd,ba,Oi],te=()=>["","none","full",p,we,ye],J=()=>["",Me,ba,Oi],ce=()=>["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"],re=()=>[Me,wd,Im,Pm],de=()=>["","none",S,we,ye],he=()=>["none",Me,we,ye],fe=()=>["none",Me,we,ye],xe=()=>[Me,we,ye],Z=()=>[lo,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[An],breakpoint:[An],color:[SN],container:[An],"drop-shadow":[An],ease:["in","out","in-out"],font:[ON],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[An],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[An],shadow:[An],spacing:["px",Me],text:[An],"text-shadow":[An],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",lo,ye,we,y]}],container:["container"],columns:[{columns:[Me,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:E()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:F()}],"overscroll-x":[{"overscroll-x":F()}],"overscroll-y":[{"overscroll-y":F()}],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:[Yn,"auto",we,ye]}],basis:[{basis:[lo,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Me,lo,"auto","initial","none",ye]}],grow:[{grow:["",Me,we,ye]}],shrink:[{shrink:["",Me,we,ye]}],order:[{order:[Yn,"first","last","none",we,ye]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:z()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:z()}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":j()}],"auto-rows":[{"auto-rows":j()}],gap:[{gap:P()}],"gap-x":[{"gap-x":P()}],"gap-y":[{"gap-y":P()}],"justify-content":[{justify:[...W(),"normal"]}],"justify-items":[{"justify-items":[...N(),"normal"]}],"justify-self":[{"justify-self":["auto",...N()]}],"align-content":[{content:["normal",...W()]}],"align-items":[{items:[...N(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...N(),{baseline:["","last"]}]}],"place-content":[{"place-content":W()}],"place-items":[{"place-items":[...N(),"baseline"]}],"place-self":[{"place-self":["auto",...N()]}],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:Y()}],mx:[{mx:Y()}],my:[{my:Y()}],ms:[{ms:Y()}],me:[{me:Y()}],mt:[{mt:Y()}],mr:[{mr:Y()}],mb:[{mb:Y()}],ml:[{ml:Y()}],"space-x":[{"space-x":P()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":P()}],"space-y-reverse":["space-y-reverse"],size:[{size:X()}],w:[{w:[c,"screen",...X()]}],"min-w":[{"min-w":[c,"screen","none",...X()]}],"max-w":[{"max-w":[c,"screen","none","prose",{screen:[l]},...X()]}],h:[{h:["screen","lh",...X()]}],"min-h":[{"min-h":["screen","lh","none",...X()]}],"max-h":[{"max-h":["screen","lh",...X()]}],"font-size":[{text:["base",r,ba,Oi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,we,xd]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",wd,ye]}],"font-family":[{font:[RN,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:[o,we,ye]}],"line-clamp":[{"line-clamp":[Me,"none",we,xd]}],leading:[{leading:[a,...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:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ce(),"wavy"]}],"text-decoration-thickness":[{decoration:[Me,"from-font","auto",we,Oi]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Me,"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:ge()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Yn,we,ye],radial:["",we,ye],conic:[Yn,we,ye]},PN,AN]}],"bg-color":[{bg:K()}],"gradient-from-pos":[{from:ee()}],"gradient-via-pos":[{via:ee()}],"gradient-to-pos":[{to:ee()}],"gradient-from":[{from:K()}],"gradient-via":[{via:K()}],"gradient-to":[{to:K()}],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:[...ce(),"hidden","none"]}],"divide-style":[{divide:[...ce(),"hidden","none"]}],"border-color":[{border:K()}],"border-color-x":[{"border-x":K()}],"border-color-y":[{"border-y":K()}],"border-color-s":[{"border-s":K()}],"border-color-e":[{"border-e":K()}],"border-color-t":[{"border-t":K()}],"border-color-r":[{"border-r":K()}],"border-color-b":[{"border-b":K()}],"border-color-l":[{"border-l":K()}],"divide-color":[{divide:K()}],"outline-style":[{outline:[...ce(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Me,we,ye]}],"outline-w":[{outline:["",Me,ba,Oi]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",g,fl,dl]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",f,fl,dl]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Me,Oi]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",h,fl,dl]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Me,we,ye]}],"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":[Me]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":K()}],"mask-image-linear-to-color":[{"mask-linear-to":K()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":K()}],"mask-image-t-to-color":[{"mask-t-to":K()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":K()}],"mask-image-r-to-color":[{"mask-r-to":K()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":K()}],"mask-image-b-to-color":[{"mask-b-to":K()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":K()}],"mask-image-l-to-color":[{"mask-l-to":K()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":K()}],"mask-image-x-to-color":[{"mask-x-to":K()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":K()}],"mask-image-y-to-color":[{"mask-y-to":K()}],"mask-image-radial":[{"mask-radial":[we,ye]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":K()}],"mask-image-radial-to-color":[{"mask-radial-to":K()}],"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":k()}],"mask-image-conic-pos":[{"mask-conic":[Me]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":K()}],"mask-image-conic-to-color":[{"mask-conic-to":K()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ge()}],"mask-repeat":[{mask:D()}],"mask-size":[{mask:U()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",we,ye]}],filter:[{filter:["","none",we,ye]}],blur:[{blur:de()}],brightness:[{brightness:[Me,we,ye]}],contrast:[{contrast:[Me,we,ye]}],"drop-shadow":[{"drop-shadow":["","none",b,fl,dl]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Me,we,ye]}],"hue-rotate":[{"hue-rotate":[Me,we,ye]}],invert:[{invert:["",Me,we,ye]}],saturate:[{saturate:[Me,we,ye]}],sepia:[{sepia:["",Me,we,ye]}],"backdrop-filter":[{"backdrop-filter":["","none",we,ye]}],"backdrop-blur":[{"backdrop-blur":de()}],"backdrop-brightness":[{"backdrop-brightness":[Me,we,ye]}],"backdrop-contrast":[{"backdrop-contrast":[Me,we,ye]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Me,we,ye]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Me,we,ye]}],"backdrop-invert":[{"backdrop-invert":["",Me,we,ye]}],"backdrop-opacity":[{"backdrop-opacity":[Me,we,ye]}],"backdrop-saturate":[{"backdrop-saturate":[Me,we,ye]}],"backdrop-sepia":[{"backdrop-sepia":["",Me,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:[Me,"initial",we,ye]}],ease:[{ease:["linear","initial",m,we,ye]}],delay:[{delay:[Me,we,ye]}],animate:[{animate:["none",w,we,ye]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,we,ye]}],"perspective-origin":[{"perspective-origin":E()}],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:xe()}],"skew-x":[{"skew-x":xe()}],"skew-y":[{"skew-y":xe()}],transform:[{transform:[we,ye,"","none","gpu","cpu"]}],"transform-origin":[{origin:E()}],"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:K()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:K()}],"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",...K()]}],"stroke-w":[{stroke:[Me,ba,Oi,xd]}],stroke:[{stroke:["none",...K()]}],"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"]}},DN=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(Da(e,"cacheSize",t),Da(e,"prefix",r),Da(e,"experimentalParseClassName",n),pl(e.theme,a.theme),pl(e.classGroups,a.classGroups),pl(e.conflictingClassGroups,a.conflictingClassGroups),pl(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Da(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),hl(e.theme,o.theme),hl(e.classGroups,o.classGroups),hl(e.conflictingClassGroups,o.conflictingClassGroups),hl(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Q0(e,o,"orderSensitiveModifiers"),e),Da=(e,t,r)=>{r!==void 0&&(e[t]=r)},pl=(e,t)=>{if(t)for(const r in t)Da(e,r,t[r])},hl=(e,t)=>{if(t)for(const r in t)Q0(e,t,r)},Q0=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},MN=(e,...t)=>typeof e=="function"?Cm(Nm,e,...t):Cm(()=>DN(Nm(),e),...t);function ew(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Dm={exports:{}};/*!
24
+ Copyright (c) 2018 Jed Watson.
25
+ Licensed under the MIT License (MIT), see
26
+ http://jedwatson.github.io/classnames
27
+ */var Mm;function LN(){return Mm||(Mm=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(a=o(a,n(c)))}return a}function n(a){if(typeof a=="string"||typeof a=="number")return a;if(typeof a!="object")return"";if(Array.isArray(a))return r.apply(null,a);if(a.toString!==Object.prototype.toString&&!a.toString.toString().includes("[native code]"))return a.toString();var l="";for(var c in a)t.call(a,c)&&a[c]&&(l=o(l,c));return l}function o(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(Dm)),Dm.exports}var $N=LN();const zN=ew($N),jN=MN({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 ue(...e){return jN(zN(e))}const ds={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"}},Pr={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"}},FN=`
28
+ appearance-none border rounded transition-all duration-200
29
+ focus:ring-2 focus:ring-offset-2 focus:outline-hidden
30
+ relative
31
+ `,HN=(e,t,r)=>{const{isChecked:n,isIndeterminate:o,isDisabled:a,isInvalid:l}=r,c=n||o;return ue(FN,ds[e].checkbox,{"cursor-pointer":!a},l?{[Pr.negative.checked]:c,[Pr.negative.unchecked]:!c,[Pr.negative.checkedHover]:!a&&c,[Pr.negative.focus]:!a,"border-input-disable":a}:{[Pr[t].checked]:c&&!a,[Pr[t].unchecked]:!c&&!a,[Pr[t].checkedHover]:!a&&c,[Pr[t].focus]:!a,"border-input-disable":a,"bg-input-disable":a&&c})},BN=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ue(ds[e].text,o?{[Pr.negative.label]:o}:{"text-input-disable":n,[Pr[t].label]:!n,"cursor-pointer":!n})},WN=e=>ue("inline-flex items-center ws-group",ds[e].spacing),UN=(e,t,r)=>ue("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",ds[e].hoverSquare,{[Pr.negative.hoverSquare]:r,[Pr[t].hoverSquare]:!r}),qN=e=>`${ds[e].icon}`,VN=e=>T.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:T.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),GN=M.forwardRef(({label:e,isDisabled:t=!1,isInvalid:r=!1,isRequired:n=!1,size:o="md",color:a="primary",onChange:l,onFocus:c,onBlur:u,value:p,defaultValue:g,name:f,id:h,...b},S)=>{const[v,y]=M.useState(g),m=p===!0||v===!0,w=p===null,x=m||w,k={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},E=HN(o,a,k),R=BN(o,a,k),F=WN(o),P=UN(o,a,r),$=qN(o);return T.jsxs("label",{"data-qui":"Checkbox",className:F,children:[T.jsxs("div",{className:E,children:[T.jsx("input",{ref:S,type:"checkbox",className:"sr-only",checked:m,disabled:t,required:n,onChange:V=>{p===void 0&&y(V.target.checked),l==null||l(V)},onFocus:c,onBlur:u,name:f,id:h,...b}),x&&T.jsx("div",{className:"center-absolute",children:w?T.jsx(VN,{className:$}):T.jsx(qI,{className:$})}),!x&&!t&&T.jsx("div",{className:P})]}),e&&T.jsxs("span",{className:R,children:[e,n&&T.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});GN.displayName="Checkbox";const fs={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"}},Xa={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"}},KN=`
32
+ relative rounded-full border transition-all duration-200 ease-in-out bg-transparent
33
+ focus:outline-hidden focus:ring-2 focus:ring-offset-0
34
+ cursor-pointer peer
35
+ `,ZN=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ue(KN,fs[e].radio,o?Xa[t].radioInvalid:{[Xa[t].radio]:!n,"cursor-not-allowed opacity-60":n})},YN=(e,t,r)=>{const{checked:n,isDisabled:o,isInvalid:a}=r;return ue("center-absolute rounded-full transition-all duration-200 ease-in-out",fs[e].dot,a?"bg-negative":{[Xa[t].dot]:!o,"border-neutral":o,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!o})},XN=(e,t,r)=>ue("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",fs[e].hoverDot,{[Xa[t].hoverDot]:!r,"bg-negative-bg":r}),JN=e=>ue("cursor-pointer select-none transition-colors duration-200",fs[e].label),QN=(e,t,r,n)=>{const{isDisabled:o,isInvalid:a}=r;return ue("inline-flex items-center group",fs[e].container,a?{"text-negative":a}:{[Xa[t].label]:!o,"text-muted":o},n)},e2=M.createContext(null),t2=()=>{const e=M.useContext(e2);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},r2=M.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:o,isInvalid:a,isRequired:l,className:c,...u},p)=>{const g=t2(),f=r??g.size,h=n??g.color,b=o??g.isDisabled,S=a??g.isInvalid,v=l??g.isRequired,y=g.value===e,m={checked:y,isDisabled:b,isInvalid:S},w=ZN(f,h,m),x=YN(f,h,m),k=XN(f,h,S),E=JN(f),R=QN(f,h,m,c),F=()=>{b||g.onChange(e)};return T.jsxs("label",{"data-qui":"RadioItem",className:R,children:[T.jsxs("div",{className:ue("relative",{hidden:g.hideIndicator}),children:[T.jsx("input",{ref:p,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:F,className:"sr-only",...u}),T.jsxs("div",{className:w,children:[T.jsx("div",{className:x}),!y&&!b&&T.jsx("div",{className:k})]})]}),t&&T.jsxs("span",{className:E,children:[t,v&&T.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});r2.displayName="RadioItem";const tw={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"}},n2={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-black hover:text-primary-hover",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 hover:text-canvas",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:text-positive-hover",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:text-warning-hover",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:text-negative-hover",ghost:"hover:bg-negative-hover hover:text-body"}}},i2=(e,t,r,n)=>{const o=tw[e],a=n2[r],l=ue("inline-flex items-center justify-center font-medium transition-colors duration-200 focus:outline-hidden border",{"cursor-pointer":!n},o.container);return n?ue(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"}):ue(l,a.bg[t],a.text[t],a.hover[t],a.border[t])},o2=e=>ue("flex items-center justify-center gap-1",tw[e].text),qa=M.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:o,disabled:a,...l},c)=>T.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:ue(i2(e,t,r,a),o2(e),n),disabled:a,...l,children:o}));qa.displayName="Button";const rw=M.createContext(null),ps=()=>{const e=M.useContext(rw);if(!e)throw new Error("Input components must be used within Input.Root");return e},Mo={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"}},Dn={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"}},a2=()=>ue("flex flex-col relative"),s2=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:o,hasArea:a,isInvalid:l})=>{const c=Dn[l?"negative":t];return ue("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,o?c.borderMessage:!n&&c.border,Mo[e].group,{"ring-1":o,"opacity-60":r,"items-center":!a})},l2=({size:e,color:t})=>ue("bg-transparent ring-0 w-full","focus:outline-hidden",[Mo[e].input],Dn[t].placeholder),Lm=({size:e,color:t})=>ue("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Mo[e].input,Dn[t].placeholder),c2=({size:e,color:t,isDisabled:r,isAction:n})=>ue("transition-colors duration-200 rounded max-h-full h-fit",Mo[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?Dn[t].action:Dn[t].icon,{"cursor-pointer p-0.5":n&&!r,[Dn[t].actionHover]:n&&!r,"pointer-events-none":!n}),u2=({size:e,color:t,isDisabled:r})=>ue("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":Dn[t].messageText,Dn[t].borderMessage,Dn[t].messageBackground,Mo[e].message,{"opacity-60":r}),d2=({size:e})=>ue(Mo[e].icon);function cc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var f2=typeof global=="object"&&global&&global.Object===Object&&global,p2=typeof self=="object"&&self&&self.Object===Object&&self,nw=f2||p2||Function("return this")(),Sd=function(){return nw.Date.now()},h2=/\s/;function g2(e){for(var t=e.length;t--&&h2.test(e.charAt(t)););return t}var v2=/^\s+/;function m2(e){return e&&e.slice(0,g2(e)+1).replace(v2,"")}var uc=nw.Symbol,iw=Object.prototype,b2=iw.hasOwnProperty,y2=iw.toString,ya=uc?uc.toStringTag:void 0;function w2(e){var t=b2.call(e,ya),r=e[ya];try{e[ya]=void 0;var n=!0}catch{}var o=y2.call(e);return n&&(t?e[ya]=r:delete e[ya]),o}var x2=Object.prototype,S2=x2.toString;function _2(e){return S2.call(e)}var E2="[object Null]",k2="[object Undefined]",$m=uc?uc.toStringTag:void 0;function O2(e){return e==null?e===void 0?k2:E2:$m&&$m in Object(e)?w2(e):_2(e)}function T2(e){return e!=null&&typeof e=="object"}var A2="[object Symbol]";function R2(e){return typeof e=="symbol"||T2(e)&&O2(e)==A2}var zm=NaN,C2=/^[-+]0x[0-9a-f]+$/i,P2=/^0b[01]+$/i,I2=/^0o[0-7]+$/i,N2=parseInt;function jm(e){if(typeof e=="number")return e;if(R2(e))return zm;if(cc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=cc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=m2(e);var r=P2.test(e);return r||I2.test(e)?N2(e.slice(2),r?2:8):C2.test(e)?zm:+e}var D2="Expected a function",M2=Math.max,L2=Math.min;function ql(e,t,r){var n,o,a,l,c,u,p=0,g=!1,f=!1,h=!0;if(typeof e!="function")throw new TypeError(D2);t=jm(t)||0,cc(r)&&(g=!!r.leading,f="maxWait"in r,a=f?M2(jm(r.maxWait)||0,t):a,h="trailing"in r?!!r.trailing:h);function b(R){var F=n,P=o;return n=o=void 0,p=R,l=e.apply(P,F),l}function S(R){return p=R,c=setTimeout(m,t),g?b(R):l}function v(R){var F=R-u,P=R-p,$=t-F;return f?L2($,a-P):$}function y(R){var F=R-u,P=R-p;return u===void 0||F>=t||F<0||f&&P>=a}function m(){var R=Sd();if(y(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,h&&n?b(R):(n=o=void 0,l)}function x(){c!==void 0&&clearTimeout(c),p=0,n=u=o=c=void 0}function k(){return c===void 0?l:w(Sd())}function E(){var R=Sd(),F=y(R);if(n=arguments,o=this,u=R,F){if(c===void 0)return S(u);if(f)return clearTimeout(c),c=setTimeout(m,t),b(u)}return c===void 0&&(c=setTimeout(m,t)),l}return E.cancel=x,E.flush=k,E}var $2="Expected a function";function z2(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError($2);return cc(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),ql(e,t,{leading:n,maxWait:t,trailing:o})}var mo=function(){return mo=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},mo.apply(this,arguments)};function ow(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function aw(e){return!e||!e.ownerDocument?document:e.ownerDocument}var sw=function(e){var t={},r=Array.prototype.reduce.call(e,function(n,o){var a=o.name.match(/data-simplebar-(.+)/);if(a){var l=a[1].replace(/\W+(.)/g,function(c,u){return u.toUpperCase()});switch(o.value){case"true":n[l]=!0;break;case"false":n[l]=!1;break;case void 0:n[l]=!0;break;default:n[l]=o.value}}return n},t);return r};function lw(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function cw(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function uw(e){return".".concat(e.split(" ").join("."))}var sp=!!(typeof window<"u"&&window.document&&window.document.createElement),j2=Object.freeze({__proto__:null,addClasses:lw,canUseDOM:sp,classNamesToQuery:uw,getElementDocument:aw,getElementWindow:ow,getOptions:sw,removeClasses:cw}),go=null,Fm=null;sp&&window.addEventListener("resize",function(){Fm!==window.devicePixelRatio&&(Fm=window.devicePixelRatio,go=null)});function Hm(){if(go===null){if(typeof document>"u")return go=0,go;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),go=r}return go}var Xn=ow,_d=aw,F2=sw,Jn=lw,Qn=cw,rr=uw,wa=(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 o=Xn(n.el);n.scrollXTicking||(o.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(o.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0),n.isScrolling||(n.isScrolling=!0,Jn(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(){Qn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(Jn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){Qn(n.el,n.classNames.mouseEntered),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isMouseEntering=!1},this._onMouseMove=function(o){n.mouseX=o.clientX,n.mouseY=o.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(o){if(!(!n.axis.x.track.el||!n.axis.y.track.el||!n.axis.x.scrollbar.el||!n.axis.y.scrollbar.el)){var a,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)&&(a=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(a||l)&&(o.stopPropagation(),o.type==="pointerdown"&&o.pointerType!=="touch"&&(a&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(o,"x"):n.onTrackClick(o,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(o,"y"):n.onTrackClick(o,"y"))))}},this.drag=function(o){var a,l,c,u,p,g,f,h,b,S,v;if(!(!n.draggedAxis||!n.contentWrapperEl)){var y,m=n.axis[n.draggedAxis].track,w=(l=(a=m.rect)===null||a===void 0?void 0:a[n.axis[n.draggedAxis].sizeAttr])!==null&&l!==void 0?l:0,x=n.axis[n.draggedAxis].scrollbar,k=(u=(c=n.contentWrapperEl)===null||c===void 0?void 0:c[n.axis[n.draggedAxis].scrollSizeAttr])!==null&&u!==void 0?u:0,E=parseInt((g=(p=n.elStyles)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].sizeAttr])!==null&&g!==void 0?g:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?y=o.pageY:y=o.pageX;var R=y-((h=(f=m.rect)===null||f===void 0?void 0:f[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 F=R/(w-x.size),P=F*(k-E);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(o){n.isDragging=!1;var a=_d(n.el),l=Xn(n.el);o.preventDefault(),o.stopPropagation(),Qn(n.el,n.classNames.dragging),n.onStopScrolling(),a.removeEventListener("mousemove",n.drag,!0),a.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){a.removeEventListener("click",n.preventClick,!0),a.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(o){o.preventDefault(),o.stopPropagation()},this.el=t,this.options=mo(mo({},e.defaultOptions),r),this.classNames=mo(mo({},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=z2(this._onMouseMove,64),this.onWindowResize=ql(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=ql(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=ql(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 o=e.getOffset(r),a=e.getOffset(n);r.scrollLeft=-999;var l=e.getOffset(n);return document.body.removeChild(r),e.rtlHelpers={isScrollOriginAtZero:o.left!==a.left,isScrollingToNegative:a.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:Hm()}catch{return Hm()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=_d(t),o=Xn(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){sp&&(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(rr(this.classNames.wrapper)),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector(rr(this.classNames.contentWrapper)),this.contentEl=this.options.contentNode||this.el.querySelector(rr(this.classNames.contentEl)),this.offsetEl=this.el.querySelector(rr(this.classNames.offset)),this.maskEl=this.el.querySelector(rr(this.classNames.mask)),this.placeholderEl=this.findChild(this.wrapperEl,rr(this.classNames.placeholder)),this.heightAutoObserverWrapperEl=this.el.querySelector(rr(this.classNames.heightAutoObserverWrapperEl)),this.heightAutoObserverEl=this.el.querySelector(rr(this.classNames.heightAutoObserverEl)),this.axis.x.track.el=this.findChild(this.el,"".concat(rr(this.classNames.track)).concat(rr(this.classNames.horizontal))),this.axis.y.track.el=this.findChild(this.el,"".concat(rr(this.classNames.track)).concat(rr(this.classNames.vertical))),this.axis.x.scrollbar.el=((t=this.axis.x.track.el)===null||t===void 0?void 0:t.querySelector(rr(this.classNames.scrollbar)))||null,this.axis.y.scrollbar.el=((r=this.axis.y.track.el)===null||r===void 0?void 0:r.querySelector(rr(this.classNames.scrollbar)))||null,this.options.autoHide||(Jn(this.axis.x.scrollbar.el,this.classNames.visible),Jn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=Xn(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 o=!1,a=n.ResizeObserver||ResizeObserver;this.resizeObserver=new a(function(){o&&n.requestAnimationFrame(function(){t.recalculate()})}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){o=!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=Xn(this.el);this.elStyles=t.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var r=this.contentEl.offsetWidth,n=this.heightAutoObserverEl.offsetHeight<=1,o=this.heightAutoObserverEl.offsetWidth<=1||r>0,a=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,p=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=o?"".concat(r||p,"px"):"auto",this.placeholderEl.style.height="".concat(u,"px");var g=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&p>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 f=this.axis.x.isOverflowing?this.scrollbarWidth:0,h=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>a-h,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>g-f,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 o=this.contentEl[this.axis[t].scrollSizeAttr],a=(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=a/o,c;return c=Math.max(~~(l*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(c=Math.min(c,this.options.scrollbarMaxSize)),c},e.prototype.positionScrollbar=function(t){var r,n,o;t===void 0&&(t="y");var a=this.axis[t].scrollbar;if(!(!this.axis[t].isOverflowing||!this.contentWrapperEl||!a.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),p=this.contentWrapperEl[this.axis[t].scrollOffsetAttr];p=t==="x"&&this.isRtl&&!((n=e.getRtlHelpers())===null||n===void 0)&&n.isScrollOriginAtZero?-p:p,t==="x"&&this.isRtl&&(p=!((o=e.getRtlHelpers())===null||o===void 0)&&o.isScrollingToNegative?p:-p);var g=p/(l-u),f=~~((c-a.size)*g);f=t==="x"&&this.isRtl?-f+(c-a.size):f,a.el.style.transform=t==="x"?"translate3d(".concat(f,"px, 0, 0)"):"translate3d(0, ".concat(f,"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&&(Jn(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&&(Qn(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),Jn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?Jn(r.scrollbar.el,this.classNames.hover):Qn(r.scrollbar.el,this.classNames.hover)):(Qn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Qn(this.axis[t].track.el,this.classNames.hover),Qn(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 o=_d(this.el),a=Xn(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,Jn(this.el,this.classNames.dragging),o.addEventListener("mousemove",this.drag,!0),o.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(o.addEventListener("click",this.preventClick,!0),o.addEventListener("dblclick",this.preventClick,!0)):(a.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.prototype.onTrackClick=function(t,r){var n=this,o,a,l,c;r===void 0&&(r="y");var u=this.axis[r];if(!(!this.options.clickOnTrack||!u.scrollbar.el||!this.contentWrapperEl)){t.preventDefault();var p=Xn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var g=this.axis[r].scrollbar,f=(a=(o=g.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&a!==void 0?a: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-f:this.mouseX-f,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,p.requestAnimationFrame(w)):b<y&&(b+=m,n.contentWrapperEl[n.axis[r].scrollOffsetAttr]=b,p.requestAnimationFrame(w)))};w()}},e.prototype.getContentElement=function(){return this.contentEl},e.prototype.getScrollElement=function(){return this.contentWrapperEl},e.prototype.removeListeners=function(){var t=Xn(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(o){return n.call(o,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=F2,e.helpers=j2,e})(),vr=function(){return vr=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},vr.apply(this,arguments)};function H2(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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}var lp=B.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,a=H2(e,["children","scrollableNodeProps"]),l=B.useRef(),c=B.useRef(),u=B.useRef(),p={},g={};Object.keys(a).forEach(function(b){Object.prototype.hasOwnProperty.call(wa.defaultOptions,b)?p[b]=a[b]:g[b]=a[b]});var f=vr(vr({},wa.defaultOptions.classNames),p.classNames),h=vr(vr({},o),{className:"".concat(f.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:p.tabIndex||wa.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||wa.defaultOptions.ariaLabel});return B.useEffect(function(){var b;return c.current=h.ref?h.ref.current:c.current,l.current&&(b=new wa(l.current,vr(vr(vr({},p),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)}},[]),B.createElement("div",vr({"data-simplebar":"init",ref:l},g),B.createElement("div",{className:f.wrapper},B.createElement("div",{className:f.heightAutoObserverWrapperEl},B.createElement("div",{className:f.heightAutoObserverEl})),B.createElement("div",{className:f.mask},B.createElement("div",{className:f.offset},typeof r=="function"?r({scrollableNodeRef:c,scrollableNodeProps:vr(vr({},h),{ref:c}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):B.createElement("div",vr({},h),B.createElement("div",{className:f.contentEl},r)))),B.createElement("div",{className:f.placeholder})),B.createElement("div",{className:"".concat(f.track," ").concat(f.horizontal)},B.createElement("div",{className:f.scrollbar})),B.createElement("div",{className:"".concat(f.track," ").concat(f.vertical)},B.createElement("div",{className:f.scrollbar})))});lp.displayName="SimpleBar";const dw=M.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:o=!1,className:a,children:l,...c},u)=>{const[p,g]=M.useState(!1),[f,h]=M.useState(!1),b={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:o,hasMessage:p,setHasMessage:g,hasArea:f,setHasArea:h};return T.jsx(rw.Provider,{value:b,children:T.jsx("div",{ref:u,"data-qui":"Input",className:ue(a2(),a),...c,children:l})})}),fw=M.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:p,isInvalid:g}=ps();return T.jsx("div",{ref:n,"data-qui":"InputGroup",className:ue(s2({size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:p,isInvalid:g}),e),...r,children:t})}),pw=M.forwardRef(({className:e,...t},r)=>{const{size:n,color:o,isInvalid:a,isDisabled:l,isReadOnly:c}=ps(),{isDisabled:u,isReadOnly:p,...g}=t;return T.jsx("input",{ref:r,disabled:l||u,readOnly:p||c||!1,"aria-invalid":a,className:ue(l2({size:n,color:o}),e),...g})}),B2=M.forwardRef(({className:e,autoHeight:t,...r},n)=>{const{size:o,color:a,isInvalid:l,isDisabled:c,setHasArea:u}=ps(),p=M.useRef(null),g=n||p,f=M.useRef(null);M.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const h=M.useCallback(()=>{if(p.current){const w=p.current;w.style.height="auto",w.style.height=`${w.scrollHeight}px`}},[]),b=w=>{var x;h(),(x=r.onInput)==null||x.call(r,w)};M.useEffect(()=>{h()},[h,r.value]),M.useEffect(()=>{t&&f.current&&f.current.style.removeProperty("height")},[t]);const S=w=>{w.preventDefault();const x=f.current;if(!x)return;const k=w.clientY,E=x.offsetHeight,R=P=>{const $=E+(P.clientY-k);$>30&&(x.style.height=$+"px")},F=()=>{document.removeEventListener("mousemove",R),document.removeEventListener("mouseup",F)};document.addEventListener("mousemove",R),document.addEventListener("mouseup",F)},{isDisabled:v,isReadOnly:y,...m}=r;return T.jsxs("div",{ref:f,className:ue("w-full relative",!t&&"h-[120px]"),children:[t?T.jsx("textarea",{ref:g,rows:1,className:ue(Lm({size:o,color:a}),e),disabled:c||v,onInput:b,readOnly:y||!1,"aria-invalid":l,style:{overflow:"hidden"},...m}):T.jsx(lp,{style:{height:"100%"},children:T.jsx("textarea",{ref:g,rows:1,className:ue(Lm({size:o,color:a}),e),disabled:c||v,onInput:b,readOnly:y||!1,"aria-invalid":l,style:{height:"auto",overflow:"hidden",width:"100%"},...m})}),!t&&T.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:S,children:T.jsx(KI,{})})]})}),hw=M.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:o,...a},l)=>{const{size:c,color:u,isDisabled:p}=ps(),g=r||p,f=c2({size:c,color:u,isDisabled:g,isAction:e});return T.jsx("div",{ref:l,"data-qui":"InputIcon",className:ue(f,t),style:n,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!g?0:void 0,"aria-disabled":g,...a,children:o})}),W2=M.forwardRef(({icon:e,className:t,children:r,...n},o)=>{const{size:a,color:l,setHasMessage:c,isDisabled:u}=ps();return M.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),T.jsxs("div",{ref:o,"data-qui":"InputMessage",role:"alert",className:ue(u2({size:a,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&T.jsx("div",{className:ue(d2({size:a}),t),children:e}),T.jsx("p",{children:r})]})});dw.displayName="InputRoot";fw.displayName="InputGroup";pw.displayName="InputField";B2.displayName="InputArea";hw.displayName="InputIcon";W2.displayName="InputMessage";const xa={Root:dw,Group:fw,Field:pw,Icon:hw},Ja={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"}},U2=({color:e})=>ue("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",Ja[e].container,Ja[e].icon),q2=({color:e})=>ue("text-xs font-medium leading-3",Ja[e].text),V2=({color:e})=>ue("p-0.5 rounded cursor-pointer",Ja[e].button,Ja[e].icon),gw=({label:e,color:t="primary",position:r="up",showCloseButton:n=!1,icon:o,children:a,delay:l=0,trigger:c="hover",className:u,container:p,isHidden:g=!1})=>{const[f,h]=M.useState(!1),[b,S]=M.useState(!1),[v,y]=M.useState({position:r,transform:""}),m=M.useRef(null),w=M.useRef(null),x=M.useRef(null);M.useEffect(()=>{g&&f&&(h(!1),x.current&&clearTimeout(x.current))},[g,f]);const k=M.useCallback(()=>{if(!m.current||!w.current)return;const I=m.current.getBoundingClientRect(),j=w.current.getBoundingClientRect(),W=window.innerWidth,N=window.innerHeight,Y=window.scrollX,X=window.scrollY,K=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth,W),ge=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight,N),D=4;let U=r,ee={position:U,transform:""};const te=re=>{const{top:de,left:he,width:fe,height:xe}=I,Z=de+X,ke=he+Y;switch(re){case"up":return{top:`${Z-j.height-D}px`,left:`${ke+fe/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${Z-j.height-D}px`,left:`${ke}px`,transform:"translateX(0)"};case"up-end":return{top:`${Z-j.height-D}px`,left:`${ke+fe-j.width}px`,transform:"translateX(0)"};case"down":return{top:`${Z+xe+D}px`,left:`${ke+fe/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${Z+xe+D}px`,left:`${ke}px`,transform:"translateX(0)"};case"down-end":return{top:`${Z+xe+D}px`,left:`${ke+fe-j.width}px`,transform:"translateX(0)"};case"left":return{top:`${Z+xe/2}px`,left:`${ke-j.width-D}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${Z}px`,left:`${ke-j.width-D}px`,transform:"translateY(0)"};case"left-end":return{top:`${Z+xe-j.height}px`,left:`${ke-j.width-D}px`,transform:"translateY(0)"};case"right":return{top:`${Z+xe/2}px`,left:`${ke+fe+D}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${Z}px`,left:`${ke+fe+D}px`,transform:"translateY(0)"};case"right-end":return{top:`${Z+xe-j.height}px`,left:`${ke+fe+D}px`,transform:"translateY(0)"};default:return{}}},J={up:{fits:I.top-j.height-D>=0},"up-start":{fits:I.top-j.height-D>=0&&I.left+j.width<=W},"up-end":{fits:I.top-j.height-D>=0&&I.right-j.width>=0},down:{fits:I.bottom+j.height+D<=N&&I.bottom+j.height+D<=ge},"down-start":{fits:I.bottom+j.height+D<=N&&I.bottom+j.height+D<=ge&&I.left+j.width<=W},"down-end":{fits:I.bottom+j.height+D<=N&&I.bottom+j.height+D<=ge&&I.right-j.width>=0},left:{fits:I.left-j.width-D>=0},"left-start":{fits:I.left-j.width-D>=0&&I.top+j.height<=N},"left-end":{fits:I.left-j.width-D>=0&&I.bottom-j.height>=0},right:{fits:I.right+j.width+D<=W&&I.right+j.width+D<=K},"right-start":{fits:I.right+j.width+D<=W&&I.right+j.width+D<=K&&I.top+j.height<=N},"right-end":{fits:I.right+j.width+D<=W&&I.right+j.width+D<=K&&I.bottom-j.height>=0}},ce=I.left+I.width/2-j.width/2,ae=I.left+I.width/2+j.width/2;if((r==="up"||r==="down")&&(ce<0||ae>W)&&(J[r].fits=!1),J[r].fits){const re=te(r);ee={position:r,...re,transform:re.transform||""}}else{const re=["up","up-start","up-end","down","down-start","down-end","right","right-start","right-end","left","left-start","left-end"].find(de=>J[de].fits);if(re){U=re;const de=te(re);ee={position:U,...de,transform:de.transform||""}}else{const de={up:I.top,"up-start":I.top,"up-end":I.top,down:Math.min(N-I.bottom,ge-I.bottom),"down-start":Math.min(N-I.bottom,ge-I.bottom),"down-end":Math.min(N-I.bottom,ge-I.bottom),left:I.left,"left-start":I.left,"left-end":I.left,right:Math.min(W-I.right,K-I.right),"right-start":Math.min(W-I.right,K-I.right),"right-end":Math.min(W-I.right,K-I.right)},he=Object.entries(de).reduce((xe,[Z,ke])=>ke>xe.space?{position:Z,space:ke}:xe,{position:"up",space:0}).position;U=he;const fe=te(he);ee={position:U,...fe,transform:fe.transform||""}}}y(ee)},[r]),E=()=>{c!=="click"||g||(h(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{b||h(!1)},l))},R=I=>{I.stopPropagation(),h(!1),x.current&&clearTimeout(x.current)},F=()=>{S(!0),x.current&&clearTimeout(x.current)},P=()=>{S(!1),f&&(x.current=setTimeout(()=>{h(!1)},l))},$=()=>{c==="hover"&&!g&&(h(!0),x.current&&clearTimeout(x.current))},V=()=>{c==="hover"&&(x.current=setTimeout(()=>{h(!1)},l))};M.useEffect(()=>{if(f){const I=requestAnimationFrame(()=>{k()});return()=>cancelAnimationFrame(I)}},[f,e,k]),M.useEffect(()=>{if(f){const I=setTimeout(()=>k(),0);return()=>clearTimeout(I)}},[f,k]),M.useEffect(()=>{const I=()=>{f&&k()},j=()=>{f&&k()};return window.addEventListener("resize",I),window.addEventListener("scroll",j,!0),()=>{window.removeEventListener("resize",I),window.removeEventListener("scroll",j,!0),x.current&&clearTimeout(x.current)}},[f,k]);const z=p||(typeof document<"u"?document.body:null);return z?T.jsxs(T.Fragment,{children:[T.jsx("div",{"data-qui":"Tooltip",ref:m,onClick:E,onMouseEnter:$,onMouseLeave:V,className:ue("relative inline-flex items-center",u),children:a}),f&&!!e&&$n.createPortal(T.jsxs("div",{ref:w,role:"tooltip",className:U2({color:t}),style:{position:"absolute",left:v.left??0,top:v.top??0,transform:v.transform,zIndex:1e3,visibility:v.left?"visible":"hidden"},onMouseEnter:F,onMouseLeave:P,children:[o&&T.jsx("span",{"data-testid":"tooltip-icon",children:o}),T.jsx("div",{className:q2({color:t}),children:e}),n&&T.jsx("div",{onClick:R,className:V2({color:t}),role:"button",children:T.jsx(Ic,{})})]}),z)]}):null};var Bm;(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"})(Bm||(Bm={}));const G2=Object.freeze({x:0,y:0});var bo;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(bo||(bo={}));var Wm;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Wm||(Wm={}));var Ir;(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"})(Ir||(Ir={}));Ir.Space,Ir.Enter,Ir.Esc,Ir.Space,Ir.Enter,Ir.Tab;var Um;(function(e){e[e.RightClick=2]="RightClick"})(Um||(Um={}));var qm;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(qm||(qm={}));var Vm;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Vm||(Vm={}));bo.Backward+"",bo.Forward+"",bo.Backward+"",bo.Forward+"";var vf;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(vf||(vf={}));var mf;(function(e){e.Optimized="optimized"})(mf||(mf={}));vf.WhileDragging,mf.Optimized;({...G2});var Gm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Gm||(Gm={}));Ir.Down,Ir.Right,Ir.Up,Ir.Left;const vw={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"}},K2={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"}}},Z2=(e,t,r,n)=>{const o=K2[e],a=vw[t],l="relative inline-flex items-center font-medium cursor-pointer transition-all duration-200";return n?ue(l,a.padding,a.text,a.gap,"pointer-events-none cursor-not-allowed opacity-50","bg-card","text-inactive-text"):r?ue(l,a.padding,a.text,a.gap,o.active.bg,o.active.text,"shadow-xs"):ue(l,a.padding,a.text,a.gap,o.inactive.bg,o.inactive.text,o.hover.bg,o.hover.text)},Y2=(e,t)=>ue("flex items-center justify-center",vw[e].icon,{"opacity-50":t}),X2=()=>ue("whitespace-nowrap"),mw=(e,t)=>{const r=ue("group flex items-center justify-between space-x-4","rounded-t px-2 text-xs","focus:outline-hidden");return e&&!t?ue(r,"z-2 border border-b-0 border-tab-border","bg-tab-active-bg font-semibold text-tab-active-fg"):t&&!e?ue(r,"border border-transparent bg-tab-inactive-bg text-inactive-text"):ue(r,"border border-transparent bg-tab-inactive-bg text-tab-inactive-fg","hover:text-tab-active-fg")},J2=M.createContext(void 0),Q2=M.forwardRef(({value:e,label:t,icon:r,disabled:n,children:o,className:a,onClick:l,active:c,content:u,...p},g)=>{const f=M.useContext(J2);if(!f)return null;const{activeTab:h,onTabChange:b,variant:S,color:v,size:y,showIcons:m,disabled:w}=f,x=c!==void 0?c:h===e,k=n||w,E=R=>{k||(b(e),l==null||l(R))};return S==="file"?T.jsx("div",{"data-qui":"FileTabItem",className:ue(mw(x,!1),"cursor-pointer",a),onClick:R=>!k&&E(R),children:o||T.jsx(T.Fragment,{children:T.jsxs("span",{className:"flex items-center gap-2",children:[r,T.jsx("span",{children:t})]})})}):T.jsxs("button",{ref:g,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":x,"aria-disabled":k,className:ue(Z2(v,y,x,k||!1),a),onClick:E,disabled:k,...p,children:[m&&r&&T.jsx("span",{className:Y2(y,k||!1),children:r}),T.jsx("span",{className:X2(),children:o||t})]})});Q2.displayName="TabItem";const eD=M.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},o)=>T.jsx("div",{"data-qui":"TabNavContainer",className:mw(e,t),ref:o,...n,children:r}));eD.displayName="TabNavContainer";var kt=function(){return kt=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},kt.apply(this,arguments)},Km={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Zm={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},gl={width:"20px",height:"20px",position:"absolute",zIndex:1},tD={top:kt(kt({},Km),{top:"-5px"}),right:kt(kt({},Zm),{left:void 0,right:"-5px"}),bottom:kt(kt({},Km),{top:void 0,bottom:"-5px"}),left:kt(kt({},Zm),{left:"-5px"}),topRight:kt(kt({},gl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:kt(kt({},gl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:kt(kt({},gl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:kt(kt({},gl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},rD=M.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,a=e.className,l=M.useCallback(function(p){t(p,r)},[t,r]),c=M.useCallback(function(p){t(p,r)},[t,r]),u=M.useMemo(function(){return kt(kt({position:"absolute",userSelect:"none"},tD[r]),o??{})},[o,r]);return T.jsx("div",{className:a||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),nD=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},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)}})(),an=function(){return an=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},an.apply(this,arguments)},iD={width:"auto",height:"auto"},vl=function(e,t,r){return Math.max(Math.min(e,r),t)},Ym=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},co=function(e,t){return new RegExp(e,"i").test(t)},ml=function(e){return!!(e.touches&&e.touches.length)},oD=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Xm=function(e,t,r){r===void 0&&(r=0);var n=t.reduce(function(a,l,c){return Math.abs(l-e)<Math.abs(t[a]-e)?c:a},0),o=Math.abs(t[n]-e);return r===0||o<r?t[n]:e},Ed=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")},bl=function(e,t,r,n){if(e&&typeof e=="string"){if(e.endsWith("px"))return Number(e.replace("px",""));if(e.endsWith("%")){var o=Number(e.replace("%",""))/100;return t*o}if(e.endsWith("vw")){var o=Number(e.replace("vw",""))/100;return r*o}if(e.endsWith("vh")){var o=Number(e.replace("vh",""))/100;return n*o}}return e},aD=function(e,t,r,n,o,a,l){return n=bl(n,e.width,t,r),o=bl(o,e.height,t,r),a=bl(a,e.width,t,r),l=bl(l,e.height,t,r),{maxWidth:typeof n>"u"?void 0:Number(n),maxHeight:typeof o>"u"?void 0:Number(o),minWidth:typeof a>"u"?void 0:Number(a),minHeight:typeof l>"u"?void 0:Number(l)}},sD=function(e){return Array.isArray(e)?e:[e,e]},lD=["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"],Jm="__resizable_base__",cD=(function(e){nD(t,e);function t(r){var n,o,a,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 p=c.window.document.createElement("div");return p.style.width="100%",p.style.height="100%",p.style.position="absolute",p.style.transform="scale(0, 0)",p.style.left="0",p.style.flex="0 0 100%",p.classList?p.classList.add(Jm):p.className+=Jm,u.appendChild(p),p},c.removeBase=function(u){var p=c.parentNode;p&&p.removeChild(u)},c.state={isResizing:!1,width:(o=(n=c.propsSize)===null||n===void 0?void 0:n.width)!==null&&o!==void 0?o:"auto",height:(l=(a=c.propsSize)===null||a===void 0?void 0:a.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||iD},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"size",{get:function(){var r=0,n=0;if(this.resizable&&this.window){var o=this.resizable.offsetWidth,a=this.resizable.offsetHeight,l=this.resizable.style.position;l!=="relative"&&(this.resizable.style.position="relative"),r=this.resizable.style.width!=="auto"?this.resizable.offsetWidth:o,n=this.resizable.style.height!=="auto"?this.resizable.offsetHeight:a,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,o=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 p=r.getParentSize(),g=Number(r.state[c].toString().replace("px","")),f=g/p[c]*100;return"".concat(f,"%")}return Ed(r.state[c])},a=n&&typeof n.width<"u"&&!this.state.isResizing?Ed(n.width):o("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?Ed(n.height):o("height");return{width:a,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,o=this.parentNode.style.flexWrap;o!=="wrap"&&(n=!0,this.parentNode.style.flexWrap="wrap"),r.style.position="relative",r.style.minWidth="100%",r.style.minHeight="100%";var a={width:r.offsetWidth,height:r.offsetHeight};return n&&(this.parentNode.style.flexWrap=o),this.removeBase(r),a},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 o=this.propsSize&&this.propsSize[n];return this.state[n]==="auto"&&this.state.original[n]===r&&(typeof o>"u"||o==="auto")?"auto":r},t.prototype.calculateNewMaxFromBoundary=function(r,n){var o=this.props.boundsByDirection,a=this.state.direction,l=o&&co("left",a),c=o&&co("top",a),u,p;if(this.props.bounds==="parent"){var g=this.parentNode;g&&(u=l?this.resizableRight-this.parentLeft:g.offsetWidth+(this.parentLeft-this.resizableLeft),p=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,p=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),p=c?this.resizableBottom-this.targetTop:this.props.bounds.offsetHeight+(this.targetTop-this.resizableTop));return u&&Number.isFinite(u)&&(r=r&&r<u?r:u),p&&Number.isFinite(p)&&(n=n&&n<p?n:p),{maxWidth:r,maxHeight:n}},t.prototype.calculateNewSizeFromDirection=function(r,n){var o=this.props.scale||1,a=sD(this.props.resizeRatio||1),l=a[0],c=a[1],u=this.state,p=u.direction,g=u.original,f=this.props,h=f.lockAspectRatio,b=f.lockAspectRatioExtraHeight,S=f.lockAspectRatioExtraWidth,v=g.width,y=g.height,m=b||0,w=S||0;return co("right",p)&&(v=g.width+(r-g.x)*l/o,h&&(y=(v-w)/this.ratio+m)),co("left",p)&&(v=g.width-(r-g.x)*l/o,h&&(y=(v-w)/this.ratio+m)),co("bottom",p)&&(y=g.height+(n-g.y)*c/o,h&&(v=(y-m)*this.ratio+w)),co("top",p)&&(y=g.height-(n-g.y)*c/o,h&&(v=(y-m)*this.ratio+w)),{newWidth:v,newHeight:y}},t.prototype.calculateNewSizeFromAspectRatio=function(r,n,o,a){var l=this.props,c=l.lockAspectRatio,u=l.lockAspectRatioExtraHeight,p=l.lockAspectRatioExtraWidth,g=typeof a.width>"u"?10:a.width,f=typeof o.width>"u"||o.width<0?r:o.width,h=typeof a.height>"u"?10:a.height,b=typeof o.height>"u"||o.height<0?n:o.height,S=u||0,v=p||0;if(c){var y=(h-S)*this.ratio+v,m=(b-S)*this.ratio+v,w=(g-v)/this.ratio+S,x=(f-v)/this.ratio+S,k=Math.max(g,y),E=Math.min(f,m),R=Math.max(h,w),F=Math.min(b,x);r=vl(r,k,E),n=vl(n,R,F)}else r=vl(r,g,f),n=vl(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 o=n.getBoundingClientRect();this.parentLeft=o.left*r,this.parentTop=o.top*r}}if(this.props.bounds&&typeof this.props.bounds!="string"){var a=this.props.bounds.getBoundingClientRect();this.targetLeft=a.left*r,this.targetTop=a.top*r}if(this.resizable){var l=this.resizable.getBoundingClientRect(),c=l.left,u=l.top,p=l.right,g=l.bottom;this.resizableLeft=c*r,this.resizableRight=p*r,this.resizableTop=u*r,this.resizableBottom=g*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,a=0;if(r.nativeEvent&&oD(r.nativeEvent)?(o=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&ml(r.nativeEvent)&&(o=r.nativeEvent.touches[0].clientX,a=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 p=this.parentNode;if(p){var g=this.window.getComputedStyle(p).flexDirection;this.flexDir=g.startsWith("row")?"row":"column",c=u.flexBasis}}this.setBoundingClientRect(),this.bindEvents();var f={original:{x:o,y:a,width:this.size.width,height:this.size.height},isResizing:!0,backgroundStyle:an(an({},this.state.backgroundStyle),{cursor:this.window.getComputedStyle(r.target).cursor||"auto"}),direction:n,flexBasis:c};this.setState(f)}},t.prototype.onMouseMove=function(r){var n=this;if(!(!this.state.isResizing||!this.resizable||!this.window)){if(this.window.TouchEvent&&ml(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,a=o.maxWidth,l=o.maxHeight,c=o.minWidth,u=o.minHeight,p=ml(r)?r.touches[0].clientX:r.clientX,g=ml(r)?r.touches[0].clientY:r.clientY,f=this.state,h=f.direction,b=f.original,S=f.width,v=f.height,y=this.getParentSize(),m=aD(y,this.window.innerWidth,this.window.innerHeight,a,l,c,u);a=m.maxWidth,l=m.maxHeight,c=m.minWidth,u=m.minHeight;var w=this.calculateNewSizeFromDirection(p,g),x=w.newHeight,k=w.newWidth,E=this.calculateNewMaxFromBoundary(a,l);this.props.snap&&this.props.snap.x&&(k=Xm(k,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Xm(x,this.props.snap.y,this.props.snapGap));var R=this.calculateNewSizeFromAspectRatio(k,x,{width:E.maxWidth,height:E.maxHeight},{width:c,height:u});if(k=R.newWidth,x=R.newHeight,this.props.grid){var F=Ym(k,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=Ym(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),$=this.props.snapGap||0,V=$===0||Math.abs(F-k)<=$?F:k,z=$===0||Math.abs(P-x)<=$?P:x;k=V,x=z}var I={width:k-b.width,height:x-b.height};if(this.delta=I,S&&typeof S=="string"){if(S.endsWith("%")){var j=k/y.width*100;k="".concat(j,"%")}else if(S.endsWith("vw")){var W=k/this.window.innerWidth*100;k="".concat(W,"vw")}else if(S.endsWith("vh")){var N=k/this.window.innerHeight*100;k="".concat(N,"vh")}}if(v&&typeof v=="string"){if(v.endsWith("%")){var j=x/y.height*100;x="".concat(j,"%")}else if(v.endsWith("vw")){var W=x/this.window.innerWidth*100;x="".concat(W,"vw")}else if(v.endsWith("vh")){var N=x/this.window.innerHeight*100;x="".concat(N,"vh")}}var Y={width:this.createSizeForCssProperty(k,"width"),height:this.createSizeForCssProperty(x,"height")};this.flexDir==="row"?Y.flexBasis=Y.width:this.flexDir==="column"&&(Y.flexBasis=Y.height);var X=this.state.width!==Y.width,K=this.state.height!==Y.height,ge=this.state.flexBasis!==Y.flexBasis,D=X||K||ge;D&&$n.flushSync(function(){n.setState(Y)}),this.props.onResize&&D&&this.props.onResize(r,h,this.resizable,I)}},t.prototype.onMouseUp=function(r){var n,o,a=this.state,l=a.isResizing,c=a.direction;a.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:(o=this.props.size.height)!==null&&o!==void 0?o:"auto"}),this.unbindEvents(),this.setState({isResizing:!1,backgroundStyle:an(an({},this.state.backgroundStyle),{cursor:"auto"})}))},t.prototype.updateSize=function(r){var n,o;this.setState({width:(n=r.width)!==null&&n!==void 0?n:"auto",height:(o=r.height)!==null&&o!==void 0?o:"auto"})},t.prototype.renderResizer=function(){var r=this,n=this.props,o=n.enable,a=n.handleStyles,l=n.handleClasses,c=n.handleWrapperStyle,u=n.handleWrapperClass,p=n.handleComponent;if(!o)return null;var g=Object.keys(o).map(function(f){return o[f]!==!1?T.jsx(rD,{direction:f,onResizeStart:r.onResizeStart,replaceStyles:a&&a[f],className:l&&l[f],children:p&&p[f]?p[f]:null},f):null});return T.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 lD.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),o=an(an(an({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&&(o.flexBasis=this.state.flexBasis);var a=this.props.as||"div";return T.jsxs(a,an({style:o,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&T.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})(M.PureComponent);const uD={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},dD={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},bw=({depth:e=0,className:t,borderType:r,disabled:n})=>ue("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?dD[r]:"border-panel-border",uD[e],t),fD=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 o=e.match(/min-h-\[(\d+)px\]/);o&&(t.minHeight=parseInt(o[1],10));const a=e.match(/max-h-\[(\d+)px\]/);return a&&(t.maxHeight=parseInt(a[1],10)),t},yw=M.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:o=10,maxWidth:a,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:p,size:g,grid:f,snap:h,lockAspectRatio:b=!1,enable:S,handleStyles:v={},handleClasses:y={},handleComponent:m={},style:w={},className:x,onResizeStart:k,onResize:E,onResizeStop:R,scale:F=1,bounds:P,snapGap:$,as:V="div",depth:z,disabled:I},j)=>{const W=bw({depth:z,className:x,disabled:I}),N=fD(x),Y=g?{size:g}:t!==void 0||r!==void 0?{size:{width:t??"auto",height:r??"auto"}}:{},X=p?{defaultSize:p}:c!==void 0||u!==void 0?{defaultSize:{width:c??"auto",height:u??"auto"}}:{},K=M.useRef(null);return M.useImperativeHandle(j,()=>{var ge;return(ge=K.current)==null?void 0:ge.resizable}),T.jsx(cD,{"data-qui":"Resizable",ref:K,...Y,...X,minWidth:n??N.minWidth,minHeight:o??N.minHeight,maxWidth:a??N.maxWidth,maxHeight:l??N.maxHeight,grid:f,snap:h,lockAspectRatio:b,enable:S,handleStyles:v,handleClasses:y,handleComponent:m,style:w,className:ue("relative box-border",W),onResizeStart:k,onResize:E,onResizeStop:R,scale:F,bounds:P,snapGap:$,as:V,children:e})});yw.displayName="Resizable";const ww=({isDragging:e=!1,className:t})=>T.jsx("div",{className:ue("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:T.jsx("div",{className:ue("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});ww.displayName="Handle";const uo={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"}},yl={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"}},pD=(e,t,r,n,o,a)=>({container:ue("inline-flex items-center",uo[e].gap,a),track:ue("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",uo[e].track,{[yl[t].bg]:r&&!n&&!o,"bg-input-bg":!r&&!n||o,"bg-panel cursor-not-allowed":n,"cursor-pointer":!n}),thumb:ue("bg-input-text pointer-events-none inline-flex items-center justify-center shadow-xs","transition-all duration-200 ease-in-out","rounded-full absolute",uo[e].thumb,r?uo[e].thumbChecked:uo[e].thumbUnchecked,{[yl[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:ue("flex items-center justify-center z-10 w-1/2 p-0.5",{[yl[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:ue("flex items-center justify-center z-10 w-1/2 p-0.5",{[yl[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:ue("font-medium text-body",uo[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),xw=M.forwardRef(({label:e,checked:t,defaultChecked:r=!1,disabled:n=!1,size:o="md",color:a="primary",icons:l,onChange:c,className:u,id:p,name:g,...f},h)=>{const[b,S]=M.useState(r),v=t!==void 0,y=v?t:b,m=()=>{const x=!y;v||S(x),c==null||c(x)},w=pD(o,a,y,n,!!l,u);return T.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&T.jsx("label",{htmlFor:p,className:w.label,children:e}),T.jsxs("button",{ref:h,...f,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:n,onClick:m,name:g,id:p,className:w.track,children:[l&&T.jsx("span",{className:w.iconLeft,children:l.unchecked}),T.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&T.jsx("span",{className:w.iconRight,children:l.checked})]})]})});xw.displayName="Toggle";M.createContext(null);const hs=M.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:o,...a},l)=>{const c=bw({depth:e,className:t,borderType:n,disabled:o});return T.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":o,...a,children:r})});hs.displayName="Panel";const Qa={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"}},Vl={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"}},hD=(e,t,r,n)=>ue("inline-flex items-center justify-center font-medium border",Qa[e].container,Vl[t].bg,Vl[t].text,Vl[t].border,Qa[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),gD=(e,t,r)=>ue({[Qa[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}),vD=e=>ue(Qa[e].text),Sw=(e,t,r)=>ue("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",Qa[e].iconButton,Vl[t].buttonHover,{"pointer-events-none":r}),_w=M.createContext(null),Nc=()=>{const e=M.useContext(_w);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},cp=M.forwardRef(({size:e="md",color:t="primary",className:r,children:n,disabled:o=!1,onClick:a,...l},c)=>{const u={size:e,color:t,disabled:o},p=!!a;return T.jsx(_w.Provider,{value:u,children:T.jsx("div",{"data-qui":"Pill",ref:c,onClick:a,className:ue(hD(e,t,o,p),r),...l,children:n})})});cp.displayName="Pill.Root";const up=M.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=Nc();return T.jsx("span",{ref:n,className:ue(vD(o),e),...r,children:t})});up.displayName="Pill.Text";const dp=M.forwardRef(({className:e,children:t,label:r,position:n,...o},a)=>{const{size:l,color:c,disabled:u}=Nc(),p=!!r,g=T.jsx("span",{ref:a,className:ue(gD(l,c,p),e,{"opacity-60":u}),...o,children:t});return p&&!u?T.jsx(gw,{label:r||"",position:n||"up",children:g}):g});dp.displayName="Pill.Icon";const Ew=M.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a,disabled:l}=Nc();return T.jsx("button",{ref:n,type:"button",disabled:l,className:ue(Sw(o,a,l),e),...r,children:t})});Ew.displayName="Pill.Button";const fp=M.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...o},a)=>{const{size:l,color:c,disabled:u}=Nc();return T.jsx("button",{ref:a,type:"button",disabled:u,className:ue(Sw(l,c,u),e),onClick:t,"aria-label":r,...o,children:n||T.jsx(Ic,{})})});fp.displayName="Pill.Close";const kw=M.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:o,closable:a=!1,className:l,children:c,disabled:u=!1,...p},g)=>T.jsxs(cp,{ref:g,size:e,color:t,className:l,disabled:u,...p,children:[n&&T.jsx(dp,{children:n}),c||r&&T.jsx(up,{children:r}),a&&T.jsx(fp,{onClose:o})]}));kw.displayName="Pill";Object.assign(kw,{Root:cp,Text:up,Icon:dp,Button:Ew,Close:fp});const mD=M.createContext(null),Yt=()=>{const e=M.useContext(mD);if(!e)throw new Error("Select compound components must be used within Select.Root");return e},qt={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"}},_t={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"}},bD=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:o,hasMessage:a})=>{const l=_t[o?"negative":t];return ue("flex items-center justify-between only:rounded first:rounded-t last:rounded-b",qt[e].control,l.control,a?["ring-1",l.messageBorder]:["border",r?"border-input-border":n?l.controlFocused:`border-select-border
36
+ focus-within:${l.controlFocused}`],{[l.controlDisabled]:r})},yD=({isMulti:e})=>ue("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),wD=({size:e,color:t})=>ue("bg-transparent border-0 outline-hidden flex-1 min-w-7.5 px-1 text-input-text",qt[e].input,_t[t].placeholder),xD=({size:e,color:t})=>ue("select-none truncate",qt[e].placeholder,_t[t].placeholder),SD=({size:e,color:t,isDisabled:r})=>ue("truncate",qt[e].singleValue,r?_t[t].singleValueDisabled:_t[t].singleValue),_D=({size:e,color:t,isDisabled:r,isFocused:n})=>ue("inline-flex items-center rounded-xs",qt[e].multiValue,r?_t[t].multiValueDisabled:_t[t].multiValue,{"border border-white":n&&!r}),ED=({size:e})=>ue("truncate",qt[e].multiValueLabel),kD=({size:e,color:t,isDisabled:r})=>ue("flex items-center justify-center cursor-pointer transition-colors",qt[e].multiValueRemove,_t[t].multiValueRemove),Ow=({size:e,color:t,isDisabled:r})=>ue("flex items-center justify-center transition-colors rounded",qt[e].clearIndicator,r?"hidden":[_t[t].clearIndicator,_t[t].clearIndicatorHover]),OD=({size:e,color:t,isDisabled:r})=>ue("flex items-center justify-center transition-colors rounded",qt[e].dropdownIndicator,r?"text-grey-200":[_t[t].dropdownIndicator,_t[t].dropdownIndicatorHover]),TD=({size:e,placement:t,hasMessage:r,color:n})=>{const o={auto:"top-full rounded-t-none",bottom:"top-full rounded-t-none",top:"bottom-full rounded-b-none"};return ue("absolute w-full z-50 rounded overflow-hidden border border-t-0",_t[n].menu,{[_t[n].messageBorder]:r},o[t||"auto"],qt[e].menu)},AD=({size:e})=>ue("overflow-y-auto",qt[e].menuList,_t.primary.menuList),RD=({size:e,color:t,isDisabled:r,isFocused:n,isSelected:o})=>ue("transition-colors duration-150 cursor-pointer mx-1 rounded flex items-center gap-2",qt[e].option,{[_t[t].optionDisabled]:r,[_t[t].optionSelected]:o&&!r,[_t[t].optionFocused]:n&&!o&&!r,[_t[t].option]:!o&&!n&&!r}),CD=({size:e})=>ue(qt[e].group),PD=({size:e,color:t})=>ue(qt[e].groupHeading,_t[t].groupHeading),ID=({size:e})=>ue("text-grey-100",qt[e].loadingMessage),ND=({size:e})=>ue(qt[e].noOptionsMessage,_t.primary.noOptionsMessage),DD=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function Sa(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 St(){return St=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},St.apply(null,arguments)}function bf(e,t){return bf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},bf(e,t)}function MD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,bf(e,t)}var wl={exports:{}},kd={exports:{}},Ke={};/** @license React v16.13.1
37
+ * react-is.production.min.js
38
+ *
39
+ * Copyright (c) Facebook, Inc. and its affiliates.
40
+ *
41
+ * This source code is licensed under the MIT license found in the
42
+ * LICENSE file in the root directory of this source tree.
43
+ */var Qm;function LD(){if(Qm)return Ke;Qm=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,o=e?Symbol.for("react.strict_mode"):60108,a=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,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,f=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(E){if(typeof E=="object"&&E!==null){var R=E.$$typeof;switch(R){case t:switch(E=E.type,E){case u:case p:case n:case a:case o:case f:return E;default:switch(E=E&&E.$$typeof,E){case c:case g:case S:case b:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===p}return Ke.AsyncMode=u,Ke.ConcurrentMode=p,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=a,Ke.StrictMode=o,Ke.Suspense=f,Ke.isAsyncMode=function(E){return k(E)||x(E)===u},Ke.isConcurrentMode=k,Ke.isContextConsumer=function(E){return x(E)===c},Ke.isContextProvider=function(E){return x(E)===l},Ke.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ke.isForwardRef=function(E){return x(E)===g},Ke.isFragment=function(E){return x(E)===n},Ke.isLazy=function(E){return x(E)===S},Ke.isMemo=function(E){return x(E)===b},Ke.isPortal=function(E){return x(E)===r},Ke.isProfiler=function(E){return x(E)===a},Ke.isStrictMode=function(E){return x(E)===o},Ke.isSuspense=function(E){return x(E)===f},Ke.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===p||E===a||E===o||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===b||E.$$typeof===l||E.$$typeof===c||E.$$typeof===g||E.$$typeof===y||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Ke.typeOf=x,Ke}var tt={};/** @license React v16.13.1
44
+ * react-is.development.js
45
+ *
46
+ * Copyright (c) Facebook, Inc. and its affiliates.
47
+ *
48
+ * This source code is licensed under the MIT license found in the
49
+ * LICENSE file in the root directory of this source tree.
50
+ */var eb;function $D(){return eb||(eb=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,o=e?Symbol.for("react.strict_mode"):60108,a=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,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,f=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===p||Z===a||Z===o||Z===f||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 k(Z){if(typeof Z=="object"&&Z!==null){var ke=Z.$$typeof;switch(ke){case t:var me=Z.type;switch(me){case u:case p:case n:case a:case o:case f:return me;default:var nt=me&&me.$$typeof;switch(nt){case c:case g:case S:case b:case l:return nt;default:return ke}}case r:return ke}}}var E=u,R=p,F=c,P=l,$=t,V=g,z=n,I=S,j=b,W=r,N=a,Y=o,X=f,K=!1;function ge(Z){return K||(K=!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.")),D(Z)||k(Z)===u}function D(Z){return k(Z)===p}function U(Z){return k(Z)===c}function ee(Z){return k(Z)===l}function te(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return k(Z)===g}function ce(Z){return k(Z)===n}function ae(Z){return k(Z)===S}function re(Z){return k(Z)===b}function de(Z){return k(Z)===r}function he(Z){return k(Z)===a}function fe(Z){return k(Z)===o}function xe(Z){return k(Z)===f}tt.AsyncMode=E,tt.ConcurrentMode=R,tt.ContextConsumer=F,tt.ContextProvider=P,tt.Element=$,tt.ForwardRef=V,tt.Fragment=z,tt.Lazy=I,tt.Memo=j,tt.Portal=W,tt.Profiler=N,tt.StrictMode=Y,tt.Suspense=X,tt.isAsyncMode=ge,tt.isConcurrentMode=D,tt.isContextConsumer=U,tt.isContextProvider=ee,tt.isElement=te,tt.isForwardRef=J,tt.isFragment=ce,tt.isLazy=ae,tt.isMemo=re,tt.isPortal=de,tt.isProfiler=he,tt.isStrictMode=fe,tt.isSuspense=xe,tt.isValidElementType=x,tt.typeOf=k})()),tt}var tb;function Tw(){return tb||(tb=1,process.env.NODE_ENV==="production"?kd.exports=LD():kd.exports=$D()),kd.exports}/*
51
+ object-assign
52
+ (c) Sindre Sorhus
53
+ @license MIT
54
+ */var Od,rb;function zD(){if(rb)return Od;rb=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[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 p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Od=o()?Object.assign:function(a,l){for(var c,u=n(a),p,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var f in c)t.call(c,f)&&(u[f]=c[f]);if(e){p=e(c);for(var h=0;h<p.length;h++)r.call(c,p[h])&&(u[p[h]]=c[p[h]])}}return u},Od}var Td,nb;function pp(){if(nb)return Td;nb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Td=e,Td}var ib,ob;function Aw(){return ob||(ob=1,ib=Function.call.bind(Object.prototype.hasOwnProperty)),ib}var Ad,ab;function jD(){if(ab)return Ad;ab=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=pp(),r={},n=Aw();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,u,p){if(process.env.NODE_ENV!=="production"){for(var g in a)if(n(a,g)){var f;try{if(typeof a[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 a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[g](l,g,u,c,null,t)}catch(S){f=S}if(f&&!(f 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 f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var b=p?p():"";e("Failed "+c+" type: "+f.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Ad=o,Ad}var Rd,sb;function FD(){if(sb)return Rd;sb=1;var e=Tw(),t=zD(),r=pp(),n=Aw(),o=jD(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Rd=function(c,u){var p=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function f(D){var U=D&&(p&&D[p]||D[g]);if(typeof U=="function")return U}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:k(),elementType:E(),instanceOf:R,node:V(),objectOf:P,oneOf:F,oneOfType:$,shape:I,exact:j};function S(D,U){return D===U?D!==0||1/D===1/U:D!==D&&U!==U}function v(D,U){this.message=D,this.data=U&&typeof U=="object"?U:{},this.stack=""}v.prototype=Error.prototype;function y(D){if(process.env.NODE_ENV!=="production")var U={},ee=0;function te(ce,ae,re,de,he,fe,xe){if(de=de||h,fe=fe||re,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 ke=de+":"+re;!U[ke]&&ee<3&&(a("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."),U[ke]=!0,ee++)}}return ae[re]==null?ce?ae[re]===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:D(ae,re,de,he,fe)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(D){function U(ee,te,J,ce,ae,re){var de=ee[te],he=Y(de);if(he!==D){var fe=X(de);return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+fe+"` supplied to `"+J+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return y(U)}function w(){return y(l)}function x(D){function U(ee,te,J,ce,ae){if(typeof D!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var re=ee[te];if(!Array.isArray(re)){var de=Y(re);return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<re.length;he++){var fe=D(re,he,J,ce,ae+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(U)}function k(){function D(U,ee,te,J,ce){var ae=U[ee];if(!c(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+ce+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(D)}function E(){function D(U,ee,te,J,ce){var ae=U[ee];if(!e.isValidElementType(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+ce+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(D)}function R(D){function U(ee,te,J,ce,ae){if(!(ee[te]instanceof D)){var re=D.name||h,de=ge(ee[te]);return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected ")+("instance of `"+re+"`."))}return null}return y(U)}function F(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function U(ee,te,J,ce,ae){for(var re=ee[te],de=0;de<D.length;de++)if(S(re,D[de]))return null;var he=JSON.stringify(D,function(fe,xe){var Z=X(xe);return Z==="symbol"?String(xe):xe});return new v("Invalid "+ce+" `"+ae+"` of value `"+String(re)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return y(U)}function P(D){function U(ee,te,J,ce,ae){if(typeof D!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var re=ee[te],de=Y(re);if(de!=="object")return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an object."));for(var he in re)if(n(re,he)){var fe=D(re,he,J,ce,ae+"."+he,r);if(fe instanceof Error)return fe}return null}return y(U)}function $(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<D.length;U++){var ee=D[U];if(typeof ee!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(ee)+" at index "+U+"."),l}function te(J,ce,ae,re,de){for(var he=[],fe=0;fe<D.length;fe++){var xe=D[fe],Z=xe(J,ce,ae,re,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var ke=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+re+" `"+de+"` supplied to "+("`"+ae+"`"+ke+"."))}return y(te)}function V(){function D(U,ee,te,J,ce){return W(U[ee])?null:new v("Invalid "+J+" `"+ce+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(D)}function z(D,U,ee,te,J){return new v((D||"React class")+": "+U+" type `"+ee+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function I(D){function U(ee,te,J,ce,ae){var re=ee[te],de=Y(re);if(de!=="object")return new v("Invalid "+ce+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in D){var fe=D[he];if(typeof fe!="function")return z(J,ce,ae,he,X(fe));var xe=fe(re,he,J,ce,ae+"."+he,r);if(xe)return xe}return null}return y(U)}function j(D){function U(ee,te,J,ce,ae){var re=ee[te],de=Y(re);if(de!=="object")return new v("Invalid "+ce+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},ee[te],D);for(var fe in he){var xe=D[fe];if(n(D,fe)&&typeof xe!="function")return z(J,ce,ae,fe,X(xe));if(!xe)return new v("Invalid "+ce+" `"+ae+"` key `"+fe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(ee[te],null," ")+`
55
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var Z=xe(re,fe,J,ce,ae+"."+fe,r);if(Z)return Z}return null}return y(U)}function W(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(W);if(D===null||c(D))return!0;var U=f(D);if(U){var ee=U.call(D),te;if(U!==D.entries){for(;!(te=ee.next()).done;)if(!W(te.value))return!1}else for(;!(te=ee.next()).done;){var J=te.value;if(J&&!W(J[1]))return!1}}else return!1;return!0;default:return!1}}function N(D,U){return D==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function Y(D){var U=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":N(U,D)?"symbol":U}function X(D){if(typeof D>"u"||D===null)return""+D;var U=Y(D);if(U==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return U}function K(D){var U=X(D);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function ge(D){return!D.constructor||!D.constructor.name?h:D.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Rd}var Cd,lb;function HD(){if(lb)return Cd;lb=1;var e=pp();function t(){}function r(){}return r.resetWarningCache=t,Cd=function(){function n(l,c,u,p,g,f){if(f!==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 o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Cd}var cb;function BD(){if(cb)return wl.exports;if(cb=1,process.env.NODE_ENV!=="production"){var e=Tw(),t=!0;wl.exports=FD()(e.isElement,t)}else wl.exports=HD()();return wl.exports}var WD=BD();const pe=ew(WD);var Pd={exports:{}},Ze={};/**
56
+ * @license React
57
+ * react-is.production.min.js
58
+ *
59
+ * Copyright (c) Facebook, Inc. and its affiliates.
60
+ *
61
+ * This source code is licensed under the MIT license found in the
62
+ * LICENSE file in the root directory of this source tree.
63
+ */var ub;function UD(){if(ub)return Ze;ub=1;var e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),n=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),f=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 o:case n:case p:case g:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case u:case h:case f:case a:return y;default:return m}}case t:return m}}}return Ze.ContextConsumer=l,Ze.ContextProvider=a,Ze.Element=e,Ze.ForwardRef=u,Ze.Fragment=r,Ze.Lazy=h,Ze.Memo=f,Ze.Portal=t,Ze.Profiler=o,Ze.StrictMode=n,Ze.Suspense=p,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)===a},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)===f},Ze.isPortal=function(y){return v(y)===t},Ze.isProfiler=function(y){return v(y)===o},Ze.isStrictMode=function(y){return v(y)===n},Ze.isSuspense=function(y){return v(y)===p},Ze.isSuspenseList=function(y){return v(y)===g},Ze.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===p||y===g||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===h||y.$$typeof===f||y.$$typeof===a||y.$$typeof===l||y.$$typeof===u||y.$$typeof===S||y.getModuleId!==void 0)},Ze.typeOf=v,Ze}var rt={};/**
64
+ * @license React
65
+ * react-is.development.js
66
+ *
67
+ * Copyright (c) Facebook, Inc. and its affiliates.
68
+ *
69
+ * This source code is licensed under the MIT license found in the
70
+ * LICENSE file in the root directory of this source tree.
71
+ */var db;function qD(){return db||(db=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"),o=Symbol.for("react.profiler"),a=Symbol.for("react.provider"),l=Symbol.for("react.context"),c=Symbol.for("react.server_context"),u=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),f=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 k(me){return!!(typeof me=="string"||typeof me=="function"||me===r||me===o||w||me===n||me===p||me===g||m||me===b||S||v||y||typeof me=="object"&&me!==null&&(me.$$typeof===h||me.$$typeof===f||me.$$typeof===a||me.$$typeof===l||me.$$typeof===u||me.$$typeof===x||me.getModuleId!==void 0))}function E(me){if(typeof me=="object"&&me!==null){var nt=me.$$typeof;switch(nt){case e:var gt=me.type;switch(gt){case r:case o:case n:case p:case g:return gt;default:var mn=gt&&gt.$$typeof;switch(mn){case c:case l:case u:case h:case f:case a:return mn;default:return nt}}case t:return nt}}}var R=l,F=a,P=e,$=u,V=r,z=h,I=f,j=t,W=o,N=n,Y=p,X=g,K=!1,ge=!1;function D(me){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(me){return ge||(ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(me){return E(me)===l}function te(me){return E(me)===a}function J(me){return typeof me=="object"&&me!==null&&me.$$typeof===e}function ce(me){return E(me)===u}function ae(me){return E(me)===r}function re(me){return E(me)===h}function de(me){return E(me)===f}function he(me){return E(me)===t}function fe(me){return E(me)===o}function xe(me){return E(me)===n}function Z(me){return E(me)===p}function ke(me){return E(me)===g}rt.ContextConsumer=R,rt.ContextProvider=F,rt.Element=P,rt.ForwardRef=$,rt.Fragment=V,rt.Lazy=z,rt.Memo=I,rt.Portal=j,rt.Profiler=W,rt.StrictMode=N,rt.Suspense=Y,rt.SuspenseList=X,rt.isAsyncMode=D,rt.isConcurrentMode=U,rt.isContextConsumer=ee,rt.isContextProvider=te,rt.isElement=J,rt.isForwardRef=ce,rt.isFragment=ae,rt.isLazy=re,rt.isMemo=de,rt.isPortal=he,rt.isProfiler=fe,rt.isStrictMode=xe,rt.isSuspense=Z,rt.isSuspenseList=ke,rt.isValidElementType=k,rt.typeOf=E})()),rt}var fb;function VD(){return fb||(fb=1,process.env.NODE_ENV==="production"?Pd.exports=UD():Pd.exports=qD()),Pd.exports}var pb=VD();const hb=e=>typeof e=="object"&&e!=null&&e.nodeType===1,gb=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",xl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return gb(r.overflowY,t)||gb(r.overflowX,t)||(n=>{const o=(a=>{if(!a.ownerDocument||!a.ownerDocument.defaultView)return null;try{return a.ownerDocument.defaultView.frameElement}catch{return null}})(n);return!!o&&(o.clientHeight<n.scrollHeight||o.clientWidth<n.scrollWidth)})(e)}return!1},Sl=(e,t,r,n,o,a,l,c)=>a<e&&l>t||a>e&&l<t?0:a<=e&&c<=r||l>=t&&c>=r?a-e-n:l>t&&c<r||a<e&&c>r?l-t+o:0,GD=e=>e.parentElement??(e.getRootNode().host||null),KD=(e,t)=>{var r,n,o,a;if(typeof document>"u")return[];const{inline:l,boundary:c,skipOverflowHiddenElements:u}=t,p=typeof c=="function"?c:j=>j!==c;if(!hb(e))throw new TypeError("Invalid target");const g=document.scrollingElement||document.documentElement,f=[];let h=e;for(;hb(h)&&p(h);){if(h=GD(h),h===g){f.push(h);break}h!=null&&h===document.body&&xl(h)&&!xl(document.documentElement)||h!=null&&xl(h,u)&&f.push(h)}const b=(n=(r=window.visualViewport)==null?void 0:r.width)!=null?n:innerWidth,S=(a=(o=window.visualViewport)==null?void 0:o.height)!=null?a:innerHeight,{scrollX:v,scrollY:y}=window,{height:m,width:w,top:x,right:k,bottom:E,left:R}=e.getBoundingClientRect(),{top:F,right:P,left:$}=(j=>{const W=window.getComputedStyle(j);return{top:parseFloat(W.scrollMarginTop)||0,right:parseFloat(W.scrollMarginRight)||0,bottom:parseFloat(W.scrollMarginBottom)||0,left:parseFloat(W.scrollMarginLeft)||0}})(e);let V=x-F,z=l==="center"?R+w/2-$+P:l==="end"?k+P:R-$;const I=[];for(let j=0;j<f.length;j++){const W=f[j],{height:N,width:Y,top:X,right:K,bottom:ge,left:D}=W.getBoundingClientRect();if(x>=0&&R>=0&&E<=S&&k<=b&&(W===g&&!xl(W)||x>=X&&E<=ge&&R>=D&&k<=K))return I;const U=getComputedStyle(W),ee=parseInt(U.borderLeftWidth,10),te=parseInt(U.borderTopWidth,10),J=parseInt(U.borderRightWidth,10),ce=parseInt(U.borderBottomWidth,10);let ae=0,re=0;const de="offsetWidth"in W?W.offsetWidth-W.clientWidth-ee-J:0,he="offsetHeight"in W?W.offsetHeight-W.clientHeight-te-ce:0,fe="offsetWidth"in W?W.offsetWidth===0?0:Y/W.offsetWidth:0,xe="offsetHeight"in W?W.offsetHeight===0?0:N/W.offsetHeight:0;if(g===W)ae=Sl(y,y+S,S,te,ce,y+V,y+V+m,m),re=l==="start"?z:l==="center"?z-b/2:l==="end"?z-b:Sl(v,v+b,b,ee,J,v+z,v+z+w,w),ae=Math.max(0,ae+y),re=Math.max(0,re+v);else{ae=Sl(X,ge,N,te,ce+he,V,V+m,m),re=l==="start"?z-D-ee:l==="center"?z-(D+Y/2)+de/2:l==="end"?z-K+J+de:Sl(D,K,Y,ee,J+de,z,z+w,w);const{scrollLeft:Z,scrollTop:ke}=W;ae=xe===0?0:Math.max(0,Math.min(ke+ae/xe,W.scrollHeight-N/xe+he)),re=fe===0?0:Math.max(0,Math.min(Z+re/fe,W.scrollWidth-Y/fe+de)),V+=ke-ae,z+=Z-re}I.push({el:W,top:ae,left:re})}return I};var Co=function(){return Co=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o])}return e},Co.apply(this,arguments)},ZD=0;function vb(e){return typeof e=="function"?e:Rn}function Rn(){}function Rw(e,t){if(e){var r=KD(e,{boundary:t});r.forEach(function(n){var o=n.el,a=n.top,l=n.left;o.scrollTop=a,o.scrollLeft=l})}}function mb(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function hp(e,t){var r;function n(){r&&clearTimeout(r)}function o(){for(var a=arguments.length,l=new Array(a),c=0;c<a;c++)l[c]=arguments[c];n(),r=setTimeout(function(){r=null,e.apply(void 0,l)},t)}return o.cancel=n,o}function rn(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){for(var o=arguments.length,a=new Array(o>1?o-1:0),l=1;l<o;l++)a[l-1]=arguments[l];return t.some(function(c){return c&&c.apply(void 0,[n].concat(a)),n.preventDownshiftDefault||n.hasOwnProperty("nativeEvent")&&n.nativeEvent.preventDownshiftDefault})}}function bb(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){t.forEach(function(o){typeof o=="function"?o(n):o&&(o.current=n)})}}function YD(){return String(ZD++)}function XD(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 yb(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function Cw(e){return typeof e.type=="string"}function Pw(e){return e.props}function JD(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var QD=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function _l(e){e===void 0&&(e={});var t={};return QD.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function eM(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=yf(t,n)?t[n]:e[n],r},{})}function yf(e,t){return e[t]!==void 0}function wb(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function tM(e){return Object.prototype.toString.call(e)==="[object Object]"}function Id(e,t,r,n,o){var a=r.length;if(a===0)return-1;var l=a-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=dc(c,t<0,r,n,o);return u===-1?e>=a?-1:e:u}function dc(e,t,r,n,o){o===void 0&&(o=!1);var a=r.length;if(t){for(var l=e;l>=0;l--)if(!n(r[l],l))return l}else for(var c=e;c<a;c++)if(!n(r[c],c))return c;return o?dc(t?a-1:0,t,r,n):-1}function xb(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(o){return o&&(mb(o,e,r)||n&&mb(o,r.document.activeElement,r))})}var gp=Rn;process.env.NODE_ENV!=="production"&&(gp=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(o){t[o]!==void 0&&r[o]===void 0?console.error('downshift: A component has changed the controlled prop "'+o+'" to be uncontrolled. '+n):t[o]===void 0&&r[o]!==void 0&&console.error('downshift: A component has changed the uncontrolled prop "'+o+'" to be controlled. '+n)})});var rM=hp(function(e){Iw(e).textContent=""},500);function Iw(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 Nw(e,t){if(!(!e||!t)){var r=Iw(t);r.textContent=e,rM(t)}}var Dw=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,Mw=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,Lw=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Gl=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,Kl=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,$w=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,zw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,jw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,Fw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,Hw=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Bw=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,Ww=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Uw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,wf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,qw=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Vw=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Gw=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,nM=Object.freeze({__proto__:null,blurButton:qw,blurInput:Bw,changeInput:Ww,clickButton:wf,clickItem:Hw,controlledPropUpdatedSelectedItem:Vw,itemMouseEnter:Lw,keyDownArrowDown:Kl,keyDownArrowUp:Gl,keyDownEnd:Fw,keyDownEnter:zw,keyDownEscape:$w,keyDownHome:jw,keyDownSpaceButton:Uw,mouseUp:Mw,touchEnd:Gw,unknown:Dw}),iM=["refKey","ref"],oM=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],aM=["onKeyDown","onBlur","onChange","onInput","onChangeText"],sM=["refKey","ref"],lM=["onMouseMove","onMouseDown","onClick","onPress","index","item"],cM=(function(){var e=(function(t){function r(o){var a;a=t.call(this,o)||this,a.id=a.props.id||"downshift-"+YD(),a.menuId=a.props.menuId||a.id+"-menu",a.labelId=a.props.labelId||a.id+"-label",a.inputId=a.props.inputId||a.id+"-input",a.getItemId=a.props.getItemId||function(w){return a.id+"-item-"+w},a.items=[],a.itemCount=null,a.previousResultCount=0,a.timeoutIds=[],a.internalSetTimeout=function(w,x){var k=setTimeout(function(){a.timeoutIds=a.timeoutIds.filter(function(E){return E!==k}),w()},x);a.timeoutIds.push(k)},a.setItemCount=function(w){a.itemCount=w},a.unsetItemCount=function(){a.itemCount=null},a.isItemDisabled=function(w,x){var k=a.getItemNodeFromIndex(x);return k&&k.hasAttribute("disabled")},a.setHighlightedIndex=function(w,x){w===void 0&&(w=a.props.defaultHighlightedIndex),x===void 0&&(x={}),x=_l(x),a.internalSetState(St({highlightedIndex:w},x))},a.clearSelection=function(w){a.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:a.props.defaultHighlightedIndex,isOpen:a.props.defaultIsOpen},w)},a.selectItem=function(w,x,k){x=_l(x),a.internalSetState(St({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,selectedItem:w,inputValue:a.props.itemToString(w)},x),k)},a.selectItemAtIndex=function(w,x,k){var E=a.items[w];E!=null&&a.selectItem(E,x,k)},a.selectHighlightedItem=function(w,x){return a.selectItemAtIndex(a.getState().highlightedIndex,w,x)},a.internalSetState=function(w,x){var k,E,R={},F=typeof w=="function";return!F&&w.hasOwnProperty("inputValue")&&a.props.onInputValueChange(w.inputValue,St({},a.getStateAndHelpers(),w)),a.setState(function(P){var $;P=a.getState(P);var V=F?w(P):w;V=a.props.stateReducer(P,V),k=V.hasOwnProperty("selectedItem");var z={};return k&&V.selectedItem!==P.selectedItem&&(E=V.selectedItem),($=V).type||($.type=Dw),Object.keys(V).forEach(function(I){P[I]!==V[I]&&(R[I]=V[I]),I!=="type"&&(V[I],yf(a.props,I)||(z[I]=V[I]))}),F&&V.hasOwnProperty("inputValue")&&a.props.onInputValueChange(V.inputValue,St({},a.getStateAndHelpers(),V)),z},function(){vb(x)();var P=Object.keys(R).length>1;P&&a.props.onStateChange(R,a.getStateAndHelpers()),k&&a.props.onSelect(w.selectedItem,a.getStateAndHelpers()),E!==void 0&&a.props.onChange(E,a.getStateAndHelpers()),a.props.onUserAction(R,a.getStateAndHelpers())})},a.rootRef=function(w){return a._rootNode=w},a.getRootProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,P=E.ref,$=Sa(E,iM),V=x===void 0?{}:x,z=V.suppressRefError,I=z===void 0?!1:z;a.getRootProps.called=!0,a.getRootProps.refKey=F,a.getRootProps.suppressRefError=I;var j=a.getState(),W=j.isOpen;return St((k={},k[F]=bb(P,a.rootRef),k.role="combobox",k["aria-expanded"]=W,k["aria-haspopup"]="listbox",k["aria-owns"]=W?a.menuId:void 0,k["aria-labelledby"]=a.labelId,k),$)},a.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?5:1;this.moveHighlightedIndex(k,{type:Kl})}else this.internalSetState({isOpen:!0,type:Kl},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,P=Id(F,1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:Kl})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?-5:-1;this.moveHighlightedIndex(k,{type:Gl})}else this.internalSetState({isOpen:!0,type:Gl},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,P=Id(F,-1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:Gl})}})},Enter:function(w){if(w.which!==229){var x=this.getState(),k=x.isOpen,E=x.highlightedIndex;if(k&&E!=null){w.preventDefault();var R=this.items[E],F=this.getItemNodeFromIndex(E);if(R==null||F&&F.hasAttribute("disabled"))return;this.selectHighlightedItem({type:zw})}}},Escape:function(w){w.preventDefault(),this.reset(St({type:$w},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=St({},a.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:Uw})}}),a.inputKeyDownHandlers=St({},a.keyDownHandlers,{Home:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=dc(0,!1,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:jw})}}},End:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=dc(E-1,!0,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:Fw})}}}}),a.getToggleButtonProps=function(w){var x=w===void 0?{}:w,k=x.onClick;x.onPress;var E=x.onKeyDown,R=x.onKeyUp,F=x.onBlur,P=Sa(x,oM),$=a.getState(),V=$.isOpen,z={onClick:rn(k,a.buttonHandleClick),onKeyDown:rn(E,a.buttonHandleKeyDown),onKeyUp:rn(R,a.buttonHandleKeyUp),onBlur:rn(F,a.buttonHandleBlur)},I=P.disabled?{}:z;return St({type:"button",role:"button","aria-label":V?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0},I,P)},a.buttonHandleKeyUp=function(w){w.preventDefault()},a.buttonHandleKeyDown=function(w){var x=wb(w);a.buttonKeyDownHandlers[x]&&a.buttonKeyDownHandlers[x].call(a,w)},a.buttonHandleClick=function(w){if(w.preventDefault(),a.props.environment){var x=a.props.environment.document,k=x.body,E=x.activeElement;k&&k===E&&w.target.focus()}process.env.NODE_ENV==="test"?a.toggleMenu({type:wf}):a.internalSetTimeout(function(){return a.toggleMenu({type:wf})})},a.buttonHandleBlur=function(w){var x=w.target;a.internalSetTimeout(function(){if(!(a.isMouseDown||!a.props.environment)){var k=a.props.environment.document.activeElement;(k==null||k.id!==a.inputId)&&k!==x&&a.reset({type:qw})}})},a.getLabelProps=function(w){return St({htmlFor:a.inputId,id:a.labelId},w)},a.getInputProps=function(w){var x=w===void 0?{}:w,k=x.onKeyDown,E=x.onBlur,R=x.onChange,F=x.onInput;x.onChangeText;var P=Sa(x,aM),$,V={};$="onChange";var z=a.getState(),I=z.inputValue,j=z.isOpen,W=z.highlightedIndex;if(!P.disabled){var N;V=(N={},N[$]=rn(R,F,a.inputHandleChange),N.onKeyDown=rn(k,a.inputHandleKeyDown),N.onBlur=rn(E,a.inputHandleBlur),N)}return St({"aria-autocomplete":"list","aria-activedescendant":j&&typeof W=="number"&&W>=0?a.getItemId(W):void 0,"aria-controls":j?a.menuId:void 0,"aria-labelledby":P&&P["aria-label"]?void 0:a.labelId,autoComplete:"off",value:I,id:a.inputId},V,P)},a.inputHandleKeyDown=function(w){var x=wb(w);x&&a.inputKeyDownHandlers[x]&&a.inputKeyDownHandlers[x].call(a,w)},a.inputHandleChange=function(w){a.internalSetState({type:Ww,isOpen:!0,inputValue:w.target.value,highlightedIndex:a.props.defaultHighlightedIndex})},a.inputHandleBlur=function(){a.internalSetTimeout(function(){var w;if(!(a.isMouseDown||!a.props.environment)){var x=a.props.environment.document.activeElement,k=(x==null||(w=x.dataset)==null?void 0:w.toggle)&&a._rootNode&&a._rootNode.contains(x);k||a.reset({type:Bw})}})},a.menuRef=function(w){a._menuNode=w},a.getMenuProps=function(w,x){var k,E=w===void 0?{}:w,R=E.refKey,F=R===void 0?"ref":R,P=E.ref,$=Sa(E,sM),V=x===void 0?{}:x,z=V.suppressRefError,I=z===void 0?!1:z;return a.getMenuProps.called=!0,a.getMenuProps.refKey=F,a.getMenuProps.suppressRefError=I,St((k={},k[F]=bb(P,a.menuRef),k.role="listbox",k["aria-labelledby"]=$&&$["aria-label"]?void 0:a.labelId,k.id=a.menuId,k),$)},a.getItemProps=function(w){var x,k=w===void 0?{}:w,E=k.onMouseMove,R=k.onMouseDown,F=k.onClick;k.onPress;var P=k.index,$=k.item,V=$===void 0?process.env.NODE_ENV==="production"?void 0:JD("getItemProps","item"):$,z=Sa(k,lM);P===void 0?(a.items.push(V),P=a.items.indexOf(V)):a.items[P]=V;var I="onClick",j=F,W=(x={onMouseMove:rn(E,function(){P!==a.getState().highlightedIndex&&(a.setHighlightedIndex(P,{type:Lw}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:rn(R,function(Y){Y.preventDefault()})},x[I]=rn(j,function(){a.selectItemAtIndex(P,{type:Hw})}),x),N=z.disabled?{onMouseDown:W.onMouseDown}:W;return St({id:a.getItemId(P),role:"option","aria-selected":a.getState().highlightedIndex===P},N,z)},a.clearItems=function(){a.items=[]},a.reset=function(w,x){w===void 0&&(w={}),w=_l(w),a.internalSetState(function(k){var E=k.selectedItem;return St({isOpen:a.props.defaultIsOpen,highlightedIndex:a.props.defaultHighlightedIndex,inputValue:a.props.itemToString(E)},w)},x)},a.toggleMenu=function(w,x){w===void 0&&(w={}),w=_l(w),a.internalSetState(function(k){var E=k.isOpen;return St({isOpen:!E},E&&{highlightedIndex:a.props.defaultHighlightedIndex},w)},function(){var k=a.getState(),E=k.isOpen,R=k.highlightedIndex;E&&a.getItemCount()>0&&typeof R=="number"&&a.setHighlightedIndex(R,w),vb(x)()})},a.openMenu=function(w){a.internalSetState({isOpen:!0},w)},a.closeMenu=function(w){a.internalSetState({isOpen:!1},w)},a.updateStatus=hp(function(){var w;if((w=a.props)!=null&&(w=w.environment)!=null&&w.document){var x=a.getState(),k=a.items[x.highlightedIndex],E=a.getItemCount(),R=a.props.getA11yStatusMessage(St({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:E,highlightedItem:k},x));a.previousResultCount=E,Nw(R,a.props.environment.document)}},200);var l=a.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,p=u===void 0?c:u,g=l.defaultIsOpen,f=l.initialIsOpen,h=f===void 0?g:f,b=l.initialInputValue,S=b===void 0?"":b,v=l.initialSelectedItem,y=v===void 0?null:v,m=a.getState({highlightedIndex:p,isOpen:h,inputValue:S,selectedItem:y});return m.selectedItem!=null&&a.props.initialInputValue===void 0&&(m.inputValue=a.props.itemToString(m.selectedItem)),a.state=m,a}MD(r,t);var n=r.prototype;return n.internalClearTimeouts=function(){this.timeoutIds.forEach(function(o){clearTimeout(o)}),this.timeoutIds=[]},n.getState=function(o){return o===void 0&&(o=this.state),eM(o,this.props)},n.getItemCount=function(){var o=this.items.length;return this.itemCount!=null?o=this.itemCount:this.props.itemCount!==void 0&&(o=this.props.itemCount),o},n.getItemNodeFromIndex=function(o){return this.props.environment?this.props.environment.document.getElementById(this.getItemId(o)):null},n.scrollHighlightedItemIntoView=function(){{var o=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(o,this._menuNode)}},n.moveHighlightedIndex=function(o,a){var l=this.getItemCount(),c=this.getState(),u=c.highlightedIndex;if(l>0){var p=Id(u,o,{length:l},this.isItemDisabled,!0);this.setHighlightedIndex(p,a)}},n.getStateAndHelpers=function(){var o=this.getState(),a=o.highlightedIndex,l=o.inputValue,c=o.selectedItem,u=o.isOpen,p=this.props.itemToString,g=this.id,f=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,k=this.selectItem,E=this.selectItemAtIndex,R=this.selectHighlightedItem,F=this.setHighlightedIndex,P=this.clearSelection,$=this.clearItems,V=this.reset,z=this.setItemCount,I=this.unsetItemCount,j=this.internalSetState;return{getRootProps:f,getToggleButtonProps:h,getLabelProps:b,getMenuProps:S,getInputProps:v,getItemProps:y,reset:V,openMenu:m,closeMenu:w,toggleMenu:x,selectItem:k,selectItemAtIndex:E,selectHighlightedItem:R,setHighlightedIndex:F,clearSelection:P,clearItems:$,setItemCount:z,unsetItemCount:I,setState:j,itemToString:p,id:g,highlightedIndex:a,inputValue:l,isOpen:u,selectedItem:c}},n.componentDidMount=function(){var o=this;if(process.env.NODE_ENV!=="production"&&this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Sb(this._menuNode,this.getMenuProps),!this.props.environment)this.cleanup=function(){o.internalClearTimeouts()};else{var a=function(){o.isMouseDown=!0},l=function(f){o.isMouseDown=!1;var h=xb(f.target,[o._rootNode,o._menuNode],o.props.environment);!h&&o.getState().isOpen&&o.reset({type:Mw},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},c=function(){o.isTouchMove=!1},u=function(){o.isTouchMove=!0},p=function(f){var h=xb(f.target,[o._rootNode,o._menuNode],o.props.environment,!1);!o.isTouchMove&&!h&&o.getState().isOpen&&o.reset({type:Gw},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},g=this.props.environment;g.addEventListener("mousedown",a),g.addEventListener("mouseup",l),g.addEventListener("touchstart",c),g.addEventListener("touchmove",u),g.addEventListener("touchend",p),this.cleanup=function(){o.internalClearTimeouts(),o.updateStatus.cancel(),g.removeEventListener("mousedown",a),g.removeEventListener("mouseup",l),g.removeEventListener("touchstart",c),g.removeEventListener("touchmove",u),g.removeEventListener("touchend",p)}}},n.shouldScroll=function(o,a){var l=this.props.highlightedIndex===void 0?this.getState():this.props,c=l.highlightedIndex,u=a.highlightedIndex===void 0?o:a,p=u.highlightedIndex,g=c&&this.getState().isOpen&&!o.isOpen,f=c!==p;return g||f},n.componentDidUpdate=function(o,a){process.env.NODE_ENV!=="production"&&(gp(this.state,o,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&Sb(this._menuNode,this.getMenuProps)),yf(this.props,"selectedItem")&&this.props.selectedItemChanged(o.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Vw,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(a,o)&&this.scrollHighlightedItemIntoView(),this.updateStatus()},n.componentWillUnmount=function(){this.cleanup()},n.render=function(){var o=yb(this.props.children,Rn);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 a=yb(o(this.getStateAndHelpers()));if(!a)return null;if(this.getRootProps.called||this.props.suppressRefError)return process.env.NODE_ENV!=="production"&&!this.getRootProps.suppressRefError&&!this.props.suppressRefError&&uM(a,this.getRootProps),a;if(Cw(a))return M.cloneElement(a,this.getRootProps(Pw(a)));if(process.env.NODE_ENV!=="production")throw new Error("downshift: If you return a non-DOM element, you must apply the getRootProps function")},r})(M.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:XD,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&tM(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:Rn,onInputValueChange:Rn,onUserAction:Rn,onChange:Rn,onSelect:Rn,onOuterClick:Rn,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:Rw},e.stateChangeTypes=nM,e})();process.env.NODE_ENV!=="production"&&(cM.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 Sb(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 uM(e,t){var r=t.refKey,n=r!=="ref",o=!Cw(e);o&&!n&&!pb.isForwardRef(e)?console.error("downshift: You returned a non-DOM element. You must specify a refKey in getRootProps"):!o&&n&&console.error('downshift: You returned a DOM element. You should not specify a refKey in getRootProps. You specified "'+r+'"'),!pb.isForwardRef(e)&&!Pw(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function dM(e,t){return t.changes}hp(function(e,t){Nw(e,t)},200);var Va={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:dM,scrollIntoView:Rw,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function fM(){var e=M.useRef(!0);return M.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var Zl={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},Kw=St({},Zl,{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}),pM=Co(Co({},Kw),{items:pe.array.isRequired,isItemDisabled:pe.func});Co(Co({},Va),{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 hM=St({},Kw,{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;St({},Va,{isItemDisabled:function(){return!1}});var gM={stateReducer:Zl.stateReducer,itemToKey:Zl.itemToKey,environment:Zl.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};Va.itemToKey,Va.stateReducer,Va.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 vM=M.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...o},a)=>{const{size:l,color:c,isDisabled:u,hasMessage:p,downshift:g,isInvalid:f}=Yt(),h=n??u,b=r??g.isOpen;return T.jsx("div",{ref:a,className:ue(bD({size:l,color:c,isDisabled:h,isFocused:!!b,isInvalid:f&&!g.isOpen,hasMessage:p}),e),"aria-disabled":h,"aria-invalid":f,role:"combobox",tabIndex:h?-1:0,...o,children:t})}),mM=({className:e,children:t,isMulti:r})=>T.jsx("div",{className:ue(yD({isMulti:r}),e),children:t}),Yl=M.forwardRef(({isHidden:e,inputClassName:t,...r},n)=>{const{size:o,color:a}=Yt();return e?T.jsx("input",{ref:n,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...r}):T.jsx("input",{ref:n,type:"text",className:ue(wD({size:o,color:a}),t),...r})}),bM=({className:e,children:t})=>{const{size:r,color:n}=Yt();return T.jsx("div",{className:ue(xD({size:r,color:n}),e),children:t})},yM=({className:e,children:t,data:r,isDisabled:n})=>{const{size:o,color:a,getOptionLabel:l,formatOptionLabel:c}=Yt();return T.jsx("div",{className:ue(SD({size:o,color:a,isDisabled:n}),e),children:t||(c?c(r):l(r))})},Zw=({className:e,children:t,data:r,isDisabled:n,isFocused:o,onRemove:a})=>{const{size:l,color:c,downshift:u,getOptionLabel:p,formatOptionLabel:g}=Yt(),f=()=>{a?a(r):u.removeItem(r)};return T.jsxs("div",{className:ue(_D({size:l,color:c,isDisabled:n,isFocused:o}),e),children:[T.jsx("div",{className:ED({size:l}),children:t||(g?g(r):p(r))}),!n&&T.jsx("div",{className:kD({size:l,color:c,isDisabled:!1}),onClick:f,children:T.jsx(Ic,{className:"w-3 h-3"})})]})},Yw=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:p}=Yt(),g=o??u,f=p.selectedItems.length>0;if(g||!f)return null;const h=b=>{b.stopPropagation(),n?n(b):p.clearSelection()};return T.jsx("div",{className:ue(Ow({size:l,color:e||c,isDisabled:g}),t),onClick:h,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:r||T.jsx(VI,{})})},wM=({className:e,children:t,onClick:r,isDisabled:n,...o})=>{const{size:a,color:l,isDisabled:c,downshift:u}=Yt(),p=n??c,g=u.inputValue.length>0&&u.isSearchable;if(p||!g)return null;const f=h=>{h.stopPropagation(),r?r(h):u.setInputValue("")};return T.jsx("div",{className:ue(Ow({size:a,color:l,isDisabled:p}),e),onClick:f,role:"button",tabIndex:0,"aria-label":"Clear selection",...o,children:t||T.jsx(Ic,{})})},Xw=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:p}=Yt(),g=o??u,f=p.isOpen,h=b=>{b.stopPropagation(),g||(n?n(b):p.toggleMenu())};return T.jsx("div",{className:ue(OD({size:l,color:e||c,isDisabled:g}),"cursor-pointer",t),onClick:h,role:"button",tabIndex:g?-1:0,"aria-label":f?"Close menu":"Open menu","aria-expanded":f,"aria-disabled":g,onMouseDown:b=>{b.preventDefault()},...a,children:r||T.jsx(GI,{className:ue("transition-transform duration-200",{"rotate-180":f})})})},xM=M.forwardRef(({className:e,children:t,placement:r,...n},o)=>{const{size:a,hasMessage:l,color:c}=Yt();return T.jsx("div",{"data-qui":"SelectMenu",ref:o,className:ue(TD({size:a,placement:r,hasMessage:l,color:c}),e),...n,children:t})}),SM=M.forwardRef(({className:e,children:t,maxHeight:r=300,...n},o)=>{const{size:a}=Yt();return T.jsx(lp,{scrollableNodeProps:{ref:o},className:ue(AD({size:a}),e),style:{maxHeight:r},...n,children:t})}),xf=({className:e,children:t,data:r,isDisabled:n,isFocused:o,isSelected:a,innerProps:l,...c})=>{const{size:u,color:p,getOptionLabel:g,formatOptionLabel:f}=Yt();return T.jsx("div",{"data-qui":"SelectOption",className:ue(RD({size:u,color:p,isDisabled:n,isFocused:o,isSelected:a}),e),...l,...c,children:t||(f?f(r):g(r))})},_M=({className:e,children:t,data:r,label:n})=>{const{size:o}=Yt();return T.jsxs("div",{"data-qui":"SelectGroup",className:ue(CD({size:o}),e),children:[T.jsx(EM,{children:n||r.label}),t]})},EM=({className:e,children:t})=>{const{size:r,color:n}=Yt();return T.jsx("div",{className:ue(PD({size:r,color:n}),e),children:t})},Nd=({className:e,children:t,inputValue:r})=>{const{size:n}=Yt();return T.jsx("div",{className:ue(ND({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},kM=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[o,a]=M.useState(null);return M.useLayoutEffect(()=>{if(t&&e&&r.current){const l=()=>{var c;const u=(c=r.current)==null?void 0:c.getBoundingClientRect();u&&a({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&&o?$n.createPortal(T.jsx("div",{className:"absolute z-50",style:{top:o.top,left:o.left,width:o.width,height:o.height,pointerEvents:"none"},children:T.jsx("div",{className:"relative w-full h-full",children:T.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):T.jsx(T.Fragment,{children:n}):null},Dd=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},OM=M.forwardRef(({placeholder:e,noOptionsMessage:t="",hideNoOptions:r=!1,loadingMessage:n="Loading...",isClearable:o=!1,isSearchClearable:a=!1,isLoading:l=!1,isRequired:c=!1,hideIndicators:u=!1,hideDropdownIndicator:p=!1,searchPlacement:g="trigger",hideSelectedOptions:f=!1,onFocus:h,onBlur:b,renderMenuHeader:S,formatOptionLabel:v,displayFormattedOption:y=!1,renderMultiValue:m,renderOption:w,inputRef:x,controlShouldRenderValue:k=!0,name:E,id:R,onSelectionComplete:F,"aria-label":P,"aria-labelledby":$,"aria-describedby":V,children:z,usePortal:I=!1,...j},W)=>{const{size:N,isInvalid:Y,isDisabled:X,downshift:K,options:ge=[],getOptionLabel:D,getOptionValue:U,isOptionDisabled:ee}=Yt(),te=M.useRef(null),J=x||te,ce=M.useRef(null),{isOpen:ae,openMenu:re,selectedItem:de,inputValue:he,highlightedIndex:fe,getToggleButtonProps:xe,getMenuProps:Z,getInputProps:ke,getItemProps:me,isMulti:nt,isSearchable:gt,multipleSelection:mn}=K,{getDropdownProps:ar}=mn,Xt=nt?K.selectedItems??[]:de?[de]:[],sr=Xt.length>0,xr=a&&!X&&!u,Nt=o&&sr&&!X&&!u,$r=!p&&!u,Xr=!sr&&(!gt||!he)||!k,ci={},zr={};Object.entries(j).forEach(([Fe,Be])=>{Fe.startsWith("data-")||Fe.startsWith("aria-")||Fe==="role"?ci[Fe]=Be:zr[Fe]=Be});const ui=M.useMemo(()=>Dd([ce,W]),[W]),jr=Z({},{suppressRefError:!0}),Sr=ar({preventKeyAction:ae}),jo=(ke==null?void 0:ke({ref:J,disabled:X,required:c,name:E,id:R,"aria-label":P,"aria-labelledby":$,"aria-describedby":V,"aria-invalid":Y,onFocus:h,onBlur:b,...zr,...Sr}))??{},{ref:Hi,...di}=jo,fi=M.useMemo(()=>Dd([Hi,Sr.ref]),[Hi,Sr.ref]),Fo=Fe=>Xt.some(Be=>U(Be)===U(Fe)),Bi=Fe=>f?Fe.filter(Be=>!Fo(Be)):Fe,Ho=Fe=>f?Fe.map(Be=>({...Be,options:Bi(Be.options)})).filter(Be=>Be.options.length>0):Fe,Wi=Fe=>{F==null||F(U(Fe),Fe)},Bo=gt?{}:xe({disabled:X,...Sr,ref:Dd([ui,Sr.ref])});return T.jsxs("div",{className:"relative",children:[T.jsxs(vM,{...gt?{ref:ui}:Bo,...ci,isFocused:ae,isDisabled:X,onClick:Fe=>{Fe.stopPropagation(),gt?re():gt||K.toggleMenu()},children:[z||T.jsxs(mM,{isMulti:nt,children:[nt&&k&&Xt.map((Fe,Be)=>m?m({data:Fe,index:Be,isDisabled:X,onRemove:Ht=>K.removeItem(Ht)}):T.jsx(Zw,{data:Fe,index:Be,isDisabled:X},U(Fe))),!nt&&sr&&k&&!gt&&T.jsx("div",{className:"flex items-center gap-2",children:T.jsx(yM,{data:Xt[0],isDisabled:X,children:v&&y?v(Xt[0]):D(Xt[0])})}),gt&&g==="trigger"?T.jsx(Yl,{ref:fi,...di,placeholder:e}):T.jsxs(T.Fragment,{children:[T.jsx(Yl,{ref:fi,...di,isHidden:!0,value:Xt.map(Fe=>U(Fe)).join(",")}),Xr&&T.jsx(bM,{children:e})]})]}),T.jsxs("div",{className:ue("flex items-center size-fit gap-1",{hidden:!Nt&&!$r}),children:[xr&&T.jsx(wM,{}),Nt&&T.jsx(Yw,{}),$r&&T.jsx(Xw,{...gt?xe({disabled:X,"aria-label":ae?"Close menu":"Open menu"}):{}})]})]}),T.jsx(kM,{isOpen:ae,usePortal:I,controlRef:ce,children:r&&K.filteredItems.length===0?T.jsx("div",{...jr,style:{display:"none"},"aria-hidden":"true"}):T.jsxs(xM,{...jr,children:[S&&S(K),gt&&g==="menu"&&T.jsx("div",{className:"p-2",children:T.jsx(Yl,{ref:fi,...di,autoFocus:!0,placeholder:e,onClick:Fe=>Fe.stopPropagation()})}),T.jsx(SM,{children:l?T.jsx("div",{className:ID({size:N}),children:n}):K.filteredItems.length===0?T.jsx(Nd,{inputValue:he,children:typeof t=="function"?t(he):t}):DD(ge)?(()=>{const Fe=Ho(ge);return Fe.length===0?T.jsx(Nd,{inputValue:he,children:typeof t=="function"?t(he):t}):Fe.map(Be=>T.jsx(_M,{data:Be,label:Be.label,options:Be.options,children:Be.options.map(Ht=>{const bn=U(Ht),pi=Xt.some(Vi=>U(Vi)===bn),hi=K.filteredItems.findIndex(Vi=>U(Vi)===bn),Ui=fe===hi,qi=ee(Ht),gi=me({item:Ht,index:hi,onClick:()=>Wi(Ht)});return T.jsx(xf,{...gi,data:Ht,isDisabled:qi,isFocused:Ui,isSelected:pi,children:v?v(Ht):D(Ht)},bn)})},Be.label))})():(()=>{const Fe=Bi(K.filteredItems);return Fe.length===0?T.jsx(Nd,{inputValue:he,children:typeof t=="function"?t(he):t}):Fe.map(Be=>{const Ht=U(Be),bn=Xt.some(gi=>U(gi)===Ht),pi=K.filteredItems.findIndex(gi=>U(gi)===Ht),hi=fe===pi,Ui=ee(Be),qi=me({item:Be,index:pi,onClick:()=>Wi(Be)});return w?T.jsx(M.Fragment,{children:w({...qi,data:Be,isDisabled:Ui,isFocused:hi,isSelected:bn})},Ht):T.jsx(xf,{...qi,data:Be,isDisabled:Ui,isFocused:hi,isSelected:bn,children:v?v(Be):D(Be)},Ht)})})()})]})})]})});Yl.displayName="Select.Input";Zw.displayName="Select.MultiValue";Yw.displayName="Select.ClearIndicator";Xw.displayName="Select.DropdownIndicator";xf.displayName="Select.Option";const TM=OM;TM.displayName="Select.Field";M.createContext(void 0);const AM=({active:e,disabled:t,error:r,isOpen:n,className:o})=>ue("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 text-body":e&&!t,"text-negative":r&&!e&&!t,"bg-primary text-grey-50":n&&!e&&!t,"text-muted":!e&&!t&&!r,"hover:bg-primary-hover hover:text-tab-active-fg":!t&&!e},o),RM=M.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:o,children:a,as:l="div",...c},u)=>{const p=AM({active:e,disabled:t,error:r,isOpen:n,className:o});return T.jsx(l,{"data-qui":"ListItem",ref:u,className:p,"aria-disabled":t,"aria-selected":e,"aria-invalid":r,"aria-expanded":n,role:c.onClick?"button":"listitem",...c,children:a})});RM.displayName="ListItem";const El=e=>t=>e===t,CM=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:o,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:p}){const[g,f]=M.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));M.useEffect(()=>{c==="when-collapsed"&&g.expandedKeys.length>0||f({...g,expandedKeys:l||g.expandedKeys})},[l]);const h=M.useCallback(m=>{if(!m)return;const w=g.expandedKeys.findIndex(El(m.key));let x=[];w===-1?(x=[...g.expandedKeys,m.key],f(()=>({...g,expandedKeys:x})),o&&o(x)):(x=g.expandedKeys.filter(k=>k!==m.key),f(()=>({...g,expandedKeys:x})),o&&o(x))},[g]),b=M.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(El(m.key))===-1&&f({...g,selectedKeys:[...g.selectedKeys,m.key]})},[g]),S=M.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;g.selectedKeys.findIndex(El(m.key))===-1&&f({...g,selectedKeys:[m.key]})},[g]),v=M.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){f({...g,selectedKeys:[]});return}g.selectedKeys.findIndex(El(m.key))!==-1&&f({...g,selectedKeys:g.selectedKeys.filter(k=>k!==m.key)})},[g]),y=M.useMemo(()=>({expand:h,select:b,selectSingle:S,deselect:v}),[v,h,b,S]);return T.jsx(hs,{depth:u?0:1,borderType:"light",className:at("fd-tree",p,{"pl-2 mb-1 rounded border p-1":u}),children:t.map(m=>T.jsx(op,{node:m,searchQuery:a||"",depth:0,expandedKeys:g.expandedKeys,selectedKeys:g.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function Xl(e){return e.of&&e.children?T.jsx(T.Fragment,{children:e.children}):null}function It(){return It=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},It.apply(null,arguments)}function PM(e){for(var t=0,r,n=0,o=e.length;o>=4;++n,o-=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(o){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 IM={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 Jw(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var NM=/[A-Z]|^ms/g,DM=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Qw=function(t){return t.charCodeAt(1)===45},_b=function(t){return t!=null&&typeof t!="boolean"},Md=Jw(function(e){return Qw(e)?e:e.replace(NM,"-$&").toLowerCase()}),Eb=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(DM,function(n,o,a){return un={name:o,styles:a,next:un},o})}return IM[t]!==1&&!Qw(t)&&typeof r=="number"&&r!==0?r+"px":r};function es(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 o=r;if(o.anim===1)return un={name:o.name,styles:o.styles,next:un},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)un={name:l.name,styles:l.styles,next:un},l=l.next;var c=a.styles+";";return c}return MM(e,t,r)}case"function":{if(e!==void 0){var u=un,p=r(e);return un=u,es(e,t,p)}break}}var g=r;if(t==null)return g;var f=t[g];return f!==void 0?f:g}function MM(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=es(e,t,r[o])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?n+=a+"{"+t[c]+"}":_b(c)&&(n+=Md(a)+":"+Eb(a,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++)_b(l[u])&&(n+=Md(a)+":"+Eb(a,l[u])+";");else{var p=es(e,t,l);switch(a){case"animation":case"animationName":{n+=Md(a)+":"+p+";";break}default:n+=a+"{"+p+"}"}}}return n}var kb=/label:\s*([^\s;{]+)\s*(;|$)/g,un;function LM(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,o="";un=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=es(r,t,a);else{var l=a;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=es(r,t,e[c]),n){var u=a;o+=u[c]}kb.lastIndex=0;for(var p="",g;(g=kb.exec(o))!==null;)p+="-"+g[1];var f=PM(o)+p;return{name:f,styles:o,next:un}}var $M=function(t){return t()},zM=B.useInsertionEffect?B.useInsertionEffect:!1,jM=zM||$M,FM=!0;function HM(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var ex=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||FM===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},BM=function(t,r,n){ex(t,r,n);var o=t.key+"-"+r.name;if(t.inserted[r.name]===void 0){var a=r;do t.insert(r===a?"."+o:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}},WM=/^((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)-.*))$/,UM=Jw(function(e){return WM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),qM=UM,VM=function(t){return t!=="theme"},Ob=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?qM:VM},Tb=function(t,r,n){var o;if(r){var a=r.shouldForwardProp;o=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof o!="function"&&n&&(o=t.__emotion_forwardProp),o},GM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return ex(r,n,o),jM(function(){return BM(r,n,o)}),null},KM=function e(t,r){var n=t.__emotion_real===t,o=n&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=Tb(t,r,n),u=c||Ob(o),p=!u("as");return function(){var g=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),g[0]==null||g[0].raw===void 0)f.push.apply(f,g);else{var h=g[0];f.push(h[0]);for(var b=g.length,S=1;S<b;S++)f.push(g[S],h[S])}var v=ff.withEmotionCache(function(y,m,w){var x=p&&y.as||o,k="",E=[],R=y;if(y.theme==null){R={};for(var F in y)R[F]=y[F];R.theme=B.useContext(ff.ThemeContext)}typeof y.className=="string"?k=HM(m.registered,E,y.className):y.className!=null&&(k=y.className+" ");var P=LM(f.concat(E),m.registered,R);k+=m.key+"-"+P.name,l!==void 0&&(k+=" "+l);var $=p&&c===void 0?Ob(x):u,V={};for(var z in y)p&&z==="as"||$(z)&&(V[z]=y[z]);return V.className=k,w&&(V.ref=w),B.createElement(B.Fragment,null,B.createElement(GM,{cache:m,serialized:P,isStringTag:typeof x=="string"}),B.createElement(x,V))});return v.displayName=a!==void 0?a:"Styled("+(typeof o=="string"?o:o.displayName||o.name||"Component")+")",v.defaultProps=t.defaultProps,v.__emotion_real=v,v.__emotion_base=o,v.__emotion_styles=f,v.__emotion_forwardProp=c,Object.defineProperty(v,"toString",{value:function(){return"."+l}}),v.withComponent=function(y,m){var w=e(y,It({},r,m,{shouldForwardProp:Tb(v,m,!0)}));return w.apply(void 0,f)},v}},ZM=["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"],fc=KM.bind(null);ZM.forEach(function(e){fc[e]=fc(e)});var YM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},fo=new WeakMap,kl=new WeakMap,Ol={},Ld=0,tx=function(e){return e&&(e.host||tx(e.parentNode))},XM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=tx(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})},JM=function(e,t,r,n){var o=XM(t,Array.isArray(e)?e:[e]);Ol[r]||(Ol[r]=new WeakMap);var a=Ol[r],l=[],c=new Set,u=new Set(o),p=function(f){!f||c.has(f)||(c.add(f),p(f.parentNode))};o.forEach(p);var g=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(h){if(c.has(h))g(h);else try{var b=h.getAttribute(n),S=b!==null&&b!=="false",v=(fo.get(h)||0)+1,y=(a.get(h)||0)+1;fo.set(h,v),a.set(h,y),l.push(h),v===1&&S&&kl.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(),Ld++,function(){l.forEach(function(f){var h=fo.get(f)-1,b=a.get(f)-1;fo.set(f,h),a.set(f,b),h||(kl.has(f)||f.removeAttribute(n),kl.delete(f)),b||f.removeAttribute(r)}),Ld--,Ld||(fo=new WeakMap,fo=new WeakMap,kl=new WeakMap,Ol={})}},QM=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=YM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),JM(n,o,r,"aria-hidden")):function(){return null}},Sf=function(e,t){return Sf=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Sf(e,t)};function Dc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Sf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var dn=function(){return dn=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var a in r)Object.prototype.hasOwnProperty.call(r,a)&&(t[a]=r[a])}return t},dn.apply(this,arguments)};function rx(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 o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function _f(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 Ef(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,a=[],l;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)a.push(o.value)}catch(c){l={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(l)throw l.error}}return a}function pc(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,a;n<o;n++)(a||!(n in t))&&(a||(a=Array.prototype.slice.call(t,0,n)),a[n]=t[n]);return e.concat(a||Array.prototype.slice.call(t))}var Jl="right-scroll-bar-position",Ql="width-before-scroll-bar",eL="with-scroll-bars-hidden",tL="--removed-body-scroll-bar-size";function $d(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function rL(e,t){var r=M.useState(function(){return{value:e,callback:t,facade:{get current(){return r.value},set current(n){var o=r.value;o!==n&&(r.value=n,r.callback(n,o))}}}})[0];return r.callback=t,r.facade}var nL=typeof window<"u"?B.useLayoutEffect:B.useEffect,Ab=new WeakMap;function iL(e,t){var r=rL(null,function(n){return e.forEach(function(o){return $d(o,n)})});return nL(function(){var n=Ab.get(r);if(n){var o=new Set(n),a=new Set(e),l=r.current;o.forEach(function(c){a.has(c)||$d(c,null)}),a.forEach(function(c){o.has(c)||$d(c,l)})}Ab.set(r,e)},[e]),r}function oL(e){return e}function aL(e,t){t===void 0&&(t=oL);var r=[],n=!1,o={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(a){var l=t(a,n);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(n=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){n=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var u=function(){var g=l;l=[],g.forEach(a)},p=function(){return Promise.resolve().then(u)};p(),r={push:function(g){l.push(g),p()},filter:function(g){return l=l.filter(g),r}}}};return o}function sL(e){e===void 0&&(e={});var t=aL(null);return t.options=dn({async:!0,ssr:!1},e),t}var nx=function(e){var t=e.sideCar,r=rx(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 B.createElement(n,dn({},r))};nx.isSideCarExport=!0;function lL(e,t){return e.useMedium(t),nx}var ix=sL(),zd=function(){},Mc=B.forwardRef(function(e,t){var r=B.useRef(null),n=B.useState({onScrollCapture:zd,onWheelCapture:zd,onTouchMoveCapture:zd}),o=n[0],a=n[1],l=e.forwardProps,c=e.children,u=e.className,p=e.removeScrollBar,g=e.enabled,f=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,k=rx(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=h,R=iL([r,t]),F=dn(dn({},k),o);return B.createElement(B.Fragment,null,g&&B.createElement(E,{sideCar:ix,removeScrollBar:p,shards:f,noRelative:b,noIsolation:S,inert:v,setCallbacks:a,allowPinchZoom:!!y,lockRef:r,gapMode:x}),l?B.cloneElement(B.Children.only(c),dn(dn({},F),{ref:R})):B.createElement(w,dn({},F,{className:u,ref:R}),c))});Mc.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Mc.classNames={fullWidth:Ql,zeroRight:Jl};var cL=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function uL(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=cL();return t&&e.setAttribute("nonce",t),e}function dL(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function fL(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var pL=function(){var e=0,t=null;return{add:function(r){e==0&&(t=uL())&&(dL(t,r),fL(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},hL=function(){var e=pL();return function(t,r){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},ox=function(){var e=hL(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},gL={left:0,top:0,right:0,gap:0},jd=function(e){return parseInt(e||"",10)||0},vL=function(e){var t=window.getComputedStyle(document.body),r=t[e==="padding"?"paddingLeft":"marginLeft"],n=t[e==="padding"?"paddingTop":"marginTop"],o=t[e==="padding"?"paddingRight":"marginRight"];return[jd(r),jd(n),jd(o)]},mL=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return gL;var t=vL(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])}},bL=ox(),xo="data-scroll-locked",yL=function(e,t,r,n){var o=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
72
+ .`.concat(eL,` {
73
+ overflow: hidden `).concat(n,`;
74
+ padding-right: `).concat(c,"px ").concat(n,`;
26
75
  }
27
- body[`).concat(bi,`] {
28
- overflow: hidden `).concat(i,`;
76
+ body[`).concat(xo,`] {
77
+ overflow: hidden `).concat(n,`;
29
78
  overscroll-behavior: contain;
30
- `).concat([t&&"position: relative ".concat(i,";"),r==="margin"&&`
31
- padding-left: `.concat(s,`px;
79
+ `).concat([t&&"position: relative ".concat(n,";"),r==="margin"&&`
80
+ padding-left: `.concat(o,`px;
32
81
  padding-top: `).concat(a,`px;
33
- padding-right: `).concat(u,`px;
82
+ padding-right: `).concat(l,`px;
34
83
  margin-left:0;
35
84
  margin-top:0;
36
- margin-right: `).concat(c,"px ").concat(i,`;
37
- `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(i,";")].filter(Boolean).join(""),`
85
+ margin-right: `).concat(c,"px ").concat(n,`;
86
+ `),r==="padding"&&"padding-right: ".concat(c,"px ").concat(n,";")].filter(Boolean).join(""),`
38
87
  }
39
88
 
40
- .`).concat(ha,` {
41
- right: `).concat(c,"px ").concat(i,`;
89
+ .`).concat(Jl,` {
90
+ right: `).concat(c,"px ").concat(n,`;
42
91
  }
43
92
 
44
- .`).concat(ga,` {
45
- margin-right: `).concat(c,"px ").concat(i,`;
93
+ .`).concat(Ql,` {
94
+ margin-right: `).concat(c,"px ").concat(n,`;
46
95
  }
47
96
 
48
- .`).concat(ha," .").concat(ha,` {
49
- right: 0 `).concat(i,`;
97
+ .`).concat(Jl," .").concat(Jl,` {
98
+ right: 0 `).concat(n,`;
50
99
  }
51
100
 
52
- .`).concat(ga," .").concat(ga,` {
53
- margin-right: 0 `).concat(i,`;
101
+ .`).concat(Ql," .").concat(Ql,` {
102
+ margin-right: 0 `).concat(n,`;
54
103
  }
55
104
 
56
- body[`).concat(bi,`] {
57
- `).concat(JR,": ").concat(c,`px;
105
+ body[`).concat(xo,`] {
106
+ `).concat(tL,": ").concat(c,`px;
58
107
  }
59
- `)},wg=function(){var e=parseInt(document.body.getAttribute(bi)||"0",10);return isFinite(e)?e:0},vP=function(){I.useEffect(function(){return document.body.setAttribute(bi,(wg()+1).toString()),function(){var e=wg()-1;e<=0?document.body.removeAttribute(bi):document.body.setAttribute(bi,e.toString())}},[])},yP=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;vP();var a=I.useMemo(function(){return hP(s)},[s]);return I.createElement(gP,{styles:mP(a,!t,s,r?"":"!important")})},Ec=!1;if(typeof window<"u")try{var Ks=Object.defineProperty({},"passive",{get:function(){return Ec=!0,!0}});window.addEventListener("test",Ks,Ks),window.removeEventListener("test",Ks,Ks)}catch{Ec=!1}var mi=Ec?{passive:!1}:!1,bP=function(e){return e.tagName==="TEXTAREA"},jv=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!bP(e)&&r[t]==="visible")},wP=function(e){return jv(e,"overflowY")},xP=function(e){return jv(e,"overflowX")},xg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=zv(e,i);if(s){var a=Bv(e,i),u=a[1],c=a[2];if(u>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},SP=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},EP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},zv=function(e,t){return e==="v"?wP(t):xP(t)},Bv=function(e,t){return e==="v"?SP(t):EP(t)},_P=function(e,t){return e==="h"&&t==="rtl"?-1:1},TP=function(e,t,r,i,s){var a=_P(e,window.getComputedStyle(t).direction),u=a*i,c=r.target,f=t.contains(c),m=!1,g=u>0,h=0,d=0;do{if(!c)break;var y=Bv(e,c),x=y[0],p=y[1],w=y[2],v=p-w-a*x;(x||v)&&zv(e,c)&&(h+=v,d+=x);var S=c.parentNode;c=S&&S.nodeType===Node.DOCUMENT_FRAGMENT_NODE?S.host:S}while(!f&&c!==document.body||f&&(t.contains(c)||t===c));return(g&&Math.abs(h)<1||!g&&Math.abs(d)<1)&&(m=!0),m},Ys=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Sg=function(e){return[e.deltaX,e.deltaY]},Eg=function(e){return e&&"current"in e?e.current:e},OP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},AP=function(e){return`
108
+ `)},Rb=function(){var e=parseInt(document.body.getAttribute(xo)||"0",10);return isFinite(e)?e:0},wL=function(){B.useEffect(function(){return document.body.setAttribute(xo,(Rb()+1).toString()),function(){var e=Rb()-1;e<=0?document.body.removeAttribute(xo):document.body.setAttribute(xo,e.toString())}},[])},xL=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;wL();var a=B.useMemo(function(){return mL(o)},[o]);return B.createElement(bL,{styles:yL(a,!t,o,r?"":"!important")})},kf=!1;if(typeof window<"u")try{var Tl=Object.defineProperty({},"passive",{get:function(){return kf=!0,!0}});window.addEventListener("test",Tl,Tl),window.removeEventListener("test",Tl,Tl)}catch{kf=!1}var po=kf?{passive:!1}:!1,SL=function(e){return e.tagName==="TEXTAREA"},ax=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!SL(e)&&r[t]==="visible")},_L=function(e){return ax(e,"overflowY")},EL=function(e){return ax(e,"overflowX")},Cb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=sx(e,n);if(o){var a=lx(e,n),l=a[1],c=a[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},kL=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},OL=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},sx=function(e,t){return e==="v"?_L(t):EL(t)},lx=function(e,t){return e==="v"?kL(t):OL(t)},TL=function(e,t){return e==="h"&&t==="rtl"?-1:1},AL=function(e,t,r,n,o){var a=TL(e,window.getComputedStyle(t).direction),l=a*n,c=r.target,u=t.contains(c),p=!1,g=l>0,f=0,h=0;do{if(!c)break;var b=lx(e,c),S=b[0],v=b[1],y=b[2],m=v-y-a*S;(S||m)&&sx(e,c)&&(f+=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(f)<1||!g&&Math.abs(h)<1)&&(p=!0),p},Al=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Pb=function(e){return[e.deltaX,e.deltaY]},Ib=function(e){return e&&"current"in e?e.current:e},RL=function(e,t){return e[0]===t[0]&&e[1]===t[1]},CL=function(e){return`
60
109
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
110
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},RP=0,vi=[];function PP(e){var t=I.useRef([]),r=I.useRef([0,0]),i=I.useRef(),s=I.useState(RP++)[0],a=I.useState(Fv)[0],u=I.useRef(e);I.useEffect(function(){u.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var p=Ea([e.lockRef.current],(e.shards||[]).map(Eg),!0).filter(Boolean);return p.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),p.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=I.useCallback(function(p,w){if("touches"in p&&p.touches.length===2||p.type==="wheel"&&p.ctrlKey)return!u.current.allowPinchZoom;var v=Ys(p),S=r.current,E="deltaX"in p?p.deltaX:S[0]-v[0],R="deltaY"in p?p.deltaY:S[1]-v[1],T,k=p.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in p&&U==="h"&&k.type==="range")return!1;var D=xg(U,k);if(!D)return!0;if(D?T=U:(T=U==="v"?"h":"v",D=xg(U,k)),!D)return!1;if(!i.current&&"changedTouches"in p&&(E||R)&&(i.current=T),!T)return!0;var N=i.current||T;return TP(N,w,p,N==="h"?E:R)},[]),f=I.useCallback(function(p){var w=p;if(!(!vi.length||vi[vi.length-1]!==a)){var v="deltaY"in w?Sg(w):Ys(w),S=t.current.filter(function(T){return T.name===w.type&&(T.target===w.target||w.target===T.shadowParent)&&OP(T.delta,v)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(u.current.shards||[]).map(Eg).filter(Boolean).filter(function(T){return T.contains(w.target)}),R=E.length>0?c(w,E[0]):!u.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),m=I.useCallback(function(p,w,v,S){var E={name:p,delta:w,target:v,should:S,shadowParent:CP(v)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),g=I.useCallback(function(p){r.current=Ys(p),i.current=void 0},[]),h=I.useCallback(function(p){m(p.type,Sg(p),p.target,c(p,e.lockRef.current))},[]),d=I.useCallback(function(p){m(p.type,Ys(p),p.target,c(p,e.lockRef.current))},[]);I.useEffect(function(){return vi.push(a),e.setCallbacks({onScrollCapture:h,onWheelCapture:h,onTouchMoveCapture:d}),document.addEventListener("wheel",f,mi),document.addEventListener("touchmove",f,mi),document.addEventListener("touchstart",g,mi),function(){vi=vi.filter(function(p){return p!==a}),document.removeEventListener("wheel",f,mi),document.removeEventListener("touchmove",f,mi),document.removeEventListener("touchstart",g,mi)}},[]);var y=e.removeScrollBar,x=e.inert;return I.createElement(I.Fragment,null,x?I.createElement(a,{styles:AP(s)}):null,y?I.createElement(yP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function CP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const kP=oP(Nv,PP);var Uv=I.forwardRef(function(e,t){return I.createElement(Ha,Rr({},e,{ref:t,sideCar:kP}))});Uv.classNames=Ha.classNames;const IP=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},$P=I.useId||(()=>{});let LP=0;function Wv(e){const[t,r]=I.useState($P());return IP((()=>{r((i=>i??String(LP++)))}),[e]),e||(t?`radix-${t}`:"")}function Hv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function xn(...e){return I.useCallback(Hv(...e),e)}const qv=I.forwardRef(((e,t)=>{const{children:r,...i}=e;return I.Children.toArray(r).some(_g)?I.createElement(I.Fragment,null,I.Children.map(r,(s=>_g(s)?I.createElement(_c,et({},i,{ref:t}),s.props.children):s))):I.createElement(_c,et({},i,{ref:t}),r)}));qv.displayName="Slot";const _c=I.forwardRef(((e,t)=>{const{children:r,...i}=e;return I.isValidElement(r)?I.cloneElement(r,{...MP(i,r.props),ref:Hv(t,r.ref)}):I.Children.count(r)>1?I.Children.only(null):null}));_c.displayName="SlotClone";const Zv=({children:e})=>I.createElement(I.Fragment,null,e);function _g(e){return I.isValidElement(e)&&e.type===Zv}function MP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...u)=>{a==null||a(...u),s==null||s(...u)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const Sn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:I.forwardRef(((r,i)=>{const{asChild:s,...a}=r,u=s?qv:t;return I.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),I.createElement(u,et({},a,{ref:i}))}))})),{}),Tg=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},tf=e=>{const{present:t,children:r}=e,i=(function(u){const[c,f]=I.useState(),m=I.useRef({}),g=I.useRef(u),h=I.useRef("none"),d=u?"mounted":"unmounted",[y,x]=(function(p,w){return I.useReducer(((v,S)=>{const E=w[v][S];return E??v}),p)})(d,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return I.useEffect((()=>{const p=Xs(m.current);h.current=y==="mounted"?p:"none"}),[y]),Tg((()=>{const p=m.current,w=g.current;if(w!==u){const v=h.current,S=Xs(p);u?x("MOUNT"):S==="none"||(p==null?void 0:p.display)==="none"?x("UNMOUNT"):x(w&&v!==S?"ANIMATION_OUT":"UNMOUNT"),g.current=u}}),[u,x]),Tg((()=>{if(c){const p=v=>{const S=Xs(m.current).includes(v.animationName);v.target===c&&S&&x("ANIMATION_END")},w=v=>{v.target===c&&(h.current=Xs(m.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",p),c.addEventListener("animationend",p),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",p),c.removeEventListener("animationend",p)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(y),ref:I.useCallback((p=>{p&&(m.current=getComputedStyle(p)),f(p)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):I.Children.only(r),a=xn(i.ref,s.ref);return typeof r=="function"||i.isPresent?I.cloneElement(s,{ref:a}):null};function Xs(e){return(e==null?void 0:e.animationName)||"none"}tf.displayName="Presence";let Hl=0;function DP(){I.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:Og()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Og()),Hl++,()=>{Hl===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Hl--}}),[])}function Og(){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 NP=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{},rf=I.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...u}=e,c=(r=s==null?void 0:s.current)!==null&&r!==void 0?r:globalThis==null||(i=globalThis.document)===null||i===void 0?void 0:i.body,[,f]=I.useState({});return NP((()=>{f({})}),[]),c?Pi.createPortal(I.createElement(Sn.div,et({"data-radix-portal":""},u,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Gn(e){const t=I.useRef(e);return I.useEffect((()=>{t.current=e})),I.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const Ag={bubbles:!1,cancelable:!0},FP=I.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...u}=e,[c,f]=I.useState(null),m=Gn(s),g=Gn(a),h=I.useRef(null),d=xn(t,(p=>f(p))),y=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect((()=>{if(i){let p=function(v){if(y.paused||!c)return;const S=v.target;c.contains(S)?h.current=S:Mn(h.current,{select:!0})},w=function(v){!y.paused&&c&&(c.contains(v.relatedTarget)||Mn(h.current,{select:!0}))};return document.addEventListener("focusin",p),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",p),document.removeEventListener("focusout",w)}}}),[i,c,y.paused]),I.useEffect((()=>{if(c){Cg.add(y);const w=document.activeElement;if(!c.contains(w)){const v=new Event("focusScope.autoFocusOnMount",Ag);c.addEventListener("focusScope.autoFocusOnMount",m),c.dispatchEvent(v),v.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const T of S)if(Mn(T,{select:E}),document.activeElement!==R)return})((p=Rg(c),p.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&Mn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",m),setTimeout((()=>{const v=new Event("focusScope.autoFocusOnUnmount",Ag);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(v),v.defaultPrevented||Mn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),Cg.remove(y)}),0)}}var p}),[c,m,g,y]);const x=I.useCallback((p=>{if(!r&&!i||y.paused)return;const w=p.key==="Tab"&&!p.altKey&&!p.ctrlKey&&!p.metaKey,v=document.activeElement;if(w&&v){const S=p.currentTarget,[E,R]=(function(T){const k=Rg(T),U=Pg(k,T),D=Pg(k.reverse(),T);return[U,D]})(S);E&&R?p.shiftKey||v!==R?p.shiftKey&&v===E&&(p.preventDefault(),r&&Mn(R,{select:!0})):(p.preventDefault(),r&&Mn(E,{select:!0})):v===S&&p.preventDefault()}}),[r,i,y.paused]);return I.createElement(Sn.div,et({tabIndex:-1},u,{ref:d,onKeyDown:x}))}));function Rg(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const s=i.tagName==="INPUT"&&i.type==="hidden";return i.disabled||i.hidden||s?NodeFilter.FILTER_SKIP:i.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function Pg(e,t){for(const r of e)if(!jP(r,{upTo:t}))return r}function jP(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 Mn(e,{select:t=!1}={}){if(e&&e.focus){const r=document.activeElement;e.focus({preventScroll:!0}),e!==r&&(function(i){return i instanceof HTMLInputElement&&"select"in i})(e)&&t&&e.select()}}const Cg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=kg(e,t),e.unshift(t)},remove(t){var r;e=kg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function kg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Gv(e){const t=Gn(e);I.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const zP=globalThis!=null&&globalThis.document?I.useLayoutEffect:()=>{};let Ig,Js=0;function BP({disabled:e}){const t=I.useRef(!1);zP((()=>{if(e){let r=function(){Js--,Js===0&&(document.body.style.pointerEvents=Ig)},i=function(s){t.current=s.pointerType!=="mouse"};return Js===0&&(Ig=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Js++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function qt(e,t,{checkForDefaultPrevented:r=!0}={}){return function(i){if(e==null||e(i),r===!1||!i.defaultPrevented)return t==null?void 0:t(i)}}const UP=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),WP=I.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:u,onDismiss:c,...f}=e,m=I.useContext(UP),[g,h]=I.useState(null),[,d]=I.useState({}),y=xn(t,(k=>h(k))),x=Array.from(m.layers),[p]=[...m.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(p),v=g?x.indexOf(g):-1,S=m.layersWithOutsidePointerEventsDisabled.size>0,E=v>=w,R=(function(k){const U=Gn(k),D=I.useRef(!1);return I.useEffect((()=>{const N=j=>{j.target&&!D.current&&Lg("dismissableLayer.pointerDownOutside",U,{originalEvent:j}),D.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",N)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",N)}}),[U]),{onPointerDownCapture:()=>D.current=!0}})((k=>{const U=k.target,D=[...m.branches].some((N=>N.contains(U)));E&&!D&&(s==null||s(k),u==null||u(k),k.defaultPrevented||c==null||c())})),T=(function(k){const U=Gn(k),D=I.useRef(!1);return I.useEffect((()=>{const N=G=>{G.target&&!D.current&&Lg("dismissableLayer.focusOutside",U,{originalEvent:G})};return document.addEventListener("focusin",N),()=>document.removeEventListener("focusin",N)}),[U]),{onFocusCapture:()=>D.current=!0,onBlurCapture:()=>D.current=!1}})((k=>{const U=k.target;[...m.branches].some((D=>D.contains(U)))||(a==null||a(k),u==null||u(k),k.defaultPrevented||c==null||c())}));return Gv((k=>{v===m.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),BP({disabled:r}),I.useEffect((()=>{g&&(r&&m.layersWithOutsidePointerEventsDisabled.add(g),m.layers.add(g),$g())}),[g,r,m]),I.useEffect((()=>()=>{g&&(m.layers.delete(g),m.layersWithOutsidePointerEventsDisabled.delete(g),$g())}),[g,m]),I.useEffect((()=>{const k=()=>d({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),I.createElement(Sn.div,et({},f,{ref:y,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:qt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:qt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:qt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function $g(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Lg(e,t,r){const i=r.originalEvent.target,s=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&i.addEventListener(e,t,{once:!0}),!i.dispatchEvent(s)}function Mg(e){const[t,r]=I.useState(void 0);return I.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let u,c;if("borderBoxSize"in a){const f=a.borderBoxSize,m=Array.isArray(f)?f[0]:f;u=m.inlineSize,c=m.blockSize}else{const f=e.getBoundingClientRect();u=f.width,c=f.height}r({width:u,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function HP(e,t){const r=Dn.get(e);return r===void 0?(Dn.set(e,{rect:{},callbacks:[t]}),Dn.size===1&&(Tc=requestAnimationFrame(Vv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=Dn.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&(Dn.delete(e),Dn.size===0&&cancelAnimationFrame(Tc))}}let Tc;const Dn=new Map;function Vv(){const e=[];Dn.forEach(((t,r)=>{const i=r.getBoundingClientRect();var s,a;s=t.rect,a=i,(s.width!==a.width||s.height!==a.height||s.top!==a.top||s.right!==a.right||s.bottom!==a.bottom||s.left!==a.left)&&(t.rect=i,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Tc=requestAnimationFrame(Vv)}function Kv(e){const[t,r]=I.useState();return I.useEffect((()=>{if(e){const i=HP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function nf(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>I.createContext(a)));return function(a){const u=(a==null?void 0:a[e])||s;return I.useMemo((()=>({[`__scope${e}`]:{...a,[e]:u}})),[a,u])}};return i.scopeName=e,[function(s,a){const u=I.createContext(a),c=r.length;function f(m){const{scope:g,children:h,...d}=m,y=(g==null?void 0:g[e][c])||u,x=I.useMemo((()=>d),Object.values(d));return I.createElement(y.Provider,{value:x},h)}return r=[...r,a],f.displayName=s+"Provider",[f,function(m,g){const h=(g==null?void 0:g[e][c])||u,d=I.useContext(h);if(d)return d;if(a!==void 0)return a;throw new Error(`\`${m}\` must be used within \`${s}\``)}]},qP(i,...t)]}function qP(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const i=e.map((s=>({useScope:s(),scopeName:s.scopeName})));return function(s){const a=i.reduce(((u,{useScope:c,scopeName:f})=>({...u,...c(s)[`__scope${f}`]})),{});return I.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function ZP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:u,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:m,collisionTolerance:g=0}){if(!e||!t||!m)return{popperStyles:GP,arrowStyles:ql};const h=(function(U,D,N=0,G=0,j){const M=j?j.height:0,W=Dg(D,U,"x"),q=Dg(D,U,"y"),C=q.before-N-M,J=q.after+N+M,Y=W.before-N-M,te=W.after+N+M;return{top:{start:{x:W.start+G,y:C},center:{x:W.center,y:C},end:{x:W.end-G,y:C}},right:{start:{x:te,y:q.start+G},center:{x:te,y:q.center},end:{x:te,y:q.end-G}},bottom:{start:{x:W.start+G,y:J},center:{x:W.center,y:J},end:{x:W.end-G,y:J}},left:{start:{x:Y,y:q.start+G},center:{x:Y,y:q.center},end:{x:Y,y:q.end-G}}}})(t,e,a,c,r),d=h[s][u];if(f===!1){const U=Ng(d);let D=ql;return r&&(D=jg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:u})),{popperStyles:{...U,"--radix-popper-transform-origin":Fg(t,s,u,i,r)},arrowStyles:D,placedSide:s,placedAlign:u}}const y=DOMRect.fromRect({...t,...d}),x=(p=m,w=g,DOMRect.fromRect({width:p.width-2*w,height:p.height-2*w,x:p.left+w,y:p.top+w}));var p,w;const v=Bg(y,x),S=h[zg(s)][u],E=(function(U,D,N){const G=zg(U);return D[U]&&!N[G]?G:U})(s,v,Bg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,D,N,G,j){const M=N==="top"||N==="bottom",W=M?"left":"top",q=M?"right":"bottom",C=M?"width":"height",J=D[C]>U[C];return(G==="start"||G==="center")&&(j[W]&&J||j[q]&&!J)?"end":(G==="end"||G==="center")&&(j[q]&&J||j[W]&&!J)?"start":G})(t,e,s,u,v),T=Ng(h[E][R]);let k=ql;return r&&(k=jg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...T,"--radix-popper-transform-origin":Fg(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function Dg(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],u=t[s];return{before:i-u,start:i,center:i+(a-u)/2,end:i+a-u,after:i+a}}function Ng(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 Fg(e,t,r,i,s){const a=t==="top"||t==="bottom",u=s?s.width:0,c=s?s.height:0,f=u/2+i;let m="",g="";return a?(m={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(m=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${m} ${g}`}const GP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},ql={position:"absolute",opacity:0};function jg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,u=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),m={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:VP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(m.left=`${r}px`),s==="center"&&(m.left=`${a}px`),s==="end"&&(m.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(m.top=`${r}px`),s==="center"&&(m.top=`${u}px`),s==="end"&&(m.bottom=`${r}px`)),m}function VP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function zg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Bg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Yv,qa]=nf("Popper"),[KP,Xv]=Yv("Popper"),YP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=I.useState(null);return I.createElement(KP,{scope:t,anchor:i,onAnchorChange:s},r)},XP=I.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Xv("PopperAnchor",r),u=I.useRef(null),c=xn(t,u);return I.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||u.current)})),i?null:I.createElement(Sn.div,et({},s,{ref:c}))})),[JP,o2]=Yv("PopperContent"),QP=I.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:u,collisionTolerance:c,avoidCollisions:f=!0,...m}=e,g=Xv("PopperContent",r),[h,d]=I.useState(),y=Kv(g.anchor),[x,p]=I.useState(null),w=Mg(x),[v,S]=I.useState(null),E=Mg(v),R=xn(t,(M=>p(M))),T=(function(){const[M,W]=I.useState(void 0);return I.useEffect((()=>{let q;function C(){W({width:window.innerWidth,height:window.innerHeight})}function J(){window.clearTimeout(q),q=window.setTimeout(C,100)}return C(),window.addEventListener("resize",J),()=>window.removeEventListener("resize",J)}),[]),M})(),k=T?DOMRect.fromRect({...T,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:D,placedSide:N,placedAlign:G}=ZP({anchorRect:y,popperSize:w,arrowSize:E,arrowOffset:h,side:i,sideOffset:s,align:a,alignOffset:u,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=N!==void 0;return I.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},I.createElement(JP,{scope:r,arrowStyles:D,onArrowChange:S,onArrowOffsetChange:d},I.createElement(Sn.div,et({"data-side":N,"data-align":G},m,{style:{...m.style,animation:j?void 0:"none"},ref:R}))))})),Jv=YP,Qv=XP,ey=QP;function ty({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:m}){const g=I.useState(f),[h]=g,d=I.useRef(h),y=Gn(m);return I.useEffect((()=>{d.current!==h&&(y(h),d.current=h)}),[h,d,y]),g})({defaultProp:t,onChange:r}),a=e!==void 0,u=a?e:i,c=Gn(r);return[u,I.useCallback((f=>{if(a){const m=f,g=typeof f=="function"?m(e):f;g!==e&&c(g)}else s(f)}),[a,e,s,c])]}const[eC]=nf("Popover",[qa]),of=qa(),[tC,qo]=eC("Popover"),rC=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:u=!1}=e,c=of(t),f=I.useRef(null),[m,g]=I.useState(!1),[h=!1,d]=ty({prop:i,defaultProp:s,onChange:a});return I.createElement(Jv,c,I.createElement(tC,{scope:t,contentId:Wv(),triggerRef:f,open:h,onOpenChange:d,onOpenToggle:I.useCallback((()=>d((y=>!y))),[d]),hasCustomAnchor:m,onCustomAnchorAdd:I.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:I.useCallback((()=>g(!1)),[]),modal:u},r))},nC=I.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=qo("PopoverTrigger",r),a=of(r),u=xn(t,s.triggerRef),c=I.createElement(Sn.button,et({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":ny(s.open)},i,{ref:u,onClick:qt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:I.createElement(Qv,et({asChild:!0},a),c)})),iC=I.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=qo("PopoverContent",e.__scopePopover);return I.createElement(tf,{present:r||s.open},s.modal?I.createElement(oC,et({},i,{ref:t})):I.createElement(sC,et({},i,{ref:t})))})),oC=I.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=qo("PopoverContent",e.__scopePopover),u=I.useRef(null),c=xn(t,u),f=I.useRef(!1);I.useEffect((()=>{const g=u.current;if(g)return YR(g)}),[]);const m=i?rf:I.Fragment;return I.createElement(m,null,I.createElement(Uv,{allowPinchZoom:r},I.createElement(ry,et({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:qt(e.onCloseAutoFocus,(g=>{var h;g.preventDefault(),f.current||(h=a.triggerRef.current)===null||h===void 0||h.focus()})),onPointerDownOutside:qt(e.onPointerDownOutside,(g=>{const h=g.detail.originalEvent,d=h.button===0&&h.ctrlKey===!0,y=h.button===2||d;f.current=y}),{checkForDefaultPrevented:!1}),onFocusOutside:qt(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),sC=I.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=qo("PopoverContent",e.__scopePopover),a=I.useRef(!1),u=r?rf:I.Fragment;return I.createElement(u,null,I.createElement(ry,et({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,m;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(m=s.triggerRef.current)===null||m===void 0||m.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,m;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const g=c.target;!((m=s.triggerRef.current)===null||m===void 0)&&m.contains(g)&&c.preventDefault()}})))})),ry=I.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onInteractOutside:g,...h}=e,d=qo("PopoverContent",r),y=of(r);return DP(),I.createElement(FP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},I.createElement(WP,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:m,onDismiss:()=>d.onOpenChange(!1)},I.createElement(ey,et({"data-state":ny(d.open),role:"dialog",id:d.contentId},y,h,{ref:t,style:{...h.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ny(e){return e?"open":"closed"}const aC=rC,uC=nC,lC=iC;var ma=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ma||{}),Zl={},uo={},Qs={},ea={},ta={exports:{}},ra={exports:{}},Le={};/** @license React v16.13.1
111
+ `)},PL=0,ho=[];function IL(e){var t=B.useRef([]),r=B.useRef([0,0]),n=B.useRef(),o=B.useState(PL++)[0],a=B.useState(ox)[0],l=B.useRef(e);B.useEffect(function(){l.current=e},[e]),B.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var v=pc([e.lockRef.current],(e.shards||[]).map(Ib),!0).filter(Boolean);return v.forEach(function(y){return y.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),v.forEach(function(y){return y.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var c=B.useCallback(function(v,y){if("touches"in v&&v.touches.length===2||v.type==="wheel"&&v.ctrlKey)return!l.current.allowPinchZoom;var m=Al(v),w=r.current,x="deltaX"in v?v.deltaX:w[0]-m[0],k="deltaY"in v?v.deltaY:w[1]-m[1],E,R=v.target,F=Math.abs(x)>Math.abs(k)?"h":"v";if("touches"in v&&F==="h"&&R.type==="range")return!1;var P=window.getSelection(),$=P&&P.anchorNode,V=$?$===R||$.contains(R):!1;if(V)return!1;var z=Cb(F,R);if(!z)return!0;if(z?E=F:(E=F==="v"?"h":"v",z=Cb(F,R)),!z)return!1;if(!n.current&&"changedTouches"in v&&(x||k)&&(n.current=E),!E)return!0;var I=n.current||E;return AL(I,y,v,I==="h"?x:k)},[]),u=B.useCallback(function(v){var y=v;if(!(!ho.length||ho[ho.length-1]!==a)){var m="deltaY"in y?Pb(y):Al(y),w=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&RL(E.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(Ib).filter(Boolean).filter(function(E){return E.contains(y.target)}),k=x.length>0?c(y,x[0]):!l.current.noIsolation;k&&y.cancelable&&y.preventDefault()}}},[]),p=B.useCallback(function(v,y,m,w){var x={name:v,delta:y,target:m,should:w,shadowParent:NL(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),g=B.useCallback(function(v){r.current=Al(v),n.current=void 0},[]),f=B.useCallback(function(v){p(v.type,Pb(v),v.target,c(v,e.lockRef.current))},[]),h=B.useCallback(function(v){p(v.type,Al(v),v.target,c(v,e.lockRef.current))},[]);B.useEffect(function(){return ho.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:h}),document.addEventListener("wheel",u,po),document.addEventListener("touchmove",u,po),document.addEventListener("touchstart",g,po),function(){ho=ho.filter(function(v){return v!==a}),document.removeEventListener("wheel",u,po),document.removeEventListener("touchmove",u,po),document.removeEventListener("touchstart",g,po)}},[]);var b=e.removeScrollBar,S=e.inert;return B.createElement(B.Fragment,null,S?B.createElement(a,{styles:CL(o)}):null,b?B.createElement(xL,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function NL(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const DL=lL(ix,IL);var cx=B.forwardRef(function(e,t){return B.createElement(Mc,dn({},e,{ref:t,sideCar:DL}))});cx.classNames=Mc.classNames;const ML=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},LL=B.useId||(()=>{});let $L=0;function zL(e){const[t,r]=B.useState(LL());return ML((()=>{r((n=>n??String($L++)))}),[e]),e||(t?`radix-${t}`:"")}function ux(...e){return t=>e.forEach((r=>(function(n,o){typeof n=="function"?n(o):n!=null&&(n.current=o)})(r,t)))}function ji(...e){return B.useCallback(ux(...e),e)}const dx=B.forwardRef(((e,t)=>{const{children:r,...n}=e;return B.Children.toArray(r).some(Nb)?B.createElement(B.Fragment,null,B.Children.map(r,(o=>Nb(o)?B.createElement(Of,It({},n,{ref:t}),o.props.children):o))):B.createElement(Of,It({},n,{ref:t}),r)}));dx.displayName="Slot";const Of=B.forwardRef(((e,t)=>{const{children:r,...n}=e;return B.isValidElement(r)?B.cloneElement(r,{...FL(n,r.props),ref:ux(t,r.ref)}):B.Children.count(r)>1?B.Children.only(null):null}));Of.displayName="SlotClone";const jL=({children:e})=>B.createElement(B.Fragment,null,e);function Nb(e){return B.isValidElement(e)&&e.type===jL}function FL(e,t){const r={...t};for(const n in t){const o=e[n],a=t[n];/^on[A-Z]/.test(n)?r[n]=(...l)=>{a==null||a(...l),o==null||o(...l)}:n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...e,...r}}const Lo=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:B.forwardRef(((r,n)=>{const{asChild:o,...a}=r,l=o?dx:t;return B.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),B.createElement(l,It({},a,{ref:n}))}))})),{}),Db=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},fx=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=B.useState(),p=B.useRef({}),g=B.useRef(l),f=B.useRef("none"),h=l?"mounted":"unmounted",[b,S]=(function(v,y){return B.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 B.useEffect((()=>{const v=Rl(p.current);f.current=b==="mounted"?v:"none"}),[b]),Db((()=>{const v=p.current,y=g.current;if(y!==l){const m=f.current,w=Rl(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]),Db((()=>{if(c){const v=m=>{const w=Rl(p.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(f.current=Rl(p.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:B.useCallback((v=>{v&&(p.current=getComputedStyle(v)),u(v)}),[])}})(t),o=typeof r=="function"?r({present:n.isPresent}):B.Children.only(r),a=ji(n.ref,o.ref);return typeof r=="function"||n.isPresent?B.cloneElement(o,{ref:a}):null};function Rl(e){return(e==null?void 0:e.animationName)||"none"}fx.displayName="Presence";let Fd=0;function HL(){B.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:Mb()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:Mb()),Fd++,()=>{Fd===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),Fd--}}),[])}function Mb(){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 BL=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},px=B.forwardRef(((e,t)=>{var r,n;const{containerRef:o,style:a,...l}=e,c=(r=o==null?void 0:o.current)!==null&&r!==void 0?r:globalThis==null||(n=globalThis.document)===null||n===void 0?void 0:n.body,[,u]=B.useState({});return BL((()=>{u({})}),[]),c?$n.createPortal(B.createElement(Lo.div,It({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Li(e){const t=B.useRef(e);return B.useEffect((()=>{t.current=e})),B.useMemo((()=>(...r)=>{var n;return(n=t.current)===null||n===void 0?void 0:n.call(t,...r)}),[])}const Lb={bubbles:!1,cancelable:!0},WL=B.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[c,u]=B.useState(null),p=Li(o),g=Li(a),f=B.useRef(null),h=ji(t,(v=>u(v))),b=B.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;B.useEffect((()=>{if(n){let v=function(m){if(b.paused||!c)return;const w=m.target;c.contains(w)?f.current=w:Ti(f.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||Ti(f.current,{select:!0}))};return document.addEventListener("focusin",v),document.addEventListener("focusout",y),()=>{document.removeEventListener("focusin",v),document.removeEventListener("focusout",y)}}}),[n,c,b.paused]),B.useEffect((()=>{if(c){jb.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",Lb);c.addEventListener("focusScope.autoFocusOnMount",p),c.dispatchEvent(m),m.defaultPrevented||((function(w,{select:x=!1}={}){const k=document.activeElement;for(const E of w)if(Ti(E,{select:x}),document.activeElement!==k)return})((v=$b(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&Ti(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",Lb);c.addEventListener("focusScope.autoFocusOnUnmount",g),c.dispatchEvent(m),m.defaultPrevented||Ti(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",g),jb.remove(b)}),0)}}var v}),[c,p,g,b]);const S=B.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,k]=(function(E){const R=$b(E),F=zb(R,E),P=zb(R.reverse(),E);return[F,P]})(w);x&&k?v.shiftKey||m!==k?v.shiftKey&&m===x&&(v.preventDefault(),r&&Ti(k,{select:!0})):(v.preventDefault(),r&&Ti(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return B.createElement(Lo.div,It({tabIndex:-1},l,{ref:h,onKeyDown:S}))}));function $b(e){const t=[],r=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:n=>{const o=n.tagName==="INPUT"&&n.type==="hidden";return n.disabled||n.hidden||o?NodeFilter.FILTER_SKIP:n.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;r.nextNode();)t.push(r.currentNode);return t}function zb(e,t){for(const r of e)if(!UL(r,{upTo:t}))return r}function UL(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 Ti(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 jb=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=Fb(e,t),e.unshift(t)},remove(t){var r;e=Fb(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function Fb(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function qL(e){const t=Li(e);B.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const VL=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{};let Hb,Cl=0;function GL({disabled:e}){const t=B.useRef(!1);VL((()=>{if(e){let r=function(){Cl--,Cl===0&&(document.body.style.pointerEvents=Hb)},n=function(o){t.current=o.pointerType!=="mouse"};return Cl===0&&(Hb=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Cl++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Di(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 KL=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),ZL=B.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,p=B.useContext(KL),[g,f]=B.useState(null),[,h]=B.useState({}),b=ji(t,(R=>f(R))),S=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(v),m=g?S.indexOf(g):-1,w=p.layersWithOutsidePointerEventsDisabled.size>0,x=m>=y,k=(function(R){const F=Li(R),P=B.useRef(!1);return B.useEffect((()=>{const $=z=>{z.target&&!P.current&&Wb("dismissableLayer.pointerDownOutside",F,{originalEvent:z}),P.current=!1},V=window.setTimeout((()=>{document.addEventListener("pointerdown",$)}),0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",$)}}),[F]),{onPointerDownCapture:()=>P.current=!0}})((R=>{const F=R.target,P=[...p.branches].some(($=>$.contains(F)));x&&!P&&(o==null||o(R),l==null||l(R),R.defaultPrevented||c==null||c())})),E=(function(R){const F=Li(R),P=B.useRef(!1);return B.useEffect((()=>{const $=V=>{V.target&&!P.current&&Wb("dismissableLayer.focusOutside",F,{originalEvent:V})};return document.addEventListener("focusin",$),()=>document.removeEventListener("focusin",$)}),[F]),{onFocusCapture:()=>P.current=!0,onBlurCapture:()=>P.current=!1}})((R=>{const F=R.target;[...p.branches].some((P=>P.contains(F)))||(a==null||a(R),l==null||l(R),R.defaultPrevented||c==null||c())}));return qL((R=>{m===p.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),GL({disabled:r}),B.useEffect((()=>{g&&(r&&p.layersWithOutsidePointerEventsDisabled.add(g),p.layers.add(g),Bb())}),[g,r,p]),B.useEffect((()=>()=>{g&&(p.layers.delete(g),p.layersWithOutsidePointerEventsDisabled.delete(g),Bb())}),[g,p]),B.useEffect((()=>{const R=()=>h({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),B.createElement(Lo.div,It({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Di(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Di(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Di(e.onPointerDownCapture,k.onPointerDownCapture)}))}));function Bb(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Wb(e,t,r){const n=r.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:r});return t&&n.addEventListener(e,t,{once:!0}),!n.dispatchEvent(o)}function Ub(e){const[t,r]=B.useState(void 0);return B.useEffect((()=>{if(e){const n=new ResizeObserver((o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let l,c;if("borderBoxSize"in a){const u=a.borderBoxSize,p=Array.isArray(u)?u[0]:u;l=p.inlineSize,c=p.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 YL(e,t){const r=Ai.get(e);return r===void 0?(Ai.set(e,{rect:{},callbacks:[t]}),Ai.size===1&&(Tf=requestAnimationFrame(hx))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=Ai.get(e);if(n===void 0)return;const o=n.callbacks.indexOf(t);o>-1&&n.callbacks.splice(o,1),n.callbacks.length===0&&(Ai.delete(e),Ai.size===0&&cancelAnimationFrame(Tf))}}let Tf;const Ai=new Map;function hx(){const e=[];Ai.forEach(((t,r)=>{const n=r.getBoundingClientRect();var o,a;o=t.rect,a=n,(o.width!==a.width||o.height!==a.height||o.top!==a.top||o.right!==a.right||o.bottom!==a.bottom||o.left!==a.left)&&(t.rect=n,e.push(t))})),e.forEach((t=>{t.callbacks.forEach((r=>r(t.rect)))})),Tf=requestAnimationFrame(hx)}function XL(e){const[t,r]=B.useState();return B.useEffect((()=>{if(e){const n=YL(e,r);return()=>{r(void 0),n()}}}),[e]),t}function gx(e,t=[]){let r=[];const n=()=>{const o=r.map((a=>B.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||o;return B.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return n.scopeName=e,[function(o,a){const l=B.createContext(a),c=r.length;function u(p){const{scope:g,children:f,...h}=p,b=(g==null?void 0:g[e][c])||l,S=B.useMemo((()=>h),Object.values(h));return B.createElement(b.Provider,{value:S},f)}return r=[...r,a],u.displayName=o+"Provider",[u,function(p,g){const f=(g==null?void 0:g[e][c])||l,h=B.useContext(f);if(h)return h;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${o}\``)}]},JL(n,...t)]}function JL(...e){const t=e[0];if(e.length===1)return t;const r=()=>{const n=e.map((o=>({useScope:o(),scopeName:o.scopeName})));return function(o){const a=n.reduce(((l,{useScope:c,scopeName:u})=>({...l,...c(o)[`__scope${u}`]})),{});return B.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function QL({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:n=0,side:o,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:u=!0,collisionBoundariesRect:p,collisionTolerance:g=0}){if(!e||!t||!p)return{popperStyles:e$,arrowStyles:Hd};const f=(function(F,P,$=0,V=0,z){const I=z?z.height:0,j=qb(P,F,"x"),W=qb(P,F,"y"),N=W.before-$-I,Y=W.after+$+I,X=j.before-$-I,K=j.after+$+I;return{top:{start:{x:j.start+V,y:N},center:{x:j.center,y:N},end:{x:j.end-V,y:N}},right:{start:{x:K,y:W.start+V},center:{x:K,y:W.center},end:{x:K,y:W.end-V}},bottom:{start:{x:j.start+V,y:Y},center:{x:j.center,y:Y},end:{x:j.end-V,y:Y}},left:{start:{x:X,y:W.start+V},center:{x:X,y:W.center},end:{x:X,y:W.end-V}}}})(t,e,a,c,r),h=f[o][l];if(u===!1){const F=Vb(h);let P=Hd;return r&&(P=Kb({popperSize:t,arrowSize:r,arrowOffset:n,side:o,align:l})),{popperStyles:{...F,"--radix-popper-transform-origin":Gb(t,o,l,n,r)},arrowStyles:P,placedSide:o,placedAlign:l}}const b=DOMRect.fromRect({...t,...h}),S=(v=p,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=f[Zb(o)][l],x=(function(F,P,$){const V=Zb(F);return P[F]&&!$[V]?V:F})(o,m,Yb(DOMRect.fromRect({...t,...w}),S)),k=(function(F,P,$,V,z){const I=$==="top"||$==="bottom",j=I?"left":"top",W=I?"right":"bottom",N=I?"width":"height",Y=P[N]>F[N];return(V==="start"||V==="center")&&(z[j]&&Y||z[W]&&!Y)?"end":(V==="end"||V==="center")&&(z[W]&&Y||z[j]&&!Y)?"start":V})(t,e,o,l,m),E=Vb(f[x][k]);let R=Hd;return r&&(R=Kb({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:k})),{popperStyles:{...E,"--radix-popper-transform-origin":Gb(t,x,k,n,r)},arrowStyles:R,placedSide:x,placedAlign:k}}function qb(e,t,r){const n=e[r==="x"?"left":"top"],o=r==="x"?"width":"height",a=e[o],l=t[o];return{before:n-l,start:n,center:n+(a-l)/2,end:n+a-l,after:n+a}}function Vb(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 Gb(e,t,r,n,o){const a=t==="top"||t==="bottom",l=o?o.width:0,c=o?o.height:0,u=l/2+n;let p="",g="";return a?(p={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],g=t==="top"?`${e.height+c}px`:-c+"px"):(p=t==="left"?`${e.width+c}px`:-c+"px",g={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${p} ${g}`}const e$={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Hd={position:"absolute",opacity:0};function Kb({popperSize:e,arrowSize:t,arrowOffset:r,side:n,align:o}){const a=(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),p={width:`${u}px`,height:`${u}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[n]:"100%",direction:t$(n,o)};return n!=="top"&&n!=="bottom"||(o==="start"&&(p.left=`${r}px`),o==="center"&&(p.left=`${a}px`),o==="end"&&(p.right=`${r}px`)),n!=="left"&&n!=="right"||(o==="start"&&(p.top=`${r}px`),o==="center"&&(p.top=`${l}px`),o==="end"&&(p.bottom=`${r}px`)),p}function t$(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Zb(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[vx,mx]=gx("Popper"),[r$,bx]=vx("Popper"),n$=e=>{const{__scopePopper:t,children:r}=e,[n,o]=B.useState(null);return B.createElement(r$,{scope:t,anchor:n,onAnchorChange:o},r)},i$=B.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=bx("PopperAnchor",r),l=B.useRef(null),c=ji(t,l);return B.useEffect((()=>{a.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:B.createElement(Lo.div,It({},o,{ref:c}))})),[o$,g6]=vx("PopperContent"),a$=B.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...p}=e,g=bx("PopperContent",r),[f,h]=B.useState(),b=XL(g.anchor),[S,v]=B.useState(null),y=Ub(S),[m,w]=B.useState(null),x=Ub(m),k=ji(t,(I=>v(I))),E=(function(){const[I,j]=B.useState(void 0);return B.useEffect((()=>{let W;function N(){j({width:window.innerWidth,height:window.innerHeight})}function Y(){window.clearTimeout(W),W=window.setTimeout(N,100)}return N(),window.addEventListener("resize",Y),()=>window.removeEventListener("resize",Y)}),[]),I})(),R=E?DOMRect.fromRect({...E,x:0,y:0}):void 0,{popperStyles:F,arrowStyles:P,placedSide:$,placedAlign:V}=QL({anchorRect:b,popperSize:y,arrowSize:x,arrowOffset:f,side:n,sideOffset:o,align:a,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),z=$!==void 0;return B.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},B.createElement(o$,{scope:r,arrowStyles:P,onArrowChange:w,onArrowOffsetChange:h},B.createElement(Lo.div,It({"data-side":$,"data-align":V},p,{style:{...p.style,animation:z?void 0:"none"},ref:k}))))})),s$=n$,l$=i$,c$=a$;function u$({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,o]=(function({defaultProp:u,onChange:p}){const g=B.useState(u),[f]=g,h=B.useRef(f),b=Li(p);return B.useEffect((()=>{h.current!==f&&(b(f),h.current=f)}),[f,h,b]),g})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:n,c=Li(r);return[l,B.useCallback((u=>{if(a){const p=u,g=typeof u=="function"?p(e):u;g!==e&&c(g)}else o(u)}),[a,e,o,c])]}const[d$]=gx("Popover",[mx]),vp=mx(),[f$,gs]=d$("Popover"),p$=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:l=!1}=e,c=vp(t),u=B.useRef(null),[p,g]=B.useState(!1),[f=!1,h]=u$({prop:n,defaultProp:o,onChange:a});return B.createElement(s$,c,B.createElement(f$,{scope:t,contentId:zL(),triggerRef:u,open:f,onOpenChange:h,onOpenToggle:B.useCallback((()=>h((b=>!b))),[h]),hasCustomAnchor:p,onCustomAnchorAdd:B.useCallback((()=>g(!0)),[]),onCustomAnchorRemove:B.useCallback((()=>g(!1)),[]),modal:l},r))},h$=B.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=gs("PopoverTrigger",r),a=vp(r),l=ji(t,o.triggerRef),c=B.createElement(Lo.button,It({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":wx(o.open)},n,{ref:l,onClick:Di(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:B.createElement(l$,It({asChild:!0},a),c)})),g$=B.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=gs("PopoverContent",e.__scopePopover);return B.createElement(fx,{present:r||o.open},o.modal?B.createElement(v$,It({},n,{ref:t})):B.createElement(m$,It({},n,{ref:t})))})),v$=B.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...o}=e,a=gs("PopoverContent",e.__scopePopover),l=B.useRef(null),c=ji(t,l),u=B.useRef(!1);B.useEffect((()=>{const g=l.current;if(g)return QM(g)}),[]);const p=n?px:B.Fragment;return B.createElement(p,null,B.createElement(cx,{allowPinchZoom:r},B.createElement(yx,It({},o,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Di(e.onCloseAutoFocus,(g=>{var f;g.preventDefault(),u.current||(f=a.triggerRef.current)===null||f===void 0||f.focus()})),onPointerDownOutside:Di(e.onPointerDownOutside,(g=>{const f=g.detail.originalEvent,h=f.button===0&&f.ctrlKey===!0,b=f.button===2||h;u.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Di(e.onFocusOutside,(g=>g.preventDefault()),{checkForDefaultPrevented:!1})}))))})),m$=B.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,o=gs("PopoverContent",e.__scopePopover),a=B.useRef(!1),l=r?px:B.Fragment;return B.createElement(l,null,B.createElement(yx,It({},n,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var u,p;(u=e.onCloseAutoFocus)===null||u===void 0||u.call(e,c),c.defaultPrevented||(a.current||(p=o.triggerRef.current)===null||p===void 0||p.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var u,p;(u=e.onInteractOutside)===null||u===void 0||u.call(e,c),c.defaultPrevented||(a.current=!0);const g=c.target;!((p=o.triggerRef.current)===null||p===void 0)&&p.contains(g)&&c.preventDefault()}})))})),yx=B.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:g,...f}=e,h=gs("PopoverContent",r),b=vp(r);return HL(),B.createElement(WL,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},B.createElement(ZL,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:g,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onDismiss:()=>h.onOpenChange(!1)},B.createElement(c$,It({"data-state":wx(h.open),role:"dialog",id:h.contentId},b,f,{ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function wx(e){return e?"open":"closed"}const b$=p$,y$=h$,w$=g$;var ec=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(ec||{}),Bd={},_a={},Pl={},Il={},Nl={exports:{}},Dl={exports:{}},Ye={};/** @license React v16.13.1
63
112
  * react-is.production.min.js
64
113
  *
65
114
  * Copyright (c) Facebook, Inc. and its affiliates.
66
115
  *
67
116
  * This source code is licensed under the MIT license found in the
68
117
  * LICENSE file in the root directory of this source tree.
69
- */var Ug;function cC(){if(Ug)return Le;Ug=1;var e=typeof Symbol=="function"&&Symbol.for,t=e?Symbol.for("react.element"):60103,r=e?Symbol.for("react.portal"):60106,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(T){if(typeof T=="object"&&T!==null){var k=T.$$typeof;switch(k){case t:switch(T=T.type,T){case f:case m:case i:case a:case s:case h:return T;default:switch(T=T&&T.$$typeof,T){case c:case g:case x:case y:case u:return T;default:return k}}case r:return k}}}function R(T){return E(T)===m}return Le.AsyncMode=f,Le.ConcurrentMode=m,Le.ContextConsumer=c,Le.ContextProvider=u,Le.Element=t,Le.ForwardRef=g,Le.Fragment=i,Le.Lazy=x,Le.Memo=y,Le.Portal=r,Le.Profiler=a,Le.StrictMode=s,Le.Suspense=h,Le.isAsyncMode=function(T){return R(T)||E(T)===f},Le.isConcurrentMode=R,Le.isContextConsumer=function(T){return E(T)===c},Le.isContextProvider=function(T){return E(T)===u},Le.isElement=function(T){return typeof T=="object"&&T!==null&&T.$$typeof===t},Le.isForwardRef=function(T){return E(T)===g},Le.isFragment=function(T){return E(T)===i},Le.isLazy=function(T){return E(T)===x},Le.isMemo=function(T){return E(T)===y},Le.isPortal=function(T){return E(T)===r},Le.isProfiler=function(T){return E(T)===a},Le.isStrictMode=function(T){return E(T)===s},Le.isSuspense=function(T){return E(T)===h},Le.isValidElementType=function(T){return typeof T=="string"||typeof T=="function"||T===i||T===m||T===a||T===s||T===h||T===d||typeof T=="object"&&T!==null&&(T.$$typeof===x||T.$$typeof===y||T.$$typeof===u||T.$$typeof===c||T.$$typeof===g||T.$$typeof===w||T.$$typeof===v||T.$$typeof===S||T.$$typeof===p)},Le.typeOf=E,Le}var Me={};/** @license React v16.13.1
118
+ */var Xb;function x$(){if(Xb)return Ye;Xb=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,o=e?Symbol.for("react.strict_mode"):60108,a=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,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,f=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(E){if(typeof E=="object"&&E!==null){var R=E.$$typeof;switch(R){case t:switch(E=E.type,E){case u:case p:case n:case a:case o:case f:return E;default:switch(E=E&&E.$$typeof,E){case c:case g:case S:case b:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===p}return Ye.AsyncMode=u,Ye.ConcurrentMode=p,Ye.ContextConsumer=c,Ye.ContextProvider=l,Ye.Element=t,Ye.ForwardRef=g,Ye.Fragment=n,Ye.Lazy=S,Ye.Memo=b,Ye.Portal=r,Ye.Profiler=a,Ye.StrictMode=o,Ye.Suspense=f,Ye.isAsyncMode=function(E){return k(E)||x(E)===u},Ye.isConcurrentMode=k,Ye.isContextConsumer=function(E){return x(E)===c},Ye.isContextProvider=function(E){return x(E)===l},Ye.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ye.isForwardRef=function(E){return x(E)===g},Ye.isFragment=function(E){return x(E)===n},Ye.isLazy=function(E){return x(E)===S},Ye.isMemo=function(E){return x(E)===b},Ye.isPortal=function(E){return x(E)===r},Ye.isProfiler=function(E){return x(E)===a},Ye.isStrictMode=function(E){return x(E)===o},Ye.isSuspense=function(E){return x(E)===f},Ye.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===p||E===a||E===o||E===f||E===h||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===b||E.$$typeof===l||E.$$typeof===c||E.$$typeof===g||E.$$typeof===y||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Ye.typeOf=x,Ye}var Xe={};/** @license React v16.13.1
70
119
  * react-is.development.js
71
120
  *
72
121
  * Copyright (c) Facebook, Inc. and its affiliates.
73
122
  *
74
123
  * This source code is licensed under the MIT license found in the
75
124
  * LICENSE file in the root directory of this source tree.
76
- */var Wg;function fC(){return Wg||(Wg=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,i=e?Symbol.for("react.fragment"):60107,s=e?Symbol.for("react.strict_mode"):60108,a=e?Symbol.for("react.profiler"):60114,u=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,m=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,h=e?Symbol.for("react.suspense"):60113,d=e?Symbol.for("react.suspense_list"):60120,y=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,p=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,v=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(ie){return typeof ie=="string"||typeof ie=="function"||ie===i||ie===m||ie===a||ie===s||ie===h||ie===d||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===y||ie.$$typeof===u||ie.$$typeof===c||ie.$$typeof===g||ie.$$typeof===w||ie.$$typeof===v||ie.$$typeof===S||ie.$$typeof===p)}function R(ie){if(typeof ie=="object"&&ie!==null){var bt=ie.$$typeof;switch(bt){case t:var ft=ie.type;switch(ft){case f:case m:case i:case a:case s:case h:return ft;default:var br=ft&&ft.$$typeof;switch(br){case c:case g:case x:case y:case u:return br;default:return bt}}case r:return bt}}}var T=f,k=m,U=c,D=u,N=t,G=g,j=i,M=x,W=y,q=r,C=a,J=s,Y=h,te=!1;function de(ie){return te||(te=!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(ie)||R(ie)===f}function Z(ie){return R(ie)===m}function Q(ie){return R(ie)===c}function se(ie){return R(ie)===u}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===g}function ce(ie){return R(ie)===i}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===y}function me(ie){return R(ie)===r}function Ee(ie){return R(ie)===a}function Oe(ie){return R(ie)===s}function Ye(ie){return R(ie)===h}Me.AsyncMode=T,Me.ConcurrentMode=k,Me.ContextConsumer=U,Me.ContextProvider=D,Me.Element=N,Me.ForwardRef=G,Me.Fragment=j,Me.Lazy=M,Me.Memo=W,Me.Portal=q,Me.Profiler=C,Me.StrictMode=J,Me.Suspense=Y,Me.isAsyncMode=de,Me.isConcurrentMode=Z,Me.isContextConsumer=Q,Me.isContextProvider=se,Me.isElement=ue,Me.isForwardRef=ne,Me.isFragment=ce,Me.isLazy=fe,Me.isMemo=ye,Me.isPortal=me,Me.isProfiler=Ee,Me.isStrictMode=Oe,Me.isSuspense=Ye,Me.isValidElementType=E,Me.typeOf=R})()),Me}var Hg;function iy(){return Hg||(Hg=1,process.env.NODE_ENV==="production"?ra.exports=cC():ra.exports=fC()),ra.exports}/*
125
+ */var Jb;function S$(){return Jb||(Jb=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,o=e?Symbol.for("react.strict_mode"):60108,a=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,p=e?Symbol.for("react.concurrent_mode"):60111,g=e?Symbol.for("react.forward_ref"):60112,f=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===p||Z===a||Z===o||Z===f||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 k(Z){if(typeof Z=="object"&&Z!==null){var ke=Z.$$typeof;switch(ke){case t:var me=Z.type;switch(me){case u:case p:case n:case a:case o:case f:return me;default:var nt=me&&me.$$typeof;switch(nt){case c:case g:case S:case b:case l:return nt;default:return ke}}case r:return ke}}}var E=u,R=p,F=c,P=l,$=t,V=g,z=n,I=S,j=b,W=r,N=a,Y=o,X=f,K=!1;function ge(Z){return K||(K=!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.")),D(Z)||k(Z)===u}function D(Z){return k(Z)===p}function U(Z){return k(Z)===c}function ee(Z){return k(Z)===l}function te(Z){return typeof Z=="object"&&Z!==null&&Z.$$typeof===t}function J(Z){return k(Z)===g}function ce(Z){return k(Z)===n}function ae(Z){return k(Z)===S}function re(Z){return k(Z)===b}function de(Z){return k(Z)===r}function he(Z){return k(Z)===a}function fe(Z){return k(Z)===o}function xe(Z){return k(Z)===f}Xe.AsyncMode=E,Xe.ConcurrentMode=R,Xe.ContextConsumer=F,Xe.ContextProvider=P,Xe.Element=$,Xe.ForwardRef=V,Xe.Fragment=z,Xe.Lazy=I,Xe.Memo=j,Xe.Portal=W,Xe.Profiler=N,Xe.StrictMode=Y,Xe.Suspense=X,Xe.isAsyncMode=ge,Xe.isConcurrentMode=D,Xe.isContextConsumer=U,Xe.isContextProvider=ee,Xe.isElement=te,Xe.isForwardRef=J,Xe.isFragment=ce,Xe.isLazy=ae,Xe.isMemo=re,Xe.isPortal=de,Xe.isProfiler=he,Xe.isStrictMode=fe,Xe.isSuspense=xe,Xe.isValidElementType=x,Xe.typeOf=k})()),Xe}var Qb;function xx(){return Qb||(Qb=1,process.env.NODE_ENV==="production"?Dl.exports=x$():Dl.exports=S$()),Dl.exports}/*
77
126
  object-assign
78
127
  (c) Sindre Sorhus
79
128
  @license MIT
80
- */var Gl,qg;function dC(){if(qg)return Gl;qg=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function i(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function s(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[0]==="5")return!1;for(var u={},c=0;c<10;c++)u["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(u).map(function(g){return u[g]});if(f.join("")!=="0123456789")return!1;var m={};return"abcdefghijklmnopqrst".split("").forEach(function(g){m[g]=g}),Object.keys(Object.assign({},m)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Gl=s()?Object.assign:function(a,u){for(var c,f=i(a),m,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var h in c)t.call(c,h)&&(f[h]=c[h]);if(e){m=e(c);for(var d=0;d<m.length;d++)r.call(c,m[d])&&(f[m[d]]=c[m[d]])}}return f},Gl}var Vl,Zg;function sf(){if(Zg)return Vl;Zg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Vl=e,Vl}var Kl,Gg;function oy(){return Gg||(Gg=1,Kl=Function.call.bind(Object.prototype.hasOwnProperty)),Kl}var Yl,Vg;function pC(){if(Vg)return Yl;Vg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=sf(),r={},i=oy();e=function(a){var u="Warning: "+a;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}}}function s(a,u,c,f,m){if(process.env.NODE_ENV!=="production"){for(var g in a)if(i(a,g)){var h;try{if(typeof a[g]!="function"){var d=Error((f||"React class")+": "+c+" type `"+g+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name="Invariant Violation",d}h=a[g](u,g,f,c,null,t)}catch(x){h=x}if(h&&!(h instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+g+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof h+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),h instanceof Error&&!(h.message in r)){r[h.message]=!0;var y=m?m():"";e("Failed "+c+" type: "+h.message+(y??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Yl=s,Yl}var Xl,Kg;function hC(){if(Kg)return Xl;Kg=1;var e=iy(),t=dC(),r=sf(),i=oy(),s=pC(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var f="Warning: "+c;typeof console<"u"&&console.error(f);try{throw new Error(f)}catch{}});function u(){return null}return Xl=function(c,f){var m=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function h(Z){var Q=Z&&(m&&Z[m]||Z[g]);if(typeof Q=="function")return Q}var d="<<anonymous>>",y={array:v("array"),bigint:v("bigint"),bool:v("boolean"),func:v("function"),number:v("number"),object:v("object"),string:v("string"),symbol:v("symbol"),any:S(),arrayOf:E,element:R(),elementType:T(),instanceOf:k,node:G(),objectOf:D,oneOf:U,oneOfType:N,shape:M,exact:W};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function p(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}p.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var Q={},se=0;function ue(ce,fe,ye,me,Ee,Oe,Ye){if(me=me||d,Oe=Oe||ye,Ye!==r){if(f){var ie=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 ie.name="Invariant Violation",ie}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var bt=me+":"+ye;!Q[bt]&&se<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Oe+"` prop on `"+me+"`. 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."),Q[bt]=!0,se++)}}return fe[ye]==null?ce?fe[ye]===null?new p("The "+Ee+" `"+Oe+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new p("The "+Ee+" `"+Oe+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:Z(fe,ye,me,Ee,Oe)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function v(Z){function Q(se,ue,ne,ce,fe,ye){var me=se[ue],Ee=J(me);if(Ee!==Z){var Oe=Y(me);return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+Oe+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(Q)}function S(){return w(u)}function E(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new p("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside arrayOf.");var ye=se[ue];if(!Array.isArray(ye)){var me=J(ye);return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Oe=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Oe instanceof Error)return Oe}return null}return w(Q)}function R(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!c(fe)){var ye=J(fe);return new p("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function T(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!e.isValidElementType(fe)){var ye=J(fe);return new p("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement type."))}return null}return w(Z)}function k(Z){function Q(se,ue,ne,ce,fe){if(!(se[ue]instanceof Z)){var ye=Z.name||d,me=de(se[ue]);return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected ")+("instance of `"+ye+"`."))}return null}return w(Q)}function U(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),u;function Q(se,ue,ne,ce,fe){for(var ye=se[ue],me=0;me<Z.length;me++)if(x(ye,Z[me]))return null;var Ee=JSON.stringify(Z,function(Ye,ie){var bt=Y(ie);return bt==="symbol"?String(ie):ie});return new p("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return w(Q)}function D(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new p("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=se[ue],me=J(ye);if(me!=="object")return new p("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(i(ye,Ee)){var Oe=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Oe instanceof Error)return Oe}return null}return w(Q)}function N(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),u;for(var Q=0;Q<Z.length;Q++){var se=Z[Q];if(typeof se!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+te(se)+" at index "+Q+"."),u}function ue(ne,ce,fe,ye,me){for(var Ee=[],Oe=0;Oe<Z.length;Oe++){var Ye=Z[Oe],ie=Ye(ne,ce,fe,ye,me,r);if(ie==null)return null;ie.data&&i(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var bt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new p("Invalid "+ye+" `"+me+"` supplied to "+("`"+fe+"`"+bt+"."))}return w(ue)}function G(){function Z(Q,se,ue,ne,ce){return q(Q[se])?null:new p("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,Q,se,ue,ne){return new p((Z||"React class")+": "+Q+" type `"+se+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function M(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new p("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Oe=Z[Ee];if(typeof Oe!="function")return j(ne,ce,fe,Ee,Y(Oe));var Ye=Oe(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ye)return Ye}return null}return w(Q)}function W(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new p("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},se[ue],Z);for(var Oe in Ee){var Ye=Z[Oe];if(i(Z,Oe)&&typeof Ye!="function")return j(ne,ce,fe,Oe,Y(Ye));if(!Ye)return new p("Invalid "+ce+" `"+fe+"` key `"+Oe+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(se[ue],null," ")+`
81
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=Ye(ye,Oe,ne,ce,fe+"."+Oe,r);if(ie)return ie}return null}return w(Q)}function q(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(q);if(Z===null||c(Z))return!0;var Q=h(Z);if(Q){var se=Q.call(Z),ue;if(Q!==Z.entries){for(;!(ue=se.next()).done;)if(!q(ue.value))return!1}else for(;!(ue=se.next()).done;){var ne=ue.value;if(ne&&!q(ne[1]))return!1}}else return!1;return!0;default:return!1}}function C(Z,Q){return Z==="symbol"?!0:Q?Q["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&Q instanceof Symbol:!1}function J(Z){var Q=typeof Z;return Array.isArray(Z)?"array":Z instanceof RegExp?"object":C(Q,Z)?"symbol":Q}function Y(Z){if(typeof Z>"u"||Z===null)return""+Z;var Q=J(Z);if(Q==="object"){if(Z instanceof Date)return"date";if(Z instanceof RegExp)return"regexp"}return Q}function te(Z){var Q=Y(Z);switch(Q){case"array":case"object":return"an "+Q;case"boolean":case"date":case"regexp":return"a "+Q;default:return Q}}function de(Z){return!Z.constructor||!Z.constructor.name?d:Z.constructor.name}return y.checkPropTypes=s,y.resetWarningCache=s.resetWarningCache,y.PropTypes=y,y},Xl}var Jl,Yg;function gC(){if(Yg)return Jl;Yg=1;var e=sf();function t(){}function r(){}return r.resetWarningCache=t,Jl=function(){function i(u,c,f,m,g,h){if(h!==e){var d=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 d.name="Invariant Violation",d}}i.isRequired=i;function s(){return i}var a={array:i,bigint:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:s,element:i,elementType:i,instanceOf:s,node:i,objectOf:s,oneOf:s,oneOfType:s,shape:s,exact:s,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Jl}var Xg;function mC(){if(Xg)return ta.exports;if(Xg=1,process.env.NODE_ENV!=="production"){var e=iy(),t=!0;ta.exports=hC()(e.isElement,t)}else ta.exports=gC()();return ta.exports}var Jg;function vC(){return Jg||(Jg=1,(function(e){(function(t,r){r(e,z,mC())})(ea,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=u(r),a=u(i);function u(S){return S&&S.__esModule?S:{default:S}}var c=Object.assign||function(S){for(var E=1;E<arguments.length;E++){var R=arguments[E];for(var T in R)Object.prototype.hasOwnProperty.call(R,T)&&(S[T]=R[T])}return S};function f(S,E){var R={};for(var T in S)E.indexOf(T)>=0||Object.prototype.hasOwnProperty.call(S,T)&&(R[T]=S[T]);return R}function m(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var g=(function(){function S(E,R){for(var T=0;T<R.length;T++){var k=R[T];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,T){return R&&S(E.prototype,R),T&&S(E,T),E}})();function h(S,E){if(!S)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return E&&(typeof E=="object"||typeof E=="function")?E:S}function d(S,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof E);S.prototype=Object.create(E&&E.prototype,{constructor:{value:S,enumerable:!1,writable:!0,configurable:!0}}),E&&(Object.setPrototypeOf?Object.setPrototypeOf(S,E):S.__proto__=E)}var y=!1;function x(S){y=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function p(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return y?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,T=E.pageY;return{x:R,y:T}}var k=S.screenX,U=S.screenY;return{x:k,y:U}}var v=(function(S){d(E,S);function E(){var R;m(this,E);for(var T=arguments.length,k=Array(T),U=0;U<T;U++)k[U]=arguments[U];var D=h(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return D._handleSwipeStart=D._handleSwipeStart.bind(D),D._handleSwipeMove=D._handleSwipeMove.bind(D),D._handleSwipeEnd=D._handleSwipeEnd.bind(D),D._onMouseDown=D._onMouseDown.bind(D),D._onMouseMove=D._onMouseMove.bind(D),D._onMouseUp=D._onMouseUp.bind(D),D._setSwiperRef=D._setSwiperRef.bind(D),D}return g(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,p({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(T){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(T))}},{key:"_onMouseMove",value:function(T){this.mouseDown&&this._handleSwipeMove(T)}},{key:"_onMouseUp",value:function(T){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(T)}},{key:"_handleSwipeStart",value:function(T){var k=w(T),U=k.x,D=k.y;this.moveStart={x:U,y:D},this.props.onSwipeStart(T)}},{key:"_handleSwipeMove",value:function(T){if(this.moveStart){var k=w(T),U=k.x,D=k.y,N=U-this.moveStart.x,G=D-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:N,y:G},T);j&&T.cancelable&&T.preventDefault(),this.movePosition={deltaX:N,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(T){this.props.onSwipeEnd(T);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,T):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,T),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,T):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,T)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(T){this.swiper=T,this.props.innerRef(T)}},{key:"render",value:function(){var T=this.props;T.tagName;var k=T.className,U=T.style,D=T.children;T.allowMouseEvents,T.onSwipeUp,T.onSwipeDown,T.onSwipeLeft,T.onSwipeRight,T.onSwipeStart,T.onSwipeMove,T.onSwipeEnd,T.innerRef,T.tolerance;var N=f(T,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return s.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:k,style:U},N),D)}}]),E})(r.Component);v.displayName="ReactSwipe",v.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.default.number.isRequired},v.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=v})})(ea)),ea}var Qg;function sy(){return Qg||(Qg=1,(function(e){(function(t,r){r(e,vC())})(Qs,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var i=s(r);function s(a){return a&&a.__esModule?a:{default:a}}t.default=i.default})})(Qs)),Qs}var lo={},em;function ay(){if(em)return lo;em=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.default=void 0;var e=t(mv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,u){return a in s?Object.defineProperty(s,a,{value:u,enumerable:!0,configurable:!0,writable:!0}):s[a]=u,s}var i={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,u){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":u==="horizontal","axis-vertical":u!=="horizontal"})},SLIDER:function(a,u){return(0,e.default)({thumbs:!a,slider:a,animated:!u})},ITEM:function(a,u,c){return(0,e.default)({thumb:!a,slide:a,selected:u,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return lo.default=i,lo}var co={},fo={},tm;function yC(){if(tm)return fo;tm=1,Object.defineProperty(fo,"__esModule",{value:!0}),fo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return fo.outerWidth=e,fo}var po={},rm;function af(){if(rm)return po;rm=1,Object.defineProperty(po,"__esModule",{value:!0}),po.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,u=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+u.join(",")+")";return c+f};return po.default=e,po}var ho={},nm;function uy(){if(nm)return ho;nm=1,Object.defineProperty(ho,"__esModule",{value:!0}),ho.default=void 0;var e=function(){return window};return ho.default=e,ho}var im;function ly(){if(im)return co;im=1,Object.defineProperty(co,"__esModule",{value:!0}),co.default=void 0;var e=f(z),t=u(ay()),r=yC(),i=u(af()),s=u(sy()),a=u(uy());function u(D){return D&&D.__esModule?D:{default:D}}function c(){if(typeof WeakMap!="function")return null;var D=new WeakMap;return c=function(){return D},D}function f(D){if(D&&D.__esModule)return D;if(D===null||m(D)!=="object"&&typeof D!="function")return{default:D};var N=c();if(N&&N.has(D))return N.get(D);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in D)if(Object.prototype.hasOwnProperty.call(D,M)){var W=j?Object.getOwnPropertyDescriptor(D,M):null;W&&(W.get||W.set)?Object.defineProperty(G,M,W):G[M]=D[M]}return G.default=D,N&&N.set(D,G),G}function m(D){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m=function(G){return typeof G}:m=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},m(D)}function g(){return g=Object.assign||function(D){for(var N=1;N<arguments.length;N++){var G=arguments[N];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(D[j]=G[j])}return D},g.apply(this,arguments)}function h(D,N){if(!(D instanceof N))throw new TypeError("Cannot call a class as a function")}function d(D,N){for(var G=0;G<N.length;G++){var j=N[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(D,j.key,j)}}function y(D,N,G){return N&&d(D.prototype,N),D}function x(D,N){if(typeof N!="function"&&N!==null)throw new TypeError("Super expression must either be null or a function");D.prototype=Object.create(N&&N.prototype,{constructor:{value:D,writable:!0,configurable:!0}}),N&&p(D,N)}function p(D,N){return p=Object.setPrototypeOf||function(j,M){return j.__proto__=M,j},p(D,N)}function w(D){var N=E();return function(){var j=R(D),M;if(N){var W=R(this).constructor;M=Reflect.construct(j,arguments,W)}else M=j.apply(this,arguments);return v(this,M)}}function v(D,N){return N&&(m(N)==="object"||typeof N=="function")?N:S(D)}function S(D){if(D===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D}function E(){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 R(D){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(D)}function T(D,N,G){return N in D?Object.defineProperty(D,N,{value:G,enumerable:!0,configurable:!0,writable:!0}):D[N]=G,D}var k=function(N){return N.hasOwnProperty("key")},U=(function(D){x(G,D);var N=w(G);function G(j){var M;return h(this,G),M=N.call(this,j),T(S(M),"itemsWrapperRef",void 0),T(S(M),"itemsListRef",void 0),T(S(M),"thumbsRef",void 0),T(S(M),"setItemsWrapperRef",function(W){M.itemsWrapperRef=W}),T(S(M),"setItemsListRef",function(W){M.itemsListRef=W}),T(S(M),"setThumbsRef",function(W,q){M.thumbsRef||(M.thumbsRef=[]),M.thumbsRef[q]=W}),T(S(M),"updateSizes",function(){if(!(!M.props.children||!M.itemsWrapperRef||!M.thumbsRef)){var W=e.Children.count(M.props.children),q=M.itemsWrapperRef.clientWidth,C=M.props.thumbWidth?M.props.thumbWidth:(0,r.outerWidth)(M.thumbsRef[0]),J=Math.floor(q/C),Y=J<W,te=Y?W-J:0;M.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?M.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),T(S(M),"handleClickItem",function(W,q,C){if(!k(C)||C.key==="Enter"){var J=M.props.onSelectItem;typeof J=="function"&&J(W,q)}}),T(S(M),"onSwipeStart",function(){M.setState({swiping:!0})}),T(S(M),"onSwipeEnd",function(){M.setState({swiping:!1})}),T(S(M),"onSwipeMove",function(W){var q=W.x;if(!M.state.itemSize||!M.itemsWrapperRef||!M.state.visibleItems)return!1;var C=0,J=e.Children.count(M.props.children),Y=-(M.state.firstItem*100)/M.state.visibleItems,te=Math.max(J-M.state.visibleItems,0),de=-te*100/M.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=M.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return M.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){M.itemsListRef.style[se]=(0,i.default)(Q,"%",M.props.axis)}),!0}),T(S(M),"slideRight",function(W){M.moveTo(M.state.firstItem-(typeof W=="number"?W:1))}),T(S(M),"slideLeft",function(W){M.moveTo(M.state.firstItem+(typeof W=="number"?W:1))}),T(S(M),"moveTo",function(W){W=W<0?0:W,W=W>=M.state.lastPosition?M.state.lastPosition:W,M.setState({firstItem:W})}),M.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},M}return y(G,[{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,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(M){var W=M;return M>=this.state.lastPosition&&(W=this.state.lastPosition),M<this.state.firstItem+this.state.visibleItems&&(W=this.state.firstItem),M<this.state.firstItem&&(W=M),W}},{key:"renderItems",value:function(){var M=this;return this.props.children.map(function(W,q){var C=t.default.ITEM(!1,q===M.state.selectedItem),J={key:q,ref:function(te){return M.setThumbsRef(te,q)},className:C,onClick:M.handleClickItem.bind(M,q,M.props.children[q]),onKeyDown:M.handleClickItem.bind(M,q,M.props.children[q]),"aria-label":"".concat(M.props.labels.item," ").concat(q+1),style:{width:M.props.thumbWidth}};return e.default.createElement("li",g({},J,{role:"button",tabIndex:0}),W)})}},{key:"render",value:function(){var M=this;if(!this.props.children)return null;var W=e.Children.count(this.props.children)>1,q=this.state.showArrows&&this.state.firstItem>0,C=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,J={},Y=-this.state.firstItem*(this.state.itemSize||0),te=(0,i.default)(Y,"px",this.props.axis),de=this.props.transitionTime+"ms";return J={WebkitTransform:te,MozTransform:te,MsTransform:te,OTransform:te,transform:te,msTransform:te,WebkitTransitionDuration:de,MozTransitionDuration:de,MsTransitionDuration:de,OTransitionDuration:de,transitionDuration:de,msTransitionDuration:de},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(!q),onClick:function(){return M.slideRight()},"aria-label":this.props.labels.leftArrow}),W?e.default.createElement(s.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:J,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(Q){return M.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return M.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return co.default=U,T(U,"displayName","Thumbs"),T(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),co}var go={},om;function bC(){if(om)return go;om=1,Object.defineProperty(go,"__esModule",{value:!0}),go.default=void 0;var e=function(){return document};return go.default=e,go}var Ht={},sm;function cy(){if(sm)return Ht;sm=1,Object.defineProperty(Ht,"__esModule",{value:!0}),Ht.setPosition=Ht.getPosition=Ht.isKeyboardEvent=Ht.defaultStatusFormatter=Ht.noop=void 0;var e=z,t=r(af());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ht.noop=i;var s=function(m,g){return"".concat(m," of ").concat(g)};Ht.defaultStatusFormatter=s;var a=function(m){return m?m.hasOwnProperty("key"):!1};Ht.isKeyboardEvent=a;var u=function(m,g){if(g.infiniteLoop&&++m,m===0)return 0;var h=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var d=-m*g.centerSlidePercentage,y=h-1;return m&&(m!==y||g.infiniteLoop)?d+=(100-g.centerSlidePercentage)/2:m===y&&(d+=100-g.centerSlidePercentage),d}return-m*100};Ht.getPosition=u;var c=function(m,g){var h={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(d){h[d]=(0,t.default)(m,"%",g)}),h};return Ht.setPosition=c,Ht}var hr={},am;function wC(){if(am)return hr;am=1,Object.defineProperty(hr,"__esModule",{value:!0}),hr.fadeAnimationHandler=hr.slideStopSwipingHandler=hr.slideSwipeAnimationHandler=hr.slideAnimationHandler=void 0;var e=z,t=i(af()),r=cy();function i(h){return h&&h.__esModule?h:{default:h}}function s(h,d){var y=Object.keys(h);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(h);d&&(x=x.filter(function(p){return Object.getOwnPropertyDescriptor(h,p).enumerable})),y.push.apply(y,x)}return y}function a(h){for(var d=1;d<arguments.length;d++){var y=arguments[d]!=null?arguments[d]:{};d%2?s(Object(y),!0).forEach(function(x){u(h,x,y[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(y)):s(Object(y)).forEach(function(x){Object.defineProperty(h,x,Object.getOwnPropertyDescriptor(y,x))})}return h}function u(h,d,y){return d in h?Object.defineProperty(h,d,{value:y,enumerable:!0,configurable:!0,writable:!0}):h[d]=y,h}var c=function(d,y){var x={},p=y.selectedItem,w=p,v=e.Children.count(d.children)-1,S=d.infiniteLoop&&(p<0||p>v);if(S)return w<0?d.centerMode&&d.centerSlidePercentage&&d.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(v+2)*d.centerSlidePercentage-(100-d.centerSlidePercentage)/2,d.axis):x.itemListStyle=(0,r.setPosition)(-(v+2)*100,d.axis):w>v&&(x.itemListStyle=(0,r.setPosition)(0,d.axis)),x;var E=(0,r.getPosition)(p,d),R=(0,t.default)(E,"%",d.axis),T=d.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},y.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:T,MozTransitionDuration:T,OTransitionDuration:T,transitionDuration:T,msTransitionDuration:T})),x};hr.slideAnimationHandler=c;var f=function(d,y,x,p){var w={},v=y.axis==="horizontal",S=e.Children.count(y.children),E=0,R=(0,r.getPosition)(x.selectedItem,y),T=y.infiniteLoop?(0,r.getPosition)(S-1,y)-100:(0,r.getPosition)(S-1,y),k=v?d.x:d.y,U=k;R===E&&k>0&&(U=0),R===T&&k<0&&(U=0);var D=R+100/(x.itemSize/U),N=Math.abs(k)>y.swipeScrollTolerance;return y.infiniteLoop&&N&&(x.selectedItem===0&&D>-100?D-=S*100:x.selectedItem===S-1&&D<-S*100&&(D+=S*100)),(!y.preventMovementUntilSwipeScrollTolerance||N||x.swipeMovementStarted)&&(x.swipeMovementStarted||p({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(D,y.axis)),N&&!x.cancelClick&&p({cancelClick:!0}),w};hr.slideSwipeAnimationHandler=f;var m=function(d,y){var x=(0,r.getPosition)(y.selectedItem,d),p=(0,r.setPosition)(x,d.axis);return{itemListStyle:p}};hr.slideStopSwipingHandler=m;var g=function(d,y){var x=d.transitionTime+"ms",p="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:p,msTransitionTimingFunction:p,MozTransitionTimingFunction:p,WebkitTransitionTimingFunction:p,OTransitionTimingFunction:p};return y.swiping||(w=a(a({},w),{},{WebkitTransitionDuration:x,MozTransitionDuration:x,OTransitionDuration:x,transitionDuration:x,msTransitionDuration:x})),{slideStyle:w,selectedStyle:a(a({},w),{},{opacity:1,position:"relative"}),prevStyle:a({},w)}};return hr.fadeAnimationHandler=g,hr}var um;function xC(){if(um)return uo;um=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=g(z),t=f(sy()),r=f(ay()),i=f(ly()),s=f(bC()),a=f(uy()),u=cy(),c=wC();function f(j){return j&&j.__esModule?j:{default:j}}function m(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return m=function(){return j},j}function g(j){if(j&&j.__esModule)return j;if(j===null||h(j)!=="object"&&typeof j!="function")return{default:j};var M=m();if(M&&M.has(j))return M.get(j);var W={},q=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in j)if(Object.prototype.hasOwnProperty.call(j,C)){var J=q?Object.getOwnPropertyDescriptor(j,C):null;J&&(J.get||J.set)?Object.defineProperty(W,C,J):W[C]=j[C]}return W.default=j,M&&M.set(j,W),W}function h(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?h=function(W){return typeof W}:h=function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},h(j)}function d(){return d=Object.assign||function(j){for(var M=1;M<arguments.length;M++){var W=arguments[M];for(var q in W)Object.prototype.hasOwnProperty.call(W,q)&&(j[q]=W[q])}return j},d.apply(this,arguments)}function y(j,M){var W=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);M&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(j,C).enumerable})),W.push.apply(W,q)}return W}function x(j){for(var M=1;M<arguments.length;M++){var W=arguments[M]!=null?arguments[M]:{};M%2?y(Object(W),!0).forEach(function(q){N(j,q,W[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(W)):y(Object(W)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(W,q))})}return j}function p(j,M){if(!(j instanceof M))throw new TypeError("Cannot call a class as a function")}function w(j,M){for(var W=0;W<M.length;W++){var q=M[W];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function v(j,M,W){return M&&w(j.prototype,M),j}function S(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&&E(j,M)}function E(j,M){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(j,M)}function R(j){var M=U();return function(){var q=D(j),C;if(M){var J=D(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return T(this,C)}}function T(j,M){return M&&(h(M)==="object"||typeof M=="function")?M:k(j)}function k(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function U(){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 D(j){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(W){return W.__proto__||Object.getPrototypeOf(W)},D(j)}function N(j,M,W){return M in j?Object.defineProperty(j,M,{value:W,enumerable:!0,configurable:!0,writable:!0}):j[M]=W,j}var G=(function(j){S(W,j);var M=R(W);function W(q){var C;p(this,W),C=M.call(this,q),N(k(C),"thumbsRef",void 0),N(k(C),"carouselWrapperRef",void 0),N(k(C),"listRef",void 0),N(k(C),"itemsRef",void 0),N(k(C),"timer",void 0),N(k(C),"animationHandler",void 0),N(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),N(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),N(k(C),"setListRef",function(Y){C.listRef=Y}),N(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),N(k(C),"autoPlay",function(){e.Children.count(C.props.children)<=1||(C.clearAutoPlay(),C.props.autoPlay&&(C.timer=setTimeout(function(){C.increment()},C.props.interval)))}),N(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),N(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),N(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),N(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),N(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),N(k(C),"navigateWithKeyboard",function(Y){if(C.isFocusWithinTheCarousel()){var te=C.props.axis,de=te==="horizontal",Z={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},Q=de?Z.ArrowRight:Z.ArrowDown,se=de?Z.ArrowLeft:Z.ArrowUp;Q===Y.keyCode?C.increment():se===Y.keyCode&&C.decrement()}}),N(k(C),"updateSizes",function(){if(!(!C.state.initialized||!C.itemsRef||C.itemsRef.length===0)){var Y=C.props.axis==="horizontal",te=C.itemsRef[0];if(te){var de=Y?te.clientWidth:te.clientHeight;C.setState({itemSize:de}),C.thumbsRef&&C.thumbsRef.updateSizes()}}}),N(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),N(k(C),"handleClickItem",function(Y,te){if(e.Children.count(C.props.children)!==0){if(C.state.cancelClick){C.setState({cancelClick:!1});return}C.props.onClickItem(Y,te),Y!==C.state.selectedItem&&C.setState({selectedItem:Y})}}),N(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),N(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),N(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),N(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),N(k(C),"onSwipeMove",function(Y,te){C.props.onSwipeMove(te);var de=C.props.swipeAnimationHandler(Y,C.props,C.state,C.setState.bind(k(C)));return C.setState(x({},de)),!!Object.keys(de).length}),N(k(C),"decrement",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem-(typeof Y=="number"?Y:1))}),N(k(C),"increment",function(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;C.moveTo(C.state.selectedItem+(typeof Y=="number"?Y:1))}),N(k(C),"moveTo",function(Y){if(typeof Y=="number"){var te=e.Children.count(C.props.children)-1;Y<0&&(Y=C.props.infiniteLoop?te:0),Y>te&&(Y=C.props.infiniteLoop?0:te),C.selectItem({selectedItem:Y}),C.state.autoPlay&&C.state.isMouseEntered===!1&&C.resetAutoPlay()}}),N(k(C),"onClickNext",function(){C.increment(1)}),N(k(C),"onClickPrev",function(){C.decrement(1)}),N(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),N(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),N(k(C),"changeItem",function(Y){return function(te){(!(0,u.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),N(k(C),"selectItem",function(Y){C.setState(x({previousItem:C.state.selectedItem},Y),function(){C.setState(C.animationHandler(C.props,C.state))}),C.handleOnChange(Y.selectedItem,e.Children.toArray(C.props.children)[Y.selectedItem])}),N(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),N(k(C),"getVariableItemHeight",function(Y){var te=C.itemsRef&&C.itemsRef[Y];if(C.state.hasMount&&te&&te.children.length){var de=te.children[0].getElementsByTagName("img")||[];if(de.length>0){var Z=de[0];if(!Z.complete){var Q=function ne(){C.forceUpdate(),Z.removeEventListener("load",ne)};Z.addEventListener("load",Q)}}var se=de[0]||te.children[0],ue=se.clientHeight;return ue>0?ue:null}return null});var J={initialized:!1,previousItem:q.selectedItem,selectedItem:q.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:q.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return C.animationHandler=typeof q.animationHandler=="function"&&q.animationHandler||q.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,C.state=x(x({},J),C.animationHandler(q,J)),C}return v(W,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(C,J){!C.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!C.autoFocus&&this.props.autoFocus&&this.forceFocus(),J.swiping&&!this.state.swiping&&this.setState(x({},this.props.stopSwipingHandler(this.props,this.state))),(C.selectedItem!==this.props.selectedItem||C.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),C.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 C=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 J=C.getInitialImage();J&&!J.complete?J.addEventListener("load",C.setMountState):C.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.addEventListener("mouseenter",this.stopOnHover),C.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var C=this.carouselWrapperRef;this.props.stopOnHover&&C&&(C.removeEventListener("mouseenter",this.stopOnHover),C.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,s.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var C=this.getInitialImage();C&&C.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,s.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var C;(C=this.carouselWrapperRef)===null||C===void 0||C.focus()}},{key:"renderItems",value:function(C){var J=this;return this.props.children?e.Children.map(this.props.children,function(Y,te){var de=te===J.state.selectedItem,Z=te===J.state.previousItem,Q=de&&J.state.selectedStyle||Z&&J.state.prevStyle||J.state.slideStyle||{};J.props.centerMode&&J.props.axis==="horizontal"&&(Q=x(x({},Q),{},{minWidth:J.props.centerSlidePercentage+"%"})),J.state.swiping&&J.state.swipeMovementStarted&&(Q=x(x({},Q),{},{pointerEvents:"none"}));var se={ref:function(ne){return J.setItemsRef(ne,te)},key:"itemKey"+te+(C?"clone":""),className:r.default.ITEM(!0,te===J.state.selectedItem,te===J.state.previousItem),onClick:J.handleClickItem.bind(J,te,Y),style:Q};return e.default.createElement("li",se,J.props.renderItem(Y,{isSelected:te===J.state.selectedItem,isPrevious:te===J.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var C=this,J=this.props,Y=J.showIndicators,te=J.labels,de=J.renderIndicator,Z=J.children;return Y?e.default.createElement("ul",{className:"control-dots"},e.Children.map(Z,function(Q,se){return de&&de(C.changeItem(se),se===C.state.selectedItem,se,te.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(i.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 C=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var J=this.props.swipeable&&e.Children.count(this.props.children)>1,Y=this.props.axis==="horizontal",te=this.props.showArrows&&e.Children.count(this.props.children)>1,de=te&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,Z=te&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,Q=this.renderItems(!0),se=Q.shift(),ue=Q.pop(),ne={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},ce={};if(Y){if(ne.onSwipeLeft=this.onSwipeForward,ne.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var fe=this.getVariableItemHeight(this.state.selectedItem);ce.height=fe||"auto"}}else ne.onSwipeUp=this.props.verticalSwipe==="natural"?this.onSwipeBackwards:this.onSwipeForward,ne.onSwipeDown=this.props.verticalSwipe==="natural"?this.onSwipeForward:this.onSwipeBackwards,ne.style=x(x({},ne.style),{},{height:this.state.itemSize}),ce.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,de,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},J?e.default.createElement(t.default,d({tagName:"ul",innerRef:this.setListRef},ne,{allowMouseEvents:this.props.emulateTouch}),this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(me){return C.setListRef(me)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&ue,this.renderItems(),this.props.infiniteLoop&&se)),this.props.renderArrowNext(this.onClickNext,Z,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),W})(e.default.Component);return uo.default=G,N(G,"displayName","Carousel"),N(G,"defaultProps",{ariaLabel:void 0,axis:"horizontal",centerSlidePercentage:80,interval:3e3,labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},onClickItem:u.noop,onClickThumb:u.noop,onChange:u.noop,onSwipeStart:function(){},onSwipeEnd:function(){},onSwipeMove:function(){return!1},preventMovementUntilSwipeScrollTolerance:!1,renderArrowPrev:function(M,W,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!W),onClick:M})},renderArrowNext:function(M,W,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!W),onClick:M})},renderIndicator:function(M,W,q,C){return e.default.createElement("li",{className:r.default.DOT(W),onClick:M,onKeyDown:M,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(M){return M},renderThumbs:function(M){var W=e.Children.map(M,function(q){var C=q;if(q.type!=="img"&&(C=e.Children.toArray(q.props.children).find(function(J){return J.type==="img"})),!!C)return C});return W.filter(function(q){return q}).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"),[]):W},statusFormatter:u.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}),uo}var lm={},cm;function SC(){return cm||(cm=1),lm}var fm;function EC(){return fm||(fm=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 i.default}});var t=s(xC()),r=SC(),i=s(ly());function s(a){return a&&a.__esModule?a:{default:a}}})(Zl)),Zl}var _C=EC();const TC=({tip:e})=>$.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:fy(e,!0)}),OC=({pages:e})=>$.jsx("div",{className:"min-h-[10rem] w-96",children:$.jsx(_C.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>$.jsx(TC,{tip:t},t.key))})}),AC=({body:e,isInsideCarousel:t})=>$.jsx("article",{className:je(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:$.jsx(xa,{children:e,options:{overrides:{a:{component:({children:r,...i})=>$.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,$.jsx(Ke.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),RC=({video:e,body:t,title:r,isInsideCarousel:i})=>$.jsxs("div",{className:je([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[$.jsx("div",{className:je([{"mr-1":!i,"mb-1":i}]),children:$.jsx("iframe",{height:i?"auto":90,width:i?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),$.jsx("article",{className:je(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:$.jsx(xa,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>$.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,$.jsx(Ke.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),fy=(e,t)=>{switch(e.type){case ma.TEXT:return $.jsx(AC,{body:e.body,isInsideCarousel:t});case ma.VIDEO:return $.jsx(RC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ma.CAROUSEL:return $.jsx(OC,{pages:e.pages})}},dy=z.createContext(void 0);function dm(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const PC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=z.useState({tips:{},show:!0});z.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const m=f.reduce((g,h)=>dm(f,h.key).length>1?{...g,[h.key]:{type:"carousel",pages:dm(f,h.key)}}:{...g,[h.key]:h},{});a(g=>({...g,tips:m}))})}catch{}return()=>{c.abort()}},[]);const u=()=>{a(c=>({...c,show:!s}))};return $.jsx(dy.Provider,{value:{tips:i,toggleTips:u,show:s,enabled:t},children:e})},py=e=>{const t=z.useContext(dy);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}},CC=Sa(uC)`
129
+ */var Wd,ey;function _$(){if(ey)return Wd;ey=1;var e=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,r=Object.prototype.propertyIsEnumerable;function n(a){if(a==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(a)}function o(){try{if(!Object.assign)return!1;var a=new String("abc");if(a[5]="de",Object.getOwnPropertyNames(a)[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 p={};return"abcdefghijklmnopqrst".split("").forEach(function(g){p[g]=g}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Wd=o()?Object.assign:function(a,l){for(var c,u=n(a),p,g=1;g<arguments.length;g++){c=Object(arguments[g]);for(var f in c)t.call(c,f)&&(u[f]=c[f]);if(e){p=e(c);for(var h=0;h<p.length;h++)r.call(c,p[h])&&(u[p[h]]=c[p[h]])}}return u},Wd}var Ud,ty;function mp(){if(ty)return Ud;ty=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Ud=e,Ud}var qd,ry;function Sx(){return ry||(ry=1,qd=Function.call.bind(Object.prototype.hasOwnProperty)),qd}var Vd,ny;function E$(){if(ny)return Vd;ny=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=mp(),r={},n=Sx();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function o(a,l,c,u,p){if(process.env.NODE_ENV!=="production"){for(var g in a)if(n(a,g)){var f;try{if(typeof a[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 a[g]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw h.name="Invariant Violation",h}f=a[g](l,g,u,c,null,t)}catch(S){f=S}if(f&&!(f 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 f+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),f instanceof Error&&!(f.message in r)){r[f.message]=!0;var b=p?p():"";e("Failed "+c+" type: "+f.message+(b??""))}}}}return o.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Vd=o,Vd}var Gd,iy;function k$(){if(iy)return Gd;iy=1;var e=xx(),t=_$(),r=mp(),n=Sx(),o=E$(),a=function(){};process.env.NODE_ENV!=="production"&&(a=function(c){var u="Warning: "+c;typeof console<"u"&&console.error(u);try{throw new Error(u)}catch{}});function l(){return null}return Gd=function(c,u){var p=typeof Symbol=="function"&&Symbol.iterator,g="@@iterator";function f(D){var U=D&&(p&&D[p]||D[g]);if(typeof U=="function")return U}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:k(),elementType:E(),instanceOf:R,node:V(),objectOf:P,oneOf:F,oneOfType:$,shape:I,exact:j};function S(D,U){return D===U?D!==0||1/D===1/U:D!==D&&U!==U}function v(D,U){this.message=D,this.data=U&&typeof U=="object"?U:{},this.stack=""}v.prototype=Error.prototype;function y(D){if(process.env.NODE_ENV!=="production")var U={},ee=0;function te(ce,ae,re,de,he,fe,xe){if(de=de||h,fe=fe||re,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 ke=de+":"+re;!U[ke]&&ee<3&&(a("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."),U[ke]=!0,ee++)}}return ae[re]==null?ce?ae[re]===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:D(ae,re,de,he,fe)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(D){function U(ee,te,J,ce,ae,re){var de=ee[te],he=Y(de);if(he!==D){var fe=X(de);return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+fe+"` supplied to `"+J+"`, expected ")+("`"+D+"`."),{expectedType:D})}return null}return y(U)}function w(){return y(l)}function x(D){function U(ee,te,J,ce,ae){if(typeof D!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside arrayOf.");var re=ee[te];if(!Array.isArray(re)){var de=Y(re);return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an array."))}for(var he=0;he<re.length;he++){var fe=D(re,he,J,ce,ae+"["+he+"]",r);if(fe instanceof Error)return fe}return null}return y(U)}function k(){function D(U,ee,te,J,ce){var ae=U[ee];if(!c(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+ce+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(D)}function E(){function D(U,ee,te,J,ce){var ae=U[ee];if(!e.isValidElementType(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+ce+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(D)}function R(D){function U(ee,te,J,ce,ae){if(!(ee[te]instanceof D)){var re=D.name||h,de=ge(ee[te]);return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected ")+("instance of `"+re+"`."))}return null}return y(U)}function F(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&(arguments.length>1?a("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])."):a("Invalid argument supplied to oneOf, expected an array.")),l;function U(ee,te,J,ce,ae){for(var re=ee[te],de=0;de<D.length;de++)if(S(re,D[de]))return null;var he=JSON.stringify(D,function(xe,Z){var ke=X(Z);return ke==="symbol"?String(Z):Z});return new v("Invalid "+ce+" `"+ae+"` of value `"+String(re)+"` "+("supplied to `"+J+"`, expected one of "+he+"."))}return y(U)}function P(D){function U(ee,te,J,ce,ae){if(typeof D!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var re=ee[te],de=Y(re);if(de!=="object")return new v("Invalid "+ce+" `"+ae+"` of type "+("`"+de+"` supplied to `"+J+"`, expected an object."));for(var he in re)if(n(re,he)){var fe=D(re,he,J,ce,ae+"."+he,r);if(fe instanceof Error)return fe}return null}return y(U)}function $(D){if(!Array.isArray(D))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;for(var U=0;U<D.length;U++){var ee=D[U];if(typeof ee!="function")return a("Invalid argument supplied to oneOfType. Expected an array of check functions, but received "+K(ee)+" at index "+U+"."),l}function te(J,ce,ae,re,de){for(var he=[],fe=0;fe<D.length;fe++){var xe=D[fe],Z=xe(J,ce,ae,re,de,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&he.push(Z.data.expectedType)}var ke=he.length>0?", expected one of type ["+he.join(", ")+"]":"";return new v("Invalid "+re+" `"+de+"` supplied to "+("`"+ae+"`"+ke+"."))}return y(te)}function V(){function D(U,ee,te,J,ce){return W(U[ee])?null:new v("Invalid "+J+" `"+ce+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(D)}function z(D,U,ee,te,J){return new v((D||"React class")+": "+U+" type `"+ee+"."+te+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+J+"`.")}function I(D){function U(ee,te,J,ce,ae){var re=ee[te],de=Y(re);if(de!=="object")return new v("Invalid "+ce+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));for(var he in D){var fe=D[he];if(typeof fe!="function")return z(J,ce,ae,he,X(fe));var xe=fe(re,he,J,ce,ae+"."+he,r);if(xe)return xe}return null}return y(U)}function j(D){function U(ee,te,J,ce,ae){var re=ee[te],de=Y(re);if(de!=="object")return new v("Invalid "+ce+" `"+ae+"` of type `"+de+"` "+("supplied to `"+J+"`, expected `object`."));var he=t({},ee[te],D);for(var fe in he){var xe=D[fe];if(n(D,fe)&&typeof xe!="function")return z(J,ce,ae,fe,X(xe));if(!xe)return new v("Invalid "+ce+" `"+ae+"` key `"+fe+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(ee[te],null," ")+`
130
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var Z=xe(re,fe,J,ce,ae+"."+fe,r);if(Z)return Z}return null}return y(U)}function W(D){switch(typeof D){case"number":case"string":case"undefined":return!0;case"boolean":return!D;case"object":if(Array.isArray(D))return D.every(W);if(D===null||c(D))return!0;var U=f(D);if(U){var ee=U.call(D),te;if(U!==D.entries){for(;!(te=ee.next()).done;)if(!W(te.value))return!1}else for(;!(te=ee.next()).done;){var J=te.value;if(J&&!W(J[1]))return!1}}else return!1;return!0;default:return!1}}function N(D,U){return D==="symbol"?!0:U?U["@@toStringTag"]==="Symbol"||typeof Symbol=="function"&&U instanceof Symbol:!1}function Y(D){var U=typeof D;return Array.isArray(D)?"array":D instanceof RegExp?"object":N(U,D)?"symbol":U}function X(D){if(typeof D>"u"||D===null)return""+D;var U=Y(D);if(U==="object"){if(D instanceof Date)return"date";if(D instanceof RegExp)return"regexp"}return U}function K(D){var U=X(D);switch(U){case"array":case"object":return"an "+U;case"boolean":case"date":case"regexp":return"a "+U;default:return U}}function ge(D){return!D.constructor||!D.constructor.name?h:D.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Gd}var Kd,oy;function O$(){if(oy)return Kd;oy=1;var e=mp();function t(){}function r(){}return r.resetWarningCache=t,Kd=function(){function n(l,c,u,p,g,f){if(f!==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 o(){return n}var a={array:n,bigint:n,bool:n,func:n,number:n,object:n,string:n,symbol:n,any:n,arrayOf:o,element:n,elementType:n,instanceOf:o,node:n,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:r,resetWarningCache:t};return a.PropTypes=a,a},Kd}var ay;function T$(){if(ay)return Nl.exports;if(ay=1,process.env.NODE_ENV!=="production"){var e=xx(),t=!0;Nl.exports=k$()(e.isElement,t)}else Nl.exports=O$()();return Nl.exports}var sy;function A$(){return sy||(sy=1,(function(e){(function(t,r){r(e,M,T$())})(Il,function(t,r,n){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=S;var o=l(r),a=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 k=arguments[x];for(var E in k)Object.prototype.hasOwnProperty.call(k,E)&&(w[E]=k[E])}return w};function u(w,x){var k={};for(var E in w)x.indexOf(E)>=0||Object.prototype.hasOwnProperty.call(w,E)&&(k[E]=w[E]);return k}function p(w,x){if(!(w instanceof x))throw new TypeError("Cannot call a class as a function")}var g=(function(){function w(x,k){for(var E=0;E<k.length;E++){var R=k[E];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(x,R.key,R)}}return function(x,k,E){return k&&w(x.prototype,k),E&&w(x,E),x}})();function f(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],k=x.pageX,E=x.pageY;return{x:k,y:E}}var R=w.screenX,F=w.screenY;return{x:R,y:F}}var m=(function(w){h(x,w);function x(){var k;p(this,x);for(var E=arguments.length,R=Array(E),F=0;F<E;F++)R[F]=arguments[F];var P=f(this,(k=x.__proto__||Object.getPrototypeOf(x)).call.apply(k,[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(E){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(E))}},{key:"_onMouseMove",value:function(E){this.mouseDown&&this._handleSwipeMove(E)}},{key:"_onMouseUp",value:function(E){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(E)}},{key:"_handleSwipeStart",value:function(E){var R=y(E),F=R.x,P=R.y;this.moveStart={x:F,y:P},this.props.onSwipeStart(E)}},{key:"_handleSwipeMove",value:function(E){if(this.moveStart){var R=y(E),F=R.x,P=R.y,$=F-this.moveStart.x,V=P-this.moveStart.y;this.moving=!0;var z=this.props.onSwipeMove({x:$,y:V},E);z&&E.cancelable&&E.preventDefault(),this.movePosition={deltaX:$,deltaY:V}}}},{key:"_handleSwipeEnd",value:function(E){this.props.onSwipeEnd(E);var R=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-R?this.props.onSwipeLeft(1,E):this.movePosition.deltaX>R&&this.props.onSwipeRight(1,E),this.movePosition.deltaY<-R?this.props.onSwipeUp(1,E):this.movePosition.deltaY>R&&this.props.onSwipeDown(1,E)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(E){this.swiper=E,this.props.innerRef(E)}},{key:"render",value:function(){var E=this.props;E.tagName;var R=E.className,F=E.style,P=E.children;E.allowMouseEvents,E.onSwipeUp,E.onSwipeDown,E.onSwipeLeft,E.onSwipeRight,E.onSwipeStart,E.onSwipeMove,E.onSwipeEnd,E.innerRef,E.tolerance;var $=u(E,["tagName","className","style","children","allowMouseEvents","onSwipeUp","onSwipeDown","onSwipeLeft","onSwipeRight","onSwipeStart","onSwipeMove","onSwipeEnd","innerRef","tolerance"]);return o.default.createElement(this.props.tagName,c({ref:this._setSwiperRef,onMouseDown:this._onMouseDown,onTouchStart:this._handleSwipeStart,onTouchEnd:this._handleSwipeEnd,className:R,style:F},$),P)}}]),x})(r.Component);m.displayName="ReactSwipe",m.propTypes={tagName:a.default.string,className:a.default.string,style:a.default.object,children:a.default.node,allowMouseEvents:a.default.bool,onSwipeUp:a.default.func,onSwipeDown:a.default.func,onSwipeLeft:a.default.func,onSwipeRight:a.default.func,onSwipeStart:a.default.func,onSwipeMove:a.default.func,onSwipeEnd:a.default.func,innerRef:a.default.func,tolerance:a.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})})(Il)),Il}var ly;function _x(){return ly||(ly=1,(function(e){(function(t,r){r(e,A$())})(Pl,function(t,r){Object.defineProperty(t,"__esModule",{value:!0});var n=o(r);function o(a){return a&&a.__esModule?a:{default:a}}t.default=n.default})})(Pl)),Pl}var Ea={},cy;function Ex(){if(cy)return Ea;cy=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=void 0;var e=t(k0());function t(o){return o&&o.__esModule?o:{default:o}}function r(o,a,l){return a in o?Object.defineProperty(o,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):o[a]=l,o}var n={ROOT:function(a){return(0,e.default)(r({"carousel-root":!0},a||"",!!a))},CAROUSEL:function(a){return(0,e.default)({carousel:!0,"carousel-slider":a})},WRAPPER:function(a,l){return(0,e.default)({"thumbs-wrapper":!a,"slider-wrapper":a,"axis-horizontal":l==="horizontal","axis-vertical":l!=="horizontal"})},SLIDER:function(a,l){return(0,e.default)({thumbs:!a,slider:a,animated:!l})},ITEM:function(a,l,c){return(0,e.default)({thumb:!a,slide:a,selected:l,previous:c})},ARROW_PREV:function(a){return(0,e.default)({"control-arrow control-prev":!0,"control-disabled":a})},ARROW_NEXT:function(a){return(0,e.default)({"control-arrow control-next":!0,"control-disabled":a})},DOT:function(a){return(0,e.default)({dot:!0,selected:a})}};return Ea.default=n,Ea}var ka={},Oa={},uy;function R$(){if(uy)return Oa;uy=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};return Oa.outerWidth=e,Oa}var Ta={},dy;function bp(){if(dy)return Ta;dy=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.default=void 0;var e=function(r,n,o){var a=r===0?r:r+n,l=o==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",u="("+l.join(",")+")";return c+u};return Ta.default=e,Ta}var Aa={},fy;function kx(){if(fy)return Aa;fy=1,Object.defineProperty(Aa,"__esModule",{value:!0}),Aa.default=void 0;var e=function(){return window};return Aa.default=e,Aa}var py;function Ox(){if(py)return ka;py=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.default=void 0;var e=u(M),t=l(Ex()),r=R$(),n=l(bp()),o=l(_x()),a=l(kx());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||p(P)!=="object"&&typeof P!="function")return{default:P};var $=c();if($&&$.has(P))return $.get(P);var V={},z=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in P)if(Object.prototype.hasOwnProperty.call(P,I)){var j=z?Object.getOwnPropertyDescriptor(P,I):null;j&&(j.get||j.set)?Object.defineProperty(V,I,j):V[I]=P[I]}return V.default=P,$&&$.set(P,V),V}function p(P){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?p=function(V){return typeof V}:p=function(V){return V&&typeof Symbol=="function"&&V.constructor===Symbol&&V!==Symbol.prototype?"symbol":typeof V},p(P)}function g(){return g=Object.assign||function(P){for(var $=1;$<arguments.length;$++){var V=arguments[$];for(var z in V)Object.prototype.hasOwnProperty.call(V,z)&&(P[z]=V[z])}return P},g.apply(this,arguments)}function f(P,$){if(!(P instanceof $))throw new TypeError("Cannot call a class as a function")}function h(P,$){for(var V=0;V<$.length;V++){var z=$[V];z.enumerable=z.enumerable||!1,z.configurable=!0,"value"in z&&(z.writable=!0),Object.defineProperty(P,z.key,z)}}function b(P,$,V){return $&&h(P.prototype,$),P}function S(P,$){if(typeof $!="function"&&$!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create($&&$.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),$&&v(P,$)}function v(P,$){return v=Object.setPrototypeOf||function(z,I){return z.__proto__=I,z},v(P,$)}function y(P){var $=x();return function(){var z=k(P),I;if($){var j=k(this).constructor;I=Reflect.construct(z,arguments,j)}else I=z.apply(this,arguments);return m(this,I)}}function m(P,$){return $&&(p($)==="object"||typeof $=="function")?$: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 k(P){return k=Object.setPrototypeOf?Object.getPrototypeOf:function(V){return V.__proto__||Object.getPrototypeOf(V)},k(P)}function E(P,$,V){return $ in P?Object.defineProperty(P,$,{value:V,enumerable:!0,configurable:!0,writable:!0}):P[$]=V,P}var R=function($){return $.hasOwnProperty("key")},F=(function(P){S(V,P);var $=y(V);function V(z){var I;return f(this,V),I=$.call(this,z),E(w(I),"itemsWrapperRef",void 0),E(w(I),"itemsListRef",void 0),E(w(I),"thumbsRef",void 0),E(w(I),"setItemsWrapperRef",function(j){I.itemsWrapperRef=j}),E(w(I),"setItemsListRef",function(j){I.itemsListRef=j}),E(w(I),"setThumbsRef",function(j,W){I.thumbsRef||(I.thumbsRef=[]),I.thumbsRef[W]=j}),E(w(I),"updateSizes",function(){if(!(!I.props.children||!I.itemsWrapperRef||!I.thumbsRef)){var j=e.Children.count(I.props.children),W=I.itemsWrapperRef.clientWidth,N=I.props.thumbWidth?I.props.thumbWidth:(0,r.outerWidth)(I.thumbsRef[0]),Y=Math.floor(W/N),X=Y<j,K=X?j-Y:0;I.setState(function(ge,D){return{itemSize:N,visibleItems:Y,firstItem:X?I.getFirstItem(D.selectedItem):0,lastPosition:K,showArrows:X}})}}),E(w(I),"handleClickItem",function(j,W,N){if(!R(N)||N.key==="Enter"){var Y=I.props.onSelectItem;typeof Y=="function"&&Y(j,W)}}),E(w(I),"onSwipeStart",function(){I.setState({swiping:!0})}),E(w(I),"onSwipeEnd",function(){I.setState({swiping:!1})}),E(w(I),"onSwipeMove",function(j){var W=j.x;if(!I.state.itemSize||!I.itemsWrapperRef||!I.state.visibleItems)return!1;var N=0,Y=e.Children.count(I.props.children),X=-(I.state.firstItem*100)/I.state.visibleItems,K=Math.max(Y-I.state.visibleItems,0),ge=-K*100/I.state.visibleItems;X===N&&W>0&&(W=0),X===ge&&W<0&&(W=0);var D=I.itemsWrapperRef.clientWidth,U=X+100/(D/W);return I.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(ee){I.itemsListRef.style[ee]=(0,n.default)(U,"%",I.props.axis)}),!0}),E(w(I),"slideRight",function(j){I.moveTo(I.state.firstItem-(typeof j=="number"?j:1))}),E(w(I),"slideLeft",function(j){I.moveTo(I.state.firstItem+(typeof j=="number"?j:1))}),E(w(I),"moveTo",function(j){j=j<0?0:j,j=j>=I.state.lastPosition?I.state.lastPosition:j,I.setState({firstItem:j})}),I.state={selectedItem:z.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},I}return b(V,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(I){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==I.children&&this.updateSizes()}},{key:"componentWillUnmount",value:function(){this.destroyThumbs()}},{key:"setupThumbs",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.updateSizes()}},{key:"destroyThumbs",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes)}},{key:"getFirstItem",value:function(I){var j=I;return I>=this.state.lastPosition&&(j=this.state.lastPosition),I<this.state.firstItem+this.state.visibleItems&&(j=this.state.firstItem),I<this.state.firstItem&&(j=I),j}},{key:"renderItems",value:function(){var I=this;return this.props.children.map(function(j,W){var N=t.default.ITEM(!1,W===I.state.selectedItem),Y={key:W,ref:function(K){return I.setThumbsRef(K,W)},className:N,onClick:I.handleClickItem.bind(I,W,I.props.children[W]),onKeyDown:I.handleClickItem.bind(I,W,I.props.children[W]),"aria-label":"".concat(I.props.labels.item," ").concat(W+1),style:{width:I.props.thumbWidth}};return e.default.createElement("li",g({},Y,{role:"button",tabIndex:0}),j)})}},{key:"render",value:function(){var I=this;if(!this.props.children)return null;var j=e.Children.count(this.props.children)>1,W=this.state.showArrows&&this.state.firstItem>0,N=this.state.showArrows&&this.state.firstItem<this.state.lastPosition,Y={},X=-this.state.firstItem*(this.state.itemSize||0),K=(0,n.default)(X,"px",this.props.axis),ge=this.props.transitionTime+"ms";return Y={WebkitTransform:K,MozTransform:K,MsTransform:K,OTransform:K,transform:K,msTransform:K,WebkitTransitionDuration:ge,MozTransitionDuration:ge,MsTransitionDuration:ge,OTransitionDuration:ge,transitionDuration:ge,msTransitionDuration:ge},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(!W),onClick:function(){return I.slideRight()},"aria-label":this.props.labels.leftArrow}),j?e.default.createElement(o.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:Y,innerRef:this.setItemsListRef,allowMouseEvents:this.props.emulateTouch},this.renderItems()):e.default.createElement("ul",{className:t.default.SLIDER(!1,this.state.swiping),ref:function(U){return I.setItemsListRef(U)},style:Y},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!N),onClick:function(){return I.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),V})(e.Component);return ka.default=F,E(F,"displayName","Thumbs"),E(F,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),ka}var Ra={},hy;function C$(){if(hy)return Ra;hy=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.default=void 0;var e=function(){return document};return Ra.default=e,Ra}var gr={},gy;function Tx(){if(gy)return gr;gy=1,Object.defineProperty(gr,"__esModule",{value:!0}),gr.setPosition=gr.getPosition=gr.isKeyboardEvent=gr.defaultStatusFormatter=gr.noop=void 0;var e=M,t=r(bp());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};gr.noop=n;var o=function(p,g){return"".concat(p," of ").concat(g)};gr.defaultStatusFormatter=o;var a=function(p){return p?p.hasOwnProperty("key"):!1};gr.isKeyboardEvent=a;var l=function(p,g){if(g.infiniteLoop&&++p,p===0)return 0;var f=e.Children.count(g.children);if(g.centerMode&&g.axis==="horizontal"){var h=-p*g.centerSlidePercentage,b=f-1;return p&&(p!==b||g.infiniteLoop)?h+=(100-g.centerSlidePercentage)/2:p===b&&(h+=100-g.centerSlidePercentage),h}return-p*100};gr.getPosition=l;var c=function(p,g){var f={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(h){f[h]=(0,t.default)(p,"%",g)}),f};return gr.setPosition=c,gr}var qr={},vy;function P$(){if(vy)return qr;vy=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.fadeAnimationHandler=qr.slideStopSwipingHandler=qr.slideSwipeAnimationHandler=qr.slideAnimationHandler=void 0;var e=M,t=n(bp()),r=Tx();function n(f){return f&&f.__esModule?f:{default:f}}function o(f,h){var b=Object.keys(f);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(f);h&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(f,v).enumerable})),b.push.apply(b,S)}return b}function a(f){for(var h=1;h<arguments.length;h++){var b=arguments[h]!=null?arguments[h]:{};h%2?o(Object(b),!0).forEach(function(S){l(f,S,b[S])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(b)):o(Object(b)).forEach(function(S){Object.defineProperty(f,S,Object.getOwnPropertyDescriptor(b,S))})}return f}function l(f,h,b){return h in f?Object.defineProperty(f,h,{value:b,enumerable:!0,configurable:!0,writable:!0}):f[h]=b,f}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),k=(0,t.default)(x,"%",h.axis),E=h.transitionTime+"ms";return S.itemListStyle={WebkitTransform:k,msTransform:k,OTransform:k,transform:k},b.swiping||(S.itemListStyle=a(a({},S.itemListStyle),{},{WebkitTransitionDuration:E,MozTransitionDuration:E,OTransitionDuration:E,transitionDuration:E,msTransitionDuration:E})),S};qr.slideAnimationHandler=c;var u=function(h,b,S,v){var y={},m=b.axis==="horizontal",w=e.Children.count(b.children),x=0,k=(0,r.getPosition)(S.selectedItem,b),E=b.infiniteLoop?(0,r.getPosition)(w-1,b)-100:(0,r.getPosition)(w-1,b),R=m?h.x:h.y,F=R;k===x&&R>0&&(F=0),k===E&&R<0&&(F=0);var P=k+100/(S.itemSize/F),$=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&$&&(S.selectedItem===0&&P>-100?P-=w*100:S.selectedItem===w-1&&P<-w*100&&(P+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||$||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(P,b.axis)),$&&!S.cancelClick&&v({cancelClick:!0}),y};qr.slideSwipeAnimationHandler=u;var p=function(h,b){var S=(0,r.getPosition)(b.selectedItem,h),v=(0,r.setPosition)(S,h.axis);return{itemListStyle:v}};qr.slideStopSwipingHandler=p;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=a(a({},y),{},{WebkitTransitionDuration:S,MozTransitionDuration:S,OTransitionDuration:S,transitionDuration:S,msTransitionDuration:S})),{slideStyle:y,selectedStyle:a(a({},y),{},{opacity:1,position:"relative"}),prevStyle:a({},y)}};return qr.fadeAnimationHandler=g,qr}var my;function I$(){if(my)return _a;my=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.default=void 0;var e=g(M),t=u(_x()),r=u(Ex()),n=u(Ox()),o=u(C$()),a=u(kx()),l=Tx(),c=P$();function u(z){return z&&z.__esModule?z:{default:z}}function p(){if(typeof WeakMap!="function")return null;var z=new WeakMap;return p=function(){return z},z}function g(z){if(z&&z.__esModule)return z;if(z===null||f(z)!=="object"&&typeof z!="function")return{default:z};var I=p();if(I&&I.has(z))return I.get(z);var j={},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in z)if(Object.prototype.hasOwnProperty.call(z,N)){var Y=W?Object.getOwnPropertyDescriptor(z,N):null;Y&&(Y.get||Y.set)?Object.defineProperty(j,N,Y):j[N]=z[N]}return j.default=z,I&&I.set(z,j),j}function f(z){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?f=function(j){return typeof j}:f=function(j){return j&&typeof Symbol=="function"&&j.constructor===Symbol&&j!==Symbol.prototype?"symbol":typeof j},f(z)}function h(){return h=Object.assign||function(z){for(var I=1;I<arguments.length;I++){var j=arguments[I];for(var W in j)Object.prototype.hasOwnProperty.call(j,W)&&(z[W]=j[W])}return z},h.apply(this,arguments)}function b(z,I){var j=Object.keys(z);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(z);I&&(W=W.filter(function(N){return Object.getOwnPropertyDescriptor(z,N).enumerable})),j.push.apply(j,W)}return j}function S(z){for(var I=1;I<arguments.length;I++){var j=arguments[I]!=null?arguments[I]:{};I%2?b(Object(j),!0).forEach(function(W){$(z,W,j[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(j)):b(Object(j)).forEach(function(W){Object.defineProperty(z,W,Object.getOwnPropertyDescriptor(j,W))})}return z}function v(z,I){if(!(z instanceof I))throw new TypeError("Cannot call a class as a function")}function y(z,I){for(var j=0;j<I.length;j++){var W=I[j];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(z,W.key,W)}}function m(z,I,j){return I&&y(z.prototype,I),z}function w(z,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");z.prototype=Object.create(I&&I.prototype,{constructor:{value:z,writable:!0,configurable:!0}}),I&&x(z,I)}function x(z,I){return x=Object.setPrototypeOf||function(W,N){return W.__proto__=N,W},x(z,I)}function k(z){var I=F();return function(){var W=P(z),N;if(I){var Y=P(this).constructor;N=Reflect.construct(W,arguments,Y)}else N=W.apply(this,arguments);return E(this,N)}}function E(z,I){return I&&(f(I)==="object"||typeof I=="function")?I:R(z)}function R(z){if(z===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z}function F(){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(z){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},P(z)}function $(z,I,j){return I in z?Object.defineProperty(z,I,{value:j,enumerable:!0,configurable:!0,writable:!0}):z[I]=j,z}var V=(function(z){w(j,z);var I=k(j);function j(W){var N;v(this,j),N=I.call(this,W),$(R(N),"thumbsRef",void 0),$(R(N),"carouselWrapperRef",void 0),$(R(N),"listRef",void 0),$(R(N),"itemsRef",void 0),$(R(N),"timer",void 0),$(R(N),"animationHandler",void 0),$(R(N),"setThumbsRef",function(X){N.thumbsRef=X}),$(R(N),"setCarouselWrapperRef",function(X){N.carouselWrapperRef=X}),$(R(N),"setListRef",function(X){N.listRef=X}),$(R(N),"setItemsRef",function(X,K){N.itemsRef||(N.itemsRef=[]),N.itemsRef[K]=X}),$(R(N),"autoPlay",function(){e.Children.count(N.props.children)<=1||(N.clearAutoPlay(),N.props.autoPlay&&(N.timer=setTimeout(function(){N.increment()},N.props.interval)))}),$(R(N),"clearAutoPlay",function(){N.timer&&clearTimeout(N.timer)}),$(R(N),"resetAutoPlay",function(){N.clearAutoPlay(),N.autoPlay()}),$(R(N),"stopOnHover",function(){N.setState({isMouseEntered:!0},N.clearAutoPlay)}),$(R(N),"startOnLeave",function(){N.setState({isMouseEntered:!1},N.autoPlay)}),$(R(N),"isFocusWithinTheCarousel",function(){return N.carouselWrapperRef?!!((0,o.default)().activeElement===N.carouselWrapperRef||N.carouselWrapperRef.contains((0,o.default)().activeElement)):!1}),$(R(N),"navigateWithKeyboard",function(X){if(N.isFocusWithinTheCarousel()){var K=N.props.axis,ge=K==="horizontal",D={ArrowUp:38,ArrowRight:39,ArrowDown:40,ArrowLeft:37},U=ge?D.ArrowRight:D.ArrowDown,ee=ge?D.ArrowLeft:D.ArrowUp;U===X.keyCode?N.increment():ee===X.keyCode&&N.decrement()}}),$(R(N),"updateSizes",function(){if(!(!N.state.initialized||!N.itemsRef||N.itemsRef.length===0)){var X=N.props.axis==="horizontal",K=N.itemsRef[0];if(K){var ge=X?K.clientWidth:K.clientHeight;N.setState({itemSize:ge}),N.thumbsRef&&N.thumbsRef.updateSizes()}}}),$(R(N),"setMountState",function(){N.setState({hasMount:!0}),N.updateSizes()}),$(R(N),"handleClickItem",function(X,K){if(e.Children.count(N.props.children)!==0){if(N.state.cancelClick){N.setState({cancelClick:!1});return}N.props.onClickItem(X,K),X!==N.state.selectedItem&&N.setState({selectedItem:X})}}),$(R(N),"handleOnChange",function(X,K){e.Children.count(N.props.children)<=1||N.props.onChange(X,K)}),$(R(N),"handleClickThumb",function(X,K){N.props.onClickThumb(X,K),N.moveTo(X)}),$(R(N),"onSwipeStart",function(X){N.setState({swiping:!0}),N.props.onSwipeStart(X)}),$(R(N),"onSwipeEnd",function(X){N.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),N.props.onSwipeEnd(X),N.clearAutoPlay(),N.state.autoPlay&&N.autoPlay()}),$(R(N),"onSwipeMove",function(X,K){N.props.onSwipeMove(K);var ge=N.props.swipeAnimationHandler(X,N.props,N.state,N.setState.bind(R(N)));return N.setState(S({},ge)),!!Object.keys(ge).length}),$(R(N),"decrement",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;N.moveTo(N.state.selectedItem-(typeof X=="number"?X:1))}),$(R(N),"increment",function(){var X=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1;N.moveTo(N.state.selectedItem+(typeof X=="number"?X:1))}),$(R(N),"moveTo",function(X){if(typeof X=="number"){var K=e.Children.count(N.props.children)-1;X<0&&(X=N.props.infiniteLoop?K:0),X>K&&(X=N.props.infiniteLoop?0:K),N.selectItem({selectedItem:X}),N.state.autoPlay&&N.state.isMouseEntered===!1&&N.resetAutoPlay()}}),$(R(N),"onClickNext",function(){N.increment(1)}),$(R(N),"onClickPrev",function(){N.decrement(1)}),$(R(N),"onSwipeForward",function(){N.increment(1),N.props.emulateTouch&&N.setState({cancelClick:!0})}),$(R(N),"onSwipeBackwards",function(){N.decrement(1),N.props.emulateTouch&&N.setState({cancelClick:!0})}),$(R(N),"changeItem",function(X){return function(K){(!(0,l.isKeyboardEvent)(K)||K.key==="Enter")&&N.moveTo(X)}}),$(R(N),"selectItem",function(X){N.setState(S({previousItem:N.state.selectedItem},X),function(){N.setState(N.animationHandler(N.props,N.state))}),N.handleOnChange(X.selectedItem,e.Children.toArray(N.props.children)[X.selectedItem])}),$(R(N),"getInitialImage",function(){var X=N.props.selectedItem,K=N.itemsRef&&N.itemsRef[X],ge=K&&K.getElementsByTagName("img")||[];return ge[0]}),$(R(N),"getVariableItemHeight",function(X){var K=N.itemsRef&&N.itemsRef[X];if(N.state.hasMount&&K&&K.children.length){var ge=K.children[0].getElementsByTagName("img")||[];if(ge.length>0){var D=ge[0];if(!D.complete){var U=function J(){N.forceUpdate(),D.removeEventListener("load",J)};D.addEventListener("load",U)}}var ee=ge[0]||K.children[0],te=ee.clientHeight;return te>0?te:null}return null});var Y={initialized:!1,previousItem:W.selectedItem,selectedItem:W.selectedItem,hasMount:!1,isMouseEntered:!1,autoPlay:W.autoPlay,swiping:!1,swipeMovementStarted:!1,cancelClick:!1,itemSize:1,itemListStyle:{},slideStyle:{},selectedStyle:{},prevStyle:{}};return N.animationHandler=typeof W.animationHandler=="function"&&W.animationHandler||W.animationHandler==="fade"&&c.fadeAnimationHandler||c.slideAnimationHandler,N.state=S(S({},Y),N.animationHandler(W,Y)),N}return m(j,[{key:"componentDidMount",value:function(){this.props.children&&this.setupCarousel()}},{key:"componentDidUpdate",value:function(N,Y){!N.children&&this.props.children&&!this.state.initialized&&this.setupCarousel(),!N.autoFocus&&this.props.autoFocus&&this.forceFocus(),Y.swiping&&!this.state.swiping&&this.setState(S({},this.props.stopSwipingHandler(this.props,this.state))),(N.selectedItem!==this.props.selectedItem||N.centerMode!==this.props.centerMode)&&(this.updateSizes(),this.moveTo(this.props.selectedItem)),N.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 N=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 Y=N.getInitialImage();Y&&!Y.complete?Y.addEventListener("load",N.setMountState):N.setMountState()})}},{key:"destroyCarousel",value:function(){this.state.initialized&&(this.unbindEvents(),this.destroyAutoPlay())}},{key:"setupAutoPlay",value:function(){this.autoPlay();var N=this.carouselWrapperRef;this.props.stopOnHover&&N&&(N.addEventListener("mouseenter",this.stopOnHover),N.addEventListener("mouseleave",this.startOnLeave))}},{key:"destroyAutoPlay",value:function(){this.clearAutoPlay();var N=this.carouselWrapperRef;this.props.stopOnHover&&N&&(N.removeEventListener("mouseenter",this.stopOnHover),N.removeEventListener("mouseleave",this.startOnLeave))}},{key:"bindEvents",value:function(){(0,a.default)().addEventListener("resize",this.updateSizes),(0,a.default)().addEventListener("DOMContentLoaded",this.updateSizes),this.props.useKeyboardArrows&&(0,o.default)().addEventListener("keydown",this.navigateWithKeyboard)}},{key:"unbindEvents",value:function(){(0,a.default)().removeEventListener("resize",this.updateSizes),(0,a.default)().removeEventListener("DOMContentLoaded",this.updateSizes);var N=this.getInitialImage();N&&N.removeEventListener("load",this.setMountState),this.props.useKeyboardArrows&&(0,o.default)().removeEventListener("keydown",this.navigateWithKeyboard)}},{key:"forceFocus",value:function(){var N;(N=this.carouselWrapperRef)===null||N===void 0||N.focus()}},{key:"renderItems",value:function(N){var Y=this;return this.props.children?e.Children.map(this.props.children,function(X,K){var ge=K===Y.state.selectedItem,D=K===Y.state.previousItem,U=ge&&Y.state.selectedStyle||D&&Y.state.prevStyle||Y.state.slideStyle||{};Y.props.centerMode&&Y.props.axis==="horizontal"&&(U=S(S({},U),{},{minWidth:Y.props.centerSlidePercentage+"%"})),Y.state.swiping&&Y.state.swipeMovementStarted&&(U=S(S({},U),{},{pointerEvents:"none"}));var ee={ref:function(J){return Y.setItemsRef(J,K)},key:"itemKey"+K+(N?"clone":""),className:r.default.ITEM(!0,K===Y.state.selectedItem,K===Y.state.previousItem),onClick:Y.handleClickItem.bind(Y,K,X),style:U};return e.default.createElement("li",ee,Y.props.renderItem(X,{isSelected:K===Y.state.selectedItem,isPrevious:K===Y.state.previousItem}))}):[]}},{key:"renderControls",value:function(){var N=this,Y=this.props,X=Y.showIndicators,K=Y.labels,ge=Y.renderIndicator,D=Y.children;return X?e.default.createElement("ul",{className:"control-dots"},e.Children.map(D,function(U,ee){return ge&&ge(N.changeItem(ee),ee===N.state.selectedItem,ee,K.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 N=this;if(!this.props.children||e.Children.count(this.props.children)===0)return null;var Y=this.props.swipeable&&e.Children.count(this.props.children)>1,X=this.props.axis==="horizontal",K=this.props.showArrows&&e.Children.count(this.props.children)>1,ge=K&&(this.state.selectedItem>0||this.props.infiniteLoop)||!1,D=K&&(this.state.selectedItem<e.Children.count(this.props.children)-1||this.props.infiniteLoop)||!1,U=this.renderItems(!0),ee=U.shift(),te=U.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},ce={};if(X){if(J.onSwipeLeft=this.onSwipeForward,J.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ae=this.getVariableItemHeight(this.state.selectedItem);ce.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}),ce.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,ge,this.props.labels.leftArrow),e.default.createElement("div",{className:r.default.WRAPPER(!0,this.props.axis),style:ce},Y?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&&ee):e.default.createElement("ul",{className:r.default.SLIDER(!0,this.state.swiping),ref:function(de){return N.setListRef(de)},style:this.state.itemListStyle||{}},this.props.infiniteLoop&&te,this.renderItems(),this.props.infiniteLoop&&ee)),this.props.renderArrowNext(this.onClickNext,D,this.props.labels.rightArrow),this.renderStatus()),this.renderThumbs())}}]),j})(e.default.Component);return _a.default=V,$(V,"displayName","Carousel"),$(V,"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(I,j,W){return e.default.createElement("button",{type:"button","aria-label":W,className:r.default.ARROW_PREV(!j),onClick:I})},renderArrowNext:function(I,j,W){return e.default.createElement("button",{type:"button","aria-label":W,className:r.default.ARROW_NEXT(!j),onClick:I})},renderIndicator:function(I,j,W,N){return e.default.createElement("li",{className:r.default.DOT(j),onClick:I,onKeyDown:I,value:W,key:W,role:"button",tabIndex:0,"aria-label":"".concat(N," ").concat(W+1)})},renderItem:function(I){return I},renderThumbs:function(I){var j=e.Children.map(I,function(W){var N=W;if(W.type!=="img"&&(N=e.Children.toArray(W.props.children).find(function(Y){return Y.type==="img"})),!!N)return N});return j.filter(function(W){return W}).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"),[]):j},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}),_a}var by={},yy;function N$(){return yy||(yy=1),by}var wy;function D$(){return wy||(wy=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=o(I$()),r=N$(),n=o(Ox());function o(a){return a&&a.__esModule?a:{default:a}}})(Bd)),Bd}var M$=D$();const L$=({tip:e})=>T.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Ax(e,!0)}),$$=({pages:e})=>T.jsx("div",{className:"min-h-[10rem] w-96",children:T.jsx(M$.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>T.jsx(L$,{tip:t},t.key))})}),z$=({body:e,isInsideCarousel:t})=>T.jsx("article",{className:at(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-muted",{"w-60":!t}]),children:T.jsx(sc,{children:e,options:{overrides:{a:{component:({children:r,...n})=>T.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary",children:[r,T.jsx(ht.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})},strong:{component:({children:r,...n})=>T.jsx("span",{...n,className:"font-semibold text-body",children:r})}}}})}),j$=({video:e,body:t,title:r,isInsideCarousel:n})=>T.jsxs("div",{className:at([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[T.jsx("div",{className:at([{"mr-1":!n,"mb-1":n}]),children:T.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})}),T.jsx("article",{className:at(["prose prose-sm p-1 text-left text-xs text-muted",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:T.jsx(sc,{children:t||"",options:{overrides:{a:{component:({children:o,...a})=>T.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[o,T.jsx(ht.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Ax=(e,t)=>{switch(e.type){case ec.TEXT:return T.jsx(z$,{body:e.body,isInsideCarousel:t});case ec.VIDEO:return T.jsx(j$,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case ec.CAROUSEL:return T.jsx($$,{pages:e.pages})}},Rx=M.createContext(void 0);function xy(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const F$=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:o},a]=M.useState({tips:{},show:!0});M.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const p=u.reduce((g,f)=>xy(u,f.key).length>1?{...g,[f.key]:{type:"carousel",pages:xy(u,f.key)}}:{...g,[f.key]:f},{});a(g=>({...g,tips:p}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!o}))};return T.jsx(Rx.Provider,{value:{tips:n,toggleTips:l,show:o,enabled:t},children:e})},Cx=e=>{const t=M.useContext(Rx);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}},H$=fc(y$)`
82
131
  &[data-state='open'] > * {
83
132
  display: block !important;
84
133
  }
85
- `,hy=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=py(e),[u,c]=z.useState(!1),f=z.useRef(null);return z.useEffect(()=>{if(f.current){const m=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return m.observe(f.current),()=>{f.current&&m.unobserve(f.current)}}},[]),s&&a?$.jsxs(aC,{open:u,onOpenChange:c,children:[$.jsx(CC,{ref:f,className:je("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:m=>m.stopPropagation(),children:$.jsx("span",{className:je("group-hover:block",{hidden:!r}),children:$.jsx(Ke.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),$.jsx(lC,{side:t,sideOffset:5,onClick:m=>m.stopPropagation(),children:$.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:fy(s)})})]}):null};var kC=Object.defineProperty,IC=(e,t,r)=>t in e?kC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ql=(e,t,r)=>(IC(e,typeof t!="symbol"?t+"":t,r),r);let $C=class{constructor(){Ql(this,"current",this.detect()),Ql(this,"handoffState","pending"),Ql(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"}},wi=new $C,$r=(e,t)=>{wi.isServer?z.useEffect(e,t):z.useLayoutEffect(e,t)};function xi(e){let t=z.useRef(e);return $r(()=>{t.current=e},[e]),t}let _t=function(e){let t=xi(e);return z.useCallback((...r)=>t.current(...r),[t])};function LC(e,t,r){let[i,s]=z.useState(r),a=e!==void 0,u=z.useRef(a),c=z.useRef(!1),f=z.useRef(!1);return a&&!u.current&&!c.current?(c.current=!0,u.current=a,console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")):!a&&u.current&&!f.current&&(f.current=!0,u.current=a,console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")),[a?e:i,_t(m=>(a||s(m),t==null?void 0:t(m)))]}function MC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Zo(){let e=[],t={addEventListener(r,i,s,a){return r.addEventListener(i,s,a),t.add(()=>r.removeEventListener(i,s,a))},requestAnimationFrame(...r){let i=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let i=setTimeout(...r);return t.add(()=>clearTimeout(i))},microTask(...r){let i={current:!0};return MC(()=>{i.current&&r[0]()}),t.add(()=>{i.current=!1})},style(r,i,s){let a=r.style.getPropertyValue(i);return Object.assign(r.style,{[i]:s}),this.add(()=>{Object.assign(r.style,{[i]:a})})},group(r){let i=Zo();return r(i),this.add(()=>i.dispose())},add(r){return e.push(r),()=>{let i=e.indexOf(r);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let r of e.splice(0))r()}};return t}function uf(){let[e]=z.useState(Zo);return z.useEffect(()=>()=>e.dispose(),[e]),e}function DC(){let e=typeof document>"u";return"useSyncExternalStore"in I?(t=>t.useSyncExternalStore)(I)(()=>()=>{},()=>!1,()=>!e):!1}function lf(){let e=DC(),[t,r]=I.useState(wi.isHandoffComplete);return t&&wi.isHandoffComplete===!1&&r(!1),I.useEffect(()=>{t!==!0&&r(!0)},[t]),I.useEffect(()=>wi.handoff(),[]),e?!1:t}var pm;let cf=(pm=z.useId)!=null?pm:function(){let e=lf(),[t,r]=z.useState(e?()=>wi.nextId():null);return $r(()=>{t===null&&r(wi.nextId())},[t]),t!=null?""+t:void 0};function Pr(e,t,...r){if(e in t){let s=t[e];return typeof s=="function"?s(...r):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Pr),i}function hm(e){var t;if(e.type)return e.type;let r=(t=e.as)!=null?t:"button";if(typeof r=="string"&&r.toLowerCase()==="button")return"button"}function NC(e,t){let[r,i]=z.useState(()=>hm(e));return $r(()=>{i(hm(e))},[e.type,e.as]),$r(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let FC=Symbol();function Go(...e){let t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]);let r=_t(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||(i==null?void 0:i[FC]))?void 0:r}function _a(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var gy=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(gy||{}),vn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(vn||{});function Xn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:u,mergeRefs:c}){c=c??jC;let f=my(t,e);if(a)return na(f,r,i,u,c);let m=s??0;if(m&2){let{static:g=!1,...h}=f;if(g)return na(h,r,i,u,c)}if(m&1){let{unmount:g=!0,...h}=f;return Pr(g?0:1,{0(){return null},1(){return na({...h,hidden:!0,style:{display:"none"}},r,i,u,c)}})}return na(f,r,i,u,c)}function na(e,t={},r,i,s){let{as:a=r,children:u,refName:c="ref",...f}=ec(e,["unmount","static"]),m=e.ref!==void 0?{[c]:e.ref}:{},g=typeof u=="function"?u(t):u;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let h={};if(t){let d=!1,y=[];for(let[x,p]of Object.entries(t))typeof p=="boolean"&&(d=!0),p===!0&&y.push(x);d&&(h["data-headlessui-state"]=y.join(" "))}if(a===z.Fragment&&Object.keys(Oc(f)).length>0){if(!z.isValidElement(g)||Array.isArray(g)&&g.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(f).map(p=>` - ${p}`).join(`
86
- `),"","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(p=>` - ${p}`).join(`
87
- `)].join(`
88
- `));let d=g.props,y=typeof(d==null?void 0:d.className)=="function"?(...p)=>_a(d==null?void 0:d.className(...p),f.className):_a(d==null?void 0:d.className,f.className),x=y?{className:y}:{};return z.cloneElement(g,Object.assign({},my(g.props,Oc(ec(f,["ref"]))),h,m,{ref:s(g.ref,m.ref)},x))}return z.createElement(a,Object.assign({},ec(f,["ref"]),a!==z.Fragment&&m,a!==z.Fragment&&h),g)}function jC(...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 my(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(r[s]!=null||(r[s]=[]),r[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(i=>[i,void 0])));for(let i in r)Object.assign(t,{[i](s,...a){let u=r[i];for(let c of u){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Jn(e){var t;return Object.assign(z.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Oc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ec(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let zC="div";var vy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(vy||{});function BC(e,t){var r;let{features:i=1,...s}=e,a={ref:t,"aria-hidden":(i&2)===2?!0:(r=s["aria-hidden"])!=null?r:void 0,hidden:(i&4)===4?!0:void 0,style:{position:"fixed",top:1,left:1,width:1,height:0,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0",...(i&4)===4&&(i&2)!==2&&{display:"none"}}};return Xn({ourProps:a,theirProps:s,slot:{},defaultTag:zC,name:"Hidden"})}let UC=Jn(BC),ff=z.createContext(null);ff.displayName="OpenClosedContext";var Gr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Gr||{});function yy(){return z.useContext(ff)}function WC({value:e,children:t}){return z.createElement(ff.Provider,{value:e},t)}function HC(e){let t=e.parentElement,r=null;for(;t&&!(t instanceof HTMLFieldSetElement);)t instanceof HTMLLegendElement&&(r=t),t=t.parentElement;let i=(t==null?void 0:t.getAttribute("disabled"))==="";return i&&qC(r)?!1:i}function qC(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function ZC(e){var t,r;let i=(t=e==null?void 0:e.form)!=null?t:e.closest("form");if(i){for(let s of i.elements)if(s!==e&&(s.tagName==="INPUT"&&s.type==="submit"||s.tagName==="BUTTON"&&s.type==="submit"||s.nodeName==="INPUT"&&s.type==="image")){s.click();return}(r=i.requestSubmit)==null||r.call(i)}}var Ac=(e=>(e.Space=" ",e.Enter="Enter",e.Escape="Escape",e.Backspace="Backspace",e.Delete="Delete",e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Home="Home",e.End="End",e.PageUp="PageUp",e.PageDown="PageDown",e.Tab="Tab",e))(Ac||{});function df(){let e=z.useRef(!1);return $r(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let by=z.createContext(null);function wy(){let e=z.useContext(by);if(e===null){let t=new Error("You used a <Description /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,wy),t}return e}function GC(){let[e,t]=z.useState([]);return[e.length>0?e.join(" "):void 0,z.useMemo(()=>function(r){let i=_t(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=z.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return z.createElement(by.Provider,{value:s},r.children)},[t])]}let VC="p";function KC(e,t){let r=cf(),{id:i=`headlessui-description-${r}`,...s}=e,a=wy(),u=Go(t);$r(()=>a.register(i),[i,a.register]);let c={ref:u,...a.props,id:i};return Xn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:VC,name:a.name||"Description"})}let YC=Jn(KC),XC=Object.assign(YC,{}),xy=z.createContext(null);function Sy(){let e=z.useContext(xy);if(e===null){let t=new Error("You used a <Label /> component, but it is not inside a relevant parent.");throw Error.captureStackTrace&&Error.captureStackTrace(t,Sy),t}return e}function JC(){let[e,t]=z.useState([]);return[e.length>0?e.join(" "):void 0,z.useMemo(()=>function(r){let i=_t(a=>(t(u=>[...u,a]),()=>t(u=>{let c=u.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=z.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return z.createElement(xy.Provider,{value:s},r.children)},[t])]}let QC="label";function ek(e,t){let r=cf(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,u=Sy(),c=Go(t);$r(()=>u.register(i),[i,u.register]);let f={ref:c,...u.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Xn({ourProps:f,theirProps:a,slot:u.slot||{},defaultTag:QC,name:u.name||"Label"})}let tk=Jn(ek),rk=Object.assign(tk,{});function nk(e=0){let[t,r]=z.useState(e),i=df(),s=z.useCallback(f=>{i.current&&r(m=>m|f)},[t,i]),a=z.useCallback(f=>!!(t&f),[t]),u=z.useCallback(f=>{i.current&&r(m=>m&~f)},[r,i]),c=z.useCallback(f=>{i.current&&r(m=>m^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:u,toggleFlag:c}}let pf=z.createContext(null);pf.displayName="GroupContext";let ik=z.Fragment;function ok(e){var t;let[r,i]=z.useState(null),[s,a]=JC(),[u,c]=GC(),f=z.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:u}),[r,i,s,u]),m={},g=e;return z.createElement(c,{name:"Switch.Description"},z.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(h){r&&(h.currentTarget.tagName==="LABEL"&&h.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},z.createElement(pf.Provider,{value:f},Xn({ourProps:m,theirProps:g,defaultTag:ik,name:"Switch.Group"}))))}let sk="button";function ak(e,t){var r;let i=cf(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:u=!1,onChange:c,disabled:f=!1,name:m,value:g,form:h,...d}=e,y=z.useContext(pf),x=z.useRef(null),p=Go(x,t,y===null?null:y.setSwitch),[w,v]=LC(a,c,u),S=_t(()=>v==null?void 0:v(!w)),E=_t(N=>{if(HC(N.currentTarget))return N.preventDefault();N.preventDefault(),S()}),R=_t(N=>{N.key===Ac.Space?(N.preventDefault(),S()):N.key===Ac.Enter&&ZC(N.currentTarget)}),T=_t(N=>N.preventDefault()),k=z.useMemo(()=>({checked:w}),[w]),U={id:s,ref:p,role:"switch",type:NC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":y==null?void 0:y.labelledby,"aria-describedby":y==null?void 0:y.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:T},D=uf();return z.useEffect(()=>{var N;let G=(N=x.current)==null?void 0:N.closest("form");G&&u!==void 0&&D.addEventListener(G,"reset",()=>{v(u)})},[x,v]),z.createElement(z.Fragment,null,m!=null&&w&&z.createElement(UC,{features:vy.Hidden,...Oc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:h,checked:w,name:m,value:g})}),Xn({ourProps:U,theirProps:d,slot:k,defaultTag:sk,name:"Switch"}))}let uk=Jn(ak),lk=ok,ck=Object.assign(uk,{Group:lk,Label:rk,Description:XC});function fk(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function tc(e,...t){e&&t.length>0&&e.classList.add(...t)}function rc(e,...t){e&&t.length>0&&e.classList.remove(...t)}function dk(e,t){let r=Zo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,u]=[i,s].map(f=>{let[m=0]=f.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,h)=>h-g);return m}),c=a+u;if(c!==0){r.group(m=>{m.setTimeout(()=>{t(),m.dispose()},c),m.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&m.dispose()})});let f=r.addEventListener(e,"transitionend",m=>{m.target===m.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function pk(e,t,r,i){let s=r?"enter":"leave",a=Zo(),u=i!==void 0?fk(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Pr(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Pr(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),m=Pr(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return rc(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),tc(e,...t.base,...c,...m),a.nextFrame(()=>{rc(e,...t.base,...c,...m),tc(e,...t.base,...c,...f),dk(e,()=>(rc(e,...t.base,...c),tc(e,...t.base,...t.entered),u()))}),a.dispose}function hk({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let u=df(),c=uf(),f=xi(r);$r(()=>{e&&(f.current="enter")},[e]),$r(()=>{let m=Zo();c.add(m.dispose);let g=t.current;if(g&&f.current!=="idle"&&u.current)return m.dispose(),s.current(f.current),m.add(pk(g,i.current,f.current==="enter",()=>{m.dispose(),a.current(f.current)})),m.dispose},[r])}function pn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Za=z.createContext(null);Za.displayName="TransitionContext";var gk=(e=>(e.Visible="visible",e.Hidden="hidden",e))(gk||{});function mk(){let e=z.useContext(Za);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function vk(){let e=z.useContext(Ga);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ga=z.createContext(null);Ga.displayName="NestingContext";function Va(e){return"children"in e?Va(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Ey(e,t){let r=xi(e),i=z.useRef([]),s=df(),a=uf(),u=_t((y,x=vn.Hidden)=>{let p=i.current.findIndex(({el:w})=>w===y);p!==-1&&(Pr(x,{[vn.Unmount](){i.current.splice(p,1)},[vn.Hidden](){i.current[p].state="hidden"}}),a.microTask(()=>{var w;!Va(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=_t(y=>{let x=i.current.find(({el:p})=>p===y);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:y,state:"visible"}),()=>u(y,vn.Unmount)}),f=z.useRef([]),m=z.useRef(Promise.resolve()),g=z.useRef({enter:[],leave:[],idle:[]}),h=_t((y,x,p)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==y)),t==null||t.chains.current[x].push([y,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([y,new Promise(w=>{Promise.all(g.current[x].map(([v,S])=>S)).then(()=>w())})]),x==="enter"?m.current=m.current.then(()=>t==null?void 0:t.wait.current).then(()=>p(x)):p(x)}),d=_t((y,x,p)=>{Promise.all(g.current[x].splice(0).map(([w,v])=>v)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>p(x))});return z.useMemo(()=>({children:i,register:c,unregister:u,onStart:h,onStop:d,wait:m,chains:g}),[c,u,i,h,d,g,m])}function yk(){}let bk=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function gm(e){var t;let r={};for(let i of bk)r[i]=(t=e[i])!=null?t:yk;return r}function wk(e){let t=z.useRef(gm(e));return z.useEffect(()=>{t.current=gm(e)},[e]),t}let xk="div",_y=gy.RenderStrategy;function Sk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c,enter:f,enterFrom:m,enterTo:g,entered:h,leave:d,leaveFrom:y,leaveTo:x,...p}=e,w=z.useRef(null),v=Go(w,t),S=(r=p.unmount)==null||r?vn.Unmount:vn.Hidden,{show:E,appear:R,initial:T}=mk(),[k,U]=z.useState(E?"visible":"hidden"),D=vk(),{register:N,unregister:G}=D;z.useEffect(()=>N(w),[N,w]),z.useEffect(()=>{if(S===vn.Hidden&&w.current){if(E&&k!=="visible"){U("visible");return}return Pr(k,{hidden:()=>G(w),visible:()=>N(w)})}},[k,w,N,G,E,S]);let j=xi({base:pn(p.className),enter:pn(f),enterFrom:pn(m),enterTo:pn(g),entered:pn(h),leave:pn(d),leaveFrom:pn(y),leaveTo:pn(x)}),M=wk({beforeEnter:s,afterEnter:a,beforeLeave:u,afterLeave:c}),W=lf();z.useEffect(()=>{if(W&&k==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,k,W]);let q=T&&!R,C=R&&E&&T,J=!W||q?"idle":E?"enter":"leave",Y=nk(0),te=_t(ne=>Pr(ne,{enter:()=>{Y.addFlag(Gr.Opening),M.current.beforeEnter()},leave:()=>{Y.addFlag(Gr.Closing),M.current.beforeLeave()},idle:()=>{}})),de=_t(ne=>Pr(ne,{enter:()=>{Y.removeFlag(Gr.Opening),M.current.afterEnter()},leave:()=>{Y.removeFlag(Gr.Closing),M.current.afterLeave()},idle:()=>{}})),Z=Ey(()=>{U("hidden"),G(w)},D),Q=z.useRef(!1);hk({immediate:C,container:w,classes:j,direction:J,onStart:xi(ne=>{Q.current=!0,Z.onStart(w,ne,te)}),onStop:xi(ne=>{Q.current=!1,Z.onStop(w,ne,de),ne==="leave"&&!Va(Z)&&(U("hidden"),G(w))})});let se=p,ue={ref:v};return C?se={...se,className:_a(p.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(se.className=_a(p.className,(i=w.current)==null?void 0:i.className),se.className===""&&delete se.className),z.createElement(Ga.Provider,{value:Z},z.createElement(WC,{value:Pr(k,{visible:Gr.Open,hidden:Gr.Closed})|Y.flags},Xn({ourProps:ue,theirProps:se,defaultTag:xk,features:_y,visible:k==="visible",name:"Transition.Child"})))}function Ek(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,u=z.useRef(null),c=Go(u,t);lf();let f=yy();if(r===void 0&&f!==null&&(r=(f&Gr.Open)===Gr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[m,g]=z.useState(r?"visible":"hidden"),h=Ey(()=>{g("hidden")}),[d,y]=z.useState(!0),x=z.useRef([r]);$r(()=>{d!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),y(!1))},[x,r]);let p=z.useMemo(()=>({show:r,appear:i,initial:d}),[r,i,d]);z.useEffect(()=>{if(r)g("visible");else if(!Va(h))g("hidden");else{let E=u.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&g("hidden")}},[r,h]);let w={unmount:s},v=_t(()=>{var E;d&&y(!1),(E=e.beforeEnter)==null||E.call(e)}),S=_t(()=>{var E;d&&y(!1),(E=e.beforeLeave)==null||E.call(e)});return z.createElement(Ga.Provider,{value:h},z.createElement(Za.Provider,{value:p},Xn({ourProps:{...w,as:z.Fragment,children:z.createElement(Ty,{ref:c,...w,...a,beforeEnter:v,beforeLeave:S})},theirProps:{},defaultTag:z.Fragment,features:_y,visible:m==="visible",name:"Transition"})))}function _k(e,t){let r=z.useContext(Za)!==null,i=yy()!==null;return z.createElement(z.Fragment,null,!r&&i?z.createElement(Rc,{ref:t,...e}):z.createElement(Ty,{ref:t,...e}))}let Rc=Jn(Ek),Ty=Jn(Sk),Tk=Jn(_k),Ta=Object.assign(Rc,{Child:Tk,Root:Rc});const nc={xs:{switch:"h-2.5 w-2.5",translate:"translate-x-2.5",container:"w-6 h-3.5"},sm:{switch:"h-3.5 w-3.5",translate:"translate-x-[0.85rem]",container:"h-4.5 w-8"},md:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"},lg:{switch:"h-4 w-4",translate:"translate-x-3",container:"h-5 w-8"}},Oy=z.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const u=c=>{e(c)};return $.jsx("div",{className:je("flex items-center",i),children:$.jsx(ck,{as:"span",ref:a,checked:t,onChange:u,onKeyDown:c=>{c.key==="Enter"&&u(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
89
- relative inline-flex shrink-0 ${nc[r].container} cursor-pointer rounded-full border-2 border-transparent transition-colors duration-200 ease-in-out focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75`,children:$.jsx("span",{"aria-hidden":"true",className:`${t?nc[r].translate:"translate-x-0"}
90
- pointer-events-none inline-block ${nc[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function hf(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Qn=hf();function Ay(e){Qn=e}var Co={exec:()=>null};function ke(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let u=typeof a=="string"?a:a.source;return u=u.replace(Ct.caret,"$1"),r=r.replace(s,u),i},getRegex:()=>new RegExp(r,t)};return i}var Ct={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")},Ok=/^(?:[ \t]*(?:\n|$))+/,Ak=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,Rk=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Vo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,Pk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,gf=/(?:[*+-]|\d{1,9}[.)])/,Ry=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Py=ke(Ry).replace(/bull/g,gf).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(),Ck=ke(Ry).replace(/bull/g,gf).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(),mf=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,kk=/^[^\n]+/,vf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,Ik=ke(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",vf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),$k=ke(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,gf).getRegex(),Ka="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",yf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Lk=ke("^ {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",yf).replace("tag",Ka).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Cy=ke(mf).replace("hr",Vo).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",Ka).getRegex(),Mk=ke(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Cy).getRegex(),bf={blockquote:Mk,code:Ak,def:Ik,fences:Rk,heading:Pk,hr:Vo,html:Lk,lheading:Py,list:$k,newline:Ok,paragraph:Cy,table:Co,text:kk},mm=ke("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Vo).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",Ka).getRegex(),Dk={...bf,lheading:Ck,table:mm,paragraph:ke(mf).replace("hr",Vo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",mm).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",Ka).getRegex()},Nk={...bf,html:ke(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",yf).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:Co,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ke(mf).replace("hr",Vo).replace("heading",` *#{1,6} *[^
91
- ]`).replace("lheading",Py).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},Fk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,jk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,ky=/^( {2,}|\\)\n(?!\s*$)/,zk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ya=/[\p{P}\p{S}]/u,wf=/[\s\p{P}\p{S}]/u,Iy=/[^\s\p{P}\p{S}]/u,Bk=ke(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,wf).getRegex(),$y=/(?!~)[\p{P}\p{S}]/u,Uk=/(?!~)[\s\p{P}\p{S}]/u,Wk=/(?:[^\s\p{P}\p{S}]|~)/u,Hk=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,Ly=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,qk=ke(Ly,"u").replace(/punct/g,Ya).getRegex(),Zk=ke(Ly,"u").replace(/punct/g,$y).getRegex(),My="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Gk=ke(My,"gu").replace(/notPunctSpace/g,Iy).replace(/punctSpace/g,wf).replace(/punct/g,Ya).getRegex(),Vk=ke(My,"gu").replace(/notPunctSpace/g,Wk).replace(/punctSpace/g,Uk).replace(/punct/g,$y).getRegex(),Kk=ke("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,Iy).replace(/punctSpace/g,wf).replace(/punct/g,Ya).getRegex(),Yk=ke(/\\(punct)/,"gu").replace(/punct/g,Ya).getRegex(),Xk=ke(/^<(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(),Jk=ke(yf).replace("(?:-->|$)","-->").getRegex(),Qk=ke("^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",Jk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),Oa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,eI=ke(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",Oa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Dy=ke(/^!?\[(label)\]\[(ref)\]/).replace("label",Oa).replace("ref",vf).getRegex(),Ny=ke(/^!?\[(ref)\](?:\[\])?/).replace("ref",vf).getRegex(),tI=ke("reflink|nolink(?!\\()","g").replace("reflink",Dy).replace("nolink",Ny).getRegex(),vm=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,xf={_backpedal:Co,anyPunctuation:Yk,autolink:Xk,blockSkip:Hk,br:ky,code:jk,del:Co,emStrongLDelim:qk,emStrongRDelimAst:Gk,emStrongRDelimUnd:Kk,escape:Fk,link:eI,nolink:Ny,punctuation:Bk,reflink:Dy,reflinkSearch:tI,tag:Qk,text:zk,url:Co},rI={...xf,link:ke(/^!?\[(label)\]\((.*?)\)/).replace("label",Oa).getRegex(),reflink:ke(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",Oa).getRegex()},Pc={...xf,emStrongRDelimAst:Vk,emStrongLDelim:Zk,url:ke(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vm).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:ke(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vm).getRegex()},nI={...Pc,br:ke(ky).replace("{2,}","*").getRegex(),text:ke(Pc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},ia={normal:bf,gfm:Dk,pedantic:Nk},mo={normal:xf,gfm:Pc,breaks:nI,pedantic:rI},iI={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ym=e=>iI[e];function Tr(e,t){if(t){if(Ct.escapeTest.test(e))return e.replace(Ct.escapeReplace,ym)}else if(Ct.escapeTestNoEncode.test(e))return e.replace(Ct.escapeReplaceNoEncode,ym);return e}function bm(e){try{e=encodeURI(e).replace(Ct.percentDecode,"%")}catch{return null}return e}function wm(e,t){var a;let r=e.replace(Ct.findPipe,(u,c,f)=>{let m=!1,g=c;for(;--g>=0&&f[g]==="\\";)m=!m;return m?"|":" |"}),i=r.split(Ct.splitPipe),s=0;if(i[0].trim()||i.shift(),i.length>0&&!((a=i.at(-1))!=null&&a.trim())&&i.pop(),t)if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("");for(;s<i.length;s++)i[s]=i[s].trim().replace(Ct.slashPipe,"|");return i}function vo(e,t,r){let i=e.length;if(i===0)return"";let s=0;for(;s<i&&e.charAt(i-s-1)===t;)s++;return e.slice(0,i-s)}function oI(e,t){if(e.indexOf(t[1])===-1)return-1;let r=0;for(let i=0;i<e.length;i++)if(e[i]==="\\")i++;else if(e[i]===t[0])r++;else if(e[i]===t[1]&&(r--,r<0))return i;return r>0?-2:-1}function xm(e,t,r,i,s){let a=t.href,u=t.title||null,c=e[1].replace(s.other.outputLinkReplace,"$1");i.state.inLink=!0;let f={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:u,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function sI(e,t,r){let i=e.match(r.other.indentCodeCompensation);if(i===null)return t;let s=i[1];return t.split(`
92
- `).map(a=>{let u=a.match(r.other.beginningSpace);if(u===null)return a;let[c]=u;return c.length>=s.length?a.slice(s.length):a}).join(`
93
- `)}var Aa=class{constructor(t){ve(this,"options");ve(this,"rules");ve(this,"lexer");this.options=t||Qn}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 i=r[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:r[0],codeBlockStyle:"indented",text:this.options.pedantic?i:vo(i,`
94
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=sI(i,r[3]||"",this.rules);return{type:"code",raw:i,lang:r[2]?r[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):r[2],text:s}}}heading(t){let r=this.rules.block.heading.exec(t);if(r){let i=r[2].trim();if(this.rules.other.endingHash.test(i)){let s=vo(i,"#");(this.options.pedantic||!s||this.rules.other.endingSpaceChar.test(s))&&(i=s.trim())}return{type:"heading",raw:r[0],depth:r[1].length,text:i,tokens:this.lexer.inline(i)}}}hr(t){let r=this.rules.block.hr.exec(t);if(r)return{type:"hr",raw:vo(r[0],`
95
- `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=vo(r[0],`
134
+ `,Px=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:o,enabled:a}=Cx(e),[l,c]=M.useState(!1),u=M.useRef(null);return M.useEffect(()=>{if(u.current){const p=new IntersectionObserver(g=>{g[0].isIntersecting||c(!1)});return p.observe(u.current),()=>{u.current&&p.unobserve(u.current)}}},[]),o&&a?T.jsxs(b$,{open:l,onOpenChange:c,children:[T.jsx(H$,{ref:u,className:at("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:p=>p.stopPropagation(),children:T.jsx("span",{className:at("group-hover:block",{hidden:!r}),children:T.jsx(ht.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),T.jsx(w$,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:T.jsx(hs,{depth:3,borderType:"light",className:"relative rounded border p-2 text-xs shadow-2xl",children:Ax(o)})})]}):null};function yp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Fi=yp();function Ix(e){Fi=e}var Ga={exec:()=>null};function qe(e,t=""){let r=typeof e=="string"?e:e.source,n={replace:(o,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Zt.caret,"$1"),r=r.replace(o,l),n},getRegex:()=>new RegExp(r,t)};return n}var Zt={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")},B$=/^(?:[ \t]*(?:\n|$))+/,W$=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,U$=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,vs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,q$=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,wp=/(?:[*+-]|\d{1,9}[.)])/,Nx=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,Dx=qe(Nx).replace(/bull/g,wp).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(),V$=qe(Nx).replace(/bull/g,wp).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(),xp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,G$=/^[^\n]+/,Sp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,K$=qe(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",Sp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Z$=qe(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,wp).getRegex(),Lc="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",_p=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,Y$=qe("^ {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",_p).replace("tag",Lc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),Mx=qe(xp).replace("hr",vs).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",Lc).getRegex(),X$=qe(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",Mx).getRegex(),Ep={blockquote:X$,code:W$,def:K$,fences:U$,heading:q$,hr:vs,html:Y$,lheading:Dx,list:Z$,newline:B$,paragraph:Mx,table:Ga,text:G$},Sy=qe("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",vs).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",Lc).getRegex(),J$={...Ep,lheading:V$,table:Sy,paragraph:qe(xp).replace("hr",vs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Sy).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",Lc).getRegex()},Q$={...Ep,html:qe(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",_p).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:Ga,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:qe(xp).replace("hr",vs).replace("heading",` *#{1,6} *[^
135
+ ]`).replace("lheading",Dx).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},e5=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,t5=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,Lx=/^( {2,}|\\)\n(?!\s*$)/,r5=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,$c=/[\p{P}\p{S}]/u,kp=/[\s\p{P}\p{S}]/u,$x=/[^\s\p{P}\p{S}]/u,n5=qe(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,kp).getRegex(),zx=/(?!~)[\p{P}\p{S}]/u,i5=/(?!~)[\s\p{P}\p{S}]/u,o5=/(?:[^\s\p{P}\p{S}]|~)/u,a5=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,jx=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,s5=qe(jx,"u").replace(/punct/g,$c).getRegex(),l5=qe(jx,"u").replace(/punct/g,zx).getRegex(),Fx="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",c5=qe(Fx,"gu").replace(/notPunctSpace/g,$x).replace(/punctSpace/g,kp).replace(/punct/g,$c).getRegex(),u5=qe(Fx,"gu").replace(/notPunctSpace/g,o5).replace(/punctSpace/g,i5).replace(/punct/g,zx).getRegex(),d5=qe("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,$x).replace(/punctSpace/g,kp).replace(/punct/g,$c).getRegex(),f5=qe(/\\(punct)/,"gu").replace(/punct/g,$c).getRegex(),p5=qe(/^<(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(),h5=qe(_p).replace("(?:-->|$)","-->").getRegex(),g5=qe("^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",h5).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),hc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,v5=qe(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",hc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Hx=qe(/^!?\[(label)\]\[(ref)\]/).replace("label",hc).replace("ref",Sp).getRegex(),Bx=qe(/^!?\[(ref)\](?:\[\])?/).replace("ref",Sp).getRegex(),m5=qe("reflink|nolink(?!\\()","g").replace("reflink",Hx).replace("nolink",Bx).getRegex(),_y=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,Op={_backpedal:Ga,anyPunctuation:f5,autolink:p5,blockSkip:a5,br:Lx,code:t5,del:Ga,emStrongLDelim:s5,emStrongRDelimAst:c5,emStrongRDelimUnd:d5,escape:e5,link:v5,nolink:Bx,punctuation:n5,reflink:Hx,reflinkSearch:m5,tag:g5,text:r5,url:Ga},b5={...Op,link:qe(/^!?\[(label)\]\((.*?)\)/).replace("label",hc).getRegex(),reflink:qe(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",hc).getRegex()},Af={...Op,emStrongRDelimAst:u5,emStrongLDelim:l5,url:qe(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",_y).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:qe(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",_y).getRegex()},y5={...Af,br:qe(Lx).replace("{2,}","*").getRegex(),text:qe(Af.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Ml={normal:Ep,gfm:J$,pedantic:Q$},Ca={normal:Op,gfm:Af,breaks:y5,pedantic:b5},w5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},Ey=e=>w5[e];function on(e,t){if(t){if(Zt.escapeTest.test(e))return e.replace(Zt.escapeReplace,Ey)}else if(Zt.escapeTestNoEncode.test(e))return e.replace(Zt.escapeReplaceNoEncode,Ey);return e}function ky(e){try{e=encodeURI(e).replace(Zt.percentDecode,"%")}catch{return null}return e}function Oy(e,t){var a;let r=e.replace(Zt.findPipe,(l,c,u)=>{let p=!1,g=c;for(;--g>=0&&u[g]==="\\";)p=!p;return p?"|":" |"}),n=r.split(Zt.splitPipe),o=0;if(n[0].trim()||n.shift(),n.length>0&&!((a=n.at(-1))!=null&&a.trim())&&n.pop(),t)if(n.length>t)n.splice(t);else for(;n.length<t;)n.push("");for(;o<n.length;o++)n[o]=n[o].trim().replace(Zt.slashPipe,"|");return n}function Pa(e,t,r){let n=e.length;if(n===0)return"";let o=0;for(;o<n&&e.charAt(n-o-1)===t;)o++;return e.slice(0,n-o)}function x5(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 Ty(e,t,r,n,o){let a=t.href,l=t.title||null,c=e[1].replace(o.other.outputLinkReplace,"$1");n.state.inLink=!0;let u={type:e[0].charAt(0)==="!"?"image":"link",raw:r,href:a,title:l,text:c,tokens:n.inlineTokens(c)};return n.state.inLink=!1,u}function S5(e,t,r){let n=e.match(r.other.indentCodeCompensation);if(n===null)return t;let o=n[1];return t.split(`
136
+ `).map(a=>{let l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=o.length?a.slice(o.length):a}).join(`
137
+ `)}var gc=class{constructor(t){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=t||Fi}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:Pa(n,`
138
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=S5(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:o}}}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 o=Pa(n,"#");(this.options.pedantic||!o||this.rules.other.endingSpaceChar.test(o))&&(n=o.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:Pa(r[0],`
139
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Pa(r[0],`
96
140
  `).split(`
97
- `),s="",a="",u=[];for(;i.length>0;){let c=!1,f=[],m;for(m=0;m<i.length;m++)if(this.rules.other.blockquoteStart.test(i[m]))f.push(i[m]),c=!0;else if(!c)f.push(i[m]);else break;i=i.slice(m);let g=f.join(`
98
- `),h=g.replace(this.rules.other.blockquoteSetextReplace,`
99
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
141
+ `),o="",a="",l=[];for(;n.length>0;){let c=!1,u=[],p;for(p=0;p<n.length;p++)if(this.rules.other.blockquoteStart.test(n[p]))u.push(n[p]),c=!0;else if(!c)u.push(n[p]);else break;n=n.slice(p);let g=u.join(`
142
+ `),f=g.replace(this.rules.other.blockquoteSetextReplace,`
143
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
100
144
  ${g}`:g,a=a?`${a}
101
- ${h}`:h;let d=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(h,u,!0),this.lexer.state.top=d,i.length===0)break;let y=u.at(-1);if((y==null?void 0:y.type)==="code")break;if((y==null?void 0:y.type)==="blockquote"){let x=y,p=x.raw+`
102
- `+i.join(`
103
- `),w=this.blockquote(p);u[u.length-1]=w,s=s.substring(0,s.length-x.raw.length)+w.raw,a=a.substring(0,a.length-x.text.length)+w.text;break}else if((y==null?void 0:y.type)==="list"){let x=y,p=x.raw+`
104
- `+i.join(`
105
- `),w=this.list(p);u[u.length-1]=w,s=s.substring(0,s.length-y.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=p.substring(u.at(-1).raw.length).split(`
106
- `);continue}}return{type:"blockquote",raw:s,tokens:u,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let i=r[1].trim(),s=i.length>1,a={type:"list",raw:"",ordered:s,start:s?+i.slice(0,-1):"",loose:!1,items:[]};i=s?`\\d{1,9}\\${i.slice(-1)}`:`\\${i}`,this.options.pedantic&&(i=s?i:"[*+-]");let u=this.rules.other.listItemRegex(i),c=!1;for(;t;){let m=!1,g="",h="";if(!(r=u.exec(t))||this.rules.block.hr.test(t))break;g=r[0],t=t.substring(g.length);let d=r[2].split(`
107
- `,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),y=t.split(`
108
- `,1)[0],x=!d.trim(),p=0;if(this.options.pedantic?(p=2,h=d.trimStart()):x?p=r[1].length+1:(p=r[2].search(this.rules.other.nonSpaceChar),p=p>4?1:p,h=d.slice(p),p+=r[1].length),x&&this.rules.other.blankLine.test(y)&&(g+=y+`
109
- `,t=t.substring(y.length+1),m=!0),!m){let S=this.rules.other.nextBulletRegex(p),E=this.rules.other.hrRegex(p),R=this.rules.other.fencesBeginRegex(p),T=this.rules.other.headingBeginRegex(p),k=this.rules.other.htmlBeginRegex(p);for(;t;){let U=t.split(`
110
- `,1)[0],D;if(y=U,this.options.pedantic?(y=y.replace(this.rules.other.listReplaceNesting," "),D=y):D=y.replace(this.rules.other.tabCharGlobal," "),R.test(y)||T.test(y)||k.test(y)||S.test(y)||E.test(y))break;if(D.search(this.rules.other.nonSpaceChar)>=p||!y.trim())h+=`
111
- `+D.slice(p);else{if(x||d.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(d)||T.test(d)||E.test(d))break;h+=`
112
- `+y}!x&&!y.trim()&&(x=!0),g+=U+`
113
- `,t=t.substring(U.length+1),d=D.slice(p)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let w=null,v;this.options.gfm&&(w=this.rules.other.listIsTask.exec(h),w&&(v=w[0]!=="[ ] ",h=h.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:g,task:!!w,checked:v,loose:!1,text:h,tokens:[]}),a.raw+=g}let f=a.items.at(-1);if(f)f.raw=f.raw.trimEnd(),f.text=f.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let m=0;m<a.items.length;m++)if(this.lexer.state.top=!1,a.items[m].tokens=this.lexer.blockTokens(a.items[m].text,[]),!a.loose){let g=a.items[m].tokens.filter(d=>d.type==="space"),h=g.length>0&&g.some(d=>this.rules.other.anyLine.test(d.raw));a.loose=h}if(a.loose)for(let m=0;m<a.items.length;m++)a.items[m].loose=!0;return a}}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 i=r[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),s=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=r[3]?r[3].substring(1,r[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):r[3];return{type:"def",tag:i,raw:r[0],href:s,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let i=wm(r[1]),s=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
114
- `):[],u={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?u.align.push("right"):this.rules.other.tableAlignCenter.test(f)?u.align.push("center"):this.rules.other.tableAlignLeft.test(f)?u.align.push("left"):u.align.push(null);for(let f=0;f<i.length;f++)u.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:u.align[f]});for(let f of a)u.rows.push(wm(f,u.header.length).map((m,g)=>({text:m,tokens:this.lexer.inline(m),header:!1,align:u.align[g]})));return u}}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 i=r[1].charAt(r[1].length-1)===`
115
- `?r[1].slice(0,-1):r[1];return{type:"paragraph",raw:r[0],text:i,tokens:this.lexer.inline(i)}}}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 i=r[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(i)){if(!this.rules.other.endAngleBracket.test(i))return;let u=vo(i.slice(0,-1),"\\");if((i.length-u.length)%2===0)return}else{let u=oI(r[2],"()");if(u===-2)return;if(u>-1){let c=(r[0].indexOf("!")===0?5:4)+r[1].length+u;r[2]=r[2].substring(0,u),r[0]=r[0].substring(0,c).trim(),r[3]=""}}let s=r[2],a="";if(this.options.pedantic){let u=this.rules.other.pedanticHrefTitle.exec(s);u&&(s=u[1],a=u[3])}else a=r[3]?r[3].slice(1,-1):"";return s=s.trim(),this.rules.other.startAngleBracket.test(s)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(i)?s=s.slice(1):s=s.slice(1,-1)),xm(r,{href:s&&s.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.replace(this.rules.inline.anyPunctuation,"$1")},r[0],this.lexer,this.rules)}}reflink(t,r){let i;if((i=this.rules.inline.reflink.exec(t))||(i=this.rules.inline.nolink.exec(t))){let s=(i[2]||i[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[s.toLowerCase()];if(!a){let u=i[0].charAt(0);return{type:"text",raw:u,text:u}}return xm(i,a,i[0],this.lexer,this.rules)}}emStrong(t,r,i=""){let s=this.rules.inline.emStrongLDelim.exec(t);if(!(!s||s[3]&&i.match(this.rules.other.unicodeAlphaNumeric))&&(!(s[1]||s[2])||!i||this.rules.inline.punctuation.exec(i))){let a=[...s[0]].length-1,u,c,f=a,m=0,g=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+a);(s=g.exec(r))!=null;){if(u=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!u)continue;if(c=[...u].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){m+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+m);let h=[...s[0]][0].length,d=t.slice(0,a+s.index+h+c);if(Math.min(a,c)%2){let x=d.slice(1,-1);return{type:"em",raw:d,text:x,tokens:this.lexer.inlineTokens(x)}}let y=d.slice(2,-2);return{type:"strong",raw:d,text:y,tokens:this.lexer.inlineTokens(y)}}}}codespan(t){let r=this.rules.inline.code.exec(t);if(r){let i=r[2].replace(this.rules.other.newLineCharGlobal," "),s=this.rules.other.nonSpaceChar.test(i),a=this.rules.other.startingSpaceChar.test(i)&&this.rules.other.endingSpaceChar.test(i);return s&&a&&(i=i.substring(1,i.length-1)),{type:"codespan",raw:r[0],text:i}}}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 i,s;return r[2]==="@"?(i=r[1],s="mailto:"+i):(i=r[1],s=i),{type:"link",raw:r[0],text:i,href:s,tokens:[{type:"text",raw:i,text:i}]}}}url(t){var i;let r;if(r=this.rules.inline.url.exec(t)){let s,a;if(r[2]==="@")s=r[0],a="mailto:"+s;else{let u;do u=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(u!==r[0]);s=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:s,href:a,tokens:[{type:"text",raw:s,text:s}]}}}inlineText(t){let r=this.rules.inline.text.exec(t);if(r){let i=this.lexer.state.inRawBlock;return{type:"text",raw:r[0],text:r[0],escaped:i}}}},gr=class Cc{constructor(t){ve(this,"tokens");ve(this,"options");ve(this,"state");ve(this,"tokenizer");ve(this,"inlineQueue");this.tokens=[],this.tokens.links=Object.create(null),this.options=t||Qn,this.options.tokenizer=this.options.tokenizer||new Aa,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:Ct,block:ia.normal,inline:mo.normal};this.options.pedantic?(r.block=ia.pedantic,r.inline=mo.pedantic):this.options.gfm&&(r.block=ia.gfm,this.options.breaks?r.inline=mo.breaks:r.inline=mo.gfm),this.tokenizer.rules=r}static get rules(){return{block:ia,inline:mo}}static lex(t,r){return new Cc(r).lex(t)}static lexInline(t,r){return new Cc(r).inlineTokens(t)}lex(t){t=t.replace(Ct.carriageReturn,`
116
- `),this.blockTokens(t,this.tokens);for(let r=0;r<this.inlineQueue.length;r++){let i=this.inlineQueue[r];this.inlineTokens(i.src,i.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(t,r=[],i=!1){var s,a,u;for(this.options.pedantic&&(t=t.replace(Ct.tabCharGlobal," ").replace(Ct.spaceLine,""));t;){let c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(m=>(c=m.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 m=r.at(-1);c.raw.length===1&&m!==void 0?m.raw+=`
117
- `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
145
+ ${f}`:f;let h=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,l,!0),this.lexer.state.top=h,n.length===0)break;let b=l.at(-1);if((b==null?void 0:b.type)==="code")break;if((b==null?void 0:b.type)==="blockquote"){let S=b,v=S.raw+`
146
+ `+n.join(`
147
+ `),y=this.blockquote(v);l[l.length-1]=y,o=o.substring(0,o.length-S.raw.length)+y.raw,a=a.substring(0,a.length-S.text.length)+y.text;break}else if((b==null?void 0:b.type)==="list"){let S=b,v=S.raw+`
148
+ `+n.join(`
149
+ `),y=this.list(v);l[l.length-1]=y,o=o.substring(0,o.length-b.raw.length)+y.raw,a=a.substring(0,a.length-S.raw.length)+y.raw,n=v.substring(l.at(-1).raw.length).split(`
150
+ `);continue}}return{type:"blockquote",raw:o,tokens:l,text:a}}}list(t){let r=this.rules.block.list.exec(t);if(r){let n=r[1].trim(),o=n.length>1,a={type:"list",raw:"",ordered:o,start:o?+n.slice(0,-1):"",loose:!1,items:[]};n=o?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=o?n:"[*+-]");let l=this.rules.other.listItemRegex(n),c=!1;for(;t;){let p=!1,g="",f="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;g=r[0],t=t.substring(g.length);let h=r[2].split(`
151
+ `,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),b=t.split(`
152
+ `,1)[0],S=!h.trim(),v=0;if(this.options.pedantic?(v=2,f=h.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=h.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(b)&&(g+=b+`
153
+ `,t=t.substring(b.length+1),p=!0),!p){let w=this.rules.other.nextBulletRegex(v),x=this.rules.other.hrRegex(v),k=this.rules.other.fencesBeginRegex(v),E=this.rules.other.headingBeginRegex(v),R=this.rules.other.htmlBeginRegex(v);for(;t;){let F=t.split(`
154
+ `,1)[0],P;if(b=F,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),P=b):P=b.replace(this.rules.other.tabCharGlobal," "),k.test(b)||E.test(b)||R.test(b)||w.test(b)||x.test(b))break;if(P.search(this.rules.other.nonSpaceChar)>=v||!b.trim())f+=`
155
+ `+P.slice(v);else{if(S||h.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(h)||E.test(h)||x.test(h))break;f+=`
156
+ `+b}!S&&!b.trim()&&(S=!0),g+=F+`
157
+ `,t=t.substring(F.length+1),h=P.slice(v)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(g)&&(c=!0));let y=null,m;this.options.gfm&&(y=this.rules.other.listIsTask.exec(f),y&&(m=y[0]!=="[ ] ",f=f.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:g,task:!!y,checked:m,loose:!1,text:f,tokens:[]}),a.raw+=g}let u=a.items.at(-1);if(u)u.raw=u.raw.trimEnd(),u.text=u.text.trimEnd();else return;a.raw=a.raw.trimEnd();for(let p=0;p<a.items.length;p++)if(this.lexer.state.top=!1,a.items[p].tokens=this.lexer.blockTokens(a.items[p].text,[]),!a.loose){let g=a.items[p].tokens.filter(h=>h.type==="space"),f=g.length>0&&g.some(h=>this.rules.other.anyLine.test(h.raw));a.loose=f}if(a.loose)for(let p=0;p<a.items.length;p++)a.items[p].loose=!0;return a}}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," "),o=r[2]?r[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",a=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:o,title:a}}}table(t){var c;let r=this.rules.block.table.exec(t);if(!r||!this.rules.other.tableDelimiter.test(r[2]))return;let n=Oy(r[1]),o=r[2].replace(this.rules.other.tableAlignChars,"").split("|"),a=(c=r[3])!=null&&c.trim()?r[3].replace(this.rules.other.tableRowBlankLine,"").split(`
158
+ `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(n.length===o.length){for(let u of o)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 a)l.rows.push(Oy(u,l.header.length).map((p,g)=>({text:p,tokens:this.lexer.inline(p),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)===`
159
+ `?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=Pa(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=x5(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 o=r[2],a="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(o);l&&(o=l[1],a=l[3])}else a=r[3]?r[3].slice(1,-1):"";return o=o.trim(),this.rules.other.startAngleBracket.test(o)&&(this.options.pedantic&&!this.rules.other.endAngleBracket.test(n)?o=o.slice(1):o=o.slice(1,-1)),Ty(r,{href:o&&o.replace(this.rules.inline.anyPunctuation,"$1"),title:a&&a.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 o=(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," "),a=r[o.toLowerCase()];if(!a){let l=n[0].charAt(0);return{type:"text",raw:l,text:l}}return Ty(n,a,n[0],this.lexer,this.rules)}}emStrong(t,r,n=""){let o=this.rules.inline.emStrongLDelim.exec(t);if(!(!o||o[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(o[1]||o[2])||!n||this.rules.inline.punctuation.exec(n))){let a=[...o[0]].length-1,l,c,u=a,p=0,g=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(g.lastIndex=0,r=r.slice(-1*t.length+a);(o=g.exec(r))!=null;){if(l=o[1]||o[2]||o[3]||o[4]||o[5]||o[6],!l)continue;if(c=[...l].length,o[3]||o[4]){u+=c;continue}else if((o[5]||o[6])&&a%3&&!((a+c)%3)){p+=c;continue}if(u-=c,u>0)continue;c=Math.min(c,c+u+p);let f=[...o[0]][0].length,h=t.slice(0,a+o.index+f+c);if(Math.min(a,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," "),o=this.rules.other.nonSpaceChar.test(n),a=this.rules.other.startingSpaceChar.test(n)&&this.rules.other.endingSpaceChar.test(n);return o&&a&&(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,o;return r[2]==="@"?(n=r[1],o="mailto:"+n):(n=r[1],o=n),{type:"link",raw:r[0],text:n,href:o,tokens:[{type:"text",raw:n,text:n}]}}}url(t){var n;let r;if(r=this.rules.inline.url.exec(t)){let o,a;if(r[2]==="@")o=r[0],a="mailto:"+o;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]);o=r[0],r[1]==="www."?a="http://"+r[0]:a=r[0]}return{type:"link",raw:r[0],text:o,href:a,tokens:[{type:"text",raw:o,text:o}]}}}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}}}},Vr=class Rf{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||Fi,this.options.tokenizer=this.options.tokenizer||new gc,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:Zt,block:Ml.normal,inline:Ca.normal};this.options.pedantic?(r.block=Ml.pedantic,r.inline=Ca.pedantic):this.options.gfm&&(r.block=Ml.gfm,this.options.breaks?r.inline=Ca.breaks:r.inline=Ca.gfm),this.tokenizer.rules=r}static get rules(){return{block:Ml,inline:Ca}}static lex(t,r){return new Rf(r).lex(t)}static lexInline(t,r){return new Rf(r).inlineTokens(t)}lex(t){t=t.replace(Zt.carriageReturn,`
160
+ `),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 o,a,l;for(this.options.pedantic&&(t=t.replace(Zt.tabCharGlobal," ").replace(Zt.spaceLine,""));t;){let c;if((a=(o=this.options.extensions)==null?void 0:o.block)!=null&&a.some(p=>(c=p.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 p=r.at(-1);c.raw.length===1&&p!==void 0?p.raw+=`
161
+ `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
118
162
  `)?"":`
119
- `)+c.raw,m.text+=`
120
- `+c.text,this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="paragraph"||(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
163
+ `)+c.raw,p.text+=`
164
+ `+c.text,this.inlineQueue.at(-1).src=p.text):r.push(c);continue}if(c=this.tokenizer.fences(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.heading(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.hr(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.blockquote(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.list(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.html(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.def(t)){t=t.substring(c.raw.length);let p=r.at(-1);(p==null?void 0:p.type)==="paragraph"||(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
121
165
  `)?"":`
122
- `)+c.raw,m.text+=`
123
- `+c.raw,this.inlineQueue.at(-1).src=m.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let f=t;if((u=this.options.extensions)!=null&&u.startBlock){let m=1/0,g=t.slice(1),h;this.options.extensions.startBlock.forEach(d=>{h=d.call({lexer:this},g),typeof h=="number"&&h>=0&&(m=Math.min(m,h))}),m<1/0&&m>=0&&(f=t.substring(0,m+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let m=r.at(-1);i&&(m==null?void 0:m.type)==="paragraph"?(m.raw+=(m.raw.endsWith(`
166
+ `)+c.raw,p.text+=`
167
+ `+c.raw,this.inlineQueue.at(-1).src=p.text):this.tokens.links[c.tag]||(this.tokens.links[c.tag]={href:c.href,title:c.title},r.push(c));continue}if(c=this.tokenizer.table(t)){t=t.substring(c.raw.length),r.push(c);continue}if(c=this.tokenizer.lheading(t)){t=t.substring(c.raw.length),r.push(c);continue}let u=t;if((l=this.options.extensions)!=null&&l.startBlock){let p=1/0,g=t.slice(1),f;this.options.extensions.startBlock.forEach(h=>{f=h.call({lexer:this},g),typeof f=="number"&&f>=0&&(p=Math.min(p,f))}),p<1/0&&p>=0&&(u=t.substring(0,p+1))}if(this.state.top&&(c=this.tokenizer.paragraph(u))){let p=r.at(-1);n&&(p==null?void 0:p.type)==="paragraph"?(p.raw+=(p.raw.endsWith(`
124
168
  `)?"":`
125
- `)+c.raw,m.text+=`
126
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c),i=f.length!==t.length,t=t.substring(c.raw.length);continue}if(c=this.tokenizer.text(t)){t=t.substring(c.raw.length);let m=r.at(-1);(m==null?void 0:m.type)==="text"?(m.raw+=(m.raw.endsWith(`
169
+ `)+c.raw,p.text+=`
170
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.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 p=r.at(-1);(p==null?void 0:p.type)==="text"?(p.raw+=(p.raw.endsWith(`
127
171
  `)?"":`
128
- `)+c.raw,m.text+=`
129
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=m.text):r.push(c);continue}if(t){let m="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(m);break}else throw new Error(m)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,f,m,g,h;let i=t,s=null;if(this.tokens.links){let d=Object.keys(this.tokens.links);if(d.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)d.includes(s[0].slice(s[0].lastIndexOf("[")+1,-1))&&(i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(s=this.tokenizer.rules.inline.anyPunctuation.exec(i))!=null;)i=i.slice(0,s.index)+"++"+i.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(s=this.tokenizer.rules.inline.blockSkip.exec(i))!=null;)i=i.slice(0,s.index)+"["+"a".repeat(s[0].length-2)+"]"+i.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);i=((f=(c=this.options.hooks)==null?void 0:c.emStrongMask)==null?void 0:f.call({lexer:this},i))??i;let a=!1,u="";for(;t;){a||(u=""),a=!1;let d;if((g=(m=this.options.extensions)==null?void 0:m.inline)!=null&&g.some(x=>(d=x.call({lexer:this},t,r))?(t=t.substring(d.raw.length),r.push(d),!0):!1))continue;if(d=this.tokenizer.escape(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.tag(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.link(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(d.raw.length);let x=r.at(-1);d.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=d.raw,x.text+=d.text):r.push(d);continue}if(d=this.tokenizer.emStrong(t,i,u)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.codespan(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.br(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.del(t)){t=t.substring(d.raw.length),r.push(d);continue}if(d=this.tokenizer.autolink(t)){t=t.substring(d.raw.length),r.push(d);continue}if(!this.state.inLink&&(d=this.tokenizer.url(t))){t=t.substring(d.raw.length),r.push(d);continue}let y=t;if((h=this.options.extensions)!=null&&h.startInline){let x=1/0,p=t.slice(1),w;this.options.extensions.startInline.forEach(v=>{w=v.call({lexer:this},p),typeof w=="number"&&w>=0&&(x=Math.min(x,w))}),x<1/0&&x>=0&&(y=t.substring(0,x+1))}if(d=this.tokenizer.inlineText(y)){t=t.substring(d.raw.length),d.raw.slice(-1)!=="_"&&(u=d.raw.slice(-1)),a=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=d.raw,x.text+=d.text):r.push(d);continue}if(t){let x="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(x);break}else throw new Error(x)}}return r}},Ra=class{constructor(t){ve(this,"options");ve(this,"parser");this.options=t||Qn}space(t){return""}code({text:t,lang:r,escaped:i}){var u;let s=(u=(r||"").match(Ct.notSpaceStart))==null?void 0:u[0],a=t.replace(Ct.endingNewline,"")+`
130
- `;return s?'<pre><code class="language-'+Tr(s)+'">'+(i?a:Tr(a,!0))+`</code></pre>
131
- `:"<pre><code>"+(i?a:Tr(a,!0))+`</code></pre>
172
+ `)+c.raw,p.text+=`
173
+ `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=p.text):r.push(c);continue}if(t){let p="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(p);break}else throw new Error(p)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,u,p,g,f;let n=t,o=null;if(this.tokens.links){let h=Object.keys(this.tokens.links);if(h.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)h.includes(o[0].slice(o[0].lastIndexOf("[")+1,-1))&&(n=n.slice(0,o.index)+"["+"a".repeat(o[0].length-2)+"]"+n.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;(o=this.tokenizer.rules.inline.anyPunctuation.exec(n))!=null;)n=n.slice(0,o.index)+"++"+n.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;(o=this.tokenizer.rules.inline.blockSkip.exec(n))!=null;)n=n.slice(0,o.index)+"["+"a".repeat(o[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 a=!1,l="";for(;t;){a||(l=""),a=!1;let h;if((g=(p=this.options.extensions)==null?void 0:p.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((f=this.options.extensions)!=null&&f.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)),a=!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}},vc=class{constructor(t){Ae(this,"options");Ae(this,"parser");this.options=t||Fi}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let o=(l=(r||"").match(Zt.notSpaceStart))==null?void 0:l[0],a=t.replace(Zt.endingNewline,"")+`
174
+ `;return o?'<pre><code class="language-'+on(o)+'">'+(n?a:on(a,!0))+`</code></pre>
175
+ `:"<pre><code>"+(n?a:on(a,!0))+`</code></pre>
132
176
  `}blockquote({tokens:t}){return`<blockquote>
133
177
  ${this.parser.parse(t)}</blockquote>
134
178
  `}html({text:t}){return t}def(t){return""}heading({tokens:t,depth:r}){return`<h${r}>${this.parser.parseInline(t)}</h${r}>
135
179
  `}hr(t){return`<hr>
136
- `}list(t){let r=t.ordered,i=t.start,s="";for(let c=0;c<t.items.length;c++){let f=t.items[c];s+=this.listitem(f)}let a=r?"ol":"ul",u=r&&i!==1?' start="'+i+'"':"";return"<"+a+u+`>
137
- `+s+"</"+a+`>
138
- `}listitem(t){var i;let r="";if(t.task){let s=this.checkbox({checked:!!t.checked});t.loose?((i=t.tokens[0])==null?void 0:i.type)==="paragraph"?(t.tokens[0].text=s+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=s+" "+Tr(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:s+" ",text:s+" ",escaped:!0}):r+=s+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
180
+ `}list(t){let r=t.ordered,n=t.start,o="";for(let c=0;c<t.items.length;c++){let u=t.items[c];o+=this.listitem(u)}let a=r?"ol":"ul",l=r&&n!==1?' start="'+n+'"':"";return"<"+a+l+`>
181
+ `+o+"</"+a+`>
182
+ `}listitem(t){var n;let r="";if(t.task){let o=this.checkbox({checked:!!t.checked});t.loose?((n=t.tokens[0])==null?void 0:n.type)==="paragraph"?(t.tokens[0].text=o+" "+t.tokens[0].text,t.tokens[0].tokens&&t.tokens[0].tokens.length>0&&t.tokens[0].tokens[0].type==="text"&&(t.tokens[0].tokens[0].text=o+" "+on(t.tokens[0].tokens[0].text),t.tokens[0].tokens[0].escaped=!0)):t.tokens.unshift({type:"text",raw:o+" ",text:o+" ",escaped:!0}):r+=o+" "}return r+=this.parser.parse(t.tokens,!!t.loose),`<li>${r}</li>
139
183
  `}checkbox({checked:t}){return"<input "+(t?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:t}){return`<p>${this.parser.parseInline(t)}</p>
140
- `}table(t){let r="",i="";for(let a=0;a<t.header.length;a++)i+=this.tablecell(t.header[a]);r+=this.tablerow({text:i});let s="";for(let a=0;a<t.rows.length;a++){let u=t.rows[a];i="";for(let c=0;c<u.length;c++)i+=this.tablecell(u[c]);s+=this.tablerow({text:i})}return s&&(s=`<tbody>${s}</tbody>`),`<table>
184
+ `}table(t){let r="",n="";for(let a=0;a<t.header.length;a++)n+=this.tablecell(t.header[a]);r+=this.tablerow({text:n});let o="";for(let a=0;a<t.rows.length;a++){let l=t.rows[a];n="";for(let c=0;c<l.length;c++)n+=this.tablecell(l[c]);o+=this.tablerow({text:n})}return o&&(o=`<tbody>${o}</tbody>`),`<table>
141
185
  <thead>
142
186
  `+r+`</thead>
143
- `+s+`</table>
187
+ `+o+`</table>
144
188
  `}tablerow({text:t}){return`<tr>
145
189
  ${t}</tr>
146
- `}tablecell(t){let r=this.parser.parseInline(t.tokens),i=t.header?"th":"td";return(t.align?`<${i} align="${t.align}">`:`<${i}>`)+r+`</${i}>
147
- `}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>${Tr(t,!0)}</code>`}br(t){return"<br>"}del({tokens:t}){return`<del>${this.parser.parseInline(t)}</del>`}link({href:t,title:r,tokens:i}){let s=this.parser.parseInline(i),a=bm(t);if(a===null)return s;t=a;let u='<a href="'+t+'"';return r&&(u+=' title="'+Tr(r)+'"'),u+=">"+s+"</a>",u}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=bm(t);if(a===null)return Tr(i);t=a;let u=`<img src="${t}" alt="${i}"`;return r&&(u+=` title="${Tr(r)}"`),u+=">",u}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Tr(t.text)}},Sf=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""}},mr=class kc{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||Qn,this.options.renderer=this.options.renderer||new Ra,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Sf}static parse(t,r){return new kc(r).parse(t)}static parseInline(t,r){return new kc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=c,g=this.options.extensions.renderers[m.type].call({parser:this},m);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(m.type)){i+=g||"";continue}}let f=c;switch(f.type){case"space":{i+=this.renderer.space(f);continue}case"hr":{i+=this.renderer.hr(f);continue}case"heading":{i+=this.renderer.heading(f);continue}case"code":{i+=this.renderer.code(f);continue}case"table":{i+=this.renderer.table(f);continue}case"blockquote":{i+=this.renderer.blockquote(f);continue}case"list":{i+=this.renderer.list(f);continue}case"html":{i+=this.renderer.html(f);continue}case"def":{i+=this.renderer.def(f);continue}case"paragraph":{i+=this.renderer.paragraph(f);continue}case"text":{let m=f,g=this.renderer.text(m);for(;u+1<t.length&&t[u+1].type==="text";)m=t[++u],g+=`
148
- `+this.renderer.text(m);r?i+=this.renderer.paragraph({type:"paragraph",raw:g,text:g,tokens:[{type:"text",raw:g,text:g,escaped:!0}]}):i+=g;continue}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let u=0;u<t.length;u++){let c=t[u];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let m=this.options.extensions.renderers[c.type].call({parser:this},c);if(m!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=m||"";continue}}let f=c;switch(f.type){case"escape":{i+=r.text(f);break}case"html":{i+=r.html(f);break}case"link":{i+=r.link(f);break}case"image":{i+=r.image(f);break}case"strong":{i+=r.strong(f);break}case"em":{i+=r.em(f);break}case"codespan":{i+=r.codespan(f);break}case"br":{i+=r.br(f);break}case"del":{i+=r.del(f);break}case"text":{i+=r.text(f);break}default:{let m='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(m),"";throw new Error(m)}}}return i}},la,wo=(la=class{constructor(t){ve(this,"options");ve(this,"block");this.options=t||Qn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?gr.lex:gr.lexInline}provideParser(){return this.block?mr.parse:mr.parseInline}},ve(la,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(la,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),la),Fy=class{constructor(...t){ve(this,"defaults",hf());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",mr);ve(this,"Renderer",Ra);ve(this,"TextRenderer",Sf);ve(this,"Lexer",gr);ve(this,"Tokenizer",Aa);ve(this,"Hooks",wo);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let u of t)switch(i=i.concat(r.call(this,u)),u.type){case"table":{let c=u;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let m of f)i=i.concat(this.walkTokens(m.tokens,r));break}case"list":{let c=u;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=u;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let m=c[f].flat(1/0);i=i.concat(this.walkTokens(m,r))}):c.tokens&&(i=i.concat(this.walkTokens(c.tokens,r)))}}return i}use(...t){let r=this.defaults.extensions||{renderers:{},childTokens:{}};return t.forEach(i=>{let s={...i};if(s.async=this.defaults.async||s.async||!1,i.extensions&&(i.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let u=r.renderers[a.name];u?r.renderers[a.name]=function(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=u.apply(this,c)),f}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let u=r[a.level];u?u.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Ra(this.defaults);for(let u in i.renderer){if(!(u in a))throw new Error(`renderer '${u}' does not exist`);if(["options","parser"].includes(u))continue;let c=u,f=i.renderer[c],m=a[c];a[c]=(...g)=>{let h=f.apply(a,g);return h===!1&&(h=m.apply(a,g)),h||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Aa(this.defaults);for(let u in i.tokenizer){if(!(u in a))throw new Error(`tokenizer '${u}' does not exist`);if(["options","rules","lexer"].includes(u))continue;let c=u,f=i.tokenizer[c],m=a[c];a[c]=(...g)=>{let h=f.apply(a,g);return h===!1&&(h=m.apply(a,g)),h}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new wo;for(let u in i.hooks){if(!(u in a))throw new Error(`hook '${u}' does not exist`);if(["options","block"].includes(u))continue;let c=u,f=i.hooks[c],m=a[c];wo.passThroughHooks.has(u)?a[c]=g=>{if(this.defaults.async&&wo.passThroughHooksRespectAsync.has(u))return(async()=>{let d=await f.call(a,g);return m.call(a,d)})();let h=f.call(a,g);return m.call(a,h)}:a[c]=(...g)=>{if(this.defaults.async)return(async()=>{let d=await f.apply(a,g);return d===!1&&(d=await m.apply(a,g)),d})();let h=f.apply(a,g);return h===!1&&(h=m.apply(a,g)),h}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,u=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(u.call(this,c)),a&&(f=f.concat(a.call(this,c))),f}}this.defaults={...this.defaults,...s}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return gr.lex(t,r??this.defaults)}parser(t,r){return mr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},u=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.async===!1)return u(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 u(new Error("marked(): input parameter is undefined or null"));if(typeof r!="string")return u(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(r)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,f=await(a.hooks?await a.hooks.provideLexer():t?gr.lex:gr.lexInline)(c,a),m=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(m,a.walkTokens));let g=await(a.hooks?await a.hooks.provideParser():t?mr.parse:mr.parseInline)(m,a);return a.hooks?await a.hooks.postprocess(g):g})().catch(u);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?gr.lex:gr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let f=(a.hooks?a.hooks.provideParser():t?mr.parse:mr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return u(c)}}}onError(t,r){return i=>{if(i.message+=`
149
- Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error occurred:</p><pre>"+Tr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Vn=new Fy;function ze(e,t){return Vn.parse(e,t)}ze.options=ze.setOptions=function(e){return Vn.setOptions(e),ze.defaults=Vn.defaults,Ay(ze.defaults),ze};ze.getDefaults=hf;ze.defaults=Qn;ze.use=function(...e){return Vn.use(...e),ze.defaults=Vn.defaults,Ay(ze.defaults),ze};ze.walkTokens=function(e,t){return Vn.walkTokens(e,t)};ze.parseInline=Vn.parseInline;ze.Parser=mr;ze.parser=mr.parse;ze.Renderer=Ra;ze.TextRenderer=Sf;ze.Lexer=gr;ze.lexer=gr.lex;ze.Tokenizer=Aa;ze.Hooks=wo;ze.parse=ze;ze.options;ze.setOptions;ze.use;ze.walkTokens;ze.parseInline;mr.parse;gr.lex;const aI={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},jy=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,uI=RegExp(jy.source),Sm=(e="")=>uI.test(e)?e.replace(jy,t=>aI[t]||"'"):e,Em=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var lI=class{constructor(e){ve(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 i=r.depth;return this.renderer.heading(this.parseInline(r.tokens),i)}case"paragraph":return this.renderer.paragraph(this.parseInline(r.tokens));case"text":{const i=r;return i.tokens?this.parseInline(i.tokens):r.text}case"blockquote":{const i=r,s=this.parse(i.tokens);return this.renderer.blockquote(s)}case"list":{const i=r;this.renderer.elIdList.push(0);const s=i.items.map(a=>{const u=[];return a.task&&u.push(this.renderer.checkbox(a.checked??!1)),u.push(this.parse(a.tokens)),this.renderer.listItem(u)});return this.renderer.elIdList.pop(),this.renderer.list(s,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 i=r;this.renderer.elIdList.push(0);const s=i.header.map((m,g)=>this.renderer.tableCell(this.parseInline(m.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),u=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(m=>{this.renderer.elIdList.push(0);const g=m.map((h,d)=>this.renderer.tableCell(this.parseInline(h.tokens),{header:!1,align:r.align[d]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(g)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([u,f])}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(Sm(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(Sm(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}},cI=lI,hn,We,ot,Ic,tv,fI=(tv=class{constructor(e={}){Et(this,We);ve(this,"elIdList",[]);Et(this,hn);const{renderer:t}=e;rt(this,hn,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,i])=>{const s=r,a=i;!this[s]||s==="elementId"||s==="elIdList"||typeof a!="function"||Object.defineProperty(this,s,{value(...u){return $e(this,We,Ic).call(this),a.apply(this,u)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,We,ot).call(this,`h${t}`,e)}paragraph(e){return $e(this,We,ot).call(this,"p",e)}link(e,t){const r=Em(e,re(this,hn).baseURL),i=re(this,hn).openLinksInNewTab?"_blank":null;return $e(this,We,ot).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=Em(e,re(this,hn).baseURL);return $e(this,We,ot).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,hn).langPrefix}${t}`:null;return $e(this,We,ot).call(this,"code",e,{className:r})}code(e,t){return $e(this,We,ot).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,We,ot).call(this,"blockquote",e)}list(e,t,r){return $e(this,We,ot).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,We,ot).call(this,"li",e)}checkbox(e){return $e(this,We,ot).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,We,ot).call(this,"table",e)}tableHeader(e){return $e(this,We,ot).call(this,"thead",e)}tableBody(e){return $e(this,We,ot).call(this,"tbody",e)}tableRow(e){return $e(this,We,ot).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,We,ot).call(this,r,e,{align:t.align})}strong(e){return $e(this,We,ot).call(this,"strong",e)}em(e){return $e(this,We,ot).call(this,"em",e)}del(e){return $e(this,We,ot).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,We,ot).call(this,"hr")}br(){return $e(this,We,ot).call(this,"br")}},hn=new WeakMap,We=new WeakSet,ot=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,We,Ic).call(this),z.createElement(e,{...r,...i},t)},Ic=function(){this.elIdList[this.elIdList.length-1]+=1},tv),dI=fI;const pI=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}`)},hI={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},gI=new Fy,mI=e=>{pI(e);const t={...hI,...e},r=t.instance??gI,i={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},s=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(s,i):r.lexer(s,i),u={renderer:new dI({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new cI(u),f=t.isInline?c.parseInline(a):c.parse(a);return z.createElement(z.Fragment,null,f)};var vI=mI,yI=vI;const bI=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[u,c]=z.useState(null),f=z.useRef(null),[m,g]=z.useState(null),[h,d]=z.useState(!1),{styles:y,attributes:x}=Xc(u,m,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),p=z.Children.map(e,w=>z.isValidElement(w)?z.cloneElement(w,{ref:c,onMouseEnter:()=>d(!0),onMouseLeave:()=>{f.current=setTimeout(()=>d(!1),50)}}):w);return s?$.jsx($.Fragment,{children:p}):$.jsxs($.Fragment,{children:[p,h&&t&&Pi.createPortal($.jsx("div",{ref:g,style:y.popper,...x.popper,className:je("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",i),onMouseEnter:()=>{f.current&&clearTimeout(f.current),d(!0)},onMouseLeave:()=>d(!1),children:typeof t=="string"?$.jsx(yI,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},zy=({referenceElement:e,label:t})=>{const[r,i]=z.useState(null),{styles:s,attributes:a}=Xc(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return $.jsx("div",{className:"z-[1000] rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",ref:i,style:s.popper,...a.popper,children:t})},wI=vc.keyframes`
190
+ `}tablecell(t){let r=this.parser.parseInline(t.tokens),n=t.header?"th":"td";return(t.align?`<${n} align="${t.align}">`:`<${n}>`)+r+`</${n}>
191
+ `}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>${on(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 o=this.parser.parseInline(n),a=ky(t);if(a===null)return o;t=a;let l='<a href="'+t+'"';return r&&(l+=' title="'+on(r)+'"'),l+=">"+o+"</a>",l}image({href:t,title:r,text:n,tokens:o}){o&&(n=this.parser.parseInline(o,this.parser.textRenderer));let a=ky(t);if(a===null)return on(n);t=a;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${on(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:on(t.text)}},Tp=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""}},Gr=class Cf{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||Fi,this.options.renderer=this.options.renderer||new vc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new Tp}static parse(t,r){return new Cf(r).parse(t)}static parseInline(t,r){return new Cf(r).parseInline(t)}parse(t,r=!0){var o,a;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[c.type]){let p=c,g=this.options.extensions.renderers[p.type].call({parser:this},p);if(g!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.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 p=u,g=this.renderer.text(p);for(;l+1<t.length&&t[l+1].type==="text";)p=t[++l],g+=`
192
+ `+this.renderer.text(p);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 p='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return n}parseInline(t,r=this.renderer){var o,a;let n="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(o=this.options.extensions)==null?void 0:o.renderers)!=null&&a[c.type]){let p=this.options.extensions.renderers[c.type].call({parser:this},c);if(p!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){n+=p||"";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 p='Token with "'+u.type+'" type was not found.';if(this.options.silent)return console.error(p),"";throw new Error(p)}}}return n}},Hl,Ma=(Hl=class{constructor(t){Ae(this,"options");Ae(this,"block");this.options=t||Fi}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Vr.lex:Vr.lexInline}provideParser(){return this.block?Gr.parse:Gr.parseInline}},Ae(Hl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(Hl,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),Hl),Wx=class{constructor(...t){Ae(this,"defaults",yp());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",Gr);Ae(this,"Renderer",vc);Ae(this,"TextRenderer",Tp);Ae(this,"Lexer",Vr);Ae(this,"Tokenizer",gc);Ae(this,"Hooks",Ma);this.use(...t)}walkTokens(t,r){var o,a;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 p of u)n=n.concat(this.walkTokens(p.tokens,r));break}case"list":{let c=l;n=n.concat(this.walkTokens(c.items,r));break}default:{let c=l;(a=(o=this.defaults.extensions)==null?void 0:o.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(u=>{let p=c[u].flat(1/0);n=n.concat(this.walkTokens(p,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 o={...n};if(o.async=this.defaults.async||o.async||!1,n.extensions&&(n.extensions.forEach(a=>{if(!a.name)throw new Error("extension name required");if("renderer"in a){let l=r.renderers[a.name];l?r.renderers[a.name]=function(...c){let u=a.renderer.apply(this,c);return u===!1&&(u=l.apply(this,c)),u}:r.renderers[a.name]=a.renderer}if("tokenizer"in a){if(!a.level||a.level!=="block"&&a.level!=="inline")throw new Error("extension level must be 'block' or 'inline'");let l=r[a.level];l?l.unshift(a.tokenizer):r[a.level]=[a.tokenizer],a.start&&(a.level==="block"?r.startBlock?r.startBlock.push(a.start):r.startBlock=[a.start]:a.level==="inline"&&(r.startInline?r.startInline.push(a.start):r.startInline=[a.start]))}"childTokens"in a&&a.childTokens&&(r.childTokens[a.name]=a.childTokens)}),o.extensions=r),n.renderer){let a=this.defaults.renderer||new vc(this.defaults);for(let l in n.renderer){if(!(l in a))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,u=n.renderer[c],p=a[c];a[c]=(...g)=>{let f=u.apply(a,g);return f===!1&&(f=p.apply(a,g)),f||""}}o.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new gc(this.defaults);for(let l in n.tokenizer){if(!(l in a))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,u=n.tokenizer[c],p=a[c];a[c]=(...g)=>{let f=u.apply(a,g);return f===!1&&(f=p.apply(a,g)),f}}o.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Ma;for(let l in n.hooks){if(!(l in a))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,u=n.hooks[c],p=a[c];Ma.passThroughHooks.has(l)?a[c]=g=>{if(this.defaults.async&&Ma.passThroughHooksRespectAsync.has(l))return(async()=>{let h=await u.call(a,g);return p.call(a,h)})();let f=u.call(a,g);return p.call(a,f)}:a[c]=(...g)=>{if(this.defaults.async)return(async()=>{let h=await u.apply(a,g);return h===!1&&(h=await p.apply(a,g)),h})();let f=u.apply(a,g);return f===!1&&(f=p.apply(a,g)),f}}o.hooks=a}if(n.walkTokens){let a=this.defaults.walkTokens,l=n.walkTokens;o.walkTokens=function(c){let u=[];return u.push(l.call(this,c)),a&&(u=u.concat(a.call(this,c))),u}}this.defaults={...this.defaults,...o}}),this}setOptions(t){return this.defaults={...this.defaults,...t},this}lexer(t,r){return Vr.lex(t,r??this.defaults)}parser(t,r){return Gr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,n)=>{let o={...n},a={...this.defaults,...o},l=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&o.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(a.hooks&&(a.hooks.options=a,a.hooks.block=t),a.async)return(async()=>{let c=a.hooks?await a.hooks.preprocess(r):r,u=await(a.hooks?await a.hooks.provideLexer():t?Vr.lex:Vr.lexInline)(c,a),p=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(p,a.walkTokens));let g=await(a.hooks?await a.hooks.provideParser():t?Gr.parse:Gr.parseInline)(p,a);return a.hooks?await a.hooks.postprocess(g):g})().catch(l);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?Vr.lex:Vr.lexInline)(r,a);a.hooks&&(c=a.hooks.processAllTokens(c)),a.walkTokens&&this.walkTokens(c,a.walkTokens);let u=(a.hooks?a.hooks.provideParser():t?Gr.parse:Gr.parseInline)(c,a);return a.hooks&&(u=a.hooks.postprocess(u)),u}catch(c){return l(c)}}}onError(t,r){return n=>{if(n.message+=`
193
+ Please report this to https://github.com/markedjs/marked.`,t){let o="<p>An error occurred:</p><pre>"+on(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},$i=new Wx;function it(e,t){return $i.parse(e,t)}it.options=it.setOptions=function(e){return $i.setOptions(e),it.defaults=$i.defaults,Ix(it.defaults),it};it.getDefaults=yp;it.defaults=Fi;it.use=function(...e){return $i.use(...e),it.defaults=$i.defaults,Ix(it.defaults),it};it.walkTokens=function(e,t){return $i.walkTokens(e,t)};it.parseInline=$i.parseInline;it.Parser=Gr;it.parser=Gr.parse;it.Renderer=vc;it.TextRenderer=Tp;it.Lexer=Vr;it.lexer=Vr.lex;it.Tokenizer=gc;it.Hooks=Ma;it.parse=it;it.options;it.setOptions;it.use;it.walkTokens;it.parseInline;Gr.parse;Vr.lex;const _5={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ux=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,E5=RegExp(Ux.source),Ay=(e="")=>E5.test(e)?e.replace(Ux,t=>_5[t]||"'"):e,Ry=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var k5=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,o=this.parse(n.tokens);return this.renderer.blockquote(o)}case"list":{const n=r;this.renderer.elIdList.push(0);const o=n.items.map(a=>{const l=[];return a.task&&l.push(this.renderer.checkbox(a.checked??!1)),l.push(this.parse(a.tokens)),this.renderer.listItem(l)});return this.renderer.elIdList.pop(),this.renderer.list(o,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 o=n.header.map((p,g)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!0,align:r.align[g]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(o),l=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=n.rows.map(p=>{this.renderer.elIdList.push(0);const g=p.map((f,h)=>this.renderer.tableCell(this.parseInline(f.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(Ay(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(Ay(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}},O5=k5,ti,lt,xt,Pf,u0,T5=(u0=class{constructor(e={}){Lt(this,lt);Ae(this,"elIdList",[]);Lt(this,ti);const{renderer:t}=e;et(this,ti,e),t&&typeof t=="object"&&Object.entries(t).forEach(([r,n])=>{const o=r,a=n;!this[o]||o==="elementId"||o==="elIdList"||typeof a!="function"||Object.defineProperty(this,o,{value(...l){return _e(this,lt,Pf).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return _e(this,lt,xt).call(this,`h${t}`,e)}paragraph(e){return _e(this,lt,xt).call(this,"p",e)}link(e,t){const r=Ry(e,se(this,ti).baseURL),n=se(this,ti).openLinksInNewTab?"_blank":null;return _e(this,lt,xt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=Ry(e,se(this,ti).baseURL);return _e(this,lt,xt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${se(this,ti).langPrefix}${t}`:null;return _e(this,lt,xt).call(this,"code",e,{className:r})}code(e,t){return _e(this,lt,xt).call(this,"pre",this.codespan(e,t))}blockquote(e){return _e(this,lt,xt).call(this,"blockquote",e)}list(e,t,r){return _e(this,lt,xt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return _e(this,lt,xt).call(this,"li",e)}checkbox(e){return _e(this,lt,xt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return _e(this,lt,xt).call(this,"table",e)}tableHeader(e){return _e(this,lt,xt).call(this,"thead",e)}tableBody(e){return _e(this,lt,xt).call(this,"tbody",e)}tableRow(e){return _e(this,lt,xt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return _e(this,lt,xt).call(this,r,e,{align:t.align})}strong(e){return _e(this,lt,xt).call(this,"strong",e)}em(e){return _e(this,lt,xt).call(this,"em",e)}del(e){return _e(this,lt,xt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return _e(this,lt,xt).call(this,"hr")}br(){return _e(this,lt,xt).call(this,"br")}},ti=new WeakMap,lt=new WeakSet,xt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return _e(this,lt,Pf).call(this),M.createElement(e,{...r,...n},t)},Pf=function(){this.elIdList[this.elIdList.length-1]+=1},u0),A5=T5;const R5=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}`)},C5={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},P5=new Wx,I5=e=>{R5(e);const t={...C5,...e},r=t.instance??P5,n={breaks:t.breaks,gfm:t.gfm,tokenizer:r.defaults.tokenizer},o=t.value??t.children??"",a=t.isInline?r.Lexer.lexInline(o,n):r.lexer(o,n),l={renderer:new A5({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new O5(l),u=t.isInline?c.parseInline(a):c.parse(a);return M.createElement(M.Fragment,null,u)};var N5=I5,D5=N5;const M5=({children:e,label:t,placement:r="top",className:n,isDisabled:o,container:a})=>{const[l,c]=M.useState(null),u=M.useRef(null),[p,g]=M.useState(null),[f,h]=M.useState(!1),b=typeof t=="string",{styles:S,attributes:v}=rp(l,p,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),y=M.Children.map(e,m=>M.isValidElement(m)?M.cloneElement(m,{ref:c,onMouseEnter:()=>h(!0),onMouseLeave:()=>{u.current=setTimeout(()=>h(!1),50)}}):m);return o?T.jsx(T.Fragment,{children:y}):T.jsxs(T.Fragment,{children:[y,f&&t&&$n.createPortal(T.jsx("div",{ref:g,style:{...S.popper,zIndex:1e5},...v.popper,className:at(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?T.jsx(D5,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},L5=({referenceElement:e,label:t})=>{const[r,n]=M.useState(null),{styles:o,attributes:a}=rp(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return T.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:{...o.popper,zIndex:1e5},...a.popper,children:t})},$5=ff.keyframes`
150
194
  to {
151
195
  fill: url(#d);
152
196
  stroke-dashoffset: 0;
153
197
  }
154
- `,By=Sa.svg`
198
+ `,qx=fc.svg`
155
199
  & .e {
156
200
  fill: url(#d);
157
201
  }
@@ -162,7 +206,7 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
162
206
  fill: transparent;
163
207
  stroke-dasharray: 700;
164
208
  stroke-dashoffset: 700;
165
- animation: ${wI} 1.5s ease-in-out infinite alternate-reverse;
209
+ animation: ${$5} 1.5s ease-in-out infinite alternate-reverse;
166
210
  }
167
211
 
168
212
  & #circle {
@@ -172,37 +216,39 @@ Please report this to https://github.com/markedjs/marked.`,t){let s="<p>An error
172
216
  stroke-dasharray: 700;
173
217
  stroke-dashoffset: 700;
174
218
  }
175
- `,xI=({message:e,version:t})=>$.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:$.jsxs("div",{className:"flex flex-col text-center",children:[$.jsx("div",{className:"relative mr-4 self-center",children:$.jsx("div",{className:"flex items-center justify-center rounded",children:$.jsxs(By,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[$.jsx("defs",{children:$.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[$.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:$.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),$.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:$.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),$.jsx("g",{id:"a"}),$.jsx("g",{id:"b",children:$.jsx("g",{id:"c",children:$.jsxs("g",{children:[$.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"}),$.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"})]})})})]})})}),$.jsxs("div",{children:[$.jsx("span",{className:"text-xs text-grey-200",children:t}),$.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var xo={exports:{}};/**
219
+ `,z5=({message:e,version:t})=>T.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-body",children:T.jsxs("div",{className:"flex flex-col text-center",children:[T.jsx("div",{className:"relative mr-4 self-center",children:T.jsx("div",{className:"flex items-center justify-center rounded",children:T.jsxs(qx,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[T.jsx("defs",{children:T.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[T.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:T.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),T.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:T.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),T.jsx("g",{id:"a"}),T.jsx("g",{id:"b",children:T.jsx("g",{id:"c",children:T.jsxs("g",{children:[T.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"}),T.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"})]})})})]})})}),T.jsxs("div",{children:[T.jsx("span",{className:"text-xs text-inactive-text",children:t}),T.jsx("h2",{className:"text-lg text-muted",children:e})]})]})});var j5=Object.defineProperty,F5=(e,t,r)=>t in e?j5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Zd=(e,t,r)=>(F5(e,typeof t!="symbol"?t+"":t,r),r);let H5=class{constructor(){Zd(this,"current",this.detect()),Zd(this,"handoffState","pending"),Zd(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"}},tc=new H5,ts=(e,t)=>{tc.isServer?M.useEffect(e,t):M.useLayoutEffect(e,t)};function So(e){let t=M.useRef(e);return ts(()=>{t.current=e},[e]),t}let Nn=function(e){let t=So(e);return M.useCallback((...r)=>t.current(...r),[t])};function B5(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ms(){let e=[],t={addEventListener(r,n,o,a){return r.addEventListener(n,o,a),t.add(()=>r.removeEventListener(n,o,a))},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 B5(()=>{n.current&&r[0]()}),t.add(()=>{n.current=!1})},style(r,n,o){let a=r.style.getPropertyValue(n);return Object.assign(r.style,{[n]:o}),this.add(()=>{Object.assign(r.style,{[n]:a})})},group(r){let n=ms();return r(n),this.add(()=>n.dispose())},add(r){return e.push(r),()=>{let n=e.indexOf(r);if(n>=0)for(let o of e.splice(n,1))o()}},dispose(){for(let r of e.splice(0))r()}};return t}function Vx(){let[e]=M.useState(ms);return M.useEffect(()=>()=>e.dispose(),[e]),e}function W5(){let e=typeof document>"u";return"useSyncExternalStore"in B?(t=>t.useSyncExternalStore)(B)(()=>()=>{},()=>!1,()=>!e):!1}function Gx(){let e=W5(),[t,r]=B.useState(tc.isHandoffComplete);return t&&tc.isHandoffComplete===!1&&r(!1),B.useEffect(()=>{t!==!0&&r(!0)},[t]),B.useEffect(()=>tc.handoff(),[]),e?!1:t}function fn(e,t,...r){if(e in t){let o=t[e];return typeof o=="function"?o(...r):o}let n=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(o=>`"${o}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(n,fn),n}let U5=Symbol();function Kx(...e){let t=M.useRef(e);M.useEffect(()=>{t.current=e},[e]);let r=Nn(n=>{for(let o of t.current)o!=null&&(typeof o=="function"?o(n):o.current=n)});return e.every(n=>n==null||(n==null?void 0:n[U5]))?void 0:r}function mc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Zx=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Zx||{}),ii=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ii||{});function Yx({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:l,mergeRefs:c}){c=c??q5;let u=Xx(t,e);if(a)return Ll(u,r,n,l,c);let p=o??0;if(p&2){let{static:g=!1,...f}=u;if(g)return Ll(f,r,n,l,c)}if(p&1){let{unmount:g=!0,...f}=u;return fn(g?0:1,{0(){return null},1(){return Ll({...f,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return Ll(u,r,n,l,c)}function Ll(e,t={},r,n,o){let{as:a=r,children:l,refName:c="ref",...u}=Yd(e,["unmount","static"]),p=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 f={};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&&(f["data-headlessui-state"]=b.join(" "))}if(a===M.Fragment&&Object.keys(Cy(u)).length>0){if(!M.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(`
220
+ `),"","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(`
221
+ `)].join(`
222
+ `));let h=g.props,b=typeof(h==null?void 0:h.className)=="function"?(...v)=>mc(h==null?void 0:h.className(...v),u.className):mc(h==null?void 0:h.className,u.className),S=b?{className:b}:{};return M.cloneElement(g,Object.assign({},Xx(g.props,Cy(Yd(u,["ref"]))),f,p,{ref:o(g.ref,p.ref)},S))}return M.createElement(a,Object.assign({},Yd(u,["ref"]),a!==M.Fragment&&p,a!==M.Fragment&&f),g)}function q5(...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 Xx(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let n of e)for(let o in n)o.startsWith("on")&&typeof n[o]=="function"?(r[o]!=null||(r[o]=[]),r[o].push(n[o])):t[o]=n[o];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](o,...a){let l=r[n];for(let c of l){if((o instanceof Event||(o==null?void 0:o.nativeEvent)instanceof Event)&&o.defaultPrevented)return;c(o,...a)}}});return t}function Ap(e){var t;return Object.assign(M.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Cy(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Yd(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let Rp=M.createContext(null);Rp.displayName="OpenClosedContext";var Pn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Pn||{});function Jx(){return M.useContext(Rp)}function V5({value:e,children:t}){return M.createElement(Rp.Provider,{value:e},t)}function Cp(){let e=M.useRef(!1);return ts(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function G5(e=0){let[t,r]=M.useState(e),n=Cp(),o=M.useCallback(u=>{n.current&&r(p=>p|u)},[t,n]),a=M.useCallback(u=>!!(t&u),[t]),l=M.useCallback(u=>{n.current&&r(p=>p&~u)},[r,n]),c=M.useCallback(u=>{n.current&&r(p=>p^u)},[r]);return{flags:t,addFlag:o,hasFlag:a,removeFlag:l,toggleFlag:c}}function K5(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Xd(e,...t){e&&t.length>0&&e.classList.add(...t)}function Jd(e,...t){e&&t.length>0&&e.classList.remove(...t)}function Z5(e,t){let r=ms();if(!e)return r.dispose;let{transitionDuration:n,transitionDelay:o}=getComputedStyle(e),[a,l]=[n,o].map(u=>{let[p=0]=u.split(",").filter(Boolean).map(g=>g.includes("ms")?parseFloat(g):parseFloat(g)*1e3).sort((g,f)=>f-g);return p}),c=a+l;if(c!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},c),p.addEventListener(e,"transitionrun",g=>{g.target===g.currentTarget&&p.dispose()})});let u=r.addEventListener(e,"transitionend",p=>{p.target===p.currentTarget&&(t(),u())})}else t();return r.add(()=>t()),r.dispose}function Y5(e,t,r,n){let o=r?"enter":"leave",a=ms(),l=n!==void 0?K5(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=fn(o,{enter:()=>t.enter,leave:()=>t.leave}),u=fn(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=fn(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Jd(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Xd(e,...t.base,...c,...p),a.nextFrame(()=>{Jd(e,...t.base,...c,...p),Xd(e,...t.base,...c,...u),Z5(e,()=>(Jd(e,...t.base,...c),Xd(e,...t.base,...t.entered),l()))}),a.dispose}function X5({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:a}){let l=Cp(),c=Vx(),u=So(r);ts(()=>{e&&(u.current="enter")},[e]),ts(()=>{let p=ms();c.add(p.dispose);let g=t.current;if(g&&u.current!=="idle"&&l.current)return p.dispose(),o.current(u.current),p.add(Y5(g,n.current,u.current==="enter",()=>{p.dispose(),a.current(u.current)})),p.dispose},[r])}function ei(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let zc=M.createContext(null);zc.displayName="TransitionContext";var J5=(e=>(e.Visible="visible",e.Hidden="hidden",e))(J5||{});function Q5(){let e=M.useContext(zc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function ez(){let e=M.useContext(jc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let jc=M.createContext(null);jc.displayName="NestingContext";function Fc(e){return"children"in e?Fc(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Qx(e,t){let r=So(e),n=M.useRef([]),o=Cp(),a=Vx(),l=Nn((b,S=ii.Hidden)=>{let v=n.current.findIndex(({el:y})=>y===b);v!==-1&&(fn(S,{[ii.Unmount](){n.current.splice(v,1)},[ii.Hidden](){n.current[v].state="hidden"}}),a.microTask(()=>{var y;!Fc(n)&&o.current&&((y=r.current)==null||y.call(r))}))}),c=Nn(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,ii.Unmount)}),u=M.useRef([]),p=M.useRef(Promise.resolve()),g=M.useRef({enter:[],leave:[],idle:[]}),f=Nn((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"?p.current=p.current.then(()=>t==null?void 0:t.wait.current).then(()=>v(S)):v(S)}),h=Nn((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 M.useMemo(()=>({children:n,register:c,unregister:l,onStart:f,onStop:h,wait:p,chains:g}),[c,l,n,f,h,g,p])}function tz(){}let rz=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function Py(e){var t;let r={};for(let n of rz)r[n]=(t=e[n])!=null?t:tz;return r}function nz(e){let t=M.useRef(Py(e));return M.useEffect(()=>{t.current=Py(e)},[e]),t}let iz="div",e1=Zx.RenderStrategy;function oz(e,t){var r,n;let{beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c,enter:u,enterFrom:p,enterTo:g,entered:f,leave:h,leaveFrom:b,leaveTo:S,...v}=e,y=M.useRef(null),m=Kx(y,t),w=(r=v.unmount)==null||r?ii.Unmount:ii.Hidden,{show:x,appear:k,initial:E}=Q5(),[R,F]=M.useState(x?"visible":"hidden"),P=ez(),{register:$,unregister:V}=P;M.useEffect(()=>$(y),[$,y]),M.useEffect(()=>{if(w===ii.Hidden&&y.current){if(x&&R!=="visible"){F("visible");return}return fn(R,{hidden:()=>V(y),visible:()=>$(y)})}},[R,y,$,V,x,w]);let z=So({base:ei(v.className),enter:ei(u),enterFrom:ei(p),enterTo:ei(g),entered:ei(f),leave:ei(h),leaveFrom:ei(b),leaveTo:ei(S)}),I=nz({beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c}),j=Gx();M.useEffect(()=>{if(j&&R==="visible"&&y.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[y,R,j]);let W=E&&!k,N=k&&x&&E,Y=!j||W?"idle":x?"enter":"leave",X=G5(0),K=Nn(J=>fn(J,{enter:()=>{X.addFlag(Pn.Opening),I.current.beforeEnter()},leave:()=>{X.addFlag(Pn.Closing),I.current.beforeLeave()},idle:()=>{}})),ge=Nn(J=>fn(J,{enter:()=>{X.removeFlag(Pn.Opening),I.current.afterEnter()},leave:()=>{X.removeFlag(Pn.Closing),I.current.afterLeave()},idle:()=>{}})),D=Qx(()=>{F("hidden"),V(y)},P),U=M.useRef(!1);X5({immediate:N,container:y,classes:z,direction:Y,onStart:So(J=>{U.current=!0,D.onStart(y,J,K)}),onStop:So(J=>{U.current=!1,D.onStop(y,J,ge),J==="leave"&&!Fc(D)&&(F("hidden"),V(y))})});let ee=v,te={ref:m};return N?ee={...ee,className:mc(v.className,...z.current.enter,...z.current.enterFrom)}:U.current&&(ee.className=mc(v.className,(n=y.current)==null?void 0:n.className),ee.className===""&&delete ee.className),M.createElement(jc.Provider,{value:D},M.createElement(V5,{value:fn(R,{visible:Pn.Open,hidden:Pn.Closed})|X.flags},Yx({ourProps:te,theirProps:ee,defaultTag:iz,features:e1,visible:R==="visible",name:"Transition.Child"})))}function az(e,t){let{show:r,appear:n=!1,unmount:o=!0,...a}=e,l=M.useRef(null),c=Kx(l,t);Gx();let u=Jx();if(r===void 0&&u!==null&&(r=(u&Pn.Open)===Pn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,g]=M.useState(r?"visible":"hidden"),f=Qx(()=>{g("hidden")}),[h,b]=M.useState(!0),S=M.useRef([r]);ts(()=>{h!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),b(!1))},[S,r]);let v=M.useMemo(()=>({show:r,appear:n,initial:h}),[r,n,h]);M.useEffect(()=>{if(r)g("visible");else if(!Fc(f))g("hidden");else{let x=l.current;if(!x)return;let k=x.getBoundingClientRect();k.x===0&&k.y===0&&k.width===0&&k.height===0&&g("hidden")}},[r,f]);let y={unmount:o},m=Nn(()=>{var x;h&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=Nn(()=>{var x;h&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return M.createElement(jc.Provider,{value:f},M.createElement(zc.Provider,{value:v},Yx({ourProps:{...y,as:M.Fragment,children:M.createElement(t1,{ref:c,...y,...a,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:M.Fragment,features:e1,visible:p==="visible",name:"Transition"})))}function sz(e,t){let r=M.useContext(zc)!==null,n=Jx()!==null;return M.createElement(M.Fragment,null,!r&&n?M.createElement(If,{ref:t,...e}):M.createElement(t1,{ref:t,...e}))}let If=Ap(az),t1=Ap(oz),lz=Ap(sz),bc=Object.assign(If,{Child:lz,Root:If});var La={exports:{}};/**
176
223
  * @license
177
224
  * Lodash <https://lodash.com/>
178
225
  * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
179
226
  * Released under MIT license <https://lodash.com/license>
180
227
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
181
228
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
182
- */var SI=xo.exports,_m;function EI(){return _m||(_m=1,(function(e,t){(function(){var r,i="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",u="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",m=500,g="__lodash_placeholder__",h=1,d=2,y=4,x=1,p=2,w=1,v=2,S=4,E=8,R=16,T=32,k=64,U=128,D=256,N=512,G=30,j="...",M=800,W=16,q=1,C=2,J=3,Y=1/0,te=9007199254740991,de=17976931348623157e292,Z=NaN,Q=4294967295,se=Q-1,ue=Q>>>1,ne=[["ary",U],["bind",w],["bindKey",v],["curry",E],["curryRight",R],["flip",N],["partial",T],["partialRight",k],["rearg",D]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",Oe="[object DOMException]",Ye="[object Error]",ie="[object Function]",bt="[object GeneratorFunction]",ft="[object Map]",br="[object Number]",Xo="[object Null]",Kt="[object Object]",Jo="[object Promise]",iu="[object Proxy]",Nt="[object RegExp]",wt="[object Set]",Jr="[object String]",_n="[object Symbol]",Ii="[object Undefined]",Qr="[object WeakMap]",Qo="[object WeakSet]",en="[object ArrayBuffer]",Mr="[object DataView]",ou="[object Float32Array]",su="[object Float64Array]",au="[object Int8Array]",uu="[object Int16Array]",lu="[object Int32Array]",cu="[object Uint8Array]",fu="[object Uint8ClampedArray]",du="[object Uint16Array]",pu="[object Uint32Array]",lb=/\b__p \+= '';/g,cb=/\b(__p \+=) '' \+/g,fb=/(__e\(.*?\)|\b__t\)) \+\n'';/g,qf=/&(?:amp|lt|gt|quot|#39);/g,Zf=/[&<>"']/g,db=RegExp(qf.source),pb=RegExp(Zf.source),hb=/<%-([\s\S]+?)%>/g,gb=/<%([\s\S]+?)%>/g,Gf=/<%=([\s\S]+?)%>/g,mb=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,vb=/^\w*$/,yb=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,hu=/[\\^$.*+?()[\]{}|]/g,bb=RegExp(hu.source),gu=/^\s+/,wb=/\s/,xb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Sb=/\{\n\/\* \[wrapped with (.+)\] \*/,Eb=/,? & /,_b=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Tb=/[()=,{}\[\]\/\s]/,Ob=/\\(\\)?/g,Ab=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Vf=/\w*$/,Rb=/^[-+]0x[0-9a-f]+$/i,Pb=/^0b[01]+$/i,Cb=/^\[object .+?Constructor\]$/,kb=/^0o[0-7]+$/i,Ib=/^(?:0|[1-9]\d*)$/,$b=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,es=/($^)/,Lb=/['\n\r\u2028\u2029\\]/g,ts="\\ud800-\\udfff",Mb="\\u0300-\\u036f",Db="\\ufe20-\\ufe2f",Nb="\\u20d0-\\u20ff",Kf=Mb+Db+Nb,Yf="\\u2700-\\u27bf",Xf="a-z\\xdf-\\xf6\\xf8-\\xff",Fb="\\xac\\xb1\\xd7\\xf7",jb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",zb="\\u2000-\\u206f",Bb=" \\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",Jf="A-Z\\xc0-\\xd6\\xd8-\\xde",Qf="\\ufe0e\\ufe0f",ed=Fb+jb+zb+Bb,mu="['’]",Ub="["+ts+"]",td="["+ed+"]",rs="["+Kf+"]",rd="\\d+",Wb="["+Yf+"]",nd="["+Xf+"]",id="[^"+ts+ed+rd+Yf+Xf+Jf+"]",vu="\\ud83c[\\udffb-\\udfff]",Hb="(?:"+rs+"|"+vu+")",od="[^"+ts+"]",yu="(?:\\ud83c[\\udde6-\\uddff]){2}",bu="[\\ud800-\\udbff][\\udc00-\\udfff]",ei="["+Jf+"]",sd="\\u200d",ad="(?:"+nd+"|"+id+")",qb="(?:"+ei+"|"+id+")",ud="(?:"+mu+"(?:d|ll|m|re|s|t|ve))?",ld="(?:"+mu+"(?:D|LL|M|RE|S|T|VE))?",cd=Hb+"?",fd="["+Qf+"]?",Zb="(?:"+sd+"(?:"+[od,yu,bu].join("|")+")"+fd+cd+")*",Gb="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Vb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",dd=fd+cd+Zb,Kb="(?:"+[Wb,yu,bu].join("|")+")"+dd,Yb="(?:"+[od+rs+"?",rs,yu,bu,Ub].join("|")+")",Xb=RegExp(mu,"g"),Jb=RegExp(rs,"g"),wu=RegExp(vu+"(?="+vu+")|"+Yb+dd,"g"),Qb=RegExp([ei+"?"+nd+"+"+ud+"(?="+[td,ei,"$"].join("|")+")",qb+"+"+ld+"(?="+[td,ei+ad,"$"].join("|")+")",ei+"?"+ad+"+"+ud,ei+"+"+ld,Vb,Gb,rd,Kb].join("|"),"g"),ew=RegExp("["+sd+ts+Kf+Qf+"]"),tw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rw=["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"],nw=-1,He={};He[ou]=He[su]=He[au]=He[uu]=He[lu]=He[cu]=He[fu]=He[du]=He[pu]=!0,He[ce]=He[fe]=He[en]=He[me]=He[Mr]=He[Ee]=He[Ye]=He[ie]=He[ft]=He[br]=He[Kt]=He[Nt]=He[wt]=He[Jr]=He[Qr]=!1;var Ue={};Ue[ce]=Ue[fe]=Ue[en]=Ue[Mr]=Ue[me]=Ue[Ee]=Ue[ou]=Ue[su]=Ue[au]=Ue[uu]=Ue[lu]=Ue[ft]=Ue[br]=Ue[Kt]=Ue[Nt]=Ue[wt]=Ue[Jr]=Ue[_n]=Ue[cu]=Ue[fu]=Ue[du]=Ue[pu]=!0,Ue[Ye]=Ue[ie]=Ue[Qr]=!1;var iw={À:"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"},ow={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sw={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},aw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uw=parseFloat,lw=parseInt,pd=typeof Ws=="object"&&Ws&&Ws.Object===Object&&Ws,cw=typeof self=="object"&&self&&self.Object===Object&&self,ht=pd||cw||Function("return this")(),xu=t&&!t.nodeType&&t,Tn=xu&&!0&&e&&!e.nodeType&&e,hd=Tn&&Tn.exports===xu,Su=hd&&pd.process,Yt=(function(){try{var F=Tn&&Tn.require&&Tn.require("util").types;return F||Su&&Su.binding&&Su.binding("util")}catch{}})(),gd=Yt&&Yt.isArrayBuffer,md=Yt&&Yt.isDate,vd=Yt&&Yt.isMap,yd=Yt&&Yt.isRegExp,bd=Yt&&Yt.isSet,wd=Yt&&Yt.isTypedArray;function Ft(F,V,H){switch(H.length){case 0:return F.call(V);case 1:return F.call(V,H[0]);case 2:return F.call(V,H[0],H[1]);case 3:return F.call(V,H[0],H[1],H[2])}return F.apply(V,H)}function fw(F,V,H,ae){for(var be=-1,Ce=F==null?0:F.length;++be<Ce;){var ut=F[be];V(ae,ut,H(ut),F)}return ae}function Xt(F,V){for(var H=-1,ae=F==null?0:F.length;++H<ae&&V(F[H],H,F)!==!1;);return F}function dw(F,V){for(var H=F==null?0:F.length;H--&&V(F[H],H,F)!==!1;);return F}function xd(F,V){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(!V(F[H],H,F))return!1;return!0}function tn(F,V){for(var H=-1,ae=F==null?0:F.length,be=0,Ce=[];++H<ae;){var ut=F[H];V(ut,H,F)&&(Ce[be++]=ut)}return Ce}function ns(F,V){var H=F==null?0:F.length;return!!H&&ti(F,V,0)>-1}function Eu(F,V,H){for(var ae=-1,be=F==null?0:F.length;++ae<be;)if(H(V,F[ae]))return!0;return!1}function Ze(F,V){for(var H=-1,ae=F==null?0:F.length,be=Array(ae);++H<ae;)be[H]=V(F[H],H,F);return be}function rn(F,V){for(var H=-1,ae=V.length,be=F.length;++H<ae;)F[be+H]=V[H];return F}function _u(F,V,H,ae){var be=-1,Ce=F==null?0:F.length;for(ae&&Ce&&(H=F[++be]);++be<Ce;)H=V(H,F[be],be,F);return H}function pw(F,V,H,ae){var be=F==null?0:F.length;for(ae&&be&&(H=F[--be]);be--;)H=V(H,F[be],be,F);return H}function Tu(F,V){for(var H=-1,ae=F==null?0:F.length;++H<ae;)if(V(F[H],H,F))return!0;return!1}var hw=Ou("length");function gw(F){return F.split("")}function mw(F){return F.match(_b)||[]}function Sd(F,V,H){var ae;return H(F,function(be,Ce,ut){if(V(be,Ce,ut))return ae=Ce,!1}),ae}function is(F,V,H,ae){for(var be=F.length,Ce=H+(ae?1:-1);ae?Ce--:++Ce<be;)if(V(F[Ce],Ce,F))return Ce;return-1}function ti(F,V,H){return V===V?Rw(F,V,H):is(F,Ed,H)}function vw(F,V,H,ae){for(var be=H-1,Ce=F.length;++be<Ce;)if(ae(F[be],V))return be;return-1}function Ed(F){return F!==F}function _d(F,V){var H=F==null?0:F.length;return H?Ru(F,V)/H:Z}function Ou(F){return function(V){return V==null?r:V[F]}}function Au(F){return function(V){return F==null?r:F[V]}}function Td(F,V,H,ae,be){return be(F,function(Ce,ut,Be){H=ae?(ae=!1,Ce):V(H,Ce,ut,Be)}),H}function yw(F,V){var H=F.length;for(F.sort(V);H--;)F[H]=F[H].value;return F}function Ru(F,V){for(var H,ae=-1,be=F.length;++ae<be;){var Ce=V(F[ae]);Ce!==r&&(H=H===r?Ce:H+Ce)}return H}function Pu(F,V){for(var H=-1,ae=Array(F);++H<F;)ae[H]=V(H);return ae}function bw(F,V){return Ze(V,function(H){return[H,F[H]]})}function Od(F){return F&&F.slice(0,Cd(F)+1).replace(gu,"")}function jt(F){return function(V){return F(V)}}function Cu(F,V){return Ze(V,function(H){return F[H]})}function $i(F,V){return F.has(V)}function Ad(F,V){for(var H=-1,ae=F.length;++H<ae&&ti(V,F[H],0)>-1;);return H}function Rd(F,V){for(var H=F.length;H--&&ti(V,F[H],0)>-1;);return H}function ww(F,V){for(var H=F.length,ae=0;H--;)F[H]===V&&++ae;return ae}var xw=Au(iw),Sw=Au(ow);function Ew(F){return"\\"+aw[F]}function _w(F,V){return F==null?r:F[V]}function ri(F){return ew.test(F)}function Tw(F){return tw.test(F)}function Ow(F){for(var V,H=[];!(V=F.next()).done;)H.push(V.value);return H}function ku(F){var V=-1,H=Array(F.size);return F.forEach(function(ae,be){H[++V]=[be,ae]}),H}function Pd(F,V){return function(H){return F(V(H))}}function nn(F,V){for(var H=-1,ae=F.length,be=0,Ce=[];++H<ae;){var ut=F[H];(ut===V||ut===g)&&(F[H]=g,Ce[be++]=H)}return Ce}function os(F){var V=-1,H=Array(F.size);return F.forEach(function(ae){H[++V]=ae}),H}function Aw(F){var V=-1,H=Array(F.size);return F.forEach(function(ae){H[++V]=[ae,ae]}),H}function Rw(F,V,H){for(var ae=H-1,be=F.length;++ae<be;)if(F[ae]===V)return ae;return-1}function Pw(F,V,H){for(var ae=H+1;ae--;)if(F[ae]===V)return ae;return ae}function ni(F){return ri(F)?kw(F):hw(F)}function cr(F){return ri(F)?Iw(F):gw(F)}function Cd(F){for(var V=F.length;V--&&wb.test(F.charAt(V)););return V}var Cw=Au(sw);function kw(F){for(var V=wu.lastIndex=0;wu.test(F);)++V;return V}function Iw(F){return F.match(wu)||[]}function $w(F){return F.match(Qb)||[]}var Lw=(function F(V){V=V==null?ht:ii.defaults(ht.Object(),V,ii.pick(ht,rw));var H=V.Array,ae=V.Date,be=V.Error,Ce=V.Function,ut=V.Math,Be=V.Object,Iu=V.RegExp,Mw=V.String,Jt=V.TypeError,ss=H.prototype,Dw=Ce.prototype,oi=Be.prototype,as=V["__core-js_shared__"],us=Dw.toString,Fe=oi.hasOwnProperty,Nw=0,kd=(function(){var n=/[^.]+$/.exec(as&&as.keys&&as.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),ls=oi.toString,Fw=us.call(Be),jw=ht._,zw=Iu("^"+us.call(Fe).replace(hu,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),cs=hd?V.Buffer:r,on=V.Symbol,fs=V.Uint8Array,Id=cs?cs.allocUnsafe:r,ds=Pd(Be.getPrototypeOf,Be),$d=Be.create,Ld=oi.propertyIsEnumerable,ps=ss.splice,Md=on?on.isConcatSpreadable:r,Li=on?on.iterator:r,On=on?on.toStringTag:r,hs=(function(){try{var n=kn(Be,"defineProperty");return n({},"",{}),n}catch{}})(),Bw=V.clearTimeout!==ht.clearTimeout&&V.clearTimeout,Uw=ae&&ae.now!==ht.Date.now&&ae.now,Ww=V.setTimeout!==ht.setTimeout&&V.setTimeout,gs=ut.ceil,ms=ut.floor,$u=Be.getOwnPropertySymbols,Hw=cs?cs.isBuffer:r,Dd=V.isFinite,qw=ss.join,Zw=Pd(Be.keys,Be),lt=ut.max,xt=ut.min,Gw=ae.now,Vw=V.parseInt,Nd=ut.random,Kw=ss.reverse,Lu=kn(V,"DataView"),Mi=kn(V,"Map"),Mu=kn(V,"Promise"),si=kn(V,"Set"),Di=kn(V,"WeakMap"),Ni=kn(Be,"create"),vs=Di&&new Di,ai={},Yw=In(Lu),Xw=In(Mi),Jw=In(Mu),Qw=In(si),e1=In(Di),ys=on?on.prototype:r,Fi=ys?ys.valueOf:r,Fd=ys?ys.toString:r;function O(n){if(tt(n)&&!we(n)&&!(n instanceof Ae)){if(n instanceof Qt)return n;if(Fe.call(n,"__wrapped__"))return jp(n)}return new Qt(n)}var ui=(function(){function n(){}return function(o){if(!Xe(o))return{};if($d)return $d(o);n.prototype=o;var l=new n;return n.prototype=r,l}})();function bs(){}function Qt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}O.templateSettings={escape:hb,evaluate:gb,interpolate:Gf,variable:"",imports:{_:O}},O.prototype=bs.prototype,O.prototype.constructor=O,Qt.prototype=ui(bs.prototype),Qt.prototype.constructor=Qt;function Ae(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function t1(){var n=new Ae(this.__wrapped__);return n.__actions__=kt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=kt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=kt(this.__views__),n}function r1(){if(this.__filtered__){var n=new Ae(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function n1(){var n=this.__wrapped__.value(),o=this.__dir__,l=we(n),b=o<0,_=l?n.length:0,A=gx(0,_,this.__views__),P=A.start,L=A.end,B=L-P,K=b?L:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=xt(B,this.__takeCount__);if(!l||!b&&_==B&&le==B)return up(n,this.__actions__);var he=[];e:for(;B--&&oe<le;){K+=o;for(var Se=-1,ge=n[K];++Se<ee;){var Te=X[Se],Re=Te.iteratee,Ut=Te.type,Rt=Re(ge);if(Ut==C)ge=Rt;else if(!Rt){if(Ut==q)continue e;break e}}he[oe++]=ge}return he}Ae.prototype=ui(bs.prototype),Ae.prototype.constructor=Ae;function An(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function i1(){this.__data__=Ni?Ni(null):{},this.size=0}function o1(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function s1(n){var o=this.__data__;if(Ni){var l=o[n];return l===f?r:l}return Fe.call(o,n)?o[n]:r}function a1(n){var o=this.__data__;return Ni?o[n]!==r:Fe.call(o,n)}function u1(n,o){var l=this.__data__;return this.size+=this.has(n)?0:1,l[n]=Ni&&o===r?f:o,this}An.prototype.clear=i1,An.prototype.delete=o1,An.prototype.get=s1,An.prototype.has=a1,An.prototype.set=u1;function Dr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function l1(){this.__data__=[],this.size=0}function c1(n){var o=this.__data__,l=ws(o,n);if(l<0)return!1;var b=o.length-1;return l==b?o.pop():ps.call(o,l,1),--this.size,!0}function f1(n){var o=this.__data__,l=ws(o,n);return l<0?r:o[l][1]}function d1(n){return ws(this.__data__,n)>-1}function p1(n,o){var l=this.__data__,b=ws(l,n);return b<0?(++this.size,l.push([n,o])):l[b][1]=o,this}Dr.prototype.clear=l1,Dr.prototype.delete=c1,Dr.prototype.get=f1,Dr.prototype.has=d1,Dr.prototype.set=p1;function Nr(n){var o=-1,l=n==null?0:n.length;for(this.clear();++o<l;){var b=n[o];this.set(b[0],b[1])}}function h1(){this.size=0,this.__data__={hash:new An,map:new(Mi||Dr),string:new An}}function g1(n){var o=Is(this,n).delete(n);return this.size-=o?1:0,o}function m1(n){return Is(this,n).get(n)}function v1(n){return Is(this,n).has(n)}function y1(n,o){var l=Is(this,n),b=l.size;return l.set(n,o),this.size+=l.size==b?0:1,this}Nr.prototype.clear=h1,Nr.prototype.delete=g1,Nr.prototype.get=m1,Nr.prototype.has=v1,Nr.prototype.set=y1;function Rn(n){var o=-1,l=n==null?0:n.length;for(this.__data__=new Nr;++o<l;)this.add(n[o])}function b1(n){return this.__data__.set(n,f),this}function w1(n){return this.__data__.has(n)}Rn.prototype.add=Rn.prototype.push=b1,Rn.prototype.has=w1;function fr(n){var o=this.__data__=new Dr(n);this.size=o.size}function x1(){this.__data__=new Dr,this.size=0}function S1(n){var o=this.__data__,l=o.delete(n);return this.size=o.size,l}function E1(n){return this.__data__.get(n)}function _1(n){return this.__data__.has(n)}function T1(n,o){var l=this.__data__;if(l instanceof Dr){var b=l.__data__;if(!Mi||b.length<s-1)return b.push([n,o]),this.size=++l.size,this;l=this.__data__=new Nr(b)}return l.set(n,o),this.size=l.size,this}fr.prototype.clear=x1,fr.prototype.delete=S1,fr.prototype.get=E1,fr.prototype.has=_1,fr.prototype.set=T1;function jd(n,o){var l=we(n),b=!l&&$n(n),_=!l&&!b&&cn(n),A=!l&&!b&&!_&&di(n),P=l||b||_||A,L=P?Pu(n.length,Mw):[],B=L.length;for(var K in n)(o||Fe.call(n,K))&&!(P&&(K=="length"||_&&(K=="offset"||K=="parent")||A&&(K=="buffer"||K=="byteLength"||K=="byteOffset")||Br(K,B)))&&L.push(K);return L}function zd(n){var o=n.length;return o?n[Zu(0,o-1)]:r}function O1(n,o){return $s(kt(n),Pn(o,0,n.length))}function A1(n){return $s(kt(n))}function Du(n,o,l){(l!==r&&!dr(n[o],l)||l===r&&!(o in n))&&Fr(n,o,l)}function ji(n,o,l){var b=n[o];(!(Fe.call(n,o)&&dr(b,l))||l===r&&!(o in n))&&Fr(n,o,l)}function ws(n,o){for(var l=n.length;l--;)if(dr(n[l][0],o))return l;return-1}function R1(n,o,l,b){return sn(n,function(_,A,P){o(b,_,l(_),P)}),b}function Bd(n,o){return n&&xr(o,dt(o),n)}function P1(n,o){return n&&xr(o,$t(o),n)}function Fr(n,o,l){o=="__proto__"&&hs?hs(n,o,{configurable:!0,enumerable:!0,value:l,writable:!0}):n[o]=l}function Nu(n,o){for(var l=-1,b=o.length,_=H(b),A=n==null;++l<b;)_[l]=A?r:vl(n,o[l]);return _}function Pn(n,o,l){return n===n&&(l!==r&&(n=n<=l?n:l),o!==r&&(n=n>=o?n:o)),n}function er(n,o,l,b,_,A){var P,L=o&h,B=o&d,K=o&y;if(l&&(P=_?l(n,b,_,A):l(n)),P!==r)return P;if(!Xe(n))return n;var X=we(n);if(X){if(P=vx(n),!L)return kt(n,P)}else{var ee=St(n),oe=ee==ie||ee==bt;if(cn(n))return fp(n,L);if(ee==Kt||ee==ce||oe&&!_){if(P=B||oe?{}:Cp(n),!L)return B?sx(n,P1(P,n)):ox(n,Bd(P,n))}else{if(!Ue[ee])return _?n:{};P=yx(n,ee,L)}}A||(A=new fr);var le=A.get(n);if(le)return le;A.set(n,P),oh(n)?n.forEach(function(ge){P.add(er(ge,o,l,ge,n,A))}):nh(n)&&n.forEach(function(ge,Te){P.set(Te,er(ge,o,l,Te,n,A))});var he=K?B?nl:rl:B?$t:dt,Se=X?r:he(n);return Xt(Se||n,function(ge,Te){Se&&(Te=ge,ge=n[Te]),ji(P,Te,er(ge,o,l,Te,n,A))}),P}function C1(n){var o=dt(n);return function(l){return Ud(l,n,o)}}function Ud(n,o,l){var b=l.length;if(n==null)return!b;for(n=Be(n);b--;){var _=l[b],A=o[_],P=n[_];if(P===r&&!(_ in n)||!A(P))return!1}return!0}function Wd(n,o,l){if(typeof n!="function")throw new Jt(u);return Zi(function(){n.apply(r,l)},o)}function zi(n,o,l,b){var _=-1,A=ns,P=!0,L=n.length,B=[],K=o.length;if(!L)return B;l&&(o=Ze(o,jt(l))),b?(A=Eu,P=!1):o.length>=s&&(A=$i,P=!1,o=new Rn(o));e:for(;++_<L;){var X=n[_],ee=l==null?X:l(X);if(X=b||X!==0?X:0,P&&ee===ee){for(var oe=K;oe--;)if(o[oe]===ee)continue e;B.push(X)}else A(o,ee,b)||B.push(X)}return B}var sn=mp(wr),Hd=mp(ju,!0);function k1(n,o){var l=!0;return sn(n,function(b,_,A){return l=!!o(b,_,A),l}),l}function xs(n,o,l){for(var b=-1,_=n.length;++b<_;){var A=n[b],P=o(A);if(P!=null&&(L===r?P===P&&!Bt(P):l(P,L)))var L=P,B=A}return B}function I1(n,o,l,b){var _=n.length;for(l=xe(l),l<0&&(l=-l>_?0:_+l),b=b===r||b>_?_:xe(b),b<0&&(b+=_),b=l>b?0:ah(b);l<b;)n[l++]=o;return n}function qd(n,o){var l=[];return sn(n,function(b,_,A){o(b,_,A)&&l.push(b)}),l}function gt(n,o,l,b,_){var A=-1,P=n.length;for(l||(l=wx),_||(_=[]);++A<P;){var L=n[A];o>0&&l(L)?o>1?gt(L,o-1,l,b,_):rn(_,L):b||(_[_.length]=L)}return _}var Fu=vp(),Zd=vp(!0);function wr(n,o){return n&&Fu(n,o,dt)}function ju(n,o){return n&&Zd(n,o,dt)}function Ss(n,o){return tn(o,function(l){return Ur(n[l])})}function Cn(n,o){o=un(o,n);for(var l=0,b=o.length;n!=null&&l<b;)n=n[Sr(o[l++])];return l&&l==b?n:r}function Gd(n,o,l){var b=o(n);return we(n)?b:rn(b,l(n))}function Ot(n){return n==null?n===r?Ii:Xo:On&&On in Be(n)?hx(n):Ax(n)}function zu(n,o){return n>o}function $1(n,o){return n!=null&&Fe.call(n,o)}function L1(n,o){return n!=null&&o in Be(n)}function M1(n,o,l){return n>=xt(o,l)&&n<lt(o,l)}function Bu(n,o,l){for(var b=l?Eu:ns,_=n[0].length,A=n.length,P=A,L=H(A),B=1/0,K=[];P--;){var X=n[P];P&&o&&(X=Ze(X,jt(o))),B=xt(X.length,B),L[P]=!l&&(o||_>=120&&X.length>=120)?new Rn(P&&X):r}X=n[0];var ee=-1,oe=L[0];e:for(;++ee<_&&K.length<B;){var le=X[ee],he=o?o(le):le;if(le=l||le!==0?le:0,!(oe?$i(oe,he):b(K,he,l))){for(P=A;--P;){var Se=L[P];if(!(Se?$i(Se,he):b(n[P],he,l)))continue e}oe&&oe.push(he),K.push(le)}}return K}function D1(n,o,l,b){return wr(n,function(_,A,P){o(b,l(_),A,P)}),b}function Bi(n,o,l){o=un(o,n),n=Lp(n,o);var b=n==null?n:n[Sr(rr(o))];return b==null?r:Ft(b,n,l)}function Vd(n){return tt(n)&&Ot(n)==ce}function N1(n){return tt(n)&&Ot(n)==en}function F1(n){return tt(n)&&Ot(n)==Ee}function Ui(n,o,l,b,_){return n===o?!0:n==null||o==null||!tt(n)&&!tt(o)?n!==n&&o!==o:j1(n,o,l,b,Ui,_)}function j1(n,o,l,b,_,A){var P=we(n),L=we(o),B=P?fe:St(n),K=L?fe:St(o);B=B==ce?Kt:B,K=K==ce?Kt:K;var X=B==Kt,ee=K==Kt,oe=B==K;if(oe&&cn(n)){if(!cn(o))return!1;P=!0,X=!1}if(oe&&!X)return A||(A=new fr),P||di(n)?Ap(n,o,l,b,_,A):dx(n,o,B,l,b,_,A);if(!(l&x)){var le=X&&Fe.call(n,"__wrapped__"),he=ee&&Fe.call(o,"__wrapped__");if(le||he){var Se=le?n.value():n,ge=he?o.value():o;return A||(A=new fr),_(Se,ge,l,b,A)}}return oe?(A||(A=new fr),px(n,o,l,b,_,A)):!1}function z1(n){return tt(n)&&St(n)==ft}function Uu(n,o,l,b){var _=l.length,A=_,P=!b;if(n==null)return!A;for(n=Be(n);_--;){var L=l[_];if(P&&L[2]?L[1]!==n[L[0]]:!(L[0]in n))return!1}for(;++_<A;){L=l[_];var B=L[0],K=n[B],X=L[1];if(P&&L[2]){if(K===r&&!(B in n))return!1}else{var ee=new fr;if(b)var oe=b(K,X,B,n,o,ee);if(!(oe===r?Ui(X,K,x|p,b,ee):oe))return!1}}return!0}function Kd(n){if(!Xe(n)||Sx(n))return!1;var o=Ur(n)?zw:Cb;return o.test(In(n))}function B1(n){return tt(n)&&Ot(n)==Nt}function U1(n){return tt(n)&&St(n)==wt}function W1(n){return tt(n)&&js(n.length)&&!!He[Ot(n)]}function Yd(n){return typeof n=="function"?n:n==null?Lt:typeof n=="object"?we(n)?Qd(n[0],n[1]):Jd(n):yh(n)}function Wu(n){if(!qi(n))return Zw(n);var o=[];for(var l in Be(n))Fe.call(n,l)&&l!="constructor"&&o.push(l);return o}function H1(n){if(!Xe(n))return Ox(n);var o=qi(n),l=[];for(var b in n)b=="constructor"&&(o||!Fe.call(n,b))||l.push(b);return l}function Hu(n,o){return n<o}function Xd(n,o){var l=-1,b=It(n)?H(n.length):[];return sn(n,function(_,A,P){b[++l]=o(_,A,P)}),b}function Jd(n){var o=ol(n);return o.length==1&&o[0][2]?Ip(o[0][0],o[0][1]):function(l){return l===n||Uu(l,n,o)}}function Qd(n,o){return al(n)&&kp(o)?Ip(Sr(n),o):function(l){var b=vl(l,n);return b===r&&b===o?yl(l,n):Ui(o,b,x|p)}}function Es(n,o,l,b,_){n!==o&&Fu(o,function(A,P){if(_||(_=new fr),Xe(A))q1(n,o,P,l,Es,b,_);else{var L=b?b(ll(n,P),A,P+"",n,o,_):r;L===r&&(L=A),Du(n,P,L)}},$t)}function q1(n,o,l,b,_,A,P){var L=ll(n,l),B=ll(o,l),K=P.get(B);if(K){Du(n,l,K);return}var X=A?A(L,B,l+"",n,o,P):r,ee=X===r;if(ee){var oe=we(B),le=!oe&&cn(B),he=!oe&&!le&&di(B);X=B,oe||le||he?we(L)?X=L:nt(L)?X=kt(L):le?(ee=!1,X=fp(B,!0)):he?(ee=!1,X=dp(B,!0)):X=[]:Gi(B)||$n(B)?(X=L,$n(L)?X=uh(L):(!Xe(L)||Ur(L))&&(X=Cp(B))):ee=!1}ee&&(P.set(B,X),_(X,B,b,A,P),P.delete(B)),Du(n,l,X)}function ep(n,o){var l=n.length;if(l)return o+=o<0?l:0,Br(o,l)?n[o]:r}function tp(n,o,l){o.length?o=Ze(o,function(A){return we(A)?function(P){return Cn(P,A.length===1?A[0]:A)}:A}):o=[Lt];var b=-1;o=Ze(o,jt(pe()));var _=Xd(n,function(A,P,L){var B=Ze(o,function(K){return K(A)});return{criteria:B,index:++b,value:A}});return yw(_,function(A,P){return ix(A,P,l)})}function Z1(n,o){return rp(n,o,function(l,b){return yl(n,b)})}function rp(n,o,l){for(var b=-1,_=o.length,A={};++b<_;){var P=o[b],L=Cn(n,P);l(L,P)&&Wi(A,un(P,n),L)}return A}function G1(n){return function(o){return Cn(o,n)}}function qu(n,o,l,b){var _=b?vw:ti,A=-1,P=o.length,L=n;for(n===o&&(o=kt(o)),l&&(L=Ze(n,jt(l)));++A<P;)for(var B=0,K=o[A],X=l?l(K):K;(B=_(L,X,B,b))>-1;)L!==n&&ps.call(L,B,1),ps.call(n,B,1);return n}function np(n,o){for(var l=n?o.length:0,b=l-1;l--;){var _=o[l];if(l==b||_!==A){var A=_;Br(_)?ps.call(n,_,1):Ku(n,_)}}return n}function Zu(n,o){return n+ms(Nd()*(o-n+1))}function V1(n,o,l,b){for(var _=-1,A=lt(gs((o-n)/(l||1)),0),P=H(A);A--;)P[b?A:++_]=n,n+=l;return P}function Gu(n,o){var l="";if(!n||o<1||o>te)return l;do o%2&&(l+=n),o=ms(o/2),o&&(n+=n);while(o);return l}function _e(n,o){return cl($p(n,o,Lt),n+"")}function K1(n){return zd(pi(n))}function Y1(n,o){var l=pi(n);return $s(l,Pn(o,0,l.length))}function Wi(n,o,l,b){if(!Xe(n))return n;o=un(o,n);for(var _=-1,A=o.length,P=A-1,L=n;L!=null&&++_<A;){var B=Sr(o[_]),K=l;if(B==="__proto__"||B==="constructor"||B==="prototype")return n;if(_!=P){var X=L[B];K=b?b(X,B,L):r,K===r&&(K=Xe(X)?X:Br(o[_+1])?[]:{})}ji(L,B,K),L=L[B]}return n}var ip=vs?function(n,o){return vs.set(n,o),n}:Lt,X1=hs?function(n,o){return hs(n,"toString",{configurable:!0,enumerable:!1,value:wl(o),writable:!0})}:Lt;function J1(n){return $s(pi(n))}function tr(n,o,l){var b=-1,_=n.length;o<0&&(o=-o>_?0:_+o),l=l>_?_:l,l<0&&(l+=_),_=o>l?0:l-o>>>0,o>>>=0;for(var A=H(_);++b<_;)A[b]=n[b+o];return A}function Q1(n,o){var l;return sn(n,function(b,_,A){return l=o(b,_,A),!l}),!!l}function _s(n,o,l){var b=0,_=n==null?b:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;b<_;){var A=b+_>>>1,P=n[A];P!==null&&!Bt(P)&&(l?P<=o:P<o)?b=A+1:_=A}return _}return Vu(n,o,Lt,l)}function Vu(n,o,l,b){var _=0,A=n==null?0:n.length;if(A===0)return 0;o=l(o);for(var P=o!==o,L=o===null,B=Bt(o),K=o===r;_<A;){var X=ms((_+A)/2),ee=l(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=Bt(ee);if(P)var ge=b||he;else K?ge=he&&(b||oe):L?ge=he&&oe&&(b||!le):B?ge=he&&oe&&!le&&(b||!Se):le||Se?ge=!1:ge=b?ee<=o:ee<o;ge?_=X+1:A=X}return xt(A,se)}function op(n,o){for(var l=-1,b=n.length,_=0,A=[];++l<b;){var P=n[l],L=o?o(P):P;if(!l||!dr(L,B)){var B=L;A[_++]=P===0?0:P}}return A}function sp(n){return typeof n=="number"?n:Bt(n)?Z:+n}function zt(n){if(typeof n=="string")return n;if(we(n))return Ze(n,zt)+"";if(Bt(n))return Fd?Fd.call(n):"";var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function an(n,o,l){var b=-1,_=ns,A=n.length,P=!0,L=[],B=L;if(l)P=!1,_=Eu;else if(A>=s){var K=o?null:cx(n);if(K)return os(K);P=!1,_=$i,B=new Rn}else B=o?[]:L;e:for(;++b<A;){var X=n[b],ee=o?o(X):X;if(X=l||X!==0?X:0,P&&ee===ee){for(var oe=B.length;oe--;)if(B[oe]===ee)continue e;o&&B.push(ee),L.push(X)}else _(B,ee,l)||(B!==L&&B.push(ee),L.push(X))}return L}function Ku(n,o){return o=un(o,n),n=Lp(n,o),n==null||delete n[Sr(rr(o))]}function ap(n,o,l,b){return Wi(n,o,l(Cn(n,o)),b)}function Ts(n,o,l,b){for(var _=n.length,A=b?_:-1;(b?A--:++A<_)&&o(n[A],A,n););return l?tr(n,b?0:A,b?A+1:_):tr(n,b?A+1:0,b?_:A)}function up(n,o){var l=n;return l instanceof Ae&&(l=l.value()),_u(o,function(b,_){return _.func.apply(_.thisArg,rn([b],_.args))},l)}function Yu(n,o,l){var b=n.length;if(b<2)return b?an(n[0]):[];for(var _=-1,A=H(b);++_<b;)for(var P=n[_],L=-1;++L<b;)L!=_&&(A[_]=zi(A[_]||P,n[L],o,l));return an(gt(A,1),o,l)}function lp(n,o,l){for(var b=-1,_=n.length,A=o.length,P={};++b<_;){var L=b<A?o[b]:r;l(P,n[b],L)}return P}function Xu(n){return nt(n)?n:[]}function Ju(n){return typeof n=="function"?n:Lt}function un(n,o){return we(n)?n:al(n,o)?[n]:Fp(Ie(n))}var ex=_e;function ln(n,o,l){var b=n.length;return l=l===r?b:l,!o&&l>=b?n:tr(n,o,l)}var cp=Bw||function(n){return ht.clearTimeout(n)};function fp(n,o){if(o)return n.slice();var l=n.length,b=Id?Id(l):new n.constructor(l);return n.copy(b),b}function Qu(n){var o=new n.constructor(n.byteLength);return new fs(o).set(new fs(n)),o}function tx(n,o){var l=o?Qu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.byteLength)}function rx(n){var o=new n.constructor(n.source,Vf.exec(n));return o.lastIndex=n.lastIndex,o}function nx(n){return Fi?Be(Fi.call(n)):{}}function dp(n,o){var l=o?Qu(n.buffer):n.buffer;return new n.constructor(l,n.byteOffset,n.length)}function pp(n,o){if(n!==o){var l=n!==r,b=n===null,_=n===n,A=Bt(n),P=o!==r,L=o===null,B=o===o,K=Bt(o);if(!L&&!K&&!A&&n>o||A&&P&&B&&!L&&!K||b&&P&&B||!l&&B||!_)return 1;if(!b&&!A&&!K&&n<o||K&&l&&_&&!b&&!A||L&&l&&_||!P&&_||!B)return-1}return 0}function ix(n,o,l){for(var b=-1,_=n.criteria,A=o.criteria,P=_.length,L=l.length;++b<P;){var B=pp(_[b],A[b]);if(B){if(b>=L)return B;var K=l[b];return B*(K=="desc"?-1:1)}}return n.index-o.index}function hp(n,o,l,b){for(var _=-1,A=n.length,P=l.length,L=-1,B=o.length,K=lt(A-P,0),X=H(B+K),ee=!b;++L<B;)X[L]=o[L];for(;++_<P;)(ee||_<A)&&(X[l[_]]=n[_]);for(;K--;)X[L++]=n[_++];return X}function gp(n,o,l,b){for(var _=-1,A=n.length,P=-1,L=l.length,B=-1,K=o.length,X=lt(A-L,0),ee=H(X+K),oe=!b;++_<X;)ee[_]=n[_];for(var le=_;++B<K;)ee[le+B]=o[B];for(;++P<L;)(oe||_<A)&&(ee[le+l[P]]=n[_++]);return ee}function kt(n,o){var l=-1,b=n.length;for(o||(o=H(b));++l<b;)o[l]=n[l];return o}function xr(n,o,l,b){var _=!l;l||(l={});for(var A=-1,P=o.length;++A<P;){var L=o[A],B=b?b(l[L],n[L],L,l,n):r;B===r&&(B=n[L]),_?Fr(l,L,B):ji(l,L,B)}return l}function ox(n,o){return xr(n,sl(n),o)}function sx(n,o){return xr(n,Rp(n),o)}function Os(n,o){return function(l,b){var _=we(l)?fw:R1,A=o?o():{};return _(l,n,pe(b,2),A)}}function li(n){return _e(function(o,l){var b=-1,_=l.length,A=_>1?l[_-1]:r,P=_>2?l[2]:r;for(A=n.length>3&&typeof A=="function"?(_--,A):r,P&&At(l[0],l[1],P)&&(A=_<3?r:A,_=1),o=Be(o);++b<_;){var L=l[b];L&&n(o,L,b,A)}return o})}function mp(n,o){return function(l,b){if(l==null)return l;if(!It(l))return n(l,b);for(var _=l.length,A=o?_:-1,P=Be(l);(o?A--:++A<_)&&b(P[A],A,P)!==!1;);return l}}function vp(n){return function(o,l,b){for(var _=-1,A=Be(o),P=b(o),L=P.length;L--;){var B=P[n?L:++_];if(l(A[B],B,A)===!1)break}return o}}function ax(n,o,l){var b=o&w,_=Hi(n);function A(){var P=this&&this!==ht&&this instanceof A?_:n;return P.apply(b?l:this,arguments)}return A}function yp(n){return function(o){o=Ie(o);var l=ri(o)?cr(o):r,b=l?l[0]:o.charAt(0),_=l?ln(l,1).join(""):o.slice(1);return b[n]()+_}}function ci(n){return function(o){return _u(mh(gh(o).replace(Xb,"")),n,"")}}function Hi(n){return function(){var o=arguments;switch(o.length){case 0:return new n;case 1:return new n(o[0]);case 2:return new n(o[0],o[1]);case 3:return new n(o[0],o[1],o[2]);case 4:return new n(o[0],o[1],o[2],o[3]);case 5:return new n(o[0],o[1],o[2],o[3],o[4]);case 6:return new n(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new n(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var l=ui(n.prototype),b=n.apply(l,o);return Xe(b)?b:l}}function ux(n,o,l){var b=Hi(n);function _(){for(var A=arguments.length,P=H(A),L=A,B=fi(_);L--;)P[L]=arguments[L];var K=A<3&&P[0]!==B&&P[A-1]!==B?[]:nn(P,B);if(A-=K.length,A<l)return Ep(n,o,As,_.placeholder,r,P,K,r,r,l-A);var X=this&&this!==ht&&this instanceof _?b:n;return Ft(X,this,P)}return _}function bp(n){return function(o,l,b){var _=Be(o);if(!It(o)){var A=pe(l,3);o=dt(o),l=function(L){return A(_[L],L,_)}}var P=n(o,l,b);return P>-1?_[A?o[P]:P]:r}}function wp(n){return zr(function(o){var l=o.length,b=l,_=Qt.prototype.thru;for(n&&o.reverse();b--;){var A=o[b];if(typeof A!="function")throw new Jt(u);if(_&&!P&&ks(A)=="wrapper")var P=new Qt([],!0)}for(b=P?b:l;++b<l;){A=o[b];var L=ks(A),B=L=="wrapper"?il(A):r;B&&ul(B[0])&&B[1]==(U|E|T|D)&&!B[4].length&&B[9]==1?P=P[ks(B[0])].apply(P,B[3]):P=A.length==1&&ul(A)?P[L]():P.thru(A)}return function(){var K=arguments,X=K[0];if(P&&K.length==1&&we(X))return P.plant(X).value();for(var ee=0,oe=l?o[ee].apply(this,K):X;++ee<l;)oe=o[ee].call(this,oe);return oe}})}function As(n,o,l,b,_,A,P,L,B,K){var X=o&U,ee=o&w,oe=o&v,le=o&(E|R),he=o&N,Se=oe?r:Hi(n);function ge(){for(var Te=arguments.length,Re=H(Te),Ut=Te;Ut--;)Re[Ut]=arguments[Ut];if(le)var Rt=fi(ge),Wt=ww(Re,Rt);if(b&&(Re=hp(Re,b,_,le)),A&&(Re=gp(Re,A,P,le)),Te-=Wt,le&&Te<K){var it=nn(Re,Rt);return Ep(n,o,As,ge.placeholder,l,Re,it,L,B,K-Te)}var pr=ee?l:this,Hr=oe?pr[n]:n;return Te=Re.length,L?Re=Rx(Re,L):he&&Te>1&&Re.reverse(),X&&B<Te&&(Re.length=B),this&&this!==ht&&this instanceof ge&&(Hr=Se||Hi(Hr)),Hr.apply(pr,Re)}return ge}function xp(n,o){return function(l,b){return D1(l,n,o(b),{})}}function Rs(n,o){return function(l,b){var _;if(l===r&&b===r)return o;if(l!==r&&(_=l),b!==r){if(_===r)return b;typeof l=="string"||typeof b=="string"?(l=zt(l),b=zt(b)):(l=sp(l),b=sp(b)),_=n(l,b)}return _}}function el(n){return zr(function(o){return o=Ze(o,jt(pe())),_e(function(l){var b=this;return n(o,function(_){return Ft(_,b,l)})})})}function Ps(n,o){o=o===r?" ":zt(o);var l=o.length;if(l<2)return l?Gu(o,n):o;var b=Gu(o,gs(n/ni(o)));return ri(o)?ln(cr(b),0,n).join(""):b.slice(0,n)}function lx(n,o,l,b){var _=o&w,A=Hi(n);function P(){for(var L=-1,B=arguments.length,K=-1,X=b.length,ee=H(X+B),oe=this&&this!==ht&&this instanceof P?A:n;++K<X;)ee[K]=b[K];for(;B--;)ee[K++]=arguments[++L];return Ft(oe,_?l:this,ee)}return P}function Sp(n){return function(o,l,b){return b&&typeof b!="number"&&At(o,l,b)&&(l=b=r),o=Wr(o),l===r?(l=o,o=0):l=Wr(l),b=b===r?o<l?1:-1:Wr(b),V1(o,l,b,n)}}function Cs(n){return function(o,l){return typeof o=="string"&&typeof l=="string"||(o=nr(o),l=nr(l)),n(o,l)}}function Ep(n,o,l,b,_,A,P,L,B,K){var X=o&E,ee=X?P:r,oe=X?r:P,le=X?A:r,he=X?r:A;o|=X?T:k,o&=~(X?k:T),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,L,B,K],ge=l.apply(r,Se);return ul(n)&&Mp(ge,Se),ge.placeholder=b,Dp(ge,n,o)}function tl(n){var o=ut[n];return function(l,b){if(l=nr(l),b=b==null?0:xt(xe(b),292),b&&Dd(l)){var _=(Ie(l)+"e").split("e"),A=o(_[0]+"e"+(+_[1]+b));return _=(Ie(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-b))}return o(l)}}var cx=si&&1/os(new si([,-0]))[1]==Y?function(n){return new si(n)}:El;function _p(n){return function(o){var l=St(o);return l==ft?ku(o):l==wt?Aw(o):bw(o,n(o))}}function jr(n,o,l,b,_,A,P,L){var B=o&v;if(!B&&typeof n!="function")throw new Jt(u);var K=b?b.length:0;if(K||(o&=-97,b=_=r),P=P===r?P:lt(xe(P),0),L=L===r?L:xe(L),K-=_?_.length:0,o&k){var X=b,ee=_;b=_=r}var oe=B?r:il(n),le=[n,o,l,b,_,X,ee,A,P,L];if(oe&&Tx(le,oe),n=le[0],o=le[1],l=le[2],b=le[3],_=le[4],L=le[9]=le[9]===r?B?0:n.length:lt(le[9]-K,0),!L&&o&(E|R)&&(o&=-25),!o||o==w)var he=ax(n,o,l);else o==E||o==R?he=ux(n,o,L):(o==T||o==(w|T))&&!_.length?he=lx(n,o,l,b):he=As.apply(r,le);var Se=oe?ip:Mp;return Dp(Se(he,le),n,o)}function Tp(n,o,l,b){return n===r||dr(n,oi[l])&&!Fe.call(b,l)?o:n}function Op(n,o,l,b,_,A){return Xe(n)&&Xe(o)&&(A.set(o,n),Es(n,o,r,Op,A),A.delete(o)),n}function fx(n){return Gi(n)?r:n}function Ap(n,o,l,b,_,A){var P=l&x,L=n.length,B=o.length;if(L!=B&&!(P&&B>L))return!1;var K=A.get(n),X=A.get(o);if(K&&X)return K==o&&X==n;var ee=-1,oe=!0,le=l&p?new Rn:r;for(A.set(n,o),A.set(o,n);++ee<L;){var he=n[ee],Se=o[ee];if(b)var ge=P?b(Se,he,ee,o,n,A):b(he,Se,ee,n,o,A);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!Tu(o,function(Te,Re){if(!$i(le,Re)&&(he===Te||_(he,Te,l,b,A)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,l,b,A))){oe=!1;break}}return A.delete(n),A.delete(o),oe}function dx(n,o,l,b,_,A,P){switch(l){case Mr:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case en:return!(n.byteLength!=o.byteLength||!A(new fs(n),new fs(o)));case me:case Ee:case br:return dr(+n,+o);case Ye:return n.name==o.name&&n.message==o.message;case Nt:case Jr:return n==o+"";case ft:var L=ku;case wt:var B=b&x;if(L||(L=os),n.size!=o.size&&!B)return!1;var K=P.get(n);if(K)return K==o;b|=p,P.set(n,o);var X=Ap(L(n),L(o),b,_,A,P);return P.delete(n),X;case _n:if(Fi)return Fi.call(n)==Fi.call(o)}return!1}function px(n,o,l,b,_,A){var P=l&x,L=rl(n),B=L.length,K=rl(o),X=K.length;if(B!=X&&!P)return!1;for(var ee=B;ee--;){var oe=L[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=A.get(n),he=A.get(o);if(le&&he)return le==o&&he==n;var Se=!0;A.set(n,o),A.set(o,n);for(var ge=P;++ee<B;){oe=L[ee];var Te=n[oe],Re=o[oe];if(b)var Ut=P?b(Re,Te,oe,o,n,A):b(Te,Re,oe,n,o,A);if(!(Ut===r?Te===Re||_(Te,Re,l,b,A):Ut)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var Rt=n.constructor,Wt=o.constructor;Rt!=Wt&&"constructor"in n&&"constructor"in o&&!(typeof Rt=="function"&&Rt instanceof Rt&&typeof Wt=="function"&&Wt instanceof Wt)&&(Se=!1)}return A.delete(n),A.delete(o),Se}function zr(n){return cl($p(n,r,Up),n+"")}function rl(n){return Gd(n,dt,sl)}function nl(n){return Gd(n,$t,Rp)}var il=vs?function(n){return vs.get(n)}:El;function ks(n){for(var o=n.name+"",l=ai[o],b=Fe.call(ai,o)?l.length:0;b--;){var _=l[b],A=_.func;if(A==null||A==n)return _.name}return o}function fi(n){var o=Fe.call(O,"placeholder")?O:n;return o.placeholder}function pe(){var n=O.iteratee||xl;return n=n===xl?Yd:n,arguments.length?n(arguments[0],arguments[1]):n}function Is(n,o){var l=n.__data__;return xx(o)?l[typeof o=="string"?"string":"hash"]:l.map}function ol(n){for(var o=dt(n),l=o.length;l--;){var b=o[l],_=n[b];o[l]=[b,_,kp(_)]}return o}function kn(n,o){var l=_w(n,o);return Kd(l)?l:r}function hx(n){var o=Fe.call(n,On),l=n[On];try{n[On]=r;var b=!0}catch{}var _=ls.call(n);return b&&(o?n[On]=l:delete n[On]),_}var sl=$u?function(n){return n==null?[]:(n=Be(n),tn($u(n),function(o){return Ld.call(n,o)}))}:_l,Rp=$u?function(n){for(var o=[];n;)rn(o,sl(n)),n=ds(n);return o}:_l,St=Ot;(Lu&&St(new Lu(new ArrayBuffer(1)))!=Mr||Mi&&St(new Mi)!=ft||Mu&&St(Mu.resolve())!=Jo||si&&St(new si)!=wt||Di&&St(new Di)!=Qr)&&(St=function(n){var o=Ot(n),l=o==Kt?n.constructor:r,b=l?In(l):"";if(b)switch(b){case Yw:return Mr;case Xw:return ft;case Jw:return Jo;case Qw:return wt;case e1:return Qr}return o});function gx(n,o,l){for(var b=-1,_=l.length;++b<_;){var A=l[b],P=A.size;switch(A.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=xt(o,n+P);break;case"takeRight":n=lt(n,o-P);break}}return{start:n,end:o}}function mx(n){var o=n.match(Sb);return o?o[1].split(Eb):[]}function Pp(n,o,l){o=un(o,n);for(var b=-1,_=o.length,A=!1;++b<_;){var P=Sr(o[b]);if(!(A=n!=null&&l(n,P)))break;n=n[P]}return A||++b!=_?A:(_=n==null?0:n.length,!!_&&js(_)&&Br(P,_)&&(we(n)||$n(n)))}function vx(n){var o=n.length,l=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(l.index=n.index,l.input=n.input),l}function Cp(n){return typeof n.constructor=="function"&&!qi(n)?ui(ds(n)):{}}function yx(n,o,l){var b=n.constructor;switch(o){case en:return Qu(n);case me:case Ee:return new b(+n);case Mr:return tx(n,l);case ou:case su:case au:case uu:case lu:case cu:case fu:case du:case pu:return dp(n,l);case ft:return new b;case br:case Jr:return new b(n);case Nt:return rx(n);case wt:return new b;case _n:return nx(n)}}function bx(n,o){var l=o.length;if(!l)return n;var b=l-1;return o[b]=(l>1?"& ":"")+o[b],o=o.join(l>2?", ":" "),n.replace(xb,`{
183
- /* [wrapped with `+o+`] */
184
- `)}function wx(n){return we(n)||$n(n)||!!(Md&&n&&n[Md])}function Br(n,o){var l=typeof n;return o=o??te,!!o&&(l=="number"||l!="symbol"&&Ib.test(n))&&n>-1&&n%1==0&&n<o}function At(n,o,l){if(!Xe(l))return!1;var b=typeof o;return(b=="number"?It(l)&&Br(o,l.length):b=="string"&&o in l)?dr(l[o],n):!1}function al(n,o){if(we(n))return!1;var l=typeof n;return l=="number"||l=="symbol"||l=="boolean"||n==null||Bt(n)?!0:vb.test(n)||!mb.test(n)||o!=null&&n in Be(o)}function xx(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function ul(n){var o=ks(n),l=O[o];if(typeof l!="function"||!(o in Ae.prototype))return!1;if(n===l)return!0;var b=il(l);return!!b&&n===b[0]}function Sx(n){return!!kd&&kd in n}var Ex=as?Ur:Tl;function qi(n){var o=n&&n.constructor,l=typeof o=="function"&&o.prototype||oi;return n===l}function kp(n){return n===n&&!Xe(n)}function Ip(n,o){return function(l){return l==null?!1:l[n]===o&&(o!==r||n in Be(l))}}function _x(n){var o=Ns(n,function(b){return l.size===m&&l.clear(),b}),l=o.cache;return o}function Tx(n,o){var l=n[1],b=o[1],_=l|b,A=_<(w|v|U),P=b==U&&l==E||b==U&&l==D&&n[7].length<=o[8]||b==(U|D)&&o[7].length<=o[8]&&l==E;if(!(A||P))return n;b&w&&(n[2]=o[2],_|=l&w?0:S);var L=o[3];if(L){var B=n[3];n[3]=B?hp(B,L,o[4]):L,n[4]=B?nn(n[3],g):o[4]}return L=o[5],L&&(B=n[5],n[5]=B?gp(B,L,o[6]):L,n[6]=B?nn(n[5],g):o[6]),L=o[7],L&&(n[7]=L),b&U&&(n[8]=n[8]==null?o[8]:xt(n[8],o[8])),n[9]==null&&(n[9]=o[9]),n[0]=o[0],n[1]=_,n}function Ox(n){var o=[];if(n!=null)for(var l in Be(n))o.push(l);return o}function Ax(n){return ls.call(n)}function $p(n,o,l){return o=lt(o===r?n.length-1:o,0),function(){for(var b=arguments,_=-1,A=lt(b.length-o,0),P=H(A);++_<A;)P[_]=b[o+_];_=-1;for(var L=H(o+1);++_<o;)L[_]=b[_];return L[o]=l(P),Ft(n,this,L)}}function Lp(n,o){return o.length<2?n:Cn(n,tr(o,0,-1))}function Rx(n,o){for(var l=n.length,b=xt(o.length,l),_=kt(n);b--;){var A=o[b];n[b]=Br(A,l)?_[A]:r}return n}function ll(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Mp=Np(ip),Zi=Ww||function(n,o){return ht.setTimeout(n,o)},cl=Np(X1);function Dp(n,o,l){var b=o+"";return cl(n,bx(b,Px(mx(b),l)))}function Np(n){var o=0,l=0;return function(){var b=Gw(),_=W-(b-l);if(l=b,_>0){if(++o>=M)return arguments[0]}else o=0;return n.apply(r,arguments)}}function $s(n,o){var l=-1,b=n.length,_=b-1;for(o=o===r?b:o;++l<o;){var A=Zu(l,_),P=n[A];n[A]=n[l],n[l]=P}return n.length=o,n}var Fp=_x(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(yb,function(l,b,_,A){o.push(_?A.replace(Ob,"$1"):b||l)}),o});function Sr(n){if(typeof n=="string"||Bt(n))return n;var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function In(n){if(n!=null){try{return us.call(n)}catch{}try{return n+""}catch{}}return""}function Px(n,o){return Xt(ne,function(l){var b="_."+l[0];o&l[1]&&!ns(n,b)&&n.push(b)}),n.sort()}function jp(n){if(n instanceof Ae)return n.clone();var o=new Qt(n.__wrapped__,n.__chain__);return o.__actions__=kt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function Cx(n,o,l){(l?At(n,o,l):o===r)?o=1:o=lt(xe(o),0);var b=n==null?0:n.length;if(!b||o<1)return[];for(var _=0,A=0,P=H(gs(b/o));_<b;)P[A++]=tr(n,_,_+=o);return P}function kx(n){for(var o=-1,l=n==null?0:n.length,b=0,_=[];++o<l;){var A=n[o];A&&(_[b++]=A)}return _}function Ix(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),l=arguments[0],b=n;b--;)o[b-1]=arguments[b];return rn(we(l)?kt(l):[l],gt(o,1))}var $x=_e(function(n,o){return nt(n)?zi(n,gt(o,1,nt,!0)):[]}),Lx=_e(function(n,o){var l=rr(o);return nt(l)&&(l=r),nt(n)?zi(n,gt(o,1,nt,!0),pe(l,2)):[]}),Mx=_e(function(n,o){var l=rr(o);return nt(l)&&(l=r),nt(n)?zi(n,gt(o,1,nt,!0),r,l):[]});function Dx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:xe(o),tr(n,o<0?0:o,b)):[]}function Nx(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:xe(o),o=b-o,tr(n,0,o<0?0:o)):[]}function Fx(n,o){return n&&n.length?Ts(n,pe(o,3),!0,!0):[]}function jx(n,o){return n&&n.length?Ts(n,pe(o,3),!0):[]}function zx(n,o,l,b){var _=n==null?0:n.length;return _?(l&&typeof l!="number"&&At(n,o,l)&&(l=0,b=_),I1(n,o,l,b)):[]}function zp(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:xe(l);return _<0&&(_=lt(b+_,0)),is(n,pe(o,3),_)}function Bp(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b-1;return l!==r&&(_=xe(l),_=l<0?lt(b+_,0):xt(_,b-1)),is(n,pe(o,3),_,!0)}function Up(n){var o=n==null?0:n.length;return o?gt(n,1):[]}function Bx(n){var o=n==null?0:n.length;return o?gt(n,Y):[]}function Ux(n,o){var l=n==null?0:n.length;return l?(o=o===r?1:xe(o),gt(n,o)):[]}function Wx(n){for(var o=-1,l=n==null?0:n.length,b={};++o<l;){var _=n[o];b[_[0]]=_[1]}return b}function Wp(n){return n&&n.length?n[0]:r}function Hx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=l==null?0:xe(l);return _<0&&(_=lt(b+_,0)),ti(n,o,_)}function qx(n){var o=n==null?0:n.length;return o?tr(n,0,-1):[]}var Zx=_e(function(n){var o=Ze(n,Xu);return o.length&&o[0]===n[0]?Bu(o):[]}),Gx=_e(function(n){var o=rr(n),l=Ze(n,Xu);return o===rr(l)?o=r:l.pop(),l.length&&l[0]===n[0]?Bu(l,pe(o,2)):[]}),Vx=_e(function(n){var o=rr(n),l=Ze(n,Xu);return o=typeof o=="function"?o:r,o&&l.pop(),l.length&&l[0]===n[0]?Bu(l,r,o):[]});function Kx(n,o){return n==null?"":qw.call(n,o)}function rr(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Yx(n,o,l){var b=n==null?0:n.length;if(!b)return-1;var _=b;return l!==r&&(_=xe(l),_=_<0?lt(b+_,0):xt(_,b-1)),o===o?Pw(n,o,_):is(n,Ed,_,!0)}function Xx(n,o){return n&&n.length?ep(n,xe(o)):r}var Jx=_e(Hp);function Hp(n,o){return n&&n.length&&o&&o.length?qu(n,o):n}function Qx(n,o,l){return n&&n.length&&o&&o.length?qu(n,o,pe(l,2)):n}function eS(n,o,l){return n&&n.length&&o&&o.length?qu(n,o,r,l):n}var tS=zr(function(n,o){var l=n==null?0:n.length,b=Nu(n,o);return np(n,Ze(o,function(_){return Br(_,l)?+_:_}).sort(pp)),b});function rS(n,o){var l=[];if(!(n&&n.length))return l;var b=-1,_=[],A=n.length;for(o=pe(o,3);++b<A;){var P=n[b];o(P,b,n)&&(l.push(P),_.push(b))}return np(n,_),l}function fl(n){return n==null?n:Kw.call(n)}function nS(n,o,l){var b=n==null?0:n.length;return b?(l&&typeof l!="number"&&At(n,o,l)?(o=0,l=b):(o=o==null?0:xe(o),l=l===r?b:xe(l)),tr(n,o,l)):[]}function iS(n,o){return _s(n,o)}function oS(n,o,l){return Vu(n,o,pe(l,2))}function sS(n,o){var l=n==null?0:n.length;if(l){var b=_s(n,o);if(b<l&&dr(n[b],o))return b}return-1}function aS(n,o){return _s(n,o,!0)}function uS(n,o,l){return Vu(n,o,pe(l,2),!0)}function lS(n,o){var l=n==null?0:n.length;if(l){var b=_s(n,o,!0)-1;if(dr(n[b],o))return b}return-1}function cS(n){return n&&n.length?op(n):[]}function fS(n,o){return n&&n.length?op(n,pe(o,2)):[]}function dS(n){var o=n==null?0:n.length;return o?tr(n,1,o):[]}function pS(n,o,l){return n&&n.length?(o=l||o===r?1:xe(o),tr(n,0,o<0?0:o)):[]}function hS(n,o,l){var b=n==null?0:n.length;return b?(o=l||o===r?1:xe(o),o=b-o,tr(n,o<0?0:o,b)):[]}function gS(n,o){return n&&n.length?Ts(n,pe(o,3),!1,!0):[]}function mS(n,o){return n&&n.length?Ts(n,pe(o,3)):[]}var vS=_e(function(n){return an(gt(n,1,nt,!0))}),yS=_e(function(n){var o=rr(n);return nt(o)&&(o=r),an(gt(n,1,nt,!0),pe(o,2))}),bS=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:r,an(gt(n,1,nt,!0),r,o)});function wS(n){return n&&n.length?an(n):[]}function xS(n,o){return n&&n.length?an(n,pe(o,2)):[]}function SS(n,o){return o=typeof o=="function"?o:r,n&&n.length?an(n,r,o):[]}function dl(n){if(!(n&&n.length))return[];var o=0;return n=tn(n,function(l){if(nt(l))return o=lt(l.length,o),!0}),Pu(o,function(l){return Ze(n,Ou(l))})}function qp(n,o){if(!(n&&n.length))return[];var l=dl(n);return o==null?l:Ze(l,function(b){return Ft(o,r,b)})}var ES=_e(function(n,o){return nt(n)?zi(n,o):[]}),_S=_e(function(n){return Yu(tn(n,nt))}),TS=_e(function(n){var o=rr(n);return nt(o)&&(o=r),Yu(tn(n,nt),pe(o,2))}),OS=_e(function(n){var o=rr(n);return o=typeof o=="function"?o:r,Yu(tn(n,nt),r,o)}),AS=_e(dl);function RS(n,o){return lp(n||[],o||[],ji)}function PS(n,o){return lp(n||[],o||[],Wi)}var CS=_e(function(n){var o=n.length,l=o>1?n[o-1]:r;return l=typeof l=="function"?(n.pop(),l):r,qp(n,l)});function Zp(n){var o=O(n);return o.__chain__=!0,o}function kS(n,o){return o(n),n}function Ls(n,o){return o(n)}var IS=zr(function(n){var o=n.length,l=o?n[0]:0,b=this.__wrapped__,_=function(A){return Nu(A,n)};return o>1||this.__actions__.length||!(b instanceof Ae)||!Br(l)?this.thru(_):(b=b.slice(l,+l+(o?1:0)),b.__actions__.push({func:Ls,args:[_],thisArg:r}),new Qt(b,this.__chain__).thru(function(A){return o&&!A.length&&A.push(r),A}))});function $S(){return Zp(this)}function LS(){return new Qt(this.value(),this.__chain__)}function MS(){this.__values__===r&&(this.__values__=sh(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function DS(){return this}function NS(n){for(var o,l=this;l instanceof bs;){var b=jp(l);b.__index__=0,b.__values__=r,o?_.__wrapped__=b:o=b;var _=b;l=l.__wrapped__}return _.__wrapped__=n,o}function FS(){var n=this.__wrapped__;if(n instanceof Ae){var o=n;return this.__actions__.length&&(o=new Ae(this)),o=o.reverse(),o.__actions__.push({func:Ls,args:[fl],thisArg:r}),new Qt(o,this.__chain__)}return this.thru(fl)}function jS(){return up(this.__wrapped__,this.__actions__)}var zS=Os(function(n,o,l){Fe.call(n,l)?++n[l]:Fr(n,l,1)});function BS(n,o,l){var b=we(n)?xd:k1;return l&&At(n,o,l)&&(o=r),b(n,pe(o,3))}function US(n,o){var l=we(n)?tn:qd;return l(n,pe(o,3))}var WS=bp(zp),HS=bp(Bp);function qS(n,o){return gt(Ms(n,o),1)}function ZS(n,o){return gt(Ms(n,o),Y)}function GS(n,o,l){return l=l===r?1:xe(l),gt(Ms(n,o),l)}function Gp(n,o){var l=we(n)?Xt:sn;return l(n,pe(o,3))}function Vp(n,o){var l=we(n)?dw:Hd;return l(n,pe(o,3))}var VS=Os(function(n,o,l){Fe.call(n,l)?n[l].push(o):Fr(n,l,[o])});function KS(n,o,l,b){n=It(n)?n:pi(n),l=l&&!b?xe(l):0;var _=n.length;return l<0&&(l=lt(_+l,0)),zs(n)?l<=_&&n.indexOf(o,l)>-1:!!_&&ti(n,o,l)>-1}var YS=_e(function(n,o,l){var b=-1,_=typeof o=="function",A=It(n)?H(n.length):[];return sn(n,function(P){A[++b]=_?Ft(o,P,l):Bi(P,o,l)}),A}),XS=Os(function(n,o,l){Fr(n,l,o)});function Ms(n,o){var l=we(n)?Ze:Xd;return l(n,pe(o,3))}function JS(n,o,l,b){return n==null?[]:(we(o)||(o=o==null?[]:[o]),l=b?r:l,we(l)||(l=l==null?[]:[l]),tp(n,o,l))}var QS=Os(function(n,o,l){n[l?0:1].push(o)},function(){return[[],[]]});function eE(n,o,l){var b=we(n)?_u:Td,_=arguments.length<3;return b(n,pe(o,4),l,_,sn)}function tE(n,o,l){var b=we(n)?pw:Td,_=arguments.length<3;return b(n,pe(o,4),l,_,Hd)}function rE(n,o){var l=we(n)?tn:qd;return l(n,Fs(pe(o,3)))}function nE(n){var o=we(n)?zd:K1;return o(n)}function iE(n,o,l){(l?At(n,o,l):o===r)?o=1:o=xe(o);var b=we(n)?O1:Y1;return b(n,o)}function oE(n){var o=we(n)?A1:J1;return o(n)}function sE(n){if(n==null)return 0;if(It(n))return zs(n)?ni(n):n.length;var o=St(n);return o==ft||o==wt?n.size:Wu(n).length}function aE(n,o,l){var b=we(n)?Tu:Q1;return l&&At(n,o,l)&&(o=r),b(n,pe(o,3))}var uE=_e(function(n,o){if(n==null)return[];var l=o.length;return l>1&&At(n,o[0],o[1])?o=[]:l>2&&At(o[0],o[1],o[2])&&(o=[o[0]]),tp(n,gt(o,1),[])}),Ds=Uw||function(){return ht.Date.now()};function lE(n,o){if(typeof o!="function")throw new Jt(u);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Kp(n,o,l){return o=l?r:o,o=n&&o==null?n.length:o,jr(n,U,r,r,r,r,o)}function Yp(n,o){var l;if(typeof o!="function")throw new Jt(u);return n=xe(n),function(){return--n>0&&(l=o.apply(this,arguments)),n<=1&&(o=r),l}}var pl=_e(function(n,o,l){var b=w;if(l.length){var _=nn(l,fi(pl));b|=T}return jr(n,b,o,l,_)}),Xp=_e(function(n,o,l){var b=w|v;if(l.length){var _=nn(l,fi(Xp));b|=T}return jr(o,b,n,l,_)});function Jp(n,o,l){o=l?r:o;var b=jr(n,E,r,r,r,r,r,o);return b.placeholder=Jp.placeholder,b}function Qp(n,o,l){o=l?r:o;var b=jr(n,R,r,r,r,r,r,o);return b.placeholder=Qp.placeholder,b}function eh(n,o,l){var b,_,A,P,L,B,K=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Jt(u);o=nr(o)||0,Xe(l)&&(X=!!l.leading,ee="maxWait"in l,A=ee?lt(nr(l.maxWait)||0,o):A,oe="trailing"in l?!!l.trailing:oe);function le(it){var pr=b,Hr=_;return b=_=r,K=it,P=n.apply(Hr,pr),P}function he(it){return K=it,L=Zi(Te,o),X?le(it):P}function Se(it){var pr=it-B,Hr=it-K,bh=o-pr;return ee?xt(bh,A-Hr):bh}function ge(it){var pr=it-B,Hr=it-K;return B===r||pr>=o||pr<0||ee&&Hr>=A}function Te(){var it=Ds();if(ge(it))return Re(it);L=Zi(Te,Se(it))}function Re(it){return L=r,oe&&b?le(it):(b=_=r,P)}function Ut(){L!==r&&cp(L),K=0,b=B=_=L=r}function Rt(){return L===r?P:Re(Ds())}function Wt(){var it=Ds(),pr=ge(it);if(b=arguments,_=this,B=it,pr){if(L===r)return he(B);if(ee)return cp(L),L=Zi(Te,o),le(B)}return L===r&&(L=Zi(Te,o)),P}return Wt.cancel=Ut,Wt.flush=Rt,Wt}var cE=_e(function(n,o){return Wd(n,1,o)}),fE=_e(function(n,o,l){return Wd(n,nr(o)||0,l)});function dE(n){return jr(n,N)}function Ns(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Jt(u);var l=function(){var b=arguments,_=o?o.apply(this,b):b[0],A=l.cache;if(A.has(_))return A.get(_);var P=n.apply(this,b);return l.cache=A.set(_,P)||A,P};return l.cache=new(Ns.Cache||Nr),l}Ns.Cache=Nr;function Fs(n){if(typeof n!="function")throw new Jt(u);return function(){var o=arguments;switch(o.length){case 0:return!n.call(this);case 1:return!n.call(this,o[0]);case 2:return!n.call(this,o[0],o[1]);case 3:return!n.call(this,o[0],o[1],o[2])}return!n.apply(this,o)}}function pE(n){return Yp(2,n)}var hE=ex(function(n,o){o=o.length==1&&we(o[0])?Ze(o[0],jt(pe())):Ze(gt(o,1),jt(pe()));var l=o.length;return _e(function(b){for(var _=-1,A=xt(b.length,l);++_<A;)b[_]=o[_].call(this,b[_]);return Ft(n,this,b)})}),hl=_e(function(n,o){var l=nn(o,fi(hl));return jr(n,T,r,o,l)}),th=_e(function(n,o){var l=nn(o,fi(th));return jr(n,k,r,o,l)}),gE=zr(function(n,o){return jr(n,D,r,r,r,o)});function mE(n,o){if(typeof n!="function")throw new Jt(u);return o=o===r?o:xe(o),_e(n,o)}function vE(n,o){if(typeof n!="function")throw new Jt(u);return o=o==null?0:lt(xe(o),0),_e(function(l){var b=l[o],_=ln(l,0,o);return b&&rn(_,b),Ft(n,this,_)})}function yE(n,o,l){var b=!0,_=!0;if(typeof n!="function")throw new Jt(u);return Xe(l)&&(b="leading"in l?!!l.leading:b,_="trailing"in l?!!l.trailing:_),eh(n,o,{leading:b,maxWait:o,trailing:_})}function bE(n){return Kp(n,1)}function wE(n,o){return hl(Ju(o),n)}function xE(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function SE(n){return er(n,y)}function EE(n,o){return o=typeof o=="function"?o:r,er(n,y,o)}function _E(n){return er(n,h|y)}function TE(n,o){return o=typeof o=="function"?o:r,er(n,h|y,o)}function OE(n,o){return o==null||Ud(n,o,dt(o))}function dr(n,o){return n===o||n!==n&&o!==o}var AE=Cs(zu),RE=Cs(function(n,o){return n>=o}),$n=Vd((function(){return arguments})())?Vd:function(n){return tt(n)&&Fe.call(n,"callee")&&!Ld.call(n,"callee")},we=H.isArray,PE=gd?jt(gd):N1;function It(n){return n!=null&&js(n.length)&&!Ur(n)}function nt(n){return tt(n)&&It(n)}function CE(n){return n===!0||n===!1||tt(n)&&Ot(n)==me}var cn=Hw||Tl,kE=md?jt(md):F1;function IE(n){return tt(n)&&n.nodeType===1&&!Gi(n)}function $E(n){if(n==null)return!0;if(It(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||cn(n)||di(n)||$n(n)))return!n.length;var o=St(n);if(o==ft||o==wt)return!n.size;if(qi(n))return!Wu(n).length;for(var l in n)if(Fe.call(n,l))return!1;return!0}function LE(n,o){return Ui(n,o)}function ME(n,o,l){l=typeof l=="function"?l:r;var b=l?l(n,o):r;return b===r?Ui(n,o,r,l):!!b}function gl(n){if(!tt(n))return!1;var o=Ot(n);return o==Ye||o==Oe||typeof n.message=="string"&&typeof n.name=="string"&&!Gi(n)}function DE(n){return typeof n=="number"&&Dd(n)}function Ur(n){if(!Xe(n))return!1;var o=Ot(n);return o==ie||o==bt||o==ye||o==iu}function rh(n){return typeof n=="number"&&n==xe(n)}function js(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Xe(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function tt(n){return n!=null&&typeof n=="object"}var nh=vd?jt(vd):z1;function NE(n,o){return n===o||Uu(n,o,ol(o))}function FE(n,o,l){return l=typeof l=="function"?l:r,Uu(n,o,ol(o),l)}function jE(n){return ih(n)&&n!=+n}function zE(n){if(Ex(n))throw new be(a);return Kd(n)}function BE(n){return n===null}function UE(n){return n==null}function ih(n){return typeof n=="number"||tt(n)&&Ot(n)==br}function Gi(n){if(!tt(n)||Ot(n)!=Kt)return!1;var o=ds(n);if(o===null)return!0;var l=Fe.call(o,"constructor")&&o.constructor;return typeof l=="function"&&l instanceof l&&us.call(l)==Fw}var ml=yd?jt(yd):B1;function WE(n){return rh(n)&&n>=-te&&n<=te}var oh=bd?jt(bd):U1;function zs(n){return typeof n=="string"||!we(n)&&tt(n)&&Ot(n)==Jr}function Bt(n){return typeof n=="symbol"||tt(n)&&Ot(n)==_n}var di=wd?jt(wd):W1;function HE(n){return n===r}function qE(n){return tt(n)&&St(n)==Qr}function ZE(n){return tt(n)&&Ot(n)==Qo}var GE=Cs(Hu),VE=Cs(function(n,o){return n<=o});function sh(n){if(!n)return[];if(It(n))return zs(n)?cr(n):kt(n);if(Li&&n[Li])return Ow(n[Li]());var o=St(n),l=o==ft?ku:o==wt?os:pi;return l(n)}function Wr(n){if(!n)return n===0?n:0;if(n=nr(n),n===Y||n===-Y){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=Wr(n),l=o%1;return o===o?l?o-l:o:0}function ah(n){return n?Pn(xe(n),0,Q):0}function nr(n){if(typeof n=="number")return n;if(Bt(n))return Z;if(Xe(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Xe(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=Od(n);var l=Pb.test(n);return l||kb.test(n)?lw(n.slice(2),l?2:8):Rb.test(n)?Z:+n}function uh(n){return xr(n,$t(n))}function KE(n){return n?Pn(xe(n),-te,te):n===0?n:0}function Ie(n){return n==null?"":zt(n)}var YE=li(function(n,o){if(qi(o)||It(o)){xr(o,dt(o),n);return}for(var l in o)Fe.call(o,l)&&ji(n,l,o[l])}),lh=li(function(n,o){xr(o,$t(o),n)}),Bs=li(function(n,o,l,b){xr(o,$t(o),n,b)}),XE=li(function(n,o,l,b){xr(o,dt(o),n,b)}),JE=zr(Nu);function QE(n,o){var l=ui(n);return o==null?l:Bd(l,o)}var e_=_e(function(n,o){n=Be(n);var l=-1,b=o.length,_=b>2?o[2]:r;for(_&&At(o[0],o[1],_)&&(b=1);++l<b;)for(var A=o[l],P=$t(A),L=-1,B=P.length;++L<B;){var K=P[L],X=n[K];(X===r||dr(X,oi[K])&&!Fe.call(n,K))&&(n[K]=A[K])}return n}),t_=_e(function(n){return n.push(r,Op),Ft(ch,r,n)});function r_(n,o){return Sd(n,pe(o,3),wr)}function n_(n,o){return Sd(n,pe(o,3),ju)}function i_(n,o){return n==null?n:Fu(n,pe(o,3),$t)}function o_(n,o){return n==null?n:Zd(n,pe(o,3),$t)}function s_(n,o){return n&&wr(n,pe(o,3))}function a_(n,o){return n&&ju(n,pe(o,3))}function u_(n){return n==null?[]:Ss(n,dt(n))}function l_(n){return n==null?[]:Ss(n,$t(n))}function vl(n,o,l){var b=n==null?r:Cn(n,o);return b===r?l:b}function c_(n,o){return n!=null&&Pp(n,o,$1)}function yl(n,o){return n!=null&&Pp(n,o,L1)}var f_=xp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=ls.call(o)),n[o]=l},wl(Lt)),d_=xp(function(n,o,l){o!=null&&typeof o.toString!="function"&&(o=ls.call(o)),Fe.call(n,o)?n[o].push(l):n[o]=[l]},pe),p_=_e(Bi);function dt(n){return It(n)?jd(n):Wu(n)}function $t(n){return It(n)?jd(n,!0):H1(n)}function h_(n,o){var l={};return o=pe(o,3),wr(n,function(b,_,A){Fr(l,o(b,_,A),b)}),l}function g_(n,o){var l={};return o=pe(o,3),wr(n,function(b,_,A){Fr(l,_,o(b,_,A))}),l}var m_=li(function(n,o,l){Es(n,o,l)}),ch=li(function(n,o,l,b){Es(n,o,l,b)}),v_=zr(function(n,o){var l={};if(n==null)return l;var b=!1;o=Ze(o,function(A){return A=un(A,n),b||(b=A.length>1),A}),xr(n,nl(n),l),b&&(l=er(l,h|d|y,fx));for(var _=o.length;_--;)Ku(l,o[_]);return l});function y_(n,o){return fh(n,Fs(pe(o)))}var b_=zr(function(n,o){return n==null?{}:Z1(n,o)});function fh(n,o){if(n==null)return{};var l=Ze(nl(n),function(b){return[b]});return o=pe(o),rp(n,l,function(b,_){return o(b,_[0])})}function w_(n,o,l){o=un(o,n);var b=-1,_=o.length;for(_||(_=1,n=r);++b<_;){var A=n==null?r:n[Sr(o[b])];A===r&&(b=_,A=l),n=Ur(A)?A.call(n):A}return n}function x_(n,o,l){return n==null?n:Wi(n,o,l)}function S_(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:Wi(n,o,l,b)}var dh=_p(dt),ph=_p($t);function E_(n,o,l){var b=we(n),_=b||cn(n)||di(n);if(o=pe(o,4),l==null){var A=n&&n.constructor;_?l=b?new A:[]:Xe(n)?l=Ur(A)?ui(ds(n)):{}:l={}}return(_?Xt:wr)(n,function(P,L,B){return o(l,P,L,B)}),l}function __(n,o){return n==null?!0:Ku(n,o)}function T_(n,o,l){return n==null?n:ap(n,o,Ju(l))}function O_(n,o,l,b){return b=typeof b=="function"?b:r,n==null?n:ap(n,o,Ju(l),b)}function pi(n){return n==null?[]:Cu(n,dt(n))}function A_(n){return n==null?[]:Cu(n,$t(n))}function R_(n,o,l){return l===r&&(l=o,o=r),l!==r&&(l=nr(l),l=l===l?l:0),o!==r&&(o=nr(o),o=o===o?o:0),Pn(nr(n),o,l)}function P_(n,o,l){return o=Wr(o),l===r?(l=o,o=0):l=Wr(l),n=nr(n),M1(n,o,l)}function C_(n,o,l){if(l&&typeof l!="boolean"&&At(n,o,l)&&(o=l=r),l===r&&(typeof o=="boolean"?(l=o,o=r):typeof n=="boolean"&&(l=n,n=r)),n===r&&o===r?(n=0,o=1):(n=Wr(n),o===r?(o=n,n=0):o=Wr(o)),n>o){var b=n;n=o,o=b}if(l||n%1||o%1){var _=Nd();return xt(n+_*(o-n+uw("1e-"+((_+"").length-1))),o)}return Zu(n,o)}var k_=ci(function(n,o,l){return o=o.toLowerCase(),n+(l?hh(o):o)});function hh(n){return bl(Ie(n).toLowerCase())}function gh(n){return n=Ie(n),n&&n.replace($b,xw).replace(Jb,"")}function I_(n,o,l){n=Ie(n),o=zt(o);var b=n.length;l=l===r?b:Pn(xe(l),0,b);var _=l;return l-=o.length,l>=0&&n.slice(l,_)==o}function $_(n){return n=Ie(n),n&&pb.test(n)?n.replace(Zf,Sw):n}function L_(n){return n=Ie(n),n&&bb.test(n)?n.replace(hu,"\\$&"):n}var M_=ci(function(n,o,l){return n+(l?"-":"")+o.toLowerCase()}),D_=ci(function(n,o,l){return n+(l?" ":"")+o.toLowerCase()}),N_=yp("toLowerCase");function F_(n,o,l){n=Ie(n),o=xe(o);var b=o?ni(n):0;if(!o||b>=o)return n;var _=(o-b)/2;return Ps(ms(_),l)+n+Ps(gs(_),l)}function j_(n,o,l){n=Ie(n),o=xe(o);var b=o?ni(n):0;return o&&b<o?n+Ps(o-b,l):n}function z_(n,o,l){n=Ie(n),o=xe(o);var b=o?ni(n):0;return o&&b<o?Ps(o-b,l)+n:n}function B_(n,o,l){return l||o==null?o=0:o&&(o=+o),Vw(Ie(n).replace(gu,""),o||0)}function U_(n,o,l){return(l?At(n,o,l):o===r)?o=1:o=xe(o),Gu(Ie(n),o)}function W_(){var n=arguments,o=Ie(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var H_=ci(function(n,o,l){return n+(l?"_":"")+o.toLowerCase()});function q_(n,o,l){return l&&typeof l!="number"&&At(n,o,l)&&(o=l=r),l=l===r?Q:l>>>0,l?(n=Ie(n),n&&(typeof o=="string"||o!=null&&!ml(o))&&(o=zt(o),!o&&ri(n))?ln(cr(n),0,l):n.split(o,l)):[]}var Z_=ci(function(n,o,l){return n+(l?" ":"")+bl(o)});function G_(n,o,l){return n=Ie(n),l=l==null?0:Pn(xe(l),0,n.length),o=zt(o),n.slice(l,l+o.length)==o}function V_(n,o,l){var b=O.templateSettings;l&&At(n,o,l)&&(o=r),n=Ie(n),o=Bs({},o,b,Tp);var _=Bs({},o.imports,b.imports,Tp),A=dt(_),P=Cu(_,A),L,B,K=0,X=o.interpolate||es,ee="__p += '",oe=Iu((o.escape||es).source+"|"+X.source+"|"+(X===Gf?Ab:es).source+"|"+(o.evaluate||es).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++nw+"]")+`
185
- `;n.replace(oe,function(ge,Te,Re,Ut,Rt,Wt){return Re||(Re=Ut),ee+=n.slice(K,Wt).replace(Lb,Ew),Te&&(L=!0,ee+=`' +
186
- __e(`+Te+`) +
187
- '`),Rt&&(B=!0,ee+=`';
188
- `+Rt+`;
189
- __p += '`),Re&&(ee+=`' +
190
- ((__t = (`+Re+`)) == null ? '' : __t) +
191
- '`),K=Wt+ge.length,ge}),ee+=`';
192
- `;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
193
- `+ee+`
229
+ */var cz=La.exports,Iy;function uz(){return Iy||(Iy=1,(function(e,t){(function(){var r,n="4.18.1",o=200,a="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`",p="__lodash_hash_undefined__",g=500,f="__lodash_placeholder__",h=1,b=2,S=4,v=1,y=2,m=1,w=2,x=4,k=8,E=16,R=32,F=64,P=128,$=256,V=512,z=30,I="...",j=800,W=16,N=1,Y=2,X=3,K=1/0,ge=9007199254740991,D=17976931348623157e292,U=NaN,ee=4294967295,te=ee-1,J=ee>>>1,ce=[["ary",P],["bind",m],["bindKey",w],["curry",k],["curryRight",E],["flip",V],["partial",R],["partialRight",F],["rearg",$]],ae="[object Arguments]",re="[object Array]",de="[object AsyncFunction]",he="[object Boolean]",fe="[object Date]",xe="[object DOMException]",Z="[object Error]",ke="[object Function]",me="[object GeneratorFunction]",nt="[object Map]",gt="[object Number]",mn="[object Null]",ar="[object Object]",Xt="[object Promise]",sr="[object Proxy]",xr="[object RegExp]",Nt="[object Set]",$r="[object String]",Xr="[object Symbol]",ci="[object Undefined]",zr="[object WeakMap]",ui="[object WeakSet]",jr="[object ArrayBuffer]",Sr="[object DataView]",jo="[object Float32Array]",Hi="[object Float64Array]",di="[object Int8Array]",fi="[object Int16Array]",Fo="[object Int32Array]",Bi="[object Uint8Array]",Ho="[object Uint8ClampedArray]",Wi="[object Uint16Array]",Bo="[object Uint32Array]",Fe=/\b__p \+= '';/g,Be=/\b(__p \+=) '' \+/g,Ht=/(__e\(.*?\)|\b__t\)) \+\n'';/g,bn=/&(?:amp|lt|gt|quot|#39);/g,pi=/[&<>"']/g,hi=RegExp(bn.source),Ui=RegExp(pi.source),qi=/<%-([\s\S]+?)%>/g,gi=/<%([\s\S]+?)%>/g,Vi=/<%=([\s\S]+?)%>/g,zS=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,jS=/^\w*$/,FS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Kc=/[\\^$.*+?()[\]{}|]/g,HS=RegExp(Kc.source),Zc=/^\s+/,BS=/\s/,WS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,US=/\{\n\/\* \[wrapped with (.+)\] \*/,qS=/,? & /,VS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,oh=/[()=,{}\[\]\/\s]/,GS=/\\(\\)?/g,KS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,ah=/\w*$/,ZS=/^[-+]0x[0-9a-f]+$/i,YS=/^0b[01]+$/i,XS=/^\[object .+?Constructor\]$/,JS=/^0o[0-7]+$/i,QS=/^(?:0|[1-9]\d*)$/,e_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ws=/($^)/,t_=/['\n\r\u2028\u2029\\]/g,xs="\\ud800-\\udfff",r_="\\u0300-\\u036f",n_="\\ufe20-\\ufe2f",i_="\\u20d0-\\u20ff",sh=r_+n_+i_,lh="\\u2700-\\u27bf",ch="a-z\\xdf-\\xf6\\xf8-\\xff",o_="\\xac\\xb1\\xd7\\xf7",a_="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",s_="\\u2000-\\u206f",l_=" \\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",uh="A-Z\\xc0-\\xd6\\xd8-\\xde",dh="\\ufe0e\\ufe0f",fh=o_+a_+s_+l_,Yc="['’]",c_="["+xs+"]",ph="["+fh+"]",Ss="["+sh+"]",hh="\\d+",u_="["+lh+"]",gh="["+ch+"]",vh="[^"+xs+fh+hh+lh+ch+uh+"]",Xc="\\ud83c[\\udffb-\\udfff]",d_="(?:"+Ss+"|"+Xc+")",mh="[^"+xs+"]",Jc="(?:\\ud83c[\\udde6-\\uddff]){2}",Qc="[\\ud800-\\udbff][\\udc00-\\udfff]",Gi="["+uh+"]",bh="\\u200d",yh="(?:"+gh+"|"+vh+")",f_="(?:"+Gi+"|"+vh+")",wh="(?:"+Yc+"(?:d|ll|m|re|s|t|ve))?",xh="(?:"+Yc+"(?:D|LL|M|RE|S|T|VE))?",Sh=d_+"?",_h="["+dh+"]?",p_="(?:"+bh+"(?:"+[mh,Jc,Qc].join("|")+")"+_h+Sh+")*",h_="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",g_="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Eh=_h+Sh+p_,v_="(?:"+[u_,Jc,Qc].join("|")+")"+Eh,m_="(?:"+[mh+Ss+"?",Ss,Jc,Qc,c_].join("|")+")",b_=RegExp(Yc,"g"),y_=RegExp(Ss,"g"),eu=RegExp(Xc+"(?="+Xc+")|"+m_+Eh,"g"),w_=RegExp([Gi+"?"+gh+"+"+wh+"(?="+[ph,Gi,"$"].join("|")+")",f_+"+"+xh+"(?="+[ph,Gi+yh,"$"].join("|")+")",Gi+"?"+yh+"+"+wh,Gi+"+"+xh,g_,h_,hh,v_].join("|"),"g"),x_=RegExp("["+bh+xs+sh+dh+"]"),S_=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,__=["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"],E_=-1,ct={};ct[jo]=ct[Hi]=ct[di]=ct[fi]=ct[Fo]=ct[Bi]=ct[Ho]=ct[Wi]=ct[Bo]=!0,ct[ae]=ct[re]=ct[jr]=ct[he]=ct[Sr]=ct[fe]=ct[Z]=ct[ke]=ct[nt]=ct[gt]=ct[ar]=ct[xr]=ct[Nt]=ct[$r]=ct[zr]=!1;var st={};st[ae]=st[re]=st[jr]=st[Sr]=st[he]=st[fe]=st[jo]=st[Hi]=st[di]=st[fi]=st[Fo]=st[nt]=st[gt]=st[ar]=st[xr]=st[Nt]=st[$r]=st[Xr]=st[Bi]=st[Ho]=st[Wi]=st[Bo]=!0,st[Z]=st[ke]=st[zr]=!1;var k_={À:"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"},O_={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},T_={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},A_={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},R_=parseFloat,C_=parseInt,kh=typeof ll=="object"&&ll&&ll.Object===Object&&ll,P_=typeof self=="object"&&self&&self.Object===Object&&self,Dt=kh||P_||Function("return this")(),tu=t&&!t.nodeType&&t,vi=tu&&!0&&e&&!e.nodeType&&e,Oh=vi&&vi.exports===tu,ru=Oh&&kh.process,_r=(function(){try{var q=vi&&vi.require&&vi.require("util").types;return q||ru&&ru.binding&&ru.binding("util")}catch{}})(),Th=_r&&_r.isArrayBuffer,Ah=_r&&_r.isDate,Rh=_r&&_r.isMap,Ch=_r&&_r.isRegExp,Ph=_r&&_r.isSet,Ih=_r&&_r.isTypedArray;function lr(q,ne,Q){switch(Q.length){case 0:return q.call(ne);case 1:return q.call(ne,Q[0]);case 2:return q.call(ne,Q[0],Q[1]);case 3:return q.call(ne,Q[0],Q[1],Q[2])}return q.apply(ne,Q)}function I_(q,ne,Q,be){for(var Re=-1,We=q==null?0:q.length;++Re<We;){var Tt=q[Re];ne(be,Tt,Q(Tt),q)}return be}function cr(q,ne){for(var Q=-1,be=q==null?0:q.length;++Q<be&&ne(q[Q],Q,q)!==!1;);return q}function N_(q,ne){for(var Q=q==null?0:q.length;Q--&&ne(q[Q],Q,q)!==!1;);return q}function Nh(q,ne){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(!ne(q[Q],Q,q))return!1;return!0}function jn(q,ne){for(var Q=-1,be=q==null?0:q.length,Re=0,We=[];++Q<be;){var Tt=q[Q];ne(Tt,Q,q)&&(We[Re++]=Tt)}return We}function _s(q,ne){var Q=q==null?0:q.length;return!!Q&&Ki(q,ne,0)>-1}function nu(q,ne,Q){for(var be=-1,Re=q==null?0:q.length;++be<Re;)if(Q(ne,q[be]))return!0;return!1}function dt(q,ne){for(var Q=-1,be=q==null?0:q.length,Re=Array(be);++Q<be;)Re[Q]=ne(q[Q],Q,q);return Re}function Fn(q,ne){for(var Q=-1,be=ne.length,Re=q.length;++Q<be;)q[Re+Q]=ne[Q];return q}function iu(q,ne,Q,be){var Re=-1,We=q==null?0:q.length;for(be&&We&&(Q=q[++Re]);++Re<We;)Q=ne(Q,q[Re],Re,q);return Q}function D_(q,ne,Q,be){var Re=q==null?0:q.length;for(be&&Re&&(Q=q[--Re]);Re--;)Q=ne(Q,q[Re],Re,q);return Q}function ou(q,ne){for(var Q=-1,be=q==null?0:q.length;++Q<be;)if(ne(q[Q],Q,q))return!0;return!1}var M_=au("length");function L_(q){return q.split("")}function $_(q){return q.match(VS)||[]}function Dh(q,ne,Q){var be;return Q(q,function(Re,We,Tt){if(ne(Re,We,Tt))return be=We,!1}),be}function Es(q,ne,Q,be){for(var Re=q.length,We=Q+(be?1:-1);be?We--:++We<Re;)if(ne(q[We],We,q))return We;return-1}function Ki(q,ne,Q){return ne===ne?Z_(q,ne,Q):Es(q,Mh,Q)}function z_(q,ne,Q,be){for(var Re=Q-1,We=q.length;++Re<We;)if(be(q[Re],ne))return Re;return-1}function Mh(q){return q!==q}function Lh(q,ne){var Q=q==null?0:q.length;return Q?lu(q,ne)/Q:U}function au(q){return function(ne){return ne==null?r:ne[q]}}function su(q){return function(ne){return q==null?r:q[ne]}}function $h(q,ne,Q,be,Re){return Re(q,function(We,Tt,ot){Q=be?(be=!1,We):ne(Q,We,Tt,ot)}),Q}function j_(q,ne){var Q=q.length;for(q.sort(ne);Q--;)q[Q]=q[Q].value;return q}function lu(q,ne){for(var Q,be=-1,Re=q.length;++be<Re;){var We=ne(q[be]);We!==r&&(Q=Q===r?We:Q+We)}return Q}function cu(q,ne){for(var Q=-1,be=Array(q);++Q<q;)be[Q]=ne(Q);return be}function F_(q,ne){return dt(ne,function(Q){return[Q,q[Q]]})}function zh(q){return q&&q.slice(0,Bh(q)+1).replace(Zc,"")}function ur(q){return function(ne){return q(ne)}}function uu(q,ne){return dt(ne,function(Q){return q[Q]})}function Wo(q,ne){return q.has(ne)}function jh(q,ne){for(var Q=-1,be=q.length;++Q<be&&Ki(ne,q[Q],0)>-1;);return Q}function Fh(q,ne){for(var Q=q.length;Q--&&Ki(ne,q[Q],0)>-1;);return Q}function H_(q,ne){for(var Q=q.length,be=0;Q--;)q[Q]===ne&&++be;return be}var B_=su(k_),W_=su(O_);function U_(q){return"\\"+A_[q]}function q_(q,ne){return q==null?r:q[ne]}function Zi(q){return x_.test(q)}function V_(q){return S_.test(q)}function G_(q){for(var ne,Q=[];!(ne=q.next()).done;)Q.push(ne.value);return Q}function du(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be,Re){Q[++ne]=[Re,be]}),Q}function Hh(q,ne){return function(Q){return q(ne(Q))}}function Hn(q,ne){for(var Q=-1,be=q.length,Re=0,We=[];++Q<be;){var Tt=q[Q];(Tt===ne||Tt===f)&&(q[Q]=f,We[Re++]=Q)}return We}function ks(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be){Q[++ne]=be}),Q}function K_(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be){Q[++ne]=[be,be]}),Q}function Z_(q,ne,Q){for(var be=Q-1,Re=q.length;++be<Re;)if(q[be]===ne)return be;return-1}function Y_(q,ne,Q){for(var be=Q+1;be--;)if(q[be]===ne)return be;return be}function Yi(q){return Zi(q)?J_(q):M_(q)}function Fr(q){return Zi(q)?Q_(q):L_(q)}function Bh(q){for(var ne=q.length;ne--&&BS.test(q.charAt(ne)););return ne}var X_=su(T_);function J_(q){for(var ne=eu.lastIndex=0;eu.test(q);)++ne;return ne}function Q_(q){return q.match(eu)||[]}function eE(q){return q.match(w_)||[]}var tE=(function q(ne){ne=ne==null?Dt:Xi.defaults(Dt.Object(),ne,Xi.pick(Dt,__));var Q=ne.Array,be=ne.Date,Re=ne.Error,We=ne.Function,Tt=ne.Math,ot=ne.Object,fu=ne.RegExp,rE=ne.String,Er=ne.TypeError,Os=Q.prototype,nE=We.prototype,Ji=ot.prototype,Ts=ne["__core-js_shared__"],As=nE.toString,Ve=Ji.hasOwnProperty,iE=0,Wh=(function(){var i=/[^.]+$/.exec(Ts&&Ts.keys&&Ts.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),Rs=Ji.toString,oE=As.call(ot),aE=Dt._,sE=fu("^"+As.call(Ve).replace(Kc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Cs=Oh?ne.Buffer:r,Bn=ne.Symbol,Ps=ne.Uint8Array,Uh=Cs?Cs.allocUnsafe:r,Is=Hh(ot.getPrototypeOf,ot),qh=ot.create,Vh=Ji.propertyIsEnumerable,Ns=Os.splice,Gh=Bn?Bn.isConcatSpreadable:r,Uo=Bn?Bn.iterator:r,mi=Bn?Bn.toStringTag:r,Ds=(function(){try{var i=Si(ot,"defineProperty");return i({},"",{}),i}catch{}})(),lE=ne.clearTimeout!==Dt.clearTimeout&&ne.clearTimeout,cE=be&&be.now!==Dt.Date.now&&be.now,uE=ne.setTimeout!==Dt.setTimeout&&ne.setTimeout,Ms=Tt.ceil,Ls=Tt.floor,pu=ot.getOwnPropertySymbols,dE=Cs?Cs.isBuffer:r,Kh=ne.isFinite,fE=Os.join,pE=Hh(ot.keys,ot),At=Tt.max,Bt=Tt.min,hE=be.now,gE=ne.parseInt,Zh=Tt.random,vE=Os.reverse,hu=Si(ne,"DataView"),qo=Si(ne,"Map"),gu=Si(ne,"Promise"),Qi=Si(ne,"Set"),Vo=Si(ne,"WeakMap"),Go=Si(ot,"create"),$s=Vo&&new Vo,eo={},mE=_i(hu),bE=_i(qo),yE=_i(gu),wE=_i(Qi),xE=_i(Vo),zs=Bn?Bn.prototype:r,Ko=zs?zs.valueOf:r,Yh=zs?zs.toString:r;function A(i){if(bt(i)&&!Pe(i)&&!(i instanceof $e)){if(i instanceof kr)return i;if(Ve.call(i,"__wrapped__"))return Xg(i)}return new kr(i)}var to=(function(){function i(){}return function(s){if(!vt(s))return{};if(qh)return qh(s);i.prototype=s;var d=new i;return i.prototype=r,d}})();function js(){}function kr(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=r}A.templateSettings={escape:qi,evaluate:gi,interpolate:Vi,variable:"",imports:{_:A}},A.prototype=js.prototype,A.prototype.constructor=A,kr.prototype=to(js.prototype),kr.prototype.constructor=kr;function $e(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ee,this.__views__=[]}function SE(){var i=new $e(this.__wrapped__);return i.__actions__=Jt(this.__actions__),i.__dir__=this.__dir__,i.__filtered__=this.__filtered__,i.__iteratees__=Jt(this.__iteratees__),i.__takeCount__=this.__takeCount__,i.__views__=Jt(this.__views__),i}function _E(){if(this.__filtered__){var i=new $e(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function EE(){var i=this.__wrapped__.value(),s=this.__dir__,d=Pe(i),_=s<0,O=d?i.length:0,C=Lk(0,O,this.__views__),L=C.start,H=C.end,G=H-L,ie=_?H:L-1,oe=this.__iteratees__,le=oe.length,ve=0,Se=Bt(G,this.__takeCount__);if(!d||!_&&O==G&&Se==G)return wg(i,this.__actions__);var Te=[];e:for(;G--&&ve<Se;){ie+=s;for(var Ne=-1,Ee=i[ie];++Ne<le;){var Le=oe[Ne],ze=Le.iteratee,pr=Le.type,Kt=ze(Ee);if(pr==Y)Ee=Kt;else if(!Kt){if(pr==N)continue e;break e}}Te[ve++]=Ee}return Te}$e.prototype=to(js.prototype),$e.prototype.constructor=$e;function bi(i){var s=-1,d=i==null?0:i.length;for(this.clear();++s<d;){var _=i[s];this.set(_[0],_[1])}}function kE(){this.__data__=Go?Go(null):{},this.size=0}function OE(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function TE(i){var s=this.__data__;if(Go){var d=s[i];return d===p?r:d}return Ve.call(s,i)?s[i]:r}function AE(i){var s=this.__data__;return Go?s[i]!==r:Ve.call(s,i)}function RE(i,s){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Go&&s===r?p:s,this}bi.prototype.clear=kE,bi.prototype.delete=OE,bi.prototype.get=TE,bi.prototype.has=AE,bi.prototype.set=RE;function yn(i){var s=-1,d=i==null?0:i.length;for(this.clear();++s<d;){var _=i[s];this.set(_[0],_[1])}}function CE(){this.__data__=[],this.size=0}function PE(i){var s=this.__data__,d=Fs(s,i);if(d<0)return!1;var _=s.length-1;return d==_?s.pop():Ns.call(s,d,1),--this.size,!0}function IE(i){var s=this.__data__,d=Fs(s,i);return d<0?r:s[d][1]}function NE(i){return Fs(this.__data__,i)>-1}function DE(i,s){var d=this.__data__,_=Fs(d,i);return _<0?(++this.size,d.push([i,s])):d[_][1]=s,this}yn.prototype.clear=CE,yn.prototype.delete=PE,yn.prototype.get=IE,yn.prototype.has=NE,yn.prototype.set=DE;function wn(i){var s=-1,d=i==null?0:i.length;for(this.clear();++s<d;){var _=i[s];this.set(_[0],_[1])}}function ME(){this.size=0,this.__data__={hash:new bi,map:new(qo||yn),string:new bi}}function LE(i){var s=Js(this,i).delete(i);return this.size-=s?1:0,s}function $E(i){return Js(this,i).get(i)}function zE(i){return Js(this,i).has(i)}function jE(i,s){var d=Js(this,i),_=d.size;return d.set(i,s),this.size+=d.size==_?0:1,this}wn.prototype.clear=ME,wn.prototype.delete=LE,wn.prototype.get=$E,wn.prototype.has=zE,wn.prototype.set=jE;function yi(i){var s=-1,d=i==null?0:i.length;for(this.__data__=new wn;++s<d;)this.add(i[s])}function FE(i){return this.__data__.set(i,p),this}function HE(i){return this.__data__.has(i)}yi.prototype.add=yi.prototype.push=FE,yi.prototype.has=HE;function Hr(i){var s=this.__data__=new yn(i);this.size=s.size}function BE(){this.__data__=new yn,this.size=0}function WE(i){var s=this.__data__,d=s.delete(i);return this.size=s.size,d}function UE(i){return this.__data__.get(i)}function qE(i){return this.__data__.has(i)}function VE(i,s){var d=this.__data__;if(d instanceof yn){var _=d.__data__;if(!qo||_.length<o-1)return _.push([i,s]),this.size=++d.size,this;d=this.__data__=new wn(_)}return d.set(i,s),this.size=d.size,this}Hr.prototype.clear=BE,Hr.prototype.delete=WE,Hr.prototype.get=UE,Hr.prototype.has=qE,Hr.prototype.set=VE;function Xh(i,s){var d=Pe(i),_=!d&&Ei(i),O=!d&&!_&&Gn(i),C=!d&&!_&&!O&&oo(i),L=d||_||O||C,H=L?cu(i.length,rE):[],G=H.length;for(var ie in i)(s||Ve.call(i,ie))&&!(L&&(ie=="length"||O&&(ie=="offset"||ie=="parent")||C&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||_n(ie,G)))&&H.push(ie);return H}function Jh(i){var s=i.length;return s?i[Ou(0,s-1)]:r}function GE(i,s){return Qs(Jt(i),wi(s,0,i.length))}function KE(i){return Qs(Jt(i))}function vu(i,s,d){(d!==r&&!Wr(i[s],d)||d===r&&!(s in i))&&Jr(i,s,d)}function Zo(i,s,d){var _=i[s];(!(Ve.call(i,s)&&Wr(_,d))||d===r&&!(s in i))&&Jr(i,s,d)}function Fs(i,s){for(var d=i.length;d--;)if(Wr(i[d][0],s))return d;return-1}function ZE(i,s,d,_){return Wn(i,function(O,C,L){s(_,O,d(O),L)}),_}function Qh(i,s){return i&&en(s,Ct(s),i)}function YE(i,s){return i&&en(s,er(s),i)}function Jr(i,s,d){s=="__proto__"&&Ds?Ds(i,s,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[s]=d}function mu(i,s){for(var d=-1,_=s.length,O=Q(_),C=i==null;++d<_;)O[d]=C?r:Ju(i,s[d]);return O}function wi(i,s,d){return i===i&&(d!==r&&(i=i<=d?i:d),s!==r&&(i=i>=s?i:s)),i}function Or(i,s,d,_,O,C){var L,H=s&h,G=s&b,ie=s&S;if(d&&(L=O?d(i,_,O,C):d(i)),L!==r)return L;if(!vt(i))return i;var oe=Pe(i);if(oe){if(L=zk(i),!H)return Jt(i,L)}else{var le=Wt(i),ve=le==ke||le==me;if(Gn(i))return _g(i,H);if(le==ar||le==ae||ve&&!O){if(L=G||ve?{}:Bg(i),!H)return G?Tk(i,YE(L,i)):Ok(i,Qh(L,i))}else{if(!st[le])return O?i:{};L=jk(i,le,H)}}C||(C=new Hr);var Se=C.get(i);if(Se)return Se;C.set(i,L),mv(i)?i.forEach(function(Ee){L.add(Or(Ee,s,d,Ee,i,C))}):gv(i)&&i.forEach(function(Ee,Le){L.set(Le,Or(Ee,s,d,Le,i,C))});var Te=ie?G?$u:Lu:G?er:Ct,Ne=oe?r:Te(i);return cr(Ne||i,function(Ee,Le){Ne&&(Le=Ee,Ee=i[Le]),Zo(L,Le,Or(Ee,s,d,Le,i,C))}),L}function XE(i){var s=Ct(i);return function(d){return eg(d,i,s)}}function eg(i,s,d){var _=d.length;if(i==null)return!_;for(i=ot(i);_--;){var O=d[_],C=s[O],L=i[O];if(L===r&&!(O in i)||!C(L))return!1}return!0}function tg(i,s,d){if(typeof i!="function")throw new Er(l);return ra(function(){i.apply(r,d)},s)}function Yo(i,s,d,_){var O=-1,C=_s,L=!0,H=i.length,G=[],ie=s.length;if(!H)return G;d&&(s=dt(s,ur(d))),_?(C=nu,L=!1):s.length>=o&&(C=Wo,L=!1,s=new yi(s));e:for(;++O<H;){var oe=i[O],le=d==null?oe:d(oe);if(oe=_||oe!==0?oe:0,L&&le===le){for(var ve=ie;ve--;)if(s[ve]===le)continue e;G.push(oe)}else C(s,le,_)||G.push(oe)}return G}var Wn=Ag(Qr),rg=Ag(yu,!0);function JE(i,s){var d=!0;return Wn(i,function(_,O,C){return d=!!s(_,O,C),d}),d}function Hs(i,s,d){for(var _=-1,O=i.length;++_<O;){var C=i[_],L=s(C);if(L!=null&&(H===r?L===L&&!fr(L):d(L,H)))var H=L,G=C}return G}function QE(i,s,d,_){var O=i.length;for(d=Ie(d),d<0&&(d=-d>O?0:O+d),_=_===r||_>O?O:Ie(_),_<0&&(_+=O),_=d>_?0:yv(_);d<_;)i[d++]=s;return i}function ng(i,s){var d=[];return Wn(i,function(_,O,C){s(_,O,C)&&d.push(_)}),d}function Mt(i,s,d,_,O){var C=-1,L=i.length;for(d||(d=Hk),O||(O=[]);++C<L;){var H=i[C];s>0&&d(H)?s>1?Mt(H,s-1,d,_,O):Fn(O,H):_||(O[O.length]=H)}return O}var bu=Rg(),ig=Rg(!0);function Qr(i,s){return i&&bu(i,s,Ct)}function yu(i,s){return i&&ig(i,s,Ct)}function Bs(i,s){return jn(s,function(d){return En(i[d])})}function xi(i,s){s=qn(s,i);for(var d=0,_=s.length;i!=null&&d<_;)i=i[Br(s[d++])];return d&&d==_?i:r}function og(i,s,d){var _=s(i);return Pe(i)?_:Fn(_,d(i))}function Vt(i){return i==null?i===r?ci:mn:mi&&mi in ot(i)?Mk(i):Kk(i)}function wu(i,s){return i>s}function ek(i,s){return i!=null&&Ve.call(i,s)}function tk(i,s){return i!=null&&s in ot(i)}function rk(i,s,d){return i>=Bt(s,d)&&i<At(s,d)}function xu(i,s,d){for(var _=d?nu:_s,O=i[0].length,C=i.length,L=C,H=Q(C),G=1/0,ie=[];L--;){var oe=i[L];L&&s&&(oe=dt(oe,ur(s))),G=Bt(oe.length,G),H[L]=!d&&(s||O>=120&&oe.length>=120)?new yi(L&&oe):r}oe=i[0];var le=-1,ve=H[0];e:for(;++le<O&&ie.length<G;){var Se=oe[le],Te=s?s(Se):Se;if(Se=d||Se!==0?Se:0,!(ve?Wo(ve,Te):_(ie,Te,d))){for(L=C;--L;){var Ne=H[L];if(!(Ne?Wo(Ne,Te):_(i[L],Te,d)))continue e}ve&&ve.push(Te),ie.push(Se)}}return ie}function nk(i,s,d,_){return Qr(i,function(O,C,L){s(_,d(O),C,L)}),_}function Xo(i,s,d){s=qn(s,i),i=Vg(i,s);var _=i==null?i:i[Br(Ar(s))];return _==null?r:lr(_,i,d)}function ag(i){return bt(i)&&Vt(i)==ae}function ik(i){return bt(i)&&Vt(i)==jr}function ok(i){return bt(i)&&Vt(i)==fe}function Jo(i,s,d,_,O){return i===s?!0:i==null||s==null||!bt(i)&&!bt(s)?i!==i&&s!==s:ak(i,s,d,_,Jo,O)}function ak(i,s,d,_,O,C){var L=Pe(i),H=Pe(s),G=L?re:Wt(i),ie=H?re:Wt(s);G=G==ae?ar:G,ie=ie==ae?ar:ie;var oe=G==ar,le=ie==ar,ve=G==ie;if(ve&&Gn(i)){if(!Gn(s))return!1;L=!0,oe=!1}if(ve&&!oe)return C||(C=new Hr),L||oo(i)?jg(i,s,d,_,O,C):Nk(i,s,G,d,_,O,C);if(!(d&v)){var Se=oe&&Ve.call(i,"__wrapped__"),Te=le&&Ve.call(s,"__wrapped__");if(Se||Te){var Ne=Se?i.value():i,Ee=Te?s.value():s;return C||(C=new Hr),O(Ne,Ee,d,_,C)}}return ve?(C||(C=new Hr),Dk(i,s,d,_,O,C)):!1}function sk(i){return bt(i)&&Wt(i)==nt}function Su(i,s,d,_){var O=d.length,C=O,L=!_;if(i==null)return!C;for(i=ot(i);O--;){var H=d[O];if(L&&H[2]?H[1]!==i[H[0]]:!(H[0]in i))return!1}for(;++O<C;){H=d[O];var G=H[0],ie=i[G],oe=H[1];if(L&&H[2]){if(ie===r&&!(G in i))return!1}else{var le=new Hr;if(_)var ve=_(ie,oe,G,i,s,le);if(!(ve===r?Jo(oe,ie,v|y,_,le):ve))return!1}}return!0}function sg(i){if(!vt(i)||Wk(i))return!1;var s=En(i)?sE:XS;return s.test(_i(i))}function lk(i){return bt(i)&&Vt(i)==xr}function ck(i){return bt(i)&&Wt(i)==Nt}function uk(i){return bt(i)&&ol(i.length)&&!!ct[Vt(i)]}function lg(i){return typeof i=="function"?i:i==null?tr:typeof i=="object"?Pe(i)?dg(i[0],i[1]):ug(i):Pv(i)}function _u(i){if(!ta(i))return pE(i);var s=[];for(var d in ot(i))Ve.call(i,d)&&d!="constructor"&&s.push(d);return s}function dk(i){if(!vt(i))return Gk(i);var s=ta(i),d=[];for(var _ in i)_=="constructor"&&(s||!Ve.call(i,_))||d.push(_);return d}function Eu(i,s){return i<s}function cg(i,s){var d=-1,_=Qt(i)?Q(i.length):[];return Wn(i,function(O,C,L){_[++d]=s(O,C,L)}),_}function ug(i){var s=ju(i);return s.length==1&&s[0][2]?Ug(s[0][0],s[0][1]):function(d){return d===i||Su(d,i,s)}}function dg(i,s){return Hu(i)&&Wg(s)?Ug(Br(i),s):function(d){var _=Ju(d,i);return _===r&&_===s?Qu(d,i):Jo(s,_,v|y)}}function Ws(i,s,d,_,O){i!==s&&bu(s,function(C,L){if(O||(O=new Hr),vt(C))fk(i,s,L,d,Ws,_,O);else{var H=_?_(Wu(i,L),C,L+"",i,s,O):r;H===r&&(H=C),vu(i,L,H)}},er)}function fk(i,s,d,_,O,C,L){var H=Wu(i,d),G=Wu(s,d),ie=L.get(G);if(ie){vu(i,d,ie);return}var oe=C?C(H,G,d+"",i,s,L):r,le=oe===r;if(le){var ve=Pe(G),Se=!ve&&Gn(G),Te=!ve&&!Se&&oo(G);oe=G,ve||Se||Te?Pe(H)?oe=H:yt(H)?oe=Jt(H):Se?(le=!1,oe=_g(G,!0)):Te?(le=!1,oe=Eg(G,!0)):oe=[]:na(G)||Ei(G)?(oe=H,Ei(H)?oe=wv(H):(!vt(H)||En(H))&&(oe=Bg(G))):le=!1}le&&(L.set(G,oe),O(oe,G,_,C,L),L.delete(G)),vu(i,d,oe)}function fg(i,s){var d=i.length;if(d)return s+=s<0?d:0,_n(s,d)?i[s]:r}function pg(i,s,d){s.length?s=dt(s,function(C){return Pe(C)?function(L){return xi(L,C.length===1?C[0]:C)}:C}):s=[tr];var _=-1;s=dt(s,ur(Oe()));var O=cg(i,function(C,L,H){var G=dt(s,function(ie){return ie(C)});return{criteria:G,index:++_,value:C}});return j_(O,function(C,L){return kk(C,L,d)})}function pk(i,s){return hg(i,s,function(d,_){return Qu(i,_)})}function hg(i,s,d){for(var _=-1,O=s.length,C={};++_<O;){var L=s[_],H=xi(i,L);d(H,L)&&Qo(C,qn(L,i),H)}return C}function hk(i){return function(s){return xi(s,i)}}function ku(i,s,d,_){var O=_?z_:Ki,C=-1,L=s.length,H=i;for(i===s&&(s=Jt(s)),d&&(H=dt(i,ur(d)));++C<L;)for(var G=0,ie=s[C],oe=d?d(ie):ie;(G=O(H,oe,G,_))>-1;)H!==i&&Ns.call(H,G,1),Ns.call(i,G,1);return i}function gg(i,s){for(var d=i?s.length:0,_=d-1;d--;){var O=s[d];if(d==_||O!==C){var C=O;_n(O)?Ns.call(i,O,1):Ru(i,O)}}return i}function Ou(i,s){return i+Ls(Zh()*(s-i+1))}function gk(i,s,d,_){for(var O=-1,C=At(Ms((s-i)/(d||1)),0),L=Q(C);C--;)L[_?C:++O]=i,i+=d;return L}function Tu(i,s){var d="";if(!i||s<1||s>ge)return d;do s%2&&(d+=i),s=Ls(s/2),s&&(i+=i);while(s);return d}function De(i,s){return Uu(qg(i,s,tr),i+"")}function vk(i){return Jh(ao(i))}function mk(i,s){var d=ao(i);return Qs(d,wi(s,0,d.length))}function Qo(i,s,d,_){if(!vt(i))return i;s=qn(s,i);for(var O=-1,C=s.length,L=C-1,H=i;H!=null&&++O<C;){var G=Br(s[O]),ie=d;if(G==="__proto__"||G==="constructor"||G==="prototype")return i;if(O!=L){var oe=H[G];ie=_?_(oe,G,H):r,ie===r&&(ie=vt(oe)?oe:_n(s[O+1])?[]:{})}Zo(H,G,ie),H=H[G]}return i}var vg=$s?function(i,s){return $s.set(i,s),i}:tr,bk=Ds?function(i,s){return Ds(i,"toString",{configurable:!0,enumerable:!1,value:td(s),writable:!0})}:tr;function yk(i){return Qs(ao(i))}function Tr(i,s,d){var _=-1,O=i.length;s<0&&(s=-s>O?0:O+s),d=d>O?O:d,d<0&&(d+=O),O=s>d?0:d-s>>>0,s>>>=0;for(var C=Q(O);++_<O;)C[_]=i[_+s];return C}function wk(i,s){var d;return Wn(i,function(_,O,C){return d=s(_,O,C),!d}),!!d}function Us(i,s,d){var _=0,O=i==null?_:i.length;if(typeof s=="number"&&s===s&&O<=J){for(;_<O;){var C=_+O>>>1,L=i[C];L!==null&&!fr(L)&&(d?L<=s:L<s)?_=C+1:O=C}return O}return Au(i,s,tr,d)}function Au(i,s,d,_){var O=0,C=i==null?0:i.length;if(C===0)return 0;s=d(s);for(var L=s!==s,H=s===null,G=fr(s),ie=s===r;O<C;){var oe=Ls((O+C)/2),le=d(i[oe]),ve=le!==r,Se=le===null,Te=le===le,Ne=fr(le);if(L)var Ee=_||Te;else ie?Ee=Te&&(_||ve):H?Ee=Te&&ve&&(_||!Se):G?Ee=Te&&ve&&!Se&&(_||!Ne):Se||Ne?Ee=!1:Ee=_?le<=s:le<s;Ee?O=oe+1:C=oe}return Bt(C,te)}function mg(i,s){for(var d=-1,_=i.length,O=0,C=[];++d<_;){var L=i[d],H=s?s(L):L;if(!d||!Wr(H,G)){var G=H;C[O++]=L===0?0:L}}return C}function bg(i){return typeof i=="number"?i:fr(i)?U:+i}function dr(i){if(typeof i=="string")return i;if(Pe(i))return dt(i,dr)+"";if(fr(i))return Yh?Yh.call(i):"";var s=i+"";return s=="0"&&1/i==-K?"-0":s}function Un(i,s,d){var _=-1,O=_s,C=i.length,L=!0,H=[],G=H;if(d)L=!1,O=nu;else if(C>=o){var ie=s?null:Pk(i);if(ie)return ks(ie);L=!1,O=Wo,G=new yi}else G=s?[]:H;e:for(;++_<C;){var oe=i[_],le=s?s(oe):oe;if(oe=d||oe!==0?oe:0,L&&le===le){for(var ve=G.length;ve--;)if(G[ve]===le)continue e;s&&G.push(le),H.push(oe)}else O(G,le,d)||(G!==H&&G.push(le),H.push(oe))}return H}function Ru(i,s){s=qn(s,i);var d=-1,_=s.length;if(!_)return!0;for(;++d<_;){var O=Br(s[d]);if(O==="__proto__"&&!Ve.call(i,"__proto__")||(O==="constructor"||O==="prototype")&&d<_-1)return!1}var C=Vg(i,s);return C==null||delete C[Br(Ar(s))]}function yg(i,s,d,_){return Qo(i,s,d(xi(i,s)),_)}function qs(i,s,d,_){for(var O=i.length,C=_?O:-1;(_?C--:++C<O)&&s(i[C],C,i););return d?Tr(i,_?0:C,_?C+1:O):Tr(i,_?C+1:0,_?O:C)}function wg(i,s){var d=i;return d instanceof $e&&(d=d.value()),iu(s,function(_,O){return O.func.apply(O.thisArg,Fn([_],O.args))},d)}function Cu(i,s,d){var _=i.length;if(_<2)return _?Un(i[0]):[];for(var O=-1,C=Q(_);++O<_;)for(var L=i[O],H=-1;++H<_;)H!=O&&(C[O]=Yo(C[O]||L,i[H],s,d));return Un(Mt(C,1),s,d)}function xg(i,s,d){for(var _=-1,O=i.length,C=s.length,L={};++_<O;){var H=_<C?s[_]:r;d(L,i[_],H)}return L}function Pu(i){return yt(i)?i:[]}function Iu(i){return typeof i=="function"?i:tr}function qn(i,s){return Pe(i)?i:Hu(i,s)?[i]:Yg(Ge(i))}var xk=De;function Vn(i,s,d){var _=i.length;return d=d===r?_:d,!s&&d>=_?i:Tr(i,s,d)}var Sg=lE||function(i){return Dt.clearTimeout(i)};function _g(i,s){if(s)return i.slice();var d=i.length,_=Uh?Uh(d):new i.constructor(d);return i.copy(_),_}function Nu(i){var s=new i.constructor(i.byteLength);return new Ps(s).set(new Ps(i)),s}function Sk(i,s){var d=s?Nu(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function _k(i){var s=new i.constructor(i.source,ah.exec(i));return s.lastIndex=i.lastIndex,s}function Ek(i){return Ko?ot(Ko.call(i)):{}}function Eg(i,s){var d=s?Nu(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function kg(i,s){if(i!==s){var d=i!==r,_=i===null,O=i===i,C=fr(i),L=s!==r,H=s===null,G=s===s,ie=fr(s);if(!H&&!ie&&!C&&i>s||C&&L&&G&&!H&&!ie||_&&L&&G||!d&&G||!O)return 1;if(!_&&!C&&!ie&&i<s||ie&&d&&O&&!_&&!C||H&&d&&O||!L&&O||!G)return-1}return 0}function kk(i,s,d){for(var _=-1,O=i.criteria,C=s.criteria,L=O.length,H=d.length;++_<L;){var G=kg(O[_],C[_]);if(G){if(_>=H)return G;var ie=d[_];return G*(ie=="desc"?-1:1)}}return i.index-s.index}function Og(i,s,d,_){for(var O=-1,C=i.length,L=d.length,H=-1,G=s.length,ie=At(C-L,0),oe=Q(G+ie),le=!_;++H<G;)oe[H]=s[H];for(;++O<L;)(le||O<C)&&(oe[d[O]]=i[O]);for(;ie--;)oe[H++]=i[O++];return oe}function Tg(i,s,d,_){for(var O=-1,C=i.length,L=-1,H=d.length,G=-1,ie=s.length,oe=At(C-H,0),le=Q(oe+ie),ve=!_;++O<oe;)le[O]=i[O];for(var Se=O;++G<ie;)le[Se+G]=s[G];for(;++L<H;)(ve||O<C)&&(le[Se+d[L]]=i[O++]);return le}function Jt(i,s){var d=-1,_=i.length;for(s||(s=Q(_));++d<_;)s[d]=i[d];return s}function en(i,s,d,_){var O=!d;d||(d={});for(var C=-1,L=s.length;++C<L;){var H=s[C],G=_?_(d[H],i[H],H,d,i):r;G===r&&(G=i[H]),O?Jr(d,H,G):Zo(d,H,G)}return d}function Ok(i,s){return en(i,Fu(i),s)}function Tk(i,s){return en(i,Fg(i),s)}function Vs(i,s){return function(d,_){var O=Pe(d)?I_:ZE,C=s?s():{};return O(d,i,Oe(_,2),C)}}function ro(i){return De(function(s,d){var _=-1,O=d.length,C=O>1?d[O-1]:r,L=O>2?d[2]:r;for(C=i.length>3&&typeof C=="function"?(O--,C):r,L&&Gt(d[0],d[1],L)&&(C=O<3?r:C,O=1),s=ot(s);++_<O;){var H=d[_];H&&i(s,H,_,C)}return s})}function Ag(i,s){return function(d,_){if(d==null)return d;if(!Qt(d))return i(d,_);for(var O=d.length,C=s?O:-1,L=ot(d);(s?C--:++C<O)&&_(L[C],C,L)!==!1;);return d}}function Rg(i){return function(s,d,_){for(var O=-1,C=ot(s),L=_(s),H=L.length;H--;){var G=L[i?H:++O];if(d(C[G],G,C)===!1)break}return s}}function Ak(i,s,d){var _=s&m,O=ea(i);function C(){var L=this&&this!==Dt&&this instanceof C?O:i;return L.apply(_?d:this,arguments)}return C}function Cg(i){return function(s){s=Ge(s);var d=Zi(s)?Fr(s):r,_=d?d[0]:s.charAt(0),O=d?Vn(d,1).join(""):s.slice(1);return _[i]()+O}}function no(i){return function(s){return iu(Rv(Av(s).replace(b_,"")),i,"")}}function ea(i){return function(){var s=arguments;switch(s.length){case 0:return new i;case 1:return new i(s[0]);case 2:return new i(s[0],s[1]);case 3:return new i(s[0],s[1],s[2]);case 4:return new i(s[0],s[1],s[2],s[3]);case 5:return new i(s[0],s[1],s[2],s[3],s[4]);case 6:return new i(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new i(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var d=to(i.prototype),_=i.apply(d,s);return vt(_)?_:d}}function Rk(i,s,d){var _=ea(i);function O(){for(var C=arguments.length,L=Q(C),H=C,G=io(O);H--;)L[H]=arguments[H];var ie=C<3&&L[0]!==G&&L[C-1]!==G?[]:Hn(L,G);if(C-=ie.length,C<d)return Mg(i,s,Gs,O.placeholder,r,L,ie,r,r,d-C);var oe=this&&this!==Dt&&this instanceof O?_:i;return lr(oe,this,L)}return O}function Pg(i){return function(s,d,_){var O=ot(s);if(!Qt(s)){var C=Oe(d,3);s=Ct(s),d=function(H){return C(O[H],H,O)}}var L=i(s,d,_);return L>-1?O[C?s[L]:L]:r}}function Ig(i){return Sn(function(s){var d=s.length,_=d,O=kr.prototype.thru;for(i&&s.reverse();_--;){var C=s[_];if(typeof C!="function")throw new Er(l);if(O&&!L&&Xs(C)=="wrapper")var L=new kr([],!0)}for(_=L?_:d;++_<d;){C=s[_];var H=Xs(C),G=H=="wrapper"?zu(C):r;G&&Bu(G[0])&&G[1]==(P|k|R|$)&&!G[4].length&&G[9]==1?L=L[Xs(G[0])].apply(L,G[3]):L=C.length==1&&Bu(C)?L[H]():L.thru(C)}return function(){var ie=arguments,oe=ie[0];if(L&&ie.length==1&&Pe(oe))return L.plant(oe).value();for(var le=0,ve=d?s[le].apply(this,ie):oe;++le<d;)ve=s[le].call(this,ve);return ve}})}function Gs(i,s,d,_,O,C,L,H,G,ie){var oe=s&P,le=s&m,ve=s&w,Se=s&(k|E),Te=s&V,Ne=ve?r:ea(i);function Ee(){for(var Le=arguments.length,ze=Q(Le),pr=Le;pr--;)ze[pr]=arguments[pr];if(Se)var Kt=io(Ee),hr=H_(ze,Kt);if(_&&(ze=Og(ze,_,O,Se)),C&&(ze=Tg(ze,C,L,Se)),Le-=hr,Se&&Le<ie){var wt=Hn(ze,Kt);return Mg(i,s,Gs,Ee.placeholder,d,ze,wt,H,G,ie-Le)}var Ur=le?d:this,On=ve?Ur[i]:i;return Le=ze.length,H?ze=Zk(ze,H):Te&&Le>1&&ze.reverse(),oe&&G<Le&&(ze.length=G),this&&this!==Dt&&this instanceof Ee&&(On=Ne||ea(On)),On.apply(Ur,ze)}return Ee}function Ng(i,s){return function(d,_){return nk(d,i,s(_),{})}}function Ks(i,s){return function(d,_){var O;if(d===r&&_===r)return s;if(d!==r&&(O=d),_!==r){if(O===r)return _;typeof d=="string"||typeof _=="string"?(d=dr(d),_=dr(_)):(d=bg(d),_=bg(_)),O=i(d,_)}return O}}function Du(i){return Sn(function(s){return s=dt(s,ur(Oe())),De(function(d){var _=this;return i(s,function(O){return lr(O,_,d)})})})}function Zs(i,s){s=s===r?" ":dr(s);var d=s.length;if(d<2)return d?Tu(s,i):s;var _=Tu(s,Ms(i/Yi(s)));return Zi(s)?Vn(Fr(_),0,i).join(""):_.slice(0,i)}function Ck(i,s,d,_){var O=s&m,C=ea(i);function L(){for(var H=-1,G=arguments.length,ie=-1,oe=_.length,le=Q(oe+G),ve=this&&this!==Dt&&this instanceof L?C:i;++ie<oe;)le[ie]=_[ie];for(;G--;)le[ie++]=arguments[++H];return lr(ve,O?d:this,le)}return L}function Dg(i){return function(s,d,_){return _&&typeof _!="number"&&Gt(s,d,_)&&(d=_=r),s=kn(s),d===r?(d=s,s=0):d=kn(d),_=_===r?s<d?1:-1:kn(_),gk(s,d,_,i)}}function Ys(i){return function(s,d){return typeof s=="string"&&typeof d=="string"||(s=Rr(s),d=Rr(d)),i(s,d)}}function Mg(i,s,d,_,O,C,L,H,G,ie){var oe=s&k,le=oe?L:r,ve=oe?r:L,Se=oe?C:r,Te=oe?r:C;s|=oe?R:F,s&=~(oe?F:R),s&x||(s&=-4);var Ne=[i,s,O,Se,le,Te,ve,H,G,ie],Ee=d.apply(r,Ne);return Bu(i)&&Gg(Ee,Ne),Ee.placeholder=_,Kg(Ee,i,s)}function Mu(i){var s=Tt[i];return function(d,_){if(d=Rr(d),_=_==null?0:Bt(Ie(_),292),_&&Kh(d)){var O=(Ge(d)+"e").split("e"),C=s(O[0]+"e"+(+O[1]+_));return O=(Ge(C)+"e").split("e"),+(O[0]+"e"+(+O[1]-_))}return s(d)}}var Pk=Qi&&1/ks(new Qi([,-0]))[1]==K?function(i){return new Qi(i)}:id;function Lg(i){return function(s){var d=Wt(s);return d==nt?du(s):d==Nt?K_(s):F_(s,i(s))}}function xn(i,s,d,_,O,C,L,H){var G=s&w;if(!G&&typeof i!="function")throw new Er(l);var ie=_?_.length:0;if(ie||(s&=-97,_=O=r),L=L===r?L:At(Ie(L),0),H=H===r?H:Ie(H),ie-=O?O.length:0,s&F){var oe=_,le=O;_=O=r}var ve=G?r:zu(i),Se=[i,s,d,_,O,oe,le,C,L,H];if(ve&&Vk(Se,ve),i=Se[0],s=Se[1],d=Se[2],_=Se[3],O=Se[4],H=Se[9]=Se[9]===r?G?0:i.length:At(Se[9]-ie,0),!H&&s&(k|E)&&(s&=-25),!s||s==m)var Te=Ak(i,s,d);else s==k||s==E?Te=Rk(i,s,H):(s==R||s==(m|R))&&!O.length?Te=Ck(i,s,d,_):Te=Gs.apply(r,Se);var Ne=ve?vg:Gg;return Kg(Ne(Te,Se),i,s)}function $g(i,s,d,_){return i===r||Wr(i,Ji[d])&&!Ve.call(_,d)?s:i}function zg(i,s,d,_,O,C){return vt(i)&&vt(s)&&(C.set(s,i),Ws(i,s,r,zg,C),C.delete(s)),i}function Ik(i){return na(i)?r:i}function jg(i,s,d,_,O,C){var L=d&v,H=i.length,G=s.length;if(H!=G&&!(L&&G>H))return!1;var ie=C.get(i),oe=C.get(s);if(ie&&oe)return ie==s&&oe==i;var le=-1,ve=!0,Se=d&y?new yi:r;for(C.set(i,s),C.set(s,i);++le<H;){var Te=i[le],Ne=s[le];if(_)var Ee=L?_(Ne,Te,le,s,i,C):_(Te,Ne,le,i,s,C);if(Ee!==r){if(Ee)continue;ve=!1;break}if(Se){if(!ou(s,function(Le,ze){if(!Wo(Se,ze)&&(Te===Le||O(Te,Le,d,_,C)))return Se.push(ze)})){ve=!1;break}}else if(!(Te===Ne||O(Te,Ne,d,_,C))){ve=!1;break}}return C.delete(i),C.delete(s),ve}function Nk(i,s,d,_,O,C,L){switch(d){case Sr:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case jr:return!(i.byteLength!=s.byteLength||!C(new Ps(i),new Ps(s)));case he:case fe:case gt:return Wr(+i,+s);case Z:return i.name==s.name&&i.message==s.message;case xr:case $r:return i==s+"";case nt:var H=du;case Nt:var G=_&v;if(H||(H=ks),i.size!=s.size&&!G)return!1;var ie=L.get(i);if(ie)return ie==s;_|=y,L.set(i,s);var oe=jg(H(i),H(s),_,O,C,L);return L.delete(i),oe;case Xr:if(Ko)return Ko.call(i)==Ko.call(s)}return!1}function Dk(i,s,d,_,O,C){var L=d&v,H=Lu(i),G=H.length,ie=Lu(s),oe=ie.length;if(G!=oe&&!L)return!1;for(var le=G;le--;){var ve=H[le];if(!(L?ve in s:Ve.call(s,ve)))return!1}var Se=C.get(i),Te=C.get(s);if(Se&&Te)return Se==s&&Te==i;var Ne=!0;C.set(i,s),C.set(s,i);for(var Ee=L;++le<G;){ve=H[le];var Le=i[ve],ze=s[ve];if(_)var pr=L?_(ze,Le,ve,s,i,C):_(Le,ze,ve,i,s,C);if(!(pr===r?Le===ze||O(Le,ze,d,_,C):pr)){Ne=!1;break}Ee||(Ee=ve=="constructor")}if(Ne&&!Ee){var Kt=i.constructor,hr=s.constructor;Kt!=hr&&"constructor"in i&&"constructor"in s&&!(typeof Kt=="function"&&Kt instanceof Kt&&typeof hr=="function"&&hr instanceof hr)&&(Ne=!1)}return C.delete(i),C.delete(s),Ne}function Sn(i){return Uu(qg(i,r,ev),i+"")}function Lu(i){return og(i,Ct,Fu)}function $u(i){return og(i,er,Fg)}var zu=$s?function(i){return $s.get(i)}:id;function Xs(i){for(var s=i.name+"",d=eo[s],_=Ve.call(eo,s)?d.length:0;_--;){var O=d[_],C=O.func;if(C==null||C==i)return O.name}return s}function io(i){var s=Ve.call(A,"placeholder")?A:i;return s.placeholder}function Oe(){var i=A.iteratee||rd;return i=i===rd?lg:i,arguments.length?i(arguments[0],arguments[1]):i}function Js(i,s){var d=i.__data__;return Bk(s)?d[typeof s=="string"?"string":"hash"]:d.map}function ju(i){for(var s=Ct(i),d=s.length;d--;){var _=s[d],O=i[_];s[d]=[_,O,Wg(O)]}return s}function Si(i,s){var d=q_(i,s);return sg(d)?d:r}function Mk(i){var s=Ve.call(i,mi),d=i[mi];try{i[mi]=r;var _=!0}catch{}var O=Rs.call(i);return _&&(s?i[mi]=d:delete i[mi]),O}var Fu=pu?function(i){return i==null?[]:(i=ot(i),jn(pu(i),function(s){return Vh.call(i,s)}))}:od,Fg=pu?function(i){for(var s=[];i;)Fn(s,Fu(i)),i=Is(i);return s}:od,Wt=Vt;(hu&&Wt(new hu(new ArrayBuffer(1)))!=Sr||qo&&Wt(new qo)!=nt||gu&&Wt(gu.resolve())!=Xt||Qi&&Wt(new Qi)!=Nt||Vo&&Wt(new Vo)!=zr)&&(Wt=function(i){var s=Vt(i),d=s==ar?i.constructor:r,_=d?_i(d):"";if(_)switch(_){case mE:return Sr;case bE:return nt;case yE:return Xt;case wE:return Nt;case xE:return zr}return s});function Lk(i,s,d){for(var _=-1,O=d.length;++_<O;){var C=d[_],L=C.size;switch(C.type){case"drop":i+=L;break;case"dropRight":s-=L;break;case"take":s=Bt(s,i+L);break;case"takeRight":i=At(i,s-L);break}}return{start:i,end:s}}function $k(i){var s=i.match(US);return s?s[1].split(qS):[]}function Hg(i,s,d){s=qn(s,i);for(var _=-1,O=s.length,C=!1;++_<O;){var L=Br(s[_]);if(!(C=i!=null&&d(i,L)))break;i=i[L]}return C||++_!=O?C:(O=i==null?0:i.length,!!O&&ol(O)&&_n(L,O)&&(Pe(i)||Ei(i)))}function zk(i){var s=i.length,d=new i.constructor(s);return s&&typeof i[0]=="string"&&Ve.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function Bg(i){return typeof i.constructor=="function"&&!ta(i)?to(Is(i)):{}}function jk(i,s,d){var _=i.constructor;switch(s){case jr:return Nu(i);case he:case fe:return new _(+i);case Sr:return Sk(i,d);case jo:case Hi:case di:case fi:case Fo:case Bi:case Ho:case Wi:case Bo:return Eg(i,d);case nt:return new _;case gt:case $r:return new _(i);case xr:return _k(i);case Nt:return new _;case Xr:return Ek(i)}}function Fk(i,s){var d=s.length;if(!d)return i;var _=d-1;return s[_]=(d>1?"& ":"")+s[_],s=s.join(d>2?", ":" "),i.replace(WS,`{
230
+ /* [wrapped with `+s+`] */
231
+ `)}function Hk(i){return Pe(i)||Ei(i)||!!(Gh&&i&&i[Gh])}function _n(i,s){var d=typeof i;return s=s??ge,!!s&&(d=="number"||d!="symbol"&&QS.test(i))&&i>-1&&i%1==0&&i<s}function Gt(i,s,d){if(!vt(d))return!1;var _=typeof s;return(_=="number"?Qt(d)&&_n(s,d.length):_=="string"&&s in d)?Wr(d[s],i):!1}function Hu(i,s){if(Pe(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||fr(i)?!0:jS.test(i)||!zS.test(i)||s!=null&&i in ot(s)}function Bk(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function Bu(i){var s=Xs(i),d=A[s];if(typeof d!="function"||!(s in $e.prototype))return!1;if(i===d)return!0;var _=zu(d);return!!_&&i===_[0]}function Wk(i){return!!Wh&&Wh in i}var Uk=Ts?En:ad;function ta(i){var s=i&&i.constructor,d=typeof s=="function"&&s.prototype||Ji;return i===d}function Wg(i){return i===i&&!vt(i)}function Ug(i,s){return function(d){return d==null?!1:d[i]===s&&(s!==r||i in ot(d))}}function qk(i){var s=nl(i,function(_){return d.size===g&&d.clear(),_}),d=s.cache;return s}function Vk(i,s){var d=i[1],_=s[1],O=d|_,C=O<(m|w|P),L=_==P&&d==k||_==P&&d==$&&i[7].length<=s[8]||_==(P|$)&&s[7].length<=s[8]&&d==k;if(!(C||L))return i;_&m&&(i[2]=s[2],O|=d&m?0:x);var H=s[3];if(H){var G=i[3];i[3]=G?Og(G,H,s[4]):H,i[4]=G?Hn(i[3],f):s[4]}return H=s[5],H&&(G=i[5],i[5]=G?Tg(G,H,s[6]):H,i[6]=G?Hn(i[5],f):s[6]),H=s[7],H&&(i[7]=H),_&P&&(i[8]=i[8]==null?s[8]:Bt(i[8],s[8])),i[9]==null&&(i[9]=s[9]),i[0]=s[0],i[1]=O,i}function Gk(i){var s=[];if(i!=null)for(var d in ot(i))s.push(d);return s}function Kk(i){return Rs.call(i)}function qg(i,s,d){return s=At(s===r?i.length-1:s,0),function(){for(var _=arguments,O=-1,C=At(_.length-s,0),L=Q(C);++O<C;)L[O]=_[s+O];O=-1;for(var H=Q(s+1);++O<s;)H[O]=_[O];return H[s]=d(L),lr(i,this,H)}}function Vg(i,s){return s.length<2?i:xi(i,Tr(s,0,-1))}function Zk(i,s){for(var d=i.length,_=Bt(s.length,d),O=Jt(i);_--;){var C=s[_];i[_]=_n(C,d)?O[C]:r}return i}function Wu(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var Gg=Zg(vg),ra=uE||function(i,s){return Dt.setTimeout(i,s)},Uu=Zg(bk);function Kg(i,s,d){var _=s+"";return Uu(i,Fk(_,Yk($k(_),d)))}function Zg(i){var s=0,d=0;return function(){var _=hE(),O=W-(_-d);if(d=_,O>0){if(++s>=j)return arguments[0]}else s=0;return i.apply(r,arguments)}}function Qs(i,s){var d=-1,_=i.length,O=_-1;for(s=s===r?_:s;++d<s;){var C=Ou(d,O),L=i[C];i[C]=i[d],i[d]=L}return i.length=s,i}var Yg=qk(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(FS,function(d,_,O,C){s.push(O?C.replace(GS,"$1"):_||d)}),s});function Br(i){if(typeof i=="string"||fr(i))return i;var s=i+"";return s=="0"&&1/i==-K?"-0":s}function _i(i){if(i!=null){try{return As.call(i)}catch{}try{return i+""}catch{}}return""}function Yk(i,s){return cr(ce,function(d){var _="_."+d[0];s&d[1]&&!_s(i,_)&&i.push(_)}),i.sort()}function Xg(i){if(i instanceof $e)return i.clone();var s=new kr(i.__wrapped__,i.__chain__);return s.__actions__=Jt(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}function Xk(i,s,d){(d?Gt(i,s,d):s===r)?s=1:s=At(Ie(s),0);var _=i==null?0:i.length;if(!_||s<1)return[];for(var O=0,C=0,L=Q(Ms(_/s));O<_;)L[C++]=Tr(i,O,O+=s);return L}function Jk(i){for(var s=-1,d=i==null?0:i.length,_=0,O=[];++s<d;){var C=i[s];C&&(O[_++]=C)}return O}function Qk(){var i=arguments.length;if(!i)return[];for(var s=Q(i-1),d=arguments[0],_=i;_--;)s[_-1]=arguments[_];return Fn(Pe(d)?Jt(d):[d],Mt(s,1))}var eO=De(function(i,s){return yt(i)?Yo(i,Mt(s,1,yt,!0)):[]}),tO=De(function(i,s){var d=Ar(s);return yt(d)&&(d=r),yt(i)?Yo(i,Mt(s,1,yt,!0),Oe(d,2)):[]}),rO=De(function(i,s){var d=Ar(s);return yt(d)&&(d=r),yt(i)?Yo(i,Mt(s,1,yt,!0),r,d):[]});function nO(i,s,d){var _=i==null?0:i.length;return _?(s=d||s===r?1:Ie(s),Tr(i,s<0?0:s,_)):[]}function iO(i,s,d){var _=i==null?0:i.length;return _?(s=d||s===r?1:Ie(s),s=_-s,Tr(i,0,s<0?0:s)):[]}function oO(i,s){return i&&i.length?qs(i,Oe(s,3),!0,!0):[]}function aO(i,s){return i&&i.length?qs(i,Oe(s,3),!0):[]}function sO(i,s,d,_){var O=i==null?0:i.length;return O?(d&&typeof d!="number"&&Gt(i,s,d)&&(d=0,_=O),QE(i,s,d,_)):[]}function Jg(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=d==null?0:Ie(d);return O<0&&(O=At(_+O,0)),Es(i,Oe(s,3),O)}function Qg(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=_-1;return d!==r&&(O=Ie(d),O=d<0?At(_+O,0):Bt(O,_-1)),Es(i,Oe(s,3),O,!0)}function ev(i){var s=i==null?0:i.length;return s?Mt(i,1):[]}function lO(i){var s=i==null?0:i.length;return s?Mt(i,K):[]}function cO(i,s){var d=i==null?0:i.length;return d?(s=s===r?1:Ie(s),Mt(i,s)):[]}function uO(i){for(var s=-1,d=i==null?0:i.length,_={};++s<d;){var O=i[s];Jr(_,O[0],O[1])}return _}function tv(i){return i&&i.length?i[0]:r}function dO(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=d==null?0:Ie(d);return O<0&&(O=At(_+O,0)),Ki(i,s,O)}function fO(i){var s=i==null?0:i.length;return s?Tr(i,0,-1):[]}var pO=De(function(i){var s=dt(i,Pu);return s.length&&s[0]===i[0]?xu(s):[]}),hO=De(function(i){var s=Ar(i),d=dt(i,Pu);return s===Ar(d)?s=r:d.pop(),d.length&&d[0]===i[0]?xu(d,Oe(s,2)):[]}),gO=De(function(i){var s=Ar(i),d=dt(i,Pu);return s=typeof s=="function"?s:r,s&&d.pop(),d.length&&d[0]===i[0]?xu(d,r,s):[]});function vO(i,s){return i==null?"":fE.call(i,s)}function Ar(i){var s=i==null?0:i.length;return s?i[s-1]:r}function mO(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=_;return d!==r&&(O=Ie(d),O=O<0?At(_+O,0):Bt(O,_-1)),s===s?Y_(i,s,O):Es(i,Mh,O,!0)}function bO(i,s){return i&&i.length?fg(i,Ie(s)):r}var yO=De(rv);function rv(i,s){return i&&i.length&&s&&s.length?ku(i,s):i}function wO(i,s,d){return i&&i.length&&s&&s.length?ku(i,s,Oe(d,2)):i}function xO(i,s,d){return i&&i.length&&s&&s.length?ku(i,s,r,d):i}var SO=Sn(function(i,s){var d=i==null?0:i.length,_=mu(i,s);return gg(i,dt(s,function(O){return _n(O,d)?+O:O}).sort(kg)),_});function _O(i,s){var d=[];if(!(i&&i.length))return d;var _=-1,O=[],C=i.length;for(s=Oe(s,3);++_<C;){var L=i[_];s(L,_,i)&&(d.push(L),O.push(_))}return gg(i,O),d}function qu(i){return i==null?i:vE.call(i)}function EO(i,s,d){var _=i==null?0:i.length;return _?(d&&typeof d!="number"&&Gt(i,s,d)?(s=0,d=_):(s=s==null?0:Ie(s),d=d===r?_:Ie(d)),Tr(i,s,d)):[]}function kO(i,s){return Us(i,s)}function OO(i,s,d){return Au(i,s,Oe(d,2))}function TO(i,s){var d=i==null?0:i.length;if(d){var _=Us(i,s);if(_<d&&Wr(i[_],s))return _}return-1}function AO(i,s){return Us(i,s,!0)}function RO(i,s,d){return Au(i,s,Oe(d,2),!0)}function CO(i,s){var d=i==null?0:i.length;if(d){var _=Us(i,s,!0)-1;if(Wr(i[_],s))return _}return-1}function PO(i){return i&&i.length?mg(i):[]}function IO(i,s){return i&&i.length?mg(i,Oe(s,2)):[]}function NO(i){var s=i==null?0:i.length;return s?Tr(i,1,s):[]}function DO(i,s,d){return i&&i.length?(s=d||s===r?1:Ie(s),Tr(i,0,s<0?0:s)):[]}function MO(i,s,d){var _=i==null?0:i.length;return _?(s=d||s===r?1:Ie(s),s=_-s,Tr(i,s<0?0:s,_)):[]}function LO(i,s){return i&&i.length?qs(i,Oe(s,3),!1,!0):[]}function $O(i,s){return i&&i.length?qs(i,Oe(s,3)):[]}var zO=De(function(i){return Un(Mt(i,1,yt,!0))}),jO=De(function(i){var s=Ar(i);return yt(s)&&(s=r),Un(Mt(i,1,yt,!0),Oe(s,2))}),FO=De(function(i){var s=Ar(i);return s=typeof s=="function"?s:r,Un(Mt(i,1,yt,!0),r,s)});function HO(i){return i&&i.length?Un(i):[]}function BO(i,s){return i&&i.length?Un(i,Oe(s,2)):[]}function WO(i,s){return s=typeof s=="function"?s:r,i&&i.length?Un(i,r,s):[]}function Vu(i){if(!(i&&i.length))return[];var s=0;return i=jn(i,function(d){if(yt(d))return s=At(d.length,s),!0}),cu(s,function(d){return dt(i,au(d))})}function nv(i,s){if(!(i&&i.length))return[];var d=Vu(i);return s==null?d:dt(d,function(_){return lr(s,r,_)})}var UO=De(function(i,s){return yt(i)?Yo(i,s):[]}),qO=De(function(i){return Cu(jn(i,yt))}),VO=De(function(i){var s=Ar(i);return yt(s)&&(s=r),Cu(jn(i,yt),Oe(s,2))}),GO=De(function(i){var s=Ar(i);return s=typeof s=="function"?s:r,Cu(jn(i,yt),r,s)}),KO=De(Vu);function ZO(i,s){return xg(i||[],s||[],Zo)}function YO(i,s){return xg(i||[],s||[],Qo)}var XO=De(function(i){var s=i.length,d=s>1?i[s-1]:r;return d=typeof d=="function"?(i.pop(),d):r,nv(i,d)});function iv(i){var s=A(i);return s.__chain__=!0,s}function JO(i,s){return s(i),i}function el(i,s){return s(i)}var QO=Sn(function(i){var s=i.length,d=s?i[0]:0,_=this.__wrapped__,O=function(C){return mu(C,i)};return s>1||this.__actions__.length||!(_ instanceof $e)||!_n(d)?this.thru(O):(_=_.slice(d,+d+(s?1:0)),_.__actions__.push({func:el,args:[O],thisArg:r}),new kr(_,this.__chain__).thru(function(C){return s&&!C.length&&C.push(r),C}))});function eT(){return iv(this)}function tT(){return new kr(this.value(),this.__chain__)}function rT(){this.__values__===r&&(this.__values__=bv(this.value()));var i=this.__index__>=this.__values__.length,s=i?r:this.__values__[this.__index__++];return{done:i,value:s}}function nT(){return this}function iT(i){for(var s,d=this;d instanceof js;){var _=Xg(d);_.__index__=0,_.__values__=r,s?O.__wrapped__=_:s=_;var O=_;d=d.__wrapped__}return O.__wrapped__=i,s}function oT(){var i=this.__wrapped__;if(i instanceof $e){var s=i;return this.__actions__.length&&(s=new $e(this)),s=s.reverse(),s.__actions__.push({func:el,args:[qu],thisArg:r}),new kr(s,this.__chain__)}return this.thru(qu)}function aT(){return wg(this.__wrapped__,this.__actions__)}var sT=Vs(function(i,s,d){Ve.call(i,d)?++i[d]:Jr(i,d,1)});function lT(i,s,d){var _=Pe(i)?Nh:JE;return d&&Gt(i,s,d)&&(s=r),_(i,Oe(s,3))}function cT(i,s){var d=Pe(i)?jn:ng;return d(i,Oe(s,3))}var uT=Pg(Jg),dT=Pg(Qg);function fT(i,s){return Mt(tl(i,s),1)}function pT(i,s){return Mt(tl(i,s),K)}function hT(i,s,d){return d=d===r?1:Ie(d),Mt(tl(i,s),d)}function ov(i,s){var d=Pe(i)?cr:Wn;return d(i,Oe(s,3))}function av(i,s){var d=Pe(i)?N_:rg;return d(i,Oe(s,3))}var gT=Vs(function(i,s,d){Ve.call(i,d)?i[d].push(s):Jr(i,d,[s])});function vT(i,s,d,_){i=Qt(i)?i:ao(i),d=d&&!_?Ie(d):0;var O=i.length;return d<0&&(d=At(O+d,0)),al(i)?d<=O&&i.indexOf(s,d)>-1:!!O&&Ki(i,s,d)>-1}var mT=De(function(i,s,d){var _=-1,O=typeof s=="function",C=Qt(i)?Q(i.length):[];return Wn(i,function(L){C[++_]=O?lr(s,L,d):Xo(L,s,d)}),C}),bT=Vs(function(i,s,d){Jr(i,d,s)});function tl(i,s){var d=Pe(i)?dt:cg;return d(i,Oe(s,3))}function yT(i,s,d,_){return i==null?[]:(Pe(s)||(s=s==null?[]:[s]),d=_?r:d,Pe(d)||(d=d==null?[]:[d]),pg(i,s,d))}var wT=Vs(function(i,s,d){i[d?0:1].push(s)},function(){return[[],[]]});function xT(i,s,d){var _=Pe(i)?iu:$h,O=arguments.length<3;return _(i,Oe(s,4),d,O,Wn)}function ST(i,s,d){var _=Pe(i)?D_:$h,O=arguments.length<3;return _(i,Oe(s,4),d,O,rg)}function _T(i,s){var d=Pe(i)?jn:ng;return d(i,il(Oe(s,3)))}function ET(i){var s=Pe(i)?Jh:vk;return s(i)}function kT(i,s,d){(d?Gt(i,s,d):s===r)?s=1:s=Ie(s);var _=Pe(i)?GE:mk;return _(i,s)}function OT(i){var s=Pe(i)?KE:yk;return s(i)}function TT(i){if(i==null)return 0;if(Qt(i))return al(i)?Yi(i):i.length;var s=Wt(i);return s==nt||s==Nt?i.size:_u(i).length}function AT(i,s,d){var _=Pe(i)?ou:wk;return d&&Gt(i,s,d)&&(s=r),_(i,Oe(s,3))}var RT=De(function(i,s){if(i==null)return[];var d=s.length;return d>1&&Gt(i,s[0],s[1])?s=[]:d>2&&Gt(s[0],s[1],s[2])&&(s=[s[0]]),pg(i,Mt(s,1),[])}),rl=cE||function(){return Dt.Date.now()};function CT(i,s){if(typeof s!="function")throw new Er(l);return i=Ie(i),function(){if(--i<1)return s.apply(this,arguments)}}function sv(i,s,d){return s=d?r:s,s=i&&s==null?i.length:s,xn(i,P,r,r,r,r,s)}function lv(i,s){var d;if(typeof s!="function")throw new Er(l);return i=Ie(i),function(){return--i>0&&(d=s.apply(this,arguments)),i<=1&&(s=r),d}}var Gu=De(function(i,s,d){var _=m;if(d.length){var O=Hn(d,io(Gu));_|=R}return xn(i,_,s,d,O)}),cv=De(function(i,s,d){var _=m|w;if(d.length){var O=Hn(d,io(cv));_|=R}return xn(s,_,i,d,O)});function uv(i,s,d){s=d?r:s;var _=xn(i,k,r,r,r,r,r,s);return _.placeholder=uv.placeholder,_}function dv(i,s,d){s=d?r:s;var _=xn(i,E,r,r,r,r,r,s);return _.placeholder=dv.placeholder,_}function fv(i,s,d){var _,O,C,L,H,G,ie=0,oe=!1,le=!1,ve=!0;if(typeof i!="function")throw new Er(l);s=Rr(s)||0,vt(d)&&(oe=!!d.leading,le="maxWait"in d,C=le?At(Rr(d.maxWait)||0,s):C,ve="trailing"in d?!!d.trailing:ve);function Se(wt){var Ur=_,On=O;return _=O=r,ie=wt,L=i.apply(On,Ur),L}function Te(wt){return ie=wt,H=ra(Le,s),oe?Se(wt):L}function Ne(wt){var Ur=wt-G,On=wt-ie,Iv=s-Ur;return le?Bt(Iv,C-On):Iv}function Ee(wt){var Ur=wt-G,On=wt-ie;return G===r||Ur>=s||Ur<0||le&&On>=C}function Le(){var wt=rl();if(Ee(wt))return ze(wt);H=ra(Le,Ne(wt))}function ze(wt){return H=r,ve&&_?Se(wt):(_=O=r,L)}function pr(){H!==r&&Sg(H),ie=0,_=G=O=H=r}function Kt(){return H===r?L:ze(rl())}function hr(){var wt=rl(),Ur=Ee(wt);if(_=arguments,O=this,G=wt,Ur){if(H===r)return Te(G);if(le)return Sg(H),H=ra(Le,s),Se(G)}return H===r&&(H=ra(Le,s)),L}return hr.cancel=pr,hr.flush=Kt,hr}var PT=De(function(i,s){return tg(i,1,s)}),IT=De(function(i,s,d){return tg(i,Rr(s)||0,d)});function NT(i){return xn(i,V)}function nl(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new Er(l);var d=function(){var _=arguments,O=s?s.apply(this,_):_[0],C=d.cache;if(C.has(O))return C.get(O);var L=i.apply(this,_);return d.cache=C.set(O,L)||C,L};return d.cache=new(nl.Cache||wn),d}nl.Cache=wn;function il(i){if(typeof i!="function")throw new Er(l);return function(){var s=arguments;switch(s.length){case 0:return!i.call(this);case 1:return!i.call(this,s[0]);case 2:return!i.call(this,s[0],s[1]);case 3:return!i.call(this,s[0],s[1],s[2])}return!i.apply(this,s)}}function DT(i){return lv(2,i)}var MT=xk(function(i,s){s=s.length==1&&Pe(s[0])?dt(s[0],ur(Oe())):dt(Mt(s,1),ur(Oe()));var d=s.length;return De(function(_){for(var O=-1,C=Bt(_.length,d);++O<C;)_[O]=s[O].call(this,_[O]);return lr(i,this,_)})}),Ku=De(function(i,s){var d=Hn(s,io(Ku));return xn(i,R,r,s,d)}),pv=De(function(i,s){var d=Hn(s,io(pv));return xn(i,F,r,s,d)}),LT=Sn(function(i,s){return xn(i,$,r,r,r,s)});function $T(i,s){if(typeof i!="function")throw new Er(l);return s=s===r?s:Ie(s),De(i,s)}function zT(i,s){if(typeof i!="function")throw new Er(l);return s=s==null?0:At(Ie(s),0),De(function(d){var _=d[s],O=Vn(d,0,s);return _&&Fn(O,_),lr(i,this,O)})}function jT(i,s,d){var _=!0,O=!0;if(typeof i!="function")throw new Er(l);return vt(d)&&(_="leading"in d?!!d.leading:_,O="trailing"in d?!!d.trailing:O),fv(i,s,{leading:_,maxWait:s,trailing:O})}function FT(i){return sv(i,1)}function HT(i,s){return Ku(Iu(s),i)}function BT(){if(!arguments.length)return[];var i=arguments[0];return Pe(i)?i:[i]}function WT(i){return Or(i,S)}function UT(i,s){return s=typeof s=="function"?s:r,Or(i,S,s)}function qT(i){return Or(i,h|S)}function VT(i,s){return s=typeof s=="function"?s:r,Or(i,h|S,s)}function GT(i,s){return s==null||eg(i,s,Ct(s))}function Wr(i,s){return i===s||i!==i&&s!==s}var KT=Ys(wu),ZT=Ys(function(i,s){return i>=s}),Ei=ag((function(){return arguments})())?ag:function(i){return bt(i)&&Ve.call(i,"callee")&&!Vh.call(i,"callee")},Pe=Q.isArray,YT=Th?ur(Th):ik;function Qt(i){return i!=null&&ol(i.length)&&!En(i)}function yt(i){return bt(i)&&Qt(i)}function XT(i){return i===!0||i===!1||bt(i)&&Vt(i)==he}var Gn=dE||ad,JT=Ah?ur(Ah):ok;function QT(i){return bt(i)&&i.nodeType===1&&!na(i)}function eA(i){if(i==null)return!0;if(Qt(i)&&(Pe(i)||typeof i=="string"||typeof i.splice=="function"||Gn(i)||oo(i)||Ei(i)))return!i.length;var s=Wt(i);if(s==nt||s==Nt)return!i.size;if(ta(i))return!_u(i).length;for(var d in i)if(Ve.call(i,d))return!1;return!0}function tA(i,s){return Jo(i,s)}function rA(i,s,d){d=typeof d=="function"?d:r;var _=d?d(i,s):r;return _===r?Jo(i,s,r,d):!!_}function Zu(i){if(!bt(i))return!1;var s=Vt(i);return s==Z||s==xe||typeof i.message=="string"&&typeof i.name=="string"&&!na(i)}function nA(i){return typeof i=="number"&&Kh(i)}function En(i){if(!vt(i))return!1;var s=Vt(i);return s==ke||s==me||s==de||s==sr}function hv(i){return typeof i=="number"&&i==Ie(i)}function ol(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=ge}function vt(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function bt(i){return i!=null&&typeof i=="object"}var gv=Rh?ur(Rh):sk;function iA(i,s){return i===s||Su(i,s,ju(s))}function oA(i,s,d){return d=typeof d=="function"?d:r,Su(i,s,ju(s),d)}function aA(i){return vv(i)&&i!=+i}function sA(i){if(Uk(i))throw new Re(a);return sg(i)}function lA(i){return i===null}function cA(i){return i==null}function vv(i){return typeof i=="number"||bt(i)&&Vt(i)==gt}function na(i){if(!bt(i)||Vt(i)!=ar)return!1;var s=Is(i);if(s===null)return!0;var d=Ve.call(s,"constructor")&&s.constructor;return typeof d=="function"&&d instanceof d&&As.call(d)==oE}var Yu=Ch?ur(Ch):lk;function uA(i){return hv(i)&&i>=-ge&&i<=ge}var mv=Ph?ur(Ph):ck;function al(i){return typeof i=="string"||!Pe(i)&&bt(i)&&Vt(i)==$r}function fr(i){return typeof i=="symbol"||bt(i)&&Vt(i)==Xr}var oo=Ih?ur(Ih):uk;function dA(i){return i===r}function fA(i){return bt(i)&&Wt(i)==zr}function pA(i){return bt(i)&&Vt(i)==ui}var hA=Ys(Eu),gA=Ys(function(i,s){return i<=s});function bv(i){if(!i)return[];if(Qt(i))return al(i)?Fr(i):Jt(i);if(Uo&&i[Uo])return G_(i[Uo]());var s=Wt(i),d=s==nt?du:s==Nt?ks:ao;return d(i)}function kn(i){if(!i)return i===0?i:0;if(i=Rr(i),i===K||i===-K){var s=i<0?-1:1;return s*D}return i===i?i:0}function Ie(i){var s=kn(i),d=s%1;return s===s?d?s-d:s:0}function yv(i){return i?wi(Ie(i),0,ee):0}function Rr(i){if(typeof i=="number")return i;if(fr(i))return U;if(vt(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=vt(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=zh(i);var d=YS.test(i);return d||JS.test(i)?C_(i.slice(2),d?2:8):ZS.test(i)?U:+i}function wv(i){return en(i,er(i))}function vA(i){return i?wi(Ie(i),-ge,ge):i===0?i:0}function Ge(i){return i==null?"":dr(i)}var mA=ro(function(i,s){if(ta(s)||Qt(s)){en(s,Ct(s),i);return}for(var d in s)Ve.call(s,d)&&Zo(i,d,s[d])}),xv=ro(function(i,s){en(s,er(s),i)}),Sv=ro(function(i,s,d,_){en(s,er(s),i,_)}),Xu=ro(function(i,s,d,_){en(s,Ct(s),i,_)}),bA=Sn(mu);function yA(i,s){var d=to(i);return s==null?d:Qh(d,s)}var wA=De(function(i,s){i=ot(i);var d=-1,_=s.length,O=_>2?s[2]:r;for(O&&Gt(s[0],s[1],O)&&(_=1);++d<_;)for(var C=s[d],L=er(C),H=-1,G=L.length;++H<G;){var ie=L[H],oe=i[ie];(oe===r||Wr(oe,Ji[ie])&&!Ve.call(i,ie))&&(i[ie]=C[ie])}return i}),xA=De(function(i){return i.push(r,zg),lr(_v,r,i)});function SA(i,s){return Dh(i,Oe(s,3),Qr)}function _A(i,s){return Dh(i,Oe(s,3),yu)}function EA(i,s){return i==null?i:bu(i,Oe(s,3),er)}function kA(i,s){return i==null?i:ig(i,Oe(s,3),er)}function OA(i,s){return i&&Qr(i,Oe(s,3))}function TA(i,s){return i&&yu(i,Oe(s,3))}function AA(i){return i==null?[]:Bs(i,Ct(i))}function RA(i){return i==null?[]:Bs(i,er(i))}function Ju(i,s,d){var _=i==null?r:xi(i,s);return _===r?d:_}function CA(i,s){return i!=null&&Hg(i,s,ek)}function Qu(i,s){return i!=null&&Hg(i,s,tk)}var PA=Ng(function(i,s,d){s!=null&&typeof s.toString!="function"&&(s=Rs.call(s)),i[s]=d},td(tr)),IA=Ng(function(i,s,d){s!=null&&typeof s.toString!="function"&&(s=Rs.call(s)),Ve.call(i,s)?i[s].push(d):i[s]=[d]},Oe),NA=De(Xo);function Ct(i){return Qt(i)?Xh(i):_u(i)}function er(i){return Qt(i)?Xh(i,!0):dk(i)}function DA(i,s){var d={};return s=Oe(s,3),Qr(i,function(_,O,C){Jr(d,s(_,O,C),_)}),d}function MA(i,s){var d={};return s=Oe(s,3),Qr(i,function(_,O,C){Jr(d,O,s(_,O,C))}),d}var LA=ro(function(i,s,d){Ws(i,s,d)}),_v=ro(function(i,s,d,_){Ws(i,s,d,_)}),$A=Sn(function(i,s){var d={};if(i==null)return d;var _=!1;s=dt(s,function(C){return C=qn(C,i),_||(_=C.length>1),C}),en(i,$u(i),d),_&&(d=Or(d,h|b|S,Ik));for(var O=s.length;O--;)Ru(d,s[O]);return d});function zA(i,s){return Ev(i,il(Oe(s)))}var jA=Sn(function(i,s){return i==null?{}:pk(i,s)});function Ev(i,s){if(i==null)return{};var d=dt($u(i),function(_){return[_]});return s=Oe(s),hg(i,d,function(_,O){return s(_,O[0])})}function FA(i,s,d){s=qn(s,i);var _=-1,O=s.length;for(O||(O=1,i=r);++_<O;){var C=i==null?r:i[Br(s[_])];C===r&&(_=O,C=d),i=En(C)?C.call(i):C}return i}function HA(i,s,d){return i==null?i:Qo(i,s,d)}function BA(i,s,d,_){return _=typeof _=="function"?_:r,i==null?i:Qo(i,s,d,_)}var kv=Lg(Ct),Ov=Lg(er);function WA(i,s,d){var _=Pe(i),O=_||Gn(i)||oo(i);if(s=Oe(s,4),d==null){var C=i&&i.constructor;O?d=_?new C:[]:vt(i)?d=En(C)?to(Is(i)):{}:d={}}return(O?cr:Qr)(i,function(L,H,G){return s(d,L,H,G)}),d}function UA(i,s){return i==null?!0:Ru(i,s)}function qA(i,s,d){return i==null?i:yg(i,s,Iu(d))}function VA(i,s,d,_){return _=typeof _=="function"?_:r,i==null?i:yg(i,s,Iu(d),_)}function ao(i){return i==null?[]:uu(i,Ct(i))}function GA(i){return i==null?[]:uu(i,er(i))}function KA(i,s,d){return d===r&&(d=s,s=r),d!==r&&(d=Rr(d),d=d===d?d:0),s!==r&&(s=Rr(s),s=s===s?s:0),wi(Rr(i),s,d)}function ZA(i,s,d){return s=kn(s),d===r?(d=s,s=0):d=kn(d),i=Rr(i),rk(i,s,d)}function YA(i,s,d){if(d&&typeof d!="boolean"&&Gt(i,s,d)&&(s=d=r),d===r&&(typeof s=="boolean"?(d=s,s=r):typeof i=="boolean"&&(d=i,i=r)),i===r&&s===r?(i=0,s=1):(i=kn(i),s===r?(s=i,i=0):s=kn(s)),i>s){var _=i;i=s,s=_}if(d||i%1||s%1){var O=Zh();return Bt(i+O*(s-i+R_("1e-"+((O+"").length-1))),s)}return Ou(i,s)}var XA=no(function(i,s,d){return s=s.toLowerCase(),i+(d?Tv(s):s)});function Tv(i){return ed(Ge(i).toLowerCase())}function Av(i){return i=Ge(i),i&&i.replace(e_,B_).replace(y_,"")}function JA(i,s,d){i=Ge(i),s=dr(s);var _=i.length;d=d===r?_:wi(Ie(d),0,_);var O=d;return d-=s.length,d>=0&&i.slice(d,O)==s}function QA(i){return i=Ge(i),i&&Ui.test(i)?i.replace(pi,W_):i}function eR(i){return i=Ge(i),i&&HS.test(i)?i.replace(Kc,"\\$&"):i}var tR=no(function(i,s,d){return i+(d?"-":"")+s.toLowerCase()}),rR=no(function(i,s,d){return i+(d?" ":"")+s.toLowerCase()}),nR=Cg("toLowerCase");function iR(i,s,d){i=Ge(i),s=Ie(s);var _=s?Yi(i):0;if(!s||_>=s)return i;var O=(s-_)/2;return Zs(Ls(O),d)+i+Zs(Ms(O),d)}function oR(i,s,d){i=Ge(i),s=Ie(s);var _=s?Yi(i):0;return s&&_<s?i+Zs(s-_,d):i}function aR(i,s,d){i=Ge(i),s=Ie(s);var _=s?Yi(i):0;return s&&_<s?Zs(s-_,d)+i:i}function sR(i,s,d){return d||s==null?s=0:s&&(s=+s),gE(Ge(i).replace(Zc,""),s||0)}function lR(i,s,d){return(d?Gt(i,s,d):s===r)?s=1:s=Ie(s),Tu(Ge(i),s)}function cR(){var i=arguments,s=Ge(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var uR=no(function(i,s,d){return i+(d?"_":"")+s.toLowerCase()});function dR(i,s,d){return d&&typeof d!="number"&&Gt(i,s,d)&&(s=d=r),d=d===r?ee:d>>>0,d?(i=Ge(i),i&&(typeof s=="string"||s!=null&&!Yu(s))&&(s=dr(s),!s&&Zi(i))?Vn(Fr(i),0,d):i.split(s,d)):[]}var fR=no(function(i,s,d){return i+(d?" ":"")+ed(s)});function pR(i,s,d){return i=Ge(i),d=d==null?0:wi(Ie(d),0,i.length),s=dr(s),i.slice(d,d+s.length)==s}function hR(i,s,d){var _=A.templateSettings;d&&Gt(i,s,d)&&(s=r),i=Ge(i),s=Xu({},s,_,$g);var O=Xu({},s.imports,_.imports,$g),C=Ct(O),L=uu(O,C);cr(C,function(Ee){if(oh.test(Ee))throw new Re(u)});var H,G,ie=0,oe=s.interpolate||ws,le="__p += '",ve=fu((s.escape||ws).source+"|"+oe.source+"|"+(oe===Vi?KS:ws).source+"|"+(s.evaluate||ws).source+"|$","g"),Se="//# sourceURL="+(Ve.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++E_+"]")+`
232
+ `;i.replace(ve,function(Ee,Le,ze,pr,Kt,hr){return ze||(ze=pr),le+=i.slice(ie,hr).replace(t_,U_),Le&&(H=!0,le+=`' +
233
+ __e(`+Le+`) +
234
+ '`),Kt&&(G=!0,le+=`';
235
+ `+Kt+`;
236
+ __p += '`),ze&&(le+=`' +
237
+ ((__t = (`+ze+`)) == null ? '' : __t) +
238
+ '`),ie=hr+Ee.length,Ee}),le+=`';
239
+ `;var Te=Ve.call(s,"variable")&&s.variable;if(!Te)le=`with (obj) {
240
+ `+le+`
194
241
  }
195
- `;else if(Tb.test(he))throw new be(c);ee=(B?ee.replace(lb,""):ee).replace(cb,"$1").replace(fb,"$1;"),ee="function("+(he||"obj")+`) {
196
- `+(he?"":`obj || (obj = {});
197
- `)+"var __t, __p = ''"+(L?", __e = _.escape":"")+(B?`, __j = Array.prototype.join;
242
+ `;else if(oh.test(Te))throw new Re(c);le=(G?le.replace(Fe,""):le).replace(Be,"$1").replace(Ht,"$1;"),le="function("+(Te||"obj")+`) {
243
+ `+(Te?"":`obj || (obj = {});
244
+ `)+"var __t, __p = ''"+(H?", __e = _.escape":"")+(G?`, __j = Array.prototype.join;
198
245
  function print() { __p += __j.call(arguments, '') }
199
246
  `:`;
200
- `)+ee+`return __p
201
- }`;var Se=vh(function(){return Ce(A,le+"return "+ee).apply(r,P)});if(Se.source=ee,gl(Se))throw Se;return Se}function K_(n){return Ie(n).toLowerCase()}function Y_(n){return Ie(n).toUpperCase()}function X_(n,o,l){if(n=Ie(n),n&&(l||o===r))return Od(n);if(!n||!(o=zt(o)))return n;var b=cr(n),_=cr(o),A=Ad(b,_),P=Rd(b,_)+1;return ln(b,A,P).join("")}function J_(n,o,l){if(n=Ie(n),n&&(l||o===r))return n.slice(0,Cd(n)+1);if(!n||!(o=zt(o)))return n;var b=cr(n),_=Rd(b,cr(o))+1;return ln(b,0,_).join("")}function Q_(n,o,l){if(n=Ie(n),n&&(l||o===r))return n.replace(gu,"");if(!n||!(o=zt(o)))return n;var b=cr(n),_=Ad(b,cr(o));return ln(b,_).join("")}function eT(n,o){var l=G,b=j;if(Xe(o)){var _="separator"in o?o.separator:_;l="length"in o?xe(o.length):l,b="omission"in o?zt(o.omission):b}n=Ie(n);var A=n.length;if(ri(n)){var P=cr(n);A=P.length}if(l>=A)return n;var L=l-ni(b);if(L<1)return b;var B=P?ln(P,0,L).join(""):n.slice(0,L);if(_===r)return B+b;if(P&&(L+=B.length-L),ml(_)){if(n.slice(L).search(_)){var K,X=B;for(_.global||(_=Iu(_.source,Ie(Vf.exec(_))+"g")),_.lastIndex=0;K=_.exec(X);)var ee=K.index;B=B.slice(0,ee===r?L:ee)}}else if(n.indexOf(zt(_),L)!=L){var oe=B.lastIndexOf(_);oe>-1&&(B=B.slice(0,oe))}return B+b}function tT(n){return n=Ie(n),n&&db.test(n)?n.replace(qf,Cw):n}var rT=ci(function(n,o,l){return n+(l?" ":"")+o.toUpperCase()}),bl=yp("toUpperCase");function mh(n,o,l){return n=Ie(n),o=l?r:o,o===r?Tw(n)?$w(n):mw(n):n.match(o)||[]}var vh=_e(function(n,o){try{return Ft(n,r,o)}catch(l){return gl(l)?l:new be(l)}}),nT=zr(function(n,o){return Xt(o,function(l){l=Sr(l),Fr(n,l,pl(n[l],n))}),n});function iT(n){var o=n==null?0:n.length,l=pe();return n=o?Ze(n,function(b){if(typeof b[1]!="function")throw new Jt(u);return[l(b[0]),b[1]]}):[],_e(function(b){for(var _=-1;++_<o;){var A=n[_];if(Ft(A[0],this,b))return Ft(A[1],this,b)}})}function oT(n){return C1(er(n,h))}function wl(n){return function(){return n}}function sT(n,o){return n==null||n!==n?o:n}var aT=wp(),uT=wp(!0);function Lt(n){return n}function xl(n){return Yd(typeof n=="function"?n:er(n,h))}function lT(n){return Jd(er(n,h))}function cT(n,o){return Qd(n,er(o,h))}var fT=_e(function(n,o){return function(l){return Bi(l,n,o)}}),dT=_e(function(n,o){return function(l){return Bi(n,l,o)}});function Sl(n,o,l){var b=dt(o),_=Ss(o,b);l==null&&!(Xe(o)&&(_.length||!b.length))&&(l=o,o=n,n=this,_=Ss(o,dt(o)));var A=!(Xe(l)&&"chain"in l)||!!l.chain,P=Ur(n);return Xt(_,function(L){var B=o[L];n[L]=B,P&&(n.prototype[L]=function(){var K=this.__chain__;if(A||K){var X=n(this.__wrapped__),ee=X.__actions__=kt(this.__actions__);return ee.push({func:B,args:arguments,thisArg:n}),X.__chain__=K,X}return B.apply(n,rn([this.value()],arguments))})}),n}function pT(){return ht._===this&&(ht._=jw),this}function El(){}function hT(n){return n=xe(n),_e(function(o){return ep(o,n)})}var gT=el(Ze),mT=el(xd),vT=el(Tu);function yh(n){return al(n)?Ou(Sr(n)):G1(n)}function yT(n){return function(o){return n==null?r:Cn(n,o)}}var bT=Sp(),wT=Sp(!0);function _l(){return[]}function Tl(){return!1}function xT(){return{}}function ST(){return""}function ET(){return!0}function _T(n,o){if(n=xe(n),n<1||n>te)return[];var l=Q,b=xt(n,Q);o=pe(o),n-=Q;for(var _=Pu(b,o);++l<n;)o(l);return _}function TT(n){return we(n)?Ze(n,Sr):Bt(n)?[n]:kt(Fp(Ie(n)))}function OT(n){var o=++Nw;return Ie(n)+o}var AT=Rs(function(n,o){return n+o},0),RT=tl("ceil"),PT=Rs(function(n,o){return n/o},1),CT=tl("floor");function kT(n){return n&&n.length?xs(n,Lt,zu):r}function IT(n,o){return n&&n.length?xs(n,pe(o,2),zu):r}function $T(n){return _d(n,Lt)}function LT(n,o){return _d(n,pe(o,2))}function MT(n){return n&&n.length?xs(n,Lt,Hu):r}function DT(n,o){return n&&n.length?xs(n,pe(o,2),Hu):r}var NT=Rs(function(n,o){return n*o},1),FT=tl("round"),jT=Rs(function(n,o){return n-o},0);function zT(n){return n&&n.length?Ru(n,Lt):0}function BT(n,o){return n&&n.length?Ru(n,pe(o,2)):0}return O.after=lE,O.ary=Kp,O.assign=YE,O.assignIn=lh,O.assignInWith=Bs,O.assignWith=XE,O.at=JE,O.before=Yp,O.bind=pl,O.bindAll=nT,O.bindKey=Xp,O.castArray=xE,O.chain=Zp,O.chunk=Cx,O.compact=kx,O.concat=Ix,O.cond=iT,O.conforms=oT,O.constant=wl,O.countBy=zS,O.create=QE,O.curry=Jp,O.curryRight=Qp,O.debounce=eh,O.defaults=e_,O.defaultsDeep=t_,O.defer=cE,O.delay=fE,O.difference=$x,O.differenceBy=Lx,O.differenceWith=Mx,O.drop=Dx,O.dropRight=Nx,O.dropRightWhile=Fx,O.dropWhile=jx,O.fill=zx,O.filter=US,O.flatMap=qS,O.flatMapDeep=ZS,O.flatMapDepth=GS,O.flatten=Up,O.flattenDeep=Bx,O.flattenDepth=Ux,O.flip=dE,O.flow=aT,O.flowRight=uT,O.fromPairs=Wx,O.functions=u_,O.functionsIn=l_,O.groupBy=VS,O.initial=qx,O.intersection=Zx,O.intersectionBy=Gx,O.intersectionWith=Vx,O.invert=f_,O.invertBy=d_,O.invokeMap=YS,O.iteratee=xl,O.keyBy=XS,O.keys=dt,O.keysIn=$t,O.map=Ms,O.mapKeys=h_,O.mapValues=g_,O.matches=lT,O.matchesProperty=cT,O.memoize=Ns,O.merge=m_,O.mergeWith=ch,O.method=fT,O.methodOf=dT,O.mixin=Sl,O.negate=Fs,O.nthArg=hT,O.omit=v_,O.omitBy=y_,O.once=pE,O.orderBy=JS,O.over=gT,O.overArgs=hE,O.overEvery=mT,O.overSome=vT,O.partial=hl,O.partialRight=th,O.partition=QS,O.pick=b_,O.pickBy=fh,O.property=yh,O.propertyOf=yT,O.pull=Jx,O.pullAll=Hp,O.pullAllBy=Qx,O.pullAllWith=eS,O.pullAt=tS,O.range=bT,O.rangeRight=wT,O.rearg=gE,O.reject=rE,O.remove=rS,O.rest=mE,O.reverse=fl,O.sampleSize=iE,O.set=x_,O.setWith=S_,O.shuffle=oE,O.slice=nS,O.sortBy=uE,O.sortedUniq=cS,O.sortedUniqBy=fS,O.split=q_,O.spread=vE,O.tail=dS,O.take=pS,O.takeRight=hS,O.takeRightWhile=gS,O.takeWhile=mS,O.tap=kS,O.throttle=yE,O.thru=Ls,O.toArray=sh,O.toPairs=dh,O.toPairsIn=ph,O.toPath=TT,O.toPlainObject=uh,O.transform=E_,O.unary=bE,O.union=vS,O.unionBy=yS,O.unionWith=bS,O.uniq=wS,O.uniqBy=xS,O.uniqWith=SS,O.unset=__,O.unzip=dl,O.unzipWith=qp,O.update=T_,O.updateWith=O_,O.values=pi,O.valuesIn=A_,O.without=ES,O.words=mh,O.wrap=wE,O.xor=_S,O.xorBy=TS,O.xorWith=OS,O.zip=AS,O.zipObject=RS,O.zipObjectDeep=PS,O.zipWith=CS,O.entries=dh,O.entriesIn=ph,O.extend=lh,O.extendWith=Bs,Sl(O,O),O.add=AT,O.attempt=vh,O.camelCase=k_,O.capitalize=hh,O.ceil=RT,O.clamp=R_,O.clone=SE,O.cloneDeep=_E,O.cloneDeepWith=TE,O.cloneWith=EE,O.conformsTo=OE,O.deburr=gh,O.defaultTo=sT,O.divide=PT,O.endsWith=I_,O.eq=dr,O.escape=$_,O.escapeRegExp=L_,O.every=BS,O.find=WS,O.findIndex=zp,O.findKey=r_,O.findLast=HS,O.findLastIndex=Bp,O.findLastKey=n_,O.floor=CT,O.forEach=Gp,O.forEachRight=Vp,O.forIn=i_,O.forInRight=o_,O.forOwn=s_,O.forOwnRight=a_,O.get=vl,O.gt=AE,O.gte=RE,O.has=c_,O.hasIn=yl,O.head=Wp,O.identity=Lt,O.includes=KS,O.indexOf=Hx,O.inRange=P_,O.invoke=p_,O.isArguments=$n,O.isArray=we,O.isArrayBuffer=PE,O.isArrayLike=It,O.isArrayLikeObject=nt,O.isBoolean=CE,O.isBuffer=cn,O.isDate=kE,O.isElement=IE,O.isEmpty=$E,O.isEqual=LE,O.isEqualWith=ME,O.isError=gl,O.isFinite=DE,O.isFunction=Ur,O.isInteger=rh,O.isLength=js,O.isMap=nh,O.isMatch=NE,O.isMatchWith=FE,O.isNaN=jE,O.isNative=zE,O.isNil=UE,O.isNull=BE,O.isNumber=ih,O.isObject=Xe,O.isObjectLike=tt,O.isPlainObject=Gi,O.isRegExp=ml,O.isSafeInteger=WE,O.isSet=oh,O.isString=zs,O.isSymbol=Bt,O.isTypedArray=di,O.isUndefined=HE,O.isWeakMap=qE,O.isWeakSet=ZE,O.join=Kx,O.kebabCase=M_,O.last=rr,O.lastIndexOf=Yx,O.lowerCase=D_,O.lowerFirst=N_,O.lt=GE,O.lte=VE,O.max=kT,O.maxBy=IT,O.mean=$T,O.meanBy=LT,O.min=MT,O.minBy=DT,O.stubArray=_l,O.stubFalse=Tl,O.stubObject=xT,O.stubString=ST,O.stubTrue=ET,O.multiply=NT,O.nth=Xx,O.noConflict=pT,O.noop=El,O.now=Ds,O.pad=F_,O.padEnd=j_,O.padStart=z_,O.parseInt=B_,O.random=C_,O.reduce=eE,O.reduceRight=tE,O.repeat=U_,O.replace=W_,O.result=w_,O.round=FT,O.runInContext=F,O.sample=nE,O.size=sE,O.snakeCase=H_,O.some=aE,O.sortedIndex=iS,O.sortedIndexBy=oS,O.sortedIndexOf=sS,O.sortedLastIndex=aS,O.sortedLastIndexBy=uS,O.sortedLastIndexOf=lS,O.startCase=Z_,O.startsWith=G_,O.subtract=jT,O.sum=zT,O.sumBy=BT,O.template=V_,O.times=_T,O.toFinite=Wr,O.toInteger=xe,O.toLength=ah,O.toLower=K_,O.toNumber=nr,O.toSafeInteger=KE,O.toString=Ie,O.toUpper=Y_,O.trim=X_,O.trimEnd=J_,O.trimStart=Q_,O.truncate=eT,O.unescape=tT,O.uniqueId=OT,O.upperCase=rT,O.upperFirst=bl,O.each=Gp,O.eachRight=Vp,O.first=Wp,Sl(O,(function(){var n={};return wr(O,function(o,l){Fe.call(O.prototype,l)||(n[l]=o)}),n})(),{chain:!1}),O.VERSION=i,Xt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){O[n].placeholder=O}),Xt(["drop","take"],function(n,o){Ae.prototype[n]=function(l){l=l===r?1:lt(xe(l),0);var b=this.__filtered__&&!o?new Ae(this):this.clone();return b.__filtered__?b.__takeCount__=xt(l,b.__takeCount__):b.__views__.push({size:xt(l,Q),type:n+(b.__dir__<0?"Right":"")}),b},Ae.prototype[n+"Right"]=function(l){return this.reverse()[n](l).reverse()}}),Xt(["filter","map","takeWhile"],function(n,o){var l=o+1,b=l==q||l==J;Ae.prototype[n]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:pe(_,3),type:l}),A.__filtered__=A.__filtered__||b,A}}),Xt(["head","last"],function(n,o){var l="take"+(o?"Right":"");Ae.prototype[n]=function(){return this[l](1).value()[0]}}),Xt(["initial","tail"],function(n,o){var l="drop"+(o?"":"Right");Ae.prototype[n]=function(){return this.__filtered__?new Ae(this):this[l](1)}}),Ae.prototype.compact=function(){return this.filter(Lt)},Ae.prototype.find=function(n){return this.filter(n).head()},Ae.prototype.findLast=function(n){return this.reverse().find(n)},Ae.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Ae(this):this.map(function(l){return Bi(l,n,o)})}),Ae.prototype.reject=function(n){return this.filter(Fs(pe(n)))},Ae.prototype.slice=function(n,o){n=xe(n);var l=this;return l.__filtered__&&(n>0||o<0)?new Ae(l):(n<0?l=l.takeRight(-n):n&&(l=l.drop(n)),o!==r&&(o=xe(o),l=o<0?l.dropRight(-o):l.take(o-n)),l)},Ae.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ae.prototype.toArray=function(){return this.take(Q)},wr(Ae.prototype,function(n,o){var l=/^(?:filter|find|map|reject)|While$/.test(o),b=/^(?:head|last)$/.test(o),_=O[b?"take"+(o=="last"?"Right":""):o],A=b||/^find/.test(o);_&&(O.prototype[o]=function(){var P=this.__wrapped__,L=b?[1]:arguments,B=P instanceof Ae,K=L[0],X=B||we(P),ee=function(Te){var Re=_.apply(O,rn([Te],L));return b&&oe?Re[0]:Re};X&&l&&typeof K=="function"&&K.length!=1&&(B=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=A&&!oe,Se=B&&!le;if(!A&&X){P=Se?P:new Ae(this);var ge=n.apply(P,L);return ge.__actions__.push({func:Ls,args:[ee],thisArg:r}),new Qt(ge,oe)}return he&&Se?n.apply(this,L):(ge=this.thru(ee),he?b?ge.value()[0]:ge.value():ge)})}),Xt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ss[n],l=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",b=/^(?:pop|shift)$/.test(n);O.prototype[n]=function(){var _=arguments;if(b&&!this.__chain__){var A=this.value();return o.apply(we(A)?A:[],_)}return this[l](function(P){return o.apply(we(P)?P:[],_)})}}),wr(Ae.prototype,function(n,o){var l=O[o];if(l){var b=l.name+"";Fe.call(ai,b)||(ai[b]=[]),ai[b].push({name:o,func:l})}}),ai[As(r,v).name]=[{name:"wrapper",func:r}],Ae.prototype.clone=t1,Ae.prototype.reverse=r1,Ae.prototype.value=n1,O.prototype.at=IS,O.prototype.chain=$S,O.prototype.commit=LS,O.prototype.next=MS,O.prototype.plant=NS,O.prototype.reverse=FS,O.prototype.toJSON=O.prototype.valueOf=O.prototype.value=jS,O.prototype.first=O.prototype.head,Li&&(O.prototype[Li]=DS),O}),ii=Lw();Tn?((Tn.exports=ii)._=ii,xu._=ii):ht._=ii}).call(SI)})(xo,xo.exports)),xo.exports}var Pe=EI();const $c={FdSave:Ke.FdSave,FdWarningDanger:Ke.FdWarningDanger,FdInfoCircle:Ke.FdInfoCircle,FdInfoBold:Ke.FdInfoBold};var Ef=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Ef||{}),Hn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(Hn||{}),yi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(yi||{});const Uy={[Hn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[Hn.DANGER]:{icon:"red-500",button:"primary-dark"},[Hn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},ic=({color:e=Hn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=Uy[e].button,u=t==="outlined"?`bg-transparent text-white border border-white hover:border-white hover:bg-white hover:text-${a}`:`text-white bg-${a} border border-${a} hover:border-white hover:bg-primary-hover hover:text-white`;return $.jsx("button",{autoFocus:i,className:je("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",u),...s,children:r})},_I=({name:e,color:t=Hn.PRIMARY,className:r="w-8 h-8"})=>{const i=$c[e]||$c.FdInfoCircle,s=`text-${Uy[t].icon}`;return $.jsx(i,{className:je(r,s)})},TI=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:u=3e3,views:c,width:f=520,hasOverlay:m=!0,container:g,onClose:h,onEdit:d})=>{const y=w=>{h({id:e,reason:w})};z.useEffect(()=>{function w(v){v.key==="Escape"&&y(yi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Pe.merge(Pe.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),p=(w,v)=>{var E;if(!(c!=null&&c.toggles))return;const S=Pe.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=v),d({id:e,views:S})};return Pi.createPortal($.jsx(Ta,{appear:!0,show:!0,as:z.Fragment,children:$.jsx("div",{className:je("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":m}),style:{zIndex:u},onClick:()=>y(yi.CANCELED),children:$.jsx(Ta.Child,{as:z.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:$.jsx("div",{"data-cy":"confirmation-modal-cy",className:"relative rounded-md border border-grey-50 bg-grey-900",style:{width:f},onClick:w=>w.stopPropagation(),children:$.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?$.jsx("div",{className:"flex items-center justify-center",children:$.jsx(_I,{name:i,color:a,className:"w-6 h-6"})}):null,$.jsx(OI,{condition:t,children:$.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),$.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),$.jsx("div",{className:"text-xs text-white",children:Pe.values(c==null?void 0:c.toggles).map(w=>$.jsx("div",{children:$.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[$.jsx(Oy,{size:"xs",value:w.value,onChange:v=>p(w.key,v)}),$.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),$.jsx(AI,{warnings:x}),$.jsx("div",{className:"flex items-center gap-4",children:s===Ef.CONFIRM?$.jsxs($.Fragment,{children:[$.jsx(ic,{autoFocus:!0,color:a,onClick:()=>y(yi.CONFIRMED),children:"Confirm"}),$.jsx(ic,{color:a,variant:"outlined",onClick:()=>y(yi.CANCELED),children:"Cancel"})]}):$.jsx(ic,{autoFocus:!0,onClick:()=>y(),children:"OK"})})]})})})})}),g||document.body)},OI=e=>e.condition?$.jsx($.Fragment,{children:e.children}):null,AI=e=>e.warnings?$.jsx(Ta,{appear:!0,show:!!e.warnings.length,as:z.Fragment,children:$.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs text-white",children:e.warnings.map((t,r)=>$.jsx(Ta.Child,{as:z.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:$.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[$.jsx(Ke.FdWarningDanger,{className:je({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),$.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Wy=(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))(Wy||{});const RI=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>$.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[$.jsx(Ke.FdMinusNaked,{onClick:s,className:je("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),$.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),$.jsx(Ke.FdPlusNaked,{onClick:i,className:je("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),PI=I.forwardRef(((e,t)=>I.createElement(Sn.span,et({},e,{ref:t,style:{position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal",...e.style}})))),CI=PI;function Tm(e){const t=I.useRef({value:e,previous:e});return I.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Hy]=nf("Tooltip",[qa]),_f=qa(),kI=700,[f2,II]=Hy("TooltipProvider",{isOpenDelayed:!0,delayDuration:kI,onOpen:()=>{},onClose:()=>{}}),[$I,Xa]=Hy("Tooltip"),LI=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:u}=e,c=II("Tooltip",t),f=_f(t),[m,g]=I.useState(null),h=Wv(),d=I.useRef(0),y=u??c.delayDuration,x=I.useRef(!1),{onOpen:p,onClose:w}=c,[v=!1,S]=ty({prop:i,defaultProp:s,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),p()),a==null||a(k)}}),E=I.useMemo((()=>v?x.current?"delayed-open":"instant-open":"closed"),[v]),R=I.useCallback((()=>{window.clearTimeout(d.current),x.current=!1,S(!0)}),[S]),T=I.useCallback((()=>{window.clearTimeout(d.current),d.current=window.setTimeout((()=>{x.current=!0,S(!0)}),y)}),[y,S]);return I.useEffect((()=>()=>window.clearTimeout(d.current)),[]),I.createElement(Jv,f,I.createElement($I,{scope:t,contentId:h,open:v,stateAttribute:E,trigger:m,onTriggerChange:g,onTriggerEnter:I.useCallback((()=>{c.isOpenDelayed?T():R()}),[c.isOpenDelayed,T,R]),onOpen:I.useCallback(R,[R]),onClose:I.useCallback((()=>{window.clearTimeout(d.current),S(!1),w()}),[S,w])},r))},MI=I.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Xa("TooltipTrigger",r),a=_f(r),u=xn(t,s.onTriggerChange),c=I.useRef(!1),f=I.useCallback((()=>c.current=!1),[]);return I.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),I.createElement(Qv,et({asChild:!0},a),I.createElement(Sn.button,et({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:u,onMouseEnter:qt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:qt(e.onMouseLeave,s.onClose),onMouseDown:qt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:qt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:qt(e.onBlur,s.onClose),onClick:qt(e.onClick,(m=>{m.detail===0&&s.onClose()}))})))})),DI=I.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Xa("TooltipContent",e.__scopeTooltip);return I.createElement(tf,{present:r||s.open},I.createElement(NI,et({ref:t},i)))})),NI=I.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...u}=e,c=Xa("TooltipContent",r),f=_f(r),m=a?rf:I.Fragment,{onClose:g}=c;return Gv((()=>g())),I.useEffect((()=>(document.addEventListener("tooltip.open",g),()=>document.removeEventListener("tooltip.open",g))),[g]),I.createElement(m,null,I.createElement(FI,{__scopeTooltip:r}),I.createElement(ey,et({"data-state":c.stateAttribute},f,u,{ref:t,style:{...u.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),I.createElement(Zv,null,i),I.createElement(CI,{id:c.contentId,role:"tooltip"},s||i)))}));function FI(e){const{__scopeTooltip:t}=e,r=Xa("CheckTriggerMoved",t),i=Kv(r.trigger),s=i==null?void 0:i.left,a=Tm(s),u=i==null?void 0:i.top,c=Tm(u),f=r.onClose;return I.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==u)&&f()}),[f,a,c,s,u]),null}const jI=LI,zI=MI,BI=DI;function UI(e){return $.jsxs(jI,{delayDuration:e.delayDuration,open:e.open,children:[$.jsx(zI,{tabIndex:-1,asChild:!0,children:$.jsx("span",{children:e.children})}),$.jsxs(BI,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&$.jsx("p",{className:"max-w-[240px] rounded-md bg-primary-light px-1 py-2 text-s font-semibold text-primary-dark",children:e.message}),typeof e.message!="string"&&e.message]})]})}const Nn=30,va=500,WI=()=>$.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),HI=e=>{const[t,r]=z.useState(Nn),i=z.useRef(),s=t>Nn,a=z.useRef(null);return z.useEffect(()=>{e.isOpen&&!s&&r(va),!e.isOpen&&s&&r(Nn)},[e.isOpen]),$.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[$.jsx(HT.Resizable,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:700,minHeight:Nn,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?Nn:va):i.current=Date.now()},onResize:(u,c,f)=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{var m;(m=e.onResize)==null||m.call(e),a.current=null})},onResizeStop:(u,c,f,m)=>{r(t+m.height)},handleComponent:{top:$.jsx(WI,{})}}),$.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Pe.kebabCase(e.path)}`,children:[$.jsxs("div",{className:je("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[$.jsxs("div",{className:"group flex items-center justify-start",children:[$.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),$.jsx("span",{}),e.tipKey?$.jsx(hy,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,$.jsx("button",{"data-cy":`contextualPanel-toggle-button-${s?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:()=>{s?(r(Nn),e.onClose()):(r(va),e.onOpen())},children:s?$.jsx(Ke.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):$.jsx(Ke.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),$.jsxs(pa,{of:s,children:[$.jsx(pa,{of:e.render,children:e.render}),$.jsx(pa,{of:!e.render,children:e.children})]})]})]})};function qy({children:e,viewBox:t="0 0 24 24",...r}){return $.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...Pe.omit(r,"isIndeterminate","isChecked"),children:e})}function Zy(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return $.jsx(qy,{viewBox:"0 0 24 24",...e,children:$.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function qI({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:u,...c}){const f=z.useRef(null),m=i||$.jsx(Zy,{}),g=c.checked??e;z.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const h=g||t,d=["base-checkbox-container",a].join(" ");return $.jsxs("label",{className:d,style:u,"data-invalid":r,children:[$.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:g,...c,"aria-invalid":r||void 0}),$.jsx("span",{className:"base-checkbox-control",children:h&&m&&z.cloneElement(m,{isChecked:g,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&$.jsx("span",{className:"base-checkbox-label",children:s})]})}const ZI=z.forwardRef(({label:e,Icon:t,as:r="button",className:i="",disableHover:s=!1,iconClassname:a,...u},c)=>{const[f,m]=z.useState(null),[g,h]=z.useState(!1);return z.useImperativeHandle(c,()=>f,[f]),$.jsxs($.Fragment,{children:[$.jsx(r,{ref:m,className:je("rounded p-1 text-white focus:outline-none disabled:cursor-not-allowed disabled:opacity-50",{"hover:bg-primary-hover":!s},i),onMouseEnter:()=>h(!0),onMouseLeave:()=>h(!1),onMouseDown:()=>h(!1),...u,children:$.jsx(t,{className:je("h-4 w-4",a)})}),g&&Pi.createPortal($.jsx(zy,{label:e,referenceElement:f}),document.body)]})}),GI=({onChange:e,value:t,delay:r,placeholder:i,containerClassName:s,onFocusInput:a,icon:u,"data-cy":c})=>{const[f,m]=z.useState(t),g=z.useRef(null);return $.jsxs("div",{className:"w-full flex gap-x-1",children:[u&&$.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 h;return(h=g.current)==null?void 0:h.focus()},children:$.jsx("span",{className:`text-base fa ${u}`})}),$.jsxs("div",{className:je("flex h-6 w-full rounded bg-grey-300 pl-1.5 pr-1 focus-within:outline-none focus-within:ring-[1px] focus-within:ring-primary-dark",s),children:[$.jsx("span",{className:"flex items-center justify-center",children:!u&&$.jsx(Ke.FdSearch,{className:"text-grey-100"})}),$.jsx("input",{ref:g,"data-cy":c||"search-cy",type:"text",className:"w-full rounded bg-grey-300 py-1.5 pl-1 pr-1 text-xs placeholder-grey-200 focus:outline-none focus:ring-0",placeholder:i||"Search",onChange:h=>{m(h.currentTarget.value);const d=Pe.escapeRegExp(h.target.value);if(!r)return e(d);Pe.debounce(e,r)(d)},value:f,onFocus:()=>a&&a(),onDrop:h=>h.preventDefault()}),t&&$.jsx("span",{onClick:()=>{e(""),m("")},className:"flex cursor-pointer items-center justify-center",children:$.jsx(Ke.FdCloseNaked,{})})]})]})},VI=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s})=>$.jsx("div",{className:"flex h-full w-full items-center justify-center",children:$.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[$.jsxs("div",{className:"relative",children:[$.jsx(Ke.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),$.jsx("div",{className:"w-1/2 h-1/2 absolute z-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white"})]}),$.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),$.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),$.jsxs("div",{className:"flex gap-4",children:[i&&$.jsx("button",{className:"text-md rounded border border-primary-dark hover:border-primary-hover bg-primary-dark hover:bg-primary-hover px-3 py-1 text-white focus:outline-none",onClick:i,children:"Open in Text Editor"}),s&&$.jsx("button",{className:"text-md rounded border border-red-500 bg-red-500 hover:bg-red-400 focus:ring-red-500 px-3 py-1 text-white focus:outline-none",onClick:s,children:"Reset Page"}),r&&$.jsx("button",{className:"text-md rounded border border-grey-50 bg-transparent hover:bg-grey-50 text-white hover:text-primary-dark px-3 py-1 focus:outline-none",onClick:r,children:"Close"})]})]})});function KI(e,t){const r=z.useRef(!1);z.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const oc=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function sc(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function yo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Gy(e,t){const r=t.slice(0,t.length-1);for(let i=0;i<r.length;i++)r[i]=e[r[i].toLowerCase()];return r}function Vy(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 YI(e,t){const r=e.length>=t.length?e:t,i=e.length>=t.length?t:e;let s=!0;for(let a=0;a<r.length;a++)i.indexOf(r[a])===-1&&(s=!1);return s}const Mo={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,"-":oc?173:189,"=":oc?61:187,";":oc?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},yr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},So={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},vt={16:!1,18:!1,17:!1,91:!1},Qe={};for(let e=1;e<20;e++)Mo["f".concat(e)]=111+e;let Ve=[],ko=null,Ky="all";const Zr=new Map,Ci=e=>Mo[e.toLowerCase()]||yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),XI=e=>Object.keys(Mo).find(t=>Mo[t]===e),JI=e=>Object.keys(yr).find(t=>yr[t]===e);function Yy(e){Ky=e||"all"}function Do(){return Ky||"all"}function QI(){return Ve.slice(0)}function e$(){return Ve.map(e=>XI(e)||JI(e)||String.fromCharCode(e))}function t$(){const e=[];return Object.keys(Qe).forEach(t=>{Qe[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:u}=r;e.push({scope:s,shortcut:u,mods:a,keys:i.split("+").map(c=>Ci(c))})})}),e}function r$(e){const t=e.target||e.srcElement,{tagName:r}=t;let i=!0;const s=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(s||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(i=!1),i}function n$(e){return typeof e=="string"&&(e=Ci(e)),Ve.indexOf(e)!==-1}function i$(e,t){let r,i;e||(e=Do());for(const s in Qe)if(Object.prototype.hasOwnProperty.call(Qe,s))for(r=Qe[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(u=>{let{element:c}=u;return Tf(c)}):i++;Do()===e&&Yy(t||"all")}function o$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=Ci(e.key));const r=Ve.indexOf(t);if(r>=0&&Ve.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&Ve.splice(0,Ve.length),(t===93||t===224)&&(t=91),t in vt){vt[t]=!1;for(const i in yr)yr[i]===t&&(vr[i]=!1)}}function Xy(e){if(typeof e>"u")Object.keys(Qe).forEach(s=>{Array.isArray(Qe[s])&&Qe[s].forEach(a=>oa(a)),delete Qe[s]}),Tf(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&oa(s)});else if(typeof e=="object")e.key&&oa(e);else if(typeof e=="string"){for(var t=arguments.length,r=new Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];let[s,a]=r;typeof s=="function"&&(a=s,s=""),oa({key:e,scope:s,method:a,splitKey:"+"})}}const oa=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;Vy(t).forEach(u=>{const c=u.split(s),f=c.length,m=c[f-1],g=m==="*"?"*":Ci(m);if(!Qe[g])return;r||(r=Do());const h=f>1?Gy(yr,c):[],d=[];Qe[g]=Qe[g].filter(y=>{const p=(i?y.method===i:!0)&&y.scope===r&&YI(y.mods,h);return p&&d.push(y.element),!p}),d.forEach(y=>Tf(y))})};function Om(e,t,r,i){if(t.element!==i)return;let s;if(t.scope===r||t.scope==="all"){s=t.mods.length>0;for(const a in vt)Object.prototype.hasOwnProperty.call(vt,a)&&(!vt[a]&&t.mods.indexOf(+a)>-1||vt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!vt[16]&&!vt[18]&&!vt[17]&&!vt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(Ve),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function Am(e,t){const r=Qe["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!vr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),Ve.indexOf(i)===-1&&i!==229&&Ve.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=So[c];e[c]&&Ve.indexOf(f)===-1?Ve.push(f):!e[c]&&Ve.indexOf(f)>-1?Ve.splice(Ve.indexOf(f),1):c==="metaKey"&&e[c]&&(Ve=Ve.filter(m=>m in So||m===i))}),i in vt){vt[i]=!0;for(const c in yr)if(Object.prototype.hasOwnProperty.call(yr,c)){const f=So[yr[c]];vr[c]=e[f]}if(!r)return}for(const c in vt)Object.prototype.hasOwnProperty.call(vt,c)&&(vt[c]=e[So[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(Ve.indexOf(17)===-1&&Ve.push(17),Ve.indexOf(18)===-1&&Ve.push(18),vt[17]=!0,vt[18]=!0);const s=Do();if(r)for(let c=0;c<r.length;c++)r[c].scope===s&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Om(e,r[c],s,t);if(!(i in Qe))return;const a=Qe[i],u=a.length;for(let c=0;c<u;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const f=a[c],{splitKey:m}=f,g=f.key.split(m),h=[];for(let d=0;d<g.length;d++)h.push(Ci(g[d]));h.sort().join("")===Ve.sort().join("")&&Om(e,f,s,t)}}function vr(e,t,r){Ve=[];const i=Vy(e);let s=[],a="all",u=document,c=0,f=!1,m=!0,g="+",h=!1,d=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(u=t.element),t.keyup&&(f=t.keyup),t.keydown!==void 0&&(m=t.keydown),t.capture!==void 0&&(h=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(d=!0)),typeof t=="string"&&(a=t),d&&Xy(e,a);c<i.length;c++)e=i[c].split(g),s=[],e.length>1&&(s=Gy(yr,e)),e=e[e.length-1],e=e==="*"?"*":Ci(e),e in Qe||(Qe[e]=[]),Qe[e].push({keyup:f,keydown:m,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:g,element:u});if(typeof u<"u"&&window){if(!Zr.has(u)){const y=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return Am(p,u)},x=function(){let p=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;Am(p,u),o$(p)};Zr.set(u,{keydownListener:y,keyupListenr:x,capture:h}),sc(u,"keydown",y,h),sc(u,"keyup",x,h)}if(!ko){const y=()=>{Ve=[]};ko={listener:y,capture:h},sc(window,"focus",y,h)}}}function s$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Qe).forEach(r=>{Qe[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function Tf(e){const t=Object.values(Qe).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Zr.get(e)||{};i&&s&&(yo(e,"keyup",s,a),yo(e,"keydown",i,a),Zr.delete(e))}if((t.length<=0||Zr.size<=0)&&(Object.keys(Zr).forEach(s=>{const{keydownListener:a,keyupListenr:u,capture:c}=Zr.get(s)||{};a&&u&&(yo(s,"keyup",u,c),yo(s,"keydown",a,c),Zr.delete(s))}),Zr.clear(),Object.keys(Qe).forEach(s=>delete Qe[s]),ko)){const{listener:s,capture:a}=ko;yo(window,"focus",s,a),ko=null}}const ac={getPressedKeyString:e$,setScope:Yy,getScope:Do,deleteScope:i$,getPressedKeyCodes:QI,getAllKeyCodes:t$,isPressed:n$,filter:r$,trigger:s$,unbind:Xy,keyMap:Mo,modifier:yr,modifierMap:So};for(const e in ac)Object.prototype.hasOwnProperty.call(ac,e)&&(vr[e]=ac[e]);if(typeof window<"u"){const e=window.hotkeys;vr.noConflict=t=>(t&&window.hotkeys===vr&&(window.hotkeys=e),vr),window.hotkeys=vr}vr.filter=()=>!0;function a$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=z.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),u=()=>{vr.unbind(e,a)};z.useEffect(()=>(vr(e,r,a),u),[e,r,a])}const u$=e=>{const t=z.useRef(null);return z.useEffect(()=>{const r=i=>{t.current&&!t.current.contains(i.target)&&e(i)};return document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}},[e]),t};function l$(e){const t=z.useRef();return z.useEffect(()=>{t.current=e},[e]),t.current}function c$(e){const t=z.useRef(e);return z.useEffect(()=>{t.current=e},[e]),t}function f$(e){const t=z.useRef(null);return z.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function d$(e){const[t,r]=z.useState(e),i=(a,u)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:u}}}))},s=z.useCallback((...a)=>a.every(u=>{var c;return(c=t.features[u])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Jy=z.createContext(""),p$=e=>$.jsx(Jy.Provider,{value:e.value,children:e.children}),h$=()=>{const e=z.useContext(Jy);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function g$(e){const[t,r]=z.useState(e),i=z.useMemo(()=>m$(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function m$(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Pe.upperFirst(s)}`]:a=>t(u=>({...u,[s]:a}))}),{})}const v$=(e,t,r={})=>{r={timeout:200,...r};const i=z.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return z.useCallback((a,...u)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...u)},r.timeout)),a.detail%2===0&&e(a,...u)},[t,e,r.timeout])};function yt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(process.env.NODE_ENV!=="production"){var s=_$[e],a=s?typeof s=="function"?s.apply(null,r):s:"unknown error nr: "+e;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(u){return"'"+u+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ai(e){return!!e&&!!e[Gt]}function Kn(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var s=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return s===Object||typeof s=="function"&&Function.toString.call(s)===T$})(e)||Array.isArray(e)||!!e[Mm]||!!(!((t=e.constructor)===null||t===void 0)&&t[Mm])||Of(e)||Af(e))}function No(e,t,r){r===void 0&&(r=!1),ki(e)===0?(r?Object.keys:kf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function ki(e){var t=e[Gt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Of(e)?2:Af(e)?3:0}function Lc(e,t){return ki(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function y$(e,t){return ki(e)===2?e.get(t):e[t]}function Qy(e,t,r){var i=ki(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function b$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Of(e){return S$&&e instanceof Map}function Af(e){return E$&&e instanceof Set}function Fn(e){return e.o||e.t}function Rf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=O$(e);delete t[Gt];for(var r=kf(t),i=0;i<r.length;i++){var s=r[i],a=t[s];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[s]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[s]})}return Object.create(Object.getPrototypeOf(e),t)}function Fo(e,t){return t===void 0&&(t=!1),Pf(e)||Ai(e)||!Kn(e)||(ki(e)>1&&(e.set=e.add=e.clear=e.delete=w$),Object.freeze(e),t&&No(e,(function(r,i){return Fo(i,!0)}),!0)),e}function w$(){yt(2)}function Pf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function kr(e){var t=A$[e];return t||yt(18,e),t}function Rm(){return process.env.NODE_ENV==="production"||Ri||yt(0),Ri}function uc(e,t){t&&(kr("Patches"),e.u=[],e.s=[],e.v=t)}function Pa(e){Mc(e),e.p.forEach(x$),e.p=null}function Mc(e){e===Ri&&(Ri=e.l)}function Pm(e){return Ri={p:[],l:Ri,h:e,m:!0,_:0}}function x$(e){var t=e[Gt];t.i===0||t.i===1?t.j():t.g=!0}function lc(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||kr("ES5").S(t,e,i),i?(r[Gt].P&&(Pa(t),yt(4)),Kn(e)&&(e=Ca(t,e),t.l||ka(t,e)),t.u&&kr("Patches").M(r[Gt].t,e,t.u,t.s)):e=Ca(t,r,[]),Pa(t),t.u&&t.v(t.u,t.s),e!==t0?e:void 0}function Ca(e,t,r){if(Pf(t))return t;var i=t[Gt];if(!i)return No(t,(function(c,f){return Cm(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return ka(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=Rf(i.k):i.o,a=s,u=!1;i.i===3&&(a=new Set(s),s.clear(),u=!0),No(a,(function(c,f){return Cm(e,i,s,c,f,r,u)})),ka(e,s,!1),r&&e.u&&kr("Patches").N(i,r,e.u,e.s)}return i.o}function Cm(e,t,r,i,s,a,u){if(process.env.NODE_ENV!=="production"&&s===r&&yt(5),Ai(s)){var c=Ca(e,s,a&&t&&t.i!==3&&!Lc(t.R,i)?a.concat(i):void 0);if(Qy(r,i,c),!Ai(c))return;e.m=!1}else u&&r.add(s);if(Kn(s)&&!Pf(s)){if(!e.h.D&&e._<1)return;Ca(e,s),t&&t.A.l||ka(e,s)}}function ka(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&Fo(t,r)}function cc(e,t){var r=e[Gt];return(r?Fn(r):e)[t]}function km(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Dc(e){e.P||(e.P=!0,e.l&&Dc(e.l))}function fc(e){e.o||(e.o=Rf(e.t))}function Nc(e,t,r){var i=Of(t)?kr("MapSet").F(t,r):Af(t)?kr("MapSet").T(t,r):e.O?(function(s,a){var u=Array.isArray(s),c={i:u?1:0,A:a?a.A:Rm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,m=Fc;u&&(f=[c],m=Eo);var g=Proxy.revocable(f,m),h=g.revoke,d=g.proxy;return c.k=d,c.j=h,d})(t,r):kr("ES5").J(t,r);return(r?r.A:Rm()).p.push(i),i}function e0(e){return Ai(e)||yt(22,e),(function t(r){if(!Kn(r))return r;var i,s=r[Gt],a=ki(r);if(s){if(!s.P&&(s.i<4||!kr("ES5").K(s)))return s.t;s.I=!0,i=Im(r,a),s.I=!1}else i=Im(r,a);return No(i,(function(u,c){s&&y$(s.t,u)===c||Qy(i,u,t(c))})),a===3?new Set(i):i})(e)}function Im(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Rf(e)}var $m,Ri,Cf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",S$=typeof Map<"u",E$=typeof Set<"u",Lm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",t0=Cf?Symbol.for("immer-nothing"):(($m={})["immer-nothing"]=!0,$m),Mm=Cf?Symbol.for("immer-draftable"):"__$immer_draftable",Gt=Cf?Symbol.for("immer-state"):"__$immer_state",_$={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"},T$=""+Object.prototype.constructor,kf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,O$=Object.getOwnPropertyDescriptors||function(e){var t={};return kf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},A$={},Fc={get:function(e,t){if(t===Gt)return e;var r=Fn(e);if(!Lc(r,t))return(function(s,a,u){var c,f=km(a,u);return f?"value"in f?f.value:(c=f.get)===null||c===void 0?void 0:c.call(s.k):void 0})(e,r,t);var i=r[t];return e.I||!Kn(i)?i:i===cc(e.t,t)?(fc(e),e.o[t]=Nc(e.A.h,i,e)):i},has:function(e,t){return t in Fn(e)},ownKeys:function(e){return Reflect.ownKeys(Fn(e))},set:function(e,t,r){var i=km(Fn(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=cc(Fn(e),t),a=s==null?void 0:s[Gt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(b$(r,s)&&(r!==void 0||Lc(e.t,t)))return!0;fc(e),Dc(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 cc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,fc(e),Dc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Fn(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){yt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yt(12)}},Eo={};No(Fc,(function(e,t){Eo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Eo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&yt(13),Eo.set.call(this,e,t,void 0)},Eo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&yt(14),Fc.set.call(this,e[0],t,r,e[0])};var R$=(function(){function e(r){var i=this;this.O=Lm,this.D=!0,this.produce=function(s,a,u){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(p){var w=this;p===void 0&&(p=c);for(var v=arguments.length,S=Array(v>1?v-1:0),E=1;E<v;E++)S[E-1]=arguments[E];return f.produce(p,(function(R){var T;return(T=a).call.apply(T,[w,R].concat(S))}))}}var m;if(typeof a!="function"&&yt(6),u!==void 0&&typeof u!="function"&&yt(7),Kn(s)){var g=Pm(i),h=Nc(i,s,void 0),d=!0;try{m=a(h),d=!1}finally{d?Pa(g):Mc(g)}return typeof Promise<"u"&&m instanceof Promise?m.then((function(p){return uc(g,u),lc(p,g)}),(function(p){throw Pa(g),p})):(uc(g,u),lc(m,g))}if(!s||typeof s!="object"){if((m=a(s))===void 0&&(m=s),m===t0&&(m=void 0),i.D&&Fo(m,!0),u){var y=[],x=[];kr("Patches").M(s,m,y,x),u(y,x)}return m}yt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(m){for(var g=arguments.length,h=Array(g>1?g-1:0),d=1;d<g;d++)h[d-1]=arguments[d];return i.produceWithPatches(m,(function(y){return s.apply(void 0,[y].concat(h))}))};var u,c,f=i.produce(s,a,(function(m,g){u=m,c=g}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(m){return[m,u,c]})):[f,u,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){Kn(r)||yt(8),Ai(r)&&(r=e0(r));var i=Pm(this),s=Nc(this,r,void 0);return s[Gt].C=!0,Mc(i),s},t.finishDraft=function(r,i){var s=r&&r[Gt];process.env.NODE_ENV!=="production"&&(s&&s.C||yt(9),s.I&&yt(10));var a=s.A;return uc(a,i),lc(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Lm&&yt(20),this.O=r},t.applyPatches=function(r,i){var s;for(s=i.length-1;s>=0;s--){var a=i[s];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}s>-1&&(i=i.slice(s+1));var u=kr("Patches").$;return Ai(r)?u(r,i):this.produce(r,(function(c){return u(c,i)}))},e})(),Vt=new R$,P$=Vt.produce;Vt.produceWithPatches.bind(Vt);Vt.setAutoFreeze.bind(Vt);Vt.setUseProxies.bind(Vt);Vt.applyPatches.bind(Vt);Vt.createDraft.bind(Vt);Vt.finishDraft.bind(Vt);function C$(e){var t=z.useState(function(){return Fo(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],z.useCallback(function(i){r(typeof i=="function"?P$(i):Fo(i))},[])]}const k$=process.env.NODE_ENV==="development",dc=k$&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,I$=(e,t,r)=>{const[i,s]=C$(e),a=z.useRef(null);z.useEffect(()=>{var f;return r&&(a.current=dc==null?void 0:dc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var m,g;(g=(m=a.current)==null?void 0:m.disconnect)==null||g.call(m)}},[]);const u=t&&typeof t=="object"?t:{},c=z.useMemo(()=>Object.keys(u).reduce((f,m)=>({...f,[m]:g=>(s(h=>{var d;u[m](h,g),(d=a.current)==null||d.send({type:u[m].name},e0(h))}),c)}),{}),[s]);return{state:i,dispatch:c}},$$=e=>{const t=Ff(e),r=()=>{const{id:i,namespace:s}=t,a=window.DataSource.spaces[s];if(a&&a.sources)return a.sources[i]};return{actions:{setProperty:(i,s)=>{try{const a=r();a&&a.setValue(i,s)}catch{}},getValue:()=>r()}}},L$=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:i,namespace:s}=Ff(e),[a,u]=z.useState(!1),c=z.useCallback(()=>{try{return window.DataSource.getSource(i,s)}catch{return}},[s,i]),f=(h,d)=>{const y=c();y&&y.setValue(h,d)},m=async()=>{const h=c();if(!h)return;const d=await(h==null?void 0:h.getValue());r==null||r(d)},g=h=>{const{id:d}=h;!a&&d&&d.startsWith(i)&&u(!0)};return z.useEffect(()=>{if(a){const h=c();return h?(h==null||h.addListener("changed",m),()=>h==null?void 0:h.removeListener("changed",m)):void 0}},[a]),z.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:a,setCurrentSource:f}};function Kr(e){return typeof e=="function"}function r0(e){var t=function(i){Error.call(i),i.stack=new Error().stack},r=e(t);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var pc=r0(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
202
- `+r.map(function(i,s){return s+1+") "+i.toString()}).join(`
203
- `):"",this.name="UnsubscriptionError",this.errors=r}});function jc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Ja=(function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,r,i,s,a;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=xc(u),f=c.next();!f.done;f=c.next()){var m=f.value;m.remove(this)}}catch(p){t={error:p}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else u.remove(this);var g=this.initialTeardown;if(Kr(g))try{g()}catch(p){a=p instanceof pc?p.errors:[p]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=xc(h),y=d.next();!y.done;y=d.next()){var x=y.value;try{Dm(x)}catch(p){a=a??[],p instanceof pc?a=Ea(Ea([],Sc(a)),Sc(p.errors)):a.push(p)}}}catch(p){i={error:p}}finally{try{y&&!y.done&&(s=d.return)&&s.call(d)}finally{if(i)throw i.error}}}if(a)throw new pc(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Dm(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)&&jc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&jc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),n0=Ja.EMPTY;function i0(e){return e instanceof Ja||e&&"closed"in e&&Kr(e.remove)&&Kr(e.add)&&Kr(e.unsubscribe)}function Dm(e){Kr(e)?e():e.unsubscribe()}var M$={Promise:void 0},D$={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,Ea([e,t],Sc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function N$(e){D$.setTimeout(function(){throw e})}function Nm(){}function ya(e){e()}var o0=(function(e){Wa(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,i0(r)&&r.add(i)):i.destination=z$,i}return t.create=function(r,i,s){return new zc(r,i,s)},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})(Ja),F$=(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(i){sa(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){sa(i)}else sa(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){sa(r)}},e})(),zc=(function(e){Wa(t,e);function t(r,i,s){var a=e.call(this)||this,u;return Kr(r)||!r?u={next:r??void 0,error:i??void 0,complete:s??void 0}:u=r,a.destination=new F$(u),a}return t})(o0);function sa(e){N$(e)}function j$(e){throw e}var z$={closed:!0,next:Nm,error:j$,complete:Nm},B$=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function U$(e){return e}function W$(e){return e.length===0?U$:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Fm=(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,i){var s=this,a=q$(t)?t:new zc(t,r,i);return ya(function(){var u=s,c=u.operator,f=u.source;a.add(c?c.call(a,f):f?s._subscribe(a):s._trySubscribe(a))}),a},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(r){t.error(r)}},e.prototype.forEach=function(t,r){var i=this;return r=jm(r),new r(function(s,a){var u=new zc({next:function(c){try{t(c)}catch(f){a(f),u.unsubscribe()}},error:a,complete:s});i.subscribe(u)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[B$]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return W$(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=jm(t),new t(function(i,s){var a;r.subscribe(function(u){return a=u},function(u){return s(u)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function jm(e){var t;return(t=e??M$.Promise)!==null&&t!==void 0?t:Promise}function H$(e){return e&&Kr(e.next)&&Kr(e.error)&&Kr(e.complete)}function q$(e){return e&&e instanceof o0||H$(e)&&i0(e)}var Z$=r0(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Lr=(function(e){Wa(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 i=new zm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new Z$},t.prototype.next=function(r){var i=this;ya(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var u=xc(i.currentObservers),c=u.next();!c.done;c=u.next()){var f=c.value;f.next(r)}}catch(m){s={error:m}}finally{try{c&&!c.done&&(a=u.return)&&a.call(u)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;ya(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=r;for(var s=i.observers;s.length;)s.shift().error(r)}})},t.prototype.complete=function(){var r=this;ya(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var i=r.observers;i.length;)i.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 i=this,s=this,a=s.hasError,u=s.isStopped,c=s.observers;return a||u?n0:(this.currentObservers=null,c.push(r),new Ja(function(){i.currentObservers=null,jc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,u=i.isStopped;s?r.error(a):u&&r.complete()},t.prototype.asObservable=function(){var r=new Fm;return r.source=this,r},t.create=function(r,i){return new zm(r,i)},t})(Fm),zm=(function(e){Wa(t,e);function t(r,i){var s=e.call(this)||this;return s.destination=r,s.source=i,s}return t.prototype.next=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.next)===null||s===void 0||s.call(i,r)},t.prototype.error=function(r){var i,s;(s=(i=this.destination)===null||i===void 0?void 0:i.error)===null||s===void 0||s.call(i,r)},t.prototype.complete=function(){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||i===void 0||i.call(r)},t.prototype._subscribe=function(r){var i,s;return(s=(i=this.source)===null||i===void 0?void 0:i.subscribe(r))!==null&&s!==void 0?s:n0},t})(Lr),s0=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(s0||{}),a0=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(a0||{});const G$=new Lr,V$=new Lr,u0=new Lr;var l0=(e=>(e.SAVE_ALL="save-all",e))(l0||{});const K$=new Lr;var c0=(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))(c0||{});const Y$=new Lr;var f0=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(f0||{});const X$=new Lr,J$=new Lr;var jo=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(jo||{});const Ia=new Lr,Q$=new Lr,If=255;var $f=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${If} 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))($f||{});function Qa(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>If)throw new Error($f.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 eL(e){if(!e)return null;if(typeof e=="string")try{Qa(e)}catch(t){return t.message}}function tL(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Pe.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Pe.isObject(i)||Array.isArray(i))&&(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 rL(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function eu(e){const{PLACEHOLDER_PREFIX:t,counter:r}=rL();let i=r;const s=[],a="@!",u=g=>(s.push(g),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,u);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,h,d)=>h+u(d)),c=c.replace(/:\d{2}:\d{2}/g,u);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let m=c.replace(f,"");for(let g=0;g<s.length;g++){const d=`${t}${g}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),y=new RegExp(d,"g");m=m.replace(y,s[g])}return m}var Lf=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Lf||{});const yn={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||{}),En=(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))(En||{}),Mf=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Mf||{});const d0="roles.json",p0="qodlyApp.json",nL="model.4DModel",h0="HTTPHandlers.json",g0="Shared/i18n.json";function iL(e){const t=Df(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("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Df(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Je.MODEL;case r==="WebForm":return Je.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===yn.METHODS):return Je.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===yn.CLASSES):return Je.CLASS;case e===d0:return Je.ROLES;case e===h0:return Je.HTTP_HANDLERS;case e===p0:return Je.SETTINGS;case e===g0:return Je.LOCALIZATION;default:return Je.TEXT}}function oL(e,t=!1){switch(e){case yn.REPORTS:case"report":return"QoDoc";case yn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case yn.CLASSES:case yn.METHODS:return t?"4qs":"4dm";default:return""}}function sL(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function aL(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 m0{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(s=>{t=s}),i=this.current.then(()=>t);return this.current=r,i}}function Nf(){const e=new m0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const v0=Pe.curry((e,t,r)=>e&&Pe.get(r,e)===t),uL=Pe.curry((e,t,r)=>Pe.get(r,e)!==t),lL=Pe.curry((e,t)=>Pe.get(t,"id")!==e),cL=Pe.curry((e,t)=>Pe.get(t,"id")===e),fL=Pe.curry((e,t)=>Pe.get(t,"path")===e);function dL(e="id",t,r){return r.findIndex(v0(e,t))!==-1}function y0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function pL(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Ff(e=""){const t=e.trim().split(":")||[];let r="",i="";return t.length>1?(r=t[1],i=t[0]):r=t[0],{id:r,namespace:i,root:r.split(".").filter(Boolean)[0],original:i?`${i}:${r}`:r,parts:t}}function b0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function hL(e){return e.type==="object"}function w0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function x0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!b0(e)}function gL(e){return w0(e)||x0(e)}function mL(e){return e.applyTo==="dataStore"}function vL(e){return e.applyTo==="dataClass"}function yL(e){return e.applyTo==="entity"}function bL(e){return e.applyTo==="entityCollection"}function wL(e){return e.type==="entity"}function xL(e){return e.type==="entitysel"}function S0(e){return e.dataType==="array"}function E0(e){return e.dataType==="object"}function _0(e){return e.type==="scalar"}function SL(e){return S0(e)||E0(e)||_0(e)}const EL=e=>e!=null&&e.type==="entity",_L=e=>e.type==="entitysel",TL=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",OL=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",AL=e=>e.type==="scalar"&&e.dataType==="date",RL=(e,t)=>(e||"")===(t||"");function PL(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function CL(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const _o="Qodly",T0="Location",O0="UserLanguage",A0="Title",$a={[_o]:[{id:A0,dataType:"string",type:"scalar",namespace:_o,initialValue:""},{id:T0,dataType:"object",type:"scalar",namespace:_o,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:O0,dataType:"object",type:"scalar",namespace:_o,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 zo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(zo||{}),R0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(R0||{}),jf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(jf||{});const kL={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function IL(e){var a;let t={};try{const u=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(u)}catch{}const{published4DMobile:r,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:zo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:jf.table}},...i}}function P0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[zo.capable,zo.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 $L(e,t,r=!1){const i=Pe.isString(t)?t:P0(t);if(!r&&C0(e))return e;const s=k0(e);return`//%attributes = ${i}\r
204
- ${s}`}function C0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function k0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const LL=()=>Zn.uuid().replaceAll("-","").toUpperCase(),ML=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var De=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(De||{}),qe=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(qe||{});const DL=[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE,De.SINGLETON_METHOD,De.SINGLETON,De.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD],Bm=e=>[qe.DS_METHOD,qe.ENTITY_METHOD,qe.DATACLASS_METHOD].includes(e)?De.METHOD:e,La="guest",zf=[{key:"read",label:"Read",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[De.DATASTORE,De.DATACLASS,De.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[De.DATASTORE,De.DATACLASS,De.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD,De.SINGLETON,De.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[De.METHOD,qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD,De.SINGLETON_METHOD]}];function lr(e,...t){return Array.from(new Set([...e,...t]))}function I0(e){const t={},r=new Map;e.forEach(f=>{const m=f.id||Zn.generate();t[m]={...f,id:m,parents:[],includes:lr(f.includes||[]),resources:[]},r.set(f.privilege,m)}),Object.entries(t).forEach(([f,m])=>{const g=m.includes.map(h=>{const d=r.get(h);return d?(t[d].parents=lr(t[d].parents,d),d):""}).filter(Boolean);t[f]={...m,includes:g}});const i=$0(t),s=new Set;function a(f){s.add(f.id),f.includes=f.includes.filter(m=>!s.has(m))}if(i.forEach(a),i.forEach(f=>f.parents=[]),i.forEach(f=>{f.includes.forEach(m=>t[m].parents.push(f.id))}),Object.values(t).find(({privilege:f})=>f===La))return t;const c=Zn.generate();return{[c]:{id:c,privilege:La,includes:[],parents:[],resources:[]},...t}}function $0(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function tu(e,t){const r=t[e];let i=[];return r&&r.parents.forEach(s=>{i=lr(i,...tu(s,t),s)}),i}function Ma(e,t){const r=t[e];let i=[];return r&&r.includes.forEach(s=>{i=lr(i,...Ma(s,t),s)}),i}function NL(e,t){const r=t[e];if(!r)return[];const i=[e,...tu(e,t),...r.includes];return Object.keys(t).filter(s=>!i.includes(s))}function FL(e,t){return t[e]?Object.keys(t).reduce((i,s)=>s===e?i:{...i,[s]:{...t[s],parents:t[s].parents.filter(a=>a!==e),includes:t[s].includes.filter(a=>a!==e)}},{}):t}function jL(e,t,r){const i=r[e],s=r[t];return!i||!s?r:{...r,[e]:{...r[e],includes:lr(i.includes,t)},[t]:{...r[t],parents:lr(s.parents,e)}}}function zL(e,t,r){const i=r[e],s=r[t];return!i||!s?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(a=>a!==t)},[t]:{...r[t],parents:r[t].parents.filter(a=>a!==e)}}}function BL(e,t){Qa(e),Object.entries(t).forEach(([,{privilege:i}])=>{if(e.toLowerCase()===i.toLowerCase())throw new Error(`There's already a Privilege with the name ${e}`)});const r=Zn.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function UL(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:i,id:s}])=>{if(e.toLowerCase()===i.toLowerCase()&&t!==s)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function WL(e,t){return e.map(r=>Xr(r,t))}function Xr(e,t){return t[e]?t[e]:null}function L0({applyTo:e,type:t,...r}){return Object.entries(r).reduce((i,[s,a])=>{const u=Pe.find(zf,["key",s]);return!u||!u.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(f=>{i[f]=lr(i[f]||[],s)}),i},{})}const Um=(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 Bf(e){return{permissions:zf.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const i={name:t,from:[]};switch(e.type){case De.DATASTORE:return{...i,info:Um(r,!0)};case De.DATACLASS:return{...i,info:Um(r)};default:return i}}),resource:e.applyTo,type:e.type}}function M0(e,t){const r=D0(t),i={};return e.filter(({type:s})=>DL.includes(s)).forEach(s=>{const a=L0(s);Object.entries(a).forEach(([u,c])=>{var g;const f=(g=r[u])==null?void 0:g.id;if(!f)return;i[f]=i[f]||{...t[f]};let m=Pe.find(i[f].resources,{resource:s.applyTo,type:s.type});m||(m=Bf(s),i[f].resources.push(m)),m.permissions=m.permissions.map(h=>({...h,checked:h.checked||c.includes(h.name)}))})}),{...t,...i}}function D0(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function HL(e){var r;if(!e)throw new Error("Invalid roles data");const t=I0(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:M0(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:i=Zn.generate(),role:s,privileges:a=[]})=>({id:i,role:s,privileges:lr(a).map(u=>{var c;return(c=Object.values(t).find(({privilege:f})=>f===u))==null?void 0:c.id}).filter(Boolean)})).reduce((i,s)=>({...i,[s.id]:{...s}}),{})}}function qL(e){const t=Object.values(e.privileges).filter(({includes:i})=>i.length===0).map(({id:i})=>i),r=[...t,...t.map(i=>tu(i,e.privileges).reverse())].flat().filter((i,s,a)=>a.indexOf(i)===s).map(i=>e.privileges[i]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((i,s)=>(s.resources.forEach(({permissions:a,resource:u,type:c})=>{let f=Pe.find(i,{applyTo:u,type:Bm(c)});f||(f={applyTo:u,type:Bm(c)},i.push(f)),a.forEach(({name:m,checked:g})=>{g&&f&&(f[m]=f[m]||[],f[m].push(s.privilege))})}),i),[])},privileges:r.filter(({privilege:i})=>i!==La).map(({id:i,includes:s,privilege:a})=>({id:i,privilege:a,includes:s.map(u=>e.privileges[u].privilege)})),roles:Object.values(e.roles).map(i=>({...i,privileges:i.privileges.map(s=>{var a;return(a=e.privileges[s])==null?void 0:a.privilege}).filter(Boolean)}))}}function ZL(e,t){const r=t[e],i={children:[],links:[],parents:[],selected:e};if(!r)return i;function s(c,f,m=[]){const g=c.reduce((h,d)=>[...h,...t[d][f]],[]);return g.length===0?m:(m.push(g),s(g,f,m))}function a(c){const f=[],m=[];for(let g=c.length-1;g>=0;g-=1){const h=c[g].filter(d=>f.includes(d)?!1:(f.push(d),!0));h.length>0&&m.unshift(lr(h))}return m}function u(c,f){const m=[];return c.reduce((g,h)=>(h.forEach(d=>{t[d][f==="parents"?"includes":"parents"].forEach(x=>{m.includes(x)&&g.push(f==="parents"?{source:d,target:x}:{source:x,target:d})}),m.push(d)}),g),[])}return i.children=s([e],"includes"),i.children=a(i.children),i.parents=s([e],"parents"),i.parents=a(i.parents),i.links=[...u([[e],...i.parents],"parents"),...u([[e],...i.children],"includes")],i}function GL(e,t,r){const i=Xr(e,r);if(!i||Pe.find(i.resources,{resource:t.applyTo,type:t.type}))return r;const s={...i,resources:[...i.resources,Bf(t)]};return{...r,[e]:s}}function VL(e,t,r){const i=Xr(e,r);if(!i)return r;const s={...i,resources:i.resources.filter(({resource:a,type:u})=>a!==t.applyTo||u!==t.type)};return{...r,[e]:s}}function KL(e,t){const r=Object.entries(e).map(([i,s])=>{const a=Xr(i,t);if(!a)return{[i]:t[i]};const u={...a,resources:a.resources.filter(({resource:c,type:f})=>!s.some(m=>m.applyTo===c&&m.type===f))};return{[i]:u}}).reduce((i,s)=>({...i,...s}),{});return{...t,...r}}function YL(e,t){const r=Xr(e,t);if(!r)return t;const i={...r,resources:r.resources.filter(s=>s.permissions.some(a=>a.from.length)).map(s=>({...s,permissions:s.permissions.map(a=>({...a,checked:!1}))}))};return{...t,[e]:i}}function XL(e,t,r,i){const s=Xr(e,i);if(!s)return i;const u=Pe.find(s.resources,{type:t.type,resource:t.resource})?{...s,resources:s.resources.map(c=>c.type===t.type&&c.resource===t.resource?{...c,permissions:t.permissions.map(f=>f.name===r.name?{...f,checked:!f.checked,from:[]}:f)}:c)}:{...s,resources:[...s.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...i,[e]:u}}function JL(e,t){var f;const r=N0(e,t)||[],i=((f=Xr(e,t))==null?void 0:f.resources)||[],u=([...r,...i].filter(({type:m})=>[qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD].includes(m))||[]).map(({resource:m})=>m);return Object.entries(t).reduce((m,[g,{resources:h}])=>(h.filter(({resource:d,type:y})=>[qe.DS_METHOD,qe.DATACLASS_METHOD,qe.ENTITY_METHOD,qe.ENTITY_SEL_METHOD].includes(y)&&u.includes(d)).forEach(({permissions:d,resource:y})=>{var p;((p=d.find(({name:w})=>w==="promote"))==null?void 0:p.checked)&&(m[y]=lr(m[y]||[],g))}),m),{})}function N0(e,t){var u;const r=Xr(e,t);if(!r)return[];const i=(u=Object.values(t).find(c=>c.privilege===La))==null?void 0:u.id;return(i&&i!==e?lr(Ma(e,t),i):Ma(e,t)).reduce((c,f)=>(t[f].resources.forEach(g=>{if(g.permissions.filter(({checked:y,name:x})=>y&&x!=="promote").length===0)return;const d=Pe.find(c,{type:g.type,resource:g.resource});if(!d){c.push({...g,permissions:g.permissions.map(y=>({...y,from:y.checked?[f]:[],checked:!1}))});return}d.permissions=d.permissions.map((y,x)=>{let{from:p=[]}=y;return g.permissions[x].checked&&!p.includes(f)&&(p=[...p,f]),{...y,from:p,checked:y.checked}})}),c),Pe.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:f,...m})=>({...m,checked:!!f}))}))))}const QL=(e,t,r)=>{const i={id:e,role:t,privileges:[]};return{...r,[i.id]:i}},eM=(e,t)=>t[e]?Object.values(t).reduce((r,i)=>e===i.id||i.role===""?r:{...r,[i.id]:i},{}):t,tM=(e,t)=>{if(Qa(e.role),Object.values(t).find(i=>i.role===e.role))throw new Error(`a role with the name ${e.role} already exists`);return Object.values(t).reduce((i,s)=>e.id===s.id?{...i,[e.id]:e}:{...i,[s.id]:s},{})};function F0(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 j0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function rM(e,t){const r=F0(e);return j0(r,t)}function nM(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const at="/rest/$designer",Ko="/rest/$designer-ext";function iM(...e){return t=>{if(e.length===0)return t;const r={...t};return e.forEach(i=>{typeof r[i]=="string"&&(r[i]=new Date(r[i]))}),r}}class Bc extends Error{constructor(t,r,i){super(),this.url=t,this.response=r,this.data=i}log(){console.error("Error while sending the request",this)}}async function Ne(e,t){var s;Ia.next({action:jo.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 a;try{const u=await r.json();((s=u==null?void 0:u.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&Ia.next({action:jo.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Bc(e,r,u)}catch{a=new Bc(e,r)}throw a.log(),a}return await r.json()}function oM(e){return Ia.next({action:jo.REQUEST_SENT}),e}var _r={},mt={},Wm;function zn(){if(Wm)return mt;Wm=1;var e=mt.ValidationError=function(p,w,v,S,E,R){if(Array.isArray(S)?(this.path=S,this.property=S.reduce(function(k,U){return k+c(U)},"instance")):S!==void 0&&(this.property=S),p&&(this.message=p),v){var T=v.$id||v.id;this.schema=T||v}w!==void 0&&(this.instance=w),this.name=E,this.argument=R,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=mt.ValidatorResult=function(p,w,v,S){this.instance=p,this.schema=w,this.options=v,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=v&&v.throwError,this.throwFirst=v&&v.throwFirst,this.throwAll=v&&v.throwAll,this.disableFormat=v&&v.disableFormat===!0};t.prototype.addError=function(p){var w;if(typeof p=="string")w=new e(p,this.instance,this.schema,this.path);else{if(!p)throw new Error("Missing error detail");if(!p.message)throw new Error("Missing error message");if(!p.name)throw new Error("Missing validator type");w=new e(p.message,this.instance,this.schema,this.path,p.name,p.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(p){typeof p=="string"||p&&p.validatorType?this.addError(p):p&&p.errors&&(this.errors=this.errors.concat(p.errors))};function r(x,p){return p+": "+x.toString()+`
205
- `}t.prototype.toString=function(p){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),mt.ValidatorResultError=i;function i(x){typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,i),this.instance=x.instance,this.schema=x.schema,this.options=x.options,this.errors=x.errors}i.prototype=new Error,i.prototype.constructor=i,i.prototype.name="Validation Error";var s=mt.SchemaError=function x(p,w){this.message=p,this.schema=w,Error.call(this,p),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,x)};s.prototype=Object.create(Error.prototype,{constructor:{value:s,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=mt.SchemaContext=function(p,w,v,S,E){this.schema=p,this.options=w,Array.isArray(v)?(this.path=v,this.propertyPath=v.reduce(function(R,T){return R+c(T)},"instance")):this.propertyPath=v,this.base=S,this.schemas=E};a.prototype.resolve=function(p){return y(this.base,p)},a.prototype.makeChild=function(p,w){var v=w===void 0?this.path:this.path.concat([w]),S=p.$id||p.id;let E=y(this.base,S||"");var R=new a(p,this.options,v,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=p),R};var u=mt.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(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var p=!0;try{new RegExp(x)}catch{p=!1}return p},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]+$/};u.regexp=u.regex,u.pattern=u.regex,u.ipv4=u["ip-address"],mt.isFormat=function(p,w,v){if(typeof p=="string"&&u[w]!==void 0){if(u[w]instanceof RegExp)return u[w].test(p);if(typeof u[w]=="function")return u[w](p)}else if(v&&v.customFormats&&typeof v.customFormats[w]=="function")return v.customFormats[w](p);return!0};var c=mt.makeSuffix=function(p){return p=p.toString(),!p.match(/[.\s\[\]]/)&&!p.match(/^[\d]/)?"."+p:p.match(/^\d+$/)?"["+p+"]":"["+JSON.stringify(p)+"]"};mt.deepCompareStrict=function x(p,w){if(typeof p!=typeof w)return!1;if(Array.isArray(p))return!Array.isArray(w)||p.length!==w.length?!1:p.every(function(E,R){return x(p[R],w[R])});if(typeof p=="object"){if(!p||!w)return p===w;var v=Object.keys(p),S=Object.keys(w);return v.length!==S.length?!1:v.every(function(E){return x(p[E],w[E])})}return p===w};function f(x,p,w,v){typeof w=="object"?p[v]=h(x[v],w):x.indexOf(w)===-1&&p.push(w)}function m(x,p,w){p[w]=x[w]}function g(x,p,w,v){typeof p[v]!="object"||!p[v]?w[v]=p[v]:x[v]?w[v]=h(x[v],p[v]):w[v]=p[v]}function h(x,p){var w=Array.isArray(p),v=w&&[]||{};return w?(x=x||[],v=v.concat(x),p.forEach(f.bind(null,x,v))):(x&&typeof x=="object"&&Object.keys(x).forEach(m.bind(null,x,v)),Object.keys(p).forEach(g.bind(null,x,p,v))),v}mt.deepMerge=h,mt.objectGetPath=function(p,w){for(var v=w.split("/").slice(1),S;typeof(S=v.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in p))return;p=p[E]}return p};function d(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}mt.encodePath=function(p){return p.map(d).join("")},mt.getDecimalPlaces=function(p){var w=0;if(isNaN(p))return w;typeof p!="number"&&(p=Number(p));var v=p.toString().split("e");if(v.length===2){if(v[1][0]!=="-")return w;w=Number(v[1].slice(1))}var S=v[0].split(".");return S.length===2&&(w+=S[1].length),w},mt.isSchema=function(p){return typeof p=="object"&&p||typeof p=="boolean"};var y=mt.resolveUrl=function(p,w){const v=new URL(w,new URL(p,"resolve://"));if(v.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=v;return S+E+R}return v.toString()};return mt}var hc,Hm;function sM(){if(Hm)return hc;Hm=1;var e=zn(),t=e.ValidatorResult,r=e.SchemaError,i={};i.ignoreProperties={id:!0,default:!0,description:!0,title:!0,additionalItems:!0,then:!0,else:!0,$schema:!0,$ref:!0,extends:!0};var s=i.validators={};s.type=function(h,d,y,x){if(h===void 0)return null;var p=new t(h,d,y,x),w=Array.isArray(d.type)?d.type:[d.type];if(!w.some(this.testType.bind(this,h,d,y,x))){var v=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});p.addError({name:"type",argument:v,message:"is not of a type(s) "+v})}return p};function a(g,h,d,y,x){var p=h.throwError,w=h.throwAll;h.throwError=!1,h.throwAll=!1;var v=this.validateSchema(g,x,h,d);return h.throwError=p,h.throwAll=w,!v.valid&&y instanceof Function&&y(v),v.valid}s.anyOf=function(h,d,y,x){if(h===void 0)return null;var p=new t(h,d,y,x),w=new t(h,d,y,x);if(!Array.isArray(d.anyOf))throw new r("anyOf must be an array");if(!d.anyOf.some(a.bind(this,h,y,x,function(S){w.importErrors(S)}))){var v=d.anyOf.map(function(S,E){var R=S.$id||S.id;return R?"<"+R+">":S.title&&JSON.stringify(S.title)||S.$ref&&"<"+S.$ref+">"||"[subschema "+E+"]"});y.nestedErrors&&p.importErrors(w),p.addError({name:"anyOf",argument:v,message:"is not any of "+v.join(",")})}return p},s.allOf=function(h,d,y,x){if(h===void 0)return null;if(!Array.isArray(d.allOf))throw new r("allOf must be an array");var p=new t(h,d,y,x),w=this;return d.allOf.forEach(function(v,S){var E=w.validateSchema(h,v,y,x);if(!E.valid){var R=v.$id||v.id,T=R||v.title&&JSON.stringify(v.title)||v.$ref&&"<"+v.$ref+">"||"[subschema "+S+"]";p.addError({name:"allOf",argument:{id:T,length:E.errors.length,valid:E},message:"does not match allOf schema "+T+" with "+E.errors.length+" error[s]:"}),p.importErrors(E)}}),p},s.oneOf=function(h,d,y,x){if(h===void 0)return null;if(!Array.isArray(d.oneOf))throw new r("oneOf must be an array");var p=new t(h,d,y,x),w=new t(h,d,y,x),v=d.oneOf.filter(a.bind(this,h,y,x,function(E){w.importErrors(E)})).length,S=d.oneOf.map(function(E,R){var T=E.$id||E.id;return T||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return v!==1&&(y.nestedErrors&&p.importErrors(w),p.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),p},s.if=function(h,d,y,x){if(h===void 0)return null;if(!e.isSchema(d.if))throw new Error('Expected "if" keyword to be a schema');var p=a.call(this,h,y,x,null,d.if),w=new t(h,d,y,x),v;if(p){if(d.then===void 0)return;if(!e.isSchema(d.then))throw new Error('Expected "then" keyword to be a schema');v=this.validateSchema(h,d.then,y,x.makeChild(d.then)),w.importErrors(v)}else{if(d.else===void 0)return;if(!e.isSchema(d.else))throw new Error('Expected "else" keyword to be a schema');v=this.validateSchema(h,d.else,y,x.makeChild(d.else)),w.importErrors(v)}return w};function u(g,h){if(Object.hasOwnProperty.call(g,h))return g[h];if(h in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,h))return g[h]}}s.propertyNames=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=d.propertyNames!==void 0?d.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var v in h)if(u(h,v)!==void 0){var S=this.validateSchema(v,w,y,x.makeChild(w));p.importErrors(S)}return p}},s.properties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=d.properties||{};for(var v in w){var S=w[v];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,v,S,y,x);var E=u(h,v),R=this.validateSchema(E,S,y,x.makeChild(S,v));R.instance!==p.instance[v]&&(p.instance[v]=R.instance),p.importErrors(R)}}return p}};function c(g,h,d,y,x,p){if(this.types.object(g)&&!(h.properties&&h.properties[x]!==void 0))if(h.additionalProperties===!1)p.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=h.additionalProperties||{};typeof d.preValidateProperty=="function"&&d.preValidateProperty(g,x,w,d,y);var v=this.validateSchema(g[x],w,d,y.makeChild(w,x));v.instance!==p.instance[x]&&(p.instance[x]=v.instance),p.importErrors(v)}}s.patternProperties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=d.patternProperties||{};for(var v in h){var S=!0;for(var E in w){var R=w[E];if(R!==void 0){if(R===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var T=new RegExp(E,"u")}catch{T=new RegExp(E)}if(T.test(v)){S=!1,typeof y.preValidateProperty=="function"&&y.preValidateProperty(h,v,R,y,x);var k=this.validateSchema(h[v],R,y,x.makeChild(R,v));k.instance!==p.instance[v]&&(p.instance[v]=k.instance),p.importErrors(k)}}}S&&c.call(this,h,d,y,x,v,p)}return p}},s.additionalProperties=function(h,d,y,x){if(this.types.object(h)){if(d.patternProperties)return null;var p=new t(h,d,y,x);for(var w in h)c.call(this,h,d,y,x,w,p);return p}},s.minProperties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=Object.keys(h);return w.length>=d.minProperties||p.addError({name:"minProperties",argument:d.minProperties,message:"does not meet minimum property length of "+d.minProperties}),p}},s.maxProperties=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x),w=Object.keys(h);return w.length<=d.maxProperties||p.addError({name:"maxProperties",argument:d.maxProperties,message:"does not meet maximum property length of "+d.maxProperties}),p}},s.items=function(h,d,y,x){var p=this;if(this.types.array(h)&&d.items!==void 0){var w=new t(h,d,y,x);return h.every(function(v,S){if(Array.isArray(d.items))var E=d.items[S]===void 0?d.additionalItems:d.items[S];else var E=d.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=p.validateSchema(v,E,y,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(h,d,y,x){var p=this;if(this.types.array(h)&&d.contains!==void 0){if(!e.isSchema(d.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(h,d,y,x),v=h.some(function(S,E){var R=p.validateSchema(S,d.contains,y,x.makeChild(d.contains,E));return R.errors.length===0});return v===!1&&w.addError({name:"contains",argument:d.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(h,d,y,x){if(this.types.number(h)){var p=new t(h,d,y,x);return d.exclusiveMinimum&&d.exclusiveMinimum===!0?h>d.minimum||p.addError({name:"minimum",argument:d.minimum,message:"must be greater than "+d.minimum}):h>=d.minimum||p.addError({name:"minimum",argument:d.minimum,message:"must be greater than or equal to "+d.minimum}),p}},s.maximum=function(h,d,y,x){if(this.types.number(h)){var p=new t(h,d,y,x);return d.exclusiveMaximum&&d.exclusiveMaximum===!0?h<d.maximum||p.addError({name:"maximum",argument:d.maximum,message:"must be less than "+d.maximum}):h<=d.maximum||p.addError({name:"maximum",argument:d.maximum,message:"must be less than or equal to "+d.maximum}),p}},s.exclusiveMinimum=function(h,d,y,x){if(typeof d.exclusiveMinimum!="boolean"&&this.types.number(h)){var p=new t(h,d,y,x),w=h>d.exclusiveMinimum;return w||p.addError({name:"exclusiveMinimum",argument:d.exclusiveMinimum,message:"must be strictly greater than "+d.exclusiveMinimum}),p}},s.exclusiveMaximum=function(h,d,y,x){if(typeof d.exclusiveMaximum!="boolean"&&this.types.number(h)){var p=new t(h,d,y,x),w=h<d.exclusiveMaximum;return w||p.addError({name:"exclusiveMaximum",argument:d.exclusiveMaximum,message:"must be strictly less than "+d.exclusiveMaximum}),p}};var f=function(h,d,y,x,p,w){if(this.types.number(h)){var v=d[p];if(v==0)throw new r(p+" cannot be zero");var S=new t(h,d,y,x),E=e.getDecimalPlaces(h),R=e.getDecimalPlaces(v),T=Math.max(E,R),k=Math.pow(10,T);return Math.round(h*k)%Math.round(v*k)!==0&&S.addError({name:p,argument:v,message:w+JSON.stringify(v)}),S}};s.multipleOf=function(h,d,y,x){return f.call(this,h,d,y,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(h,d,y,x){return f.call(this,h,d,y,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(h,d,y,x){var p=new t(h,d,y,x);return h===void 0&&d.required===!0?p.addError({name:"required",message:"is required"}):this.types.object(h)&&Array.isArray(d.required)&&d.required.forEach(function(w){u(h,w)===void 0&&p.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),p},s.pattern=function(h,d,y,x){if(this.types.string(h)){var p=new t(h,d,y,x),w=d.pattern;try{var v=new RegExp(w,"u")}catch{v=new RegExp(w)}return h.match(v)||p.addError({name:"pattern",argument:d.pattern,message:"does not match pattern "+JSON.stringify(d.pattern.toString())}),p}},s.format=function(h,d,y,x){if(h!==void 0){var p=new t(h,d,y,x);return!p.disableFormat&&!e.isFormat(h,d.format,this)&&p.addError({name:"format",argument:d.format,message:"does not conform to the "+JSON.stringify(d.format)+" format"}),p}},s.minLength=function(h,d,y,x){if(this.types.string(h)){var p=new t(h,d,y,x),w=h.match(/[\uDC00-\uDFFF]/g),v=h.length-(w?w.length:0);return v>=d.minLength||p.addError({name:"minLength",argument:d.minLength,message:"does not meet minimum length of "+d.minLength}),p}},s.maxLength=function(h,d,y,x){if(this.types.string(h)){var p=new t(h,d,y,x),w=h.match(/[\uDC00-\uDFFF]/g),v=h.length-(w?w.length:0);return v<=d.maxLength||p.addError({name:"maxLength",argument:d.maxLength,message:"does not meet maximum length of "+d.maxLength}),p}},s.minItems=function(h,d,y,x){if(this.types.array(h)){var p=new t(h,d,y,x);return h.length>=d.minItems||p.addError({name:"minItems",argument:d.minItems,message:"does not meet minimum length of "+d.minItems}),p}},s.maxItems=function(h,d,y,x){if(this.types.array(h)){var p=new t(h,d,y,x);return h.length<=d.maxItems||p.addError({name:"maxItems",argument:d.maxItems,message:"does not meet maximum length of "+d.maxItems}),p}};function m(g,h,d){var y,x=d.length;for(y=h+1,x;y<x;y++)if(e.deepCompareStrict(g,d[y]))return!1;return!0}return s.uniqueItems=function(h,d,y,x){if(d.uniqueItems===!0&&this.types.array(h)){var p=new t(h,d,y,x);return h.every(m)||p.addError({name:"uniqueItems",message:"contains duplicate item"}),p}},s.dependencies=function(h,d,y,x){if(this.types.object(h)){var p=new t(h,d,y,x);for(var w in d.dependencies)if(h[w]!==void 0){var v=d.dependencies[w],S=x.makeChild(v,w);if(typeof v=="string"&&(v=[v]),Array.isArray(v))v.forEach(function(R){h[R]===void 0&&p.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(h,v,y,S);p.instance!==E.instance&&(p.instance=E.instance),E&&E.errors.length&&(p.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),p.importErrors(E))}}return p}},s.enum=function(h,d,y,x){if(h===void 0)return null;if(!Array.isArray(d.enum))throw new r("enum expects an array",d);var p=new t(h,d,y,x);return d.enum.some(e.deepCompareStrict.bind(null,h))||p.addError({name:"enum",argument:d.enum,message:"is not one of enum values: "+d.enum.map(String).join(",")}),p},s.const=function(h,d,y,x){if(h===void 0)return null;var p=new t(h,d,y,x);return e.deepCompareStrict(d.const,h)||p.addError({name:"const",argument:d.const,message:"does not exactly match expected constant: "+d.const}),p},s.not=s.disallow=function(h,d,y,x){var p=this;if(h===void 0)return null;var w=new t(h,d,y,x),v=d.not||d.disallow;return v?(Array.isArray(v)||(v=[v]),v.forEach(function(S){if(p.testType(h,d,y,x,S)){var E=S&&(S.$id||S.id),R=E||S;w.addError({name:"not",argument:R,message:"is of prohibited type "+R})}}),w):null},hc=i,hc}var aa={},qm;function Uc(){if(qm)return aa;qm=1;var e=zn();aa.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return aa.scan=function(i,s){function a(g,h){if(!h||typeof h!="object")return;if(h.$ref){let p=e.resolveUrl(g,h.$ref);m[p]=m[p]?m[p]+1:0;return}var d=h.$id||h.id;let y=e.resolveUrl(g,d);var x=d?y:g;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],h))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=h,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=h)}u(x+"/items",Array.isArray(h.items)?h.items:[h.items]),u(x+"/extends",Array.isArray(h.extends)?h.extends:[h.extends]),a(x+"/additionalItems",h.additionalItems),c(x+"/properties",h.properties),a(x+"/additionalProperties",h.additionalProperties),c(x+"/definitions",h.definitions),c(x+"/patternProperties",h.patternProperties),c(x+"/dependencies",h.dependencies),u(x+"/disallow",h.disallow),u(x+"/allOf",h.allOf),u(x+"/anyOf",h.anyOf),u(x+"/oneOf",h.oneOf),a(x+"/not",h.not)}function u(g,h){if(Array.isArray(h))for(var d=0;d<h.length;d++)a(g+"/"+d,h[d])}function c(g,h){if(!(!h||typeof h!="object"))for(var d in h)a(g+"/"+d,h[d])}var f={},m={};return a(i,s),new t(f,m)},aa}var gc,Zm;function aM(){if(Zm)return gc;Zm=1;var e=sM(),t=zn(),r=Uc().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,u=t.SchemaContext,c="/",f=function h(){this.customFormats=Object.create(h.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(g),this.attributes=Object.create(e.validators)};f.prototype.customFormats={},f.prototype.schemas=null,f.prototype.types=null,f.prototype.attributes=null,f.prototype.unresolvedRefs=null,f.prototype.addSchema=function(d,y){var x=this;if(!d)return null;var p=r(y||c,d),w=y||d.$id||d.id;for(var v in p.id)this.schemas[v]=p.id[v];for(var v in p.ref)this.unresolvedRefs.push(v);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(d,y){if(Array.isArray(y))for(var x=0;x<y.length;x++)this.addSubSchema(d,y[x])},f.prototype.addSubSchemaObject=function(d,y){if(!(!y||typeof y!="object"))for(var x in y)this.addSubSchema(d,y[x])},f.prototype.setSchemas=function(d){this.schemas=d},f.prototype.getSchema=function(d){return this.schemas[d]},f.prototype.validate=function(d,y,x,p){if(typeof y!="boolean"&&typeof y!="object"||y===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=y.$id||y.id;let v=t.resolveUrl(x.base,w||"");if(!p){p=new u(y,x,[],v,Object.create(this.schemas)),p.schemas[v]||(p.schemas[v]=y);var S=r(v,y);for(var E in S.id){var R=S.id[E];p.schemas[E]=R}}if(x.required&&d===void 0){var T=new i(d,y,x,p);return T.addError("is required, but is undefined"),T}var T=this.validateSchema(d,y,x,p);if(T){if(x.throwAll&&T.errors.length)throw new s(T)}else throw new Error("Result undefined");return T};function m(h){var d=typeof h=="string"?h:h.$ref;return typeof d=="string"?d:!1}f.prototype.validateSchema=function(d,y,x,p){var w=new i(d,y,x,p);if(typeof y=="boolean")y===!0?y={}:y===!1&&(y={type:[]});else if(!y)throw new Error("schema is undefined");if(y.extends)if(Array.isArray(y.extends)){var v={schema:y,ctx:p};y.extends.forEach(this.schemaTraverser.bind(this,v)),y=v.schema,v.schema=null,v.ctx=null,v=null}else y=t.deepMerge(y,this.superResolve(y.extends,p));var S=m(y);if(S){var E=this.resolve(y,S,p),R=new u(E.subschema,x,p.path,E.switchSchema,p.schemas);return this.validateSchema(d,E.subschema,x,R)}var T=x&&x.skipAttributes||[];for(var k in y)if(!e.ignoreProperties[k]&&T.indexOf(k)<0){var U=null,D=this.attributes[k];if(D)U=D.call(this,d,y,x,p);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,y);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var N=x.rewrite.call(this,d,y,x,p);w.instance=N}return w},f.prototype.schemaTraverser=function(d,y){d.schema=t.deepMerge(d.schema,this.superResolve(y,d.ctx))},f.prototype.superResolve=function(d,y){var x=m(d);return x?this.resolve(d,x,y).subschema:d},f.prototype.resolve=function(d,y,x){if(y=x.resolve(y),x.schemas[y])return{subschema:x.schemas[y],switchSchema:y};let w=new URL(y,"thismessage::/").hash;var v=w&&w.length&&y.substr(0,y.length-w.length);if(!v||!x.schemas[v])throw new a("no such schema <"+y+">",d);var S=t.objectGetPath(x.schemas[v],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+v+">",d);return{subschema:S,switchSchema:y}},f.prototype.testType=function(d,y,x,p,w){if(w!==void 0){if(w===null)throw new a('Unexpected null in "type" keyword');if(typeof this.types[w]=="function")return this.types[w].call(this,d);if(w&&typeof w=="object"){var v=this.validateSchema(d,w,x,p);return v===void 0||!(v&&v.errors.length)}return!0}};var g=f.prototype.types={};return g.string=function(d){return typeof d=="string"},g.number=function(d){return typeof d=="number"&&isFinite(d)},g.integer=function(d){return typeof d=="number"&&d%1===0},g.boolean=function(d){return typeof d=="boolean"},g.array=function(d){return Array.isArray(d)},g.null=function(d){return d===null},g.date=function(d){return d instanceof Date},g.any=function(d){return!0},g.object=function(d){return d&&typeof d=="object"&&!Array.isArray(d)&&!(d instanceof Date)},gc=f,gc}var Gm;function uM(){if(Gm)return _r;Gm=1;var e=_r.Validator=aM();return _r.ValidatorResult=zn().ValidatorResult,_r.ValidatorResultError=zn().ValidatorResultError,_r.ValidationError=zn().ValidationError,_r.SchemaError=zn().SchemaError,_r.SchemaScanResult=Uc().SchemaScanResult,_r.scan=Uc().scan,_r.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},_r}var lM=uM();const z0=(e,t,r)=>{const i=e instanceof RegExp?Vm(e,r):e,s=t instanceof RegExp?Vm(t,r):t,a=i!==null&&s!=null&&cM(i,s,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+i.length,a[1]),post:r.slice(a[1]+s.length)}},Vm=(e,t)=>{const r=t.match(e);return r?r[0]:null},cM=(e,t,r)=>{let i,s,a,u,c,f=r.indexOf(e),m=r.indexOf(t,f+1),g=f;if(f>=0&&m>0){if(e===t)return[f,m];for(i=[],a=r.length;g>=0&&!c;){if(g===f)i.push(g),f=r.indexOf(e,g+1);else if(i.length===1){const h=i.pop();h!==void 0&&(c=[h,m])}else s=i.pop(),s!==void 0&&s<a&&(a=s,u=m),m=r.indexOf(t,g+1);g=f<m&&f>=0?f:m}i.length&&u!==void 0&&(c=[a,u])}return c},B0="\0SLASH"+Math.random()+"\0",U0="\0OPEN"+Math.random()+"\0",Uf="\0CLOSE"+Math.random()+"\0",W0="\0COMMA"+Math.random()+"\0",H0="\0PERIOD"+Math.random()+"\0",fM=new RegExp(B0,"g"),dM=new RegExp(U0,"g"),pM=new RegExp(Uf,"g"),hM=new RegExp(W0,"g"),gM=new RegExp(H0,"g"),mM=/\\\\/g,vM=/\\{/g,yM=/\\}/g,bM=/\\,/g,wM=/\\./g;function mc(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function xM(e){return e.replace(mM,B0).replace(vM,U0).replace(yM,Uf).replace(bM,W0).replace(wM,H0)}function SM(e){return e.replace(fM,"\\").replace(dM,"{").replace(pM,"}").replace(hM,",").replace(gM,".")}function q0(e){if(!e)return[""];const t=[],r=z0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,u=i.split(",");u[u.length-1]+="{"+s+"}";const c=q0(a);return a.length&&(u[u.length-1]+=c.shift(),u.push.apply(u,c)),t.push.apply(t,u),t}function EM(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),To(xM(e),!0).map(SM)):[]}function _M(e){return"{"+e+"}"}function TM(e){return/^-?0\d/.test(e)}function OM(e,t){return e<=t}function AM(e,t){return e>=t}function To(e,t){const r=[],i=z0("{","}",e);if(!i)return[e];const s=i.pre,a=i.post.length?To(i.post,!1):[""];if(/\$$/.test(i.pre))for(let u=0;u<a.length;u++){const c=s+"{"+i.body+"}"+a[u];r.push(c)}else{const u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=u||c,m=i.body.indexOf(",")>=0;if(!f&&!m)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Uf+i.post,To(e)):[e];let g;if(f)g=i.body.split(/\.\./);else if(g=q0(i.body),g.length===1&&g[0]!==void 0&&(g=To(g[0],!1).map(_M),g.length===1))return a.map(d=>i.pre+g[0]+d);let h;if(f&&g[0]!==void 0&&g[1]!==void 0){const d=mc(g[0]),y=mc(g[1]),x=Math.max(g[0].length,g[1].length);let p=g.length===3&&g[2]!==void 0?Math.abs(mc(g[2])):1,w=OM;y<d&&(p*=-1,w=AM);const S=g.some(TM);h=[];for(let E=d;w(E,y);E+=p){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const T=x-R.length;if(T>0){const k=new Array(T+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}h.push(R)}}else{h=[];for(let d=0;d<g.length;d++)h.push.apply(h,To(g[d],!1))}for(let d=0;d<h.length;d++)for(let y=0;y<a.length;y++){const x=s+h[d]+a[y];(!t||f||x)&&r.push(x)}}return r}const RM=1024*64,Da=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>RM)throw new TypeError("pattern is too long")},PM={"[: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]},bo=e=>e.replace(/[[\]\\-]/g,"\\$&"),CM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Km=e=>e.join(""),kM=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,u=!1,c=!1,f=!1,m=!1,g=r,h="";e:for(;a<e.length;){const p=e.charAt(a);if((p==="!"||p==="^")&&a===r+1){m=!0,a++;continue}if(p==="]"&&u&&!f){g=a+1;break}if(u=!0,p==="\\"&&!f){f=!0,a++;continue}if(p==="["&&!f){for(const[w,[v,S,E]]of Object.entries(PM))if(e.startsWith(w,a)){if(h)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(v):i.push(v),c=c||S;continue e}}if(f=!1,h){p>h?i.push(bo(h)+"-"+bo(p)):p===h&&i.push(bo(p)),h="",a++;continue}if(e.startsWith("-]",a+1)){i.push(bo(p+"-")),a+=2;continue}if(e.startsWith("-",a+1)){h=p,a+=2;continue}i.push(bo(p)),a++}if(g<a)return["",!1,0,!1];if(!i.length&&!s.length)return["$.",!1,e.length-r,!0];if(s.length===0&&i.length===1&&/^\\?.$/.test(i[0])&&!m){const p=i[0].length===2?i[0].slice(-1):i[0];return[CM(p),!1,g-r,!1]}const d="["+(m?"^":"")+Km(i)+"]",y="["+(m?"":"^")+Km(s)+"]";return[i.length&&s.length?"("+d+"|"+y+")":i.length?d:y,c,g-r,!0]},Oo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),IM=new Set(["!","?","+","*","@"]),Ym=e=>IM.has(e),$M="(?!(?:^|/)\\.\\.?(?:$|/))",ua="(?!\\.)",LM=new Set(["[","."]),MM=new Set(["..","."]),DM=new Set("().*{}+?[]^$\\!"),NM=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Wf="[^/]",Xm=Wf+"*?",Jm=Wf+"+?";var ct,pt,Vr,Ge,st,gn,Bn,mn,Or,Un,Uo,Yn,Z0,bn,ba,Wc,G0;const Pt=class Pt{constructor(t,r,i={}){Et(this,Yn);ve(this,"type");Et(this,ct);Et(this,pt);Et(this,Vr,!1);Et(this,Ge,[]);Et(this,st);Et(this,gn);Et(this,Bn);Et(this,mn,!1);Et(this,Or);Et(this,Un);Et(this,Uo,!1);this.type=t,t&&rt(this,pt,!0),rt(this,st,r),rt(this,ct,re(this,st)?re(re(this,st),ct):this),rt(this,Or,re(this,ct)===this?i:re(re(this,ct),Or)),rt(this,Bn,re(this,ct)===this?[]:re(re(this,ct),Bn)),t==="!"&&!re(re(this,ct),mn)&&re(this,Bn).push(this),rt(this,gn,re(this,st)?re(re(this,st),Ge).length:0)}get hasMagic(){if(re(this,pt)!==void 0)return re(this,pt);for(const t of re(this,Ge))if(typeof t!="string"&&(t.type||t.hasMagic))return rt(this,pt,!0);return re(this,pt)}toString(){return re(this,Un)!==void 0?re(this,Un):this.type?rt(this,Un,this.type+"("+re(this,Ge).map(t=>String(t)).join("|")+")"):rt(this,Un,re(this,Ge).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Pt&&re(r,st)===this))throw new Error("invalid part: "+r);re(this,Ge).push(r)}}toJSON(){var r;const t=this.type===null?re(this,Ge).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,Ge).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ct)||re(re(this,ct),mn)&&((r=re(this,st))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ct)===this)return!0;if(!((r=re(this,st))!=null&&r.isStart()))return!1;if(re(this,gn)===0)return!0;const t=re(this,st);for(let i=0;i<re(this,gn);i++){const s=re(t,Ge)[i];if(!(s instanceof Pt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(re(this,ct)===this||((r=re(this,st))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,st))!=null&&i.isEnd()))return!1;if(!this.type)return(s=re(this,st))==null?void 0:s.isEnd();const t=re(this,st)?re(re(this,st),Ge).length:0;return re(this,gn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Pt(this.type,t);for(const i of re(this,Ge))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Pt(null,void 0,r);return $e(s=Pt,bn,ba).call(s,t,i,0,r),i}toMMPattern(){if(this!==re(this,ct))return re(this,ct).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||re(this,pt)||re(this,Or).nocase&&!re(this,Or).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Or).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Or)}toRegExpSource(t){var f;const r=t??!!re(this,Or).dot;if(re(this,ct)===this&&$e(this,Yn,Z0).call(this),!this.type){const m=this.isStart()&&this.isEnd(),g=re(this,Ge).map(x=>{var E;const[p,w,v,S]=typeof x=="string"?$e(E=Pt,bn,G0).call(E,x,re(this,pt),m):x.toRegExpSource(t);return rt(this,pt,re(this,pt)||v),rt(this,Vr,re(this,Vr)||S),p}).join("");let h="";if(this.isStart()&&typeof re(this,Ge)[0]=="string"&&!(re(this,Ge).length===1&&MM.has(re(this,Ge)[0]))){const p=LM,w=r&&p.has(g.charAt(0))||g.startsWith("\\.")&&p.has(g.charAt(2))||g.startsWith("\\.\\.")&&p.has(g.charAt(4)),v=!r&&!t&&p.has(g.charAt(0));h=w?$M:v?ua:""}let d="";return this.isEnd()&&re(re(this,ct),mn)&&((f=re(this,st))==null?void 0:f.type)==="!"&&(d="(?:$|\\/)"),[h+g+d,Oo(g),rt(this,pt,!!re(this,pt)),re(this,Vr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,Yn,Wc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const m=this.toString();return rt(this,Ge,[m]),this.type=null,rt(this,pt,void 0),[m,Oo(this.toString()),!1,!1]}let u=!i||t||r||!ua?"":$e(this,Yn,Wc).call(this,!0);u===a&&(u=""),u&&(a=`(?:${a})(?:${u})*?`);let c="";if(this.type==="!"&&re(this,Uo))c=(this.isStart()&&!r?ua:"")+Jm;else{const m=this.type==="!"?"))"+(this.isStart()&&!r&&!t?ua:"")+Xm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&u?")":this.type==="*"&&u?")?":`)${this.type}`;c=s+a+m}return[c,Oo(a),rt(this,pt,!!re(this,pt)),re(this,Vr)]}};ct=new WeakMap,pt=new WeakMap,Vr=new WeakMap,Ge=new WeakMap,st=new WeakMap,gn=new WeakMap,Bn=new WeakMap,mn=new WeakMap,Or=new WeakMap,Un=new WeakMap,Uo=new WeakMap,Yn=new WeakSet,Z0=function(){if(this!==re(this,ct))throw new Error("should only call on root");if(re(this,mn))return this;this.toString(),rt(this,mn,!0);let t;for(;t=re(this,Bn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,st);for(;i;){for(let s=re(r,gn)+1;!i.type&&s<re(i,Ge).length;s++)for(const a of re(t,Ge)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(i,Ge)[s])}r=i,i=re(r,st)}}return this},bn=new WeakSet,ba=function(t,r,i,s){var y,x;let a=!1,u=!1,c=-1,f=!1;if(r.type===null){let p=i,w="";for(;p<t.length;){const v=t.charAt(p++);if(a||v==="\\"){a=!a,w+=v;continue}if(u){p===c+1?(v==="^"||v==="!")&&(f=!0):v==="]"&&!(p===c+2&&f)&&(u=!1),w+=v;continue}else if(v==="["){u=!0,c=p,f=!1,w+=v;continue}if(!s.noext&&Ym(v)&&t.charAt(p)==="("){r.push(w),w="";const S=new Pt(v,r);p=$e(y=Pt,bn,ba).call(y,t,S,p,s),r.push(S);continue}w+=v}return r.push(w),p}let m=i+1,g=new Pt(null,r);const h=[];let d="";for(;m<t.length;){const p=t.charAt(m++);if(a||p==="\\"){a=!a,d+=p;continue}if(u){m===c+1?(p==="^"||p==="!")&&(f=!0):p==="]"&&!(m===c+2&&f)&&(u=!1),d+=p;continue}else if(p==="["){u=!0,c=m,f=!1,d+=p;continue}if(Ym(p)&&t.charAt(m)==="("){g.push(d),d="";const w=new Pt(p,g);g.push(w),m=$e(x=Pt,bn,ba).call(x,t,w,m,s);continue}if(p==="|"){g.push(d),d="",h.push(g),g=new Pt(null,r);continue}if(p===")")return d===""&&re(r,Ge).length===0&&rt(r,Uo,!0),g.push(d),d="",r.push(...h,g),m;d+=p}return r.type=null,rt(r,pt,void 0),rt(r,Ge,[t.substring(i-1)]),m},Wc=function(t){return re(this,Ge).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,u]=r.toRegExpSource(t);return rt(this,Vr,re(this,Vr)||u),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},G0=function(t,r,i=!1){let s=!1,a="",u=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(s){s=!1,a+=(DM.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(f==="["){const[m,g,h,d]=kM(t,c);if(h){a+=m,u=u||g,c+=h-1,r=r||d;continue}}if(f==="*"){i&&t==="*"?a+=Jm:a+=Xm,r=!0;continue}if(f==="?"){a+=Wf,r=!0;continue}a+=NM(f)}return[a,Oo(t),!!r,u]},Et(Pt,bn);let Na=Pt;const FM=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Tt=(e,t,r={})=>(Da(t),!r.nocomment&&t.charAt(0)==="#"?!1:new ru(t,r).match(e)),jM=/^\*+([^+@!?\*\[\(]*)$/,zM=e=>t=>!t.startsWith(".")&&t.endsWith(e),BM=e=>t=>t.endsWith(e),UM=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),WM=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),HM=/^\*+\.\*+$/,qM=e=>!e.startsWith(".")&&e.includes("."),ZM=e=>e!=="."&&e!==".."&&e.includes("."),GM=/^\.\*+$/,VM=e=>e!=="."&&e!==".."&&e.startsWith("."),KM=/^\*+$/,YM=e=>e.length!==0&&!e.startsWith("."),XM=e=>e.length!==0&&e!=="."&&e!=="..",JM=/^\?+([^+@!?\*\[\(]*)?$/,QM=([e,t=""])=>{const r=V0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},eD=([e,t=""])=>{const r=K0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},tD=([e,t=""])=>{const r=K0([e]);return t?i=>r(i)&&i.endsWith(t):r},rD=([e,t=""])=>{const r=V0([e]);return t?i=>r(i)&&i.endsWith(t):r},V0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},K0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},Y0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",Qm={win32:{sep:"\\"},posix:{sep:"/"}},nD=Y0==="win32"?Qm.win32.sep:Qm.posix.sep;Tt.sep=nD;const or=Symbol("globstar **");Tt.GLOBSTAR=or;const iD="[^/]",oD=iD+"*?",sD="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",aD="(?:(?!(?:\\/|^)\\.).)*?",uD=(e,t={})=>r=>Tt(r,e,t);Tt.filter=uD;const ir=(e,t={})=>Object.assign({},e,t),lD=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Tt;const t=Tt;return Object.assign((i,s,a={})=>t(i,s,ir(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,ir(e,a))}static defaults(s){return t.defaults(ir(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,u={}){super(s,a,ir(e,u))}static fromGlob(s,a={}){return t.AST.fromGlob(s,ir(e,a))}},unescape:(i,s={})=>t.unescape(i,ir(e,s)),escape:(i,s={})=>t.escape(i,ir(e,s)),filter:(i,s={})=>t.filter(i,ir(e,s)),defaults:i=>t.defaults(ir(e,i)),makeRe:(i,s={})=>t.makeRe(i,ir(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,ir(e,s)),match:(i,s,a={})=>t.match(i,s,ir(e,a)),sep:t.sep,GLOBSTAR:or})};Tt.defaults=lD;const X0=(e,t={})=>(Da(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:EM(e));Tt.braceExpand=X0;const cD=(e,t={})=>new ru(e,t).makeRe();Tt.makeRe=cD;const fD=(e,t,r={})=>{const i=new ru(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};Tt.match=fD;const ev=/[?*]|[+@!]\(.*?\)|\[|\]/,dD=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class ru{constructor(t,r={}){ve(this,"options");ve(this,"set");ve(this,"pattern");ve(this,"windowsPathsNoEscape");ve(this,"nonegate");ve(this,"negate");ve(this,"comment");ve(this,"empty");ve(this,"preserveMultipleSlashes");ve(this,"partial");ve(this,"globSet");ve(this,"globParts");ve(this,"nocase");ve(this,"isWindows");ve(this,"platform");ve(this,"windowsNoMagicRoot");ve(this,"regexp");Da(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||Y0,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r.allowWindowsEscape===!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=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const i=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(i),this.debug(this.pattern,this.globParts);let s=this.globParts.map((a,u,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!ev.test(a[2]))&&!ev.test(a[3]),m=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(g=>this.parse(g))];if(m)return[a[0],...a.slice(1).map(g=>this.parse(g))]}return a.map(f=>this.parse(f))});if(this.debug(this.pattern,s),this.set=s.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const u=this.set[a];u[0]===""&&u[1]===""&&this.globParts[a][2]==="?"&&typeof u[3]=="string"&&/^[a-z]:$/i.test(u[3])&&(u[2]="?")}this.debug(this.pattern,this.set)}preprocess(t){if(this.options.noglobstar)for(let i=0;i<t.length;i++)for(let s=0;s<t[i].length;s++)t[i][s]==="**"&&(t[i][s]="*");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 i=-1;for(;(i=r.indexOf("**",i+1))!==-1;){let s=i;for(;r[s+1]==="**";)s++;s!==i&&r.splice(i,s-i)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((i,s)=>{const a=i[i.length-1];return s==="**"&&a==="**"?i:s===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(i.pop(),i):(i.push(s),i)},[]),r.length===0?[""]:r))}levelTwoFileOptimize(t){Array.isArray(t)||(t=this.slashSplit(t));let r=!1;do{if(r=!1,!this.preserveMultipleSlashes){for(let s=1;s<t.length-1;s++){const a=t[s];s===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(s,1),s--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let i=0;for(;(i=t.indexOf("..",i+1))!==-1;){const s=t[i-1];s&&s!=="."&&s!==".."&&s!=="**"&&(r=!0,t.splice(i-1,2),i-=2)}}while(r);return t.length===0?[""]:t}firstPhasePreProcess(t){let r=!1;do{r=!1;for(let i of t){let s=-1;for(;(s=i.indexOf("**",s+1))!==-1;){let u=s;for(;i[u+1]==="**";)u++;u>s&&i.splice(s+1,u-s);let c=i[s+1];const f=i[s+2],m=i[s+3];if(c!==".."||!f||f==="."||f===".."||!m||m==="."||m==="..")continue;r=!0,i.splice(s,1);const g=i.slice(0);g[s]="**",t.push(g),s--}if(!this.preserveMultipleSlashes){for(let u=1;u<i.length-1;u++){const c=i[u];u===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(u,1),u--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const u=i[a-1];if(u&&u!=="."&&u!==".."&&u!=="**"){r=!0;const f=a===1&&i[a+1]==="**"?["."]:[];i.splice(a-1,2,...f),i.length===0&&i.push(""),a-=2}}}}while(r);return t}secondPhasePreProcess(t){for(let r=0;r<t.length-1;r++)for(let i=r+1;i<t.length;i++){const s=this.partsMatch(t[r],t[i],!this.preserveMultipleSlashes);if(s){t[r]=[],t[i]=s;break}}return t.filter(r=>r.length)}partsMatch(t,r,i=!1){let s=0,a=0,u=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])u.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])u.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])u.push(r[a]),a++;else if(t[s]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",u.push(t[s]),s++,a++}else if(r[a]==="*"&&t[s]&&(this.options.dot||!t[s].startsWith("."))&&t[s]!=="**"){if(c==="a")return!1;c="b",u.push(r[a]),s++,a++}else return!1;return t.length===r.length&&u}parseNegate(){if(this.nonegate)return;const t=this.pattern;let r=!1,i=0;for(let s=0;s<t.length&&t.charAt(s)==="!";s++)r=!r,i++;i&&(this.pattern=t.slice(i)),this.negate=r}matchOne(t,r,i=!1){const s=this.options;if(this.isWindows){const p=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!p&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),v=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!v&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=w?3:p?0:void 0,R=S?3:v?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[T,k]=[t[E],r[R]];T.toLowerCase()===k.toLowerCase()&&(r[R]=T,R>E?r=r.slice(R):E>R&&(t=t.slice(E)))}}const{optimizationLevel:a=1}=this.options;a>=2&&(t=this.levelTwoFileOptimize(t)),this.debug("matchOne",this,{file:t,pattern:r}),this.debug("matchOne",t.length,r.length);for(var u=0,c=0,f=t.length,m=r.length;u<f&&c<m;u++,c++){this.debug("matchOne loop");var g=r[c],h=t[u];if(this.debug(r,g,h),g===!1)return!1;if(g===or){this.debug("GLOBSTAR",[r,g,h]);var d=u,y=c+1;if(y===m){for(this.debug("** at the end");u<f;u++)if(t[u]==="."||t[u]===".."||!s.dot&&t[u].charAt(0)===".")return!1;return!0}for(;d<f;){var x=t[d];if(this.debug(`
206
- globstar while`,t,d,r,y,x),this.matchOne(t.slice(d),r.slice(y),i))return this.debug("globstar found match!",d,f,x),!0;if(x==="."||x===".."||!s.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,d,r,y);break}this.debug("globstar swallow a segment, and continue"),d++}return!!(i&&(this.debug(`
207
- >>> no match, partial?`,t,d,r,y),d===f))}let p;if(typeof g=="string"?(p=h===g,this.debug("string match",g,h,p)):(p=g.test(h),this.debug("pattern match",g,h,p)),!p)return!1}if(u===f&&c===m)return!0;if(u===f)return i;if(c===m)return u===f-1&&t[u]==="";throw new Error("wtf?")}braceExpand(){return X0(this.pattern,this.options)}parse(t){Da(t);const r=this.options;if(t==="**")return or;if(t==="")return"";let i,s=null;(i=t.match(KM))?s=r.dot?XM:YM:(i=t.match(jM))?s=(r.nocase?r.dot?WM:UM:r.dot?BM:zM)(i[1]):(i=t.match(JM))?s=(r.nocase?r.dot?eD:QM:r.dot?tD:rD)(i):(i=t.match(HM))?s=r.dot?ZM:qM:(i=t.match(GM))&&(s=VM);const a=Na.fromGlob(t,this.options).toMMPattern();return s&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:s}),a}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,i=r.noglobstar?oD:r.dot?sD:aD,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const m=f.map(g=>{if(g instanceof RegExp)for(const h of g.flags.split(""))s.add(h);return typeof g=="string"?dD(g):g===or?or:g._src});return m.forEach((g,h)=>{const d=m[h+1],y=m[h-1];g!==or||y===or||(y===void 0?d!==void 0&&d!==or?m[h+1]="(?:\\/|"+i+"\\/)?"+d:m[h]=i:d===void 0?m[h-1]=y+"(?:\\/|"+i+")?":d!==or&&(m[h-1]=y+"(?:\\/|\\/"+i+"\\/)"+d,m[h+1]=or))}),m.filter(g=>g!==or).join("/")}).join("|");const[u,c]=t.length>1?["(?:",")"]:["",""];a="^"+u+a+c+"$",this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...s].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 i=this.options;this.isWindows&&(t=t.split("\\").join("/"));const s=this.slashSplit(t);this.debug(this.pattern,"split",s);const a=this.set;this.debug(this.pattern,"set",a);let u=s[s.length-1];if(!u)for(let c=s.length-2;!u&&c>=0;c--)u=s[c];for(let c=0;c<a.length;c++){const f=a[c];let m=s;if(i.matchBase&&f.length===1&&(m=[u]),this.matchOne(m,f,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Tt.defaults(t).Minimatch}}Tt.AST=Na;Tt.Minimatch=ru;Tt.escape=FM;Tt.unescape=Oo;const Bo="/$shared",pD={"**/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 J0(e){const t=Object.entries(pD).find(([r])=>Tt(e,r));return t==null?void 0:t[1]}function nu(e){var i;const t=(i=J0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Bo}/`,"Shared/");Hf({name:r,content:t,asText:typeof t=="string"})}async function hD(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ne(`${Bo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){Q0(r)&&nu(`${Bo}/${t}`)}}function Yo({path:e,createIfNotExists:t=!1}){const r=`${Bo}/${e}`;return Ne(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=J0(e);let a=i;if(!s)return a;if(typeof a=="string")try{switch(s.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(s.schema&&!new lM.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(Q0(i)&&t){const s=gD(i,e);u0.next({message:s,kind:"warning"}),nu(r)}throw i})}function Q0(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 gD(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 mD(e){return Ne(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function vD(e){return Ne(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const eb=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Mf.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function yD(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:En.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const u=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:u:s.webServerHTTPPort?u:c})();return{projectOpened:s.webServerHTTPSPort>0||s.webServerHTTPPort>0,remoteDebuggerMode:s.remoteDebuggerMode,baseUrl:a,qodly:typeof s.qodly>"u"?!0:s.qodly,urls:{renderer:s.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${i?"s":""}://${t}/remoteDebugger`,lsp:`ws${i?"s":""}://${t}/LSP`},isRestActive:s.isRESTActive}}catch(s){return console.error(s),eb()}}async function tb(e){return await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function bD(...e){return(await Promise.all(e.map(i=>tb({root:i,verb:En.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:u})=>({name:s,type:u,date:a,path:`${u}/${s}`}))).flat()}function wD(e,t={}){const{sanitize:r=!0}=t;return Ne(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Pe.entries(i.components).map(([a,u])=>{const c=a,{resolvedName:f}=u.type;if(f==="WebformLoader"){const m=Zn.generate();s.set(a,m),a=m}return[a,u,c]}).reduce((a,[u,c,f])=>{var m;return c.nodes&&(c.nodes=c.nodes.map(g=>s.get(g)||g)),c.linkedNodes&&(c.linkedNodes=Pe.entries(c.linkedNodes).reduce((g,[h,d])=>({...g,[h]:s.get(d)||d}),{})),(m=c.props)!=null&&m.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=s.get(g.loader)||g.loader),g))),{...a,[u]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function xD(e){return Ne(at,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Je.METHOD,Je.CLASS].includes(t.type)?eu(t.content):t.content}))}function SD(e){return e.type==="folder"?Ne(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function ED(e){return e.type==="folder"?(await Ne(Ko,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function _D(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function TD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function OD(e){return(await Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function AD(...e){return await Ne(at,{method:"POST",body:JSON.stringify({verb:En.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function RD(e){const t=await Ne("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function PD(){return await Ne("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function CD(e){try{const t=process.env.NODE_ENV==="development"?"/i18n/languages.json":`/$lib/${e?"studio":"renderer"}/i18n/languages.json`,i=await(await fetch(t)).text(),{supported:s}=JSON.parse(i);return s}catch{return[]}}async function kD({name:e,path:t="",root:r="root",asText:i=!1}){return Ne(at,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function ID(e={}){try{return{...await Yo({path:"shared_datasources.json",...e}),...$a}}catch{return{...$a}}}async function $D(e={}){try{return await Yo({path:"shared_app_events.json",...e})}catch{return[]}}async function LD(e={}){try{return await Yo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function MD(e={}){try{return await Yo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function DD(){try{return await Ne("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function ND(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const FD=Nf(),jD=async e=>{const t={verb:En.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Pe.omit(e,Pe.keys($a))};return FD(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},zD=Nf(),BD=async e=>{const t={verb:En.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return zD(()=>Ne(at,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Hf=async e=>{const t=await Ne(at,{method:"POST",body:JSON.stringify({...e,verb:En.SET_FILE_CONTENT,root:Lf.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Df(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},UD=async e=>await Hf({name:"crafted_components.json",path:yn.WEBFORMS,content:e});function WD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function HD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function qD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ZD(e){return Ne(at,{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)?eu(t.content):t.content}).catch(t=>{var r,i;throw((i=(r=t.data)==null?void 0:r.__ERROR[0])==null?void 0:i.errCode)===1839&&nu(e.path),t})}function GD(e){return Ne(at,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function VD(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function KD(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 YD(e){const t=VD(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),u=s.split(":")[1].trim();return{name:a,type:u}}),r=KD(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function XD(e,t){const i=e.split(".").pop();try{const s=await Ne(at,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=eu(s.content);const{params:a,result:u}=YD(s.parameters);return{...s,params:a,returns:u}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var rb=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(rb||{});function JD(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function QD(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var nb=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(nb||{}),ib=(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))(ib||{}),ob=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(ob||{}),sb=(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))(sb||{}),ab=(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))(ab||{});const e2={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},t2={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},ub=z.createContext(void 0),r2=z.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const i=z.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return $.jsx(ub.Provider,{value:i,children:e})});function n2(){const e=z.useContext(ub);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}exports.API_PREFIX=at;exports.AppLoader=xI;exports.BaseCheckboxIcon=qy;exports.Checkbox=qI;exports.ControlledSwitch=Oy;exports.DATASOURCE_THEMES=e2;exports.DatasourcesActions=a0;exports.DebuggerActions=f0;exports.DefaultCheckboxIcon=Zy;exports.DesignerRequestVerb=En;exports.Dialog=rA;exports.DialogBody=gv;exports.EActivity=rb;exports.EDITOR=t2;exports.EIDENTIFIERS=sb;exports.EPermissionType=De;exports.ERROR_CODES=ab;exports.ESetting=ib;exports.ESubPermissionType=qe;exports.EWebFormStyleClassScope=nb;exports.EXT_API_PREFIX=Ko;exports.FileFolderType=Je;exports.FloatingTooltip=UI;exports.FolderRootPath=yn;exports.FolderRootType=Lf;exports.HTTPError=Bc;exports.HTTP_HANDLERS_TAB_PATH=h0;exports.IPreemptive=zo;exports.IPublished=R0;exports.IPublishedRestScope=jf;exports.IdentityProvider=p$;exports.Incase=pa;exports.IndentLines=Pv;exports.InvalidJsonError=VI;exports.LOCALIZATION_TAB_PATH=g0;exports.LOCATION_DATASOURCE_ID=T0;exports.LogoSVG=By;exports.LspActions=c0;exports.MAX_FILE_NAME_LENGTH=If;exports.MODEL_TAB_PATH=nL;exports.Modal=TI;exports.ModalCloseReason=yi;exports.ModalColor=Hn;exports.ModalIcons=$c;exports.ModalType=Ef;exports.Mutex=m0;exports.NameError=$f;exports.Overlay=hv;exports.PANEL_EXPANDED_HEIGHT=va;exports.PANEL_INITIAL_HEIGHT=Nn;exports.PERMISSIONS=zf;exports.Panel=HI;exports.PopperTooltip=zy;exports.Portal=nv;exports.PublishOptions=kL;exports.QODLY_NAMESPACE=_o;exports.ROLES_TAB_PATH=d0;exports.RemoteDebuggerMode=Mf;exports.SETTINGS_TAB_PATH=p0;exports.SHARED_API_PREFIX=Bo;exports.SHARED_USER_NAMESPACE=$a;exports.SearchInput=GI;exports.SourceCodeDescriptor=ob;exports.StudioContextProvider=r2;exports.Switcher=Cv;exports.TITLE_DATASOURCE_ID=A0;exports.TabEventsActions=l0;exports.Tip=hy;exports.TipsProvider=PC;exports.Toast=lR;exports.ToolbarIcon=ZI;exports.Tooltip=bI;exports.Tree=AR;exports.TreeIcon=Tv;exports.TreeNode=ef;exports.USER_LANGUAGE_DATASOURCE_ID=O0;exports.WebformActions=s0;exports.WebformEventsActions=jo;exports.ZoomComponent=RI;exports.ZoomLevel=Wy;exports._isArrayDatasource=TL;exports._isObjectDatasource=OL;exports.actionsToPrivs=L0;exports.addAttributesToContent=$L;exports.addFolder=_D;exports.addPermission=GL;exports.addPrivilegeIn=jL;exports.allowed=NL;exports.by=v0;exports.byId=cL;exports.byPath=fL;exports.callServerSideParser=oM;exports.checkUpdates=mD;exports.children=Ma;exports.createFolder=WD;exports.createPrivilege=BL;exports.createRole=QL;exports.datasourcesSubject=G$;exports.debuggerSubject=X$;exports.dropFile=ED;exports.dropFolder=OD;exports.exists=dL;exports.extractWebformName=sL;exports.filterBySeriousError=j0;exports.formatErrorsAsBulletToast=nM;exports.generateUUID=LL;exports.getAppSettings=yD;exports.getCatalog=PD;exports.getDatasourceId=pL;exports.getDefaultAppSettings=eb;exports.getDictByName=D0;exports.getDisplayableFeedbackErrors=rM;exports.getErrorListFromPayload=F0;exports.getFile=xD;exports.getFileContent=kD;exports.getFileExtentionFromType=oL;exports.getFilenameAndTypeFromPath=iL;exports.getFilenameFromType=aL;exports.getFilesInfo=AD;exports.getFolder=tb;exports.getFolders=bD;exports.getFunctionContent=XD;exports.getGraphData=ZL;exports.getInheritedResources=N0;exports.getMonacoTheme=ND;exports.getNodeInfo=ZD;exports.getPrivilegeById=Xr;exports.getPromotions=JL;exports.getResourceFromType=Bf;exports.getSavedConditions=MD;exports.getSharedAppEvents=$D;exports.getSharedCSS=LD;exports.getSharedDatasources=ID;exports.getSharedResource=Yo;exports.getSupportedLanguages=CD;exports.getTypeFromExtension=Df;exports.getUserPrivileges=DD;exports.getWebForm=wD;exports.hasAttributesString=C0;exports.http=Ne;exports.i18nSubject=Q$;exports.initializeDefaultProjectFiles=hD;exports.installUpdates=vD;exports.isArrayDatasource=S0;exports.isDataClassMethod=vL;exports.isDataStoreMethod=mL;exports.isDateDatasource=AL;exports.isEntity=EL;exports.isEntityDatasource=wL;exports.isEntityMethod=yL;exports.isEntitySelection=_L;exports.isEntitySelectionDatasource=xL;exports.isEntitySelectionMethod=bL;exports.isObjectAttribute=hL;exports.isObjectDatasource=E0;exports.isRelatedAttribute=gL;exports.isRelatedEntitiesAttribute=w0;exports.isRelatedEntityAttribute=x0;exports.isSameNamespace=RL;exports.isScalarDatasource=_0;exports.isSimpleAttribute=b0;exports.isSimpleDatasource=SL;exports.loadDS=PL;exports.loadI18n=CL;exports.localeCompare=y0;exports.log=JD;exports.login=RD;exports.lspSubject=Y$;exports.moveItem=qD;exports.outBy=uL;exports.outById=lL;exports.parents=tu;exports.parseAttributes=IL;exports.populateShallow=WL;exports.queue=Nf;exports.removeAttributesString=k0;exports.removeItem=HD;exports.removeMultiplePermissions=KL;exports.removePermission=VL;exports.removePrivilege=FL;exports.removePrivilegeFrom=zL;exports.removeRole=eM;exports.renameFile=SD;exports.renameFolder=TD;exports.renamePrivilege=UL;exports.resetResources=YL;exports.rolesToAPI=qL;exports.sanitizeContent=eu;exports.sanitizeNameCY=ML;exports.sanitizePermissions=M0;exports.sanitizePrivileges=I0;exports.sanitizeRoles=HL;exports.saveContent=GD;exports.saveRole=tM;exports.setCraftedComponents=UD;exports.setFileContent=Hf;exports.setSharedAppEvents=BD;exports.setSharedSources=jD;exports.sortPrivileges=$0;exports.splitDatasourceID=Ff;exports.stringifyAttributes=P0;exports.tabEventsSubject=K$;exports.tasksManagerSubject=J$;exports.toastSubject=u0;exports.togglePermission=XL;exports.trackEvent=QD;exports.transformDates=iM;exports.tryCreateSharedResource=nu;exports.uniquePush=lr;exports.useDidMountEffect=KI;exports.useDoubleClick=v$;exports.useDsChangeRenderer=L$;exports.useDsRendererAdapter=$$;exports.useEnhancedState=I$;exports.useFeatureFlags=d$;exports.useForwardedRef=f$;exports.useHotkeys=a$;exports.useIdentity=h$;exports.useOutsideClick=u$;exports.usePrevious=l$;exports.useStateObject=g$;exports.useStateRef=c$;exports.useStudioContext=n2;exports.useTip=py;exports.validateName=Qa;exports.validateServerSide=eL;exports.validateValue=tL;exports.webformEventsSubject=Ia;exports.webformSubject=V$;
247
+ `)+le+`return __p
248
+ }`;var Ne=Cv(function(){return We(C,Se+"return "+le).apply(r,L)});if(Ne.source=le,Zu(Ne))throw Ne;return Ne}function gR(i){return Ge(i).toLowerCase()}function vR(i){return Ge(i).toUpperCase()}function mR(i,s,d){if(i=Ge(i),i&&(d||s===r))return zh(i);if(!i||!(s=dr(s)))return i;var _=Fr(i),O=Fr(s),C=jh(_,O),L=Fh(_,O)+1;return Vn(_,C,L).join("")}function bR(i,s,d){if(i=Ge(i),i&&(d||s===r))return i.slice(0,Bh(i)+1);if(!i||!(s=dr(s)))return i;var _=Fr(i),O=Fh(_,Fr(s))+1;return Vn(_,0,O).join("")}function yR(i,s,d){if(i=Ge(i),i&&(d||s===r))return i.replace(Zc,"");if(!i||!(s=dr(s)))return i;var _=Fr(i),O=jh(_,Fr(s));return Vn(_,O).join("")}function wR(i,s){var d=z,_=I;if(vt(s)){var O="separator"in s?s.separator:O;d="length"in s?Ie(s.length):d,_="omission"in s?dr(s.omission):_}i=Ge(i);var C=i.length;if(Zi(i)){var L=Fr(i);C=L.length}if(d>=C)return i;var H=d-Yi(_);if(H<1)return _;var G=L?Vn(L,0,H).join(""):i.slice(0,H);if(O===r)return G+_;if(L&&(H+=G.length-H),Yu(O)){if(i.slice(H).search(O)){var ie,oe=G;for(O.global||(O=fu(O.source,Ge(ah.exec(O))+"g")),O.lastIndex=0;ie=O.exec(oe);)var le=ie.index;G=G.slice(0,le===r?H:le)}}else if(i.indexOf(dr(O),H)!=H){var ve=G.lastIndexOf(O);ve>-1&&(G=G.slice(0,ve))}return G+_}function xR(i){return i=Ge(i),i&&hi.test(i)?i.replace(bn,X_):i}var SR=no(function(i,s,d){return i+(d?" ":"")+s.toUpperCase()}),ed=Cg("toUpperCase");function Rv(i,s,d){return i=Ge(i),s=d?r:s,s===r?V_(i)?eE(i):$_(i):i.match(s)||[]}var Cv=De(function(i,s){try{return lr(i,r,s)}catch(d){return Zu(d)?d:new Re(d)}}),_R=Sn(function(i,s){return cr(s,function(d){d=Br(d),Jr(i,d,Gu(i[d],i))}),i});function ER(i){var s=i==null?0:i.length,d=Oe();return i=s?dt(i,function(_){if(typeof _[1]!="function")throw new Er(l);return[d(_[0]),_[1]]}):[],De(function(_){for(var O=-1;++O<s;){var C=i[O];if(lr(C[0],this,_))return lr(C[1],this,_)}})}function kR(i){return XE(Or(i,h))}function td(i){return function(){return i}}function OR(i,s){return i==null||i!==i?s:i}var TR=Ig(),AR=Ig(!0);function tr(i){return i}function rd(i){return lg(typeof i=="function"?i:Or(i,h))}function RR(i){return ug(Or(i,h))}function CR(i,s){return dg(i,Or(s,h))}var PR=De(function(i,s){return function(d){return Xo(d,i,s)}}),IR=De(function(i,s){return function(d){return Xo(i,d,s)}});function nd(i,s,d){var _=Ct(s),O=Bs(s,_);d==null&&!(vt(s)&&(O.length||!_.length))&&(d=s,s=i,i=this,O=Bs(s,Ct(s)));var C=!(vt(d)&&"chain"in d)||!!d.chain,L=En(i);return cr(O,function(H){var G=s[H];i[H]=G,L&&(i.prototype[H]=function(){var ie=this.__chain__;if(C||ie){var oe=i(this.__wrapped__),le=oe.__actions__=Jt(this.__actions__);return le.push({func:G,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return G.apply(i,Fn([this.value()],arguments))})}),i}function NR(){return Dt._===this&&(Dt._=aE),this}function id(){}function DR(i){return i=Ie(i),De(function(s){return fg(s,i)})}var MR=Du(dt),LR=Du(Nh),$R=Du(ou);function Pv(i){return Hu(i)?au(Br(i)):hk(i)}function zR(i){return function(s){return i==null?r:xi(i,s)}}var jR=Dg(),FR=Dg(!0);function od(){return[]}function ad(){return!1}function HR(){return{}}function BR(){return""}function WR(){return!0}function UR(i,s){if(i=Ie(i),i<1||i>ge)return[];var d=ee,_=Bt(i,ee);s=Oe(s),i-=ee;for(var O=cu(_,s);++d<i;)s(d);return O}function qR(i){return Pe(i)?dt(i,Br):fr(i)?[i]:Jt(Yg(Ge(i)))}function VR(i){var s=++iE;return Ge(i)+s}var GR=Ks(function(i,s){return i+s},0),KR=Mu("ceil"),ZR=Ks(function(i,s){return i/s},1),YR=Mu("floor");function XR(i){return i&&i.length?Hs(i,tr,wu):r}function JR(i,s){return i&&i.length?Hs(i,Oe(s,2),wu):r}function QR(i){return Lh(i,tr)}function eC(i,s){return Lh(i,Oe(s,2))}function tC(i){return i&&i.length?Hs(i,tr,Eu):r}function rC(i,s){return i&&i.length?Hs(i,Oe(s,2),Eu):r}var nC=Ks(function(i,s){return i*s},1),iC=Mu("round"),oC=Ks(function(i,s){return i-s},0);function aC(i){return i&&i.length?lu(i,tr):0}function sC(i,s){return i&&i.length?lu(i,Oe(s,2)):0}return A.after=CT,A.ary=sv,A.assign=mA,A.assignIn=xv,A.assignInWith=Sv,A.assignWith=Xu,A.at=bA,A.before=lv,A.bind=Gu,A.bindAll=_R,A.bindKey=cv,A.castArray=BT,A.chain=iv,A.chunk=Xk,A.compact=Jk,A.concat=Qk,A.cond=ER,A.conforms=kR,A.constant=td,A.countBy=sT,A.create=yA,A.curry=uv,A.curryRight=dv,A.debounce=fv,A.defaults=wA,A.defaultsDeep=xA,A.defer=PT,A.delay=IT,A.difference=eO,A.differenceBy=tO,A.differenceWith=rO,A.drop=nO,A.dropRight=iO,A.dropRightWhile=oO,A.dropWhile=aO,A.fill=sO,A.filter=cT,A.flatMap=fT,A.flatMapDeep=pT,A.flatMapDepth=hT,A.flatten=ev,A.flattenDeep=lO,A.flattenDepth=cO,A.flip=NT,A.flow=TR,A.flowRight=AR,A.fromPairs=uO,A.functions=AA,A.functionsIn=RA,A.groupBy=gT,A.initial=fO,A.intersection=pO,A.intersectionBy=hO,A.intersectionWith=gO,A.invert=PA,A.invertBy=IA,A.invokeMap=mT,A.iteratee=rd,A.keyBy=bT,A.keys=Ct,A.keysIn=er,A.map=tl,A.mapKeys=DA,A.mapValues=MA,A.matches=RR,A.matchesProperty=CR,A.memoize=nl,A.merge=LA,A.mergeWith=_v,A.method=PR,A.methodOf=IR,A.mixin=nd,A.negate=il,A.nthArg=DR,A.omit=$A,A.omitBy=zA,A.once=DT,A.orderBy=yT,A.over=MR,A.overArgs=MT,A.overEvery=LR,A.overSome=$R,A.partial=Ku,A.partialRight=pv,A.partition=wT,A.pick=jA,A.pickBy=Ev,A.property=Pv,A.propertyOf=zR,A.pull=yO,A.pullAll=rv,A.pullAllBy=wO,A.pullAllWith=xO,A.pullAt=SO,A.range=jR,A.rangeRight=FR,A.rearg=LT,A.reject=_T,A.remove=_O,A.rest=$T,A.reverse=qu,A.sampleSize=kT,A.set=HA,A.setWith=BA,A.shuffle=OT,A.slice=EO,A.sortBy=RT,A.sortedUniq=PO,A.sortedUniqBy=IO,A.split=dR,A.spread=zT,A.tail=NO,A.take=DO,A.takeRight=MO,A.takeRightWhile=LO,A.takeWhile=$O,A.tap=JO,A.throttle=jT,A.thru=el,A.toArray=bv,A.toPairs=kv,A.toPairsIn=Ov,A.toPath=qR,A.toPlainObject=wv,A.transform=WA,A.unary=FT,A.union=zO,A.unionBy=jO,A.unionWith=FO,A.uniq=HO,A.uniqBy=BO,A.uniqWith=WO,A.unset=UA,A.unzip=Vu,A.unzipWith=nv,A.update=qA,A.updateWith=VA,A.values=ao,A.valuesIn=GA,A.without=UO,A.words=Rv,A.wrap=HT,A.xor=qO,A.xorBy=VO,A.xorWith=GO,A.zip=KO,A.zipObject=ZO,A.zipObjectDeep=YO,A.zipWith=XO,A.entries=kv,A.entriesIn=Ov,A.extend=xv,A.extendWith=Sv,nd(A,A),A.add=GR,A.attempt=Cv,A.camelCase=XA,A.capitalize=Tv,A.ceil=KR,A.clamp=KA,A.clone=WT,A.cloneDeep=qT,A.cloneDeepWith=VT,A.cloneWith=UT,A.conformsTo=GT,A.deburr=Av,A.defaultTo=OR,A.divide=ZR,A.endsWith=JA,A.eq=Wr,A.escape=QA,A.escapeRegExp=eR,A.every=lT,A.find=uT,A.findIndex=Jg,A.findKey=SA,A.findLast=dT,A.findLastIndex=Qg,A.findLastKey=_A,A.floor=YR,A.forEach=ov,A.forEachRight=av,A.forIn=EA,A.forInRight=kA,A.forOwn=OA,A.forOwnRight=TA,A.get=Ju,A.gt=KT,A.gte=ZT,A.has=CA,A.hasIn=Qu,A.head=tv,A.identity=tr,A.includes=vT,A.indexOf=dO,A.inRange=ZA,A.invoke=NA,A.isArguments=Ei,A.isArray=Pe,A.isArrayBuffer=YT,A.isArrayLike=Qt,A.isArrayLikeObject=yt,A.isBoolean=XT,A.isBuffer=Gn,A.isDate=JT,A.isElement=QT,A.isEmpty=eA,A.isEqual=tA,A.isEqualWith=rA,A.isError=Zu,A.isFinite=nA,A.isFunction=En,A.isInteger=hv,A.isLength=ol,A.isMap=gv,A.isMatch=iA,A.isMatchWith=oA,A.isNaN=aA,A.isNative=sA,A.isNil=cA,A.isNull=lA,A.isNumber=vv,A.isObject=vt,A.isObjectLike=bt,A.isPlainObject=na,A.isRegExp=Yu,A.isSafeInteger=uA,A.isSet=mv,A.isString=al,A.isSymbol=fr,A.isTypedArray=oo,A.isUndefined=dA,A.isWeakMap=fA,A.isWeakSet=pA,A.join=vO,A.kebabCase=tR,A.last=Ar,A.lastIndexOf=mO,A.lowerCase=rR,A.lowerFirst=nR,A.lt=hA,A.lte=gA,A.max=XR,A.maxBy=JR,A.mean=QR,A.meanBy=eC,A.min=tC,A.minBy=rC,A.stubArray=od,A.stubFalse=ad,A.stubObject=HR,A.stubString=BR,A.stubTrue=WR,A.multiply=nC,A.nth=bO,A.noConflict=NR,A.noop=id,A.now=rl,A.pad=iR,A.padEnd=oR,A.padStart=aR,A.parseInt=sR,A.random=YA,A.reduce=xT,A.reduceRight=ST,A.repeat=lR,A.replace=cR,A.result=FA,A.round=iC,A.runInContext=q,A.sample=ET,A.size=TT,A.snakeCase=uR,A.some=AT,A.sortedIndex=kO,A.sortedIndexBy=OO,A.sortedIndexOf=TO,A.sortedLastIndex=AO,A.sortedLastIndexBy=RO,A.sortedLastIndexOf=CO,A.startCase=fR,A.startsWith=pR,A.subtract=oC,A.sum=aC,A.sumBy=sC,A.template=hR,A.times=UR,A.toFinite=kn,A.toInteger=Ie,A.toLength=yv,A.toLower=gR,A.toNumber=Rr,A.toSafeInteger=vA,A.toString=Ge,A.toUpper=vR,A.trim=mR,A.trimEnd=bR,A.trimStart=yR,A.truncate=wR,A.unescape=xR,A.uniqueId=VR,A.upperCase=SR,A.upperFirst=ed,A.each=ov,A.eachRight=av,A.first=tv,nd(A,(function(){var i={};return Qr(A,function(s,d){Ve.call(A.prototype,d)||(i[d]=s)}),i})(),{chain:!1}),A.VERSION=n,cr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){A[i].placeholder=A}),cr(["drop","take"],function(i,s){$e.prototype[i]=function(d){d=d===r?1:At(Ie(d),0);var _=this.__filtered__&&!s?new $e(this):this.clone();return _.__filtered__?_.__takeCount__=Bt(d,_.__takeCount__):_.__views__.push({size:Bt(d,ee),type:i+(_.__dir__<0?"Right":"")}),_},$e.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),cr(["filter","map","takeWhile"],function(i,s){var d=s+1,_=d==N||d==X;$e.prototype[i]=function(O){var C=this.clone();return C.__iteratees__.push({iteratee:Oe(O,3),type:d}),C.__filtered__=C.__filtered__||_,C}}),cr(["head","last"],function(i,s){var d="take"+(s?"Right":"");$e.prototype[i]=function(){return this[d](1).value()[0]}}),cr(["initial","tail"],function(i,s){var d="drop"+(s?"":"Right");$e.prototype[i]=function(){return this.__filtered__?new $e(this):this[d](1)}}),$e.prototype.compact=function(){return this.filter(tr)},$e.prototype.find=function(i){return this.filter(i).head()},$e.prototype.findLast=function(i){return this.reverse().find(i)},$e.prototype.invokeMap=De(function(i,s){return typeof i=="function"?new $e(this):this.map(function(d){return Xo(d,i,s)})}),$e.prototype.reject=function(i){return this.filter(il(Oe(i)))},$e.prototype.slice=function(i,s){i=Ie(i);var d=this;return d.__filtered__&&(i>0||s<0)?new $e(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),s!==r&&(s=Ie(s),d=s<0?d.dropRight(-s):d.take(s-i)),d)},$e.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},$e.prototype.toArray=function(){return this.take(ee)},Qr($e.prototype,function(i,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),_=/^(?:head|last)$/.test(s),O=A[_?"take"+(s=="last"?"Right":""):s],C=_||/^find/.test(s);O&&(A.prototype[s]=function(){var L=this.__wrapped__,H=_?[1]:arguments,G=L instanceof $e,ie=H[0],oe=G||Pe(L),le=function(Le){var ze=O.apply(A,Fn([Le],H));return _&&ve?ze[0]:ze};oe&&d&&typeof ie=="function"&&ie.length!=1&&(G=oe=!1);var ve=this.__chain__,Se=!!this.__actions__.length,Te=C&&!ve,Ne=G&&!Se;if(!C&&oe){L=Ne?L:new $e(this);var Ee=i.apply(L,H);return Ee.__actions__.push({func:el,args:[le],thisArg:r}),new kr(Ee,ve)}return Te&&Ne?i.apply(this,H):(Ee=this.thru(le),Te?_?Ee.value()[0]:Ee.value():Ee)})}),cr(["pop","push","shift","sort","splice","unshift"],function(i){var s=Os[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",_=/^(?:pop|shift)$/.test(i);A.prototype[i]=function(){var O=arguments;if(_&&!this.__chain__){var C=this.value();return s.apply(Pe(C)?C:[],O)}return this[d](function(L){return s.apply(Pe(L)?L:[],O)})}}),Qr($e.prototype,function(i,s){var d=A[s];if(d){var _=d.name+"";Ve.call(eo,_)||(eo[_]=[]),eo[_].push({name:s,func:d})}}),eo[Gs(r,w).name]=[{name:"wrapper",func:r}],$e.prototype.clone=SE,$e.prototype.reverse=_E,$e.prototype.value=EE,A.prototype.at=QO,A.prototype.chain=eT,A.prototype.commit=tT,A.prototype.next=rT,A.prototype.plant=iT,A.prototype.reverse=oT,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=aT,A.prototype.first=A.prototype.head,Uo&&(A.prototype[Uo]=nT),A}),Xi=tE();vi?((vi.exports=Xi)._=Xi,tu._=Xi):Dt._=Xi}).call(cz)})(La,La.exports)),La.exports}var He=uz();const Nf={FdSave:ht.FdSave,FdWarningDanger:ht.FdWarningDanger,FdInfoCircle:ht.FdInfoCircle,FdInfoBold:ht.FdInfoBold};var Pp=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(Pp||{}),_o=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(_o||{}),yo=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(yo||{});const dz={[_o.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[_o.DANGER]:{icon:"red-500",button:"primary-dark"},[_o.WARNING]:{icon:"yellow-400",button:"primary-dark"}},fz=({name:e,color:t=_o.PRIMARY,className:r="w-8 h-8"})=>{const n=Nf[e]||Nf.FdInfoCircle,o=`text-${dz[t].icon}`;return T.jsx(n,{className:at(r,o)})},pz=({id:e,title:t,message:r,icon:n,type:o,color:a,zIndex:l=3e3,views:c,width:u=520,hasOverlay:p=!0,container:g,onClose:f,onEdit:h})=>{const b=y=>{f({id:e,reason:y})};M.useEffect(()=>{function y(m){m.key==="Escape"&&b(yo.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 $n.createPortal(T.jsx(bc,{appear:!0,show:!0,as:M.Fragment,children:T.jsx("div",{className:at("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":p}),style:{zIndex:l},onClick:()=>b(yo.CANCELED),children:T.jsx(bc.Child,{as:M.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:T.jsx(hs,{depth:3,borderType:"light","data-cy":"confirmation-modal-cy",className:"relative rounded-md border",style:{width:u},onClick:y=>y.stopPropagation(),children:T.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?T.jsx("div",{className:"flex items-center justify-center",children:T.jsx(fz,{name:n,color:a,className:"w-6 h-6"})}):null,T.jsx(hz,{condition:t,children:T.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-center",children:t})}),T.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium",children:r}),T.jsx("div",{className:"text-xs",children:He.values(c==null?void 0:c.toggles).map(y=>T.jsx("div",{children:T.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[T.jsx(xw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),T.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),T.jsx(gz,{warnings:S}),T.jsx("div",{className:"flex items-center gap-4",children:o===Pp.CONFIRM?T.jsxs(T.Fragment,{children:[T.jsx(qa,{autoFocus:!0,color:"primary",onClick:()=>b(yo.CONFIRMED),children:"Confirm"}),T.jsx(qa,{color:"white",variant:"outline",onClick:()=>b(yo.CANCELED),children:"Cancel"})]}):T.jsx(qa,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),g||document.body)},hz=e=>e.condition?T.jsx(T.Fragment,{children:e.children}):null,gz=e=>e.warnings?T.jsx(bc,{appear:!0,show:!!e.warnings.length,as:M.Fragment,children:T.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs",children:e.warnings.map((t,r)=>T.jsx(bc.Child,{as:M.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:T.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[T.jsx(ht.FdWarningDanger,{className:at({"h-3 w-3":!0,"text-yellow-500":t.type==="warning","text-red-400":t.type==="error","text-primary-dark":t.type==="info"},"mr-3")}),T.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var r1=(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))(r1||{});const vz=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:o})=>T.jsxs(hs,{depth:4,className:"flex items-center rounded p-1",children:[T.jsx(ht.FdMinusNaked,{onClick:o,className:at("h-5 w-5 p-1",{"text-inactive-text":e<=t,"cursor-pointer rounded hover:bg-primary-hover":e>t})}),T.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),T.jsx(ht.FdPlusNaked,{onClick:n,className:at("h-5 w-5 p-1",{"text-inactive-text":e>=r,"cursor-pointer rounded hover:bg-primary-hover":e<r})})]}),sn=30,n1=.3,i1=.6,mz=()=>typeof window>"u"?400:Math.round(window.innerHeight*n1),o1=()=>typeof window>"u"?600:Math.round(window.innerHeight*i1),Ny=e=>{const t=o1();return Math.min(Math.max(e,sn),t)},bz=e=>{const[t,r]=M.useState(sn),n=M.useRef(),o=M.useRef(null),a=o1(),l=mz(),c=t>sn;M.useEffect(()=>{r(e.isOpen?l:sn)},[e.isOpen,l]),M.useEffect(()=>{const p=()=>{r(g=>g<=sn?sn:Ny(g))};return window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p),o.current&&cancelAnimationFrame(o.current)}},[]);const u=()=>{if(c){r(sn),e.onClose();return}r(l),e.onOpen()};return T.jsx("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:T.jsx(yw,{enable:{top:!0,right:!1,bottom:!1,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:"w-full select-none border-t border-grey-900 bg-grey-800",size:{height:t,width:"100%"},maxHeight:a,minHeight:sn,onResizeStart:()=>{n.current&&Date.now()-n.current<200?r(c?sn:l):n.current=Date.now()},onResize:(p,g,f)=>{o.current&&cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{var h;(h=e.onResize)==null||h.call(e),o.current=null})},onResizeStop:(p,g,f,h)=>{r(b=>Ny(b+h.height))},handleComponent:{top:T.jsx(ww,{})},children:T.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${He.kebabCase(e.path)}`,children:[T.jsxs("div",{className:at("flex justify-between items-center px-3 py-0.5",{"flex-1":!c}),children:[T.jsxs("div",{className:"group flex items-center justify-start",children:[T.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),e.tipKey?T.jsx(Px,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,T.jsx("button",{"data-cy":`contextualPanel-toggle-button-${c?"close":"open"}`,className:"rounded p-1 text-white hover:bg-primary-hover focus:outline-none",onClick:u,children:c?T.jsx(ht.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):T.jsx(ht.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),T.jsxs(Xl,{of:c,children:[T.jsx(Xl,{of:e.render,children:e.render}),T.jsx(Xl,{of:!e.render,children:e.children})]})]})})})};function a1({children:e,viewBox:t="0 0 24 24",...r}){return T.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...He.omit(r,"isIndeterminate","isChecked"),children:e})}function s1(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return T.jsx(a1,{viewBox:"0 0 24 24",...e,children:T.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function yz({isChecked:e,isIndeterminate:t,isInvalid:r,icon:n,label:o,className:a="",style:l,...c}){const u=M.useRef(null),p=n||T.jsx(s1,{}),g=c.checked??e;M.useEffect(()=>{u.current&&(u.current.indeterminate=!!t)},[t]);const f=g||t,h=["base-checkbox-container",a].join(" ");return T.jsxs("label",{className:h,style:l,"data-invalid":r,children:[T.jsx("input",{ref:u,type:"checkbox",className:"base-checkbox-input",checked:g,...c,"aria-invalid":r||void 0}),T.jsx("span",{className:"base-checkbox-control",children:f&&p&&M.cloneElement(p,{isChecked:g,isIndeterminate:t,className:"base-checkbox-icon"})}),o&&T.jsx("span",{className:"base-checkbox-label",children:o})]})}const wz=M.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:o,...a},l)=>T.jsx(T.Fragment,{children:T.jsx(gw,{label:e,children:T.jsx(qa,{variant:"ghost",color:"white",className:at({"hover:bg-transparent":n},r),...a,children:T.jsx(t,{className:at(o)})})})})),xz=({onChange:e,value:t,delay:r,placeholder:n,containerClassName:o,onFocusInput:a,icon:l,"data-cy":c})=>{const[u,p]=M.useState(t),g=M.useRef(null);return T.jsx(xa.Root,{className:at("w-full",o),children:T.jsxs(xa.Group,{children:[T.jsx(xa.Icon,{children:l?T.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 f;return(f=g.current)==null?void 0:f.focus()},children:T.jsx("span",{className:`text-base fa ${l}`})}):T.jsx(ht.FdSearch,{})}),T.jsx(xa.Field,{ref:g,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:f=>{p(f.currentTarget.value);const h=He.escapeRegExp(f.target.value);if(!r)return e(h);He.debounce(e,r)(h)},value:u,onFocus:()=>a&&a(),onDrop:f=>f.preventDefault()}),t&&T.jsx(xa.Icon,{isAction:!0,onClick:()=>{e(""),p("")},children:T.jsx(ht.FdCloseNaked,{})})]})})},Sz=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:n,onReset:o,resetButtonLabel:a="Reset Page"})=>T.jsx("div",{className:"flex h-full w-full items-center justify-center",children:T.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[T.jsxs("div",{className:"relative",children:[T.jsx(ht.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),T.jsx("div",{className:"w-1/2 h-1/2 absolute z-0 top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 bg-white"})]}),T.jsx("p",{className:"mb-2 mt-4 text-2xl text-body",children:e}),T.jsx("p",{className:"text-md mb-4 font-extralight text-muted",children:t}),T.jsxs("div",{className:"flex gap-4",children:[n&&T.jsx("button",{className:"text-md rounded border border-primary-dark hover:border-primary-hover bg-primary-dark hover:bg-primary-hover px-3 py-1 text-white focus:outline-none",onClick:n,children:"Open in Text Editor"}),o&&T.jsx("button",{className:"text-md rounded border border-red-500 bg-red-500 hover:bg-red-400 focus:ring-red-500 px-3 py-1 text-white focus:outline-none",onClick:o,children:a}),r&&T.jsx("button",{className:"text-md rounded border border-grey-50 bg-transparent hover:bg-grey-50 text-white hover:text-primary-dark px-3 py-1 focus:outline-none",onClick:r,children:"Close"})]})]})});function wo(e){if(e!==void 0)return typeof e=="number"?`${e}px`:e}function _z({rowGap:e,columnGap:t,templateColumns:r,templateRows:n,height:o,width:a,style:l,...c}){return T.jsx("div",{...c,style:{display:"grid",rowGap:wo(e),columnGap:wo(t),gridTemplateColumns:r,gridTemplateRows:n,height:wo(o),width:wo(a),...l}})}function Ez({colStart:e,colSpan:t,rowStart:r,rowSpan:n,sx:o,style:a,...l}){return T.jsx("div",{...l,style:{gridColumnStart:e,gridColumnEnd:t?`span ${t}`:void 0,gridRowStart:r,gridRowEnd:n?`span ${n}`:void 0,...o,...a}})}function kz({columns:e=1,spacingX:t,spacingY:r,style:n,...o}){return T.jsx("div",{...o,style:{display:"grid",gridTemplateColumns:`repeat(${e}, minmax(0, 1fr))`,columnGap:wo(t),rowGap:wo(r),...n}})}const l1=M.forwardRef(({fallback:e=null,onError:t,onLoad:r,src:n,style:o,...a},l)=>{const[c,u]=M.useState(!1);return M.useEffect(()=>{u(!1)},[n]),!n||c?T.jsx(T.Fragment,{children:e}):T.jsx("img",{...a,ref:l,src:n,style:o,onLoad:p=>{u(!1),r==null||r(p)},onError:p=>{u(!0),t==null||t(p)}})});l1.displayName="Image";function Oz(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Qd=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 Ia(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function c1(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 u1(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 Tz(e,t){const r=e.length>=t.length?e:t,n=e.length>=t.length?t:e;let o=!0;for(let a=0;a<r.length;a++)n.indexOf(r[a])===-1&&(o=!1);return o}const rs={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,"-":Qd?173:189,"=":Qd?61:187,";":Qd?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},Yr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},$a={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},zt={16:!1,18:!1,17:!1,91:!1},mt={};for(let e=1;e<20;e++)rs["f".concat(e)]=111+e;let pt=[],Ka=null,d1="all";const Cn=new Map,$o=e=>rs[e.toLowerCase()]||Yr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),Az=e=>Object.keys(rs).find(t=>rs[t]===e),Rz=e=>Object.keys(Yr).find(t=>Yr[t]===e);function f1(e){d1=e||"all"}function ns(){return d1||"all"}function Cz(){return pt.slice(0)}function Pz(){return pt.map(e=>Az(e)||Rz(e)||String.fromCharCode(e))}function Iz(){const e=[];return Object.keys(mt).forEach(t=>{mt[t].forEach(r=>{let{key:n,scope:o,mods:a,shortcut:l}=r;e.push({scope:o,shortcut:l,mods:a,keys:n.split("+").map(c=>$o(c))})})}),e}function Nz(e){const t=e.target||e.srcElement,{tagName:r}=t;let n=!0;const o=r==="INPUT"&&!["checkbox","radio","range","button","file","reset","submit","color"].includes(t.type);return(t.isContentEditable||(o||r==="TEXTAREA"||r==="SELECT")&&!t.readOnly)&&(n=!1),n}function Dz(e){return typeof e=="string"&&(e=$o(e)),pt.indexOf(e)!==-1}function Mz(e,t){let r,n;e||(e=ns());for(const o in mt)if(Object.prototype.hasOwnProperty.call(mt,o))for(r=mt[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return Ip(c)}):n++;ns()===e&&f1(t||"all")}function Lz(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=$o(e.key));const r=pt.indexOf(t);if(r>=0&&pt.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&pt.splice(0,pt.length),(t===93||t===224)&&(t=91),t in zt){zt[t]=!1;for(const n in Yr)Yr[n]===t&&(Kr[n]=!1)}}function p1(e){if(typeof e>"u")Object.keys(mt).forEach(o=>{Array.isArray(mt[o])&&mt[o].forEach(a=>$l(a)),delete mt[o]}),Ip(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&$l(o)});else if(typeof e=="object")e.key&&$l(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[o,a]=r;typeof o=="function"&&(a=o,o=""),$l({key:e,scope:o,method:a,splitKey:"+"})}}const $l=e=>{let{key:t,scope:r,method:n,splitKey:o="+"}=e;u1(t).forEach(l=>{const c=l.split(o),u=c.length,p=c[u-1],g=p==="*"?"*":$o(p);if(!mt[g])return;r||(r=ns());const f=u>1?c1(Yr,c):[],h=[];mt[g]=mt[g].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&Tz(b.mods,f);return v&&h.push(b.element),!v}),h.forEach(b=>Ip(b))})};function Dy(e,t,r,n){if(t.element!==n)return;let o;if(t.scope===r||t.scope==="all"){o=t.mods.length>0;for(const a in zt)Object.prototype.hasOwnProperty.call(zt,a)&&(!zt[a]&&t.mods.indexOf(+a)>-1||zt[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!zt[16]&&!zt[18]&&!zt[17]&&!zt[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(pt),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function My(e,t){const r=mt["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Kr.filter.call(this,e))return;if((n===93||n===224)&&(n=91),pt.indexOf(n)===-1&&n!==229&&pt.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=$a[c];e[c]&&pt.indexOf(u)===-1?pt.push(u):!e[c]&&pt.indexOf(u)>-1?pt.splice(pt.indexOf(u),1):c==="metaKey"&&e[c]&&(pt=pt.filter(p=>p in $a||p===n))}),n in zt){zt[n]=!0;for(const c in Yr)if(Object.prototype.hasOwnProperty.call(Yr,c)){const u=$a[Yr[c]];Kr[c]=e[u]}if(!r)return}for(const c in zt)Object.prototype.hasOwnProperty.call(zt,c)&&(zt[c]=e[$a[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(pt.indexOf(17)===-1&&pt.push(17),pt.indexOf(18)===-1&&pt.push(18),zt[17]=!0,zt[18]=!0);const o=ns();if(r)for(let c=0;c<r.length;c++)r[c].scope===o&&(e.type==="keydown"&&r[c].keydown||e.type==="keyup"&&r[c].keyup)&&Dy(e,r[c],o,t);if(!(n in mt))return;const a=mt[n],l=a.length;for(let c=0;c<l;c++)if((e.type==="keydown"&&a[c].keydown||e.type==="keyup"&&a[c].keyup)&&a[c].key){const u=a[c],{splitKey:p}=u,g=u.key.split(p),f=[];for(let h=0;h<g.length;h++)f.push($o(g[h]));f.sort().join("")===pt.sort().join("")&&Dy(e,u,o,t)}}function Kr(e,t,r){pt=[];const n=u1(e);let o=[],a="all",l=document,c=0,u=!1,p=!0,g="+",f=!1,h=!1;for(r===void 0&&typeof t=="function"&&(r=t),Object.prototype.toString.call(t)==="[object Object]"&&(t.scope&&(a=t.scope),t.element&&(l=t.element),t.keyup&&(u=t.keyup),t.keydown!==void 0&&(p=t.keydown),t.capture!==void 0&&(f=t.capture),typeof t.splitKey=="string"&&(g=t.splitKey),t.single===!0&&(h=!0)),typeof t=="string"&&(a=t),h&&p1(e,a);c<n.length;c++)e=n[c].split(g),o=[],e.length>1&&(o=c1(Yr,e)),e=e[e.length-1],e=e==="*"?"*":$o(e),e in mt||(mt[e]=[]),mt[e].push({keyup:u,keydown:p,scope:a,mods:o,shortcut:n[c],method:r,key:n[c],splitKey:g,element:l});if(typeof l<"u"&&window){if(!Cn.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return My(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;My(v,l),Lz(v)};Cn.set(l,{keydownListener:b,keyupListenr:S,capture:f}),ef(l,"keydown",b,f),ef(l,"keyup",S,f)}if(!Ka){const b=()=>{pt=[]};Ka={listener:b,capture:f},ef(window,"focus",b,f)}}}function $z(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(mt).forEach(r=>{mt[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function Ip(e){const t=Object.values(mt).flat();if(t.findIndex(n=>{let{element:o}=n;return o===e})<0){const{keydownListener:n,keyupListenr:o,capture:a}=Cn.get(e)||{};n&&o&&(Ia(e,"keyup",o,a),Ia(e,"keydown",n,a),Cn.delete(e))}if((t.length<=0||Cn.size<=0)&&(Object.keys(Cn).forEach(o=>{const{keydownListener:a,keyupListenr:l,capture:c}=Cn.get(o)||{};a&&l&&(Ia(o,"keyup",l,c),Ia(o,"keydown",a,c),Cn.delete(o))}),Cn.clear(),Object.keys(mt).forEach(o=>delete mt[o]),Ka)){const{listener:o,capture:a}=Ka;Ia(window,"focus",o,a),Ka=null}}const tf={getPressedKeyString:Pz,setScope:f1,getScope:ns,deleteScope:Mz,getPressedKeyCodes:Cz,getAllKeyCodes:Iz,isPressed:Dz,filter:Nz,trigger:$z,unbind:p1,keyMap:rs,modifier:Yr,modifierMap:$a};for(const e in tf)Object.prototype.hasOwnProperty.call(tf,e)&&(Kr[e]=tf[e]);if(typeof window<"u"){const e=window.hotkeys;Kr.noConflict=t=>(t&&window.hotkeys===Kr&&(window.hotkeys=e),Kr),window.hotkeys=Kr}Kr.filter=()=>!0;function zz(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:o=!0}=r,a=M.useCallback((c,u)=>{o&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Kr.unbind(e,a)};M.useEffect(()=>(Kr(e,r,a),l),[e,r,a])}const jz=e=>{const t=M.useRef(null);return M.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 Fz(e){const t=M.useRef();return M.useEffect(()=>{t.current=e},[e]),t.current}function Hz(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e},[e]),t}function Bz(e){const t=M.useRef(null);return M.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function Wz(e){const[t,r]=M.useState(e),n=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},o=M.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:n,isFeatureEnabled:o}}const h1=M.createContext(""),Uz=e=>T.jsx(h1.Provider,{value:e.value,children:e.children}),qz=()=>{const e=M.useContext(h1);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Vz(e){const[t,r]=M.useState(e),n=M.useMemo(()=>Gz(t,r),[]);return{state:t,actions:{...n,set:o=>{r(typeof o=="function"?o:a=>({...a,...o}))}}}}function Gz(e,t=()=>{}){return Object.keys(e).reduce((n,o)=>({...n,[`set${He.upperFirst(o)}`]:a=>t(l=>({...l,[o]:a}))}),{})}const Kz=(e,t,r={})=>{r={timeout:200,...r};const n=M.useRef(),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return M.useCallback((a,...l)=>{o(),t&&a.detail===1&&(n.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function jt(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 o=tj[e],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+e;throw Error("[Immer] "+a)}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 Po(e){return!!e&&!!e[yr]}function zi(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 o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===rj})(e)||Array.isArray(e)||!!e[Wy]||!!(!((t=e.constructor)===null||t===void 0)&&t[Wy])||Np(e)||Dp(e))}function is(e,t,r){r===void 0&&(r=!1),zo(e)===0?(r?Object.keys:zp)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function zo(e){var t=e[yr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Np(e)?2:Dp(e)?3:0}function Df(e,t){return zo(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Zz(e,t){return zo(e)===2?e.get(t):e[t]}function g1(e,t,r){var n=zo(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function Yz(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function Np(e){return Qz&&e instanceof Map}function Dp(e){return ej&&e instanceof Set}function Ri(e){return e.o||e.t}function Mp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=nj(e);delete t[yr];for(var r=zp(t),n=0;n<r.length;n++){var o=r[n],a=t[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(t[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:e[o]})}return Object.create(Object.getPrototypeOf(e),t)}function os(e,t){return t===void 0&&(t=!1),Lp(e)||Po(e)||!zi(e)||(zo(e)>1&&(e.set=e.add=e.clear=e.delete=Xz),Object.freeze(e),t&&is(e,(function(r,n){return os(n,!0)}),!0)),e}function Xz(){jt(2)}function Lp(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function hn(e){var t=ij[e];return t||jt(18,e),t}function Ly(){return process.env.NODE_ENV==="production"||Io||jt(0),Io}function rf(e,t){t&&(hn("Patches"),e.u=[],e.s=[],e.v=t)}function yc(e){Mf(e),e.p.forEach(Jz),e.p=null}function Mf(e){e===Io&&(Io=e.l)}function $y(e){return Io={p:[],l:Io,h:e,m:!0,_:0}}function Jz(e){var t=e[yr];t.i===0||t.i===1?t.j():t.g=!0}function nf(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||hn("ES5").S(t,e,n),n?(r[yr].P&&(yc(t),jt(4)),zi(e)&&(e=wc(t,e),t.l||xc(t,e)),t.u&&hn("Patches").M(r[yr].t,e,t.u,t.s)):e=wc(t,r,[]),yc(t),t.u&&t.v(t.u,t.s),e!==m1?e:void 0}function wc(e,t,r){if(Lp(t))return t;var n=t[yr];if(!n)return is(t,(function(c,u){return zy(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return xc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Mp(n.k):n.o,a=o,l=!1;n.i===3&&(a=new Set(o),o.clear(),l=!0),is(a,(function(c,u){return zy(e,n,o,c,u,r,l)})),xc(e,o,!1),r&&e.u&&hn("Patches").N(n,r,e.u,e.s)}return n.o}function zy(e,t,r,n,o,a,l){if(process.env.NODE_ENV!=="production"&&o===r&&jt(5),Po(o)){var c=wc(e,o,a&&t&&t.i!==3&&!Df(t.R,n)?a.concat(n):void 0);if(g1(r,n,c),!Po(c))return;e.m=!1}else l&&r.add(o);if(zi(o)&&!Lp(o)){if(!e.h.D&&e._<1)return;wc(e,o),t&&t.A.l||xc(e,o)}}function xc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&os(t,r)}function of(e,t){var r=e[yr];return(r?Ri(r):e)[t]}function jy(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 Lf(e){e.P||(e.P=!0,e.l&&Lf(e.l))}function af(e){e.o||(e.o=Mp(e.t))}function $f(e,t,r){var n=Np(t)?hn("MapSet").F(t,r):Dp(t)?hn("MapSet").T(t,r):e.O?(function(o,a){var l=Array.isArray(o),c={i:l?1:0,A:a?a.A:Ly(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=c,p=zf;l&&(u=[c],p=za);var g=Proxy.revocable(u,p),f=g.revoke,h=g.proxy;return c.k=h,c.j=f,h})(t,r):hn("ES5").J(t,r);return(r?r.A:Ly()).p.push(n),n}function v1(e){return Po(e)||jt(22,e),(function t(r){if(!zi(r))return r;var n,o=r[yr],a=zo(r);if(o){if(!o.P&&(o.i<4||!hn("ES5").K(o)))return o.t;o.I=!0,n=Fy(r,a),o.I=!1}else n=Fy(r,a);return is(n,(function(l,c){o&&Zz(o.t,l)===c||g1(n,l,t(c))})),a===3?new Set(n):n})(e)}function Fy(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Mp(e)}var Hy,Io,$p=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Qz=typeof Map<"u",ej=typeof Set<"u",By=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",m1=$p?Symbol.for("immer-nothing"):((Hy={})["immer-nothing"]=!0,Hy),Wy=$p?Symbol.for("immer-draftable"):"__$immer_draftable",yr=$p?Symbol.for("immer-state"):"__$immer_state",tj={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"},rj=""+Object.prototype.constructor,zp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,nj=Object.getOwnPropertyDescriptors||function(e){var t={};return zp(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},ij={},zf={get:function(e,t){if(t===yr)return e;var r=Ri(e);if(!Df(r,t))return(function(o,a,l){var c,u=jy(a,l);return u?"value"in u?u.value:(c=u.get)===null||c===void 0?void 0:c.call(o.k):void 0})(e,r,t);var n=r[t];return e.I||!zi(n)?n:n===of(e.t,t)?(af(e),e.o[t]=$f(e.A.h,n,e)):n},has:function(e,t){return t in Ri(e)},ownKeys:function(e){return Reflect.ownKeys(Ri(e))},set:function(e,t,r){var n=jy(Ri(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=of(Ri(e),t),a=o==null?void 0:o[yr];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Yz(r,o)&&(r!==void 0||Df(e.t,t)))return!0;af(e),Lf(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 of(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,af(e),Lf(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ri(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){jt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){jt(12)}},za={};is(zf,(function(e,t){za[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),za.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&jt(13),za.set.call(this,e,t,void 0)},za.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&jt(14),zf.set.call(this,e[0],t,r,e[0])};var oj=(function(){function e(r){var n=this;this.O=By,this.D=!0,this.produce=function(o,a,l){if(typeof o=="function"&&typeof a!="function"){var c=a;a=o;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(k){var E;return(E=a).call.apply(E,[y,k].concat(w))}))}}var p;if(typeof a!="function"&&jt(6),l!==void 0&&typeof l!="function"&&jt(7),zi(o)){var g=$y(n),f=$f(n,o,void 0),h=!0;try{p=a(f),h=!1}finally{h?yc(g):Mf(g)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return rf(g,l),nf(v,g)}),(function(v){throw yc(g),v})):(rf(g,l),nf(p,g))}if(!o||typeof o!="object"){if((p=a(o))===void 0&&(p=o),p===m1&&(p=void 0),n.D&&os(p,!0),l){var b=[],S=[];hn("Patches").M(o,p,b,S),l(b,S)}return p}jt(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(p){for(var g=arguments.length,f=Array(g>1?g-1:0),h=1;h<g;h++)f[h-1]=arguments[h];return n.produceWithPatches(p,(function(b){return o.apply(void 0,[b].concat(f))}))};var l,c,u=n.produce(o,a,(function(p,g){l=p,c=g}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return[p,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){zi(r)||jt(8),Po(r)&&(r=v1(r));var n=$y(this),o=$f(this,r,void 0);return o[yr].C=!0,Mf(n),o},t.finishDraft=function(r,n){var o=r&&r[yr];process.env.NODE_ENV!=="production"&&(o&&o.C||jt(9),o.I&&jt(10));var a=o.A;return rf(a,n),nf(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!By&&jt(20),this.O=r},t.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var l=hn("Patches").$;return Po(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),wr=new oj,aj=wr.produce;wr.produceWithPatches.bind(wr);wr.setAutoFreeze.bind(wr);wr.setUseProxies.bind(wr);wr.applyPatches.bind(wr);wr.createDraft.bind(wr);wr.finishDraft.bind(wr);function sj(e){var t=M.useState(function(){return os(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],M.useCallback(function(n){r(typeof n=="function"?aj(n):os(n))},[])]}const lj=process.env.NODE_ENV==="development",sf=lj&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,cj=(e,t,r)=>{const[n,o]=sj(e),a=M.useRef(null);M.useEffect(()=>{var u;return r&&(a.current=sf==null?void 0:sf.connect({name:r,trace:!0}),(u=a.current)==null||u.init(e)),()=>{var p,g;(g=(p=a.current)==null?void 0:p.disconnect)==null||g.call(p)}},[]);const l=t&&typeof t=="object"?t:{},c=M.useMemo(()=>Object.keys(l).reduce((u,p)=>({...u,[p]:g=>(o(f=>{var h;l[p](f,g),(h=a.current)==null||h.send({type:l[p].name},v1(f))}),c)}),{}),[o]);return{state:n,dispatch:c}},uj=e=>{const t=Jp(e),r=()=>{const{id:n,namespace:o}=t,a=window.DataSource.spaces[o];if(a&&a.sources)return a.sources[n]};return{actions:{setProperty:(n,o)=>{try{const a=r();a&&a.setValue(n,o)}catch{}},getValue:()=>r()}}},dj=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:o}=Jp(e),[a,l]=M.useState(!1),c=M.useCallback(()=>{try{return window.DataSource.getSource(n,o)}catch{return}},[o,n]),u=(f,h)=>{const b=c();b&&b.setValue(f,h)},p=async()=>{const f=c();if(!f)return;const h=await(f==null?void 0:f.getValue());r==null||r(h)},g=f=>{const{id:h}=f;!a&&h&&h.startsWith(n)&&l(!0)};return M.useEffect(()=>{if(a){const f=c();return f?(f==null||f.addListener("changed",p),()=>f==null?void 0:f.removeListener("changed",p)):void 0}},[a]),M.useEffect(()=>{if(t)return window.addEventListener("datasource:created",g),()=>window.removeEventListener("datasource:created",g)},[t]),{loaded:a,setCurrentSource:u}};function fj(e=!1){const[t,r]=M.useState(e),n=M.useMemo(()=>({on:()=>r(!0),off:()=>r(!1),toggle:()=>r(o=>!o)}),[]);return[t,n]}function pj(e){const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),M.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 hj({value:e,defaultValue:t,onChange:r}){const[n,o]=M.useState(t),[a,l]=b1(e,n),c=M.useCallback(u=>{const p=typeof u=="function"?u(l):u;a||o(p),p!==l&&(r==null||r(p))},[l,a,r]);return[l,c]}const gj=typeof window<"u"?M.useLayoutEffect:M.useEffect;function vj(e,t){const r=M.useRef(!1);M.useEffect(()=>{if(!r.current){r.current=!0;return}return e()},t)}function mj(e){return{...e,isDisabled:e.isDisabled??e.disabled,isReadOnly:e.isReadOnly??e.readOnly,isRequired:e.isRequired??e.required}}function Mn(e){return typeof e=="function"}function y1(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 lf=y1(function(e){return function(r){e(this),this.message=r?r.length+` errors occurred during unsubscription:
249
+ `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
250
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function jf(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var Hc=(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,o,a;if(!this.closed){this.closed=!0;var l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=_f(l),u=c.next();!u.done;u=c.next()){var p=u.value;p.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(Mn(g))try{g()}catch(v){a=v instanceof lf?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var h=_f(f),b=h.next();!b.done;b=h.next()){var S=b.value;try{Uy(S)}catch(v){a=a??[],v instanceof lf?a=pc(pc([],Ef(a)),Ef(v.errors)):a.push(v)}}}catch(v){n={error:v}}finally{try{b&&!b.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(a)throw new lf(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)Uy(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)&&jf(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&jf(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),w1=Hc.EMPTY;function x1(e){return e instanceof Hc||e&&"closed"in e&&Mn(e.remove)&&Mn(e.add)&&Mn(e.unsubscribe)}function Uy(e){Mn(e)?e():e.unsubscribe()}var bj={Promise:void 0},yj={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],Ef(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function wj(e){yj.setTimeout(function(){throw e})}function qy(){}function rc(e){e()}var S1=(function(e){Dc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,x1(r)&&r.add(n)):n.destination=_j,n}return t.create=function(r,n,o){return new Ff(r,n,o)},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})(Hc),xj=(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){zl(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){zl(n)}else zl(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){zl(r)}},e})(),Ff=(function(e){Dc(t,e);function t(r,n,o){var a=e.call(this)||this,l;return Mn(r)||!r?l={next:r??void 0,error:n??void 0,complete:o??void 0}:l=r,a.destination=new xj(l),a}return t})(S1);function zl(e){wj(e)}function Sj(e){throw e}var _j={closed:!0,next:qy,error:Sj,complete:qy},Ej=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function kj(e){return e}function Oj(e){return e.length===0?kj:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var Vy=(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 o=this,a=Aj(t)?t:new Ff(t,r,n);return rc(function(){var l=o,c=l.operator,u=l.source;a.add(c?c.call(a,u):u?o._subscribe(a):o._trySubscribe(a))}),a},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=Gy(r),new r(function(o,a){var l=new Ff({next:function(c){try{t(c)}catch(u){a(u),l.unsubscribe()}},error:a,complete:o});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[Ej]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Oj(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Gy(t),new t(function(n,o){var a;r.subscribe(function(l){return a=l},function(l){return o(l)},function(){return n(a)})})},e.create=function(t){return new e(t)},e})();function Gy(e){var t;return(t=e??bj.Promise)!==null&&t!==void 0?t:Promise}function Tj(e){return e&&Mn(e.next)&&Mn(e.error)&&Mn(e.complete)}function Aj(e){return e&&e instanceof S1||Tj(e)&&x1(e)}var Rj=y1(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),vn=(function(e){Dc(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 Ky(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new Rj},t.prototype.next=function(r){var n=this;rc(function(){var o,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=_f(n.currentObservers),c=l.next();!c.done;c=l.next()){var u=c.value;u.next(r)}}catch(p){o={error:p}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}}})},t.prototype.error=function(r){var n=this;rc(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},t.prototype.complete=function(){var r=this;rc(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,o=this,a=o.hasError,l=o.isStopped,c=o.observers;return a||l?w1:(this.currentObservers=null,c.push(r),new Hc(function(){n.currentObservers=null,jf(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,a=n.thrownError,l=n.isStopped;o?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new Vy;return r.source=this,r},t.create=function(r,n){return new Ky(r,n)},t})(Vy),Ky=(function(e){Dc(t,e);function t(r,n){var o=e.call(this)||this;return o.destination=r,o.source=n,o}return t.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},t.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.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,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:w1},t})(vn),_1=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(_1||{}),E1=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(E1||{});const Cj=new vn,Pj=new vn,jp=new vn;var k1=(e=>(e.SAVE_ALL="save-all",e))(k1||{});const Ij=new vn;var O1=(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))(O1||{});const Nj=new vn;var T1=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(T1||{});const Dj=new vn,Mj=new vn;var as=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(as||{});const Sc=new vn,Lj=new vn,Fp=255;var Hp=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Fp} 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))(Hp||{});function Bc(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Fp)throw new Error(Hp.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 $j(e){if(!e)return null;if(typeof e=="string")try{Bc(e)}catch(t){return t.message}}function zj(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 jj(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Wc(e){const{PLACEHOLDER_PREFIX:t,counter:r}=jj();let n=r;const o=[],a="@!",l=g=>(o.push(g),`${t}${n++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(g,f,h)=>f+l(h)),c=c.replace(/:\d{2}:\d{2}/g,l);const u=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let p=c.replace(u,"");for(let g=0;g<o.length;g++){const h=`${t}${g}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(h,"g");p=p.replace(b,o[g])}return p}const A1=(e,t,r)=>{const n=e instanceof RegExp?Zy(e,r):e,o=t instanceof RegExp?Zy(t,r):t,a=n!==null&&o!=null&&Fj(n,o,r);return a&&{start:a[0],end:a[1],pre:r.slice(0,a[0]),body:r.slice(a[0]+n.length,a[1]),post:r.slice(a[1]+o.length)}},Zy=(e,t)=>{const r=t.match(e);return r?r[0]:null},Fj=(e,t,r)=>{let n,o,a,l,c,u=r.indexOf(e),p=r.indexOf(t,u+1),g=u;if(u>=0&&p>0){if(e===t)return[u,p];for(n=[],a=r.length;g>=0&&!c;){if(g===u)n.push(g),u=r.indexOf(e,g+1);else if(n.length===1){const f=n.pop();f!==void 0&&(c=[f,p])}else o=n.pop(),o!==void 0&&o<a&&(a=o,l=p),p=r.indexOf(t,g+1);g=u<p&&u>=0?u:p}n.length&&l!==void 0&&(c=[a,l])}return c},R1="\0SLASH"+Math.random()+"\0",C1="\0OPEN"+Math.random()+"\0",Bp="\0CLOSE"+Math.random()+"\0",P1="\0COMMA"+Math.random()+"\0",I1="\0PERIOD"+Math.random()+"\0",Hj=new RegExp(R1,"g"),Bj=new RegExp(C1,"g"),Wj=new RegExp(Bp,"g"),Uj=new RegExp(P1,"g"),qj=new RegExp(I1,"g"),Vj=/\\\\/g,Gj=/\\{/g,Kj=/\\}/g,Zj=/\\,/g,Yj=/\\\./g,Xj=1e5;function cf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function Jj(e){return e.replace(Vj,R1).replace(Gj,C1).replace(Kj,Bp).replace(Zj,P1).replace(Yj,I1)}function Qj(e){return e.replace(Hj,"\\").replace(Bj,"{").replace(Wj,"}").replace(Uj,",").replace(qj,".")}function N1(e){if(!e)return[""];const t=[],r=A1("{","}",e);if(!r)return e.split(",");const{pre:n,body:o,post:a}=r,l=n.split(",");l[l.length-1]+="{"+o+"}";const c=N1(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function e3(e,t={}){if(!e)return[];const{max:r=Xj}=t;return e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),ja(Jj(e),r,!0).map(Qj)}function t3(e){return"{"+e+"}"}function r3(e){return/^-?0\d/.test(e)}function n3(e,t){return e<=t}function i3(e,t){return e>=t}function ja(e,t,r){const n=[],o=A1("{","}",e);if(!o)return[e];const a=o.pre,l=o.post.length?ja(o.post,t,!1):[""];if(/\$$/.test(o.pre))for(let c=0;c<l.length&&c<t;c++){const u=a+"{"+o.body+"}"+l[c];n.push(u)}else{const c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(o.body),u=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(o.body),p=c||u,g=o.body.indexOf(",")>=0;if(!p&&!g)return o.post.match(/,(?!,).*\}/)?(e=o.pre+"{"+o.body+Bp+o.post,ja(e,t,!0)):[e];let f;if(p)f=o.body.split(/\.\./);else if(f=N1(o.body),f.length===1&&f[0]!==void 0&&(f=ja(f[0],t,!1).map(t3),f.length===1))return l.map(b=>o.pre+f[0]+b);let h;if(p&&f[0]!==void 0&&f[1]!==void 0){const b=cf(f[0]),S=cf(f[1]),v=Math.max(f[0].length,f[1].length);let y=f.length===3&&f[2]!==void 0?Math.max(Math.abs(cf(f[2])),1):1,m=n3;S<b&&(y*=-1,m=i3);const x=f.some(r3);h=[];for(let k=b;m(k,S);k+=y){let E;if(u)E=String.fromCharCode(k),E==="\\"&&(E="");else if(E=String(k),x){const R=v-E.length;if(R>0){const F=new Array(R+1).join("0");k<0?E="-"+F+E.slice(1):E=F+E}}h.push(E)}}else{h=[];for(let b=0;b<f.length;b++)h.push.apply(h,ja(f[b],t,!1))}for(let b=0;b<h.length;b++)for(let S=0;S<l.length&&n.length<t;S++){const v=a+h[b]+l[S];(!r||p||v)&&n.push(v)}}return n}const o3=1024*64,_c=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>o3)throw new TypeError("pattern is too long")},a3={"[: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]},Na=e=>e.replace(/[[\]\\-]/g,"\\$&"),s3=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Yy=e=>e.join(""),l3=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const n=[],o=[];let a=r+1,l=!1,c=!1,u=!1,p=!1,g=r,f="";e:for(;a<e.length;){const v=e.charAt(a);if((v==="!"||v==="^")&&a===r+1){p=!0,a++;continue}if(v==="]"&&l&&!u){g=a+1;break}if(l=!0,v==="\\"&&!u){u=!0,a++;continue}if(v==="["&&!u){for(const[y,[m,w,x]]of Object.entries(a3))if(e.startsWith(y,a)){if(f)return["$.",!1,e.length-r,!0];a+=y.length,x?o.push(m):n.push(m),c=c||w;continue e}}if(u=!1,f){v>f?n.push(Na(f)+"-"+Na(v)):v===f&&n.push(Na(v)),f="",a++;continue}if(e.startsWith("-]",a+1)){n.push(Na(v+"-")),a+=2;continue}if(e.startsWith("-",a+1)){f=v,a+=2;continue}n.push(Na(v)),a++}if(g<a)return["",!1,0,!1];if(!n.length&&!o.length)return["$.",!1,e.length-r,!0];if(o.length===0&&n.length===1&&/^\\?.$/.test(n[0])&&!p){const v=n[0].length===2?n[0].slice(-1):n[0];return[s3(v),!1,g-r,!1]}const h="["+(p?"^":"")+Yy(n)+"]",b="["+(p?"":"^")+Yy(o)+"]";return[n.length&&o.length?"("+h+"|"+b+")":n.length?h:b,c,g-r,!0]},Fa=(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 nr;const c3=new Set(["!","?","+","*","@"]),Hf=e=>c3.has(e),Xy=e=>Hf(e.type),u3=new Map([["!",["@"]],["?",["?","@"]],["@",["@"]],["*",["*","+","?","@"]],["+",["+","@"]]]),d3=new Map([["!",["?"]],["@",["?"]],["+",["?","*"]]]),f3=new Map([["!",["?","@"]],["?",["?","@"]],["@",["?","@"]],["*",["*","+","?","@"]],["+",["+","@","?","*"]]]),Jy=new Map([["!",new Map([["!","@"]])],["?",new Map([["*","*"],["+","*"]])],["@",new Map([["!","!"],["?","?"],["@","@"],["*","*"],["+","+"]])],["+",new Map([["?","*"],["*","*"]])]]),p3="(?!(?:^|/)\\.\\.?(?:$|/))",jl="(?!\\.)",h3=new Set(["[","."]),g3=new Set(["..","."]),v3=new Set("().*{}+?[]^$\\!"),m3=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Wp="[^/]",Qy=Wp+"*?",e0=Wp+"+?";let b3=0;var Et,Pt,In,Ce,ft,ri,Ii,ni,ln,cn,Eo,Ue,D1,oi,nc,M1,Bf,ic,L1,Wf,$1,z1,j1,oc,Uf,F1;class Uc{constructor(t,r,n={}){Lt(this,Ue);Ae(this,"type");Lt(this,Et);Lt(this,Pt);Lt(this,In,!1);Lt(this,Ce,[]);Lt(this,ft);Lt(this,ri);Lt(this,Ii);Lt(this,ni,!1);Lt(this,ln);Lt(this,cn);Lt(this,Eo,!1);Ae(this,"id",++b3);this.type=t,t&&et(this,Pt,!0),et(this,ft,r),et(this,Et,se(this,ft)?se(se(this,ft),Et):this),et(this,ln,se(this,Et)===this?n:se(se(this,Et),ln)),et(this,Ii,se(this,Et)===this?[]:se(se(this,Et),Ii)),t==="!"&&!se(se(this,Et),ni)&&se(this,Ii).push(this),et(this,ri,se(this,ft)?se(se(this,ft),Ce).length:0)}get depth(){var t;return(((t=se(this,ft))==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:se(this,Et).id,parent:(t=se(this,ft))==null?void 0:t.id,depth:this.depth,partsLength:se(this,Ce).length,parts:se(this,Ce)}}get hasMagic(){if(se(this,Pt)!==void 0)return se(this,Pt);for(const t of se(this,Ce))if(typeof t!="string"&&(t.type||t.hasMagic))return et(this,Pt,!0);return se(this,Pt)}toString(){return se(this,cn)!==void 0?se(this,cn):this.type?et(this,cn,this.type+"("+se(this,Ce).map(t=>String(t)).join("|")+")"):et(this,cn,se(this,Ce).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof nr&&se(r,ft)===this))throw new Error("invalid part: "+r);se(this,Ce).push(r)}}toJSON(){var r;const t=this.type===null?se(this,Ce).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...se(this,Ce).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===se(this,Et)||se(se(this,Et),ni)&&((r=se(this,ft))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(se(this,Et)===this)return!0;if(!((r=se(this,ft))!=null&&r.isStart()))return!1;if(se(this,ri)===0)return!0;const t=se(this,ft);for(let n=0;n<se(this,ri);n++){const o=se(t,Ce)[n];if(!(o instanceof nr&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(se(this,Et)===this||((r=se(this,ft))==null?void 0:r.type)==="!")return!0;if(!((n=se(this,ft))!=null&&n.isEnd()))return!1;if(!this.type)return(o=se(this,ft))==null?void 0:o.isEnd();const t=se(this,ft)?se(se(this,ft),Ce).length:0;return se(this,ri)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new nr(this.type,t);for(const n of se(this,Ce))r.copyIn(n);return r}static fromGlob(t,r={}){var o;const n=new nr(null,void 0,r);return _e(o=nr,oi,nc).call(o,t,n,0,r,0),n}toMMPattern(){if(this!==se(this,Et))return se(this,Et).toMMPattern();const t=this.toString(),[r,n,o,a]=this.toRegExpSource();if(!(o||se(this,Pt)||se(this,ln).nocase&&!se(this,ln).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(se(this,ln).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return se(this,ln)}toRegExpSource(t){var u;const r=t??!!se(this,ln).dot;if(se(this,Et)===this&&(_e(this,Ue,oc).call(this),_e(this,Ue,D1).call(this)),!Xy(this)){const p=this.isStart()&&this.isEnd()&&!se(this,Ce).some(S=>typeof S!="string"),g=se(this,Ce).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?_e(x=nr,oi,F1).call(x,S,se(this,Pt),p):S.toRegExpSource(t);return et(this,Pt,se(this,Pt)||m),et(this,In,se(this,In)||w),v}).join("");let f="";if(this.isStart()&&typeof se(this,Ce)[0]=="string"&&!(se(this,Ce).length===1&&g3.has(se(this,Ce)[0]))){const v=h3,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));f=y?p3:m?jl:""}let h="";return this.isEnd()&&se(se(this,Et),ni)&&((u=se(this,ft))==null?void 0:u.type)==="!"&&(h="(?:$|\\/)"),[f+g+h,Fa(g),et(this,Pt,!!se(this,Pt)),se(this,In)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let a=_e(this,Ue,Uf).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const p=this.toString(),g=this;return et(g,Ce,[p]),g.type=null,et(g,Pt,void 0),[p,Fa(this.toString()),!1,!1]}let l=!n||t||r||!jl?"":_e(this,Ue,Uf).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&se(this,Eo))c=(this.isStart()&&!r?jl:"")+e0;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?jl:"")+Qy+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=o+a+p}return[c,Fa(a),et(this,Pt,!!se(this,Pt)),se(this,In)]}}Et=new WeakMap,Pt=new WeakMap,In=new WeakMap,Ce=new WeakMap,ft=new WeakMap,ri=new WeakMap,Ii=new WeakMap,ni=new WeakMap,ln=new WeakMap,cn=new WeakMap,Eo=new WeakMap,Ue=new WeakSet,D1=function(){if(this!==se(this,Et))throw new Error("should only call on root");if(se(this,ni))return this;this.toString(),et(this,ni,!0);let t;for(;t=se(this,Ii).pop();){if(t.type!=="!")continue;let r=t,n=se(r,ft);for(;n;){for(let o=se(r,ri)+1;!n.type&&o<se(n,Ce).length;o++)for(const a of se(t,Ce)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(se(n,Ce)[o])}r=n,n=se(r,ft)}}return this},oi=new WeakSet,nc=function(t,r,n,o,a){var v,y,m,w;const l=o.maxExtglobRecursion??2;let c=!1,u=!1,p=-1,g=!1;if(r.type===null){let x=n,k="";for(;x<t.length;){const E=t.charAt(x++);if(c||E==="\\"){c=!c,k+=E;continue}if(u){x===p+1?(E==="^"||E==="!")&&(g=!0):E==="]"&&!(x===p+2&&g)&&(u=!1),k+=E;continue}else if(E==="["){u=!0,p=x,g=!1,k+=E;continue}if(!o.noext&&Hf(E)&&t.charAt(x)==="("&&a<=l){r.push(k),k="";const F=new nr(E,r);x=_e(v=nr,oi,nc).call(v,t,F,x,o,a+1),r.push(F);continue}k+=E}return r.push(k),x}let f=n+1,h=new nr(null,r);const b=[];let S="";for(;f<t.length;){const x=t.charAt(f++);if(c||x==="\\"){c=!c,S+=x;continue}if(u){f===p+1?(x==="^"||x==="!")&&(g=!0):x==="]"&&!(f===p+2&&g)&&(u=!1),S+=x;continue}else if(x==="["){u=!0,p=f,g=!1,S+=x;continue}if(!o.noext&&Hf(x)&&t.charAt(f)==="("&&(a<=l||r&&_e(y=r,Ue,ic).call(y,x))){const E=r&&_e(m=r,Ue,ic).call(m,x)?0:1;h.push(S),S="";const R=new nr(x,h);h.push(R),f=_e(w=nr,oi,nc).call(w,t,R,f,o,a+E);continue}if(x==="|"){h.push(S),S="",b.push(h),h=new nr(null,r);continue}if(x===")")return S===""&&se(r,Ce).length===0&&et(r,Eo,!0),h.push(S),S="",r.push(...b,h),f;S+=x}return r.type=null,et(r,Pt,void 0),et(r,Ce,[t.substring(n-1)]),f},M1=function(t){return _e(this,Ue,Bf).call(this,t,d3)},Bf=function(t,r=u3){if(!t||typeof t!="object"||t.type!==null||se(t,Ce).length!==1||this.type===null)return!1;const n=se(t,Ce)[0];return!n||typeof n!="object"||n.type===null?!1:_e(this,Ue,ic).call(this,n.type,r)},ic=function(t,r=f3){var n;return!!((n=r.get(this.type))!=null&&n.includes(t))},L1=function(t,r){const n=se(t,Ce)[0],o=new nr(null,n,this.options);se(o,Ce).push(""),n.push(o),_e(this,Ue,Wf).call(this,t,r)},Wf=function(t,r){const n=se(t,Ce)[0];se(this,Ce).splice(r,1,...se(n,Ce));for(const o of se(n,Ce))typeof o=="object"&&et(o,ft,this);et(this,cn,void 0)},$1=function(t){const r=Jy.get(this.type);return!!(r!=null&&r.has(t))},z1=function(t){if(!t||typeof t!="object"||t.type!==null||se(t,Ce).length!==1||this.type===null||se(this,Ce).length!==1)return!1;const r=se(t,Ce)[0];return!r||typeof r!="object"||r.type===null?!1:_e(this,Ue,$1).call(this,r.type)},j1=function(t){const r=Jy.get(this.type),n=se(t,Ce)[0],o=r==null?void 0:r.get(n.type);if(!o)return!1;et(this,Ce,se(n,Ce));for(const a of se(this,Ce))typeof a=="object"&&et(a,ft,this);this.type=o,et(this,cn,void 0),et(this,Eo,!1)},oc=function(){var t,r;if(Xy(this)){let n=0,o=!1;do{o=!0;for(let a=0;a<se(this,Ce).length;a++){const l=se(this,Ce)[a];typeof l=="object"&&(_e(r=l,Ue,oc).call(r),_e(this,Ue,Bf).call(this,l)?(o=!1,_e(this,Ue,Wf).call(this,l,a)):_e(this,Ue,M1).call(this,l)?(o=!1,_e(this,Ue,L1).call(this,l,a)):_e(this,Ue,z1).call(this,l)&&(o=!1,_e(this,Ue,j1).call(this,l)))}}while(!o&&++n<10)}else for(const n of se(this,Ce))typeof n=="object"&&_e(t=n,Ue,oc).call(t);et(this,cn,void 0)},Uf=function(t){return se(this,Ce).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,a,l]=r.toRegExpSource(t);return et(this,In,se(this,In)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},F1=function(t,r,n=!1){let o=!1,a="",l=!1,c=!1;for(let u=0;u<t.length;u++){const p=t.charAt(u);if(o){o=!1,a+=(v3.has(p)?"\\":"")+p;continue}if(p==="*"){if(c)continue;c=!0,a+=n&&/^[*]+$/.test(t)?e0:Qy,r=!0;continue}else c=!1;if(p==="\\"){u===t.length-1?a+="\\\\":o=!0;continue}if(p==="["){const[g,f,h,b]=l3(t,u);if(h){a+=g,l=l||f,u+=h-1,r=r||b;continue}}if(p==="?"){a+=Wp,r=!0;continue}a+=m3(p)}return[a,Fa(t),!!r,l]},Lt(Uc,oi);nr=Uc;const y3=(e,{windowsPathsNoEscape:t=!1,magicalBraces:r=!1}={})=>r?t?e.replace(/[?*()[\]{}]/g,"[$&]"):e.replace(/[?*()[\]\\{}]/g,"\\$&"):t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Ft=(e,t,r={})=>(_c(t),!r.nocomment&&t.charAt(0)==="#"?!1:new qc(t,r).match(e)),w3=/^\*+([^+@!?*[(]*)$/,x3=e=>t=>!t.startsWith(".")&&t.endsWith(e),S3=e=>t=>t.endsWith(e),_3=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),E3=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),k3=/^\*+\.\*+$/,O3=e=>!e.startsWith(".")&&e.includes("."),T3=e=>e!=="."&&e!==".."&&e.includes("."),A3=/^\.\*+$/,R3=e=>e!=="."&&e!==".."&&e.startsWith("."),C3=/^\*+$/,P3=e=>e.length!==0&&!e.startsWith("."),I3=e=>e.length!==0&&e!=="."&&e!=="..",N3=/^\?+([^+@!?*[(]*)?$/,D3=([e,t=""])=>{const r=H1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},M3=([e,t=""])=>{const r=B1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},L3=([e,t=""])=>{const r=B1([e]);return t?n=>r(n)&&n.endsWith(t):r},$3=([e,t=""])=>{const r=H1([e]);return t?n=>r(n)&&n.endsWith(t):r},H1=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},B1=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},W1=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",t0={win32:{sep:"\\"},posix:{sep:"/"}},z3=W1==="win32"?t0.win32.sep:t0.posix.sep;Ft.sep=z3;const Ut=Symbol("globstar **");Ft.GLOBSTAR=Ut;const j3="[^/]",F3=j3+"*?",H3="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",B3="(?:(?!(?:\\/|^)\\.).)*?",W3=(e,t={})=>r=>Ft(r,e,t);Ft.filter=W3;const Cr=(e,t={})=>Object.assign({},e,t),U3=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ft;const t=Ft;return Object.assign((n,o,a={})=>t(n,o,Cr(e,a)),{Minimatch:class extends t.Minimatch{constructor(o,a={}){super(o,Cr(e,a))}static defaults(o){return t.defaults(Cr(e,o)).Minimatch}},AST:class extends t.AST{constructor(o,a,l={}){super(o,a,Cr(e,l))}static fromGlob(o,a={}){return t.AST.fromGlob(o,Cr(e,a))}},unescape:(n,o={})=>t.unescape(n,Cr(e,o)),escape:(n,o={})=>t.escape(n,Cr(e,o)),filter:(n,o={})=>t.filter(n,Cr(e,o)),defaults:n=>t.defaults(Cr(e,n)),makeRe:(n,o={})=>t.makeRe(n,Cr(e,o)),braceExpand:(n,o={})=>t.braceExpand(n,Cr(e,o)),match:(n,o,a={})=>t.match(n,o,Cr(e,a)),sep:t.sep,GLOBSTAR:Ut})};Ft.defaults=U3;const U1=(e,t={})=>(_c(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:e3(e,{max:t.braceExpandMax}));Ft.braceExpand=U1;const q3=(e,t={})=>new qc(e,t).makeRe();Ft.makeRe=q3;const V3=(e,t,r={})=>{const n=new qc(t,r);return e=e.filter(o=>n.match(o)),n.options.nonull&&!e.length&&e.push(t),e};Ft.match=V3;const r0=/[?*]|[+@!]\(.*?\)|\[|\]/,G3=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");var mr,q1,qf,vo;class qc{constructor(t,r={}){Lt(this,mr);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");_c(t),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??200,this.pattern=t,this.platform=r.platform||W1,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=(...a)=>console.error(...a)),this.debug(this.pattern,this.globSet);const n=this.globSet.map(a=>this.slashSplit(a));this.globParts=this.preprocess(n),this.debug(this.pattern,this.globParts);let o=this.globParts.map((a,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const u=a[0]===""&&a[1]===""&&(a[2]==="?"||!r0.test(a[2]))&&!r0.test(a[3]),p=/^[a-z]:/i.test(a[0]);if(u)return[...a.slice(0,4),...a.slice(4).map(g=>this.parse(g))];if(p)return[a[0],...a.slice(1).map(g=>this.parse(g))]}return a.map(u=>this.parse(u))});if(this.debug(this.pattern,o),this.set=o.filter(a=>a.indexOf(!1)===-1),this.isWindows)for(let a=0;a<this.set.length;a++){const l=this.set[a];l[0]===""&&l[1]===""&&this.globParts[a][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 o=0;o<n.length;o++)n[o]==="**"&&(n[o]="*");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 o=n;for(;r[o+1]==="**";)o++;o!==n&&r.splice(n,o-n)}return r})}levelOneOptimize(t){return t.map(r=>(r=r.reduce((n,o)=>{const a=n[n.length-1];return o==="**"&&a==="**"?n:o===".."&&a&&a!==".."&&a!=="."&&a!=="**"?(n.pop(),n):(n.push(o),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 o=1;o<t.length-1;o++){const a=t[o];o===1&&a===""&&t[0]===""||(a==="."||a==="")&&(r=!0,t.splice(o,1),o--)}t[0]==="."&&t.length===2&&(t[1]==="."||t[1]==="")&&(r=!0,t.pop())}let n=0;for(;(n=t.indexOf("..",n+1))!==-1;){const o=t[n-1];o&&o!=="."&&o!==".."&&o!=="**"&&!(this.isWindows&&/^[a-z]:$/i.test(o))&&(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 o=-1;for(;(o=n.indexOf("**",o+1))!==-1;){let l=o;for(;n[l+1]==="**";)l++;l>o&&n.splice(o+1,l-o);let c=n[o+1];const u=n[o+2],p=n[o+3];if(c!==".."||!u||u==="."||u===".."||!p||p==="."||p==="..")continue;r=!0,n.splice(o,1);const g=n.slice(0);g[o]="**",t.push(g),o--}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 a=0;for(;(a=n.indexOf("..",a+1))!==-1;){const l=n[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){r=!0;const u=a===1&&n[a+1]==="**"?["."]:[];n.splice(a-1,2,...u),n.length===0&&n.push(""),a-=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 o=this.partsMatch(t[r],t[n],!this.preserveMultipleSlashes);if(o){t[r]=[],t[n]=o;break}}return t.filter(r=>r.length)}partsMatch(t,r,n=!1){let o=0,a=0,l=[],c="";for(;o<t.length&&a<r.length;)if(t[o]===r[a])l.push(c==="b"?r[a]:t[o]),o++,a++;else if(n&&t[o]==="**"&&r[a]===t[o+1])l.push(t[o]),o++;else if(n&&r[a]==="**"&&t[o]===r[a+1])l.push(r[a]),a++;else if(t[o]==="*"&&r[a]&&(this.options.dot||!r[a].startsWith("."))&&r[a]!=="**"){if(c==="b")return!1;c="a",l.push(t[o]),o++,a++}else if(r[a]==="*"&&t[o]&&(this.options.dot||!t[o].startsWith("."))&&t[o]!=="**"){if(c==="a")return!1;c="b",l.push(r[a]),o++,a++}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 o=0;o<t.length&&t.charAt(o)==="!";o++)r=!r,n++;n&&(this.pattern=t.slice(n)),this.negate=r}matchOne(t,r,n=!1){let o=0,a=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]),p=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),g=!p&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),f=u?3:c?0:void 0,h=g?3:p?0:void 0;if(typeof f=="number"&&typeof h=="number"){const[b,S]=[t[f],r[h]];b.toLowerCase()===S.toLowerCase()&&(r[h]=b,a=h,o=f)}}const{optimizationLevel:l=1}=this.options;return l>=2&&(t=this.levelTwoFileOptimize(t)),r.includes(Ut)?_e(this,mr,q1).call(this,t,r,n,o,a):_e(this,mr,vo).call(this,t,r,n,o,a)}braceExpand(){return U1(this.pattern,this.options)}parse(t){_c(t);const r=this.options;if(t==="**")return Ut;if(t==="")return"";let n,o=null;(n=t.match(C3))?o=r.dot?I3:P3:(n=t.match(w3))?o=(r.nocase?r.dot?E3:_3:r.dot?S3:x3)(n[1]):(n=t.match(N3))?o=(r.nocase?r.dot?M3:D3:r.dot?L3:$3)(n):(n=t.match(k3))?o=r.dot?T3:O3:(n=t.match(A3))&&(o=R3);const a=Uc.fromGlob(t,this.options).toMMPattern();return o&&typeof a=="object"&&Reflect.defineProperty(a,"test",{value:o}),a}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?F3:r.dot?H3:B3,o=new Set(r.nocase?["i"]:[]);let a=t.map(u=>{const p=u.map(f=>{if(f instanceof RegExp)for(const h of f.flags.split(""))o.add(h);return typeof f=="string"?G3(f):f===Ut?Ut:f._src});p.forEach((f,h)=>{const b=p[h+1],S=p[h-1];f!==Ut||S===Ut||(S===void 0?b!==void 0&&b!==Ut?p[h+1]="(?:\\/|"+n+"\\/)?"+b:p[h]=n:b===void 0?p[h-1]=S+"(?:\\/|\\/"+n+")?":b!==Ut&&(p[h-1]=S+"(?:\\/|\\/"+n+"\\/)"+b,p[h+1]=Ut))});const g=p.filter(f=>f!==Ut);if(this.partial&&g.length>=1){const f=[];for(let h=1;h<=g.length;h++)f.push(g.slice(0,h).join("/"));return"(?:"+f.join("|")+")"}return g.join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+c+"$",this.partial&&(a="^(?:\\/|"+l+a.slice(1,-1)+c+")$"),this.negate&&(a="^(?!"+a+").+$");try{this.regexp=new RegExp(a,[...o].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 o=this.slashSplit(t);this.debug(this.pattern,"split",o);const a=this.set;this.debug(this.pattern,"set",a);let l=o[o.length-1];if(!l)for(let c=o.length-2;!l&&c>=0;c--)l=o[c];for(const c of a){let u=o;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 Ft.defaults(t).Minimatch}}mr=new WeakSet,q1=function(t,r,n,o,a){const l=r.indexOf(Ut,a),c=r.lastIndexOf(Ut),[u,p,g]=n?[r.slice(a,l),r.slice(l+1),[]]:[r.slice(a,l),r.slice(l+1,c),r.slice(c+1)];if(u.length){const w=t.slice(o,o+u.length);if(!_e(this,mr,vo).call(this,w,u,n,0,0))return!1;o+=u.length,a+=u.length}let f=0;if(g.length){if(g.length+o>t.length)return!1;let w=t.length-g.length;if(_e(this,mr,vo).call(this,t,g,n,w,0))f=g.length;else{if(t[t.length-1]!==""||o+g.length===t.length||(w--,!_e(this,mr,vo).call(this,t,g,n,w,0)))return!1;f=g.length+1}}if(!p.length){let w=!!f;for(let x=o;x<t.length-f;x++){const k=String(t[x]);if(w=!0,k==="."||k===".."||!this.options.dot&&k.startsWith("."))return!1}return n||w}const h=[[[],0]];let b=h[0],S=0;const v=[0];for(const w of p)w===Ut?(v.push(S),b=[[],0],h.push(b)):(b[0].push(w),S++);let y=h.length-1;const m=t.length-f;for(const w of h)w[1]=m-(v[y--]+w[0].length);return!!_e(this,mr,qf).call(this,t,h,o,0,n,0,!!f)},qf=function(t,r,n,o,a,l,c){const u=r[o];if(!u){for(let f=n;f<t.length;f++){c=!0;const h=t[f];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1}return c}const[p,g]=u;for(;n<=g;){if(_e(this,mr,vo).call(this,t.slice(0,n+p.length),p,a,n,0)&&l<this.maxGlobstarRecursion){const b=_e(this,mr,qf).call(this,t,r,n+p.length,o+1,a,l+1,c);if(b!==!1)return b}const h=t[n];if(h==="."||h===".."||!this.options.dot&&h.startsWith("."))return!1;n++}return a||null},vo=function(t,r,n,o,a){let l,c,u,p;for(l=o,c=a,p=t.length,u=r.length;l<p&&c<u;l++,c++){this.debug("matchOne loop");let g=r[c],f=t[l];if(this.debug(r,g,f),g===!1||g===Ut)return!1;let h;if(typeof g=="string"?(h=f===g,this.debug("string match",g,f,h)):(h=g.test(f),this.debug("pattern match",g,f,h)),!h)return!1}if(l===p&&c===u)return!0;if(l===p)return n;if(c===u)return l===p-1&&t[l]==="";throw new Error("wtf?")};Ft.AST=Uc;Ft.Minimatch=qc;Ft.escape=y3;Ft.unescape=Fa;var Up=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Up||{});const Zr={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||{}),li=(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))(li||{}),qp=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(qp||{});const Vp="roles.json",Gp="qodlyApp.json",V1="model.4DModel",Kp="HTTPHandlers.json",Zp="Shared/i18n.json",G1=[{pattern:Gp,editor:{key:"editors:settings"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:Vp,editor:{key:"editors:roles"},supportedEditors:[{key:"editors:code",config:{language:"json",theme:"vs-dark"}}]},{pattern:Kp,editor:{key:"editors:http-handlers"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:Zp,editor:{key:"editors:localization"},supportedEditors:[{key:"editors:code",config:{language:"json"}}]},{pattern:V1,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 K3(e){const t=Yp(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 Z3(e){const t=G1.find(({pattern:r})=>Ft(e,r,{nocase:!0}));return t||{pattern:"",editor:{key:"editors:unknown",config:{language:"text"}}}}function Yp(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===Zr.METHODS):return je.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Zr.CLASSES):return je.CLASS;case e===Vp:return je.ROLES;case e===Kp:return je.HTTP_HANDLERS;case e===Gp:return je.SETTINGS;case e===Zp:return je.LOCALIZATION;default:return je.TEXT}}function K1(e,t=!1){switch(e){case Zr.REPORTS:case"report":return"QoDoc";case Zr.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Zr.CLASSES:case Zr.METHODS:return t?"4qs":"4dm";default:return""}}function Y3(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function X3(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 Z1{constructor(){this.current=Promise.resolve()}lock(){let t;const r=new Promise(o=>{t=o}),n=this.current.then(()=>t);return this.current=r,n}}function Xp(){const e=new Z1;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const J3="4DWS_PREFS",Y1=He.curry((e,t,r)=>e&&He.get(r,e)===t),Q3=He.curry((e,t,r)=>He.get(r,e)!==t),eF=He.curry((e,t)=>He.get(t,"id")!==e),tF=He.curry((e,t)=>He.get(t,"id")===e),rF=He.curry((e,t)=>He.get(t,"path")===e);function nF(e="id",t,r){return r.findIndex(Y1(e,t))!==-1}function X1(e,t){return e==null?void 0:e.localeCompare(t,void 0,{numeric:!0})}function iF(){try{const e=localStorage.getItem(J3);return{...e?JSON.parse(e):{},"features.experimental.i18n":!0}}catch(e){console.error(e)}}function oF(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function Jp(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 J1(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function aF(e){return e.type==="object"}function Q1(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function eS(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!J1(e)}function sF(e){return Q1(e)||eS(e)}function lF(e){return e.applyTo==="dataStore"}function cF(e){return e.applyTo==="dataClass"}function uF(e){return e.applyTo==="entity"}function dF(e){return e.applyTo==="entityCollection"}function fF(e){return e.type==="entity"}function pF(e){return e.type==="entitysel"}function tS(e){return e.dataType==="array"}function rS(e){return e.dataType==="object"}function nS(e){return e.type==="scalar"}function hF(e){return tS(e)||rS(e)||nS(e)}const gF=e=>e!=null&&e.type==="entity",vF=e=>e.type==="entitysel",mF=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",bF=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",yF=e=>e.type==="scalar"&&e.dataType==="date",wF=(e,t)=>(e||"")===(t||"");function xF(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function SF(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const Ha="Qodly",iS="Location",oS="UserLanguage",aS="Title",Ec={[Ha]:[{id:aS,dataType:"string",type:"scalar",namespace:Ha,initialValue:""},{id:iS,dataType:"object",type:"scalar",namespace:Ha,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:oS,dataType:"object",type:"scalar",namespace:Ha,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 ss=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(ss||{}),sS=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(sS||{}),Qp=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Qp||{});const _F={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function EF(e){var a;let t={};try{const l=((a=e.match(/\/\/%attributes = (.*)/))==null?void 0:a[1])||"";t=JSON.parse(l)}catch{}const{published4DMobile:r,...n}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:ss.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Qp.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&&[ss.capable,ss.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 kF(e,t,r=!1){const n=He.isString(t)?t:lS(t);if(!r&&cS(e))return e;const o=uS(e);return`//%attributes = ${n}\r
251
+ ${o}`}function cS(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function uS(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const Vf=()=>ai.uuid().replaceAll("-","").toUpperCase();function OF(e){var o,a;const t=new Map,r=new Map,n=new Map;return(o=e.singletons)==null||o.forEach(({methods:l=[],...c})=>{n.set(c.name,{...c,methods:l})}),(a=e.dataClasses)==null||a.forEach(({methods:l=[],...c})=>{const u={...c,methods:l};if(u.uuid||(u.uuid=Vf()),u.attributes){const p=["storage","relatedEntity"];u.attributes=u.attributes.map(g=>p.includes(g.kind)&&!g.uuid?{...g,uuid:Vf()}: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 TF=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Je=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Je||{}),ut=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ut||{});const AF=[Je.DATASTORE,Je.DATACLASS,Je.ATTRIBUTE,Je.SINGLETON_METHOD,Je.SINGLETON,Je.METHOD,ut.DS_METHOD,ut.DATACLASS_METHOD,ut.ENTITY_METHOD,ut.ENTITY_SEL_METHOD],n0=e=>[ut.DS_METHOD,ut.ENTITY_METHOD,ut.DATACLASS_METHOD].includes(e)?Je.METHOD:e,kc="guest",eh=[{key:"read",label:"Read",canApplyTo:[Je.DATASTORE,Je.DATACLASS,Je.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Je.DATASTORE,Je.DATACLASS,Je.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Je.DATASTORE,Je.DATACLASS,Je.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Je.DATASTORE,Je.DATACLASS,Je.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Je.DATASTORE,Je.DATACLASS,Je.METHOD,ut.DS_METHOD,ut.DATACLASS_METHOD,ut.ENTITY_METHOD,ut.ENTITY_SEL_METHOD,Je.SINGLETON,Je.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Je.METHOD,ut.DS_METHOD,ut.DATACLASS_METHOD,ut.ENTITY_METHOD,ut.ENTITY_SEL_METHOD,Je.SINGLETON_METHOD]}];function Lr(e,...t){return Array.from(new Set([...e,...t]))}function dS(e){const t={},r=new Map;e.forEach(u=>{const p=u.id||ai.generate();t[p]={...u,id:p,parents:[],includes:Lr(u.includes||[]),resources:[]},r.set(u.privilege,p)}),Object.entries(t).forEach(([u,p])=>{const g=p.includes.map(f=>{const h=r.get(f);return h?(t[h].parents=Lr(t[h].parents,h),h):""}).filter(Boolean);t[u]={...p,includes:g}});const n=fS(t),o=new Set;function a(u){o.add(u.id),u.includes=u.includes.filter(p=>!o.has(p))}if(n.forEach(a),n.forEach(u=>u.parents=[]),n.forEach(u=>{u.includes.forEach(p=>t[p].parents.push(u.id))}),Object.values(t).find(({privilege:u})=>u===kc))return t;const c=ai.generate();return{[c]:{id:c,privilege:kc,includes:[],parents:[],resources:[]},...t}}function fS(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function Vc(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(o=>{n=Lr(n,...Vc(o,t),o)}),n}function Oc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(o=>{n=Lr(n,...Oc(o,t),o)}),n}function RF(e,t){const r=t[e];if(!r)return[];const n=[e,...Vc(e,t),...r.includes];return Object.keys(t).filter(o=>!n.includes(o))}function CF(e,t){return t[e]?Object.keys(t).reduce((n,o)=>o===e?n:{...n,[o]:{...t[o],parents:t[o].parents.filter(a=>a!==e),includes:t[o].includes.filter(a=>a!==e)}},{}):t}function PF(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:Lr(n.includes,t)},[t]:{...r[t],parents:Lr(o.parents,e)}}}function IF(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:r[e].includes.filter(a=>a!==t)},[t]:{...r[t],parents:r[t].parents.filter(a=>a!==e)}}}function NF(e,t){Bc(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=ai.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function DF(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:o}])=>{if(e.toLowerCase()===n.toLowerCase()&&t!==o)throw new Error(`There's already a Privilege with the name ${e}`)}),{...r,[t]:{...r[t],privilege:e}}}function MF(e,t){return e.map(r=>zn(r,t))}function zn(e,t){return t[e]?t[e]:null}function pS({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[o,a])=>{const l=He.find(eh,["key",o]);return!l||!l.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(u=>{n[u]=Lr(n[u]||[],o)}),n},{})}const i0=(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 th(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 Je.DATASTORE:return{...n,info:i0(r,!0)};case Je.DATACLASS:return{...n,info:i0(r)};default:return n}}),resource:e.applyTo,type:e.type}}function hS(e,t){const r=gS(t),n={};return e.filter(({type:o})=>AF.includes(o)).forEach(o=>{const a=pS(o);Object.entries(a).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 p=He.find(n[u].resources,{resource:o.applyTo,type:o.type});p||(p=th(o),n[u].resources.push(p)),p.permissions=p.permissions.map(f=>({...f,checked:f.checked||c.includes(f.name)}))})}),{...t,...n}}function gS(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function LF(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:hS(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=ai.generate(),role:o,privileges:a=[]})=>({id:n,role:o,privileges:Lr(a).map(l=>{var c;return(c=Object.values(t).find(({privilege:u})=>u===l))==null?void 0:c.id}).filter(Boolean)})).reduce((n,o)=>({...n,[o.id]:{...o}}),{})}}function $F(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>Vc(n,e.privileges).reverse())].flat().filter((n,o,a)=>a.indexOf(n)===o).map(n=>e.privileges[n]);return{forceLogin:e.forceLogin||!1,restrictedByDefault:e.restrictedByDefault||!1,permissions:{allowed:Object.values(e.privileges).reduce((n,o)=>(o.resources.forEach(({permissions:a,resource:l,type:c})=>{let u=He.find(n,{applyTo:l,type:n0(c)});u||(u={applyTo:l,type:n0(c)},n.push(u)),a.forEach(({name:p,checked:g})=>{g&&u&&(u[p]=u[p]||[],u[p].push(o.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==kc).map(({id:n,includes:o,privilege:a})=>({id:n,privilege:a,includes:o.map(l=>e.privileges[l].privilege)})),roles:Object.values(e.roles).map(n=>({...n,privileges:n.privileges.map(o=>{var a;return(a=e.privileges[o])==null?void 0:a.privilege}).filter(Boolean)}))}}function zF(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function o(c,u,p=[]){const g=c.reduce((f,h)=>[...f,...t[h][u]],[]);return g.length===0?p:(p.push(g),o(g,u,p))}function a(c){const u=[],p=[];for(let g=c.length-1;g>=0;g-=1){const f=c[g].filter(h=>u.includes(h)?!1:(u.push(h),!0));f.length>0&&p.unshift(Lr(f))}return p}function l(c,u){const p=[];return c.reduce((g,f)=>(f.forEach(h=>{t[h][u==="parents"?"includes":"parents"].forEach(S=>{p.includes(S)&&g.push(u==="parents"?{source:h,target:S}:{source:S,target:h})}),p.push(h)}),g),[])}return n.children=o([e],"includes"),n.children=a(n.children),n.parents=o([e],"parents"),n.parents=a(n.parents),n.links=[...l([[e],...n.parents],"parents"),...l([[e],...n.children],"includes")],n}function jF(e,t,r){const n=zn(e,r);if(!n||He.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const o={...n,resources:[...n.resources,th(t)]};return{...r,[e]:o}}function FF(e,t,r){const n=zn(e,r);if(!n)return r;const o={...n,resources:n.resources.filter(({resource:a,type:l})=>a!==t.applyTo||l!==t.type)};return{...r,[e]:o}}function HF(e,t){const r=Object.entries(e).map(([n,o])=>{const a=zn(n,t);if(!a)return{[n]:t[n]};const l={...a,resources:a.resources.filter(({resource:c,type:u})=>!o.some(p=>p.applyTo===c&&p.type===u))};return{[n]:l}}).reduce((n,o)=>({...n,...o}),{});return{...t,...r}}function BF(e,t){const r=zn(e,t);if(!r)return t;const n={...r,resources:r.resources.filter(o=>o.permissions.some(a=>a.from.length)).map(o=>({...o,permissions:o.permissions.map(a=>({...a,checked:!1}))}))};return{...t,[e]:n}}function WF(e,t,r,n){const o=zn(e,n);if(!o)return n;const l=He.find(o.resources,{type:t.type,resource:t.resource})?{...o,resources:o.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)}:{...o,resources:[...o.resources,{...t,permissions:t.permissions.map(c=>({...c,checked:r.name===c.name,from:[]}))}]};return{...n,[e]:l}}function UF(e,t){var u;const r=vS(e,t)||[],n=((u=zn(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:p})=>[ut.DS_METHOD,ut.DATACLASS_METHOD,ut.ENTITY_METHOD,ut.ENTITY_SEL_METHOD].includes(p))||[]).map(({resource:p})=>p);return Object.entries(t).reduce((p,[g,{resources:f}])=>(f.filter(({resource:h,type:b})=>[ut.DS_METHOD,ut.DATACLASS_METHOD,ut.ENTITY_METHOD,ut.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)&&(p[b]=Lr(p[b]||[],g))}),p),{})}function vS(e,t){var l;const r=zn(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===kc))==null?void 0:l.id;return(n&&n!==e?Lr(Oc(e,t),n):Oc(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,...p})=>({...p,checked:!!u}))}))))}const qF=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},VF=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,GF=(e,t)=>{if(Bc(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,o)=>e.id===o.id?{...n,[e.id]:e}:{...n,[o.id]:o},{})};function mS(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 KF(e,t){const r=mS(e);return bS(r,t)}function ZF(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}var yS=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(yS||{}),wS=(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))(wS||{}),xS=(e=>(e.SHOW_AFTER_TIMEOUT="show_after_timeout",e.HIDE_AFTER_TIMEOUT="hide_after_timeout",e))(xS||{}),rh=(e=>(e.AIRY="airy",e.COMPACT="neutral",e))(rh||{}),SS=(e=>(e.GRID="grid",e.COMPACT="compact",e))(SS||{}),_S=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(_S||{}),ES=(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))(ES||{});const YF={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 OS={label:"Base",id:"root"},XF=["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"],JF=e=>e.id===OS.id,nh=(e,t,r="")=>t?e.type==="currentState"&&e.value===t?{...e,value:r}:e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(n=>nh(n,t,r))}:e:e;function QF(e,t){const{id:r,label:n}=t;return{...e,components:Object.entries(e.components||{}).reduce((o,[a,l])=>({...o,[a]:{...l,custom:Object.entries(l.custom).reduce((c,[u,p])=>u===`states:${r}`?c:{...c,[u]:p},{}),props:Object.entries(l.props).reduce((c,[u,p])=>{let g=p;return u==="events"&&(g=g.map(f=>{var h,b;return f.type==="simple-action"?{...f,state:{...f.state,states:(b=(h=f.state)==null?void 0:h.states)==null?void 0:b.filter(S=>S!==r)}}:f})),{...c,[u]:g}},{})}}),{}),metadata:{...e.metadata,states:e.metadata.states.filter(o=>(o==null?void 0:o.id)!==r).map(o=>o.conditions?{...o,conditions:nh(o.conditions,n)}:o)}}}const TS=(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=>TS(n,t,r))}}return e},AS=(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=>AS(n,t)).filter(Boolean);return r.length===1?{...r[0],id:e.id}:{...e,conditions:r}}return e},RS=e=>e.id?e.type==="combination"&&e.conditions?{...e,conditions:e.conditions.map(RS)}:e:{...e,id:ai.generate()};function e4(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"]===rh.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 = {}
252
+ `;case je.HTTP_HANDLERS:return[];case je.LOCALIZATION:case je.SETTINGS:return{};case je.ROLES:return{permissions:{allowed:[]},privileges:[],roles:[]};default:return""}}function t4(e,t){return He.isEqual(e,t)}function r4(e,t){const{qodly:r=!0,withExtension:n=!0}=t||{},o=K1(e.type,r);let a="";switch(e.type){case je.WEBFORM:a=`${Zr.WEBFORMS}/${e.name}`;break;case je.METHOD:a=`${Zr.METHODS}/${e.name}`;break;case je.CLASS:a=`${Zr.CLASSES}/${e.name}`;break;default:return""}return`${a}${n?`.${o}`:""}`}function CS(...e){return(...t)=>{e.forEach(r=>r==null?void 0:r(...t))}}const n4=CS;function i4(e){return e?"":void 0}function o4(e,t){if(!e)return;const r=()=>{e.focus(t)};if(t!=null&&t.nextTick){requestAnimationFrame(r);return}r()}function a4(...e){return t=>{e.forEach(r=>{if(r){if(typeof r=="function"){r(t);return}r.current=t}})}}function s4({condition:e,message:t}){!e||process.env.NODE_ENV==="production"||console.warn(t)}const l4={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function c4(e,t){return e.some(r=>String(r)===String(t))?e:[...e,t]}function u4(e){return typeof e=="object"&&e!==null&&"target"in e&&typeof e.target=="object"}function d4(e){e.preventDefault(),e.stopPropagation()}const Ot="/rest/$designer",bs="/rest/$designer-ext";function f4(...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 Gf 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 Qe(e,t){var o;Sc.next({action:as.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 a;try{const l=await r.json();((o=l==null?void 0:l.__ERROR)==null?void 0:o.some(u=>u.errCode===1651))&&Sc.next({action:as.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new Gf(e,r,l)}catch{a=new Gf(e,r)}throw a.log(),a}return await r.json()}function p4(e){return Sc.next({action:as.REQUEST_SENT}),e}var nn={},$t={},o0;function Pi(){if(o0)return $t;o0=1;var e=$t.ValidationError=function(v,y,m,w,x,k){if(Array.isArray(w)?(this.path=w,this.property=w.reduce(function(R,F){return R+c(F)},"instance")):w!==void 0&&(this.property=w),v&&(this.message=v),m){var E=m.$id||m.id;this.schema=E||m}y!==void 0&&(this.instance=y),this.name=x,this.argument=k,this.stack=this.toString()};e.prototype.toString=function(){return this.property+" "+this.message};var t=$t.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()+`
253
+ `}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),$t.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 o=$t.SchemaError=function S(v,y){this.message=v,this.schema=y,Error.call(this,v),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,S)};o.prototype=Object.create(Error.prototype,{constructor:{value:o,enumerable:!1},name:{value:"SchemaError",enumerable:!1}});var a=$t.SchemaContext=function(v,y,m,w,x){this.schema=v,this.options=y,Array.isArray(m)?(this.path=m,this.propertyPath=m.reduce(function(k,E){return k+c(E)},"instance")):this.propertyPath=m,this.base=w,this.schemas=x};a.prototype.resolve=function(v){return b(this.base,v)},a.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 k=new a(v,this.options,m,x,Object.create(this.schemas));return w&&!k.schemas[x]&&(k.schemas[x]=v),k};var l=$t.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"],$t.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=$t.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};$t.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,k){return S(v[k],y[k])});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]=f(S[m],y):S.indexOf(y)===-1&&v.push(y)}function p(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]=f(S[m],v[m]):y[m]=v[m]}function f(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(p.bind(null,S,m)),Object.keys(v).forEach(g.bind(null,S,v,m))),m}$t.deepMerge=f,$t.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")}$t.encodePath=function(v){return v.map(h).join("")},$t.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},$t.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var b=$t.resolveUrl=function(v,y){const m=new URL(y,new URL(v,"resolve://"));if(m.protocol==="resolve:"){const{pathname:w,search:x,hash:k}=m;return w+x+k}return m.toString()};return $t}var uf,a0;function h4(){if(a0)return uf;a0=1;var e=Pi(),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 o=n.validators={};o.type=function(f,h,b,S){if(f===void 0)return null;var v=new t(f,h,b,S),y=Array.isArray(h.type)?h.type:[h.type];if(!y.some(this.testType.bind(this,f,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 a(g,f,h,b,S){var v=f.throwError,y=f.throwAll;f.throwError=!1,f.throwAll=!1;var m=this.validateSchema(g,S,f,h);return f.throwError=v,f.throwAll=y,!m.valid&&b instanceof Function&&b(m),m.valid}o.anyOf=function(f,h,b,S){if(f===void 0)return null;var v=new t(f,h,b,S),y=new t(f,h,b,S);if(!Array.isArray(h.anyOf))throw new r("anyOf must be an array");if(!h.anyOf.some(a.bind(this,f,b,S,function(w){y.importErrors(w)}))){var m=h.anyOf.map(function(w,x){var k=w.$id||w.id;return k?"<"+k+">":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},o.allOf=function(f,h,b,S){if(f===void 0)return null;if(!Array.isArray(h.allOf))throw new r("allOf must be an array");var v=new t(f,h,b,S),y=this;return h.allOf.forEach(function(m,w){var x=y.validateSchema(f,m,b,S);if(!x.valid){var k=m.$id||m.id,E=k||m.title&&JSON.stringify(m.title)||m.$ref&&"<"+m.$ref+">"||"[subschema "+w+"]";v.addError({name:"allOf",argument:{id:E,length:x.errors.length,valid:x},message:"does not match allOf schema "+E+" with "+x.errors.length+" error[s]:"}),v.importErrors(x)}}),v},o.oneOf=function(f,h,b,S){if(f===void 0)return null;if(!Array.isArray(h.oneOf))throw new r("oneOf must be an array");var v=new t(f,h,b,S),y=new t(f,h,b,S),m=h.oneOf.filter(a.bind(this,f,b,S,function(x){y.importErrors(x)})).length,w=h.oneOf.map(function(x,k){var E=x.$id||x.id;return E||x.title&&JSON.stringify(x.title)||x.$ref&&"<"+x.$ref+">"||"[subschema "+k+"]"});return m!==1&&(b.nestedErrors&&v.importErrors(y),v.addError({name:"oneOf",argument:w,message:"is not exactly one from "+w.join(",")})),v},o.if=function(f,h,b,S){if(f===void 0)return null;if(!e.isSchema(h.if))throw new Error('Expected "if" keyword to be a schema');var v=a.call(this,f,b,S,null,h.if),y=new t(f,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(f,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(f,h.else,b,S.makeChild(h.else)),y.importErrors(m)}return y};function l(g,f){if(Object.hasOwnProperty.call(g,f))return g[f];if(f in g){for(;g=Object.getPrototypeOf(g);)if(Object.propertyIsEnumerable.call(g,f))return g[f]}}o.propertyNames=function(f,h,b,S){if(this.types.object(f)){var v=new t(f,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 f)if(l(f,m)!==void 0){var w=this.validateSchema(m,y,b,S.makeChild(y));v.importErrors(w)}return v}},o.properties=function(f,h,b,S){if(this.types.object(f)){var v=new t(f,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(f,m,w,b,S);var x=l(f,m),k=this.validateSchema(x,w,b,S.makeChild(w,m));k.instance!==v.instance[m]&&(v.instance[m]=k.instance),v.importErrors(k)}}return v}};function c(g,f,h,b,S,v){if(this.types.object(g)&&!(f.properties&&f.properties[S]!==void 0))if(f.additionalProperties===!1)v.addError({name:"additionalProperties",argument:S,message:"is not allowed to have the additional property "+JSON.stringify(S)});else{var y=f.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)}}o.patternProperties=function(f,h,b,S){if(this.types.object(f)){var v=new t(f,h,b,S),y=h.patternProperties||{};for(var m in f){var w=!0;for(var x in y){var k=y[x];if(k!==void 0){if(k===null)throw new r('Unexpected null, expected schema in "patternProperties"');try{var E=new RegExp(x,"u")}catch{E=new RegExp(x)}if(E.test(m)){w=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(f,m,k,b,S);var R=this.validateSchema(f[m],k,b,S.makeChild(k,m));R.instance!==v.instance[m]&&(v.instance[m]=R.instance),v.importErrors(R)}}}w&&c.call(this,f,h,b,S,m,v)}return v}},o.additionalProperties=function(f,h,b,S){if(this.types.object(f)){if(h.patternProperties)return null;var v=new t(f,h,b,S);for(var y in f)c.call(this,f,h,b,S,y,v);return v}},o.minProperties=function(f,h,b,S){if(this.types.object(f)){var v=new t(f,h,b,S),y=Object.keys(f);return y.length>=h.minProperties||v.addError({name:"minProperties",argument:h.minProperties,message:"does not meet minimum property length of "+h.minProperties}),v}},o.maxProperties=function(f,h,b,S){if(this.types.object(f)){var v=new t(f,h,b,S),y=Object.keys(f);return y.length<=h.maxProperties||v.addError({name:"maxProperties",argument:h.maxProperties,message:"does not meet maximum property length of "+h.maxProperties}),v}},o.items=function(f,h,b,S){var v=this;if(this.types.array(f)&&h.items!==void 0){var y=new t(f,h,b,S);return f.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 k=v.validateSchema(m,x,b,S.makeChild(x,w));return k.instance!==y.instance[w]&&(y.instance[w]=k.instance),y.importErrors(k),!0}),y}},o.contains=function(f,h,b,S){var v=this;if(this.types.array(f)&&h.contains!==void 0){if(!e.isSchema(h.contains))throw new Error('Expected "contains" keyword to be a schema');var y=new t(f,h,b,S),m=f.some(function(w,x){var k=v.validateSchema(w,h.contains,b,S.makeChild(h.contains,x));return k.errors.length===0});return m===!1&&y.addError({name:"contains",argument:h.contains,message:"must contain an item matching given schema"}),y}},o.minimum=function(f,h,b,S){if(this.types.number(f)){var v=new t(f,h,b,S);return h.exclusiveMinimum&&h.exclusiveMinimum===!0?f>h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than "+h.minimum}):f>=h.minimum||v.addError({name:"minimum",argument:h.minimum,message:"must be greater than or equal to "+h.minimum}),v}},o.maximum=function(f,h,b,S){if(this.types.number(f)){var v=new t(f,h,b,S);return h.exclusiveMaximum&&h.exclusiveMaximum===!0?f<h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than "+h.maximum}):f<=h.maximum||v.addError({name:"maximum",argument:h.maximum,message:"must be less than or equal to "+h.maximum}),v}},o.exclusiveMinimum=function(f,h,b,S){if(typeof h.exclusiveMinimum!="boolean"&&this.types.number(f)){var v=new t(f,h,b,S),y=f>h.exclusiveMinimum;return y||v.addError({name:"exclusiveMinimum",argument:h.exclusiveMinimum,message:"must be strictly greater than "+h.exclusiveMinimum}),v}},o.exclusiveMaximum=function(f,h,b,S){if(typeof h.exclusiveMaximum!="boolean"&&this.types.number(f)){var v=new t(f,h,b,S),y=f<h.exclusiveMaximum;return y||v.addError({name:"exclusiveMaximum",argument:h.exclusiveMaximum,message:"must be strictly less than "+h.exclusiveMaximum}),v}};var u=function(f,h,b,S,v,y){if(this.types.number(f)){var m=h[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(f,h,b,S),x=e.getDecimalPlaces(f),k=e.getDecimalPlaces(m),E=Math.max(x,k),R=Math.pow(10,E);return Math.round(f*R)%Math.round(m*R)!==0&&w.addError({name:v,argument:m,message:y+JSON.stringify(m)}),w}};o.multipleOf=function(f,h,b,S){return u.call(this,f,h,b,S,"multipleOf","is not a multiple of (divisible by) ")},o.divisibleBy=function(f,h,b,S){return u.call(this,f,h,b,S,"divisibleBy","is not divisible by (multiple of) ")},o.required=function(f,h,b,S){var v=new t(f,h,b,S);return f===void 0&&h.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(f)&&Array.isArray(h.required)&&h.required.forEach(function(y){l(f,y)===void 0&&v.addError({name:"required",argument:y,message:"requires property "+JSON.stringify(y)})}),v},o.pattern=function(f,h,b,S){if(this.types.string(f)){var v=new t(f,h,b,S),y=h.pattern;try{var m=new RegExp(y,"u")}catch{m=new RegExp(y)}return f.match(m)||v.addError({name:"pattern",argument:h.pattern,message:"does not match pattern "+JSON.stringify(h.pattern.toString())}),v}},o.format=function(f,h,b,S){if(f!==void 0){var v=new t(f,h,b,S);return!v.disableFormat&&!e.isFormat(f,h.format,this)&&v.addError({name:"format",argument:h.format,message:"does not conform to the "+JSON.stringify(h.format)+" format"}),v}},o.minLength=function(f,h,b,S){if(this.types.string(f)){var v=new t(f,h,b,S),y=f.match(/[\uDC00-\uDFFF]/g),m=f.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}},o.maxLength=function(f,h,b,S){if(this.types.string(f)){var v=new t(f,h,b,S),y=f.match(/[\uDC00-\uDFFF]/g),m=f.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}},o.minItems=function(f,h,b,S){if(this.types.array(f)){var v=new t(f,h,b,S);return f.length>=h.minItems||v.addError({name:"minItems",argument:h.minItems,message:"does not meet minimum length of "+h.minItems}),v}},o.maxItems=function(f,h,b,S){if(this.types.array(f)){var v=new t(f,h,b,S);return f.length<=h.maxItems||v.addError({name:"maxItems",argument:h.maxItems,message:"does not meet maximum length of "+h.maxItems}),v}};function p(g,f,h){var b,S=h.length;for(b=f+1,S;b<S;b++)if(e.deepCompareStrict(g,h[b]))return!1;return!0}return o.uniqueItems=function(f,h,b,S){if(h.uniqueItems===!0&&this.types.array(f)){var v=new t(f,h,b,S);return f.every(p)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},o.dependencies=function(f,h,b,S){if(this.types.object(f)){var v=new t(f,h,b,S);for(var y in h.dependencies)if(f[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(k){f[k]===void 0&&v.addError({name:"dependencies",argument:w.propertyPath,message:"property "+k+" not found, required by "+w.propertyPath})});else{var x=this.validateSchema(f,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}},o.enum=function(f,h,b,S){if(f===void 0)return null;if(!Array.isArray(h.enum))throw new r("enum expects an array",h);var v=new t(f,h,b,S);return h.enum.some(e.deepCompareStrict.bind(null,f))||v.addError({name:"enum",argument:h.enum,message:"is not one of enum values: "+h.enum.map(String).join(",")}),v},o.const=function(f,h,b,S){if(f===void 0)return null;var v=new t(f,h,b,S);return e.deepCompareStrict(h.const,f)||v.addError({name:"const",argument:h.const,message:"does not exactly match expected constant: "+h.const}),v},o.not=o.disallow=function(f,h,b,S){var v=this;if(f===void 0)return null;var y=new t(f,h,b,S),m=h.not||h.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(f,h,b,S,w)){var x=w&&(w.$id||w.id),k=x||w;y.addError({name:"not",argument:k,message:"is of prohibited type "+k})}}),y):null},uf=n,uf}var Fl={},s0;function Kf(){if(s0)return Fl;s0=1;var e=Pi();Fl.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return Fl.scan=function(n,o){function a(g,f){if(!f||typeof f!="object")return;if(f.$ref){let v=e.resolveUrl(g,f.$ref);p[v]=p[v]?p[v]+1:0;return}var h=f.$id||f.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],f))throw new Error("Schema <"+S+"> already exists with different definition");return u[S]}u[S]=f,S[S.length-1]=="#"&&(u[S.substring(0,S.length-1)]=f)}l(S+"/items",Array.isArray(f.items)?f.items:[f.items]),l(S+"/extends",Array.isArray(f.extends)?f.extends:[f.extends]),a(S+"/additionalItems",f.additionalItems),c(S+"/properties",f.properties),a(S+"/additionalProperties",f.additionalProperties),c(S+"/definitions",f.definitions),c(S+"/patternProperties",f.patternProperties),c(S+"/dependencies",f.dependencies),l(S+"/disallow",f.disallow),l(S+"/allOf",f.allOf),l(S+"/anyOf",f.anyOf),l(S+"/oneOf",f.oneOf),a(S+"/not",f.not)}function l(g,f){if(Array.isArray(f))for(var h=0;h<f.length;h++)a(g+"/"+h,f[h])}function c(g,f){if(!(!f||typeof f!="object"))for(var h in f)a(g+"/"+h,f[h])}var u={},p={};return a(n,o),new t(u,p)},Fl}var df,l0;function g4(){if(l0)return df;l0=1;var e=h4(),t=Pi(),r=Kf().scan,n=t.ValidatorResult,o=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",u=function f(){this.customFormats=Object.create(f.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 a("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 k=w.id[x];v.schemas[x]=k}}if(S.required&&h===void 0){var E=new n(h,b,S,v);return E.addError("is required, but is undefined"),E}var E=this.validateSchema(h,b,S,v);if(E){if(S.throwAll&&E.errors.length)throw new o(E)}else throw new Error("Result undefined");return E};function p(f){var h=typeof f=="string"?f:f.$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=p(b);if(w){var x=this.resolve(b,w,v),k=new l(x.subschema,S,v.path,x.switchSchema,v.schemas);return this.validateSchema(h,x.subschema,S,k)}var E=S&&S.skipAttributes||[];for(var R in b)if(!e.ignoreProperties[R]&&E.indexOf(R)<0){var F=null,P=this.attributes[R];if(P)F=P.call(this,h,b,S,v);else if(S.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+R,b);F&&y.importErrors(F)}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=p(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 a("no such schema <"+b+">",h);var w=t.objectGetPath(S.schemas[m],y.substr(1));if(w===void 0)throw new a("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 a('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)},df=u,df}var c0;function v4(){if(c0)return nn;c0=1;var e=nn.Validator=g4();return nn.ValidatorResult=Pi().ValidatorResult,nn.ValidatorResultError=Pi().ValidatorResultError,nn.ValidationError=Pi().ValidationError,nn.SchemaError=Pi().SchemaError,nn.SchemaScanResult=Kf().SchemaScanResult,nn.scan=Kf().scan,nn.validate=function(t,r,n){var o=new e;return o.validate(t,r,n)},nn}var m4=v4();const ls="/$shared",b4={"**/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 PS(e){const t=Object.entries(b4).find(([r])=>Ft(e,r));return t==null?void 0:t[1]}function Gc(e){var n;const t=(n=PS(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${ls}/`,"Shared/");ih({name:r,content:t,asText:typeof t=="string"})}async function y4(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Qe(`${ls}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){IS(r)&&Gc(`${ls}/${t}`)}}function ys({path:e,createIfNotExists:t=!1}){const r=`${ls}/${e}`;return Qe(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const o=PS(e);let a=n;if(!o)return a;if(typeof a=="string")try{switch(o.parser){case"json":a=JSON.parse(a);break;default:break}}catch{throw new Error("Cannot parse")}if(o.schema&&!new m4.Validator().validate(a,o.schema).valid)throw new Error("Invalid Schema");return a}).catch(n=>{if(IS(n)&&t){const o=w4(n,e);jp.next({message:o,kind:"warning"}),Gc(r)}throw n})}function IS(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 w4(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 x4(e){return Qe(bs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function S4(e){return Qe(bs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const NS=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:qp.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function _4(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const o=await Qe(Ot,{method:"POST",body:JSON.stringify({verb:li.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(o.rendererPath)return o.rendererPath;const l=`http://${e}:${o.webServerHTTPPort}`,c=`https://${e}:${o.webServerHTTPSPort}`;return o.webServerHTTPPort&&o.webServerHTTPSPort?n?c:l:o.webServerHTTPPort?l:c})();return{projectOpened:o.webServerHTTPSPort>0||o.webServerHTTPPort>0,remoteDebuggerMode:o.remoteDebuggerMode,baseUrl:a,qodly:typeof o.qodly>"u"?!0:o.qodly,urls:{renderer:o.rendererPath||`${a}/$lib/renderer/`,debugger:`ws${n?"s":""}://${t}/remoteDebugger`,lsp:`ws${n?"s":""}://${t}/LSP`},isRestActive:o.isRESTActive}}catch(o){return console.error(o),NS()}}async function DS(e){return await Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function E4(...e){return(await Promise.all(e.map(n=>DS({root:n,verb:li.GET_FOLDER})))).map(({children:n})=>n.map(({name:o,date:a,type:l})=>({name:o,type:l,date:a,path:`${l}/${o}`}))).flat()}function k4(e,t={}){const{sanitize:r=!0}=t;return Qe(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const o=new Map;return{...n,components:He.entries(n.components).map(([a,l])=>{const c=a,{resolvedName:u}=l.type;if(u==="WebformLoader"){const p=ai.generate();o.set(a,p),a=p}return[a,l,c]}).reduce((a,[l,c,u])=>{var p;return c.nodes&&(c.nodes=c.nodes.map(g=>o.get(g)||g)),c.linkedNodes&&(c.linkedNodes=He.entries(c.linkedNodes).reduce((g,[f,h])=>({...g,[f]:o.get(h)||h}),{})),(p=c.props)!=null&&p.events&&(c.props.events=c.props.events.map(g=>(g.type==="navigation"&&g.loader&&(g.loader=o.get(g.loader)||g.loader),g))),{...a,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function O4(e){return Qe(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)?Wc(t.content):t.content}))}function T4(e){return e.type==="folder"?Qe(bs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function A4(e){return e.type==="folder"?(await Qe(bs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function R4(e){return Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function C4(e){return Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function P4(e){return(await Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function I4(...e){return await Qe(Ot,{method:"POST",body:JSON.stringify({verb:li.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function N4(e){const t=await Qe("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function D4(){return await Qe("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function M4(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:o}=JSON.parse(n);return o}catch{return[]}}async function L4({name:e,path:t="",root:r="root",asText:n=!1}){return Qe(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 $4(e={}){try{return{...await ys({path:"shared_datasources.json",...e}),...Ec}}catch{return{...Ec}}}async function z4(e={}){try{return await ys({path:"shared_app_events.json",...e})}catch{return[]}}async function j4(e={}){try{return await ys({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function F4(e={}){try{return await ys({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function H4(){try{return await Qe("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function B4(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const W4=Xp(),U4=async e=>{const t={verb:li.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:He.omit(e,He.keys(Ec))};return W4(()=>Qe(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},q4=Xp(),V4=async e=>{const t={verb:li.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return q4(()=>Qe(Ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},ih=async e=>{const t=await Qe(Ot,{method:"POST",body:JSON.stringify({...e,verb:li.SET_FILE_CONTENT,root:Up.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Yp(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},G4=async e=>await ih({name:"crafted_components.json",path:Zr.WEBFORMS,content:e});function K4(e){return Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Z4(e){return Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Y4(e){return Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function X4(e){return Qe(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)?Wc(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&&Gc(e.path),t})}function J4(e){return Qe(Ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function Q4(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function e6(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 t6(e){const t=Q4(e).split(/[;,]/g).filter(Boolean).map(o=>{const a=o.split(":")[0].trim(),l=o.split(":")[1].trim();return{name:a,type:l}}),r=e6(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function r6(e,t){const n=e.split(".").pop();try{const o=await Qe(Ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});o.content=Wc(o.content);const{params:a,result:l}=t6(o.parameters);return{...o,params:a,returns:l}}catch(o){return console.error(o),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var MS=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(MS||{});function n6(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function i6(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}const o6={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},a6={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},LS=M.createContext(void 0),s6=M.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const n=M.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return T.jsx(LS.Provider,{value:n,children:e})});function l6(){const e=M.useContext(LS);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}const $S=M.createContext(null),c6=5e3,u6={top:"top-4",bottom:"bottom-4"};function d6({children:e}){const[t,r]=M.useState([]),n=M.useRef(0),o=M.useCallback(c=>{r(u=>u.filter(p=>p.id!==c))},[]),a=M.useCallback((c,u)=>{const p=++n.current,g={id:p,containerStyle:u==null?void 0:u.containerStyle,duration:c.duration??c6,position:c.position??"bottom",render:c.render};return r(f=>[...f,g]),p},[]);M.useEffect(()=>{const c=jp.subscribe(u=>{a({position:"bottom",render:({onClose:p})=>T.jsx(D0,{...u,onClose:p})})});return()=>{c.unsubscribe()}},[a]);const l=M.useMemo(()=>({pushToast:a,removeToast:o}),[a,o]);return T.jsxs($S.Provider,{value:l,children:[e,typeof document<"u"?$n.createPortal(T.jsx(T.Fragment,{children:["top","bottom"].map(c=>{const u=t.filter(p=>p.position===c);return u.length===0?null:T.jsx("div",{className:`pointer-events-none fixed inset-x-4 z-[2147483647] flex flex-col items-center gap-3 ${u6[c]}`,children:u.map(p=>T.jsx(f6,{toast:p,onClose:()=>o(p.id)},p.id))},c)})}),document.body):null]})}function f6({toast:e,onClose:t}){return M.useEffect(()=>{if(e.duration===null)return;const r=window.setTimeout(t,e.duration);return()=>window.clearTimeout(r)},[t,e.duration]),T.jsx("div",{className:"pointer-events-auto",style:e.containerStyle,children:e.render({onClose:t})})}function p6(e){const t=M.useContext($S);if(!t)throw new Error("useToast must be used within a ToastProvider");return M.useCallback(r=>t.pushToast(r,e),[t,e])}exports.API_PREFIX=Ot;exports.AppLoader=z5;exports.BaseCheckboxIcon=a1;exports.Checkbox=yz;exports.DATASOURCE_THEMES=o6;exports.DatasourcesActions=E1;exports.DebuggerActions=T1;exports.DefaultCheckboxIcon=s1;exports.DesignerRequestVerb=li;exports.Dialog=xP;exports.DialogBody=E0;exports.EActivity=MS;exports.ECustomStylePropsViewMode=SS;exports.EDITOR=a6;exports.EDisplayMode=rh;exports.EIDENTIFIERS=ES;exports.EPermissionType=Je;exports.ERROR_CODES=kS;exports.ESetting=wS;exports.ESubPermissionType=ut;exports.ETooltipBehavior=xS;exports.EWebFormStyleClassScope=yS;exports.EXT_API_PREFIX=bs;exports.FileFolderType=je;exports.FolderRootPath=Zr;exports.FolderRootType=Up;exports.Grid=_z;exports.GridItem=Ez;exports.HTTPError=Gf;exports.HTTP_HANDLERS_TAB_PATH=Kp;exports.IPreemptive=ss;exports.IPublished=sS;exports.IPublishedRestScope=Qp;exports.IdentityProvider=Uz;exports.Image=l1;exports.Incase=Xl;exports.IndentLines=j0;exports.InvalidJsonError=Sz;exports.LOCALIZATION_TAB_PATH=Zp;exports.LOCATION_DATASOURCE_ID=iS;exports.LogoSVG=qx;exports.LspActions=O1;exports.MAX_FILE_NAME_LENGTH=Fp;exports.MODEL_TAB_PATH=V1;exports.Modal=pz;exports.ModalCloseReason=yo;exports.ModalColor=_o;exports.ModalIcons=Nf;exports.ModalType=Pp;exports.Mutex=Z1;exports.NameError=Hp;exports.Overlay=_0;exports.PANEL_COLLAPSED_HEIGHT=sn;exports.PANEL_INITIAL_OPEN_RATIO=n1;exports.PANEL_MAX_RATIO=i1;exports.PERMISSIONS=eh;exports.Panel=bz;exports.PopperTooltip=L5;exports.Portal=f0;exports.PublishOptions=_F;exports.QODLY_NAMESPACE=Ha;exports.ROLES_TAB_PATH=Vp;exports.ROOT_WEBFORM_STATE=OS;exports.RemoteDebuggerMode=qp;exports.SETTINGS_TAB_PATH=Gp;exports.SHARED_API_PREFIX=ls;exports.SHARED_USER_NAMESPACE=Ec;exports.SearchInput=xz;exports.SimpleGrid=kz;exports.SourceCodeDescriptor=_S;exports.StudioContextProvider=s6;exports.Switcher=F0;exports.THEME_CLASSES=XF;exports.TITLE_DATASOURCE_ID=aS;exports.TabEventsActions=k1;exports.Tip=Px;exports.TipsProvider=F$;exports.Toast=D0;exports.ToastProvider=d6;exports.ToolbarIcon=wz;exports.Tooltip=M5;exports.Tree=CM;exports.TreeIcon=M0;exports.TreeNode=op;exports.USER_LANGUAGE_DATASOURCE_ID=oS;exports.WT_FLAGS_KEYS=YF;exports.WebformActions=_1;exports.WebformEventsActions=as;exports.ZoomComponent=vz;exports.ZoomLevel=r1;exports._isArrayDatasource=mF;exports._isObjectDatasource=bF;exports.actionsToPrivs=pS;exports.addAttributesToContent=kF;exports.addFolder=R4;exports.addItem=c4;exports.addPermission=jF;exports.addPrivilegeIn=PF;exports.allowed=RF;exports.by=Y1;exports.byId=tF;exports.byPath=rF;exports.callAll=CS;exports.callAllHandlers=n4;exports.callServerSideParser=p4;exports.checkUpdates=x4;exports.children=Oc;exports.createFolder=K4;exports.createPrivilege=NF;exports.createRole=qF;exports.dataAttr=i4;exports.datasourcesSubject=Cj;exports.debuggerSubject=Dj;exports.deepDeleteCondition=AS;exports.deepSanitizeCondition=RS;exports.dropFile=A4;exports.dropFolder=P4;exports.editors=G1;exports.exists=nF;exports.extractWebformName=Y3;exports.filterBySeriousError=bS;exports.focus=o4;exports.formatErrorsAsBulletToast=ZF;exports.generateUUID=Vf;exports.getAppSettings=_4;exports.getCashedPrefrences=iF;exports.getCatalog=D4;exports.getDatasourceId=oF;exports.getDefaultAppSettings=NS;exports.getDefaultContent=e4;exports.getDictByName=gS;exports.getDisplayableFeedbackErrors=KF;exports.getEditors=Z3;exports.getErrorListFromPayload=mS;exports.getFile=O4;exports.getFileContent=L4;exports.getFileExtentionFromType=K1;exports.getFilePath=r4;exports.getFilenameAndTypeFromPath=K3;exports.getFilenameFromType=X3;exports.getFilesInfo=I4;exports.getFolder=DS;exports.getFolders=E4;exports.getFunctionContent=r6;exports.getGraphData=zF;exports.getInheritedResources=vS;exports.getMonacoTheme=B4;exports.getNodeInfo=X4;exports.getPrivilegeById=zn;exports.getPromotions=UF;exports.getResourceFromType=th;exports.getSavedConditions=F4;exports.getSharedAppEvents=z4;exports.getSharedCSS=j4;exports.getSharedDatasources=$4;exports.getSharedResource=ys;exports.getSupportedLanguages=M4;exports.getTypeFromExtension=Yp;exports.getUserPrivileges=H4;exports.getWebForm=k4;exports.hasAttributesString=cS;exports.http=Qe;exports.i18nSubject=Lj;exports.initializeDefaultProjectFiles=y4;exports.installUpdates=S4;exports.isArrayDatasource=tS;exports.isBaseState=JF;exports.isDataClassMethod=cF;exports.isDataStoreMethod=lF;exports.isDateDatasource=yF;exports.isEntity=gF;exports.isEntityDatasource=fF;exports.isEntityMethod=uF;exports.isEntitySelection=vF;exports.isEntitySelectionDatasource=pF;exports.isEntitySelectionMethod=dF;exports.isInputEvent=u4;exports.isObjectAttribute=aF;exports.isObjectDatasource=rS;exports.isRelatedAttribute=sF;exports.isRelatedEntitiesAttribute=Q1;exports.isRelatedEntityAttribute=eS;exports.isSameNamespace=wF;exports.isScalarDatasource=nS;exports.isSimpleAttribute=J1;exports.isSimpleDatasource=hF;exports.loadDS=xF;exports.loadI18n=SF;exports.localeCompare=X1;exports.log=n6;exports.login=N4;exports.lspSubject=Nj;exports.mergeRefs=a4;exports.moveItem=Y4;exports.outBy=Q3;exports.outById=eF;exports.parents=Vc;exports.parseAttributes=EF;exports.parseCatalog=OF;exports.populateShallow=MF;exports.queue=Xp;exports.refactorConditions=nh;exports.refactorWebform=QF;exports.removeAttributesString=uS;exports.removeItem=Z4;exports.removeMultiplePermissions=HF;exports.removePermission=FF;exports.removePrivilege=CF;exports.removePrivilegeFrom=IF;exports.removeRole=VF;exports.renameFile=T4;exports.renameFolder=C4;exports.renamePrivilege=DF;exports.resetResources=BF;exports.rolesToAPI=$F;exports.sanitizeContent=Wc;exports.sanitizeNameCY=TF;exports.sanitizePermissions=hS;exports.sanitizePrivileges=dS;exports.sanitizeRoles=LF;exports.saveContent=J4;exports.saveRole=GF;exports.selectorEqualityFn=t4;exports.setCraftedComponents=G4;exports.setFileContent=ih;exports.setSharedAppEvents=V4;exports.setSharedSources=U4;exports.sortPrivileges=fS;exports.splitDatasourceID=Jp;exports.stopEvent=d4;exports.stringifyAttributes=lS;exports.tabEventsSubject=Ij;exports.tasksManagerSubject=Mj;exports.toastSubject=jp;exports.togglePermission=WF;exports.trackEvent=i6;exports.transformDates=f4;exports.tryCreateSharedResource=Gc;exports.uniquePush=Lr;exports.updateDsCondition=TS;exports.useBoolean=fj;exports.useCallbackRef=pj;exports.useControllableProp=b1;exports.useControllableState=hj;exports.useDidMountEffect=Oz;exports.useDoubleClick=Kz;exports.useDsChangeRenderer=dj;exports.useDsRendererAdapter=uj;exports.useEnhancedState=cj;exports.useFeatureFlags=Wz;exports.useFormControlProps=mj;exports.useForwardedRef=Bz;exports.useHotkeys=zz;exports.useIdentity=qz;exports.useOutsideClick=jz;exports.usePrevious=Fz;exports.useSafeLayoutEffect=gj;exports.useStateObject=Vz;exports.useStateRef=Hz;exports.useStudioContext=l6;exports.useTip=Cx;exports.useToast=p6;exports.useUpdateEffect=vj;exports.validateName=Bc;exports.validateServerSide=$j;exports.validateValue=zj;exports.visuallyHiddenStyle=l4;exports.warn=s4;exports.webformEventsSubject=Sc;exports.webformSubject=Pj;
208
254
  //# sourceMappingURL=index.cjs.js.map