@ws-ui/shared 1.11.11 → 1.11.12-rc13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,157 +1,201 @@
1
- "use strict";var xO=Object.defineProperty;var uh=e=>{throw TypeError(e)};var SO=(e,t,r)=>t in e?xO(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var ve=(e,t,r)=>SO(e,typeof t!="symbol"?t+"":t,r),vl=(e,t,r)=>t.has(e)||uh("Cannot "+r);var re=(e,t,r)=>(vl(e,t,"read from private field"),r?r.call(e):t.get(e)),xt=(e,t,r)=>t.has(e)?uh("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Qe=(e,t,r,i)=>(vl(e,t,"write to private field"),i?i.call(e,r):t.set(e,r),r),$e=(e,t,r)=>(vl(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const M=require("react/jsx-runtime"),W=require("react"),Do=require("react-dom"),et=require("@ws-ui/icons"),uc=require("@emotion/react"),EO=require("re-resizable");function Um(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 $=Um(W),_O=Um(Do),Bm=({children:e,container:t=document.body})=>Do.createPortal(e,t);var lh=function(t){return t.reduce(function(r,i){var s=i[0],a=i[1];return r[s]=a,r},{})},ch=typeof window<"u"&&window.document&&window.document.createElement?$.useLayoutEffect:$.useEffect,It="top",or="bottom",sr="right",Lt="left",Mc="auto",No=[It,or,sr,Lt],vi="start",Ao="end",OO="clippingParents",Hm="viewport",Ui="popper",AO="reference",fh=No.reduce(function(e,t){return e.concat([t+"-"+vi,t+"-"+Ao])},[]),qm=[].concat(No,[Mc]).reduce(function(e,t){return e.concat([t,t+"-"+vi,t+"-"+Ao])},[]),TO="beforeRead",RO="read",PO="afterRead",CO="beforeMain",kO="main",$O="afterMain",IO="beforeWrite",LO="write",MO="afterWrite",FO=[TO,RO,PO,CO,kO,$O,IO,LO,MO];function Pr(e){return e?(e.nodeName||"").toLowerCase():null}function Ht(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Wn(e){var t=Ht(e).Element;return e instanceof t||e instanceof Element}function ir(e){var t=Ht(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fc(e){if(typeof ShadowRoot>"u")return!1;var t=Ht(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function DO(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];!ir(a)||!Pr(a)||(Object.assign(a.style,i),Object.keys(s).forEach(function(l){var c=s[l];c===!1?a.removeAttribute(l):a.setAttribute(l,c===!0?"":c)}))})}function NO(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]||{},l=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:r[i]),c=l.reduce(function(f,v){return f[v]="",f},{});!ir(s)||!Pr(s)||(Object.assign(s.style,c),Object.keys(a).forEach(function(f){s.removeAttribute(f)}))})}}const jO={name:"applyStyles",enabled:!0,phase:"write",fn:DO,effect:NO,requires:["computeStyles"]};function Tr(e){return e.split("-")[0]}var jn=Math.max,ga=Math.min,yi=Math.round;function lc(){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 Zm(){return!/^((?!chrome|android).)*safari/i.test(lc())}function bi(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),s=1,a=1;t&&ir(e)&&(s=e.offsetWidth>0&&yi(i.width)/e.offsetWidth||1,a=e.offsetHeight>0&&yi(i.height)/e.offsetHeight||1);var l=Wn(e)?Ht(e):window,c=l.visualViewport,f=!Zm()&&r,v=(i.left+(f&&c?c.offsetLeft:0))/s,m=(i.top+(f&&c?c.offsetTop:0))/a,g=i.width/s,p=i.height/a;return{width:g,height:p,top:m,right:v+g,bottom:m+p,left:v,x:v,y:m}}function Dc(e){var t=bi(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 Gm(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Fc(r)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Gr(e){return Ht(e).getComputedStyle(e)}function zO(e){return["table","td","th"].indexOf(Pr(e))>=0}function mn(e){return((Wn(e)?e.ownerDocument:e.document)||window.document).documentElement}function ka(e){return Pr(e)==="html"?e:e.assignedSlot||e.parentNode||(Fc(e)?e.host:null)||mn(e)}function dh(e){return!ir(e)||Gr(e).position==="fixed"?null:e.offsetParent}function WO(e){var t=/firefox/i.test(lc()),r=/Trident/i.test(lc());if(r&&ir(e)){var i=Gr(e);if(i.position==="fixed")return null}var s=ka(e);for(Fc(s)&&(s=s.host);ir(s)&&["html","body"].indexOf(Pr(s))<0;){var a=Gr(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 jo(e){for(var t=Ht(e),r=dh(e);r&&zO(r)&&Gr(r).position==="static";)r=dh(r);return r&&(Pr(r)==="html"||Pr(r)==="body"&&Gr(r).position==="static")?t:r||WO(e)||t}function Nc(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function xo(e,t,r){return jn(e,ga(t,r))}function UO(e,t,r){var i=xo(e,t,r);return i>r?r:i}function Km(){return{top:0,right:0,bottom:0,left:0}}function Vm(e){return Object.assign({},Km(),e)}function Ym(e,t){return t.reduce(function(r,i){return r[i]=e,r},{})}var BO=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Vm(typeof t!="number"?t:Ym(t,No))};function HO(e){var t,r=e.state,i=e.name,s=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=Tr(r.placement),f=Nc(c),v=[Lt,sr].indexOf(c)>=0,m=v?"height":"width";if(!(!a||!l)){var g=BO(s.padding,r),p=Dc(a),b=f==="y"?It:Lt,x=f==="y"?or:sr,d=r.rects.reference[m]+r.rects.reference[f]-l[f]-r.rects.popper[m],w=l[f]-r.rects.reference[f],h=jo(a),S=h?f==="y"?h.clientHeight||0:h.clientWidth||0:0,E=d/2-w/2,R=g[b],O=S-p[m]-g[x],k=S/2-p[m]/2+E,U=xo(R,k,O),F=f;r.modifiersData[i]=(t={},t[F]=U,t.centerOffset=U-k,t)}}function qO(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)||Gm(t.elements.popper,s)&&(t.elements.arrow=s))}const ZO={name:"arrow",enabled:!0,phase:"main",fn:HO,effect:qO,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function wi(e){return e.split("-")[1]}var GO={top:"auto",right:"auto",bottom:"auto",left:"auto"};function KO(e,t){var r=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:yi(r*s)/s||0,y:yi(i*s)/s||0}}function ph(e){var t,r=e.popper,i=e.popperRect,s=e.placement,a=e.variation,l=e.offsets,c=e.position,f=e.gpuAcceleration,v=e.adaptive,m=e.roundOffsets,g=e.isFixed,p=l.x,b=p===void 0?0:p,x=l.y,d=x===void 0?0:x,w=typeof m=="function"?m({x:b,y:d}):{x:b,y:d};b=w.x,d=w.y;var h=l.hasOwnProperty("x"),S=l.hasOwnProperty("y"),E=Lt,R=It,O=window;if(v){var k=jo(r),U="clientHeight",F="clientWidth";if(k===Ht(r)&&(k=mn(r),Gr(k).position!=="static"&&c==="absolute"&&(U="scrollHeight",F="scrollWidth")),k=k,s===It||(s===Lt||s===sr)&&a===Ao){R=or;var D=g&&k===O&&O.visualViewport?O.visualViewport.height:k[U];d-=D-i.height,d*=f?1:-1}if(s===Lt||(s===It||s===or)&&a===Ao){E=sr;var G=g&&k===O&&O.visualViewport?O.visualViewport.width:k[F];b-=G-i.width,b*=f?1:-1}}var j=Object.assign({position:c},v&&GO),L=m===!0?KO({x:b,y:d},Ht(r)):{x:b,y:d};if(b=L.x,d=L.y,f){var B;return Object.assign({},j,(B={},B[R]=S?"0":"",B[E]=h?"0":"",B.transform=(O.devicePixelRatio||1)<=1?"translate("+b+"px, "+d+"px)":"translate3d("+b+"px, "+d+"px, 0)",B))}return Object.assign({},j,(t={},t[R]=S?d+"px":"",t[E]=h?b+"px":"",t.transform="",t))}function VO(e){var t=e.state,r=e.options,i=r.gpuAcceleration,s=i===void 0?!0:i,a=r.adaptive,l=a===void 0?!0:a,c=r.roundOffsets,f=c===void 0?!0:c,v={placement:Tr(t.placement),variation:wi(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,ph(Object.assign({},v,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:f})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,ph(Object.assign({},v,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:f})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const YO={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:VO,data:{}};var Ds={passive:!0};function XO(e){var t=e.state,r=e.instance,i=e.options,s=i.scroll,a=s===void 0?!0:s,l=i.resize,c=l===void 0?!0:l,f=Ht(t.elements.popper),v=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&v.forEach(function(m){m.addEventListener("scroll",r.update,Ds)}),c&&f.addEventListener("resize",r.update,Ds),function(){a&&v.forEach(function(m){m.removeEventListener("scroll",r.update,Ds)}),c&&f.removeEventListener("resize",r.update,Ds)}}const JO={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:XO,data:{}};var QO={left:"right",right:"left",bottom:"top",top:"bottom"};function oa(e){return e.replace(/left|right|bottom|top/g,function(t){return QO[t]})}var eA={start:"end",end:"start"};function hh(e){return e.replace(/start|end/g,function(t){return eA[t]})}function jc(e){var t=Ht(e),r=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:r,scrollTop:i}}function zc(e){return bi(mn(e)).left+jc(e).scrollLeft}function tA(e,t){var r=Ht(e),i=mn(e),s=r.visualViewport,a=i.clientWidth,l=i.clientHeight,c=0,f=0;if(s){a=s.width,l=s.height;var v=Zm();(v||!v&&t==="fixed")&&(c=s.offsetLeft,f=s.offsetTop)}return{width:a,height:l,x:c+zc(e),y:f}}function rA(e){var t,r=mn(e),i=jc(e),s=(t=e.ownerDocument)==null?void 0:t.body,a=jn(r.scrollWidth,r.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),l=jn(r.scrollHeight,r.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),c=-i.scrollLeft+zc(e),f=-i.scrollTop;return Gr(s||r).direction==="rtl"&&(c+=jn(r.clientWidth,s?s.clientWidth:0)-a),{width:a,height:l,x:c,y:f}}function Wc(e){var t=Gr(e),r=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+s+i)}function Xm(e){return["html","body","#document"].indexOf(Pr(e))>=0?e.ownerDocument.body:ir(e)&&Wc(e)?e:Xm(ka(e))}function So(e,t){var r;t===void 0&&(t=[]);var i=Xm(e),s=i===((r=e.ownerDocument)==null?void 0:r.body),a=Ht(i),l=s?[a].concat(a.visualViewport||[],Wc(i)?i:[]):i,c=t.concat(l);return s?c:c.concat(So(ka(l)))}function cc(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function nA(e,t){var r=bi(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 gh(e,t,r){return t===Hm?cc(tA(e,r)):Wn(t)?nA(t,r):cc(rA(mn(e)))}function iA(e){var t=So(ka(e)),r=["absolute","fixed"].indexOf(Gr(e).position)>=0,i=r&&ir(e)?jo(e):e;return Wn(i)?t.filter(function(s){return Wn(s)&&Gm(s,i)&&Pr(s)!=="body"}):[]}function oA(e,t,r,i){var s=t==="clippingParents"?iA(e):[].concat(t),a=[].concat(s,[r]),l=a[0],c=a.reduce(function(f,v){var m=gh(e,v,i);return f.top=jn(m.top,f.top),f.right=ga(m.right,f.right),f.bottom=ga(m.bottom,f.bottom),f.left=jn(m.left,f.left),f},gh(e,l,i));return c.width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c}function Jm(e){var t=e.reference,r=e.element,i=e.placement,s=i?Tr(i):null,a=i?wi(i):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,f;switch(s){case It:f={x:l,y:t.y-r.height};break;case or:f={x:l,y:t.y+t.height};break;case sr:f={x:t.x+t.width,y:c};break;case Lt:f={x:t.x-r.width,y:c};break;default:f={x:t.x,y:t.y}}var v=s?Nc(s):null;if(v!=null){var m=v==="y"?"height":"width";switch(a){case vi:f[v]=f[v]-(t[m]/2-r[m]/2);break;case Ao:f[v]=f[v]+(t[m]/2-r[m]/2);break}}return f}function To(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=i===void 0?e.placement:i,a=r.strategy,l=a===void 0?e.strategy:a,c=r.boundary,f=c===void 0?OO:c,v=r.rootBoundary,m=v===void 0?Hm:v,g=r.elementContext,p=g===void 0?Ui:g,b=r.altBoundary,x=b===void 0?!1:b,d=r.padding,w=d===void 0?0:d,h=Vm(typeof w!="number"?w:Ym(w,No)),S=p===Ui?AO:Ui,E=e.rects.popper,R=e.elements[x?S:p],O=oA(Wn(R)?R:R.contextElement||mn(e.elements.popper),f,m,l),k=bi(e.elements.reference),U=Jm({reference:k,element:E,placement:s}),F=cc(Object.assign({},E,U)),D=p===Ui?F:k,G={top:O.top-D.top+h.top,bottom:D.bottom-O.bottom+h.bottom,left:O.left-D.left+h.left,right:D.right-O.right+h.right},j=e.modifiersData.offset;if(p===Ui&&j){var L=j[s];Object.keys(G).forEach(function(B){var q=[sr,or].indexOf(B)>=0?1:-1,C=[It,or].indexOf(B)>=0?"y":"x";G[B]+=L[C]*q})}return G}function sA(e,t){t===void 0&&(t={});var r=t,i=r.placement,s=r.boundary,a=r.rootBoundary,l=r.padding,c=r.flipVariations,f=r.allowedAutoPlacements,v=f===void 0?qm:f,m=wi(i),g=m?c?fh:fh.filter(function(x){return wi(x)===m}):No,p=g.filter(function(x){return v.indexOf(x)>=0});p.length===0&&(p=g);var b=p.reduce(function(x,d){return x[d]=To(e,{placement:d,boundary:s,rootBoundary:a,padding:l})[Tr(d)],x},{});return Object.keys(b).sort(function(x,d){return b[x]-b[d]})}function aA(e){if(Tr(e)===Mc)return[];var t=oa(e);return[hh(e),t,hh(t)]}function uA(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,l=r.altAxis,c=l===void 0?!0:l,f=r.fallbackPlacements,v=r.padding,m=r.boundary,g=r.rootBoundary,p=r.altBoundary,b=r.flipVariations,x=b===void 0?!0:b,d=r.allowedAutoPlacements,w=t.options.placement,h=Tr(w),S=h===w,E=f||(S||!x?[oa(w)]:aA(w)),R=[w].concat(E).reduce(function(ne,ce){return ne.concat(Tr(ce)===Mc?sA(t,{placement:ce,boundary:m,rootBoundary:g,padding:v,flipVariations:x,allowedAutoPlacements:d}):ce)},[]),O=t.rects.reference,k=t.rects.popper,U=new Map,F=!0,D=R[0],G=0;G<R.length;G++){var j=R[G],L=Tr(j),B=wi(j)===vi,q=[It,or].indexOf(L)>=0,C=q?"width":"height",J=To(t,{placement:j,boundary:m,rootBoundary:g,altBoundary:p,padding:v}),Y=q?B?sr:Lt:B?or:It;O[C]>k[C]&&(Y=oa(Y));var te=oa(Y),de=[];if(a&&de.push(J[L]<=0),c&&de.push(J[Y]<=0,J[te]<=0),de.every(function(ne){return ne})){D=j,F=!1;break}U.set(j,de)}if(F)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 D=fe,"break"},se=Z;se>0;se--){var ue=Q(se);if(ue==="break")break}t.placement!==D&&(t.modifiersData[i]._skip=!0,t.placement=D,t.reset=!0)}}const lA={name:"flip",enabled:!0,phase:"main",fn:uA,requiresIfExists:["offset"],data:{_skip:!1}};function mh(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 vh(e){return[It,sr,or,Lt].some(function(t){return e[t]>=0})}function cA(e){var t=e.state,r=e.name,i=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,l=To(t,{elementContext:"reference"}),c=To(t,{altBoundary:!0}),f=mh(l,i),v=mh(c,s,a),m=vh(f),g=vh(v);t.modifiersData[r]={referenceClippingOffsets:f,popperEscapeOffsets:v,isReferenceHidden:m,hasPopperEscaped:g},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":m,"data-popper-escaped":g})}const fA={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:cA};function dA(e,t,r){var i=Tr(e),s=[Lt,It].indexOf(i)>=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)*s,[Lt,sr].indexOf(i)>=0?{x:c,y:l}:{x:l,y:c}}function pA(e){var t=e.state,r=e.options,i=e.name,s=r.offset,a=s===void 0?[0,0]:s,l=qm.reduce(function(m,g){return m[g]=dA(g,t.rects,a),m},{}),c=l[t.placement],f=c.x,v=c.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=f,t.modifiersData.popperOffsets.y+=v),t.modifiersData[i]=l}const hA={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:pA};function gA(e){var t=e.state,r=e.name;t.modifiersData[r]=Jm({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const mA={name:"popperOffsets",enabled:!0,phase:"read",fn:gA,data:{}};function vA(e){return e==="x"?"y":"x"}function yA(e){var t=e.state,r=e.options,i=e.name,s=r.mainAxis,a=s===void 0?!0:s,l=r.altAxis,c=l===void 0?!1:l,f=r.boundary,v=r.rootBoundary,m=r.altBoundary,g=r.padding,p=r.tether,b=p===void 0?!0:p,x=r.tetherOffset,d=x===void 0?0:x,w=To(t,{boundary:f,rootBoundary:v,padding:g,altBoundary:m}),h=Tr(t.placement),S=wi(t.placement),E=!S,R=Nc(h),O=vA(R),k=t.modifiersData.popperOffsets,U=t.rects.reference,F=t.rects.popper,D=typeof d=="function"?d(Object.assign({},t.rects,{placement:t.placement})):d,G=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),j=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,L={x:0,y:0};if(k){if(a){var B,q=R==="y"?It:Lt,C=R==="y"?or:sr,J=R==="y"?"height":"width",Y=k[R],te=Y+w[q],de=Y-w[C],Z=b?-F[J]/2:0,Q=S===vi?U[J]:F[J],se=S===vi?-F[J]:-U[J],ue=t.elements.arrow,ne=b&&ue?Dc(ue):{width:0,height:0},ce=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Km(),fe=ce[q],ye=ce[C],me=xo(0,U[J],ne[J]),Ee=E?U[J]/2-Z-me-fe-G.mainAxis:Q-me-fe-G.mainAxis,Ae=E?-U[J]/2+Z+me+ye+G.mainAxis:se+me+ye+G.mainAxis,Ze=t.elements.arrow&&jo(t.elements.arrow),ie=Ze?R==="y"?Ze.clientTop||0:Ze.clientLeft||0:0,vt=(B=j==null?void 0:j[R])!=null?B:0,lt=Y+Ee-vt-ie,mr=Y+Ae-vt,Zo=xo(b?ga(te,lt):te,Y,b?jn(de,mr):de);k[R]=Zo,L[R]=Zo-Y}if(c){var Gt,Go=R==="x"?It:Lt,Va=R==="x"?or:sr,Mt=k[O],yt=O==="y"?"height":"width",Kr=Mt+w[Go],wn=Mt-w[Va],Ai=[It,Lt].indexOf(h)!==-1,Vr=(Gt=j==null?void 0:j[O])!=null?Gt:0,Ko=Ai?Kr:Mt-U[yt]-F[yt]-Vr+G.altAxis,Yr=Ai?Mt+U[yt]+F[yt]-Vr-G.altAxis:wn,$r=b&&Ai?UO(Ko,Mt,Yr):xo(b?Ko:Kr,Mt,b?Yr:wn);k[O]=$r,L[O]=$r-Mt}t.modifiersData[i]=L}}const bA={name:"preventOverflow",enabled:!0,phase:"main",fn:yA,requiresIfExists:["offset"]};function wA(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function xA(e){return e===Ht(e)||!ir(e)?jc(e):wA(e)}function SA(e){var t=e.getBoundingClientRect(),r=yi(t.width)/e.offsetWidth||1,i=yi(t.height)/e.offsetHeight||1;return r!==1||i!==1}function EA(e,t,r){r===void 0&&(r=!1);var i=ir(t),s=ir(t)&&SA(t),a=mn(t),l=bi(e,s,r),c={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!r)&&((Pr(t)!=="body"||Wc(a))&&(c=xA(t)),ir(t)?(f=bi(t,!0),f.x+=t.clientLeft,f.y+=t.clientTop):a&&(f.x=zc(a))),{x:l.left+c.scrollLeft-f.x,y:l.top+c.scrollTop-f.y,width:l.width,height:l.height}}function _A(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 l=[].concat(a.requires||[],a.requiresIfExists||[]);l.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 OA(e){var t=_A(e);return FO.reduce(function(r,i){return r.concat(t.filter(function(s){return s.phase===i}))},[])}function AA(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function TA(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 yh={placement:"bottom",modifiers:[],strategy:"absolute"};function bh(){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 RA(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,i=r===void 0?[]:r,s=t.defaultOptions,a=s===void 0?yh:s;return function(c,f,v){v===void 0&&(v=a);var m={placement:"bottom",orderedModifiers:[],options:Object.assign({},yh,a),modifiersData:{},elements:{reference:c,popper:f},attributes:{},styles:{}},g=[],p=!1,b={state:m,setOptions:function(h){var S=typeof h=="function"?h(m.options):h;d(),m.options=Object.assign({},a,m.options,S),m.scrollParents={reference:Wn(c)?So(c):c.contextElement?So(c.contextElement):[],popper:So(f)};var E=OA(TA([].concat(i,m.options.modifiers)));return m.orderedModifiers=E.filter(function(R){return R.enabled}),x(),b.update()},forceUpdate:function(){if(!p){var h=m.elements,S=h.reference,E=h.popper;if(bh(S,E)){m.rects={reference:EA(S,jo(E),m.options.strategy==="fixed"),popper:Dc(E)},m.reset=!1,m.placement=m.options.placement,m.orderedModifiers.forEach(function(G){return m.modifiersData[G.name]=Object.assign({},G.data)});for(var R=0;R<m.orderedModifiers.length;R++){if(m.reset===!0){m.reset=!1,R=-1;continue}var O=m.orderedModifiers[R],k=O.fn,U=O.options,F=U===void 0?{}:U,D=O.name;typeof k=="function"&&(m=k({state:m,options:F,name:D,instance:b})||m)}}}},update:AA(function(){return new Promise(function(w){b.forceUpdate(),w(m)})}),destroy:function(){d(),p=!0}};if(!bh(c,f))return b;b.setOptions(v).then(function(w){!p&&v.onFirstUpdate&&v.onFirstUpdate(w)});function x(){m.orderedModifiers.forEach(function(w){var h=w.name,S=w.options,E=S===void 0?{}:S,R=w.effect;if(typeof R=="function"){var O=R({state:m,name:h,instance:b,options:E}),k=function(){};g.push(O||k)}})}function d(){g.forEach(function(w){return w()}),g=[]}return b}}var PA=[JO,mA,YO,jO,hA,lA,bA,ZO,fA],CA=RA({defaultModifiers:PA}),Ns=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Qm(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var yl,wh;function kA(){if(wh)return yl;wh=1;var e=typeof Element<"u",t=typeof Map=="function",r=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(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,f,v;if(Array.isArray(a)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(!s(a[f],l[f]))return!1;return!0}var m;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;for(m=a.entries();!(f=m.next()).done;)if(!s(f.value[1],l.get(f.value[0])))return!1;return!0}if(r&&a instanceof Set&&l instanceof Set){if(a.size!==l.size)return!1;for(m=a.entries();!(f=m.next()).done;)if(!l.has(f.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(a)&&ArrayBuffer.isView(l)){if(c=a.length,c!=l.length)return!1;for(f=c;f--!==0;)if(a[f]!==l[f])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(v=Object.keys(a),c=v.length,c!==Object.keys(l).length)return!1;for(f=c;f--!==0;)if(!Object.prototype.hasOwnProperty.call(l,v[f]))return!1;if(e&&a instanceof Element)return!1;for(f=c;f--!==0;)if(!((v[f]==="_owner"||v[f]==="__v"||v[f]==="__o")&&a.$$typeof)&&!s(a[v[f]],l[v[f]]))return!1;return!0}return a!==a&&l!==l}return yl=function(l,c){try{return s(l,c)}catch(f){if((f.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw f}},yl}var $A=kA();const IA=Qm($A);var LA=[],ev=function(t,r,i){i===void 0&&(i={});var s=$.useRef(null),a={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||LA},l=$.useState({styles:{popper:{position:a.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),c=l[0],f=l[1],v=$.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(b){var x=b.state,d=Object.keys(x.elements);_O.flushSync(function(){f({styles:lh(d.map(function(w){return[w,x.styles[w]||{}]})),attributes:lh(d.map(function(w){return[w,x.attributes[w]]}))})})},requires:["computeStyles"]}},[]),m=$.useMemo(function(){var p={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[v,{name:"applyStyles",enabled:!1}])};return IA(s.current,p)?s.current||p:(s.current=p,p)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,v]),g=$.useRef();return ch(function(){g.current&&g.current.setOptions(m)},[m]),ch(function(){if(!(t==null||r==null)){var p=i.createPopper||CA,b=p(t,r,m);return g.current=b,function(){b.destroy(),g.current=null}}},[t,r,i.createPopper]),{state:g.current?g.current.state:null,styles:c.styles,attributes:c.attributes,update:g.current?g.current.update:null,forceUpdate:g.current?g.current.forceUpdate:null}};const tv=e=>M.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),rv=W.forwardRef(({children:e,style:t,attributes:r},i)=>M.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})),MA=({referenceElement:e,placement:t,isOpen:r,children:i,onClose:s})=>{const[a,l]=W.useState(null),{styles:c,attributes:f}=ev(e,a,{placement:t||"bottom-start"}),v=W.useCallback(()=>{s&&s()},[s]);return r?M.jsxs(Bm,{children:[M.jsx(tv,{onClick:()=>v()}),M.jsx(rv,{ref:l,style:c.popper,attributes:f.popper,children:i})]}):null};var bl={exports:{}};/*!
1
+ "use strict";var OR=Object.defineProperty;var vv=e=>{throw TypeError(e)};var AR=(e,t,r)=>t in e?OR(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r;var Ae=(e,t,r)=>AR(e,typeof t!="symbol"?t+"":t,r),nd=(e,t,r)=>t.has(e)||vv("Cannot "+r);var he=(e,t,r)=>(nd(e,t,"read from private field"),r?r.call(e):t.get(e)),Wt=(e,t,r)=>t.has(e)?vv("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),gt=(e,t,r,n)=>(nd(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r),We=(e,t,r)=>(nd(e,t,"access private method"),r);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=require("react/jsx-runtime"),z=require("react"),ti=require("react-dom"),ct=require("@ws-ui/icons"),lf=require("@emotion/react");function V0(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=V0(z),TR=V0(ti),G0=({children:e,container:t=document.body})=>ti.createPortal(e,t);var mv=function(t){return t.reduce(function(r,n){var o=n[0],a=n[1];return r[o]=a,r},{})},bv=typeof window<"u"&&window.document&&window.document.createElement?B.useLayoutEffect:B.useEffect,nr="top",Pr="bottom",Ir="right",ir="left",Hf="auto",os=[nr,Pr,Ir,ir],xo="start",Ua="end",RR="clippingParents",K0="viewport",ea="popper",CR="reference",yv=os.reduce(function(e,t){return e.concat([t+"-"+xo,t+"-"+Ua])},[]),Z0=[].concat(os,[Hf]).reduce(function(e,t){return e.concat([t,t+"-"+xo,t+"-"+Ua])},[]),PR="beforeRead",IR="read",NR="afterRead",DR="beforeMain",MR="main",LR="afterMain",$R="beforeWrite",zR="write",jR="afterWrite",FR=[PR,IR,NR,DR,MR,LR,$R,zR,jR];function ln(e){return e?(e.nodeName||"").toLowerCase():null}function hr(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Ci(e){var t=hr(e).Element;return e instanceof t||e instanceof Element}function Cr(e){var t=hr(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Bf(e){if(typeof ShadowRoot>"u")return!1;var t=hr(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function HR(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];!Cr(a)||!ln(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 BR(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},{});!Cr(o)||!ln(o)||(Object.assign(o.style,c),Object.keys(a).forEach(function(u){o.removeAttribute(u)}))})}}const WR={name:"applyStyles",enabled:!0,phase:"write",fn:HR,effect:BR,requires:["computeStyles"]};function an(e){return e.split("-")[0]}var Ti=Math.max,rc=Math.min,So=Math.round;function cf(){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 Y0(){return!/^((?!chrome|android).)*safari/i.test(cf())}function _o(e,t,r){t===void 0&&(t=!1),r===void 0&&(r=!1);var n=e.getBoundingClientRect(),o=1,a=1;t&&Cr(e)&&(o=e.offsetWidth>0&&So(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&So(n.height)/e.offsetHeight||1);var l=Ci(e)?hr(e):window,c=l.visualViewport,u=!Y0()&&r,p=(n.left+(u&&c?c.offsetLeft:0))/o,h=(n.top+(u&&c?c.offsetTop:0))/a,f=n.width/o,g=n.height/a;return{width:f,height:g,top:h,right:p+f,bottom:h+g,left:p,x:p,y:h}}function Wf(e){var t=_o(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 X0(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&Bf(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function Cn(e){return hr(e).getComputedStyle(e)}function UR(e){return["table","td","th"].indexOf(ln(e))>=0}function ri(e){return((Ci(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ec(e){return ln(e)==="html"?e:e.assignedSlot||e.parentNode||(Bf(e)?e.host:null)||ri(e)}function wv(e){return!Cr(e)||Cn(e).position==="fixed"?null:e.offsetParent}function qR(e){var t=/firefox/i.test(cf()),r=/Trident/i.test(cf());if(r&&Cr(e)){var n=Cn(e);if(n.position==="fixed")return null}var o=Ec(e);for(Bf(o)&&(o=o.host);Cr(o)&&["html","body"].indexOf(ln(o))<0;){var a=Cn(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 as(e){for(var t=hr(e),r=wv(e);r&&UR(r)&&Cn(r).position==="static";)r=wv(r);return r&&(ln(r)==="html"||ln(r)==="body"&&Cn(r).position==="static")?t:r||qR(e)||t}function Uf(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function za(e,t,r){return Ti(e,rc(t,r))}function VR(e,t,r){var n=za(e,t,r);return n>r?r:n}function J0(){return{top:0,right:0,bottom:0,left:0}}function Q0(e){return Object.assign({},J0(),e)}function ey(e,t){return t.reduce(function(r,n){return r[n]=e,r},{})}var GR=function(t,r){return t=typeof t=="function"?t(Object.assign({},r.rects,{placement:r.placement})):t,Q0(typeof t!="number"?t:ey(t,os))};function KR(e){var t,r=e.state,n=e.name,o=e.options,a=r.elements.arrow,l=r.modifiersData.popperOffsets,c=an(r.placement),u=Uf(c),p=[ir,Ir].indexOf(c)>=0,h=p?"height":"width";if(!(!a||!l)){var f=GR(o.padding,r),g=Wf(a),b=u==="y"?nr:ir,S=u==="y"?Pr:Ir,v=r.rects.reference[h]+r.rects.reference[u]-l[u]-r.rects.popper[h],y=l[u]-r.rects.reference[u],m=as(a),w=m?u==="y"?m.clientHeight||0:m.clientWidth||0:0,x=v/2-y/2,k=f[b],E=w-g[h]-f[S],R=w/2-g[h]/2+x,F=za(k,R,E),P=u;r.modifiersData[n]=(t={},t[P]=F,t.centerOffset=F-R,t)}}function ZR(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)||X0(t.elements.popper,o)&&(t.elements.arrow=o))}const YR={name:"arrow",enabled:!0,phase:"main",fn:KR,effect:ZR,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Eo(e){return e.split("-")[1]}var XR={top:"auto",right:"auto",bottom:"auto",left:"auto"};function JR(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:So(r*o)/o||0,y:So(n*o)/o||0}}function xv(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,h=e.roundOffsets,f=e.isFixed,g=l.x,b=g===void 0?0:g,S=l.y,v=S===void 0?0:S,y=typeof h=="function"?h({x:b,y:v}):{x:b,y:v};b=y.x,v=y.y;var m=l.hasOwnProperty("x"),w=l.hasOwnProperty("y"),x=ir,k=nr,E=window;if(p){var R=as(r),F="clientHeight",P="clientWidth";if(R===hr(r)&&(R=ri(r),Cn(R).position!=="static"&&c==="absolute"&&(F="scrollHeight",P="scrollWidth")),R=R,o===nr||(o===ir||o===Ir)&&a===Ua){k=Pr;var L=f&&R===E&&E.visualViewport?E.visualViewport.height:R[F];v-=L-n.height,v*=u?1:-1}if(o===ir||(o===nr||o===Pr)&&a===Ua){x=Ir;var V=f&&R===E&&E.visualViewport?E.visualViewport.width:R[P];b-=V-n.width,b*=u?1:-1}}var $=Object.assign({position:c},p&&XR),I=h===!0?JR({x:b,y:v},hr(r)):{x:b,y:v};if(b=I.x,v=I.y,u){var j;return Object.assign({},$,(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({},$,(t={},t[k]=w?v+"px":"",t[x]=m?b+"px":"",t.transform="",t))}function QR(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:an(t.placement),variation:Eo(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,xv(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,xv(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 eC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:QR,data:{}};var il={passive:!0};function tC(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=hr(t.elements.popper),p=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&p.forEach(function(h){h.addEventListener("scroll",r.update,il)}),c&&u.addEventListener("resize",r.update,il),function(){a&&p.forEach(function(h){h.removeEventListener("scroll",r.update,il)}),c&&u.removeEventListener("resize",r.update,il)}}const rC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tC,data:{}};var nC={left:"right",right:"left",bottom:"top",top:"bottom"};function jl(e){return e.replace(/left|right|bottom|top/g,function(t){return nC[t]})}var iC={start:"end",end:"start"};function Sv(e){return e.replace(/start|end/g,function(t){return iC[t]})}function qf(e){var t=hr(e),r=t.pageXOffset,n=t.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Vf(e){return _o(ri(e)).left+qf(e).scrollLeft}function oC(e,t){var r=hr(e),n=ri(e),o=r.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){a=o.width,l=o.height;var p=Y0();(p||!p&&t==="fixed")&&(c=o.offsetLeft,u=o.offsetTop)}return{width:a,height:l,x:c+Vf(e),y:u}}function aC(e){var t,r=ri(e),n=qf(e),o=(t=e.ownerDocument)==null?void 0:t.body,a=Ti(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),l=Ti(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-n.scrollLeft+Vf(e),u=-n.scrollTop;return Cn(o||r).direction==="rtl"&&(c+=Ti(r.clientWidth,o?o.clientWidth:0)-a),{width:a,height:l,x:c,y:u}}function Gf(e){var t=Cn(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function ty(e){return["html","body","#document"].indexOf(ln(e))>=0?e.ownerDocument.body:Cr(e)&&Gf(e)?e:ty(Ec(e))}function ja(e,t){var r;t===void 0&&(t=[]);var n=ty(e),o=n===((r=e.ownerDocument)==null?void 0:r.body),a=hr(n),l=o?[a].concat(a.visualViewport||[],Gf(n)?n:[]):n,c=t.concat(l);return o?c:c.concat(ja(Ec(l)))}function uf(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function sC(e,t){var r=_o(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 _v(e,t,r){return t===K0?uf(oC(e,r)):Ci(t)?sC(t,r):uf(aC(ri(e)))}function lC(e){var t=ja(Ec(e)),r=["absolute","fixed"].indexOf(Cn(e).position)>=0,n=r&&Cr(e)?as(e):e;return Ci(n)?t.filter(function(o){return Ci(o)&&X0(o,n)&&ln(o)!=="body"}):[]}function cC(e,t,r,n){var o=t==="clippingParents"?lC(e):[].concat(t),a=[].concat(o,[r]),l=a[0],c=a.reduce(function(u,p){var h=_v(e,p,n);return u.top=Ti(h.top,u.top),u.right=rc(h.right,u.right),u.bottom=rc(h.bottom,u.bottom),u.left=Ti(h.left,u.left),u},_v(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 ry(e){var t=e.reference,r=e.element,n=e.placement,o=n?an(n):null,a=n?Eo(n):null,l=t.x+t.width/2-r.width/2,c=t.y+t.height/2-r.height/2,u;switch(o){case nr:u={x:l,y:t.y-r.height};break;case Pr:u={x:l,y:t.y+t.height};break;case Ir:u={x:t.x+t.width,y:c};break;case ir:u={x:t.x-r.width,y:c};break;default:u={x:t.x,y:t.y}}var p=o?Uf(o):null;if(p!=null){var h=p==="y"?"height":"width";switch(a){case xo:u[p]=u[p]-(t[h]/2-r[h]/2);break;case Ua:u[p]=u[p]+(t[h]/2-r[h]/2);break}}return u}function qa(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?RR:c,p=r.rootBoundary,h=p===void 0?K0:p,f=r.elementContext,g=f===void 0?ea:f,b=r.altBoundary,S=b===void 0?!1:b,v=r.padding,y=v===void 0?0:v,m=Q0(typeof y!="number"?y:ey(y,os)),w=g===ea?CR:ea,x=e.rects.popper,k=e.elements[S?w:g],E=cC(Ci(k)?k:k.contextElement||ri(e.elements.popper),u,h,l),R=_o(e.elements.reference),F=ry({reference:R,element:x,placement:o}),P=uf(Object.assign({},x,F)),L=g===ea?P:R,V={top:E.top-L.top+m.top,bottom:L.bottom-E.bottom+m.bottom,left:E.left-L.left+m.left,right:L.right-E.right+m.right},$=e.modifiersData.offset;if(g===ea&&$){var I=$[o];Object.keys(V).forEach(function(j){var W=[Ir,Pr].indexOf(j)>=0?1:-1,N=[nr,Pr].indexOf(j)>=0?"y":"x";V[j]+=I[N]*W})}return V}function uC(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?Z0:u,h=Eo(n),f=h?c?yv:yv.filter(function(S){return Eo(S)===h}):os,g=f.filter(function(S){return p.indexOf(S)>=0});g.length===0&&(g=f);var b=g.reduce(function(S,v){return S[v]=qa(e,{placement:v,boundary:o,rootBoundary:a,padding:l})[an(v)],S},{});return Object.keys(b).sort(function(S,v){return b[S]-b[v]})}function dC(e){if(an(e)===Hf)return[];var t=jl(e);return[Sv(e),t,Sv(t)]}function fC(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,h=r.boundary,f=r.rootBoundary,g=r.altBoundary,b=r.flipVariations,S=b===void 0?!0:b,v=r.allowedAutoPlacements,y=t.options.placement,m=an(y),w=m===y,x=u||(w||!S?[jl(y)]:dC(y)),k=[y].concat(x).reduce(function(J,se){return J.concat(an(se)===Hf?uC(t,{placement:se,boundary:h,rootBoundary:f,padding:p,flipVariations:S,allowedAutoPlacements:v}):se)},[]),E=t.rects.reference,R=t.rects.popper,F=new Map,P=!0,L=k[0],V=0;V<k.length;V++){var $=k[V],I=an($),j=Eo($)===xo,W=[nr,Pr].indexOf(I)>=0,N=W?"width":"height",Y=qa(t,{placement:$,boundary:h,rootBoundary:f,altBoundary:g,padding:p}),X=W?j?Ir:ir:j?Pr:nr;E[N]>R[N]&&(X=jl(X));var K=jl(X),ge=[];if(a&&ge.push(Y[I]<=0),c&&ge.push(Y[X]<=0,Y[K]<=0),ge.every(function(J){return J})){L=$,P=!1;break}F.set($,ge)}if(P)for(var D=S?3:1,U=function(se){var ae=k.find(function(re){var le=F.get(re);if(le)return le.slice(0,se).every(function(pe){return pe})});if(ae)return L=ae,"break"},ee=D;ee>0;ee--){var te=U(ee);if(te==="break")break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}}const pC={name:"flip",enabled:!0,phase:"main",fn:fC,requiresIfExists:["offset"],data:{_skip:!1}};function Ev(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 kv(e){return[nr,Ir,Pr,ir].some(function(t){return e[t]>=0})}function hC(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,a=t.modifiersData.preventOverflow,l=qa(t,{elementContext:"reference"}),c=qa(t,{altBoundary:!0}),u=Ev(l,n),p=Ev(c,o,a),h=kv(u),f=kv(p);t.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:p,isReferenceHidden:h,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":h,"data-popper-escaped":f})}const gC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:hC};function vC(e,t,r){var n=an(e),o=[ir,nr].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,[ir,Ir].indexOf(n)>=0?{x:c,y:l}:{x:l,y:c}}function mC(e){var t=e.state,r=e.options,n=e.name,o=r.offset,a=o===void 0?[0,0]:o,l=Z0.reduce(function(h,f){return h[f]=vC(f,t.rects,a),h},{}),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 bC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:mC};function yC(e){var t=e.state,r=e.name;t.modifiersData[r]=ry({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const wC={name:"popperOffsets",enabled:!0,phase:"read",fn:yC,data:{}};function xC(e){return e==="x"?"y":"x"}function SC(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,h=r.altBoundary,f=r.padding,g=r.tether,b=g===void 0?!0:g,S=r.tetherOffset,v=S===void 0?0:S,y=qa(t,{boundary:u,rootBoundary:p,padding:f,altBoundary:h}),m=an(t.placement),w=Eo(t.placement),x=!w,k=Uf(m),E=xC(k),R=t.modifiersData.popperOffsets,F=t.rects.reference,P=t.rects.popper,L=typeof v=="function"?v(Object.assign({},t.rects,{placement:t.placement})):v,V=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),$=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,I={x:0,y:0};if(R){if(a){var j,W=k==="y"?nr:ir,N=k==="y"?Pr:Ir,Y=k==="y"?"height":"width",X=R[k],K=X+y[W],ge=X-y[N],D=b?-P[Y]/2:0,U=w===xo?F[Y]:P[Y],ee=w===xo?-P[Y]:-F[Y],te=t.elements.arrow,J=b&&te?Wf(te):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:J0(),ae=se[W],re=se[N],le=za(0,F[Y],J[Y]),pe=x?F[Y]/2-D-le-ae-V.mainAxis:U-le-ae-V.mainAxis,de=x?-F[Y]/2+D+le+re+V.mainAxis:ee+le+re+V.mainAxis,ye=t.elements.arrow&&as(t.elements.arrow),Z=ye?k==="y"?ye.clientTop||0:ye.clientLeft||0:0,Oe=(j=$==null?void 0:$[k])!=null?j:0,ve=X+pe-Oe-Z,pt=X+de-Oe,Et=za(b?rc(K,ve):K,X,b?Ti(ge,pt):ge);R[k]=Et,I[k]=Et-X}if(c){var Nt,zi=k==="x"?nr:ir,or=k==="x"?Pr:Ir,Dt=R[E],Rt=E==="y"?"height":"width",Dr=Dt+y[zi],Vr=Dt-y[or],ii=[nr,ir].indexOf(m)!==-1,Mr=(Nt=$==null?void 0:$[E])!=null?Nt:0,oi=ii?Dr:Dt-F[Rt]-P[Rt]-Mr+V.altAxis,Lr=ii?Dt+F[Rt]+P[Rt]-Mr-V.altAxis:Vr,mr=b&&ii?VR(oi,Dt,Lr):za(b?oi:Dr,Dt,b?Lr:Vr);R[E]=mr,I[E]=mr-Dt}t.modifiersData[n]=I}}const _C={name:"preventOverflow",enabled:!0,phase:"main",fn:SC,requiresIfExists:["offset"]};function EC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function kC(e){return e===hr(e)||!Cr(e)?qf(e):EC(e)}function OC(e){var t=e.getBoundingClientRect(),r=So(t.width)/e.offsetWidth||1,n=So(t.height)/e.offsetHeight||1;return r!==1||n!==1}function AC(e,t,r){r===void 0&&(r=!1);var n=Cr(t),o=Cr(t)&&OC(t),a=ri(t),l=_o(e,o,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(n||!n&&!r)&&((ln(t)!=="body"||Gf(a))&&(c=kC(t)),Cr(t)?(u=_o(t,!0),u.x+=t.clientLeft,u.y+=t.clientTop):a&&(u.x=Vf(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function TC(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 RC(e){var t=TC(e);return FR.reduce(function(r,n){return r.concat(t.filter(function(o){return o.phase===n}))},[])}function CC(e){var t;return function(){return t||(t=new Promise(function(r){Promise.resolve().then(function(){t=void 0,r(e())})})),t}}function PC(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 Ov={placement:"bottom",modifiers:[],strategy:"absolute"};function Av(){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 IC(e){e===void 0&&(e={});var t=e,r=t.defaultModifiers,n=r===void 0?[]:r,o=t.defaultOptions,a=o===void 0?Ov:o;return function(c,u,p){p===void 0&&(p=a);var h={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ov,a),modifiersData:{},elements:{reference:c,popper:u},attributes:{},styles:{}},f=[],g=!1,b={state:h,setOptions:function(m){var w=typeof m=="function"?m(h.options):m;v(),h.options=Object.assign({},a,h.options,w),h.scrollParents={reference:Ci(c)?ja(c):c.contextElement?ja(c.contextElement):[],popper:ja(u)};var x=RC(PC([].concat(n,h.options.modifiers)));return h.orderedModifiers=x.filter(function(k){return k.enabled}),S(),b.update()},forceUpdate:function(){if(!g){var m=h.elements,w=m.reference,x=m.popper;if(Av(w,x)){h.rects={reference:AC(w,as(x),h.options.strategy==="fixed"),popper:Wf(x)},h.reset=!1,h.placement=h.options.placement,h.orderedModifiers.forEach(function(V){return h.modifiersData[V.name]=Object.assign({},V.data)});for(var k=0;k<h.orderedModifiers.length;k++){if(h.reset===!0){h.reset=!1,k=-1;continue}var E=h.orderedModifiers[k],R=E.fn,F=E.options,P=F===void 0?{}:F,L=E.name;typeof R=="function"&&(h=R({state:h,options:P,name:L,instance:b})||h)}}}},update:CC(function(){return new Promise(function(y){b.forceUpdate(),y(h)})}),destroy:function(){v(),g=!0}};if(!Av(c,u))return b;b.setOptions(p).then(function(y){!g&&p.onFirstUpdate&&p.onFirstUpdate(y)});function S(){h.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:h,name:m,instance:b,options:x}),R=function(){};f.push(E||R)}})}function v(){f.forEach(function(y){return y()}),f=[]}return b}}var NC=[rC,wC,eC,WR,bC,pC,_C,YR,gC],DC=IC({defaultModifiers:NC}),ol=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ny(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var id,Tv;function MC(){if(Tv)return id;Tv=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 h;if(t&&a instanceof Map&&l instanceof Map){if(a.size!==l.size)return!1;for(h=a.entries();!(u=h.next()).done;)if(!l.has(u.value[0]))return!1;for(h=a.entries();!(u=h.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(h=a.entries();!(u=h.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 id=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}},id}var LC=MC();const $C=ny(LC);var zC=[],Kf=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||zC},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);TR.flushSync(function(){u({styles:mv(v.map(function(y){return[y,S.styles[y]||{}]})),attributes:mv(v.map(function(y){return[y,S.attributes[y]]}))})})},requires:["computeStyles"]}},[]),h=B.useMemo(function(){var g={onFirstUpdate:a.onFirstUpdate,placement:a.placement,strategy:a.strategy,modifiers:[].concat(a.modifiers,[p,{name:"applyStyles",enabled:!1}])};return $C(o.current,g)?o.current||g:(o.current=g,g)},[a.onFirstUpdate,a.placement,a.strategy,a.modifiers,p]),f=B.useRef();return bv(function(){f.current&&f.current.setOptions(h)},[h]),bv(function(){if(!(t==null||r==null)){var g=n.createPopper||DC,b=g(t,r,h);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 iy=e=>A.jsx("div",{className:"absolute inset-0 z-[1999]",onClick:e.onClick}),oy=z.forwardRef(({children:e,style:t,attributes:r},n)=>A.jsx("div",{style:{...t,zIndex:2e3},...r,ref:n,className:"w-60 rounded border rounded border border-grey-50 bg-grey-900 shadow-2xl","data-cy":"dialogBody",children:e})),jC=({referenceElement:e,placement:t,isOpen:r,children:n,onClose:o})=>{const[a,l]=z.useState(null),{styles:c,attributes:u}=Kf(e,a,{placement:t||"bottom-start"}),p=z.useCallback(()=>{o&&o()},[o]);return r?A.jsxs(G0,{children:[A.jsx(iy,{onClick:()=>p()}),A.jsx(oy,{ref:l,style:c.popper,attributes:u.popper,children:n})]}):null};var od={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 xh;function nv(){return xh||(xh=1,(function(e){(function(){var t={}.hasOwnProperty;function r(){for(var a="",l=0;l<arguments.length;l++){var c=arguments[l];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 l="";for(var c in a)t.call(a,c)&&a[c]&&(l=s(l,c));return l}function s(a,l){return l?a?a+" "+l:a+l:a}e.exports?(r.default=r,e.exports=r):window.classNames=r})()})(bl)),bl.exports}var FA=nv();const We=Qm(FA);function Mn(){return Mn=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},Mn.apply(this,arguments)}const DA=["children","options"],Sh=["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"}),Eh={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},NA=["style","script","pre"],jA=["src","href","data","formAction","srcDoc","action"],zA=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,WA=/\n{2,}$/,_h=/^(\s*>[\s\S]*?)(?=\n\n|$)/,UA=/^ *> ?/gm,BA=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,HA=/^ {2,}\n/,qA=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Oh=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Ah=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,ZA=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,GA=/^(?:\n *)*\n/,KA=/\r\n?/g,VA=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,YA=/^\[\^([^\]]+)]/,XA=/\f/g,JA=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,QA=/^\s*?\[(x|\s)\]/,Th=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Rh=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Ph=/^([^\n]+)\n *(=|-)\2{2,} *\n/,wl=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,eT=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,Ch=/^<!--[\s\S]*?(?:-->)/,tT=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,xl=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,rT=/^\{.*\}$/,nT=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,iT=/^<([^ >]+[:@\/][^ >]+)>/,oT=/-([a-z])?/gi,kh=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,sT=/^[^\n]+(?: \n|\n{2,})/,aT=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,uT=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,lT=/^\[([^\]]*)\] ?\[([^\]]*)\]/,cT=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,fT=/\t/g,dT=/(^ *\||\| *$)/g,pT=/^ *:-+: *$/,hT=/^ *:-+ *$/,gT=/^ *-+: *$/,$a=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Ia="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",mT=RegExp(`^([*_])\\1${$a(1)}${Ia}\\1\\1(?!\\1)`),vT=RegExp(`^([*_])${$a(0)}${Ia}\\1(?!\\1)`),yT=RegExp(`^(==)${$a(0)}${Ia}\\1`),bT=RegExp(`^(~~)${$a(0)}${Ia}\\1`),wT=/^(:[a-zA-Z0-9-_]+:)/,xT=/^\\([^0-9A-Za-z\s])/,ST=/\\([^0-9A-Za-z\s])/g,ET=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,_T=/^\n+/,OT=/^([ \t]*)/,AT=/(?:^|\n)( *)$/,Uc="(?:\\d+\\.)",Bc="(?:[*+-])";function iv(e){return"( *)("+(e===1?Uc:Bc)+") +"}const ov=iv(1),sv=iv(2);function av(e){return RegExp("^"+(e===1?ov:sv))}const TT=av(1),RT=av(2);function uv(e){return RegExp("^"+(e===1?ov:sv)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Uc:Bc)+" )[^\\n]*)*(\\n|$)","gm")}const PT=uv(1),CT=uv(2);function lv(e){const t=e===1?Uc:Bc;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const cv=lv(1),fv=lv(2);function $h(e,t){const r=t===1,i=r?cv:fv,s=r?PT:CT,a=r?TT:RT;return{t:l=>a.test(l),o:xi(function(l,c){const f=AT.exec(c.prevCapture);return f&&(c.list||!c.inline&&!c.simple)?i.exec(l=f[1]+l):null}),i:1,u(l,c,f){const v=r?+l[2]:void 0,m=l[0].replace(WA,`
6
- `).match(s);let g=!1;return{items:m.map(function(p,b){const x=a.exec(p)[0].length,d=RegExp("^ {1,"+x+"}","gm"),w=p.replace(d,"").replace(a,""),h=b===m.length-1,S=w.indexOf(`
5
+ */var Rv;function ay(){return Rv||(Rv=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})()})(od)),od.exports}var FC=ay();const tt=ny(FC);function Ei(){return Ei=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},Ei.apply(this,arguments)}const HC=["children","options"],Cv=["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"}),Pv={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},BC=["style","script","pre"],WC=["src","href","data","formAction","srcDoc","action"],UC=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,qC=/\n{2,}$/,Iv=/^(\s*>[\s\S]*?)(?=\n\n|$)/,VC=/^ *> ?/gm,GC=/^(?:\[!([^\]]*)\]\n)?([\s\S]*)/,KC=/^ {2,}\n/,ZC=/^(?:([-*_])( *\1){2,}) *(?:\n *)+\n/,Nv=/^(?: {1,3})?(`{3,}|~{3,}) *(\S+)? *([^\n]*?)?\n([\s\S]*?)(?:\1\n?|$)/,Dv=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,YC=/^(`+)((?:\\`|(?!\1)`|[^`])+)\1/,XC=/^(?:\n *)*\n/,JC=/\r\n?/g,QC=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,eP=/^\[\^([^\]]+)]/,tP=/\f/g,rP=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,nP=/^\s*?\[(x|\s)\]/,Mv=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,Lv=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,$v=/^([^\n]+)\n *(=|-)\2{2,} *\n/,ad=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,iP=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,zv=/^<!--[\s\S]*?(?:-->)/,oP=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,sd=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,aP=/^\{.*\}$/,sP=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,lP=/^<([^ >]+[:@\/][^ >]+)>/,cP=/-([a-z])?/gi,jv=/^(\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,uP=/^[^\n]+(?: \n|\n{2,})/,dP=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,fP=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,pP=/^\[([^\]]*)\] ?\[([^\]]*)\]/,hP=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,gP=/\t/g,vP=/(^ *\||\| *$)/g,mP=/^ *:-+: *$/,bP=/^ *:-+ *$/,yP=/^ *-+: *$/,kc=e=>`(?=[\\s\\S]+?\\1${e?"\\1":""})`,Oc="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|\\\\\\1|[\\s\\S])+?)",wP=RegExp(`^([*_])\\1${kc(1)}${Oc}\\1\\1(?!\\1)`),xP=RegExp(`^([*_])${kc(0)}${Oc}\\1(?!\\1)`),SP=RegExp(`^(==)${kc(0)}${Oc}\\1`),_P=RegExp(`^(~~)${kc(0)}${Oc}\\1`),EP=/^(:[a-zA-Z0-9-_]+:)/,kP=/^\\([^0-9A-Za-z\s])/,OP=/\\([^0-9A-Za-z\s])/g,AP=/^[\s\S](?:(?! \n|[0-9]\.|http)[^=*_~\-\n:<`\\\[!])*/,TP=/^\n+/,RP=/^([ \t]*)/,CP=/(?:^|\n)( *)$/,Zf="(?:\\d+\\.)",Yf="(?:[*+-])";function sy(e){return"( *)("+(e===1?Zf:Yf)+") +"}const ly=sy(1),cy=sy(2);function uy(e){return RegExp("^"+(e===1?ly:cy))}const PP=uy(1),IP=uy(2);function dy(e){return RegExp("^"+(e===1?ly:cy)+"[^\\n]*(?:\\n(?!\\1"+(e===1?Zf:Yf)+" )[^\\n]*)*(\\n|$)","gm")}const NP=dy(1),DP=dy(2);function fy(e){const t=e===1?Zf:Yf;return RegExp("^( *)("+t+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+t+" (?!"+t+" ))\\n*|\\s*\\n*$)")}const py=fy(1),hy=fy(2);function Fv(e,t){const r=t===1,n=r?py:hy,o=r?NP:DP,a=r?PP:IP;return{t:l=>a.test(l),o:ko(function(l,c){const u=CP.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,h=l[0].replace(qC,`
6
+ `).match(o);let f=!1;return{items:h.map(function(g,b){const S=a.exec(g)[0].length,v=RegExp("^ {1,"+S+"}","gm"),y=g.replace(v,"").replace(a,""),m=b===h.length-1,w=y.indexOf(`
7
7
 
8
- `)!==-1||h&&g;g=S;const E=f.inline,R=f.list;let O;f.list=!0,S?(f.inline=!1,O=Eo(w)+`
8
+ `)!==-1||m&&f;f=w;const x=u.inline,k=u.list;let E;u.list=!0,w?(u.inline=!1,E=Fa(y)+`
9
9
 
10
- `):(f.inline=!0,O=Eo(w));const k=c(O,f);return f.inline=E,f.list=R,k}),ordered:r,start:v}},l:(l,c,f)=>e(l.ordered?"ol":"ul",{key:f.key,start:l.type==="20"?l.start:void 0},l.items.map(function(v,m){return e("li",{key:m},c(v,f))}))}}const kT=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),$T=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Ih(e){return typeof e=="string"}function Eo(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function sa(e,t){return e.startsWith(t)}function IT(e,t,r){if(Array.isArray(r)){for(let i=0;i<r.length;i++)if(sa(e,r[i]))return!0;return!1}return r(e,t)}function Bi(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 LT(e){return gT.test(e)?"right":pT.test(e)?"center":hT.test(e)?"left":null}function Lh(e,t,r,i){const s=r.inTable;r.inTable=!0;let a=[[]],l="";function c(){if(!l)return;const f=a[a.length-1];f.push.apply(f,t(l,r)),l=""}return e.trim().split(/(`[^`]*`|\\\||\|)/).filter(Boolean).forEach((f,v,m)=>{f.trim()==="|"&&(c(),i)?v!==0&&v!==m.length-1&&a.push([]):l+=f}),c(),r.inTable=s,a}function MT(e,t,r){r.inline=!0;const i=e[2]?e[2].replace(dT,"").split("|").map(LT):[],s=e[3]?(function(l,c,f){return l.trim().split(`
11
- `).map(function(v){return Lh(v,c,f,!0)})})(e[3],t,r):[],a=Lh(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 Mh(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function xi(e){return e.inline=1,e}function Cn(e){return xi(function(t,r){return r.inline?e.exec(t):null})}function an(e){return xi(function(t,r){return r.inline||r.simple?e.exec(t):null})}function Ur(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function js(e){return xi(function(t){return e.exec(t)})}const FT=/(javascript|vbscript|data(?!:image)):/i;function DT(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(FT.test(t))return null}catch{return null}return e}function wr(e){return e&&e.replace(ST,"$1")}function aa(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 NT(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 jT(e,t,r){const i=r.inline||!1;r.inline=!1;const s=e(t,r);return r.inline=i,s}const Sl=(e,t,r)=>({children:aa(t,e[2],r)});function El(){return{}}function _l(){return null}function zT(...e){return e.filter(Boolean).join(" ")}function Ol(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 WT(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Mn({},Eh,t.namedCodesToUnicode):Eh;const r=t.slugify||Bi,i=t.sanitizer||DT,s=t.createElement||$.createElement,a=[_h,Oh,Ah,t.enforceAtxHeadings?Rh:Th,Ph,kh,cv,fv],l=[...a,sT,wl,Ch,xl];function c(h,S){for(let E=0;E<h.length;E++)if(h[E].test(S))return!0;return!1}function f(h,S,...E){const R=Ol(t.overrides,h+".props",{});return s((function(O,k){const U=Ol(k,O);return U?typeof U=="function"||typeof U=="object"&&"render"in U?U:Ol(k,O+".component",O):O})(h,t.overrides),Mn({},S,R,{className:zT(S==null?void 0:S.className,R.className)||void 0}),...E)}function v(h){h=h.replace(JA,"");let S=!1;t.forceInline?S=!0:t.forceBlock||(S=cT.test(h)===!1);const E=d(x(S?h:Eo(h).replace(_T,"")+`
10
+ `):(u.inline=!0,E=Fa(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,h){return e("li",{key:h},c(p,u))}))}}const MP=RegExp(`^\\[((?:\\[[^\\[\\]]*(?:\\[[^\\[\\]]*\\][^\\[\\]]*)*\\]|[^\\[\\]])*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),LP=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/;function Hv(e){return typeof e=="string"}function Fa(e){let t=e.length;for(;t>0&&e[t-1]<=" ";)t--;return e.slice(0,t)}function Fl(e,t){return e.startsWith(t)}function $P(e,t,r){if(Array.isArray(r)){for(let n=0;n<r.length;n++)if(Fl(e,r[n]))return!0;return!1}return r(e,t)}function ta(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 zP(e){return yP.test(e)?"right":mP.test(e)?"center":bP.test(e)?"left":null}function Bv(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,h)=>{u.trim()==="|"&&(c(),n)?p!==0&&p!==h.length-1&&a.push([]):l+=u}),c(),r.inTable=o,a}function jP(e,t,r){r.inline=!0;const n=e[2]?e[2].replace(vP,"").split("|").map(zP):[],o=e[3]?(function(l,c,u){return l.trim().split(`
11
+ `).map(function(p){return Bv(p,c,u,!0)})})(e[3],t,r):[],a=Bv(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 Wv(e,t){return e.align[t]==null?{}:{textAlign:e.align[t]}}function ko(e){return e.inline=1,e}function bi(e){return ko(function(t,r){return r.inline?e.exec(t):null})}function Bn(e){return ko(function(t,r){return r.inline||r.simple?e.exec(t):null})}function xn(e){return function(t,r){return r.inline||r.simple?null:e.exec(t)}}function al(e){return ko(function(t){return e.exec(t)})}const FP=/(javascript|vbscript|data(?!:image)):/i;function HP(e){try{const t=decodeURIComponent(e).replace(/[^A-Za-z0-9/:]/g,"");if(FP.test(t))return null}catch{return null}return e}function Yr(e){return e&&e.replace(OP,"$1")}function Hl(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 BP(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 WP(e,t,r){const n=r.inline||!1;r.inline=!1;const o=e(t,r);return r.inline=n,o}const ld=(e,t,r)=>({children:Hl(t,e[2],r)});function cd(){return{}}function ud(){return null}function UP(...e){return e.filter(Boolean).join(" ")}function dd(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 qP(e="",t={}){t.overrides=t.overrides||{},t.namedCodesToUnicode=t.namedCodesToUnicode?Ei({},Pv,t.namedCodesToUnicode):Pv;const r=t.slugify||ta,n=t.sanitizer||HP,o=t.createElement||B.createElement,a=[Iv,Nv,Dv,t.enforceAtxHeadings?Lv:Mv,$v,jv,py,hy],l=[...a,uP,ad,zv,sd];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=dd(t.overrides,m+".props",{});return o((function(E,R){const F=dd(R,E);return F?typeof F=="function"||typeof F=="object"&&"render"in F?F:dd(R,E+".component",E):E})(m,t.overrides),Ei({},w,k,{className:UP(w==null?void 0:w.className,k.className)||void 0}),...x)}function p(m){m=m.replace(rP,"");let w=!1;t.forceInline?w=!0:t.forceBlock||(w=hP.test(m)===!1);const x=v(S(w?m:Fa(m).replace(TP,"")+`
12
12
 
13
- `,{inline:S}));for(;Ih(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 O;if(E.length>1||t.forceWrapper)O=E;else{if(E.length===1)return O=E[0],typeof O=="string"?f("span",{key:"outer"},O):O;O=null}return s(R,{key:"outer"},O)}function m(h,S){if(!S||!S.trim())return null;const E=S.match(zA);return E?E.reduce(function(R,O){const k=O.indexOf("=");if(k!==-1){const U=(function(j){return j.indexOf("-")!==-1&&j.match(tT)===null&&(j=j.replace(oT,function(L,B){return B.toUpperCase()})),j})(O.slice(0,k)).trim(),F=(function(j){const L=j[0];return(L==='"'||L==="'")&&j.length>=2&&j[j.length-1]===L?j.slice(1,-1):j})(O.slice(k+1).trim()),D=Sh[U]||U;if(D==="ref")return R;const G=R[D]=(function(j,L,B,q){return L==="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})(B).reduce(function(C,[J,Y]){return C[J.replace(/(-[a-z])/g,te=>te[1].toUpperCase())]=q(Y,j,J),C},{}):jA.indexOf(L)!==-1?q(wr(B),j,L):(B.match(rT)&&(B=wr(B.slice(1,B.length-1))),B==="true"||B!=="false"&&B)})(h,U,F,i);typeof G=="string"&&(wl.test(G)||xl.test(G))&&(R[D]=v(G.trim()))}else O!=="style"&&(R[Sh[O]||O]=!0);return R},{}):null}const g=[],p={},b={0:{t:[">"],o:Ur(_h),i:1,u(h,S,E){const[,R,O]=h[0].replace(UA,"").match(BA);return{alert:R,children:S(O,E)}},l(h,S,E){const R={key:E.key};return h.alert&&(R.className="markdown-alert-"+r(h.alert.toLowerCase(),Bi),h.children.unshift({attrs:{},children:[{type:"27",text:h.alert}],noInnerParse:!0,type:"11",tag:"header"})),f("blockquote",R,S(h.children,E))}},1:{t:[" "],o:js(HA),i:1,u:El,l:(h,S,E)=>f("br",{key:E.key})},2:{t:["--","__","**","- ","* ","_ "],o:Ur(qA),i:1,u:El,l:(h,S,E)=>f("hr",{key:E.key})},3:{t:[" "],o:Ur(Ah),i:0,u:h=>({lang:void 0,text:wr(Eo(h[0].replace(/^ {4}/gm,"")))}),l:(h,S,E)=>f("pre",{key:E.key},f("code",Mn({},h.attrs,{className:h.lang?"lang-"+h.lang:""}),h.text))},4:{t:["```","~~~"],o:Ur(Oh),i:0,u:h=>({attrs:m("code",h[3]||""),lang:h[2]||void 0,text:h[4],type:"3"})},5:{t:["`"],o:an(ZA),i:3,u:h=>({text:wr(h[2])}),l:(h,S,E)=>f("code",{key:E.key},h.text)},6:{t:["[^"],o:Ur(VA),i:0,u:h=>(g.push({footnote:h[2],identifier:h[1]}),{}),l:_l},7:{t:["[^"],o:Cn(YA),i:1,u:h=>({target:"#"+r(h[1],Bi),text:h[1]}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href")},f("sup",{key:E.key},h.text))},8:{t:["[ ]","[x]"],o:Cn(QA),i:1,u:h=>({completed:h[1].toLowerCase()==="x"}),l:(h,S,E)=>f("input",{checked:h.completed,key:E.key,readOnly:!0,type:"checkbox"})},9:{t:["#"],o:Ur(t.enforceAtxHeadings?Rh:Th),i:1,u:(h,S,E)=>({children:aa(S,h[2],E),id:r(h[2],Bi),level:h[1].length}),l:(h,S,E)=>f("h"+h.level,{id:h.id,key:E.key},S(h.children,E))},10:{t:h=>{const S=h.indexOf(`
14
- `);return S>0&&S<h.length-1&&(h[S+1]==="="||h[S+1]==="-")},o:Ur(Ph),i:0,u:(h,S,E)=>({children:aa(S,h[1],E),level:h[2]==="="?1:2,type:"9"})},11:{t:["<"],o:js(wl),i:1,u(h,S,E){const[,R]=h[3].match(OT),O=RegExp("^"+R,"gm"),k=h[3].replace(O,""),U=c(l,k)?jT:aa,F=h[1].toLowerCase(),D=NA.indexOf(F)!==-1,G=(D?F:h[1]).trim(),j={attrs:m(G,h[2]),noInnerParse:D,tag:G};if(E.inAnchor=E.inAnchor||F==="a",D)j.text=h[3];else{const L=E.inHTML;E.inHTML=!0,j.children=U(S,k,E),E.inHTML=L}return E.inAnchor=!1,j},l:(h,S,E)=>f(h.tag,Mn({key:E.key},h.attrs),h.text||(h.children?S(h.children,E):""))},13:{t:["<"],o:js(xl),i:1,u(h){const S=h[1].trim();return{attrs:m(S,h[2]||""),tag:S}},l:(h,S,E)=>f(h.tag,Mn({},h.attrs,{key:E.key}))},12:{t:["<!--"],o:js(Ch),i:1,u:()=>({}),l:_l},14:{t:["!["],o:an($T),i:1,u:h=>({alt:wr(h[1]),target:wr(h[2]),title:wr(h[3])}),l:(h,S,E)=>f("img",{key:E.key,alt:h.alt||void 0,title:h.title||void 0,src:i(h.target,"img","src")})},15:{t:["["],o:Cn(kT),i:3,u:(h,S,E)=>({children:NT(S,h[1],E),target:wr(h[2]),title:wr(h[3])}),l:(h,S,E)=>f("a",{key:E.key,href:i(h.target,"a","href"),title:h.title},S(h.children,E))},16:{t:["<"],o:Cn(iT),i:0,u(h){let S=h[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:(h,S)=>!S.inAnchor&&!t.disableAutoLink&&(sa(h,"http://")||sa(h,"https://")),o:Cn(nT),i:0,u:h=>({children:[{text:h[1],type:"27"}],target:h[1],title:void 0,type:"15"})},20:$h(f,1),33:$h(f,2),19:{t:[`
15
- `],o:Ur(GA),i:3,u:El,l:()=>`
16
- `},21:{o:xi(function(h,S){if(S.inline||S.simple||S.inHTML&&h.indexOf(`
13
+ `,{inline:w}));for(;Hv(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 h(m,w){if(!w||!w.trim())return null;const x=w.match(UC);return x?x.reduce(function(k,E){const R=E.indexOf("=");if(R!==-1){const F=(function($){return $.indexOf("-")!==-1&&$.match(oP)===null&&($=$.replace(cP,function(I,j){return j.toUpperCase()})),$})(E.slice(0,R)).trim(),P=(function($){const I=$[0];return(I==='"'||I==="'")&&$.length>=2&&$[$.length-1]===I?$.slice(1,-1):$})(E.slice(R+1).trim()),L=Cv[F]||F;if(L==="ref")return k;const V=k[L]=(function($,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 se=J.indexOf(":");if(se>0){const ae=J.slice(0,se).trim(),re=J.slice(se+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,$,Y),N},{}):WC.indexOf(I)!==-1?W(Yr(j),$,I):(j.match(aP)&&(j=Yr(j.slice(1,j.length-1))),j==="true"||j!=="false"&&j)})(m,F,P,n);typeof V=="string"&&(ad.test(V)||sd.test(V))&&(k[L]=p(V.trim()))}else E!=="style"&&(k[Cv[E]||E]=!0);return k},{}):null}const f=[],g={},b={0:{t:[">"],o:xn(Iv),i:1,u(m,w,x){const[,k,E]=m[0].replace(VC,"").match(GC);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(),ta),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:al(KC),i:1,u:cd,l:(m,w,x)=>u("br",{key:x.key})},2:{t:["--","__","**","- ","* ","_ "],o:xn(ZC),i:1,u:cd,l:(m,w,x)=>u("hr",{key:x.key})},3:{t:[" "],o:xn(Dv),i:0,u:m=>({lang:void 0,text:Yr(Fa(m[0].replace(/^ {4}/gm,"")))}),l:(m,w,x)=>u("pre",{key:x.key},u("code",Ei({},m.attrs,{className:m.lang?"lang-"+m.lang:""}),m.text))},4:{t:["```","~~~"],o:xn(Nv),i:0,u:m=>({attrs:h("code",m[3]||""),lang:m[2]||void 0,text:m[4],type:"3"})},5:{t:["`"],o:Bn(YC),i:3,u:m=>({text:Yr(m[2])}),l:(m,w,x)=>u("code",{key:x.key},m.text)},6:{t:["[^"],o:xn(QC),i:0,u:m=>(f.push({footnote:m[2],identifier:m[1]}),{}),l:ud},7:{t:["[^"],o:bi(eP),i:1,u:m=>({target:"#"+r(m[1],ta),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:bi(nP),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:xn(t.enforceAtxHeadings?Lv:Mv),i:1,u:(m,w,x)=>({children:Hl(w,m[2],x),id:r(m[2],ta),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:xn($v),i:0,u:(m,w,x)=>({children:Hl(w,m[1],x),level:m[2]==="="?1:2,type:"9"})},11:{t:["<"],o:al(ad),i:1,u(m,w,x){const[,k]=m[3].match(RP),E=RegExp("^"+k,"gm"),R=m[3].replace(E,""),F=c(l,R)?WP:Hl,P=m[1].toLowerCase(),L=BC.indexOf(P)!==-1,V=(L?P:m[1]).trim(),$={attrs:h(V,m[2]),noInnerParse:L,tag:V};if(x.inAnchor=x.inAnchor||P==="a",L)$.text=m[3];else{const I=x.inHTML;x.inHTML=!0,$.children=F(w,R,x),x.inHTML=I}return x.inAnchor=!1,$},l:(m,w,x)=>u(m.tag,Ei({key:x.key},m.attrs),m.text||(m.children?w(m.children,x):""))},13:{t:["<"],o:al(sd),i:1,u(m){const w=m[1].trim();return{attrs:h(w,m[2]||""),tag:w}},l:(m,w,x)=>u(m.tag,Ei({},m.attrs,{key:x.key}))},12:{t:["<!--"],o:al(zv),i:1,u:()=>({}),l:ud},14:{t:["!["],o:Bn(LP),i:1,u:m=>({alt:Yr(m[1]),target:Yr(m[2]),title:Yr(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:bi(MP),i:3,u:(m,w,x)=>({children:BP(w,m[1],x),target:Yr(m[2]),title:Yr(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:bi(lP),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&&(Fl(m,"http://")||Fl(m,"https://")),o:bi(sP),i:0,u:m=>({children:[{text:m[1],type:"27"}],target:m[1],title:void 0,type:"15"})},20:Fv(u,1),33:Fv(u,2),19:{t:[`
15
+ `],o:xn(XC),i:3,u:cd,l:()=>`
16
+ `},21:{o:ko(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=h.indexOf(`
21
- `,R),U=h.slice(R,k===-1?void 0:k+1);if(c(a,U)||(E+=U,k===-1||!U.trim()))break;R=k+1}const O=Eo(E);return O===""?null:[E,,O]}),i:3,u:Sl,l:(h,S,E)=>f("p",{key:E.key},S(h.children,E))},22:{t:["["],o:Cn(aT),i:0,u:h=>(p[h[1]]={target:h[2],title:h[4]},{}),l:_l},23:{t:["!["],o:an(uT),i:0,u:h=>({alt:h[1]?wr(h[1]):void 0,ref:h[2]}),l:(h,S,E)=>p[h.ref]?f("img",{key:E.key,alt:h.alt,src:i(p[h.ref].target,"img","src"),title:p[h.ref].title}):null},24:{t:h=>h[0]==="["&&h.indexOf("](")===-1,o:Cn(lT),i:0,u:(h,S,E)=>({children:S(h[1],E),fallbackChildren:h[0],ref:h[2]}),l:(h,S,E)=>p[h.ref]?f("a",{key:E.key,href:i(p[h.ref].target,"a","href"),title:p[h.ref].title},S(h.children,E)):f("span",{key:E.key},h.fallbackChildren)},25:{t:["|"],o:Ur(kh),i:1,u:MT,l(h,S,E){const R=h;return f("table",{key:E.key},f("thead",null,f("tr",null,R.header.map(function(O,k){return f("th",{key:k,style:Mh(R,k)},S(O,E))}))),f("tbody",null,R.cells.map(function(O,k){return f("tr",{key:k},O.map(function(U,F){return f("td",{key:F,style:Mh(R,F)},S(U,E))}))})))}},27:{o:xi(function(h,S){let E;return sa(h,":")&&(E=wT.exec(h)),E||ET.exec(h)}),i:4,u(h){const S=h[0];return{text:S.indexOf("&")===-1?S:S.replace(eT,(E,R)=>t.namedCodesToUnicode[R]||E)}},l:h=>h.text},28:{t:["**","__"],o:an(mT),i:2,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("strong",{key:E.key},S(h.children,E))},29:{t:h=>{const S=h[0];return(S==="*"||S==="_")&&h[1]!==S},o:an(vT),i:3,u:(h,S,E)=>({children:S(h[2],E)}),l:(h,S,E)=>f("em",{key:E.key},S(h.children,E))},30:{t:["\\"],o:an(xT),i:1,u:h=>({text:h[1],type:"27"})},31:{t:["=="],o:an(yT),i:3,u:Sl,l:(h,S,E)=>f("mark",{key:E.key},S(h.children,E))},32:{t:["~~"],o:an(bT),i:3,u:Sl,l:(h,S,E)=>f("del",{key:E.key},S(h.children,E))}};t.disableParsingRawHTML===!0&&(delete b[11],delete b[13]);const x=(function(h){var S=Object.keys(h);function E(R,O){var k=[];if(O.prevCapture=O.prevCapture||"",R.trim())for(;R;)for(var U=0;U<S.length;){var F=S[U],D=h[F];if(!D.t||IT(R,O,D.t)){var G=D.o(R,O);if(G&&G[0]){R=R.substring(G[0].length);var j=D.u(G,E,O);O.prevCapture+=G[0],j.type||(j.type=F),k.push(j);break}U++}else U++}return O.prevCapture="",k}return S.sort(function(R,O){return h[R].i-h[O].i||(R<O?-1:1)}),function(R,O){return E((function(k){return k.replace(KA,`
22
- `).replace(XA,"").replace(fT," ")})(R),O)}})(b),d=(function(h,S){return function E(R,O={}){if(Array.isArray(R)){const k=O.key,U=[];let F=!1;for(let D=0;D<R.length;D++){O.key=D;const G=E(R[D],O),j=Ih(G);j&&F?U[U.length-1]+=G:G!==null&&U.push(G),F=j}return O.key=k,U}return(function(k,U,F){const D=h[k.type].l;return S?S(()=>D(k,U,F),k,U,F):D(k,U,F)})(R,E,O)}})(b,t.renderRule),w=v(e);return g.length?f("div",null,w,f("footer",{key:"footer"},g.map(function(h){return f("div",{id:r(h.identifier,Bi),key:h.identifier},h.identifier,d(x(h.footnote,{inline:!0})))}))):w}const ma=e=>{let{children:t="",options:r}=e,i=(function(s,a){if(s==null)return{};var l,c,f={},v=Object.keys(s);for(c=0;c<v.length;c++)a.indexOf(l=v[c])>=0||(f[l]=s[l]);return f})(e,DA);return $.cloneElement(WT(t,r),i)},Fh=({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 M.jsx(t,{className:We("flex-none size-6",r)});switch(e){case"error":case"danger":return M.jsx(et.FdSanityCheckInfo,{className:We("flex-none size-6",r)});case"info":return M.jsx(M.Fragment,{children:M.jsx(et.FdInfoBold,{className:We("flex-none size-6",r)})});case"warning":return M.jsx(M.Fragment,{children:M.jsx(et.FdWarningDanger,{className:We("flex-none size-6",r)})});case"message":return M.jsx(M.Fragment,{children:M.jsx(et.FdInfoBold,{className:We("flex-none size-6",r)})});default:return null}},UT=({id:e,onClose:t,kind:r,message:i,markdown:s,customIcon:a})=>{const l=({className:c}={})=>M.jsx("button",{onClick:t,className:We("flex justify-center p-1",c),children:M.jsx(et.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return M.jsx("div",{className:We("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof i=="string"?M.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[M.jsx("div",{className:"pt-1",children:M.jsx(Fh,{kind:r,customIcon:a})}),M.jsx("div",{className:"flex items-center gap-1 prose",children:s?M.jsx(ma,{children:i}):M.jsx(M.Fragment,{children:i})}),l()]}):M.jsxs("div",{className:"flex items-start",children:[M.jsx("div",{className:"flex flex-col gap-2 justify-between",children:i.filter(c=>c.messages.length>0).map(c=>M.jsxs(M.Fragment,{children:[c.title&&M.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[M.jsx(Fh,{kind:r,customIcon:a}),M.jsxs("span",{children:[c.title," :"]})]}),M.jsx("ul",{className:We("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(f=>M.jsx("li",{children:s?M.jsx(ma,{children:f}):M.jsx(M.Fragment,{children:f})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},dv=({children:e,size:t,className:r,...i})=>M.jsx("div",{style:{"--width":`${t||24}px`},className:We("h-6 flex items-center pr-1 w-[--width]",r),...i,children:e});var Al={},Hi={},zs={},Dh;function pv(){if(Dh)return zs;Dh=1,Object.defineProperty(zs,"__esModule",{value:!0}),zs.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 zs}var li={},qi={},Zi={},Nh;function BT(){if(Nh)return Zi;Nh=1,Object.defineProperty(Zi,"__esModule",{value:!0}),Zi.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 Zi.default=e,Zi}var jh;function La(){if(jh)return qi;jh=1,Object.defineProperty(qi,"__esModule",{value:!0}),qi.default=void 0;var e=t(BT());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 qi.default=i,qi}var zh;function Ma(){if(zh)return li;zh=1,Object.defineProperty(li,"__esModule",{value:!0}),li.default=void 0,li.unsafeStringify=i;var e=t(La());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 i(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 s(l,c=0){const f=i(l,c);if(!(0,e.default)(f))throw TypeError("Stringified UUID is invalid");return f}var a=s;return li.default=a,li}var Wh;function HT(){if(Wh)return Hi;Wh=1,Object.defineProperty(Hi,"__esModule",{value:!0}),Hi.default=void 0;var e=r(pv()),t=Ma();function r(v){return v&&v.__esModule?v:{default:v}}let i,s,a=0,l=0;function c(v,m,g){let p=m&&g||0;const b=m||new Array(16);v=v||{};let x=v.node||i,d=v.clockseq!==void 0?v.clockseq:s;if(x==null||d==null){const O=v.random||(v.rng||e.default)();x==null&&(x=i=[O[0]|1,O[1],O[2],O[3],O[4],O[5]]),d==null&&(d=s=(O[6]<<8|O[7])&16383)}let w=v.msecs!==void 0?v.msecs:Date.now(),h=v.nsecs!==void 0?v.nsecs:l+1;const S=w-a+(h-l)/1e4;if(S<0&&v.clockseq===void 0&&(d=d+1&16383),(S<0||w>a)&&v.nsecs===void 0&&(h=0),h>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");a=w,l=h,s=d,w+=122192928e5;const E=((w&268435455)*1e4+h)%4294967296;b[p++]=E>>>24&255,b[p++]=E>>>16&255,b[p++]=E>>>8&255,b[p++]=E&255;const R=w/4294967296*1e4&268435455;b[p++]=R>>>8&255,b[p++]=R&255,b[p++]=R>>>24&15|16,b[p++]=R>>>16&255,b[p++]=d>>>8|128,b[p++]=d&255;for(let O=0;O<6;++O)b[p+O]=x[O];return m||(0,t.unsafeStringify)(b)}var f=c;return Hi.default=f,Hi}var Gi={},un={},Ki={},Uh;function hv(){if(Uh)return Ki;Uh=1,Object.defineProperty(Ki,"__esModule",{value:!0}),Ki.default=void 0;var e=t(La());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 l=new Uint8Array(16);return l[0]=(a=parseInt(s.slice(0,8),16))>>>24,l[1]=a>>>16&255,l[2]=a>>>8&255,l[3]=a&255,l[4]=(a=parseInt(s.slice(9,13),16))>>>8,l[5]=a&255,l[6]=(a=parseInt(s.slice(14,18),16))>>>8,l[7]=a&255,l[8]=(a=parseInt(s.slice(19,23),16))>>>8,l[9]=a&255,l[10]=(a=parseInt(s.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 i=r;return Ki.default=i,Ki}var Bh;function gv(){if(Bh)return un;Bh=1,Object.defineProperty(un,"__esModule",{value:!0}),un.URL=un.DNS=void 0,un.default=l;var e=Ma(),t=r(hv());function r(c){return c&&c.__esModule?c:{default:c}}function i(c){c=unescape(encodeURIComponent(c));const f=[];for(let v=0;v<c.length;++v)f.push(c.charCodeAt(v));return f}const s="6ba7b810-9dad-11d1-80b4-00c04fd430c8";un.DNS=s;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";un.URL=a;function l(c,f,v){function m(g,p,b,x){var d;if(typeof g=="string"&&(g=i(g)),typeof p=="string"&&(p=(0,t.default)(p)),((d=p)===null||d===void 0?void 0:d.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let w=new Uint8Array(16+g.length);if(w.set(p),w.set(g,p.length),w=v(w),w[6]=w[6]&15|f,w[8]=w[8]&63|128,b){x=x||0;for(let h=0;h<16;++h)b[x+h]=w[h];return b}return(0,e.unsafeStringify)(w)}try{m.name=c}catch{}return m.DNS=s,m.URL=a,m}return un}var Vi={},Hh;function qT(){if(Hh)return Vi;Hh=1,Object.defineProperty(Vi,"__esModule",{value:!0}),Vi.default=void 0;function e(b){if(typeof b=="string"){const x=unescape(encodeURIComponent(b));b=new Uint8Array(x.length);for(let d=0;d<x.length;++d)b[d]=x.charCodeAt(d)}return t(i(s(b),b.length*8))}function t(b){const x=[],d=b.length*32,w="0123456789abcdef";for(let h=0;h<d;h+=8){const S=b[h>>5]>>>h%32&255,E=parseInt(w.charAt(S>>>4&15)+w.charAt(S&15),16);x.push(E)}return x}function r(b){return(b+64>>>9<<4)+14+1}function i(b,x){b[x>>5]|=128<<x%32,b[r(x)-1]=x;let d=1732584193,w=-271733879,h=-1732584194,S=271733878;for(let E=0;E<b.length;E+=16){const R=d,O=w,k=h,U=S;d=f(d,w,h,S,b[E],7,-680876936),S=f(S,d,w,h,b[E+1],12,-389564586),h=f(h,S,d,w,b[E+2],17,606105819),w=f(w,h,S,d,b[E+3],22,-1044525330),d=f(d,w,h,S,b[E+4],7,-176418897),S=f(S,d,w,h,b[E+5],12,1200080426),h=f(h,S,d,w,b[E+6],17,-1473231341),w=f(w,h,S,d,b[E+7],22,-45705983),d=f(d,w,h,S,b[E+8],7,1770035416),S=f(S,d,w,h,b[E+9],12,-1958414417),h=f(h,S,d,w,b[E+10],17,-42063),w=f(w,h,S,d,b[E+11],22,-1990404162),d=f(d,w,h,S,b[E+12],7,1804603682),S=f(S,d,w,h,b[E+13],12,-40341101),h=f(h,S,d,w,b[E+14],17,-1502002290),w=f(w,h,S,d,b[E+15],22,1236535329),d=v(d,w,h,S,b[E+1],5,-165796510),S=v(S,d,w,h,b[E+6],9,-1069501632),h=v(h,S,d,w,b[E+11],14,643717713),w=v(w,h,S,d,b[E],20,-373897302),d=v(d,w,h,S,b[E+5],5,-701558691),S=v(S,d,w,h,b[E+10],9,38016083),h=v(h,S,d,w,b[E+15],14,-660478335),w=v(w,h,S,d,b[E+4],20,-405537848),d=v(d,w,h,S,b[E+9],5,568446438),S=v(S,d,w,h,b[E+14],9,-1019803690),h=v(h,S,d,w,b[E+3],14,-187363961),w=v(w,h,S,d,b[E+8],20,1163531501),d=v(d,w,h,S,b[E+13],5,-1444681467),S=v(S,d,w,h,b[E+2],9,-51403784),h=v(h,S,d,w,b[E+7],14,1735328473),w=v(w,h,S,d,b[E+12],20,-1926607734),d=m(d,w,h,S,b[E+5],4,-378558),S=m(S,d,w,h,b[E+8],11,-2022574463),h=m(h,S,d,w,b[E+11],16,1839030562),w=m(w,h,S,d,b[E+14],23,-35309556),d=m(d,w,h,S,b[E+1],4,-1530992060),S=m(S,d,w,h,b[E+4],11,1272893353),h=m(h,S,d,w,b[E+7],16,-155497632),w=m(w,h,S,d,b[E+10],23,-1094730640),d=m(d,w,h,S,b[E+13],4,681279174),S=m(S,d,w,h,b[E],11,-358537222),h=m(h,S,d,w,b[E+3],16,-722521979),w=m(w,h,S,d,b[E+6],23,76029189),d=m(d,w,h,S,b[E+9],4,-640364487),S=m(S,d,w,h,b[E+12],11,-421815835),h=m(h,S,d,w,b[E+15],16,530742520),w=m(w,h,S,d,b[E+2],23,-995338651),d=g(d,w,h,S,b[E],6,-198630844),S=g(S,d,w,h,b[E+7],10,1126891415),h=g(h,S,d,w,b[E+14],15,-1416354905),w=g(w,h,S,d,b[E+5],21,-57434055),d=g(d,w,h,S,b[E+12],6,1700485571),S=g(S,d,w,h,b[E+3],10,-1894986606),h=g(h,S,d,w,b[E+10],15,-1051523),w=g(w,h,S,d,b[E+1],21,-2054922799),d=g(d,w,h,S,b[E+8],6,1873313359),S=g(S,d,w,h,b[E+15],10,-30611744),h=g(h,S,d,w,b[E+6],15,-1560198380),w=g(w,h,S,d,b[E+13],21,1309151649),d=g(d,w,h,S,b[E+4],6,-145523070),S=g(S,d,w,h,b[E+11],10,-1120210379),h=g(h,S,d,w,b[E+2],15,718787259),w=g(w,h,S,d,b[E+9],21,-343485551),d=a(d,R),w=a(w,O),h=a(h,k),S=a(S,U)}return[d,w,h,S]}function s(b){if(b.length===0)return[];const x=b.length*8,d=new Uint32Array(r(x));for(let w=0;w<x;w+=8)d[w>>5]|=(b[w/8]&255)<<w%32;return d}function a(b,x){const d=(b&65535)+(x&65535);return(b>>16)+(x>>16)+(d>>16)<<16|d&65535}function l(b,x){return b<<x|b>>>32-x}function c(b,x,d,w,h,S){return a(l(a(a(x,b),a(w,S)),h),d)}function f(b,x,d,w,h,S,E){return c(x&d|~x&w,b,x,h,S,E)}function v(b,x,d,w,h,S,E){return c(x&w|d&~w,b,x,h,S,E)}function m(b,x,d,w,h,S,E){return c(x^d^w,b,x,h,S,E)}function g(b,x,d,w,h,S,E){return c(d^(x|~w),b,x,h,S,E)}var p=e;return Vi.default=p,Vi}var qh;function ZT(){if(qh)return Gi;qh=1,Object.defineProperty(Gi,"__esModule",{value:!0}),Gi.default=void 0;var e=r(gv()),t=r(qT());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v3",48,t.default);return Gi.default=s,Gi}var Yi={},Xi={},Zh;function GT(){if(Zh)return Xi;Zh=1,Object.defineProperty(Xi,"__esModule",{value:!0}),Xi.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return Xi.default=t,Xi}var Gh;function KT(){if(Gh)return Yi;Gh=1,Object.defineProperty(Yi,"__esModule",{value:!0}),Yi.default=void 0;var e=i(GT()),t=i(pv()),r=Ma();function i(l){return l&&l.__esModule?l:{default:l}}function s(l,c,f){if(e.default.randomUUID&&!c&&!l)return e.default.randomUUID();l=l||{};const v=l.random||(l.rng||t.default)();if(v[6]=v[6]&15|64,v[8]=v[8]&63|128,c){f=f||0;for(let m=0;m<16;++m)c[f+m]=v[m];return c}return(0,r.unsafeStringify)(v)}var a=s;return Yi.default=a,Yi}var Ji={},Qi={},Kh;function VT(){if(Kh)return Qi;Kh=1,Object.defineProperty(Qi,"__esModule",{value:!0}),Qi.default=void 0;function e(s,a,l,c){switch(s){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(s,a){return s<<a|s>>>32-a}function r(s){const a=[1518500249,1859775393,2400959708,3395469782],l=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof s=="string"){const m=unescape(encodeURIComponent(s));s=[];for(let g=0;g<m.length;++g)s.push(m.charCodeAt(g))}else Array.isArray(s)||(s=Array.prototype.slice.call(s));s.push(128);const c=s.length/4+2,f=Math.ceil(c/16),v=new Array(f);for(let m=0;m<f;++m){const g=new Uint32Array(16);for(let p=0;p<16;++p)g[p]=s[m*64+p*4]<<24|s[m*64+p*4+1]<<16|s[m*64+p*4+2]<<8|s[m*64+p*4+3];v[m]=g}v[f-1][14]=(s.length-1)*8/Math.pow(2,32),v[f-1][14]=Math.floor(v[f-1][14]),v[f-1][15]=(s.length-1)*8&4294967295;for(let m=0;m<f;++m){const g=new Uint32Array(80);for(let h=0;h<16;++h)g[h]=v[m][h];for(let h=16;h<80;++h)g[h]=t(g[h-3]^g[h-8]^g[h-14]^g[h-16],1);let p=l[0],b=l[1],x=l[2],d=l[3],w=l[4];for(let h=0;h<80;++h){const S=Math.floor(h/20),E=t(p,5)+e(S,b,x,d)+w+a[S]+g[h]>>>0;w=d,d=x,x=t(b,30)>>>0,b=p,p=E}l[0]=l[0]+p>>>0,l[1]=l[1]+b>>>0,l[2]=l[2]+x>>>0,l[3]=l[3]+d>>>0,l[4]=l[4]+w>>>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 i=r;return Qi.default=i,Qi}var Vh;function YT(){if(Vh)return Ji;Vh=1,Object.defineProperty(Ji,"__esModule",{value:!0}),Ji.default=void 0;var e=r(gv()),t=r(VT());function r(a){return a&&a.__esModule?a:{default:a}}var s=(0,e.default)("v5",80,t.default);return Ji.default=s,Ji}var eo={},Yh;function XT(){if(Yh)return eo;Yh=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.default=void 0;var e="00000000-0000-0000-0000-000000000000";return eo.default=e,eo}var to={},Xh;function JT(){if(Xh)return to;Xh=1,Object.defineProperty(to,"__esModule",{value:!0}),to.default=void 0;var e=t(La());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 to.default=i,to}var Jh;function QT(){return Jh||(Jh=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 v.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 l.default}});var t=m(HT()),r=m(ZT()),i=m(KT()),s=m(YT()),a=m(XT()),l=m(JT()),c=m(La()),f=m(Ma()),v=m(hv());function m(g){return g&&g.__esModule?g:{default:g}}})(Al)),Al}var Tl,Qh;function eR(){if(Qh)return Tl;Qh=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={},l=this.srcAlphabet.length,c=this.dstAlphabet.length,f=t.length,v=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*l+a[r],i>=c?(a[s++]=parseInt(i/c,10),i=i%c):s>0&&(a[s++]=0);f=s,v=this.dstAlphabet.slice(i,i+1).concat(v)}while(s!==0);return v},e.prototype.isValid=function(t){for(var r=0;r<t.length;++r)if(this.srcAlphabet.indexOf(t[r])===-1)return!1;return!0},Tl=e,Tl}var Rl,eg;function tR(){if(eg)return Rl;eg=1;var e=eR();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",Rl=t,Rl}var Pl,tg;function rR(){if(tg)return Pl;tg=1;const{v4:e,validate:t}=QT(),r=tR(),i={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},s={consistentLength:!0};let a;const l=(v,m,g)=>{const p=m(v.toLowerCase().replace(/-/g,""));return!g||!g.consistentLength?p:p.padStart(g.shortIdLength,g.paddingChar)},c=(v,m)=>{const p=m(v).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[p[1],p[2],p[3],p[4],p[5]].join("-")},f=v=>Math.ceil(Math.log(2**128)/Math.log(v));return Pl=(()=>{const v=(m,g)=>{const p=m||i.flickrBase58,b={...s,...g};if([...new Set(Array.from(p))].length!==p.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const x=f(p.length),d={shortIdLength:x,consistentLength:b.consistentLength,paddingChar:p[0]},w=r(r.HEX,p),h=r(p,r.HEX),S=()=>l(e(),w,d),R={alphabet:p,fromUUID:O=>l(O,w,d),maxLength:x,generate:S,new:S,toUUID:O=>c(O,h),uuid:e,validate:(O,k=!1)=>{if(!O||typeof O!="string")return!1;const U=b.consistentLength?O.length===x:O.length<=x,F=O.split("").every(D=>p.includes(D));return k===!1?U&&F:U&&F&&t(c(O,h))}};return Object.freeze(R),R};return v.constants=i,v.uuid=e,v.generate=()=>(a||(a=v(i.flickrBase58).generate),a()),v})(),Pl}var Hc=rR();const mv=({depth:e,height:t=24,width:r=11,showLines:i=!0,stroke:s="rgb(241, 245, 249)"})=>{const a=`indent_line_${Hc.generate()}`;return M.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[M.jsx("defs",{children:M.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:M.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,stroke:s})})}),i?M.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):M.jsx("rect",{fill:i?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},vv=({show:e,expanded:t,onClick:r,variant:i="arrow"})=>e?M.jsx("div",{className:"flex h-6 w-5 items-center",onClick:s=>r&&r(s),children:(()=>{switch(i){case"arrow":return M.jsx(et.FdDown,{className:We(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?M.jsx(et.FdDown,{}):M.jsx(et.FdRight,{});default:return M.jsx(et.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):M.jsx("div",{className:"flex h-6 w-3 items-center"}),qc=({node:e,depth:t,expandedKeys:r,selectedKeys:i,actions:s,searchQuery:a,renderNode:l,onNodeClick:c})=>{var b;const{key:f,children:v}=e,m=W.useMemo(()=>({expanded:r.includes(e.key),selected:i.includes(e.key)}),[r,e.key,i]),g=l&&typeof l=="function"?l(e,t,m,s,a):oR(e,t,m,c);return!((b=e.options)!=null&&b.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?M.jsxs(M.Fragment,{children:[M.jsx("div",{className:"flex items-center space-x-2",children:g},f),iR(v||[],t,a,r,i,m.expanded,s,c,l)]}):null},nR=function(e,t){var l;const{title:r,icon:i,subtitle:s}=e;let a=null;return i&&(a=M.jsx(dv,{children:i})),M.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,M.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),s&&M.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:s})]})},iR=function(e,t,r,i,s,a,l,c,f){var v,m;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((v=e[0].data)==null?void 0:v.nodeType)||((m=e[0].data)==null?void 0:m.type))?e:e.sort((g,p)=>o0(g.title,p.title))).map(g=>M.jsx(qc,{actions:l,node:g,searchQuery:r,depth:t+1,expandedKeys:i,selectedKeys:s,onNodeClick:c,renderNode:f},g.key)):null},oR=function(e,t,r,i){return M.jsxs(M.Fragment,{children:[M.jsx(mv,{showLines:!0,depth:t}),M.jsx(vv,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),nR(e,i)]})},Ws=e=>t=>e===t,sR=function({treeData:t,renderNode:r,onNodeClick:i,onExpandNode:s,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:f,className:v}){const[m,g]=W.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));W.useEffect(()=>{c==="when-collapsed"&&m.expandedKeys.length>0||g({...m,expandedKeys:l||m.expandedKeys})},[l]);const p=W.useCallback(h=>{if(!h)return;const S=m.expandedKeys.findIndex(Ws(h.key));let E=[];S===-1?(E=[...m.expandedKeys,h.key],g(()=>({...m,expandedKeys:E})),s&&s(E)):(E=m.expandedKeys.filter(R=>R!==h.key),g(()=>({...m,expandedKeys:E})),s&&s(E))},[m]),b=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ws(h.key))===-1&&g({...m,selectedKeys:[...m.selectedKeys,h.key]})},[m]),x=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable))return;m.selectedKeys.findIndex(Ws(h.key))===-1&&g({...m,selectedKeys:[h.key]})},[m]),d=W.useCallback(h=>{var E;if(!((E=h==null?void 0:h.options)!=null&&E.selectable)){g({...m,selectedKeys:[]});return}m.selectedKeys.findIndex(Ws(h.key))!==-1&&g({...m,selectedKeys:m.selectedKeys.filter(R=>R!==h.key)})},[m]),w=W.useMemo(()=>({expand:p,select:b,selectSingle:x,deselect:d}),[d,p,b,x]);return M.jsx("div",{className:We("fd-tree",v,{"pl-2 mb-1 rounded border bg-grey-900 p-1":f}),children:t.map(h=>M.jsx(qc,{node:h,searchQuery:a||"",depth:0,expandedKeys:m.expandedKeys,selectedKeys:m.selectedKeys,actions:w,renderNode:r,onNodeClick:i},h.key))})};function ua(e){return e.of&&e.children?M.jsx(M.Fragment,{children:e.children}):null}function Xe(){return Xe=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},Xe.apply(null,arguments)}function aR(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 uR={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 yv(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var lR=/[A-Z]|^ms/g,cR=/_EMO_([^_]+?)_([^]*?)_EMO_/g,bv=function(t){return t.charCodeAt(1)===45},rg=function(t){return t!=null&&typeof t!="boolean"},Cl=yv(function(e){return bv(e)?e:e.replace(lR,"-$&").toLowerCase()}),ng=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(cR,function(i,s,a){return _r={name:s,styles:a,next:_r},s})}return uR[t]!==1&&!bv(t)&&typeof r=="number"&&r!==0?r+"px":r};function Ro(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 _r={name:s.name,styles:s.styles,next:_r},s.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)_r={name:l.name,styles:l.styles,next:_r},l=l.next;var c=a.styles+";";return c}return fR(e,t,r)}case"function":{if(e!==void 0){var f=_r,v=r(e);return _r=f,Ro(e,t,v)}break}}var m=r;if(t==null)return m;var g=t[m];return g!==void 0?g:m}function fR(e,t,r){var i="";if(Array.isArray(r))for(var s=0;s<r.length;s++)i+=Ro(e,t,r[s])+";";else for(var a in r){var l=r[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?i+=a+"{"+t[c]+"}":rg(c)&&(i+=Cl(a)+":"+ng(a,c)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var f=0;f<l.length;f++)rg(l[f])&&(i+=Cl(a)+":"+ng(a,l[f])+";");else{var v=Ro(e,t,l);switch(a){case"animation":case"animationName":{i+=Cl(a)+":"+v+";";break}default:i+=a+"{"+v+"}"}}}return i}var ig=/label:\s*([^\s;{]+)\s*(;|$)/g,_r;function dR(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="";_r=void 0;var a=e[0];if(a==null||a.raw===void 0)i=!1,s+=Ro(r,t,a);else{var l=a;s+=l[0]}for(var c=1;c<e.length;c++)if(s+=Ro(r,t,e[c]),i){var f=a;s+=f[c]}ig.lastIndex=0;for(var v="",m;(m=ig.exec(s))!==null;)v+="-"+m[1];var g=aR(s)+v;return{name:g,styles:s,next:_r}}var pR=function(t){return t()},hR=$.useInsertionEffect?$.useInsertionEffect:!1,gR=hR||pR,mR=!0;function vR(e,t,r){var i="";return r.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(i+=s+" ")}),i}var wv=function(t,r,i){var s=t.key+"-"+r.name;(i===!1||mR===!1)&&t.registered[s]===void 0&&(t.registered[s]=r.styles)},yR=function(t,r,i){wv(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)}},bR=/^((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)-.*))$/,wR=yv(function(e){return bR.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),xR=wR,SR=function(t){return t!=="theme"},og=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?xR:SR},sg=function(t,r,i){var s;if(r){var a=r.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&i&&(s=t.__emotion_forwardProp),s},ER=function(t){var r=t.cache,i=t.serialized,s=t.isStringTag;return wv(r,i,s),gR(function(){return yR(r,i,s)}),null},_R=function e(t,r){var i=t.__emotion_real===t,s=i&&t.__emotion_base||t,a,l;r!==void 0&&(a=r.label,l=r.target);var c=sg(t,r,i),f=c||og(s),v=!f("as");return function(){var m=arguments,g=i&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&g.push("label:"+a+";"),m[0]==null||m[0].raw===void 0)g.push.apply(g,m);else{var p=m[0];g.push(p[0]);for(var b=m.length,x=1;x<b;x++)g.push(m[x],p[x])}var d=uc.withEmotionCache(function(w,h,S){var E=v&&w.as||s,R="",O=[],k=w;if(w.theme==null){k={};for(var U in w)k[U]=w[U];k.theme=$.useContext(uc.ThemeContext)}typeof w.className=="string"?R=vR(h.registered,O,w.className):w.className!=null&&(R=w.className+" ");var F=dR(g.concat(O),h.registered,k);R+=h.key+"-"+F.name,l!==void 0&&(R+=" "+l);var D=v&&c===void 0?og(E):f,G={};for(var j in w)v&&j==="as"||D(j)&&(G[j]=w[j]);return G.className=R,S&&(G.ref=S),$.createElement($.Fragment,null,$.createElement(ER,{cache:h,serialized:F,isStringTag:typeof E=="string"}),$.createElement(E,G))});return d.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",d.defaultProps=t.defaultProps,d.__emotion_real=d,d.__emotion_base=s,d.__emotion_styles=g,d.__emotion_forwardProp=c,Object.defineProperty(d,"toString",{value:function(){return"."+l}}),d.withComponent=function(w,h){var S=e(w,Xe({},r,h,{shouldForwardProp:sg(d,h,!0)}));return S.apply(void 0,g)},d}},OR=["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"],va=_R.bind(null);OR.forEach(function(e){va[e]=va(e)});var AR=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},ci=new WeakMap,Us=new WeakMap,Bs={},kl=0,xv=function(e){return e&&(e.host||xv(e.parentNode))},TR=function(e,t){return t.map(function(r){if(e.contains(r))return r;var i=xv(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})},RR=function(e,t,r,i){var s=TR(t,Array.isArray(e)?e:[e]);Bs[r]||(Bs[r]=new WeakMap);var a=Bs[r],l=[],c=new Set,f=new Set(s),v=function(g){!g||c.has(g)||(c.add(g),v(g.parentNode))};s.forEach(v);var m=function(g){!g||f.has(g)||Array.prototype.forEach.call(g.children,function(p){if(c.has(p))m(p);else try{var b=p.getAttribute(i),x=b!==null&&b!=="false",d=(ci.get(p)||0)+1,w=(a.get(p)||0)+1;ci.set(p,d),a.set(p,w),l.push(p),d===1&&x&&Us.set(p,!0),w===1&&p.setAttribute(r,"true"),x||p.setAttribute(i,"true")}catch(h){console.error("aria-hidden: cannot operate on ",p,h)}})};return m(t),c.clear(),kl++,function(){l.forEach(function(g){var p=ci.get(g)-1,b=a.get(g)-1;ci.set(g,p),a.set(g,b),p||(Us.has(g)||g.removeAttribute(i),Us.delete(g)),b||g.removeAttribute(r)}),kl--,kl||(ci=new WeakMap,ci=new WeakMap,Us=new WeakMap,Bs={})}},PR=function(e,t,r){r===void 0&&(r="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),s=AR(e);return s?(i.push.apply(i,Array.from(s.querySelectorAll("[aria-live], script"))),RR(i,s,r,"aria-hidden")):function(){return null}},fc=function(e,t){return fc=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])},fc(e,t)};function Fa(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");fc(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Or=function(){return Or=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},Or.apply(this,arguments)};function Sv(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 dc(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 pc(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var i=r.call(e),s,a=[],l;try{for(;(t===void 0||t-- >0)&&!(s=i.next()).done;)a.push(s.value)}catch(c){l={error:c}}finally{try{s&&!s.done&&(r=i.return)&&r.call(i)}finally{if(l)throw l.error}}return a}function ya(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 la="right-scroll-bar-position",ca="width-before-scroll-bar",CR="with-scroll-bars-hidden",kR="--removed-body-scroll-bar-size";function $l(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function $R(e,t){var r=W.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 IR=typeof window<"u"?$.useLayoutEffect:$.useEffect,ag=new WeakMap;function LR(e,t){var r=$R(null,function(i){return e.forEach(function(s){return $l(s,i)})});return IR(function(){var i=ag.get(r);if(i){var s=new Set(i),a=new Set(e),l=r.current;s.forEach(function(c){a.has(c)||$l(c,null)}),a.forEach(function(c){s.has(c)||$l(c,l)})}ag.set(r,e)},[e]),r}function MR(e){return e}function FR(e,t){t===void 0&&(t=MR);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 l=t(a,i);return r.push(l),function(){r=r.filter(function(c){return c!==l})}},assignSyncMedium:function(a){for(i=!0;r.length;){var l=r;r=[],l.forEach(a)}r={push:function(c){return a(c)},filter:function(){return r}}},assignMedium:function(a){i=!0;var l=[];if(r.length){var c=r;r=[],c.forEach(a),l=r}var f=function(){var m=l;l=[],m.forEach(a)},v=function(){return Promise.resolve().then(f)};v(),r={push:function(m){l.push(m),v()},filter:function(m){return l=l.filter(m),r}}}};return s}function DR(e){e===void 0&&(e={});var t=FR(null);return t.options=Or({async:!0,ssr:!1},e),t}var Ev=function(e){var t=e.sideCar,r=Sv(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 $.createElement(i,Or({},r))};Ev.isSideCarExport=!0;function NR(e,t){return e.useMedium(t),Ev}var _v=DR(),Il=function(){},Da=$.forwardRef(function(e,t){var r=$.useRef(null),i=$.useState({onScrollCapture:Il,onWheelCapture:Il,onTouchMoveCapture:Il}),s=i[0],a=i[1],l=e.forwardProps,c=e.children,f=e.className,v=e.removeScrollBar,m=e.enabled,g=e.shards,p=e.sideCar,b=e.noRelative,x=e.noIsolation,d=e.inert,w=e.allowPinchZoom,h=e.as,S=h===void 0?"div":h,E=e.gapMode,R=Sv(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),O=p,k=LR([r,t]),U=Or(Or({},R),s);return $.createElement($.Fragment,null,m&&$.createElement(O,{sideCar:_v,removeScrollBar:v,shards:g,noRelative:b,noIsolation:x,inert:d,setCallbacks:a,allowPinchZoom:!!w,lockRef:r,gapMode:E}),l?$.cloneElement($.Children.only(c),Or(Or({},U),{ref:k})):$.createElement(S,Or({},U,{className:f,ref:k}),c))});Da.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Da.classNames={fullWidth:ca,zeroRight:la};var jR=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function zR(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=jR();return t&&e.setAttribute("nonce",t),e}function WR(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function UR(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var BR=function(){var e=0,t=null;return{add:function(r){e==0&&(t=zR())&&(WR(t,r),UR(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},HR=function(){var e=BR();return function(t,r){$.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},Ov=function(){var e=HR(),t=function(r){var i=r.styles,s=r.dynamic;return e(i,s),null};return t},qR={left:0,top:0,right:0,gap:0},Ll=function(e){return parseInt(e||"",10)||0},ZR=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[Ll(r),Ll(i),Ll(s)]},GR=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return qR;var t=ZR(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])}},KR=Ov(),hi="data-scroll-locked",VR=function(e,t,r,i){var s=e.left,a=e.top,l=e.right,c=e.gap;return r===void 0&&(r="margin"),`
23
- .`.concat(CR,` {
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=Fa(x);return E===""?null:[x,,E]}),i:3,u:ld,l:(m,w,x)=>u("p",{key:x.key},w(m.children,x))},22:{t:["["],o:bi(dP),i:0,u:m=>(g[m[1]]={target:m[2],title:m[4]},{}),l:ud},23:{t:["!["],o:Bn(fP),i:0,u:m=>({alt:m[1]?Yr(m[1]):void 0,ref:m[2]}),l:(m,w,x)=>g[m.ref]?u("img",{key:x.key,alt:m.alt,src:n(g[m.ref].target,"img","src"),title:g[m.ref].title}):null},24:{t:m=>m[0]==="["&&m.indexOf("](")===-1,o:bi(pP),i:0,u:(m,w,x)=>({children:w(m[1],x),fallbackChildren:m[0],ref:m[2]}),l:(m,w,x)=>g[m.ref]?u("a",{key:x.key,href:n(g[m.ref].target,"a","href"),title:g[m.ref].title},w(m.children,x)):u("span",{key:x.key},m.fallbackChildren)},25:{t:["|"],o:xn(jv),i:1,u:jP,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:Wv(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:Wv(k,P)},w(F,x))}))})))}},27:{o:ko(function(m,w){let x;return Fl(m,":")&&(x=EP.exec(m)),x||AP.exec(m)}),i:4,u(m){const w=m[0];return{text:w.indexOf("&")===-1?w:w.replace(iP,(x,k)=>t.namedCodesToUnicode[k]||x)}},l:m=>m.text},28:{t:["**","__"],o:Bn(wP),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:Bn(xP),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:Bn(kP),i:1,u:m=>({text:m[1],type:"27"})},31:{t:["=="],o:Bn(SP),i:3,u:ld,l:(m,w,x)=>u("mark",{key:x.key},w(m.children,x))},32:{t:["~~"],o:Bn(_P),i:3,u:ld,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],L=m[P];if(!L.t||$P(k,E,L.t)){var V=L.o(k,E);if(V&&V[0]){k=k.substring(V[0].length);var $=L.u(V,x,E);E.prevCapture+=V[0],$.type||($.type=P),R.push($);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(JC,`
22
+ `).replace(tP,"").replace(gP," ")})(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 L=0;L<k.length;L++){E.key=L;const V=x(k[L],E),$=Hv(V);$&&P?F[F.length-1]+=V:V!==null&&F.push(V),P=$}return E.key=R,F}return(function(R,F,P){const L=m[R.type].l;return w?w(()=>L(R,F,P),R,F,P):L(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,ta),key:m.identifier},m.identifier,v(S(m.footnote,{inline:!0})))}))):y}const nc=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,HC);return B.cloneElement(qP(t,r),n)},Uv=({kind:e,customIcon:t})=>{const r={"text-yellow-400":e==="warning","text-red-500":e==="danger"||e==="error","text-primary":e==="info","text-green-500":e==="message"};if(t)return A.jsx(t,{className:tt("flex-none size-6",r)});switch(e){case"error":case"danger":return A.jsx(ct.FdSanityCheckInfo,{className:tt("flex-none size-6",r)});case"info":return A.jsx(A.Fragment,{children:A.jsx(ct.FdInfoBold,{className:tt("flex-none size-6",r)})});case"warning":return A.jsx(A.Fragment,{children:A.jsx(ct.FdWarningDanger,{className:tt("flex-none size-6",r)})});case"message":return A.jsx(A.Fragment,{children:A.jsx(ct.FdInfoBold,{className:tt("flex-none size-6",r)})});default:return null}},VP=({id:e,onClose:t,kind:r,message:n,markdown:o,customIcon:a})=>{const l=({className:c}={})=>A.jsx("button",{onClick:t,className:tt("flex justify-center p-1",c),children:A.jsx(ct.FdCloseNaked,{className:"size-4 font-thin stroke-current"})});return A.jsx("div",{className:tt("relative flex items-center rounded-lg py-2 px-4 text-sm text-slate-500 bg-white shadow-md"),children:typeof n=="string"?A.jsxs("div",{className:"w-full flex justify-between gap-x-3",children:[A.jsx("div",{className:"pt-1",children:A.jsx(Uv,{kind:r,customIcon:a})}),A.jsx("div",{className:"flex items-center gap-1 prose",children:o?A.jsx(nc,{children:n}):A.jsx(A.Fragment,{children:n})}),l()]}):A.jsxs("div",{className:"flex items-start",children:[A.jsx("div",{className:"flex flex-col gap-2 justify-between",children:n.filter(c=>c.messages.length>0).map(c=>A.jsxs(A.Fragment,{children:[c.title&&A.jsxs("span",{className:"flex items-center gap-1 font-bold capitalize",children:[A.jsx(Uv,{kind:r,customIcon:a}),A.jsxs("span",{children:[c.title," :"]})]}),A.jsx("ul",{className:tt("list-disc",{"px-12":c.title,"px-6":!c.title}),children:c.messages.map(u=>A.jsx("li",{children:o?A.jsx(nc,{children:u}):A.jsx(A.Fragment,{children:u})}))})]}))}),l({className:"absolute top-1 right-1"})]})},e)},gy=({children:e,size:t,className:r,...n})=>A.jsx("div",{style:{"--width":`${t||24}px`},className:tt("h-6 flex items-center pr-1 w-[--width]",r),...n,children:e});var fd={},ra={},sl={},qv;function vy(){if(qv)return sl;qv=1,Object.defineProperty(sl,"__esModule",{value:!0}),sl.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 sl}var oo={},na={},ia={},Vv;function GP(){if(Vv)return ia;Vv=1,Object.defineProperty(ia,"__esModule",{value:!0}),ia.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 ia.default=e,ia}var Gv;function Ac(){if(Gv)return na;Gv=1,Object.defineProperty(na,"__esModule",{value:!0}),na.default=void 0;var e=t(GP());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 na.default=n,na}var Kv;function Tc(){if(Kv)return oo;Kv=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.default=void 0,oo.unsafeStringify=n;var e=t(Ac());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 oo.default=a,oo}var Zv;function KP(){if(Zv)return ra;Zv=1,Object.defineProperty(ra,"__esModule",{value:!0}),ra.default=void 0;var e=r(vy()),t=Tc();function r(p){return p&&p.__esModule?p:{default:p}}let n,o,a=0,l=0;function c(p,h,f){let g=h&&f||0;const b=h||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[g++]=x>>>24&255,b[g++]=x>>>16&255,b[g++]=x>>>8&255,b[g++]=x&255;const k=y/4294967296*1e4&268435455;b[g++]=k>>>8&255,b[g++]=k&255,b[g++]=k>>>24&15|16,b[g++]=k>>>16&255,b[g++]=v>>>8|128,b[g++]=v&255;for(let E=0;E<6;++E)b[g+E]=S[E];return h||(0,t.unsafeStringify)(b)}var u=c;return ra.default=u,ra}var oa={},Wn={},aa={},Yv;function my(){if(Yv)return aa;Yv=1,Object.defineProperty(aa,"__esModule",{value:!0}),aa.default=void 0;var e=t(Ac());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 aa.default=n,aa}var Xv;function by(){if(Xv)return Wn;Xv=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.URL=Wn.DNS=void 0,Wn.default=l;var e=Tc(),t=r(my());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";Wn.DNS=o;const a="6ba7b811-9dad-11d1-80b4-00c04fd430c8";Wn.URL=a;function l(c,u,p){function h(f,g,b,S){var v;if(typeof f=="string"&&(f=n(f)),typeof g=="string"&&(g=(0,t.default)(g)),((v=g)===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(g),y.set(f,g.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{h.name=c}catch{}return h.DNS=o,h.URL=a,h}return Wn}var sa={},Jv;function ZP(){if(Jv)return sa;Jv=1,Object.defineProperty(sa,"__esModule",{value:!0}),sa.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=h(v,y,m,w,b[x+5],4,-378558),w=h(w,v,y,m,b[x+8],11,-2022574463),m=h(m,w,v,y,b[x+11],16,1839030562),y=h(y,m,w,v,b[x+14],23,-35309556),v=h(v,y,m,w,b[x+1],4,-1530992060),w=h(w,v,y,m,b[x+4],11,1272893353),m=h(m,w,v,y,b[x+7],16,-155497632),y=h(y,m,w,v,b[x+10],23,-1094730640),v=h(v,y,m,w,b[x+13],4,681279174),w=h(w,v,y,m,b[x],11,-358537222),m=h(m,w,v,y,b[x+3],16,-722521979),y=h(y,m,w,v,b[x+6],23,76029189),v=h(v,y,m,w,b[x+9],4,-640364487),w=h(w,v,y,m,b[x+12],11,-421815835),m=h(m,w,v,y,b[x+15],16,530742520),y=h(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 h(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 g=e;return sa.default=g,sa}var Qv;function YP(){if(Qv)return oa;Qv=1,Object.defineProperty(oa,"__esModule",{value:!0}),oa.default=void 0;var e=r(by()),t=r(ZP());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v3",48,t.default);return oa.default=o,oa}var la={},ca={},em;function XP(){if(em)return ca;em=1,Object.defineProperty(ca,"__esModule",{value:!0}),ca.default=void 0;var t={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};return ca.default=t,ca}var tm;function JP(){if(tm)return la;tm=1,Object.defineProperty(la,"__esModule",{value:!0}),la.default=void 0;var e=n(XP()),t=n(vy()),r=Tc();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 h=0;h<16;++h)c[u+h]=p[h];return c}return(0,r.unsafeStringify)(p)}var a=o;return la.default=a,la}var ua={},da={},rm;function QP(){if(rm)return da;rm=1,Object.defineProperty(da,"__esModule",{value:!0}),da.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 h=unescape(encodeURIComponent(o));o=[];for(let f=0;f<h.length;++f)o.push(h.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 h=0;h<u;++h){const f=new Uint32Array(16);for(let g=0;g<16;++g)f[g]=o[h*64+g*4]<<24|o[h*64+g*4+1]<<16|o[h*64+g*4+2]<<8|o[h*64+g*4+3];p[h]=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 h=0;h<u;++h){const f=new Uint32Array(80);for(let m=0;m<16;++m)f[m]=p[h][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 g=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(g,5)+e(w,b,S,v)+y+a[w]+f[m]>>>0;y=v,v=S,S=t(b,30)>>>0,b=g,g=x}l[0]=l[0]+g>>>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 da.default=n,da}var nm;function eI(){if(nm)return ua;nm=1,Object.defineProperty(ua,"__esModule",{value:!0}),ua.default=void 0;var e=r(by()),t=r(QP());function r(a){return a&&a.__esModule?a:{default:a}}var o=(0,e.default)("v5",80,t.default);return ua.default=o,ua}var fa={},im;function tI(){if(im)return fa;im=1,Object.defineProperty(fa,"__esModule",{value:!0}),fa.default=void 0;var e="00000000-0000-0000-0000-000000000000";return fa.default=e,fa}var pa={},om;function rI(){if(om)return pa;om=1,Object.defineProperty(pa,"__esModule",{value:!0}),pa.default=void 0;var e=t(Ac());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 pa.default=n,pa}var am;function nI(){return am||(am=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=h(KP()),r=h(YP()),n=h(JP()),o=h(eI()),a=h(tI()),l=h(rI()),c=h(Ac()),u=h(Tc()),p=h(my());function h(f){return f&&f.__esModule?f:{default:f}}})(fd)),fd}var pd,sm;function iI(){if(sm)return pd;sm=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},pd=e,pd}var hd,lm;function oI(){if(lm)return hd;lm=1;var e=iI();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",hd=t,hd}var gd,cm;function aI(){if(cm)return gd;cm=1;const{v4:e,validate:t}=nI(),r=oI(),n={cookieBase90:"0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ!#$%&'()*+-./:<=>?@[]^_`{|}~",flickrBase58:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ",uuid25Base36:"0123456789abcdefghijklmnopqrstuvwxyz"},o={consistentLength:!0};let a;const l=(p,h,f)=>{const g=h(p.toLowerCase().replace(/-/g,""));return!f||!f.consistentLength?g:g.padStart(f.shortIdLength,f.paddingChar)},c=(p,h)=>{const g=h(p).padStart(32,"0").match(/(\w{8})(\w{4})(\w{4})(\w{4})(\w{12})/);return[g[1],g[2],g[3],g[4],g[5]].join("-")},u=p=>Math.ceil(Math.log(2**128)/Math.log(p));return gd=(()=>{const p=(h,f)=>{const g=h||n.flickrBase58,b={...o,...f};if([...new Set(Array.from(g))].length!==g.length)throw new Error("The provided Alphabet has duplicate characters resulting in unreliable results");const S=u(g.length),v={shortIdLength:S,consistentLength:b.consistentLength,paddingChar:g[0]},y=r(r.HEX,g),m=r(g,r.HEX),w=()=>l(e(),y,v),k={alphabet:g,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(L=>g.includes(L));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})(),gd}var Pi=aI();const yy=({depth:e,height:t=24,width:r=11,showLines:n=!0,stroke:o})=>{const a=`indent_line_${Pi.generate()}`;return A.jsxs("svg",{viewBox:`0 0 ${11*e} ${t}`,width:`${11*e}`,height:t,children:[A.jsx("defs",{children:A.jsx("pattern",{id:a,x:"0",y:"0",width:r,height:t,patternUnits:"userSpaceOnUse",children:A.jsx("line",{x1:r/2,y1:"0",x2:r/2,y2:t,className:o?`stroke-[${o}]`:"stroke-body"})})}),n?A.jsx("rect",{fill:`url(#${a})`,x:"0",y:"0",width:`${11*e}`,height:t}):A.jsx("rect",{fill:n?`url(#${a})`:"",x:"0",y:"0",width:0,height:t})]})},wy=({show:e,expanded:t,onClick:r,variant:n="arrow"})=>e?A.jsx("div",{className:"flex h-6 w-5 items-center",onClick:o=>r&&r(o),children:(()=>{switch(n){case"arrow":return A.jsx(ct.FdDown,{className:tt(["h-3 w-3 transform text-grey-50 transition ease-in-out",{"rotate-0":t,"-rotate-90":!t}])});case"caret":return t?A.jsx(ct.FdDown,{}):A.jsx(ct.FdRight,{});default:return A.jsx(ct.FdDown,{className:"h-3 w-3 transform text-grey-50 transition ease-in-out"})}})()}):A.jsx("div",{className:"flex h-6 w-3 items-center"}),Xf=({node:e,depth:t,expandedKeys:r,selectedKeys:n,actions:o,searchQuery:a,renderNode:l,onNodeClick:c})=>{var b;const{key:u,children:p}=e,h=z.useMemo(()=>({expanded:r.includes(e.key),selected:n.includes(e.key)}),[r,e.key,n]),f=l&&typeof l=="function"?l(e,t,h,o,a):cI(e,t,h,c);return!((b=e.options)!=null&&b.filterable)||!a||e.title.toLowerCase().includes(a.toLowerCase())?A.jsxs(A.Fragment,{children:[A.jsx("div",{className:"flex items-center space-x-2",children:f},u),lI(p||[],t,a,r,n,h.expanded,o,c,l)]}):null},sI=function(e,t){var l;const{title:r,icon:n,subtitle:o}=e;let a=null;return n&&(a=A.jsx(gy,{children:n})),A.jsxs("div",{className:"flex flex-1 select-none items-center overflow-hidden text-ellipsis whitespace-nowrap",draggable:(l=e.options)==null?void 0:l.draggable,onClick:()=>{t&&t(e)},children:[a,A.jsx("div",{style:{lineHeight:"24px",fontSize:11},children:r}),o&&A.jsx("div",{className:"mx-1 min-w-0 text-xxs italic text-fd-gray-mild",children:o})]})},lI=function(e,t,r,n,o,a,l,c,u){var p,h;return e.length&&a?(["dataclass-attribute","datasource-attribute","method"].includes(((p=e[0].data)==null?void 0:p.nodeType)||((h=e[0].data)==null?void 0:h.type))?e:e.sort((f,g)=>u1(f.title,g.title))).map(f=>A.jsx(Xf,{actions:l,node:f,searchQuery:r,depth:t+1,expandedKeys:n,selectedKeys:o,onNodeClick:c,renderNode:u},f.key)):null},cI=function(e,t,r,n){return A.jsxs(A.Fragment,{children:[A.jsx(yy,{showLines:!0,depth:t}),A.jsx(wy,{show:e.children&&e.children.length>0||!1,expanded:r.expanded}),sI(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 uI=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M21.66 6.28a.5.5 0 0 0 0-.697l-.967-.993a.5.5 0 0 0-.716 0L8.499 16.373 4.023 11.78a.5.5 0 0 0-.716 0l-.967.993a.5.5 0 0 0 0 .697l5.889 6.046.014-.014a.377.377 0 0 0 .54 0L21.66 6.28Z",fill:"currentColor"})}),dI=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M10.84 2.714c0-.394.346-.714.773-.714h.774c.427 0 .773.32.773.714V9.5h5.025c.427 0 .773.32.773.714v3.572H5.042v-3.572c0-.394.346-.714.773-.714h5.025V2.714ZM5.042 14.5h13.916l1.034 6.685c.067.43-.295.815-.765.815h-2.1l-.681-5.929L15.764 22h-3.236l-.721-2.143L11.086 22h-2.85l-.682-3.929L6.872 22H4.773c-.47 0-.832-.385-.765-.815L5.042 14.5Z",fill:"currentColor"})}),Rc=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M4.497 5.361a.5.5 0 0 0 0 .707L10.429 12l-5.932 5.932a.5.5 0 0 0 0 .707l.864.864a.5.5 0 0 0 .707 0L12 13.571l5.932 5.932a.5.5 0 0 0 .707 0l.864-.864a.5.5 0 0 0 0-.707L13.571 12l5.932-5.932a.5.5 0 0 0 0-.707l-.864-.864a.5.5 0 0 0-.707 0L12 10.429 6.068 4.497a.5.5 0 0 0-.707 0l-.864.864Z",fill:"currentColor"})}),fI=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M11.701 18.797c.206.195.52.195.726 0l2.487-2.349-.008-.007 6.973-6.585a.58.58 0 0 0 0-.835l-2.045-1.932a.524.524 0 0 0-.726 0l-7.052 6.66-7.051-6.66a.524.524 0 0 0-.726 0L2.234 9.021a.58.58 0 0 0 0 .835l9.467 8.941Z",fill:"currentColor"})}),pI=e=>A.jsx("svg",{width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:A.jsx("path",{d:"M20.673 5.133c.136.24.053.55-.185.69l-16.25 9.623a.487.487 0 0 1-.676-.18l-.497-.884a.513.513 0 0 1 .185-.69L19.5 4.069c.238-.141.54-.06.676.18l.497.884ZM20.938 9.657c.136.24.053.55-.185.69L7.925 17.944a.487.487 0 0 1-.676-.181l-.497-.884a.513.513 0 0 1 .185-.69l12.829-7.597c.237-.14.54-.06.675.181l.497.884ZM20.16 15.376c.237-.14.32-.45.184-.69l-.497-.884a.487.487 0 0 0-.676-.18l-7.695 4.556a.513.513 0 0 0-.185.69l.498.884c.135.24.437.322.675.181l7.695-4.557Z",fill:"currentColor"})}),hI=(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},gI=(e,t)=>({classGroupId:e,validator:t}),xy=(e=new Map,t=null,r)=>({nextPart:e,validators:t,classGroupId:r}),ic="-",um=[],vI="arbitrary..",mI=e=>{const t=yI(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:o=>{if(o.startsWith("[")&&o.endsWith("]"))return bI(o);const a=o.split(ic),l=a[0]===""&&a.length>1?1:0;return Sy(a,l,t)},getConflictingClassGroupIds:(o,a)=>{if(a){const l=n[o],c=r[o];return l?c?hI(c,l):l:c||um}return r[o]||um}}},Sy=(e,t,r)=>{if(e.length-t===0)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const u=Sy(e,t+1,o);if(u)return u}const a=r.validators;if(a===null)return;const l=t===0?e.join(ic):e.slice(t).join(ic),c=a.length;for(let u=0;u<c;u++){const p=a[u];if(p.validator(l))return p.classGroupId}},bI=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?vI+n:void 0})(),yI=e=>{const{theme:t,classGroups:r}=e;return wI(r,t)},wI=(e,t)=>{const r=xy();for(const n in e){const o=e[n];Jf(o,r,n,t)}return r},Jf=(e,t,r,n)=>{const o=e.length;for(let a=0;a<o;a++){const l=e[a];xI(l,t,r,n)}},xI=(e,t,r,n)=>{if(typeof e=="string"){SI(e,t,r);return}if(typeof e=="function"){_I(e,t,r,n);return}EI(e,t,r,n)},SI=(e,t,r)=>{const n=e===""?t:_y(t,e);n.classGroupId=r},_I=(e,t,r,n)=>{if(kI(e)){Jf(e(n),t,r,n);return}t.validators===null&&(t.validators=[]),t.validators.push(gI(r,e))},EI=(e,t,r,n)=>{const o=Object.entries(e),a=o.length;for(let l=0;l<a;l++){const[c,u]=o[l];Jf(u,_y(t,c),r,n)}},_y=(e,t)=>{let r=e;const n=t.split(ic),o=n.length;for(let a=0;a<o;a++){const l=n[a];let c=r.nextPart.get(l);c||(c=xy(),r.nextPart.set(l,c)),r=c}return r},kI=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,OI=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)}}},df="!",dm=":",AI=[],fm=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),TI=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=o=>{const a=[];let l=0,c=0,u=0,p;const h=o.length;for(let v=0;v<h;v++){const y=o[v];if(l===0&&c===0){if(y===dm){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 g=f,b=!1;f.endsWith(df)?(g=f.slice(0,-1),b=!0):f.startsWith(df)&&(g=f.slice(1),b=!0);const S=p&&p>u?p-u:void 0;return fm(a,b,g,S)};if(t){const o=t+dm,a=n;n=l=>l.startsWith(o)?a(l.slice(o.length)):fm(AI,!1,l,void 0,!0)}if(r){const o=n;n=a=>r({className:a,parseClassName:o})}return n},RI=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}},CI=e=>({cache:OI(e.cacheSize),parseClassName:TI(e),sortModifiers:RI(e),...mI(e)}),PI=/\s+/,II=(e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:a}=t,l=[],c=e.trim().split(PI);let u="";for(let p=c.length-1;p>=0;p-=1){const h=c[p],{isExternal:f,modifiers:g,hasImportantModifier:b,baseClassName:S,maybePostfixModifierPosition:v}=r(h);if(f){u=h+(u.length>0?" "+u:u);continue}let y=!!v,m=n(y?S.substring(0,v):S);if(!m){if(!y){u=h+(u.length>0?" "+u:u);continue}if(m=n(S),!m){u=h+(u.length>0?" "+u:u);continue}y=!1}const w=g.length===0?"":g.length===1?g[0]:a(g).join(":"),x=b?w+df: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=h+(u.length>0?" "+u:u)}return u},NI=(...e)=>{let t=0,r,n,o="";for(;t<e.length;)(r=e[t++])&&(n=Ey(r))&&(o&&(o+=" "),o+=n);return o},Ey=e=>{if(typeof e=="string")return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ey(e[n]))&&(r&&(r+=" "),r+=t);return r},pm=(e,...t)=>{let r,n,o,a;const l=u=>{const p=t.reduce((h,f)=>f(h),e());return r=CI(p),n=r.cache.get,o=r.cache.set,a=c,c(u)},c=u=>{const p=n(u);if(p)return p;const h=II(u,r);return o(u,h),h};return a=l,(...u)=>a(NI(...u))},DI=[],At=e=>{const t=r=>r[e]||DI;return t.isThemeGetter=!0,t},ky=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oy=/^\((?:(\w[\w-]*):)?(.+)\)$/i,MI=/^\d+\/\d+$/,LI=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,$I=/\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$/,zI=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,jI=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,FI=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,ao=e=>MI.test(e),Ne=e=>!!e&&!Number.isNaN(Number(e)),Un=e=>!!e&&Number.isInteger(Number(e)),vd=e=>e.endsWith("%")&&Ne(e.slice(0,-1)),Sn=e=>LI.test(e),HI=()=>!0,BI=e=>$I.test(e)&&!zI.test(e),Ay=()=>!1,WI=e=>jI.test(e),UI=e=>FI.test(e),qI=e=>!we(e)&&!xe(e),VI=e=>Ro(e,Cy,Ay),we=e=>ky.test(e),yi=e=>Ro(e,Py,BI),md=e=>Ro(e,XI,Ne),hm=e=>Ro(e,Ty,Ay),GI=e=>Ro(e,Ry,UI),ll=e=>Ro(e,Iy,WI),xe=e=>Oy.test(e),ha=e=>Co(e,Py),KI=e=>Co(e,JI),gm=e=>Co(e,Ty),ZI=e=>Co(e,Cy),YI=e=>Co(e,Ry),cl=e=>Co(e,Iy,!0),Ro=(e,t,r)=>{const n=ky.exec(e);return n?n[1]?t(n[1]):r(n[2]):!1},Co=(e,t,r=!1)=>{const n=Oy.exec(e);return n?n[1]?t(n[1]):r:!1},Ty=e=>e==="position"||e==="percentage",Ry=e=>e==="image"||e==="url",Cy=e=>e==="length"||e==="size"||e==="bg-size",Py=e=>e==="length",XI=e=>e==="number",JI=e=>e==="family-name",Iy=e=>e==="shadow",vm=()=>{const e=At("color"),t=At("font"),r=At("text"),n=At("font-weight"),o=At("tracking"),a=At("leading"),l=At("breakpoint"),c=At("container"),u=At("spacing"),p=At("radius"),h=At("shadow"),f=At("inset-shadow"),g=At("text-shadow"),b=At("drop-shadow"),S=At("blur"),v=At("perspective"),y=At("aspect"),m=At("ease"),w=At("animate"),x=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],E=()=>[...k(),xe,we],R=()=>["auto","hidden","clip","visible","scroll"],F=()=>["auto","contain","none"],P=()=>[xe,we,u],L=()=>[ao,"full","auto",...P()],V=()=>[Un,"none","subgrid",xe,we],$=()=>["auto",{span:["full",Un,xe,we]},Un,xe,we],I=()=>[Un,"auto",xe,we],j=()=>["auto","min","max","fr",xe,we],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=()=>[ao,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...P()],K=()=>[e,xe,we],ge=()=>[...k(),gm,hm,{position:[xe,we]}],D=()=>["no-repeat",{repeat:["","x","y","space","round"]}],U=()=>["auto","cover","contain",ZI,VI,{size:[xe,we]}],ee=()=>[vd,ha,yi],te=()=>["","none","full",p,xe,we],J=()=>["",Ne,ha,yi],se=()=>["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=()=>[Ne,vd,gm,hm],le=()=>["","none",S,xe,we],pe=()=>["none",Ne,xe,we],de=()=>["none",Ne,xe,we],ye=()=>[Ne,xe,we],Z=()=>[ao,"full",...P()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[Sn],breakpoint:[Sn],color:[HI],container:[Sn],"drop-shadow":[Sn],ease:["in","out","in-out"],font:[qI],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[Sn],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[Sn],shadow:[Sn],spacing:["px",Ne],text:[Sn],"text-shadow":[Sn],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",ao,we,xe,y]}],container:["container"],columns:[{columns:[Ne,we,xe,c]}],"break-after":[{"break-after":x()}],"break-before":[{"break-before":x()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object: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:L()}],"inset-x":[{"inset-x":L()}],"inset-y":[{"inset-y":L()}],start:[{start:L()}],end:[{end:L()}],top:[{top:L()}],right:[{right:L()}],bottom:[{bottom:L()}],left:[{left:L()}],visibility:["visible","invisible","collapse"],z:[{z:[Un,"auto",xe,we]}],basis:[{basis:[ao,"full","auto",c,...P()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[Ne,ao,"auto","initial","none",we]}],grow:[{grow:["",Ne,xe,we]}],shrink:[{shrink:["",Ne,xe,we]}],order:[{order:[Un,"first","last","none",xe,we]}],"grid-cols":[{"grid-cols":V()}],"col-start-end":[{col:$()}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":V()}],"row-start-end":[{row:$()}],"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,ha,yi]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,xe,md]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",vd,we]}],"font-family":[{font:[KI,we,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,xe,we]}],"line-clamp":[{"line-clamp":[Ne,"none",xe,md]}],leading:[{leading:[a,...P()]}],"list-image":[{"list-image":["none",xe,we]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",xe,we]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:K()}],"text-color":[{text:K()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...se(),"wavy"]}],"text-decoration-thickness":[{decoration:[Ne,"from-font","auto",xe,yi]}],"text-decoration-color":[{decoration:K()}],"underline-offset":[{"underline-offset":[Ne,"auto",xe,we]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:P()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",xe,we]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",xe,we]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ge()}],"bg-repeat":[{bg:D()}],"bg-size":[{bg:U()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},Un,xe,we],radial:["",xe,we],conic:[Un,xe,we]},YI,GI]}],"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:[...se(),"hidden","none"]}],"divide-style":[{divide:[...se(),"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:[...se(),"none","hidden"]}],"outline-offset":[{"outline-offset":[Ne,xe,we]}],"outline-w":[{outline:["",Ne,ha,yi]}],"outline-color":[{outline:K()}],shadow:[{shadow:["","none",h,cl,ll]}],"shadow-color":[{shadow:K()}],"inset-shadow":[{"inset-shadow":["none",f,cl,ll]}],"inset-shadow-color":[{"inset-shadow":K()}],"ring-w":[{ring:J()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:K()}],"ring-offset-w":[{"ring-offset":[Ne,yi]}],"ring-offset-color":[{"ring-offset":K()}],"inset-ring-w":[{"inset-ring":J()}],"inset-ring-color":[{"inset-ring":K()}],"text-shadow":[{"text-shadow":["none",g,cl,ll]}],"text-shadow-color":[{"text-shadow":K()}],opacity:[{opacity:[Ne,xe,we]}],"mix-blend":[{"mix-blend":[...ae(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":ae()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[Ne]}],"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":[xe,we]}],"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":[Ne]}],"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",xe,we]}],filter:[{filter:["","none",xe,we]}],blur:[{blur:le()}],brightness:[{brightness:[Ne,xe,we]}],contrast:[{contrast:[Ne,xe,we]}],"drop-shadow":[{"drop-shadow":["","none",b,cl,ll]}],"drop-shadow-color":[{"drop-shadow":K()}],grayscale:[{grayscale:["",Ne,xe,we]}],"hue-rotate":[{"hue-rotate":[Ne,xe,we]}],invert:[{invert:["",Ne,xe,we]}],saturate:[{saturate:[Ne,xe,we]}],sepia:[{sepia:["",Ne,xe,we]}],"backdrop-filter":[{"backdrop-filter":["","none",xe,we]}],"backdrop-blur":[{"backdrop-blur":le()}],"backdrop-brightness":[{"backdrop-brightness":[Ne,xe,we]}],"backdrop-contrast":[{"backdrop-contrast":[Ne,xe,we]}],"backdrop-grayscale":[{"backdrop-grayscale":["",Ne,xe,we]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[Ne,xe,we]}],"backdrop-invert":[{"backdrop-invert":["",Ne,xe,we]}],"backdrop-opacity":[{"backdrop-opacity":[Ne,xe,we]}],"backdrop-saturate":[{"backdrop-saturate":[Ne,xe,we]}],"backdrop-sepia":[{"backdrop-sepia":["",Ne,xe,we]}],"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",xe,we]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[Ne,"initial",xe,we]}],ease:[{ease:["linear","initial",m,xe,we]}],delay:[{delay:[Ne,xe,we]}],animate:[{animate:["none",w,xe,we]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[v,xe,we]}],"perspective-origin":[{"perspective-origin":E()}],rotate:[{rotate:pe()}],"rotate-x":[{"rotate-x":pe()}],"rotate-y":[{"rotate-y":pe()}],"rotate-z":[{"rotate-z":pe()}],scale:[{scale:de()}],"scale-x":[{"scale-x":de()}],"scale-y":[{"scale-y":de()}],"scale-z":[{"scale-z":de()}],"scale-3d":["scale-3d"],skew:[{skew:ye()}],"skew-x":[{"skew-x":ye()}],"skew-y":[{"skew-y":ye()}],transform:[{transform:[xe,we,"","none","gpu","cpu"]}],"transform-origin":[{origin: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",xe,we]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":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",xe,we]}],fill:[{fill:["none",...K()]}],"stroke-w":[{stroke:[Ne,ha,yi,md]}],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"]}},QI=(e,{cacheSize:t,prefix:r,experimentalParseClassName:n,extend:o={},override:a={}})=>(Ca(e,"cacheSize",t),Ca(e,"prefix",r),Ca(e,"experimentalParseClassName",n),ul(e.theme,a.theme),ul(e.classGroups,a.classGroups),ul(e.conflictingClassGroups,a.conflictingClassGroups),ul(e.conflictingClassGroupModifiers,a.conflictingClassGroupModifiers),Ca(e,"orderSensitiveModifiers",a.orderSensitiveModifiers),dl(e.theme,o.theme),dl(e.classGroups,o.classGroups),dl(e.conflictingClassGroups,o.conflictingClassGroups),dl(e.conflictingClassGroupModifiers,o.conflictingClassGroupModifiers),Ny(e,o,"orderSensitiveModifiers"),e),Ca=(e,t,r)=>{r!==void 0&&(e[t]=r)},ul=(e,t)=>{if(t)for(const r in t)Ca(e,r,t[r])},dl=(e,t)=>{if(t)for(const r in t)Ny(e,t,r)},Ny=(e,t,r)=>{const n=t[r];n!==void 0&&(e[r]=e[r]?e[r].concat(n):n)},eN=(e,...t)=>typeof e=="function"?pm(vm,e,...t):pm(()=>QI(vm(),e),...t);function Dy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var mm={exports:{}};/*!
24
+ Copyright (c) 2018 Jed Watson.
25
+ Licensed under the MIT License (MIT), see
26
+ http://jedwatson.github.io/classnames
27
+ */var bm;function tN(){return bm||(bm=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})()})(mm)),mm.exports}var rN=tN();const nN=Dy(rN),iN=eN({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 iN(nN(e))}const ss={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"}},Tr={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"}},oN=`
28
+ appearance-none border rounded transition-all duration-200
29
+ focus:ring-2 focus:ring-offset-2 focus:outline-hidden
30
+ relative
31
+ `,aN=(e,t,r)=>{const{isChecked:n,isIndeterminate:o,isDisabled:a,isInvalid:l}=r,c=n||o;return ue(oN,ss[e].checkbox,{"cursor-pointer":!a},l?{[Tr.negative.checked]:c,[Tr.negative.unchecked]:!c,[Tr.negative.checkedHover]:!a&&c,[Tr.negative.focus]:!a,"border-input-disable":a}:{[Tr[t].checked]:c&&!a,[Tr[t].unchecked]:!c&&!a,[Tr[t].checkedHover]:!a&&c,[Tr[t].focus]:!a,"border-input-disable":a,"bg-input-disable":a&&c})},sN=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ue(ss[e].text,o?{[Tr.negative.label]:o}:{"text-input-disable":n,[Tr[t].label]:!n,"cursor-pointer":!n})},lN=e=>ue("inline-flex items-center ws-group",ss[e].spacing),cN=(e,t,r)=>ue("center-absolute rounded-xs transition-all duration-200 opacity-0 ws-checkbox-hover-target",ss[e].hoverSquare,{[Tr.negative.hoverSquare]:r,[Tr[t].hoverSquare]:!r}),uN=e=>`${ss[e].icon}`,dN=e=>A.jsx("svg",{className:`absolute inset-0 ${e.className}`,fill:"none",viewBox:"0 0 24 24","aria-hidden":"true",focusable:"false",xmlns:"http://www.w3.org/2000/svg",...e,children:A.jsx("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor",strokeWidth:"2",fill:"none"})}),fN=z.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:h,name:f,id:g,...b},S)=>{const[v,y]=z.useState(h),m=p===!0||v===!0,w=p===null,x=m||w,k={isChecked:m,isIndeterminate:w,isDisabled:t,isInvalid:r},E=aN(o,a,k),R=sN(o,a,k),F=lN(o),P=cN(o,a,r),L=uN(o);return A.jsxs("label",{"data-qui":"Checkbox",className:F,children:[A.jsxs("div",{className:E,children:[A.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:g,...b}),x&&A.jsx("div",{className:"center-absolute",children:w?A.jsx(dN,{className:L}):A.jsx(uI,{className:L})}),!x&&!t&&A.jsx("div",{className:P})]}),e&&A.jsxs("span",{className:R,children:[e,n&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});fN.displayName="Checkbox";const ls={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"}},Va={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"}},pN=`
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
+ `,hN=(e,t,r)=>{const{isDisabled:n,isInvalid:o}=r;return ue(pN,ls[e].radio,o?Va[t].radioInvalid:{[Va[t].radio]:!n,"cursor-not-allowed opacity-60":n})},gN=(e,t,r)=>{const{checked:n,isDisabled:o,isInvalid:a}=r;return ue("center-absolute rounded-full transition-all duration-200 ease-in-out",ls[e].dot,a?"bg-negative":{[Va[t].dot]:!o,"border-neutral":o,"opacity-0 scale-0":!n,"opacity-100 scale-100":n&&!o})},vN=(e,t,r)=>ue("center-absolute rounded-full transition-all duration-200 opacity-0 group-hover:opacity-100",ls[e].hoverDot,{[Va[t].hoverDot]:!r,"bg-negative-bg":r}),mN=e=>ue("cursor-pointer select-none transition-colors duration-200",ls[e].label),bN=(e,t,r,n)=>{const{isDisabled:o,isInvalid:a}=r;return ue("inline-flex items-center group",ls[e].container,a?{"text-negative":a}:{[Va[t].label]:!o,"text-muted":o},n)},yN=z.createContext(null),wN=()=>{const e=z.useContext(yN);if(!e)throw new Error("Radio.Item must be used within Radio.Group");return e},xN=z.forwardRef(({value:e,label:t,size:r,color:n,isDisabled:o,isInvalid:a,isRequired:l,className:c,...u},p)=>{const h=wN(),f=r??h.size,g=n??h.color,b=o??h.isDisabled,S=a??h.isInvalid,v=l??h.isRequired,y=h.value===e,m={checked:y,isDisabled:b,isInvalid:S},w=hN(f,g,m),x=gN(f,g,m),k=vN(f,g,S),E=mN(f),R=bN(f,g,m,c),F=()=>{b||h.onChange(e)};return A.jsxs("label",{"data-qui":"RadioItem",className:R,children:[A.jsxs("div",{className:ue("relative",{hidden:h.hideIndicator}),children:[A.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:h.name,onChange:F,className:"sr-only",...u}),A.jsxs("div",{className:w,children:[A.jsx("div",{className:x}),!y&&!b&&A.jsx("div",{className:k})]})]}),t&&A.jsxs("span",{className:E,children:[t,v&&A.jsx("span",{className:"text-negative ml-1",children:"*"})]})]})});xN.displayName="RadioItem";const My={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"}},SN={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"}}},_N=(e,t,r,n)=>{const o=My[e],a=SN[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])},EN=e=>ue("flex items-center justify-center gap-1",My[e].text),mo=z.forwardRef(({size:e="md",variant:t="solid",color:r="primary",className:n,children:o,disabled:a,...l},c)=>A.jsx("button",{"data-qui":"Button",ref:c,type:"button",className:ue(_N(e,t,r,a),EN(e),n),disabled:a,...l,children:o}));mo.displayName="Button";const Ly=z.createContext(null),cs=()=>{const e=z.useContext(Ly);if(!e)throw new Error("Input components must be used within Input.Root");return e},Po={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"}},Tn={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"}},kN=()=>ue("flex flex-col relative"),ON=({size:e,color:t,isDisabled:r,isReadOnly:n,hasMessage:o,hasArea:a,isInvalid:l})=>{const c=Tn[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,Po[e].group,{"ring-1":o,"opacity-60":r,"items-center":!a})},AN=({size:e,color:t})=>ue("bg-transparent ring-0 w-full","focus:outline-hidden",[Po[e].input],Tn[t].placeholder),ym=({size:e,color:t})=>ue("bg-transparent ring-0 w-full h-fit resize-none py-0.5","focus:outline-hidden",Po[e].input,Tn[t].placeholder),TN=({size:e,color:t,isDisabled:r,isAction:n})=>ue("transition-colors duration-200 rounded max-h-full h-fit",Po[e].icon,e==="sm"?"m-px":"m-0.5",r?"text-muted opacity-60 pointer-events-none":n?Tn[t].action:Tn[t].icon,{"cursor-pointer p-0.5":n&&!r,[Tn[t].actionHover]:n&&!r,"pointer-events-none":!n}),RN=({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":Tn[t].messageText,Tn[t].borderMessage,Tn[t].messageBackground,Po[e].message,{"opacity-60":r}),CN=({size:e})=>ue(Po[e].icon);function oc(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var PN=typeof global=="object"&&global&&global.Object===Object&&global,IN=typeof self=="object"&&self&&self.Object===Object&&self,$y=PN||IN||Function("return this")(),bd=function(){return $y.Date.now()},NN=/\s/;function DN(e){for(var t=e.length;t--&&NN.test(e.charAt(t)););return t}var MN=/^\s+/;function LN(e){return e&&e.slice(0,DN(e)+1).replace(MN,"")}var ac=$y.Symbol,zy=Object.prototype,$N=zy.hasOwnProperty,zN=zy.toString,ga=ac?ac.toStringTag:void 0;function jN(e){var t=$N.call(e,ga),r=e[ga];try{e[ga]=void 0;var n=!0}catch{}var o=zN.call(e);return n&&(t?e[ga]=r:delete e[ga]),o}var FN=Object.prototype,HN=FN.toString;function BN(e){return HN.call(e)}var WN="[object Null]",UN="[object Undefined]",wm=ac?ac.toStringTag:void 0;function qN(e){return e==null?e===void 0?UN:WN:wm&&wm in Object(e)?jN(e):BN(e)}function VN(e){return e!=null&&typeof e=="object"}var GN="[object Symbol]";function KN(e){return typeof e=="symbol"||VN(e)&&qN(e)==GN}var xm=NaN,ZN=/^[-+]0x[0-9a-f]+$/i,YN=/^0b[01]+$/i,XN=/^0o[0-7]+$/i,JN=parseInt;function Sm(e){if(typeof e=="number")return e;if(KN(e))return xm;if(oc(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=oc(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=LN(e);var r=YN.test(e);return r||XN.test(e)?JN(e.slice(2),r?2:8):ZN.test(e)?xm:+e}var QN="Expected a function",e2=Math.max,t2=Math.min;function Bl(e,t,r){var n,o,a,l,c,u,p=0,h=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError(QN);t=Sm(t)||0,oc(r)&&(h=!!r.leading,f="maxWait"in r,a=f?e2(Sm(r.maxWait)||0,t):a,g="trailing"in r?!!r.trailing:g);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),h?b(R):l}function v(R){var F=R-u,P=R-p,L=t-F;return f?t2(L,a-P):L}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=bd();if(y(R))return w(R);c=setTimeout(m,v(R))}function w(R){return c=void 0,g&&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(bd())}function E(){var R=bd(),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 r2="Expected a function";function n2(e,t,r){var n=!0,o=!0;if(typeof e!="function")throw new TypeError(r2);return oc(r)&&(n="leading"in r?!!r.leading:n,o="trailing"in r?!!r.trailing:o),Bl(e,t,{leading:n,maxWait:t,trailing:o})}var ho=function(){return ho=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},ho.apply(this,arguments)};function jy(e){return!e||!e.ownerDocument||!e.ownerDocument.defaultView?window:e.ownerDocument.defaultView}function Fy(e){return!e||!e.ownerDocument?document:e.ownerDocument}var Hy=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 By(e,t){var r;e&&(r=e.classList).add.apply(r,t.split(" "))}function Wy(e,t){e&&t.split(" ").forEach(function(r){e.classList.remove(r)})}function Uy(e){return".".concat(e.split(" ").join("."))}var Qf=!!(typeof window<"u"&&window.document&&window.document.createElement),i2=Object.freeze({__proto__:null,addClasses:By,canUseDOM:Qf,classNamesToQuery:Uy,getElementDocument:Fy,getElementWindow:jy,getOptions:Hy,removeClasses:Wy}),po=null,_m=null;Qf&&window.addEventListener("resize",function(){_m!==window.devicePixelRatio&&(_m=window.devicePixelRatio,po=null)});function Em(){if(po===null){if(typeof document>"u")return po=0,po;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),po=r}return po}var qn=jy,yd=Fy,o2=Hy,Vn=By,Gn=Wy,rr=Uy,va=(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=qn(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,Vn(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(){Gn(n.el,n.classNames.scrolling),n.options.autoHide&&(n.hideScrollbar("x"),n.hideScrollbar("y")),n.isScrolling=!1},this.onMouseEnter=function(){n.isMouseEntering||(Vn(n.el,n.classNames.mouseEntered),n.showScrollbar("x"),n.showScrollbar("y"),n.isMouseEntering=!0),n.onMouseEntered()},this._onMouseEntered=function(){Gn(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,h,f,g,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((h=(p=n.elStyles)===null||p===void 0?void 0:p[n.axis[n.draggedAxis].sizeAttr])!==null&&h!==void 0?h:"0px",10);o.preventDefault(),o.stopPropagation(),n.draggedAxis==="y"?y=o.pageY:y=o.pageX;var R=y-((g=(f=m.rect)===null||f===void 0?void 0:f[n.axis[n.draggedAxis].offsetAttr])!==null&&g!==void 0?g: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=yd(n.el),l=qn(n.el);o.preventDefault(),o.stopPropagation(),Gn(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=ho(ho({},e.defaultOptions),r),this.classNames=ho(ho({},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=n2(this._onMouseMove,64),this.onWindowResize=Bl(this._onWindowResize,64,{leading:!0}),this.onStopScrolling=Bl(this._onStopScrolling,this.stopScrollDelay),this.onMouseEntered=Bl(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:Em()}catch{return Em()}},e.getOffset=function(t){var r=t.getBoundingClientRect(),n=yd(t),o=qn(t);return{top:r.top+(o.pageYOffset||n.documentElement.scrollTop),left:r.left+(o.pageXOffset||n.documentElement.scrollLeft)}},e.prototype.init=function(){Qf&&(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||(Vn(this.axis.x.scrollbar.el,this.classNames.visible),Vn(this.axis.y.scrollbar.el,this.classNames.visible))},e.prototype.initListeners=function(){var t=this,r,n=qn(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=qn(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 h=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=r!==0&&p>r,this.axis.y.isOverflowing=u>h,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,g=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&p>a-g,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>h-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 h=p/(l-u),f=~~((c-a.size)*h);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&&(Vn(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&&(Gn(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),Vn(r.track.el,this.classNames.hover),this.isWithinBounds(r.scrollbar.rect)?Vn(r.scrollbar.el,this.classNames.hover):Gn(r.scrollbar.el,this.classNames.hover)):(Gn(r.track.el,this.classNames.hover),this.options.autoHide&&this.hideScrollbar(t)))},e.prototype.onMouseLeaveForAxis=function(t){t===void 0&&(t="y"),Gn(this.axis[t].track.el,this.classNames.hover),Gn(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=yd(this.el),a=qn(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,Vn(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=qn(this.el);this.axis[r].scrollbar.rect=u.scrollbar.el.getBoundingClientRect();var h=this.axis[r].scrollbar,f=(a=(o=h.rect)===null||o===void 0?void 0:o[this.axis[r].offsetAttr])!==null&&a!==void 0?a:0,g=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-g:b+g,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=qn(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=o2,e.helpers=i2,e})(),pr=function(){return pr=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},pr.apply(this,arguments)};function a2(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 ep=B.forwardRef(function(e,t){var r=e.children,n=e.scrollableNodeProps,o=n===void 0?{}:n,a=a2(e,["children","scrollableNodeProps"]),l=B.useRef(),c=B.useRef(),u=B.useRef(),p={},h={};Object.keys(a).forEach(function(b){Object.prototype.hasOwnProperty.call(va.defaultOptions,b)?p[b]=a[b]:h[b]=a[b]});var f=pr(pr({},va.defaultOptions.classNames),p.classNames),g=pr(pr({},o),{className:"".concat(f.contentWrapper).concat(o.className?" ".concat(o.className):""),tabIndex:p.tabIndex||va.defaultOptions.tabIndex,role:"region","aria-label":p.ariaLabel||va.defaultOptions.ariaLabel});return B.useEffect(function(){var b;return c.current=g.ref?g.ref.current:c.current,l.current&&(b=new va(l.current,pr(pr(pr({},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",pr({"data-simplebar":"init",ref:l},h),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:pr(pr({},g),{ref:c}),contentNodeRef:u,contentNodeProps:{className:f.contentEl,ref:u}}):B.createElement("div",pr({},g),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})))});ep.displayName="SimpleBar";const qy=z.forwardRef(({size:e="md",color:t="primary",isInvalid:r=!1,isDisabled:n=!1,isReadOnly:o=!1,className:a,children:l,...c},u)=>{const[p,h]=z.useState(!1),[f,g]=z.useState(!1),b={size:e,color:r?"negative":t,isInvalid:r,isDisabled:n,isReadOnly:o,hasMessage:p,setHasMessage:h,hasArea:f,setHasArea:g};return A.jsx(Ly.Provider,{value:b,children:A.jsx("div",{ref:u,"data-qui":"Input",className:ue(kN(),a),...c,children:l})})}),Vy=z.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:p,isInvalid:h}=cs();return A.jsx("div",{ref:n,"data-qui":"InputGroup",className:ue(ON({size:o,color:a,isDisabled:l,isReadOnly:c,hasMessage:u,hasArea:p,isInvalid:h}),e),...r,children:t})}),Gy=z.forwardRef(({className:e,...t},r)=>{const{size:n,color:o,isInvalid:a,isDisabled:l,isReadOnly:c}=cs(),{isDisabled:u,isReadOnly:p,...h}=t;return A.jsx("input",{ref:r,disabled:l||u,readOnly:p||c||!1,"aria-invalid":a,className:ue(AN({size:n,color:o}),e),...h})}),s2=z.forwardRef(({className:e,autoHeight:t,...r},n)=>{const{size:o,color:a,isInvalid:l,isDisabled:c,setHasArea:u}=cs(),p=z.useRef(null),h=n||p,f=z.useRef(null);z.useEffect(()=>(u(!0),()=>{u(!1)}),[u]);const g=z.useCallback(()=>{if(p.current){const w=p.current;w.style.height="auto",w.style.height=`${w.scrollHeight}px`}},[]),b=w=>{var x;g(),(x=r.onInput)==null||x.call(r,w)};z.useEffect(()=>{g()},[g,r.value]),z.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 L=E+(P.clientY-k);L>30&&(x.style.height=L+"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 A.jsxs("div",{ref:f,className:ue("w-full relative",!t&&"h-[120px]"),children:[t?A.jsx("textarea",{ref:h,rows:1,className:ue(ym({size:o,color:a}),e),disabled:c||v,onInput:b,readOnly:y||!1,"aria-invalid":l,style:{overflow:"hidden"},...m}):A.jsx(ep,{style:{height:"100%"},children:A.jsx("textarea",{ref:h,rows:1,className:ue(ym({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&&A.jsx("div",{className:"absolute right-0 bottom-0 -translate-x-full -translate-y-full size-1.75 text-sm cursor-se-resize z-10",onMouseDown:S,children:A.jsx(pI,{})})]})}),Ky=z.forwardRef(({isAction:e=!1,className:t,isDisabled:r=!1,style:n,children:o,...a},l)=>{const{size:c,color:u,isDisabled:p}=cs(),h=r||p,f=TN({size:c,color:u,isDisabled:h,isAction:e});return A.jsx("div",{ref:l,"data-qui":"InputIcon",className:ue(f,t),style:n,role:e||a.onClick?"button":void 0,tabIndex:(e||a.onClick)&&!h?0:void 0,"aria-disabled":h,...a,children:o})}),l2=z.forwardRef(({icon:e,className:t,children:r,...n},o)=>{const{size:a,color:l,setHasMessage:c,isDisabled:u}=cs();return z.useEffect(()=>(c(!0),()=>{c(!1)}),[c]),A.jsxs("div",{ref:o,"data-qui":"InputMessage",role:"alert",className:ue(RN({size:a,color:l,isDisabled:u}),t),...n,children:[e!==void 0&&A.jsx("div",{className:ue(CN({size:a}),t),children:e}),A.jsx("p",{children:r})]})});qy.displayName="InputRoot";Vy.displayName="InputGroup";Gy.displayName="InputField";s2.displayName="InputArea";Ky.displayName="InputIcon";l2.displayName="InputMessage";const ma={Root:qy,Group:Vy,Field:Gy,Icon:Ky},Ga={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"}},c2=({color:e})=>ue("min-h-6 absolute py-0.5 px-1 rounded whitespace-nowrap flex items-center gap-1",Ga[e].container,Ga[e].icon),u2=({color:e})=>ue("text-xs font-medium leading-3",Ga[e].text),d2=({color:e})=>ue("p-0.5 rounded cursor-pointer",Ga[e].button,Ga[e].icon),Zy=({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:h=!1})=>{const[f,g]=z.useState(!1),[b,S]=z.useState(!1),[v,y]=z.useState({position:r,transform:""}),m=z.useRef(null),w=z.useRef(null),x=z.useRef(null);z.useEffect(()=>{h&&f&&(g(!1),x.current&&clearTimeout(x.current))},[h,f]);const k=z.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:le,left:pe,width:de,height:ye}=I,Z=le+X,Oe=pe+Y;switch(re){case"up":return{top:`${Z-j.height-D}px`,left:`${Oe+de/2}px`,transform:"translateX(-50%)"};case"up-start":return{top:`${Z-j.height-D}px`,left:`${Oe}px`,transform:"translateX(0)"};case"up-end":return{top:`${Z-j.height-D}px`,left:`${Oe+de-j.width}px`,transform:"translateX(0)"};case"down":return{top:`${Z+ye+D}px`,left:`${Oe+de/2}px`,transform:"translateX(-50%)"};case"down-start":return{top:`${Z+ye+D}px`,left:`${Oe}px`,transform:"translateX(0)"};case"down-end":return{top:`${Z+ye+D}px`,left:`${Oe+de-j.width}px`,transform:"translateX(0)"};case"left":return{top:`${Z+ye/2}px`,left:`${Oe-j.width-D}px`,transform:"translateY(-50%)"};case"left-start":return{top:`${Z}px`,left:`${Oe-j.width-D}px`,transform:"translateY(0)"};case"left-end":return{top:`${Z+ye-j.height}px`,left:`${Oe-j.width-D}px`,transform:"translateY(0)"};case"right":return{top:`${Z+ye/2}px`,left:`${Oe+de+D}px`,transform:"translateY(-50%)"};case"right-start":return{top:`${Z}px`,left:`${Oe+de+D}px`,transform:"translateY(0)"};case"right-end":return{top:`${Z+ye-j.height}px`,left:`${Oe+de+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}},se=I.left+I.width/2-j.width/2,ae=I.left+I.width/2+j.width/2;if((r==="up"||r==="down")&&(se<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(le=>J[le].fits);if(re){U=re;const le=te(re);ee={position:U,...le,transform:le.transform||""}}else{const le={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)},pe=Object.entries(le).reduce((ye,[Z,Oe])=>Oe>ye.space?{position:Z,space:Oe}:ye,{position:"up",space:0}).position;U=pe;const de=te(pe);ee={position:U,...de,transform:de.transform||""}}}y(ee)},[r]),E=()=>{c!=="click"||h||(g(!0),x.current&&clearTimeout(x.current),x.current=setTimeout(()=>{b||g(!1)},l))},R=I=>{I.stopPropagation(),g(!1),x.current&&clearTimeout(x.current)},F=()=>{S(!0),x.current&&clearTimeout(x.current)},P=()=>{S(!1),f&&(x.current=setTimeout(()=>{g(!1)},l))},L=()=>{c==="hover"&&!h&&(g(!0),x.current&&clearTimeout(x.current))},V=()=>{c==="hover"&&(x.current=setTimeout(()=>{g(!1)},l))};z.useEffect(()=>{if(f){const I=requestAnimationFrame(()=>{k()});return()=>cancelAnimationFrame(I)}},[f,e,k]),z.useEffect(()=>{if(f){const I=setTimeout(()=>k(),0);return()=>clearTimeout(I)}},[f,k]),z.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 $=p||(typeof document<"u"?document.body:null);return $?A.jsxs(A.Fragment,{children:[A.jsx("div",{"data-qui":"Tooltip",ref:m,onClick:E,onMouseEnter:L,onMouseLeave:V,className:ue("relative inline-flex items-center",u),children:a}),f&&!!e&&ti.createPortal(A.jsxs("div",{ref:w,role:"tooltip",className:c2({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&&A.jsx("span",{"data-testid":"tooltip-icon",children:o}),A.jsx("div",{className:u2({color:t}),children:e}),n&&A.jsx("div",{onClick:R,className:d2({color:t}),role:"button",children:A.jsx(Rc,{})})]}),$)]}):null};var km;(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"})(km||(km={}));const f2=Object.freeze({x:0,y:0});var go;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(go||(go={}));var Om;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Om||(Om={}));var Rr;(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"})(Rr||(Rr={}));Rr.Space,Rr.Enter,Rr.Esc,Rr.Space,Rr.Enter,Rr.Tab;var Am;(function(e){e[e.RightClick=2]="RightClick"})(Am||(Am={}));var Tm;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(Tm||(Tm={}));var Rm;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(Rm||(Rm={}));go.Backward+"",go.Forward+"",go.Backward+"",go.Forward+"";var ff;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(ff||(ff={}));var pf;(function(e){e.Optimized="optimized"})(pf||(pf={}));ff.WhileDragging,pf.Optimized;({...f2});var Cm;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Cm||(Cm={}));Rr.Down,Rr.Right,Rr.Up,Rr.Left;const Yy={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"}},p2={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"}}},h2=(e,t,r,n)=>{const o=p2[e],a=Yy[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)},g2=(e,t)=>ue("flex items-center justify-center",Yy[e].icon,{"opacity-50":t}),v2=()=>ue("whitespace-nowrap"),Xy=(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")},m2=z.createContext(void 0),b2=z.forwardRef(({value:e,label:t,icon:r,disabled:n,children:o,className:a,onClick:l,active:c,content:u,...p},h)=>{const f=z.useContext(m2);if(!f)return null;const{activeTab:g,onTabChange:b,variant:S,color:v,size:y,showIcons:m,disabled:w}=f,x=c!==void 0?c:g===e,k=n||w,E=R=>{k||(b(e),l==null||l(R))};return S==="file"?A.jsx("div",{"data-qui":"FileTabItem",className:ue(Xy(x,!1),"cursor-pointer",a),onClick:R=>!k&&E(R),children:o||A.jsx(A.Fragment,{children:A.jsxs("span",{className:"flex items-center gap-2",children:[r,A.jsx("span",{children:t})]})})}):A.jsxs("button",{ref:h,"data-qui":"TabItem",type:"button",role:"tab","aria-selected":x,"aria-disabled":k,className:ue(h2(v,y,x,k||!1),a),onClick:E,disabled:k,...p,children:[m&&r&&A.jsx("span",{className:g2(y,k||!1),children:r}),A.jsx("span",{className:v2(),children:o||t})]})});b2.displayName="TabItem";const y2=z.forwardRef(({isActive:e=!1,isDesactive:t=!1,children:r,...n},o)=>A.jsx("div",{"data-qui":"TabNavContainer",className:Xy(e,t),ref:o,...n,children:r}));y2.displayName="TabNavContainer";var St=function(){return St=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},St.apply(this,arguments)},Pm={width:"100%",height:"10px",top:"0px",left:"0px",cursor:"row-resize"},Im={width:"10px",height:"100%",top:"0px",left:"0px",cursor:"col-resize"},fl={width:"20px",height:"20px",position:"absolute",zIndex:1},w2={top:St(St({},Pm),{top:"-5px"}),right:St(St({},Im),{left:void 0,right:"-5px"}),bottom:St(St({},Pm),{top:void 0,bottom:"-5px"}),left:St(St({},Im),{left:"-5px"}),topRight:St(St({},fl),{right:"-10px",top:"-10px",cursor:"ne-resize"}),bottomRight:St(St({},fl),{right:"-10px",bottom:"-10px",cursor:"se-resize"}),bottomLeft:St(St({},fl),{left:"-10px",bottom:"-10px",cursor:"sw-resize"}),topLeft:St(St({},fl),{left:"-10px",top:"-10px",cursor:"nw-resize"})},x2=z.memo(function(e){var t=e.onResizeStart,r=e.direction,n=e.children,o=e.replaceStyles,a=e.className,l=z.useCallback(function(p){t(p,r)},[t,r]),c=z.useCallback(function(p){t(p,r)},[t,r]),u=z.useMemo(function(){return St(St({position:"absolute",userSelect:"none"},w2[r]),o??{})},[o,r]);return A.jsx("div",{className:a||void 0,style:u,onMouseDown:l,onTouchStart:c,children:n})}),S2=(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)}})(),en=function(){return en=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},en.apply(this,arguments)},_2={width:"auto",height:"auto"},pl=function(e,t,r){return Math.max(Math.min(e,r),t)},Nm=function(e,t,r){var n=Math.round(e/t);return n*t+r*(n-1)},so=function(e,t){return new RegExp(e,"i").test(t)},hl=function(e){return!!(e.touches&&e.touches.length)},E2=function(e){return!!((e.clientX||e.clientX===0)&&(e.clientY||e.clientY===0))},Dm=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},wd=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")},gl=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},k2=function(e,t,r,n,o,a,l){return n=gl(n,e.width,t,r),o=gl(o,e.height,t,r),a=gl(a,e.width,t,r),l=gl(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)}},O2=function(e){return Array.isArray(e)?e:[e,e]},A2=["as","ref","style","className","grid","gridGap","snap","bounds","boundsByDirection","size","defaultSize","minWidth","minHeight","maxWidth","maxHeight","lockAspectRatio","lockAspectRatioExtraWidth","lockAspectRatioExtraHeight","enable","handleStyles","handleClasses","handleWrapperStyle","handleWrapperClass","children","onResizeStart","onResize","onResizeStop","handleComponent","scale","resizeRatio","snapGap"],Mm="__resizable_base__",T2=(function(e){S2(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(Mm):p.className+=Mm,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||_2},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(),h=Number(r.state[c].toString().replace("px","")),f=h/p[c]*100;return"".concat(f,"%")}return wd(r.state[c])},a=n&&typeof n.width<"u"&&!this.state.isResizing?wd(n.width):o("width"),l=n&&typeof n.height<"u"&&!this.state.isResizing?wd(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&&so("left",a),c=o&&so("top",a),u,p;if(this.props.bounds==="parent"){var h=this.parentNode;h&&(u=l?this.resizableRight-this.parentLeft:h.offsetWidth+(this.parentLeft-this.resizableLeft),p=c?this.resizableBottom-this.parentTop:h.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=O2(this.props.resizeRatio||1),l=a[0],c=a[1],u=this.state,p=u.direction,h=u.original,f=this.props,g=f.lockAspectRatio,b=f.lockAspectRatioExtraHeight,S=f.lockAspectRatioExtraWidth,v=h.width,y=h.height,m=b||0,w=S||0;return so("right",p)&&(v=h.width+(r-h.x)*l/o,g&&(y=(v-w)/this.ratio+m)),so("left",p)&&(v=h.width-(r-h.x)*l/o,g&&(y=(v-w)/this.ratio+m)),so("bottom",p)&&(y=h.height+(n-h.y)*c/o,g&&(v=(y-m)*this.ratio+w)),so("top",p)&&(y=h.height-(n-h.y)*c/o,g&&(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,h=typeof a.width>"u"?10:a.width,f=typeof o.width>"u"||o.width<0?r:o.width,g=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=(g-S)*this.ratio+v,m=(b-S)*this.ratio+v,w=(h-v)/this.ratio+S,x=(f-v)/this.ratio+S,k=Math.max(h,y),E=Math.min(f,m),R=Math.max(g,w),F=Math.min(b,x);r=pl(r,k,E),n=pl(n,R,F)}else r=pl(r,h,f),n=pl(n,g,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,h=l.bottom;this.resizableLeft=c*r,this.resizableRight=p*r,this.resizableTop=u*r,this.resizableBottom=h*r}},t.prototype.onResizeStart=function(r,n){if(!(!this.resizable||!this.window)){var o=0,a=0;if(r.nativeEvent&&E2(r.nativeEvent)?(o=r.nativeEvent.clientX,a=r.nativeEvent.clientY):r.nativeEvent&&hl(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 h=this.window.getComputedStyle(p).flexDirection;this.flexDir=h.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:en(en({},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&&hl(r))try{r.preventDefault(),r.stopPropagation()}catch{}var o=this.props,a=o.maxWidth,l=o.maxHeight,c=o.minWidth,u=o.minHeight,p=hl(r)?r.touches[0].clientX:r.clientX,h=hl(r)?r.touches[0].clientY:r.clientY,f=this.state,g=f.direction,b=f.original,S=f.width,v=f.height,y=this.getParentSize(),m=k2(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,h),x=w.newHeight,k=w.newWidth,E=this.calculateNewMaxFromBoundary(a,l);this.props.snap&&this.props.snap.x&&(k=Dm(k,this.props.snap.x,this.props.snapGap)),this.props.snap&&this.props.snap.y&&(x=Dm(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=Nm(k,this.props.grid[0],this.props.gridGap?this.props.gridGap[0]:0),P=Nm(x,this.props.grid[1],this.props.gridGap?this.props.gridGap[1]:0),L=this.props.snapGap||0,V=L===0||Math.abs(F-k)<=L?F:k,$=L===0||Math.abs(P-x)<=L?P:x;k=V,x=$}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&&ti.flushSync(function(){n.setState(Y)}),this.props.onResize&&D&&this.props.onResize(r,g,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:en(en({},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 h=Object.keys(o).map(function(f){return o[f]!==!1?A.jsx(x2,{direction:f,onResizeStart:r.onResizeStart,replaceStyles:a&&a[f],className:l&&l[f],children:p&&p[f]?p[f]:null},f):null});return A.jsx("div",{className:u,style:c,children:h})},t.prototype.render=function(){var r=this,n=Object.keys(this.props).reduce(function(l,c){return A2.indexOf(c)!==-1||(l[c]=r.props[c]),l},{}),o=en(en(en({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 A.jsxs(a,en({style:o,className:this.props.className},n,{ref:function(l){l&&(r.resizable=l)},children:[this.state.isResizing&&A.jsx("div",{style:this.state.backgroundStyle}),this.props.children,this.renderResizer()]}))},t.defaultProps={as:"div",onResizeStart:function(){},onResize:function(){},onResizeStop:function(){},enable:{top:!0,right:!0,bottom:!0,left:!0,topRight:!0,bottomRight:!0,bottomLeft:!0,topLeft:!0},style:{},grid:[1,1],gridGap:[0,0],lockAspectRatio:!1,lockAspectRatioExtraWidth:0,lockAspectRatioExtraHeight:0,scale:1,resizeRatio:1,snapGap:0},t})(z.PureComponent);const R2={0:"bg-panel-0",1:"bg-panel-1",2:"bg-panel-2",3:"bg-panel-3",4:"bg-panel-4",5:"bg-panel-5"},C2={tabs:"border-tab-border",primary:"border-primary",negative:"border-input-error-border",positive:"border-positive",light:"border-panel-border-subtle",default:"border-panel-border"},Jy=({depth:e=0,className:t,borderType:r,disabled:n})=>ue("transition-colors duration-200",{"text-body":!n,"text-inactive-text":n},r?C2[r]:"border-panel-border",R2[e],t),P2=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},Qy=z.forwardRef(({children:e,width:t,height:r,minWidth:n=10,minHeight:o=10,maxWidth:a,maxHeight:l,defaultWidth:c,defaultHeight:u,defaultSize:p,size:h,grid:f,snap:g,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:L,as:V="div",depth:$,disabled:I},j)=>{const W=Jy({depth:$,className:x,disabled:I}),N=P2(x),Y=h?{size:h}: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=z.useRef(null);return z.useImperativeHandle(j,()=>{var ge;return(ge=K.current)==null?void 0:ge.resizable}),A.jsx(T2,{"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:g,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:L,as:V,children:e})});Qy.displayName="Resizable";const ew=({isDragging:e=!1,className:t})=>A.jsx("div",{className:ue("absolute inset-0 flex items-center justify-center transition-colors",{"bg-primary/30":e},t),children:A.jsx("div",{className:ue("h-full w-full transition-all",{"bg-primary":e,"bg-transparent hover:bg-primary/20":!e})})});ew.displayName="Handle";const lo={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"}},vl={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"}},I2=(e,t,r,n,o,a)=>({container:ue("inline-flex items-center",lo[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",lo[e].track,{[vl[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",lo[e].thumb,r?lo[e].thumbChecked:lo[e].thumbUnchecked,{[vl[t].thumb]:!n,"bg-canvas-subtle":n}),iconLeft:ue("flex items-center justify-center z-10 w-1/2 p-0.5",{[vl[t].icon]:!r&&!n,"text-panel-subtle":n||r}),iconRight:ue("flex items-center justify-center z-10 w-1/2 p-0.5",{[vl[t].icon]:r&&!n,"text-panel-subtle":n||!r}),label:ue("font-medium text-body",lo[e].label,{"cursor-pointer":!n,"cursor-not-allowed text-muted":n})}),tw=z.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:h,...f},g)=>{const[b,S]=z.useState(r),v=t!==void 0,y=v?t:b,m=()=>{const x=!y;v||S(x),c==null||c(x)},w=I2(o,a,y,n,!!l,u);return A.jsxs("div",{"data-qui":"Toggle",className:w.container,children:[e&&A.jsx("label",{htmlFor:p,className:w.label,children:e}),A.jsxs("button",{ref:g,...f,type:"button",role:"switch","aria-checked":y,"aria-label":e,disabled:n,onClick:m,name:h,id:p,className:w.track,children:[l&&A.jsx("span",{className:w.iconLeft,children:l.unchecked}),A.jsx("span",{className:w.thumb,"aria-hidden":"true"}),l&&A.jsx("span",{className:w.iconRight,children:l.checked})]})]})});tw.displayName="Toggle";z.createContext(null);const us=z.forwardRef(({depth:e=0,className:t,children:r,borderType:n,disabled:o,...a},l)=>{const c=Jy({depth:e,className:t,borderType:n,disabled:o});return A.jsx("div",{"data-qui":"Panel",ref:l,className:c,"aria-disabled":o,...a,children:r})});us.displayName="Panel";const Ka={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"}},Wl={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"}},N2=(e,t,r,n)=>ue("inline-flex items-center justify-center font-medium border",Ka[e].container,Wl[t].bg,Wl[t].text,Wl[t].border,Ka[e].text,{"opacity-60 pointer-events-none":r,"cursor-pointer hover:bg-opacity-90 transition-opacity":n&&!r}),D2=(e,t,r)=>ue({[Ka[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}),M2=e=>ue(Ka[e].text),rw=(e,t,r)=>ue("inline-flex items-center justify-center rounded transition-colors duration-200 focus:outline-hidden ",Ka[e].iconButton,Wl[t].buttonHover,{"pointer-events-none":r}),nw=z.createContext(null),Cc=()=>{const e=z.useContext(nw);if(!e)throw new Error("Pill components must be used within a Pill.Root");return e},tp=z.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 A.jsx(nw.Provider,{value:u,children:A.jsx("div",{"data-qui":"Pill",ref:c,onClick:a,className:ue(N2(e,t,o,p),r),...l,children:n})})});tp.displayName="Pill.Root";const rp=z.forwardRef(({className:e,children:t,...r},n)=>{const{size:o}=Cc();return A.jsx("span",{ref:n,className:ue(M2(o),e),...r,children:t})});rp.displayName="Pill.Text";const np=z.forwardRef(({className:e,children:t,label:r,position:n,...o},a)=>{const{size:l,color:c,disabled:u}=Cc(),p=!!r,h=A.jsx("span",{ref:a,className:ue(D2(l,c,p),e,{"opacity-60":u}),...o,children:t});return p&&!u?A.jsx(Zy,{label:r||"",position:n||"up",children:h}):h});np.displayName="Pill.Icon";const iw=z.forwardRef(({className:e,children:t,...r},n)=>{const{size:o,color:a,disabled:l}=Cc();return A.jsx("button",{ref:n,type:"button",disabled:l,className:ue(rw(o,a,l),e),...r,children:t})});iw.displayName="Pill.Button";const ip=z.forwardRef(({className:e,onClose:t,"aria-label":r="Remove pill",children:n,...o},a)=>{const{size:l,color:c,disabled:u}=Cc();return A.jsx("button",{ref:a,type:"button",disabled:u,className:ue(rw(l,c,u),e),onClick:t,"aria-label":r,...o,children:n||A.jsx(Rc,{})})});ip.displayName="Pill.Close";const ow=z.forwardRef(({size:e="md",color:t="primary",label:r,icon:n,onClose:o,closable:a=!1,className:l,children:c,disabled:u=!1,...p},h)=>A.jsxs(tp,{ref:h,size:e,color:t,className:l,disabled:u,...p,children:[n&&A.jsx(np,{children:n}),c||r&&A.jsx(rp,{children:r}),a&&A.jsx(ip,{onClose:o})]}));ow.displayName="Pill";Object.assign(ow,{Root:tp,Text:rp,Icon:np,Button:iw,Close:ip});const L2=z.createContext(null),Xt=()=>{const e=z.useContext(L2);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"}},wt={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"}},$2=({size:e,color:t,isDisabled:r,isFocused:n,isInvalid:o,hasMessage:a})=>{const l=wt[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})},z2=({isMulti:e})=>ue("flex items-center gap-1 flex-1 min-w-0 overflow-hidden",{"flex-wrap":e,"px-0.5":!e}),j2=({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,wt[t].placeholder),F2=({size:e,color:t})=>ue("select-none truncate",qt[e].placeholder,wt[t].placeholder),H2=({size:e,color:t,isDisabled:r})=>ue("truncate",qt[e].singleValue,r?wt[t].singleValueDisabled:wt[t].singleValue),B2=({size:e,color:t,isDisabled:r,isFocused:n})=>ue("inline-flex items-center rounded-xs",qt[e].multiValue,r?wt[t].multiValueDisabled:wt[t].multiValue,{"border border-white":n&&!r}),W2=({size:e})=>ue("truncate",qt[e].multiValueLabel),U2=({size:e,color:t,isDisabled:r})=>ue("flex items-center justify-center cursor-pointer transition-colors",qt[e].multiValueRemove,wt[t].multiValueRemove),aw=({size:e,color:t,isDisabled:r})=>ue("flex items-center justify-center transition-colors rounded",qt[e].clearIndicator,r?"hidden":[wt[t].clearIndicator,wt[t].clearIndicatorHover]),q2=({size:e,color:t,isDisabled:r})=>ue("flex items-center justify-center transition-colors rounded",qt[e].dropdownIndicator,r?"text-grey-200":[wt[t].dropdownIndicator,wt[t].dropdownIndicatorHover]),V2=({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",wt[n].menu,{[wt[n].messageBorder]:r},o[t||"auto"],qt[e].menu)},G2=({size:e})=>ue("overflow-y-auto",qt[e].menuList,wt.primary.menuList),K2=({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,{[wt[t].optionDisabled]:r,[wt[t].optionSelected]:o&&!r,[wt[t].optionFocused]:n&&!o&&!r,[wt[t].option]:!o&&!n&&!r}),Z2=({size:e})=>ue(qt[e].group),Y2=({size:e,color:t})=>ue(qt[e].groupHeading,wt[t].groupHeading),X2=({size:e})=>ue("text-grey-100",qt[e].loadingMessage),J2=({size:e})=>ue(qt[e].noOptionsMessage,wt.primary.noOptionsMessage),Q2=e=>{const t=e[0];return e.length>0&&typeof t=="object"&&t!==null&&"options"in t&&Array.isArray(t.options)};function ba(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 yt(){return yt=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},yt.apply(null,arguments)}function hf(e,t){return hf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},hf(e,t)}function eD(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,hf(e,t)}var ml={exports:{}},xd={exports:{}},Ue={};/** @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 Lm;function tD(){if(Lm)return Ue;Lm=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,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=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 h:case S:case b:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===p}return Ue.AsyncMode=u,Ue.ConcurrentMode=p,Ue.ContextConsumer=c,Ue.ContextProvider=l,Ue.Element=t,Ue.ForwardRef=h,Ue.Fragment=n,Ue.Lazy=S,Ue.Memo=b,Ue.Portal=r,Ue.Profiler=a,Ue.StrictMode=o,Ue.Suspense=f,Ue.isAsyncMode=function(E){return k(E)||x(E)===u},Ue.isConcurrentMode=k,Ue.isContextConsumer=function(E){return x(E)===c},Ue.isContextProvider=function(E){return x(E)===l},Ue.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ue.isForwardRef=function(E){return x(E)===h},Ue.isFragment=function(E){return x(E)===n},Ue.isLazy=function(E){return x(E)===S},Ue.isMemo=function(E){return x(E)===b},Ue.isPortal=function(E){return x(E)===r},Ue.isProfiler=function(E){return x(E)===a},Ue.isStrictMode=function(E){return x(E)===o},Ue.isSuspense=function(E){return x(E)===f},Ue.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===p||E===a||E===o||E===f||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===b||E.$$typeof===l||E.$$typeof===c||E.$$typeof===h||E.$$typeof===y||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Ue.typeOf=x,Ue}var Xe={};/** @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 $m;function rD(){return $m||($m=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,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=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===g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===h||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function k(Z){if(typeof Z=="object"&&Z!==null){var Oe=Z.$$typeof;switch(Oe){case t:var ve=Z.type;switch(ve){case u:case p:case n:case a:case o:case f:return ve;default:var pt=ve&&ve.$$typeof;switch(pt){case c:case h:case S:case b:case l:return pt;default:return Oe}}case r:return Oe}}}var E=u,R=p,F=c,P=l,L=t,V=h,$=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)===h}function se(Z){return k(Z)===n}function ae(Z){return k(Z)===S}function re(Z){return k(Z)===b}function le(Z){return k(Z)===r}function pe(Z){return k(Z)===a}function de(Z){return k(Z)===o}function ye(Z){return k(Z)===f}Xe.AsyncMode=E,Xe.ConcurrentMode=R,Xe.ContextConsumer=F,Xe.ContextProvider=P,Xe.Element=L,Xe.ForwardRef=V,Xe.Fragment=$,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=se,Xe.isLazy=ae,Xe.isMemo=re,Xe.isPortal=le,Xe.isProfiler=pe,Xe.isStrictMode=de,Xe.isSuspense=ye,Xe.isValidElementType=x,Xe.typeOf=k})()),Xe}var zm;function sw(){return zm||(zm=1,process.env.NODE_ENV==="production"?xd.exports=tD():xd.exports=rD()),xd.exports}/*
51
+ object-assign
52
+ (c) Sindre Sorhus
53
+ @license MIT
54
+ */var Sd,jm;function nD(){if(jm)return Sd;jm=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(h){return l[h]});if(u.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Sd=o()?Object.assign:function(a,l){for(var c,u=n(a),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var f in c)t.call(c,f)&&(u[f]=c[f]);if(e){p=e(c);for(var g=0;g<p.length;g++)r.call(c,p[g])&&(u[p[g]]=c[p[g]])}}return u},Sd}var _d,Fm;function op(){if(Fm)return _d;Fm=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return _d=e,_d}var Hm,Bm;function lw(){return Bm||(Bm=1,Hm=Function.call.bind(Object.prototype.hasOwnProperty)),Hm}var Ed,Wm;function iD(){if(Wm)return Ed;Wm=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=op(),r={},n=lw();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 h in a)if(n(a,h)){var f;try{if(typeof a[h]!="function"){var g=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}f=a[h](l,h,u,c,null,t)}catch(S){f=S}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` 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={})},Ed=o,Ed}var kd,Um;function oD(){if(Um)return kd;Um=1;var e=sw(),t=nD(),r=op(),n=lw(),o=iD(),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 kd=function(c,u){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(D){var U=D&&(p&&D[p]||D[h]);if(typeof U=="function")return U}var g="<<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:L,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(se,ae,re,le,pe,de,ye){if(le=le||g,de=de||re,ye!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=le+":"+re;!U[Oe]&&ee<3&&(a("You are manually calling a React.PropTypes validation function for the `"+de+"` prop on `"+le+"`. 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[Oe]=!0,ee++)}}return ae[re]==null?se?ae[re]===null?new v("The "+pe+" `"+de+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new v("The "+pe+" `"+de+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:D(ae,re,le,pe,de)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(D){function U(ee,te,J,se,ae,re){var le=ee[te],pe=Y(le);if(pe!==D){var de=X(le);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+de+"` 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,se,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 le=Y(re);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an array."))}for(var pe=0;pe<re.length;pe++){var de=D(re,pe,J,se,ae+"["+pe+"]",r);if(de instanceof Error)return de}return null}return y(U)}function k(){function D(U,ee,te,J,se){var ae=U[ee];if(!c(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+se+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(D)}function E(){function D(U,ee,te,J,se){var ae=U[ee];if(!e.isValidElementType(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+se+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(D)}function R(D){function U(ee,te,J,se,ae){if(!(ee[te]instanceof D)){var re=D.name||g,le=ge(ee[te]);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+le+"` 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,se,ae){for(var re=ee[te],le=0;le<D.length;le++)if(S(re,D[le]))return null;var pe=JSON.stringify(D,function(de,ye){var Z=X(ye);return Z==="symbol"?String(ye):ye});return new v("Invalid "+se+" `"+ae+"` of value `"+String(re)+"` "+("supplied to `"+J+"`, expected one of "+pe+"."))}return y(U)}function P(D){function U(ee,te,J,se,ae){if(typeof D!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var re=ee[te],le=Y(re);if(le!=="object")return new v("Invalid "+se+" `"+ae+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an object."));for(var pe in re)if(n(re,pe)){var de=D(re,pe,J,se,ae+"."+pe,r);if(de instanceof Error)return de}return null}return y(U)}function L(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,se,ae,re,le){for(var pe=[],de=0;de<D.length;de++){var ye=D[de],Z=ye(J,se,ae,re,le,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&pe.push(Z.data.expectedType)}var Oe=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new v("Invalid "+re+" `"+le+"` supplied to "+("`"+ae+"`"+Oe+"."))}return y(te)}function V(){function D(U,ee,te,J,se){return W(U[ee])?null:new v("Invalid "+J+" `"+se+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(D)}function $(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,se,ae){var re=ee[te],le=Y(re);if(le!=="object")return new v("Invalid "+se+" `"+ae+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));for(var pe in D){var de=D[pe];if(typeof de!="function")return $(J,se,ae,pe,X(de));var ye=de(re,pe,J,se,ae+"."+pe,r);if(ye)return ye}return null}return y(U)}function j(D){function U(ee,te,J,se,ae){var re=ee[te],le=Y(re);if(le!=="object")return new v("Invalid "+se+" `"+ae+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));var pe=t({},ee[te],D);for(var de in pe){var ye=D[de];if(n(D,de)&&typeof ye!="function")return $(J,se,ae,de,X(ye));if(!ye)return new v("Invalid "+se+" `"+ae+"` key `"+de+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(ee[te],null," ")+`
55
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var Z=ye(re,de,J,se,ae+"."+de,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?g:D.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},kd}var Od,qm;function aD(){if(qm)return Od;qm=1;var e=op();function t(){}function r(){}return r.resetWarningCache=t,Od=function(){function n(l,c,u,p,h,f){if(f!==e){var g=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 g.name="Invariant Violation",g}}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},Od}var Vm;function sD(){if(Vm)return ml.exports;if(Vm=1,process.env.NODE_ENV!=="production"){var e=sw(),t=!0;ml.exports=oD()(e.isElement,t)}else ml.exports=aD()();return ml.exports}var lD=sD();const fe=Dy(lD);var Ad={exports:{}},qe={};/**
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 Gm;function cD(){if(Gm)return qe;Gm=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"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=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 h:return y;default:switch(y=y&&y.$$typeof,y){case c:case l:case u:case g:case f:case a:return y;default:return m}}case t:return m}}}return qe.ContextConsumer=l,qe.ContextProvider=a,qe.Element=e,qe.ForwardRef=u,qe.Fragment=r,qe.Lazy=g,qe.Memo=f,qe.Portal=t,qe.Profiler=o,qe.StrictMode=n,qe.Suspense=p,qe.SuspenseList=h,qe.isAsyncMode=function(){return!1},qe.isConcurrentMode=function(){return!1},qe.isContextConsumer=function(y){return v(y)===l},qe.isContextProvider=function(y){return v(y)===a},qe.isElement=function(y){return typeof y=="object"&&y!==null&&y.$$typeof===e},qe.isForwardRef=function(y){return v(y)===u},qe.isFragment=function(y){return v(y)===r},qe.isLazy=function(y){return v(y)===g},qe.isMemo=function(y){return v(y)===f},qe.isPortal=function(y){return v(y)===t},qe.isProfiler=function(y){return v(y)===o},qe.isStrictMode=function(y){return v(y)===n},qe.isSuspense=function(y){return v(y)===p},qe.isSuspenseList=function(y){return v(y)===h},qe.isValidElementType=function(y){return typeof y=="string"||typeof y=="function"||y===r||y===o||y===n||y===p||y===h||y===b||typeof y=="object"&&y!==null&&(y.$$typeof===g||y.$$typeof===f||y.$$typeof===a||y.$$typeof===l||y.$$typeof===u||y.$$typeof===S||y.getModuleId!==void 0)},qe.typeOf=v,qe}var Je={};/**
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 Km;function uD(){return Km||(Km=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"),h=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=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(ve){return!!(typeof ve=="string"||typeof ve=="function"||ve===r||ve===o||w||ve===n||ve===p||ve===h||m||ve===b||S||v||y||typeof ve=="object"&&ve!==null&&(ve.$$typeof===g||ve.$$typeof===f||ve.$$typeof===a||ve.$$typeof===l||ve.$$typeof===u||ve.$$typeof===x||ve.getModuleId!==void 0))}function E(ve){if(typeof ve=="object"&&ve!==null){var pt=ve.$$typeof;switch(pt){case e:var Et=ve.type;switch(Et){case r:case o:case n:case p:case h:return Et;default:var Nt=Et&&Et.$$typeof;switch(Nt){case c:case l:case u:case g:case f:case a:return Nt;default:return pt}}case t:return pt}}}var R=l,F=a,P=e,L=u,V=r,$=g,I=f,j=t,W=o,N=n,Y=p,X=h,K=!1,ge=!1;function D(ve){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function U(ve){return ge||(ge=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function ee(ve){return E(ve)===l}function te(ve){return E(ve)===a}function J(ve){return typeof ve=="object"&&ve!==null&&ve.$$typeof===e}function se(ve){return E(ve)===u}function ae(ve){return E(ve)===r}function re(ve){return E(ve)===g}function le(ve){return E(ve)===f}function pe(ve){return E(ve)===t}function de(ve){return E(ve)===o}function ye(ve){return E(ve)===n}function Z(ve){return E(ve)===p}function Oe(ve){return E(ve)===h}Je.ContextConsumer=R,Je.ContextProvider=F,Je.Element=P,Je.ForwardRef=L,Je.Fragment=V,Je.Lazy=$,Je.Memo=I,Je.Portal=j,Je.Profiler=W,Je.StrictMode=N,Je.Suspense=Y,Je.SuspenseList=X,Je.isAsyncMode=D,Je.isConcurrentMode=U,Je.isContextConsumer=ee,Je.isContextProvider=te,Je.isElement=J,Je.isForwardRef=se,Je.isFragment=ae,Je.isLazy=re,Je.isMemo=le,Je.isPortal=pe,Je.isProfiler=de,Je.isStrictMode=ye,Je.isSuspense=Z,Je.isSuspenseList=Oe,Je.isValidElementType=k,Je.typeOf=E})()),Je}var Zm;function dD(){return Zm||(Zm=1,process.env.NODE_ENV==="production"?Ad.exports=cD():Ad.exports=uD()),Ad.exports}var Ym=dD();const Xm=e=>typeof e=="object"&&e!=null&&e.nodeType===1,Jm=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",bl=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const r=getComputedStyle(e,null);return Jm(r.overflowY,t)||Jm(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},yl=(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,fD=e=>e.parentElement??(e.getRootNode().host||null),pD=(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(!Xm(e))throw new TypeError("Invalid target");const h=document.scrollingElement||document.documentElement,f=[];let g=e;for(;Xm(g)&&p(g);){if(g=fD(g),g===h){f.push(g);break}g!=null&&g===document.body&&bl(g)&&!bl(document.documentElement)||g!=null&&bl(g,u)&&f.push(g)}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:L}=(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,$=l==="center"?R+w/2-L+P:l==="end"?k+P:R-L;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===h&&!bl(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),se=parseInt(U.borderBottomWidth,10);let ae=0,re=0;const le="offsetWidth"in W?W.offsetWidth-W.clientWidth-ee-J:0,pe="offsetHeight"in W?W.offsetHeight-W.clientHeight-te-se:0,de="offsetWidth"in W?W.offsetWidth===0?0:Y/W.offsetWidth:0,ye="offsetHeight"in W?W.offsetHeight===0?0:N/W.offsetHeight:0;if(h===W)ae=yl(y,y+S,S,te,se,y+V,y+V+m,m),re=l==="start"?$:l==="center"?$-b/2:l==="end"?$-b:yl(v,v+b,b,ee,J,v+$,v+$+w,w),ae=Math.max(0,ae+y),re=Math.max(0,re+v);else{ae=yl(X,ge,N,te,se+pe,V,V+m,m),re=l==="start"?$-D-ee:l==="center"?$-(D+Y/2)+le/2:l==="end"?$-K+J+le:yl(D,K,Y,ee,J+le,$,$+w,w);const{scrollLeft:Z,scrollTop:Oe}=W;ae=ye===0?0:Math.max(0,Math.min(Oe+ae/ye,W.scrollHeight-N/ye+pe)),re=de===0?0:Math.max(0,Math.min(Z+re/de,W.scrollWidth-Y/de+le)),V+=Oe-ae,$+=Z-re}I.push({el:W,top:ae,left:re})}return I};var Oo=function(){return Oo=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},Oo.apply(this,arguments)},hD=0;function Qm(e){return typeof e=="function"?e:_n}function _n(){}function cw(e,t){if(e){var r=pD(e,{boundary:t});r.forEach(function(n){var o=n.el,a=n.top,l=n.left;o.scrollTop=a,o.scrollLeft=l})}}function eb(e,t,r){var n=e===t||t instanceof r.Node&&e.contains&&e.contains(t);return n}function ap(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 Xr(){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 tb(){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 gD(){return String(hD++)}function vD(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 rb(e,t){return e=Array.isArray(e)?e[0]:e,!e&&t?t:e}function uw(e){return typeof e.type=="string"}function dw(e){return e.props}function mD(e,t){console.error('The property "'+t+'" is required in "'+e+'"')}var bD=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function wl(e){e===void 0&&(e={});var t={};return bD.forEach(function(r){e.hasOwnProperty(r)&&(t[r]=e[r])}),t}function yD(e,t){return!e||!t?e:Object.keys(e).reduce(function(r,n){return r[n]=gf(t,n)?t[n]:e[n],r},{})}function gf(e,t){return e[t]!==void 0}function nb(e){var t=e.key,r=e.keyCode;return r>=37&&r<=40&&t.indexOf("Arrow")!==0?"Arrow"+t:t}function wD(e){return Object.prototype.toString.call(e)==="[object Object]"}function Td(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=sc(c,t<0,r,n,o);return u===-1?e>=a?-1:e:u}function sc(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?sc(t?a-1:0,t,r,n):-1}function ib(e,t,r,n){return n===void 0&&(n=!0),r&&t.some(function(o){return o&&(eb(o,e,r)||n&&eb(o,r.document.activeElement,r))})}var sp=_n;process.env.NODE_ENV!=="production"&&(sp=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 xD=ap(function(e){fw(e).textContent=""},500);function fw(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 pw(e,t){if(!(!e||!t)){var r=fw(t);r.textContent=e,xD(t)}}var hw=process.env.NODE_ENV!=="production"?"__autocomplete_unknown__":0,gw=process.env.NODE_ENV!=="production"?"__autocomplete_mouseup__":1,vw=process.env.NODE_ENV!=="production"?"__autocomplete_item_mouseenter__":2,Ul=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_up__":3,ql=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_arrow_down__":4,mw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_escape__":5,bw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_enter__":6,yw=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_home__":7,ww=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_end__":8,xw=process.env.NODE_ENV!=="production"?"__autocomplete_click_item__":9,Sw=process.env.NODE_ENV!=="production"?"__autocomplete_blur_input__":10,_w=process.env.NODE_ENV!=="production"?"__autocomplete_change_input__":11,Ew=process.env.NODE_ENV!=="production"?"__autocomplete_keydown_space_button__":12,vf=process.env.NODE_ENV!=="production"?"__autocomplete_click_button__":13,kw=process.env.NODE_ENV!=="production"?"__autocomplete_blur_button__":14,Ow=process.env.NODE_ENV!=="production"?"__autocomplete_controlled_prop_updated_selected_item__":15,Aw=process.env.NODE_ENV!=="production"?"__autocomplete_touchend__":16,SD=Object.freeze({__proto__:null,blurButton:kw,blurInput:Sw,changeInput:_w,clickButton:vf,clickItem:xw,controlledPropUpdatedSelectedItem:Ow,itemMouseEnter:vw,keyDownArrowDown:ql,keyDownArrowUp:Ul,keyDownEnd:ww,keyDownEnter:bw,keyDownEscape:mw,keyDownHome:yw,keyDownSpaceButton:Ew,mouseUp:gw,touchEnd:Aw,unknown:hw}),_D=["refKey","ref"],ED=["onClick","onPress","onKeyDown","onKeyUp","onBlur"],kD=["onKeyDown","onBlur","onChange","onInput","onChangeText"],OD=["refKey","ref"],AD=["onMouseMove","onMouseDown","onClick","onPress","index","item"],TD=(function(){var e=(function(t){function r(o){var a;a=t.call(this,o)||this,a.id=a.props.id||"downshift-"+gD(),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=wl(x),a.internalSetState(yt({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=wl(x),a.internalSetState(yt({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,yt({},a.getStateAndHelpers(),w)),a.setState(function(P){var L;P=a.getState(P);var V=F?w(P):w;V=a.props.stateReducer(P,V),k=V.hasOwnProperty("selectedItem");var $={};return k&&V.selectedItem!==P.selectedItem&&(E=V.selectedItem),(L=V).type||(L.type=hw),Object.keys(V).forEach(function(I){P[I]!==V[I]&&(R[I]=V[I]),I!=="type"&&(V[I],gf(a.props,I)||($[I]=V[I]))}),F&&V.hasOwnProperty("inputValue")&&a.props.onInputValueChange(V.inputValue,yt({},a.getStateAndHelpers(),V)),$},function(){Qm(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,L=ba(E,_D),V=x===void 0?{}:x,$=V.suppressRefError,I=$===void 0?!1:$;a.getRootProps.called=!0,a.getRootProps.refKey=F,a.getRootProps.suppressRefError=I;var j=a.getState(),W=j.isOpen;return yt((k={},k[F]=tb(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),L)},a.keyDownHandlers={ArrowDown:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?5:1;this.moveHighlightedIndex(k,{type:ql})}else this.internalSetState({isOpen:!0,type:ql},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,P=Td(F,1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:ql})}})},ArrowUp:function(w){var x=this;if(w.preventDefault(),this.getState().isOpen){var k=w.shiftKey?-5:-1;this.moveHighlightedIndex(k,{type:Ul})}else this.internalSetState({isOpen:!0,type:Ul},function(){var E=x.getItemCount();if(E>0){var R=x.getState(),F=R.highlightedIndex,P=Td(F,-1,{length:E},x.isItemDisabled,!0);x.setHighlightedIndex(P,{type:Ul})}})},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:bw})}}},Escape:function(w){w.preventDefault(),this.reset(yt({type:mw},!this.state.isOpen&&{selectedItem:null,inputValue:""}))}},a.buttonKeyDownHandlers=yt({},a.keyDownHandlers,{" ":function(w){w.preventDefault(),this.toggleMenu({type:Ew})}}),a.inputKeyDownHandlers=yt({},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=sc(0,!1,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:yw})}}},End:function(w){var x=this.getState(),k=x.isOpen;if(k){w.preventDefault();var E=this.getItemCount();if(!(E<=0||!k)){var R=sc(E-1,!0,{length:E},this.isItemDisabled);this.setHighlightedIndex(R,{type:ww})}}}}),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=ba(x,ED),L=a.getState(),V=L.isOpen,$={onClick:Xr(k,a.buttonHandleClick),onKeyDown:Xr(E,a.buttonHandleKeyDown),onKeyUp:Xr(R,a.buttonHandleKeyUp),onBlur:Xr(F,a.buttonHandleBlur)},I=P.disabled?{}:$;return yt({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=nb(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:vf}):a.internalSetTimeout(function(){return a.toggleMenu({type:vf})})},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:kw})}})},a.getLabelProps=function(w){return yt({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=ba(x,kD),L,V={};L="onChange";var $=a.getState(),I=$.inputValue,j=$.isOpen,W=$.highlightedIndex;if(!P.disabled){var N;V=(N={},N[L]=Xr(R,F,a.inputHandleChange),N.onKeyDown=Xr(k,a.inputHandleKeyDown),N.onBlur=Xr(E,a.inputHandleBlur),N)}return yt({"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=nb(w);x&&a.inputKeyDownHandlers[x]&&a.inputKeyDownHandlers[x].call(a,w)},a.inputHandleChange=function(w){a.internalSetState({type:_w,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:Sw})}})},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,L=ba(E,OD),V=x===void 0?{}:x,$=V.suppressRefError,I=$===void 0?!1:$;return a.getMenuProps.called=!0,a.getMenuProps.refKey=F,a.getMenuProps.suppressRefError=I,yt((k={},k[F]=tb(P,a.menuRef),k.role="listbox",k["aria-labelledby"]=L&&L["aria-label"]?void 0:a.labelId,k.id=a.menuId,k),L)},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,L=k.item,V=L===void 0?process.env.NODE_ENV==="production"?void 0:mD("getItemProps","item"):L,$=ba(k,AD);P===void 0?(a.items.push(V),P=a.items.indexOf(V)):a.items[P]=V;var I="onClick",j=F,W=(x={onMouseMove:Xr(E,function(){P!==a.getState().highlightedIndex&&(a.setHighlightedIndex(P,{type:vw}),a.avoidScrolling=!0,a.internalSetTimeout(function(){return a.avoidScrolling=!1},250))}),onMouseDown:Xr(R,function(Y){Y.preventDefault()})},x[I]=Xr(j,function(){a.selectItemAtIndex(P,{type:xw})}),x),N=$.disabled?{onMouseDown:W.onMouseDown}:W;return yt({id:a.getItemId(P),role:"option","aria-selected":a.getState().highlightedIndex===P},N,$)},a.clearItems=function(){a.items=[]},a.reset=function(w,x){w===void 0&&(w={}),w=wl(w),a.internalSetState(function(k){var E=k.selectedItem;return yt({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=wl(w),a.internalSetState(function(k){var E=k.isOpen;return yt({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),Qm(x)()})},a.openMenu=function(w){a.internalSetState({isOpen:!0},w)},a.closeMenu=function(w){a.internalSetState({isOpen:!1},w)},a.updateStatus=ap(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(yt({itemToString:a.props.itemToString,previousResultCount:a.previousResultCount,resultCount:E,highlightedItem:k},x));a.previousResultCount=E,pw(R,a.props.environment.document)}},200);var l=a.props,c=l.defaultHighlightedIndex,u=l.initialHighlightedIndex,p=u===void 0?c:u,h=l.defaultIsOpen,f=l.initialIsOpen,g=f===void 0?h:f,b=l.initialInputValue,S=b===void 0?"":b,v=l.initialSelectedItem,y=v===void 0?null:v,m=a.getState({highlightedIndex:p,isOpen:g,inputValue:S,selectedItem:y});return m.selectedItem!=null&&a.props.initialInputValue===void 0&&(m.inputValue=a.props.itemToString(m.selectedItem)),a.state=m,a}eD(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),yD(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=Td(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,h=this.id,f=this.getRootProps,g=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,L=this.clearItems,V=this.reset,$=this.setItemCount,I=this.unsetItemCount,j=this.internalSetState;return{getRootProps:f,getToggleButtonProps:g,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:L,setItemCount:$,unsetItemCount:I,setState:j,itemToString:p,id:h,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&&ob(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 g=ib(f.target,[o._rootNode,o._menuNode],o.props.environment);!g&&o.getState().isOpen&&o.reset({type:gw},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},c=function(){o.isTouchMove=!1},u=function(){o.isTouchMove=!0},p=function(f){var g=ib(f.target,[o._rootNode,o._menuNode],o.props.environment,!1);!o.isTouchMove&&!g&&o.getState().isOpen&&o.reset({type:Aw},function(){return o.props.onOuterClick(o.getStateAndHelpers())})},h=this.props.environment;h.addEventListener("mousedown",a),h.addEventListener("mouseup",l),h.addEventListener("touchstart",c),h.addEventListener("touchmove",u),h.addEventListener("touchend",p),this.cleanup=function(){o.internalClearTimeouts(),o.updateStatus.cancel(),h.removeEventListener("mousedown",a),h.removeEventListener("mouseup",l),h.removeEventListener("touchstart",c),h.removeEventListener("touchmove",u),h.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,h=c&&this.getState().isOpen&&!o.isOpen,f=c!==p;return h||f},n.componentDidUpdate=function(o,a){process.env.NODE_ENV!=="production"&&(sp(this.state,o,this.props),this.getMenuProps.called&&!this.getMenuProps.suppressRefError&&ob(this._menuNode,this.getMenuProps)),gf(this.props,"selectedItem")&&this.props.selectedItemChanged(o.selectedItem,this.props.selectedItem)&&this.internalSetState({type:Ow,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=rb(this.props.children,_n);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=rb(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&&RD(a,this.getRootProps),a;if(uw(a))return z.cloneElement(a,this.getRootProps(dw(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})(z.Component);return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:vD,itemToString:function(t){return t==null?"":(process.env.NODE_ENV!=="production"&&wD(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:_n,onInputValueChange:_n,onUserAction:_n,onChange:_n,onSelect:_n,onOuterClick:_n,selectedItemChanged:function(t,r){return t!==r},environment:typeof window>"u"?void 0:window,stateReducer:function(t,r){return r},suppressRefError:!1,scrollIntoView:cw},e.stateChangeTypes=SD,e})();process.env.NODE_ENV!=="production"&&(TD.propTypes={children:fe.func,defaultHighlightedIndex:fe.number,defaultIsOpen:fe.bool,initialHighlightedIndex:fe.number,initialSelectedItem:fe.any,initialInputValue:fe.string,initialIsOpen:fe.bool,getA11yStatusMessage:fe.func,itemToString:fe.func,onChange:fe.func,onSelect:fe.func,onStateChange:fe.func,onInputValueChange:fe.func,onUserAction:fe.func,onOuterClick:fe.func,selectedItemChanged:fe.func,stateReducer:fe.func,itemCount:fe.number,id:fe.string,environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),suppressRefError:fe.bool,scrollIntoView:fe.func,selectedItem:fe.any,isOpen:fe.bool,inputValue:fe.string,highlightedIndex:fe.number,labelId:fe.string,inputId:fe.string,menuId:fe.string,getItemId:fe.func});function ob(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 RD(e,t){var r=t.refKey,n=r!=="ref",o=!uw(e);o&&!n&&!Ym.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+'"'),!Ym.isForwardRef(e)&&!dw(e)[r]&&console.error('downshift: You must apply the ref prop "'+r+'" from getRootProps onto your root element.')}function CD(e,t){return t.changes}ap(function(e,t){pw(e,t)},200);var Ha={itemToString:function(e){return e?String(e):""},itemToKey:function(e){return e},stateReducer:CD,scrollIntoView:cw,environment:typeof window>"u"?void 0:window};process.env.NODE_ENV;process.env.NODE_ENV;function PD(){var e=z.useRef(!0);return z.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]),e.current}var Vl={environment:fe.shape({addEventListener:fe.func.isRequired,removeEventListener:fe.func.isRequired,document:fe.shape({createElement:fe.func.isRequired,getElementById:fe.func.isRequired,activeElement:fe.any.isRequired,body:fe.any.isRequired}).isRequired,Node:fe.func.isRequired}),itemToString:fe.func,itemToKey:fe.func,stateReducer:fe.func},Tw=yt({},Vl,{getA11yStatusMessage:fe.func,highlightedIndex:fe.number,defaultHighlightedIndex:fe.number,initialHighlightedIndex:fe.number,isOpen:fe.bool,defaultIsOpen:fe.bool,initialIsOpen:fe.bool,selectedItem:fe.any,initialSelectedItem:fe.any,defaultSelectedItem:fe.any,id:fe.string,labelId:fe.string,menuId:fe.string,getItemId:fe.func,toggleButtonId:fe.string,onSelectedItemChange:fe.func,onHighlightedIndexChange:fe.func,onStateChange:fe.func,onIsOpenChange:fe.func,scrollIntoView:fe.func}),ID=Oo(Oo({},Tw),{items:fe.array.isRequired,isItemDisabled:fe.func});Oo(Oo({},Ha),{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 ND=yt({},Tw,{items:fe.array.isRequired,isItemDisabled:fe.func,inputValue:fe.string,defaultInputValue:fe.string,initialInputValue:fe.string,inputId:fe.string,onInputValueChange:fe.func});process.env.NODE_ENV;yt({},Ha,{isItemDisabled:function(){return!1}});var DD={stateReducer:Vl.stateReducer,itemToKey:Vl.itemToKey,environment:Vl.environment,selectedItems:fe.array,initialSelectedItems:fe.array,defaultSelectedItems:fe.array,getA11yStatusMessage:fe.func,activeIndex:fe.number,initialActiveIndex:fe.number,defaultActiveIndex:fe.number,onActiveIndexChange:fe.func,onSelectedItemsChange:fe.func,keyNavigationNext:fe.string,keyNavigationPrevious:fe.string};Ha.itemToKey,Ha.stateReducer,Ha.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 MD=z.forwardRef(({className:e,children:t,isFocused:r,isDisabled:n,...o},a)=>{const{size:l,color:c,isDisabled:u,hasMessage:p,downshift:h,isInvalid:f}=Xt(),g=n??u,b=r??h.isOpen;return A.jsx("div",{ref:a,className:ue($2({size:l,color:c,isDisabled:g,isFocused:!!b,isInvalid:f&&!h.isOpen,hasMessage:p}),e),"aria-disabled":g,"aria-invalid":f,role:"combobox",tabIndex:g?-1:0,...o,children:t})}),LD=({className:e,children:t,isMulti:r})=>A.jsx("div",{className:ue(z2({isMulti:r}),e),children:t}),Gl=z.forwardRef(({isHidden:e,inputClassName:t,...r},n)=>{const{size:o,color:a}=Xt();return e?A.jsx("input",{ref:n,type:"text",style:{position:"absolute",top:0,left:0,opacity:0,width:"100%",height:"100%",pointerEvents:"none"},tabIndex:-1,...r}):A.jsx("input",{ref:n,type:"text",className:ue(j2({size:o,color:a}),t),...r})}),$D=({className:e,children:t})=>{const{size:r,color:n}=Xt();return A.jsx("div",{className:ue(F2({size:r,color:n}),e),children:t})},zD=({className:e,children:t,data:r,isDisabled:n})=>{const{size:o,color:a,getOptionLabel:l,formatOptionLabel:c}=Xt();return A.jsx("div",{className:ue(H2({size:o,color:a,isDisabled:n}),e),children:t||(c?c(r):l(r))})},Rw=({className:e,children:t,data:r,isDisabled:n,isFocused:o,onRemove:a})=>{const{size:l,color:c,downshift:u,getOptionLabel:p,formatOptionLabel:h}=Xt(),f=()=>{a?a(r):u.removeItem(r)};return A.jsxs("div",{className:ue(B2({size:l,color:c,isDisabled:n,isFocused:o}),e),children:[A.jsx("div",{className:W2({size:l}),children:t||(h?h(r):p(r))}),!n&&A.jsx("div",{className:U2({size:l,color:c,isDisabled:!1}),onClick:f,children:A.jsx(Rc,{className:"w-3 h-3"})})]})},Cw=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:p}=Xt(),h=o??u,f=p.selectedItems.length>0;if(h||!f)return null;const g=b=>{b.stopPropagation(),n?n(b):p.clearSelection()};return A.jsx("div",{className:ue(aw({size:l,color:e||c,isDisabled:h}),t),onClick:g,role:"button",tabIndex:0,"aria-label":"Clear selection",...a,children:r||A.jsx(dI,{})})},jD=({className:e,children:t,onClick:r,isDisabled:n,...o})=>{const{size:a,color:l,isDisabled:c,downshift:u}=Xt(),p=n??c,h=u.inputValue.length>0&&u.isSearchable;if(p||!h)return null;const f=g=>{g.stopPropagation(),r?r(g):u.setInputValue("")};return A.jsx("div",{className:ue(aw({size:a,color:l,isDisabled:p}),e),onClick:f,role:"button",tabIndex:0,"aria-label":"Clear selection",...o,children:t||A.jsx(Rc,{})})},Pw=({color:e,className:t,children:r,onClick:n,isDisabled:o,...a})=>{const{size:l,color:c,isDisabled:u,downshift:p}=Xt(),h=o??u,f=p.isOpen,g=b=>{b.stopPropagation(),h||(n?n(b):p.toggleMenu())};return A.jsx("div",{className:ue(q2({size:l,color:e||c,isDisabled:h}),"cursor-pointer",t),onClick:g,role:"button",tabIndex:h?-1:0,"aria-label":f?"Close menu":"Open menu","aria-expanded":f,"aria-disabled":h,onMouseDown:b=>{b.preventDefault()},...a,children:r||A.jsx(fI,{className:ue("transition-transform duration-200",{"rotate-180":f})})})},FD=z.forwardRef(({className:e,children:t,placement:r,...n},o)=>{const{size:a,hasMessage:l,color:c}=Xt();return A.jsx("div",{"data-qui":"SelectMenu",ref:o,className:ue(V2({size:a,placement:r,hasMessage:l,color:c}),e),...n,children:t})}),HD=z.forwardRef(({className:e,children:t,maxHeight:r=300,...n},o)=>{const{size:a}=Xt();return A.jsx(ep,{scrollableNodeProps:{ref:o},className:ue(G2({size:a}),e),style:{maxHeight:r},...n,children:t})}),mf=({className:e,children:t,data:r,isDisabled:n,isFocused:o,isSelected:a,innerProps:l,...c})=>{const{size:u,color:p,getOptionLabel:h,formatOptionLabel:f}=Xt();return A.jsx("div",{"data-qui":"SelectOption",className:ue(K2({size:u,color:p,isDisabled:n,isFocused:o,isSelected:a}),e),...l,...c,children:t||(f?f(r):h(r))})},BD=({className:e,children:t,data:r,label:n})=>{const{size:o}=Xt();return A.jsxs("div",{"data-qui":"SelectGroup",className:ue(Z2({size:o}),e),children:[A.jsx(WD,{children:n||r.label}),t]})},WD=({className:e,children:t})=>{const{size:r,color:n}=Xt();return A.jsx("div",{className:ue(Y2({size:r,color:n}),e),children:t})},Rd=({className:e,children:t,inputValue:r})=>{const{size:n}=Xt();return A.jsx("div",{className:ue(J2({size:n}),e),children:t||`No options found${r?` for "${r}"`:""}`})},UD=({isOpen:e,usePortal:t,controlRef:r,children:n})=>{const[o,a]=z.useState(null);return z.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?ti.createPortal(A.jsx("div",{className:"absolute z-50",style:{top:o.top,left:o.left,width:o.width,height:o.height,pointerEvents:"none"},children:A.jsx("div",{className:"relative w-full h-full",children:A.jsx("div",{style:{pointerEvents:"auto"},children:n})})}),document.body):A.jsx(A.Fragment,{children:n}):null},Cd=e=>t=>{e.forEach(r=>{typeof r=="function"?r(t):r!=null&&"current"in r&&(r.current=t)})},qD=z.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:h="trigger",hideSelectedOptions:f=!1,onFocus:g,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":L,"aria-describedby":V,children:$,usePortal:I=!1,...j},W)=>{const{size:N,isInvalid:Y,isDisabled:X,downshift:K,options:ge=[],getOptionLabel:D,getOptionValue:U,isOptionDisabled:ee}=Xt(),te=z.useRef(null),J=x||te,se=z.useRef(null),{isOpen:ae,openMenu:re,selectedItem:le,inputValue:pe,highlightedIndex:de,getToggleButtonProps:ye,getMenuProps:Z,getInputProps:Oe,getItemProps:ve,isMulti:pt,isSearchable:Et,multipleSelection:Nt}=K,{getDropdownProps:zi}=Nt,or=pt?K.selectedItems??[]:le?[le]:[],Dt=or.length>0,Rt=a&&!X&&!u,Dr=o&&Dt&&!X&&!u,Vr=!p&&!u,ii=!Dt&&(!Et||!pe)||!k,Mr={},oi={};Object.entries(j).forEach(([$e,je])=>{$e.startsWith("data-")||$e.startsWith("aria-")||$e==="role"?Mr[$e]=je:oi[$e]=je});const Lr=z.useMemo(()=>Cd([se,W]),[W]),mr=Z({},{suppressRefError:!0}),un=zi({preventKeyAction:ae}),Mo=(Oe==null?void 0:Oe({ref:J,disabled:X,required:c,name:E,id:R,"aria-label":P,"aria-labelledby":L,"aria-describedby":V,"aria-invalid":Y,onFocus:g,onBlur:b,...oi,...un}))??{},{ref:ji,...ai}=Mo,si=z.useMemo(()=>Cd([ji,un.ref]),[ji,un.ref]),Lo=$e=>or.some(je=>U(je)===U($e)),Fi=$e=>f?$e.filter(je=>!Lo(je)):$e,$o=$e=>f?$e.map(je=>({...je,options:Fi(je.options)})).filter(je=>je.options.length>0):$e,Hi=$e=>{F==null||F(U($e),$e)},Uc=Et?{}:ye({disabled:X,...un,ref:Cd([Lr,un.ref])});return A.jsxs("div",{className:"relative",children:[A.jsxs(MD,{...Et?{ref:Lr}:Uc,...Mr,isFocused:ae,isDisabled:X,onClick:$e=>{$e.stopPropagation(),Et?re():Et||K.toggleMenu()},children:[$||A.jsxs(LD,{isMulti:pt,children:[pt&&k&&or.map(($e,je)=>m?m({data:$e,index:je,isDisabled:X,onRemove:Mt=>K.removeItem(Mt)}):A.jsx(Rw,{data:$e,index:je,isDisabled:X},U($e))),!pt&&Dt&&k&&!Et&&A.jsx("div",{className:"flex items-center gap-2",children:A.jsx(zD,{data:or[0],isDisabled:X,children:v&&y?v(or[0]):D(or[0])})}),Et&&h==="trigger"?A.jsx(Gl,{ref:si,...ai,placeholder:e}):A.jsxs(A.Fragment,{children:[A.jsx(Gl,{ref:si,...ai,isHidden:!0,value:or.map($e=>U($e)).join(",")}),ii&&A.jsx($D,{children:e})]})]}),A.jsxs("div",{className:ue("flex items-center size-fit gap-1",{hidden:!Dr&&!Vr}),children:[Rt&&A.jsx(jD,{}),Dr&&A.jsx(Cw,{}),Vr&&A.jsx(Pw,{...Et?ye({disabled:X,"aria-label":ae?"Close menu":"Open menu"}):{}})]})]}),A.jsx(UD,{isOpen:ae,usePortal:I,controlRef:se,children:r&&K.filteredItems.length===0?A.jsx("div",{...mr,style:{display:"none"},"aria-hidden":"true"}):A.jsxs(FD,{...mr,children:[S&&S(K),Et&&h==="menu"&&A.jsx("div",{className:"p-2",children:A.jsx(Gl,{ref:si,...ai,autoFocus:!0,placeholder:e,onClick:$e=>$e.stopPropagation()})}),A.jsx(HD,{children:l?A.jsx("div",{className:X2({size:N}),children:n}):K.filteredItems.length===0?A.jsx(Rd,{inputValue:pe,children:typeof t=="function"?t(pe):t}):Q2(ge)?(()=>{const $e=$o(ge);return $e.length===0?A.jsx(Rd,{inputValue:pe,children:typeof t=="function"?t(pe):t}):$e.map(je=>A.jsx(BD,{data:je,label:je.label,options:je.options,children:je.options.map(Mt=>{const dn=U(Mt),Bi=or.some(zo=>U(zo)===dn),li=K.filteredItems.findIndex(zo=>U(zo)===dn),Wi=de===li,Ui=ee(Mt),In=ve({item:Mt,index:li,onClick:()=>Hi(Mt)});return A.jsx(mf,{...In,data:Mt,isDisabled:Ui,isFocused:Wi,isSelected:Bi,children:v?v(Mt):D(Mt)},dn)})},je.label))})():(()=>{const $e=Fi(K.filteredItems);return $e.length===0?A.jsx(Rd,{inputValue:pe,children:typeof t=="function"?t(pe):t}):$e.map(je=>{const Mt=U(je),dn=or.some(In=>U(In)===Mt),Bi=K.filteredItems.findIndex(In=>U(In)===Mt),li=de===Bi,Wi=ee(je),Ui=ve({item:je,index:Bi,onClick:()=>Hi(je)});return w?A.jsx(z.Fragment,{children:w({...Ui,data:je,isDisabled:Wi,isFocused:li,isSelected:dn})},Mt):A.jsx(mf,{...Ui,data:je,isDisabled:Wi,isFocused:li,isSelected:dn,children:v?v(je):D(je)},Mt)})})()})]})})]})});Gl.displayName="Select.Input";Rw.displayName="Select.MultiValue";Cw.displayName="Select.ClearIndicator";Pw.displayName="Select.DropdownIndicator";mf.displayName="Select.Option";const VD=qD;VD.displayName="Select.Field";z.createContext(void 0);const GD=({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),KD=z.forwardRef(({active:e,disabled:t,error:r,isOpen:n,className:o,children:a,as:l="div",...c},u)=>{const p=GD({active:e,disabled:t,error:r,isOpen:n,className:o});return A.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})});KD.displayName="ListItem";const xl=e=>t=>e===t,ZD=function({treeData:t,renderNode:r,onNodeClick:n,onExpandNode:o,searchQuery:a,expandedKeys:l,expandCondition:c="always",encapsulated:u,className:p}){const[h,f]=z.useState(()=>({expandedKeys:l||[],selectedKeys:[]}));z.useEffect(()=>{c==="when-collapsed"&&h.expandedKeys.length>0||f({...h,expandedKeys:l||h.expandedKeys})},[l]);const g=z.useCallback(m=>{if(!m)return;const w=h.expandedKeys.findIndex(xl(m.key));let x=[];w===-1?(x=[...h.expandedKeys,m.key],f(()=>({...h,expandedKeys:x})),o&&o(x)):(x=h.expandedKeys.filter(k=>k!==m.key),f(()=>({...h,expandedKeys:x})),o&&o(x))},[h]),b=z.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;h.selectedKeys.findIndex(xl(m.key))===-1&&f({...h,selectedKeys:[...h.selectedKeys,m.key]})},[h]),S=z.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable))return;h.selectedKeys.findIndex(xl(m.key))===-1&&f({...h,selectedKeys:[m.key]})},[h]),v=z.useCallback(m=>{var x;if(!((x=m==null?void 0:m.options)!=null&&x.selectable)){f({...h,selectedKeys:[]});return}h.selectedKeys.findIndex(xl(m.key))!==-1&&f({...h,selectedKeys:h.selectedKeys.filter(k=>k!==m.key)})},[h]),y=z.useMemo(()=>({expand:g,select:b,selectSingle:S,deselect:v}),[v,g,b,S]);return A.jsx(us,{depth:u?0:1,borderType:"light",className:tt("fd-tree",p,{"pl-2 mb-1 rounded border p-1":u}),children:t.map(m=>A.jsx(Xf,{node:m,searchQuery:a||"",depth:0,expandedKeys:h.expandedKeys,selectedKeys:h.selectedKeys,actions:y,renderNode:r,onNodeClick:n},m.key))})};function Kl(e){return e.of&&e.children?A.jsx(A.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 YD(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 XD={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 Iw(e){var t=Object.create(null);return function(r){return t[r]===void 0&&(t[r]=e(r)),t[r]}}var JD=/[A-Z]|^ms/g,QD=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Nw=function(t){return t.charCodeAt(1)===45},ab=function(t){return t!=null&&typeof t!="boolean"},Pd=Iw(function(e){return Nw(e)?e:e.replace(JD,"-$&").toLowerCase()}),sb=function(t,r){switch(t){case"animation":case"animationName":if(typeof r=="string")return r.replace(QD,function(n,o,a){return rn={name:o,styles:a,next:rn},o})}return XD[t]!==1&&!Nw(t)&&typeof r=="number"&&r!==0?r+"px":r};function Za(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 rn={name:o.name,styles:o.styles,next:rn},o.name;var a=r;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)rn={name:l.name,styles:l.styles,next:rn},l=l.next;var c=a.styles+";";return c}return eM(e,t,r)}case"function":{if(e!==void 0){var u=rn,p=r(e);return rn=u,Za(e,t,p)}break}}var h=r;if(t==null)return h;var f=t[h];return f!==void 0?f:h}function eM(e,t,r){var n="";if(Array.isArray(r))for(var o=0;o<r.length;o++)n+=Za(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]+"}":ab(c)&&(n+=Pd(a)+":"+sb(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++)ab(l[u])&&(n+=Pd(a)+":"+sb(a,l[u])+";");else{var p=Za(e,t,l);switch(a){case"animation":case"animationName":{n+=Pd(a)+":"+p+";";break}default:n+=a+"{"+p+"}"}}}return n}var lb=/label:\s*([^\s;{]+)\s*(;|$)/g,rn;function tM(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="";rn=void 0;var a=e[0];if(a==null||a.raw===void 0)n=!1,o+=Za(r,t,a);else{var l=a;o+=l[0]}for(var c=1;c<e.length;c++)if(o+=Za(r,t,e[c]),n){var u=a;o+=u[c]}lb.lastIndex=0;for(var p="",h;(h=lb.exec(o))!==null;)p+="-"+h[1];var f=YD(o)+p;return{name:f,styles:o,next:rn}}var rM=function(t){return t()},nM=B.useInsertionEffect?B.useInsertionEffect:!1,iM=nM||rM,oM=!0;function aM(e,t,r){var n="";return r.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):o&&(n+=o+" ")}),n}var Dw=function(t,r,n){var o=t.key+"-"+r.name;(n===!1||oM===!1)&&t.registered[o]===void 0&&(t.registered[o]=r.styles)},sM=function(t,r,n){Dw(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)}},lM=/^((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)-.*))$/,cM=Iw(function(e){return lM.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),uM=cM,dM=function(t){return t!=="theme"},cb=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?uM:dM},ub=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},fM=function(t){var r=t.cache,n=t.serialized,o=t.isStringTag;return Dw(r,n,o),iM(function(){return sM(r,n,o)}),null},pM=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=ub(t,r,n),u=c||cb(o),p=!u("as");return function(){var h=arguments,f=n&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),h[0]==null||h[0].raw===void 0)f.push.apply(f,h);else{var g=h[0];f.push(g[0]);for(var b=h.length,S=1;S<b;S++)f.push(h[S],g[S])}var v=lf.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(lf.ThemeContext)}typeof y.className=="string"?k=aM(m.registered,E,y.className):y.className!=null&&(k=y.className+" ");var P=tM(f.concat(E),m.registered,R);k+=m.key+"-"+P.name,l!==void 0&&(k+=" "+l);var L=p&&c===void 0?cb(x):u,V={};for(var $ in y)p&&$==="as"||L($)&&(V[$]=y[$]);return V.className=k,w&&(V.ref=w),B.createElement(B.Fragment,null,B.createElement(fM,{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:ub(v,m,!0)}));return w.apply(void 0,f)},v}},hM=["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"],lc=pM.bind(null);hM.forEach(function(e){lc[e]=lc(e)});var gM=function(e){if(typeof document>"u")return null;var t=Array.isArray(e)?e[0]:e;return t.ownerDocument.body},co=new WeakMap,Sl=new WeakMap,_l={},Id=0,Mw=function(e){return e&&(e.host||Mw(e.parentNode))},vM=function(e,t){return t.map(function(r){if(e.contains(r))return r;var n=Mw(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})},mM=function(e,t,r,n){var o=vM(t,Array.isArray(e)?e:[e]);_l[r]||(_l[r]=new WeakMap);var a=_l[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 h=function(f){!f||u.has(f)||Array.prototype.forEach.call(f.children,function(g){if(c.has(g))h(g);else try{var b=g.getAttribute(n),S=b!==null&&b!=="false",v=(co.get(g)||0)+1,y=(a.get(g)||0)+1;co.set(g,v),a.set(g,y),l.push(g),v===1&&S&&Sl.set(g,!0),y===1&&g.setAttribute(r,"true"),S||g.setAttribute(n,"true")}catch(m){console.error("aria-hidden: cannot operate on ",g,m)}})};return h(t),c.clear(),Id++,function(){l.forEach(function(f){var g=co.get(f)-1,b=a.get(f)-1;co.set(f,g),a.set(f,b),g||(Sl.has(f)||f.removeAttribute(n),Sl.delete(f)),b||f.removeAttribute(r)}),Id--,Id||(co=new WeakMap,co=new WeakMap,Sl=new WeakMap,_l={})}},bM=function(e,t,r){r===void 0&&(r="data-aria-hidden");var n=Array.from(Array.isArray(e)?e:[e]),o=gM(e);return o?(n.push.apply(n,Array.from(o.querySelectorAll("[aria-live], script"))),mM(n,o,r,"aria-hidden")):function(){return null}},bf=function(e,t){return bf=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])},bf(e,t)};function Pc(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");bf(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var nn=function(){return nn=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},nn.apply(this,arguments)};function Lw(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 yf(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 wf(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 cc(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 Zl="right-scroll-bar-position",Yl="width-before-scroll-bar",yM="with-scroll-bars-hidden",wM="--removed-body-scroll-bar-size";function Nd(e,t){return typeof e=="function"?e(t):e&&(e.current=t),e}function xM(e,t){var r=z.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 SM=typeof window<"u"?B.useLayoutEffect:B.useEffect,db=new WeakMap;function _M(e,t){var r=xM(null,function(n){return e.forEach(function(o){return Nd(o,n)})});return SM(function(){var n=db.get(r);if(n){var o=new Set(n),a=new Set(e),l=r.current;o.forEach(function(c){a.has(c)||Nd(c,null)}),a.forEach(function(c){o.has(c)||Nd(c,l)})}db.set(r,e)},[e]),r}function EM(e){return e}function kM(e,t){t===void 0&&(t=EM);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 h=l;l=[],h.forEach(a)},p=function(){return Promise.resolve().then(u)};p(),r={push:function(h){l.push(h),p()},filter:function(h){return l=l.filter(h),r}}}};return o}function OM(e){e===void 0&&(e={});var t=kM(null);return t.options=nn({async:!0,ssr:!1},e),t}var $w=function(e){var t=e.sideCar,r=Lw(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,nn({},r))};$w.isSideCarExport=!0;function AM(e,t){return e.useMedium(t),$w}var zw=OM(),Dd=function(){},Ic=B.forwardRef(function(e,t){var r=B.useRef(null),n=B.useState({onScrollCapture:Dd,onWheelCapture:Dd,onTouchMoveCapture:Dd}),o=n[0],a=n[1],l=e.forwardProps,c=e.children,u=e.className,p=e.removeScrollBar,h=e.enabled,f=e.shards,g=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=Lw(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),E=g,R=_M([r,t]),F=nn(nn({},k),o);return B.createElement(B.Fragment,null,h&&B.createElement(E,{sideCar:zw,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),nn(nn({},F),{ref:R})):B.createElement(w,nn({},F,{className:u,ref:R}),c))});Ic.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1};Ic.classNames={fullWidth:Yl,zeroRight:Zl};var TM=function(){if(typeof __webpack_nonce__<"u")return __webpack_nonce__};function RM(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=TM();return t&&e.setAttribute("nonce",t),e}function CM(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function PM(e){var t=document.head||document.getElementsByTagName("head")[0];t.appendChild(e)}var IM=function(){var e=0,t=null;return{add:function(r){e==0&&(t=RM())&&(CM(t,r),PM(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},NM=function(){var e=IM();return function(t,r){B.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&r])}},jw=function(){var e=NM(),t=function(r){var n=r.styles,o=r.dynamic;return e(n,o),null};return t},DM={left:0,top:0,right:0,gap:0},Md=function(e){return parseInt(e||"",10)||0},MM=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[Md(r),Md(n),Md(o)]},LM=function(e){if(e===void 0&&(e="margin"),typeof window>"u")return DM;var t=MM(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])}},$M=jw(),bo="data-scroll-locked",zM=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(yM,` {
73
+ overflow: hidden `).concat(n,`;
74
+ padding-right: `).concat(c,"px ").concat(n,`;
26
75
  }
27
- body[`).concat(hi,`] {
28
- overflow: hidden `).concat(i,`;
76
+ body[`).concat(bo,`] {
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
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(la,` {
41
- right: `).concat(c,"px ").concat(i,`;
89
+ .`).concat(Zl,` {
90
+ right: `).concat(c,"px ").concat(n,`;
42
91
  }
43
92
 
44
- .`).concat(ca,` {
45
- margin-right: `).concat(c,"px ").concat(i,`;
93
+ .`).concat(Yl,` {
94
+ margin-right: `).concat(c,"px ").concat(n,`;
46
95
  }
47
96
 
48
- .`).concat(la," .").concat(la,` {
49
- right: 0 `).concat(i,`;
97
+ .`).concat(Zl," .").concat(Zl,` {
98
+ right: 0 `).concat(n,`;
50
99
  }
51
100
 
52
- .`).concat(ca," .").concat(ca,` {
53
- margin-right: 0 `).concat(i,`;
101
+ .`).concat(Yl," .").concat(Yl,` {
102
+ margin-right: 0 `).concat(n,`;
54
103
  }
55
104
 
56
- body[`).concat(hi,`] {
57
- `).concat(kR,": ").concat(c,`px;
105
+ body[`).concat(bo,`] {
106
+ `).concat(wM,": ").concat(c,`px;
58
107
  }
59
- `)},ug=function(){var e=parseInt(document.body.getAttribute(hi)||"0",10);return isFinite(e)?e:0},YR=function(){$.useEffect(function(){return document.body.setAttribute(hi,(ug()+1).toString()),function(){var e=ug()-1;e<=0?document.body.removeAttribute(hi):document.body.setAttribute(hi,e.toString())}},[])},XR=function(e){var t=e.noRelative,r=e.noImportant,i=e.gapMode,s=i===void 0?"margin":i;YR();var a=$.useMemo(function(){return GR(s)},[s]);return $.createElement(KR,{styles:VR(a,!t,s,r?"":"!important")})},hc=!1;if(typeof window<"u")try{var Hs=Object.defineProperty({},"passive",{get:function(){return hc=!0,!0}});window.addEventListener("test",Hs,Hs),window.removeEventListener("test",Hs,Hs)}catch{hc=!1}var fi=hc?{passive:!1}:!1,JR=function(e){return e.tagName==="TEXTAREA"},Av=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!JR(e)&&r[t]==="visible")},QR=function(e){return Av(e,"overflowY")},eP=function(e){return Av(e,"overflowX")},lg=function(e,t){var r=t.ownerDocument,i=t;do{typeof ShadowRoot<"u"&&i instanceof ShadowRoot&&(i=i.host);var s=Tv(e,i);if(s){var a=Rv(e,i),l=a[1],c=a[2];if(l>c)return!0}i=i.parentNode}while(i&&i!==r.body);return!1},tP=function(e){var t=e.scrollTop,r=e.scrollHeight,i=e.clientHeight;return[t,r,i]},rP=function(e){var t=e.scrollLeft,r=e.scrollWidth,i=e.clientWidth;return[t,r,i]},Tv=function(e,t){return e==="v"?QR(t):eP(t)},Rv=function(e,t){return e==="v"?tP(t):rP(t)},nP=function(e,t){return e==="h"&&t==="rtl"?-1:1},iP=function(e,t,r,i,s){var a=nP(e,window.getComputedStyle(t).direction),l=a*i,c=r.target,f=t.contains(c),v=!1,m=l>0,g=0,p=0;do{if(!c)break;var b=Rv(e,c),x=b[0],d=b[1],w=b[2],h=d-w-a*x;(x||h)&&Tv(e,c)&&(g+=h,p+=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(m&&Math.abs(g)<1||!m&&Math.abs(p)<1)&&(v=!0),v},qs=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},cg=function(e){return[e.deltaX,e.deltaY]},fg=function(e){return e&&"current"in e?e.current:e},oP=function(e,t){return e[0]===t[0]&&e[1]===t[1]},sP=function(e){return`
108
+ `)},fb=function(){var e=parseInt(document.body.getAttribute(bo)||"0",10);return isFinite(e)?e:0},jM=function(){B.useEffect(function(){return document.body.setAttribute(bo,(fb()+1).toString()),function(){var e=fb()-1;e<=0?document.body.removeAttribute(bo):document.body.setAttribute(bo,e.toString())}},[])},FM=function(e){var t=e.noRelative,r=e.noImportant,n=e.gapMode,o=n===void 0?"margin":n;jM();var a=B.useMemo(function(){return LM(o)},[o]);return B.createElement($M,{styles:zM(a,!t,o,r?"":"!important")})},xf=!1;if(typeof window<"u")try{var El=Object.defineProperty({},"passive",{get:function(){return xf=!0,!0}});window.addEventListener("test",El,El),window.removeEventListener("test",El,El)}catch{xf=!1}var uo=xf?{passive:!1}:!1,HM=function(e){return e.tagName==="TEXTAREA"},Fw=function(e,t){if(!(e instanceof Element))return!1;var r=window.getComputedStyle(e);return r[t]!=="hidden"&&!(r.overflowY===r.overflowX&&!HM(e)&&r[t]==="visible")},BM=function(e){return Fw(e,"overflowY")},WM=function(e){return Fw(e,"overflowX")},pb=function(e,t){var r=t.ownerDocument,n=t;do{typeof ShadowRoot<"u"&&n instanceof ShadowRoot&&(n=n.host);var o=Hw(e,n);if(o){var a=Bw(e,n),l=a[1],c=a[2];if(l>c)return!0}n=n.parentNode}while(n&&n!==r.body);return!1},UM=function(e){var t=e.scrollTop,r=e.scrollHeight,n=e.clientHeight;return[t,r,n]},qM=function(e){var t=e.scrollLeft,r=e.scrollWidth,n=e.clientWidth;return[t,r,n]},Hw=function(e,t){return e==="v"?BM(t):WM(t)},Bw=function(e,t){return e==="v"?UM(t):qM(t)},VM=function(e,t){return e==="h"&&t==="rtl"?-1:1},GM=function(e,t,r,n,o){var a=VM(e,window.getComputedStyle(t).direction),l=a*n,c=r.target,u=t.contains(c),p=!1,h=l>0,f=0,g=0;do{if(!c)break;var b=Bw(e,c),S=b[0],v=b[1],y=b[2],m=v-y-a*S;(S||m)&&Hw(e,c)&&(f+=m,g+=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(h&&Math.abs(f)<1||!h&&Math.abs(g)<1)&&(p=!0),p},kl=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},hb=function(e){return[e.deltaX,e.deltaY]},gb=function(e){return e&&"current"in e?e.current:e},KM=function(e,t){return e[0]===t[0]&&e[1]===t[1]},ZM=function(e){return`
60
109
  .block-interactivity-`.concat(e,` {pointer-events: none;}
61
110
  .allow-interactivity-`).concat(e,` {pointer-events: all;}
62
- `)},aP=0,di=[];function uP(e){var t=$.useRef([]),r=$.useRef([0,0]),i=$.useRef(),s=$.useState(aP++)[0],a=$.useState(Ov)[0],l=$.useRef(e);$.useEffect(function(){l.current=e},[e]),$.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(s));var d=ya([e.lockRef.current],(e.shards||[]).map(fg),!0).filter(Boolean);return d.forEach(function(w){return w.classList.add("allow-interactivity-".concat(s))}),function(){document.body.classList.remove("block-interactivity-".concat(s)),d.forEach(function(w){return w.classList.remove("allow-interactivity-".concat(s))})}}},[e.inert,e.lockRef.current,e.shards]);var c=$.useCallback(function(d,w){if("touches"in d&&d.touches.length===2||d.type==="wheel"&&d.ctrlKey)return!l.current.allowPinchZoom;var h=qs(d),S=r.current,E="deltaX"in d?d.deltaX:S[0]-h[0],R="deltaY"in d?d.deltaY:S[1]-h[1],O,k=d.target,U=Math.abs(E)>Math.abs(R)?"h":"v";if("touches"in d&&U==="h"&&k.type==="range")return!1;var F=lg(U,k);if(!F)return!0;if(F?O=U:(O=U==="v"?"h":"v",F=lg(U,k)),!F)return!1;if(!i.current&&"changedTouches"in d&&(E||R)&&(i.current=O),!O)return!0;var D=i.current||O;return iP(D,w,d,D==="h"?E:R)},[]),f=$.useCallback(function(d){var w=d;if(!(!di.length||di[di.length-1]!==a)){var h="deltaY"in w?cg(w):qs(w),S=t.current.filter(function(O){return O.name===w.type&&(O.target===w.target||w.target===O.shadowParent)&&oP(O.delta,h)})[0];if(S&&S.should){w.cancelable&&w.preventDefault();return}if(!S){var E=(l.current.shards||[]).map(fg).filter(Boolean).filter(function(O){return O.contains(w.target)}),R=E.length>0?c(w,E[0]):!l.current.noIsolation;R&&w.cancelable&&w.preventDefault()}}},[]),v=$.useCallback(function(d,w,h,S){var E={name:d,delta:w,target:h,should:S,shadowParent:lP(h)};t.current.push(E),setTimeout(function(){t.current=t.current.filter(function(R){return R!==E})},1)},[]),m=$.useCallback(function(d){r.current=qs(d),i.current=void 0},[]),g=$.useCallback(function(d){v(d.type,cg(d),d.target,c(d,e.lockRef.current))},[]),p=$.useCallback(function(d){v(d.type,qs(d),d.target,c(d,e.lockRef.current))},[]);$.useEffect(function(){return di.push(a),e.setCallbacks({onScrollCapture:g,onWheelCapture:g,onTouchMoveCapture:p}),document.addEventListener("wheel",f,fi),document.addEventListener("touchmove",f,fi),document.addEventListener("touchstart",m,fi),function(){di=di.filter(function(d){return d!==a}),document.removeEventListener("wheel",f,fi),document.removeEventListener("touchmove",f,fi),document.removeEventListener("touchstart",m,fi)}},[]);var b=e.removeScrollBar,x=e.inert;return $.createElement($.Fragment,null,x?$.createElement(a,{styles:sP(s)}):null,b?$.createElement(XR,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function lP(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const cP=NR(_v,uP);var Pv=$.forwardRef(function(e,t){return $.createElement(Da,Or({},e,{ref:t,sideCar:cP}))});Pv.classNames=Da.classNames;const fP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},dP=$.useId||(()=>{});let pP=0;function Cv(e){const[t,r]=$.useState(dP());return fP((()=>{r((i=>i??String(pP++)))}),[e]),e||(t?`radix-${t}`:"")}function kv(...e){return t=>e.forEach((r=>(function(i,s){typeof i=="function"?i(s):i!=null&&(i.current=s)})(r,t)))}function vn(...e){return $.useCallback(kv(...e),e)}const $v=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.Children.toArray(r).some(dg)?$.createElement($.Fragment,null,$.Children.map(r,(s=>dg(s)?$.createElement(gc,Xe({},i,{ref:t}),s.props.children):s))):$.createElement(gc,Xe({},i,{ref:t}),r)}));$v.displayName="Slot";const gc=$.forwardRef(((e,t)=>{const{children:r,...i}=e;return $.isValidElement(r)?$.cloneElement(r,{...hP(i,r.props),ref:kv(t,r.ref)}):$.Children.count(r)>1?$.Children.only(null):null}));gc.displayName="SlotClone";const Iv=({children:e})=>$.createElement($.Fragment,null,e);function dg(e){return $.isValidElement(e)&&e.type===Iv}function hP(e,t){const r={...t};for(const i in t){const s=e[i],a=t[i];/^on[A-Z]/.test(i)?r[i]=(...l)=>{a==null||a(...l),s==null||s(...l)}:i==="style"?r[i]={...s,...a}:i==="className"&&(r[i]=[s,a].filter(Boolean).join(" "))}return{...e,...r}}const yn=["a","button","div","h2","h3","img","li","nav","ol","p","span","svg","ul"].reduce(((e,t)=>({...e,[t]:$.forwardRef(((r,i)=>{const{asChild:s,...a}=r,l=s?$v:t;return $.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),$.createElement(l,Xe({},a,{ref:i}))}))})),{}),pg=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Zc=e=>{const{present:t,children:r}=e,i=(function(l){const[c,f]=$.useState(),v=$.useRef({}),m=$.useRef(l),g=$.useRef("none"),p=l?"mounted":"unmounted",[b,x]=(function(d,w){return $.useReducer(((h,S)=>{const E=w[h][S];return E??h}),d)})(p,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return $.useEffect((()=>{const d=Zs(v.current);g.current=b==="mounted"?d:"none"}),[b]),pg((()=>{const d=v.current,w=m.current;if(w!==l){const h=g.current,S=Zs(d);l?x("MOUNT"):S==="none"||(d==null?void 0:d.display)==="none"?x("UNMOUNT"):x(w&&h!==S?"ANIMATION_OUT":"UNMOUNT"),m.current=l}}),[l,x]),pg((()=>{if(c){const d=h=>{const S=Zs(v.current).includes(h.animationName);h.target===c&&S&&x("ANIMATION_END")},w=h=>{h.target===c&&(g.current=Zs(v.current))};return c.addEventListener("animationstart",w),c.addEventListener("animationcancel",d),c.addEventListener("animationend",d),()=>{c.removeEventListener("animationstart",w),c.removeEventListener("animationcancel",d),c.removeEventListener("animationend",d)}}x("ANIMATION_END")}),[c,x]),{isPresent:["mounted","unmountSuspended"].includes(b),ref:$.useCallback((d=>{d&&(v.current=getComputedStyle(d)),f(d)}),[])}})(t),s=typeof r=="function"?r({present:i.isPresent}):$.Children.only(r),a=vn(i.ref,s.ref);return typeof r=="function"||i.isPresent?$.cloneElement(s,{ref:a}):null};function Zs(e){return(e==null?void 0:e.animationName)||"none"}Zc.displayName="Presence";let Ml=0;function gP(){$.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:hg()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:hg()),Ml++,()=>{Ml===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((i=>i.remove())),Ml--}}),[])}function hg(){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 mP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{},Gc=$.forwardRef(((e,t)=>{var r,i;const{containerRef:s,style:a,...l}=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]=$.useState({});return mP((()=>{f({})}),[]),c?Do.createPortal($.createElement(yn.div,Xe({"data-radix-portal":""},l,{ref:t,style:c===document.body?{position:"absolute",top:0,left:0,zIndex:2147483647,...a}:void 0})),c):null}));function Un(e){const t=$.useRef(e);return $.useEffect((()=>{t.current=e})),$.useMemo((()=>(...r)=>{var i;return(i=t.current)===null||i===void 0?void 0:i.call(t,...r)}),[])}const gg={bubbles:!1,cancelable:!0},vP=$.forwardRef(((e,t)=>{const{loop:r=!1,trapped:i=!1,onMountAutoFocus:s,onUnmountAutoFocus:a,...l}=e,[c,f]=$.useState(null),v=Un(s),m=Un(a),g=$.useRef(null),p=vn(t,(d=>f(d))),b=$.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;$.useEffect((()=>{if(i){let d=function(h){if(b.paused||!c)return;const S=h.target;c.contains(S)?g.current=S:kn(g.current,{select:!0})},w=function(h){!b.paused&&c&&(c.contains(h.relatedTarget)||kn(g.current,{select:!0}))};return document.addEventListener("focusin",d),document.addEventListener("focusout",w),()=>{document.removeEventListener("focusin",d),document.removeEventListener("focusout",w)}}}),[i,c,b.paused]),$.useEffect((()=>{if(c){yg.add(b);const w=document.activeElement;if(!c.contains(w)){const h=new Event("focusScope.autoFocusOnMount",gg);c.addEventListener("focusScope.autoFocusOnMount",v),c.dispatchEvent(h),h.defaultPrevented||((function(S,{select:E=!1}={}){const R=document.activeElement;for(const O of S)if(kn(O,{select:E}),document.activeElement!==R)return})((d=mg(c),d.filter((S=>S.tagName!=="A"))),{select:!0}),document.activeElement===w&&kn(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",v),setTimeout((()=>{const h=new Event("focusScope.autoFocusOnUnmount",gg);c.addEventListener("focusScope.autoFocusOnUnmount",m),c.dispatchEvent(h),h.defaultPrevented||kn(w??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",m),yg.remove(b)}),0)}}var d}),[c,v,m,b]);const x=$.useCallback((d=>{if(!r&&!i||b.paused)return;const w=d.key==="Tab"&&!d.altKey&&!d.ctrlKey&&!d.metaKey,h=document.activeElement;if(w&&h){const S=d.currentTarget,[E,R]=(function(O){const k=mg(O),U=vg(k,O),F=vg(k.reverse(),O);return[U,F]})(S);E&&R?d.shiftKey||h!==R?d.shiftKey&&h===E&&(d.preventDefault(),r&&kn(R,{select:!0})):(d.preventDefault(),r&&kn(E,{select:!0})):h===S&&d.preventDefault()}}),[r,i,b.paused]);return $.createElement(yn.div,Xe({tabIndex:-1},l,{ref:p,onKeyDown:x}))}));function mg(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 vg(e,t){for(const r of e)if(!yP(r,{upTo:t}))return r}function yP(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 kn(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 yg=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=bg(e,t),e.unshift(t)},remove(t){var r;e=bg(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function bg(e,t){const r=[...e],i=r.indexOf(t);return i!==-1&&r.splice(i,1),r}function Lv(e){const t=Un(e);$.useEffect((()=>{const r=i=>{i.key==="Escape"&&t(i)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const bP=globalThis!=null&&globalThis.document?$.useLayoutEffect:()=>{};let wg,Gs=0;function wP({disabled:e}){const t=$.useRef(!1);bP((()=>{if(e){let r=function(){Gs--,Gs===0&&(document.body.style.pointerEvents=wg)},i=function(s){t.current=s.pointerType!=="mouse"};return Gs===0&&(wg=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Gs++,document.addEventListener("pointerup",i),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",i)}}}),[e])}function Bt(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 xP=$.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),SP=$.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...f}=e,v=$.useContext(xP),[m,g]=$.useState(null),[,p]=$.useState({}),b=vn(t,(k=>g(k))),x=Array.from(v.layers),[d]=[...v.layersWithOutsidePointerEventsDisabled].slice(-1),w=x.indexOf(d),h=m?x.indexOf(m):-1,S=v.layersWithOutsidePointerEventsDisabled.size>0,E=h>=w,R=(function(k){const U=Un(k),F=$.useRef(!1);return $.useEffect((()=>{const D=j=>{j.target&&!F.current&&Sg("dismissableLayer.pointerDownOutside",U,{originalEvent:j}),F.current=!1},G=window.setTimeout((()=>{document.addEventListener("pointerdown",D)}),0);return()=>{window.clearTimeout(G),document.removeEventListener("pointerdown",D)}}),[U]),{onPointerDownCapture:()=>F.current=!0}})((k=>{const U=k.target,F=[...v.branches].some((D=>D.contains(U)));E&&!F&&(s==null||s(k),l==null||l(k),k.defaultPrevented||c==null||c())})),O=(function(k){const U=Un(k),F=$.useRef(!1);return $.useEffect((()=>{const D=G=>{G.target&&!F.current&&Sg("dismissableLayer.focusOutside",U,{originalEvent:G})};return document.addEventListener("focusin",D),()=>document.removeEventListener("focusin",D)}),[U]),{onFocusCapture:()=>F.current=!0,onBlurCapture:()=>F.current=!1}})((k=>{const U=k.target;[...v.branches].some((F=>F.contains(U)))||(a==null||a(k),l==null||l(k),k.defaultPrevented||c==null||c())}));return Lv((k=>{h===v.layers.size-1&&(i==null||i(k),k.defaultPrevented||c==null||c())})),wP({disabled:r}),$.useEffect((()=>{m&&(r&&v.layersWithOutsidePointerEventsDisabled.add(m),v.layers.add(m),xg())}),[m,r,v]),$.useEffect((()=>()=>{m&&(v.layers.delete(m),v.layersWithOutsidePointerEventsDisabled.delete(m),xg())}),[m,v]),$.useEffect((()=>{const k=()=>p({});return document.addEventListener("dismissableLayer.update",k),()=>document.removeEventListener("dismissableLayer.update",k)}),[]),$.createElement(yn.div,Xe({},f,{ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...e.style},onFocusCapture:Bt(e.onFocusCapture,O.onFocusCapture),onBlurCapture:Bt(e.onBlurCapture,O.onBlurCapture),onPointerDownCapture:Bt(e.onPointerDownCapture,R.onPointerDownCapture)}))}));function xg(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Sg(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 Eg(e){const[t,r]=$.useState(void 0);return $.useEffect((()=>{if(e){const i=new ResizeObserver((s=>{if(!Array.isArray(s)||!s.length)return;const a=s[0];let l,c;if("borderBoxSize"in a){const f=a.borderBoxSize,v=Array.isArray(f)?f[0]:f;l=v.inlineSize,c=v.blockSize}else{const f=e.getBoundingClientRect();l=f.width,c=f.height}r({width:l,height:c})}));return i.observe(e,{box:"border-box"}),()=>i.unobserve(e)}r(void 0)}),[e]),t}function EP(e,t){const r=$n.get(e);return r===void 0?($n.set(e,{rect:{},callbacks:[t]}),$n.size===1&&(mc=requestAnimationFrame(Mv))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const i=$n.get(e);if(i===void 0)return;const s=i.callbacks.indexOf(t);s>-1&&i.callbacks.splice(s,1),i.callbacks.length===0&&($n.delete(e),$n.size===0&&cancelAnimationFrame(mc))}}let mc;const $n=new Map;function Mv(){const e=[];$n.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)))})),mc=requestAnimationFrame(Mv)}function Fv(e){const[t,r]=$.useState();return $.useEffect((()=>{if(e){const i=EP(e,r);return()=>{r(void 0),i()}}}),[e]),t}function Kc(e,t=[]){let r=[];const i=()=>{const s=r.map((a=>$.createContext(a)));return function(a){const l=(a==null?void 0:a[e])||s;return $.useMemo((()=>({[`__scope${e}`]:{...a,[e]:l}})),[a,l])}};return i.scopeName=e,[function(s,a){const l=$.createContext(a),c=r.length;function f(v){const{scope:m,children:g,...p}=v,b=(m==null?void 0:m[e][c])||l,x=$.useMemo((()=>p),Object.values(p));return $.createElement(b.Provider,{value:x},g)}return r=[...r,a],f.displayName=s+"Provider",[f,function(v,m){const g=(m==null?void 0:m[e][c])||l,p=$.useContext(g);if(p)return p;if(a!==void 0)return a;throw new Error(`\`${v}\` must be used within \`${s}\``)}]},_P(i,...t)]}function _P(...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(((l,{useScope:c,scopeName:f})=>({...l,...c(s)[`__scope${f}`]})),{});return $.useMemo((()=>({[`__scope${t.scopeName}`]:a})),[a])}};return r.scopeName=t.scopeName,r}function OP({anchorRect:e,popperSize:t,arrowSize:r,arrowOffset:i=0,side:s,sideOffset:a=0,align:l,alignOffset:c=0,shouldAvoidCollisions:f=!0,collisionBoundariesRect:v,collisionTolerance:m=0}){if(!e||!t||!v)return{popperStyles:AP,arrowStyles:Fl};const g=(function(U,F,D=0,G=0,j){const L=j?j.height:0,B=_g(F,U,"x"),q=_g(F,U,"y"),C=q.before-D-L,J=q.after+D+L,Y=B.before-D-L,te=B.after+D+L;return{top:{start:{x:B.start+G,y:C},center:{x:B.center,y:C},end:{x:B.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:B.start+G,y:J},center:{x:B.center,y:J},end:{x:B.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),p=g[s][l];if(f===!1){const U=Og(p);let F=Fl;return r&&(F=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:s,align:l})),{popperStyles:{...U,"--radix-popper-transform-origin":Ag(t,s,l,i,r)},arrowStyles:F,placedSide:s,placedAlign:l}}const b=DOMRect.fromRect({...t,...p}),x=(d=v,w=m,DOMRect.fromRect({width:d.width-2*w,height:d.height-2*w,x:d.left+w,y:d.top+w}));var d,w;const h=Pg(b,x),S=g[Rg(s)][l],E=(function(U,F,D){const G=Rg(U);return F[U]&&!D[G]?G:U})(s,h,Pg(DOMRect.fromRect({...t,...S}),x)),R=(function(U,F,D,G,j){const L=D==="top"||D==="bottom",B=L?"left":"top",q=L?"right":"bottom",C=L?"width":"height",J=F[C]>U[C];return(G==="start"||G==="center")&&(j[B]&&J||j[q]&&!J)?"end":(G==="end"||G==="center")&&(j[q]&&J||j[B]&&!J)?"start":G})(t,e,s,l,h),O=Og(g[E][R]);let k=Fl;return r&&(k=Tg({popperSize:t,arrowSize:r,arrowOffset:i,side:E,align:R})),{popperStyles:{...O,"--radix-popper-transform-origin":Ag(t,E,R,i,r)},arrowStyles:k,placedSide:E,placedAlign:R}}function _g(e,t,r){const i=e[r==="x"?"left":"top"],s=r==="x"?"width":"height",a=e[s],l=t[s];return{before:i-l,start:i,center:i+(a-l)/2,end:i+a-l,after:i+a}}function Og(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 Ag(e,t,r,i,s){const a=t==="top"||t==="bottom",l=s?s.width:0,c=s?s.height:0,f=l/2+i;let v="",m="";return a?(v={start:`${f}px`,center:"center",end:e.width-f+"px"}[r],m=t==="top"?`${e.height+c}px`:-c+"px"):(v=t==="left"?`${e.width+c}px`:-c+"px",m={start:`${f}px`,center:"center",end:e.height-f+"px"}[r]),`${v} ${m}`}const AP={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},Fl={position:"absolute",opacity:0};function Tg({popperSize:e,arrowSize:t,arrowOffset:r,side:i,align:s}){const a=(e.width-t.width)/2,l=(e.height-t.width)/2,c={top:0,right:90,bottom:180,left:-90}[i],f=Math.max(t.width,t.height),v={width:`${f}px`,height:`${f}px`,transform:`rotate(${c}deg)`,willChange:"transform",position:"absolute",[i]:"100%",direction:TP(i,s)};return i!=="top"&&i!=="bottom"||(s==="start"&&(v.left=`${r}px`),s==="center"&&(v.left=`${a}px`),s==="end"&&(v.right=`${r}px`)),i!=="left"&&i!=="right"||(s==="start"&&(v.top=`${r}px`),s==="center"&&(v.top=`${l}px`),s==="end"&&(v.bottom=`${r}px`)),v}function TP(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Rg(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Pg(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Dv,Na]=Kc("Popper"),[RP,Nv]=Dv("Popper"),PP=e=>{const{__scopePopper:t,children:r}=e,[i,s]=$.useState(null);return $.createElement(RP,{scope:t,anchor:i,onAnchorChange:s},r)},CP=$.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:i,...s}=e,a=Nv("PopperAnchor",r),l=$.useRef(null),c=vn(t,l);return $.useEffect((()=>{a.onAnchorChange((i==null?void 0:i.current)||l.current)})),i?null:$.createElement(yn.div,Xe({},s,{ref:c}))})),[kP,pM]=Dv("PopperContent"),$P=$.forwardRef(((e,t)=>{const{__scopePopper:r,side:i="bottom",sideOffset:s,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:f=!0,...v}=e,m=Nv("PopperContent",r),[g,p]=$.useState(),b=Fv(m.anchor),[x,d]=$.useState(null),w=Eg(x),[h,S]=$.useState(null),E=Eg(h),R=vn(t,(L=>d(L))),O=(function(){const[L,B]=$.useState(void 0);return $.useEffect((()=>{let q;function C(){B({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)}),[]),L})(),k=O?DOMRect.fromRect({...O,x:0,y:0}):void 0,{popperStyles:U,arrowStyles:F,placedSide:D,placedAlign:G}=OP({anchorRect:b,popperSize:w,arrowSize:E,arrowOffset:g,side:i,sideOffset:s,align:a,alignOffset:l,shouldAvoidCollisions:f,collisionBoundariesRect:k,collisionTolerance:c}),j=D!==void 0;return $.createElement("div",{style:U,"data-radix-popper-content-wrapper":""},$.createElement(kP,{scope:r,arrowStyles:F,onArrowChange:S,onArrowOffsetChange:p},$.createElement(yn.div,Xe({"data-side":D,"data-align":G},v,{style:{...v.style,animation:j?void 0:"none"},ref:R}))))})),jv=PP,zv=CP,Wv=$P;function Uv({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[i,s]=(function({defaultProp:f,onChange:v}){const m=$.useState(f),[g]=m,p=$.useRef(g),b=Un(v);return $.useEffect((()=>{p.current!==g&&(b(g),p.current=g)}),[g,p,b]),m})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:i,c=Un(r);return[l,$.useCallback((f=>{if(a){const v=f,m=typeof f=="function"?v(e):f;m!==e&&c(m)}else s(f)}),[a,e,s,c])]}const[IP]=Kc("Popover",[Na]),Vc=Na(),[LP,zo]=IP("Popover"),MP=e=>{const{__scopePopover:t,children:r,open:i,defaultOpen:s,onOpenChange:a,modal:l=!1}=e,c=Vc(t),f=$.useRef(null),[v,m]=$.useState(!1),[g=!1,p]=Uv({prop:i,defaultProp:s,onChange:a});return $.createElement(jv,c,$.createElement(LP,{scope:t,contentId:Cv(),triggerRef:f,open:g,onOpenChange:p,onOpenToggle:$.useCallback((()=>p((b=>!b))),[p]),hasCustomAnchor:v,onCustomAnchorAdd:$.useCallback((()=>m(!0)),[]),onCustomAnchorRemove:$.useCallback((()=>m(!1)),[]),modal:l},r))},FP=$.forwardRef(((e,t)=>{const{__scopePopover:r,...i}=e,s=zo("PopoverTrigger",r),a=Vc(r),l=vn(t,s.triggerRef),c=$.createElement(yn.button,Xe({type:"button","aria-haspopup":"dialog","aria-expanded":s.open,"aria-controls":s.contentId,"data-state":Hv(s.open)},i,{ref:l,onClick:Bt(e.onClick,s.onOpenToggle)}));return s.hasCustomAnchor?c:$.createElement(zv,Xe({asChild:!0},a),c)})),DP=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=zo("PopoverContent",e.__scopePopover);return $.createElement(Zc,{present:r||s.open},s.modal?$.createElement(NP,Xe({},i,{ref:t})):$.createElement(jP,Xe({},i,{ref:t})))})),NP=$.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:i=!0,...s}=e,a=zo("PopoverContent",e.__scopePopover),l=$.useRef(null),c=vn(t,l),f=$.useRef(!1);$.useEffect((()=>{const m=l.current;if(m)return PR(m)}),[]);const v=i?Gc:$.Fragment;return $.createElement(v,null,$.createElement(Pv,{allowPinchZoom:r},$.createElement(Bv,Xe({},s,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Bt(e.onCloseAutoFocus,(m=>{var g;m.preventDefault(),f.current||(g=a.triggerRef.current)===null||g===void 0||g.focus()})),onPointerDownOutside:Bt(e.onPointerDownOutside,(m=>{const g=m.detail.originalEvent,p=g.button===0&&g.ctrlKey===!0,b=g.button===2||p;f.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Bt(e.onFocusOutside,(m=>m.preventDefault()),{checkForDefaultPrevented:!1})}))))})),jP=$.forwardRef(((e,t)=>{const{portalled:r=!0,...i}=e,s=zo("PopoverContent",e.__scopePopover),a=$.useRef(!1),l=r?Gc:$.Fragment;return $.createElement(l,null,$.createElement(Bv,Xe({},i,{ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:c=>{var f,v;(f=e.onCloseAutoFocus)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current||(v=s.triggerRef.current)===null||v===void 0||v.focus(),c.preventDefault()),a.current=!1},onInteractOutside:c=>{var f,v;(f=e.onInteractOutside)===null||f===void 0||f.call(e,c),c.defaultPrevented||(a.current=!0);const m=c.target;!((v=s.triggerRef.current)===null||v===void 0)&&v.contains(m)&&c.preventDefault()}})))})),Bv=$.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:i,onOpenAutoFocus:s,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onInteractOutside:m,...g}=e,p=zo("PopoverContent",r),b=Vc(r);return gP(),$.createElement(vP,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:s,onUnmountAutoFocus:a},$.createElement(SP,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:m,onEscapeKeyDown:c,onPointerDownOutside:f,onFocusOutside:v,onDismiss:()=>p.onOpenChange(!1)},$.createElement(Wv,Xe({"data-state":Hv(p.open),role:"dialog",id:p.contentId},b,g,{ref:t,style:{...g.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function Hv(e){return e?"open":"closed"}const zP=MP,WP=FP,UP=DP;var fa=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(fa||{}),Dl={},ro={},Ks={},Vs={},Ys={exports:{}},Xs={exports:{}},Ie={};/** @license React v16.13.1
111
+ `)},YM=0,fo=[];function XM(e){var t=B.useRef([]),r=B.useRef([0,0]),n=B.useRef(),o=B.useState(YM++)[0],a=B.useState(jw)[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=cc([e.lockRef.current],(e.shards||[]).map(gb),!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=kl(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=pb(F,R);if(!P)return!0;if(P?E=F:(E=F==="v"?"h":"v",P=pb(F,R)),!P)return!1;if(!n.current&&"changedTouches"in v&&(x||k)&&(n.current=E),!E)return!0;var L=n.current||E;return GM(L,y,v,L==="h"?x:k)},[]),u=B.useCallback(function(v){var y=v;if(!(!fo.length||fo[fo.length-1]!==a)){var m="deltaY"in y?hb(y):kl(y),w=t.current.filter(function(E){return E.name===y.type&&(E.target===y.target||y.target===E.shadowParent)&&KM(E.delta,m)})[0];if(w&&w.should){y.cancelable&&y.preventDefault();return}if(!w){var x=(l.current.shards||[]).map(gb).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:JM(m)};t.current.push(x),setTimeout(function(){t.current=t.current.filter(function(k){return k!==x})},1)},[]),h=B.useCallback(function(v){r.current=kl(v),n.current=void 0},[]),f=B.useCallback(function(v){p(v.type,hb(v),v.target,c(v,e.lockRef.current))},[]),g=B.useCallback(function(v){p(v.type,kl(v),v.target,c(v,e.lockRef.current))},[]);B.useEffect(function(){return fo.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:g}),document.addEventListener("wheel",u,uo),document.addEventListener("touchmove",u,uo),document.addEventListener("touchstart",h,uo),function(){fo=fo.filter(function(v){return v!==a}),document.removeEventListener("wheel",u,uo),document.removeEventListener("touchmove",u,uo),document.removeEventListener("touchstart",h,uo)}},[]);var b=e.removeScrollBar,S=e.inert;return B.createElement(B.Fragment,null,S?B.createElement(a,{styles:ZM(o)}):null,b?B.createElement(FM,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function JM(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}const QM=AM(zw,XM);var Ww=B.forwardRef(function(e,t){return B.createElement(Ic,nn({},e,{ref:t,sideCar:QM}))});Ww.classNames=Ic.classNames;const eL=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},tL=B.useId||(()=>{});let rL=0;function nL(e){const[t,r]=B.useState(tL());return eL((()=>{r((n=>n??String(rL++)))}),[e]),e||(t?`radix-${t}`:"")}function Uw(...e){return t=>e.forEach((r=>(function(n,o){typeof n=="function"?n(o):n!=null&&(n.current=o)})(r,t)))}function Li(...e){return B.useCallback(Uw(...e),e)}const qw=B.forwardRef(((e,t)=>{const{children:r,...n}=e;return B.Children.toArray(r).some(vb)?B.createElement(B.Fragment,null,B.Children.map(r,(o=>vb(o)?B.createElement(Sf,It({},n,{ref:t}),o.props.children):o))):B.createElement(Sf,It({},n,{ref:t}),r)}));qw.displayName="Slot";const Sf=B.forwardRef(((e,t)=>{const{children:r,...n}=e;return B.isValidElement(r)?B.cloneElement(r,{...oL(n,r.props),ref:Uw(t,r.ref)}):B.Children.count(r)>1?B.Children.only(null):null}));Sf.displayName="SlotClone";const iL=({children:e})=>B.createElement(B.Fragment,null,e);function vb(e){return B.isValidElement(e)&&e.type===iL}function oL(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 Io=["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?qw:t;return B.useEffect((()=>{window[Symbol.for("radix-ui")]=!0}),[]),B.createElement(l,It({},a,{ref:n}))}))})),{}),mb=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},Vw=e=>{const{present:t,children:r}=e,n=(function(l){const[c,u]=B.useState(),p=B.useRef({}),h=B.useRef(l),f=B.useRef("none"),g=l?"mounted":"unmounted",[b,S]=(function(v,y){return B.useReducer(((m,w)=>{const x=y[m][w];return x??m}),v)})(g,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return B.useEffect((()=>{const v=Ol(p.current);f.current=b==="mounted"?v:"none"}),[b]),mb((()=>{const v=p.current,y=h.current;if(y!==l){const m=f.current,w=Ol(v);l?S("MOUNT"):w==="none"||(v==null?void 0:v.display)==="none"?S("UNMOUNT"):S(y&&m!==w?"ANIMATION_OUT":"UNMOUNT"),h.current=l}}),[l,S]),mb((()=>{if(c){const v=m=>{const w=Ol(p.current).includes(m.animationName);m.target===c&&w&&S("ANIMATION_END")},y=m=>{m.target===c&&(f.current=Ol(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=Li(n.ref,o.ref);return typeof r=="function"||n.isPresent?B.cloneElement(o,{ref:a}):null};function Ol(e){return(e==null?void 0:e.animationName)||"none"}Vw.displayName="Presence";let Ld=0;function aL(){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:bb()),document.body.insertAdjacentElement("beforeend",(t=r[1])!==null&&t!==void 0?t:bb()),Ld++,()=>{Ld===1&&document.querySelectorAll("[data-radix-focus-guard]").forEach((n=>n.remove())),Ld--}}),[])}function bb(){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 sL=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{},Gw=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 sL((()=>{u({})}),[]),c?ti.createPortal(B.createElement(Io.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 Ii(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 yb={bubbles:!1,cancelable:!0},lL=B.forwardRef(((e,t)=>{const{loop:r=!1,trapped:n=!1,onMountAutoFocus:o,onUnmountAutoFocus:a,...l}=e,[c,u]=B.useState(null),p=Ii(o),h=Ii(a),f=B.useRef(null),g=Li(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:wi(f.current,{select:!0})},y=function(m){!b.paused&&c&&(c.contains(m.relatedTarget)||wi(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){Sb.add(b);const y=document.activeElement;if(!c.contains(y)){const m=new Event("focusScope.autoFocusOnMount",yb);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(wi(E,{select:x}),document.activeElement!==k)return})((v=wb(c),v.filter((w=>w.tagName!=="A"))),{select:!0}),document.activeElement===y&&wi(c))}return()=>{c.removeEventListener("focusScope.autoFocusOnMount",p),setTimeout((()=>{const m=new Event("focusScope.autoFocusOnUnmount",yb);c.addEventListener("focusScope.autoFocusOnUnmount",h),c.dispatchEvent(m),m.defaultPrevented||wi(y??document.body,{select:!0}),c.removeEventListener("focusScope.autoFocusOnUnmount",h),Sb.remove(b)}),0)}}var v}),[c,p,h,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=wb(E),F=xb(R,E),P=xb(R.reverse(),E);return[F,P]})(w);x&&k?v.shiftKey||m!==k?v.shiftKey&&m===x&&(v.preventDefault(),r&&wi(k,{select:!0})):(v.preventDefault(),r&&wi(x,{select:!0})):m===w&&v.preventDefault()}}),[r,n,b.paused]);return B.createElement(Io.div,It({tabIndex:-1},l,{ref:g,onKeyDown:S}))}));function wb(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 xb(e,t){for(const r of e)if(!cL(r,{upTo:t}))return r}function cL(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 wi(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 Sb=(function(){let e=[];return{add(t){const r=e[0];t!==r&&(r==null||r.pause()),e=_b(e,t),e.unshift(t)},remove(t){var r;e=_b(e,t),(r=e[0])===null||r===void 0||r.resume()}}})();function _b(e,t){const r=[...e],n=r.indexOf(t);return n!==-1&&r.splice(n,1),r}function uL(e){const t=Ii(e);B.useEffect((()=>{const r=n=>{n.key==="Escape"&&t(n)};return document.addEventListener("keydown",r),()=>document.removeEventListener("keydown",r)}),[t])}const dL=globalThis!=null&&globalThis.document?B.useLayoutEffect:()=>{};let Eb,Al=0;function fL({disabled:e}){const t=B.useRef(!1);dL((()=>{if(e){let r=function(){Al--,Al===0&&(document.body.style.pointerEvents=Eb)},n=function(o){t.current=o.pointerType!=="mouse"};return Al===0&&(Eb=document.body.style.pointerEvents),document.body.style.pointerEvents="none",Al++,document.addEventListener("pointerup",n),()=>{t.current?document.addEventListener("click",r,{once:!0}):r(),document.removeEventListener("pointerup",n)}}}),[e])}function Ri(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 pL=B.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),hL=B.forwardRef(((e,t)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:l,onDismiss:c,...u}=e,p=B.useContext(pL),[h,f]=B.useState(null),[,g]=B.useState({}),b=Li(t,(R=>f(R))),S=Array.from(p.layers),[v]=[...p.layersWithOutsidePointerEventsDisabled].slice(-1),y=S.indexOf(v),m=h?S.indexOf(h):-1,w=p.layersWithOutsidePointerEventsDisabled.size>0,x=m>=y,k=(function(R){const F=Ii(R),P=B.useRef(!1);return B.useEffect((()=>{const L=$=>{$.target&&!P.current&&Ob("dismissableLayer.pointerDownOutside",F,{originalEvent:$}),P.current=!1},V=window.setTimeout((()=>{document.addEventListener("pointerdown",L)}),0);return()=>{window.clearTimeout(V),document.removeEventListener("pointerdown",L)}}),[F]),{onPointerDownCapture:()=>P.current=!0}})((R=>{const F=R.target,P=[...p.branches].some((L=>L.contains(F)));x&&!P&&(o==null||o(R),l==null||l(R),R.defaultPrevented||c==null||c())})),E=(function(R){const F=Ii(R),P=B.useRef(!1);return B.useEffect((()=>{const L=V=>{V.target&&!P.current&&Ob("dismissableLayer.focusOutside",F,{originalEvent:V})};return document.addEventListener("focusin",L),()=>document.removeEventListener("focusin",L)}),[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 uL((R=>{m===p.layers.size-1&&(n==null||n(R),R.defaultPrevented||c==null||c())})),fL({disabled:r}),B.useEffect((()=>{h&&(r&&p.layersWithOutsidePointerEventsDisabled.add(h),p.layers.add(h),kb())}),[h,r,p]),B.useEffect((()=>()=>{h&&(p.layers.delete(h),p.layersWithOutsidePointerEventsDisabled.delete(h),kb())}),[h,p]),B.useEffect((()=>{const R=()=>g({});return document.addEventListener("dismissableLayer.update",R),()=>document.removeEventListener("dismissableLayer.update",R)}),[]),B.createElement(Io.div,It({},u,{ref:b,style:{pointerEvents:w?x?"auto":"none":void 0,...e.style},onFocusCapture:Ri(e.onFocusCapture,E.onFocusCapture),onBlurCapture:Ri(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:Ri(e.onPointerDownCapture,k.onPointerDownCapture)}))}));function kb(){const e=new Event("dismissableLayer.update");document.dispatchEvent(e)}function Ob(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 Ab(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 gL(e,t){const r=xi.get(e);return r===void 0?(xi.set(e,{rect:{},callbacks:[t]}),xi.size===1&&(_f=requestAnimationFrame(Kw))):(r.callbacks.push(t),t(e.getBoundingClientRect())),()=>{const n=xi.get(e);if(n===void 0)return;const o=n.callbacks.indexOf(t);o>-1&&n.callbacks.splice(o,1),n.callbacks.length===0&&(xi.delete(e),xi.size===0&&cancelAnimationFrame(_f))}}let _f;const xi=new Map;function Kw(){const e=[];xi.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)))})),_f=requestAnimationFrame(Kw)}function vL(e){const[t,r]=B.useState();return B.useEffect((()=>{if(e){const n=gL(e,r);return()=>{r(void 0),n()}}}),[e]),t}function Zw(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:h,children:f,...g}=p,b=(h==null?void 0:h[e][c])||l,S=B.useMemo((()=>g),Object.values(g));return B.createElement(b.Provider,{value:S},f)}return r=[...r,a],u.displayName=o+"Provider",[u,function(p,h){const f=(h==null?void 0:h[e][c])||l,g=B.useContext(f);if(g)return g;if(a!==void 0)return a;throw new Error(`\`${p}\` must be used within \`${o}\``)}]},mL(n,...t)]}function mL(...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 bL({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:h=0}){if(!e||!t||!p)return{popperStyles:yL,arrowStyles:$d};const f=(function(F,P,L=0,V=0,$){const I=$?$.height:0,j=Tb(P,F,"x"),W=Tb(P,F,"y"),N=W.before-L-I,Y=W.after+L+I,X=j.before-L-I,K=j.after+L+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),g=f[o][l];if(u===!1){const F=Rb(g);let P=$d;return r&&(P=Pb({popperSize:t,arrowSize:r,arrowOffset:n,side:o,align:l})),{popperStyles:{...F,"--radix-popper-transform-origin":Cb(t,o,l,n,r)},arrowStyles:P,placedSide:o,placedAlign:l}}const b=DOMRect.fromRect({...t,...g}),S=(v=p,y=h,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=Nb(b,S),w=f[Ib(o)][l],x=(function(F,P,L){const V=Ib(F);return P[F]&&!L[V]?V:F})(o,m,Nb(DOMRect.fromRect({...t,...w}),S)),k=(function(F,P,L,V,$){const I=L==="top"||L==="bottom",j=I?"left":"top",W=I?"right":"bottom",N=I?"width":"height",Y=P[N]>F[N];return(V==="start"||V==="center")&&($[j]&&Y||$[W]&&!Y)?"end":(V==="end"||V==="center")&&($[W]&&Y||$[j]&&!Y)?"start":V})(t,e,o,l,m),E=Rb(f[x][k]);let R=$d;return r&&(R=Pb({popperSize:t,arrowSize:r,arrowOffset:n,side:x,align:k})),{popperStyles:{...E,"--radix-popper-transform-origin":Cb(t,x,k,n,r)},arrowStyles:R,placedSide:x,placedAlign:k}}function Tb(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 Rb(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 Cb(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="",h="";return a?(p={start:`${u}px`,center:"center",end:e.width-u+"px"}[r],h=t==="top"?`${e.height+c}px`:-c+"px"):(p=t==="left"?`${e.width+c}px`:-c+"px",h={start:`${u}px`,center:"center",end:e.height-u+"px"}[r]),`${p} ${h}`}const yL={position:"fixed",top:0,left:0,opacity:0,transform:"translate3d(0, -200%, 0)"},$d={position:"absolute",opacity:0};function Pb({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:wL(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 wL(e,t){return(e!=="top"&&e!=="right"||t!=="end")&&(e!=="bottom"&&e!=="left"||t==="end")?"ltr":"rtl"}function Ib(e){return{top:"bottom",right:"left",bottom:"top",left:"right"}[e]}function Nb(e,t){return{top:e.top<t.top,right:e.right>t.right,bottom:e.bottom>t.bottom,left:e.left<t.left}}const[Yw,Xw]=Zw("Popper"),[xL,Jw]=Yw("Popper"),SL=e=>{const{__scopePopper:t,children:r}=e,[n,o]=B.useState(null);return B.createElement(xL,{scope:t,anchor:n,onAnchorChange:o},r)},_L=B.forwardRef(((e,t)=>{const{__scopePopper:r,virtualRef:n,...o}=e,a=Jw("PopperAnchor",r),l=B.useRef(null),c=Li(t,l);return B.useEffect((()=>{a.onAnchorChange((n==null?void 0:n.current)||l.current)})),n?null:B.createElement(Io.div,It({},o,{ref:c}))})),[EL,XF]=Yw("PopperContent"),kL=B.forwardRef(((e,t)=>{const{__scopePopper:r,side:n="bottom",sideOffset:o,align:a="center",alignOffset:l,collisionTolerance:c,avoidCollisions:u=!0,...p}=e,h=Jw("PopperContent",r),[f,g]=B.useState(),b=vL(h.anchor),[S,v]=B.useState(null),y=Ab(S),[m,w]=B.useState(null),x=Ab(m),k=Li(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:L,placedAlign:V}=bL({anchorRect:b,popperSize:y,arrowSize:x,arrowOffset:f,side:n,sideOffset:o,align:a,alignOffset:l,shouldAvoidCollisions:u,collisionBoundariesRect:R,collisionTolerance:c}),$=L!==void 0;return B.createElement("div",{style:F,"data-radix-popper-content-wrapper":""},B.createElement(EL,{scope:r,arrowStyles:P,onArrowChange:w,onArrowOffsetChange:g},B.createElement(Io.div,It({"data-side":L,"data-align":V},p,{style:{...p.style,animation:$?void 0:"none"},ref:k}))))})),OL=SL,AL=_L,TL=kL;function RL({prop:e,defaultProp:t,onChange:r=(()=>{})}){const[n,o]=(function({defaultProp:u,onChange:p}){const h=B.useState(u),[f]=h,g=B.useRef(f),b=Ii(p);return B.useEffect((()=>{g.current!==f&&(b(f),g.current=f)}),[f,g,b]),h})({defaultProp:t,onChange:r}),a=e!==void 0,l=a?e:n,c=Ii(r);return[l,B.useCallback((u=>{if(a){const p=u,h=typeof u=="function"?p(e):u;h!==e&&c(h)}else o(u)}),[a,e,o,c])]}const[CL]=Zw("Popover",[Xw]),lp=Xw(),[PL,ds]=CL("Popover"),IL=e=>{const{__scopePopover:t,children:r,open:n,defaultOpen:o,onOpenChange:a,modal:l=!1}=e,c=lp(t),u=B.useRef(null),[p,h]=B.useState(!1),[f=!1,g]=RL({prop:n,defaultProp:o,onChange:a});return B.createElement(OL,c,B.createElement(PL,{scope:t,contentId:nL(),triggerRef:u,open:f,onOpenChange:g,onOpenToggle:B.useCallback((()=>g((b=>!b))),[g]),hasCustomAnchor:p,onCustomAnchorAdd:B.useCallback((()=>h(!0)),[]),onCustomAnchorRemove:B.useCallback((()=>h(!1)),[]),modal:l},r))},NL=B.forwardRef(((e,t)=>{const{__scopePopover:r,...n}=e,o=ds("PopoverTrigger",r),a=lp(r),l=Li(t,o.triggerRef),c=B.createElement(Io.button,It({type:"button","aria-haspopup":"dialog","aria-expanded":o.open,"aria-controls":o.contentId,"data-state":ex(o.open)},n,{ref:l,onClick:Ri(e.onClick,o.onOpenToggle)}));return o.hasCustomAnchor?c:B.createElement(AL,It({asChild:!0},a),c)})),DL=B.forwardRef(((e,t)=>{const{forceMount:r,...n}=e,o=ds("PopoverContent",e.__scopePopover);return B.createElement(Vw,{present:r||o.open},o.modal?B.createElement(ML,It({},n,{ref:t})):B.createElement(LL,It({},n,{ref:t})))})),ML=B.forwardRef(((e,t)=>{const{allowPinchZoom:r,portalled:n=!0,...o}=e,a=ds("PopoverContent",e.__scopePopover),l=B.useRef(null),c=Li(t,l),u=B.useRef(!1);B.useEffect((()=>{const h=l.current;if(h)return bM(h)}),[]);const p=n?Gw:B.Fragment;return B.createElement(p,null,B.createElement(Ww,{allowPinchZoom:r},B.createElement(Qw,It({},o,{ref:c,trapFocus:a.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Ri(e.onCloseAutoFocus,(h=>{var f;h.preventDefault(),u.current||(f=a.triggerRef.current)===null||f===void 0||f.focus()})),onPointerDownOutside:Ri(e.onPointerDownOutside,(h=>{const f=h.detail.originalEvent,g=f.button===0&&f.ctrlKey===!0,b=f.button===2||g;u.current=b}),{checkForDefaultPrevented:!1}),onFocusOutside:Ri(e.onFocusOutside,(h=>h.preventDefault()),{checkForDefaultPrevented:!1})}))))})),LL=B.forwardRef(((e,t)=>{const{portalled:r=!0,...n}=e,o=ds("PopoverContent",e.__scopePopover),a=B.useRef(!1),l=r?Gw:B.Fragment;return B.createElement(l,null,B.createElement(Qw,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 h=c.target;!((p=o.triggerRef.current)===null||p===void 0)&&p.contains(h)&&c.preventDefault()}})))})),Qw=B.forwardRef(((e,t)=>{const{__scopePopover:r,trapFocus:n,onOpenAutoFocus:o,onCloseAutoFocus:a,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onInteractOutside:h,...f}=e,g=ds("PopoverContent",r),b=lp(r);return aL(),B.createElement(lL,{asChild:!0,loop:!0,trapped:n,onMountAutoFocus:o,onUnmountAutoFocus:a},B.createElement(hL,{asChild:!0,disableOutsidePointerEvents:l,onInteractOutside:h,onEscapeKeyDown:c,onPointerDownOutside:u,onFocusOutside:p,onDismiss:()=>g.onOpenChange(!1)},B.createElement(TL,It({"data-state":ex(g.open),role:"dialog",id:g.contentId},b,f,{ref:t,style:{...f.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)"}}))))}));function ex(e){return e?"open":"closed"}const $L=IL,zL=NL,jL=DL;var Xl=(e=>(e.VIDEO="video",e.CAROUSEL="carousel",e.TEXT="text",e))(Xl||{}),zd={},ya={},Tl={},Rl={},Cl={exports:{}},Pl={exports:{}},Ve={};/** @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 Cg;function BP(){if(Cg)return Ie;Cg=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,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=e?Symbol.for("react.responder"):60118,S=e?Symbol.for("react.scope"):60119;function E(O){if(typeof O=="object"&&O!==null){var k=O.$$typeof;switch(k){case t:switch(O=O.type,O){case f:case v:case i:case a:case s:case g:return O;default:switch(O=O&&O.$$typeof,O){case c:case m:case x:case b:case l:return O;default:return k}}case r:return k}}}function R(O){return E(O)===v}return Ie.AsyncMode=f,Ie.ConcurrentMode=v,Ie.ContextConsumer=c,Ie.ContextProvider=l,Ie.Element=t,Ie.ForwardRef=m,Ie.Fragment=i,Ie.Lazy=x,Ie.Memo=b,Ie.Portal=r,Ie.Profiler=a,Ie.StrictMode=s,Ie.Suspense=g,Ie.isAsyncMode=function(O){return R(O)||E(O)===f},Ie.isConcurrentMode=R,Ie.isContextConsumer=function(O){return E(O)===c},Ie.isContextProvider=function(O){return E(O)===l},Ie.isElement=function(O){return typeof O=="object"&&O!==null&&O.$$typeof===t},Ie.isForwardRef=function(O){return E(O)===m},Ie.isFragment=function(O){return E(O)===i},Ie.isLazy=function(O){return E(O)===x},Ie.isMemo=function(O){return E(O)===b},Ie.isPortal=function(O){return E(O)===r},Ie.isProfiler=function(O){return E(O)===a},Ie.isStrictMode=function(O){return E(O)===s},Ie.isSuspense=function(O){return E(O)===g},Ie.isValidElementType=function(O){return typeof O=="string"||typeof O=="function"||O===i||O===v||O===a||O===s||O===g||O===p||typeof O=="object"&&O!==null&&(O.$$typeof===x||O.$$typeof===b||O.$$typeof===l||O.$$typeof===c||O.$$typeof===m||O.$$typeof===w||O.$$typeof===h||O.$$typeof===S||O.$$typeof===d)},Ie.typeOf=E,Ie}var Le={};/** @license React v16.13.1
118
+ */var Db;function FL(){if(Db)return Ve;Db=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,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=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 h:case S:case b:case l:return E;default:return R}}case r:return R}}}function k(E){return x(E)===p}return Ve.AsyncMode=u,Ve.ConcurrentMode=p,Ve.ContextConsumer=c,Ve.ContextProvider=l,Ve.Element=t,Ve.ForwardRef=h,Ve.Fragment=n,Ve.Lazy=S,Ve.Memo=b,Ve.Portal=r,Ve.Profiler=a,Ve.StrictMode=o,Ve.Suspense=f,Ve.isAsyncMode=function(E){return k(E)||x(E)===u},Ve.isConcurrentMode=k,Ve.isContextConsumer=function(E){return x(E)===c},Ve.isContextProvider=function(E){return x(E)===l},Ve.isElement=function(E){return typeof E=="object"&&E!==null&&E.$$typeof===t},Ve.isForwardRef=function(E){return x(E)===h},Ve.isFragment=function(E){return x(E)===n},Ve.isLazy=function(E){return x(E)===S},Ve.isMemo=function(E){return x(E)===b},Ve.isPortal=function(E){return x(E)===r},Ve.isProfiler=function(E){return x(E)===a},Ve.isStrictMode=function(E){return x(E)===o},Ve.isSuspense=function(E){return x(E)===f},Ve.isValidElementType=function(E){return typeof E=="string"||typeof E=="function"||E===n||E===p||E===a||E===o||E===f||E===g||typeof E=="object"&&E!==null&&(E.$$typeof===S||E.$$typeof===b||E.$$typeof===l||E.$$typeof===c||E.$$typeof===h||E.$$typeof===y||E.$$typeof===m||E.$$typeof===w||E.$$typeof===v)},Ve.typeOf=x,Ve}var Ge={};/** @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 kg;function HP(){return kg||(kg=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,l=e?Symbol.for("react.provider"):60109,c=e?Symbol.for("react.context"):60110,f=e?Symbol.for("react.async_mode"):60111,v=e?Symbol.for("react.concurrent_mode"):60111,m=e?Symbol.for("react.forward_ref"):60112,g=e?Symbol.for("react.suspense"):60113,p=e?Symbol.for("react.suspense_list"):60120,b=e?Symbol.for("react.memo"):60115,x=e?Symbol.for("react.lazy"):60116,d=e?Symbol.for("react.block"):60121,w=e?Symbol.for("react.fundamental"):60117,h=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===v||ie===a||ie===s||ie===g||ie===p||typeof ie=="object"&&ie!==null&&(ie.$$typeof===x||ie.$$typeof===b||ie.$$typeof===l||ie.$$typeof===c||ie.$$typeof===m||ie.$$typeof===w||ie.$$typeof===h||ie.$$typeof===S||ie.$$typeof===d)}function R(ie){if(typeof ie=="object"&&ie!==null){var vt=ie.$$typeof;switch(vt){case t:var lt=ie.type;switch(lt){case f:case v:case i:case a:case s:case g:return lt;default:var mr=lt&&lt.$$typeof;switch(mr){case c:case m:case x:case b:case l:return mr;default:return vt}}case r:return vt}}}var O=f,k=v,U=c,F=l,D=t,G=m,j=i,L=x,B=b,q=r,C=a,J=s,Y=g,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)===v}function Q(ie){return R(ie)===c}function se(ie){return R(ie)===l}function ue(ie){return typeof ie=="object"&&ie!==null&&ie.$$typeof===t}function ne(ie){return R(ie)===m}function ce(ie){return R(ie)===i}function fe(ie){return R(ie)===x}function ye(ie){return R(ie)===b}function me(ie){return R(ie)===r}function Ee(ie){return R(ie)===a}function Ae(ie){return R(ie)===s}function Ze(ie){return R(ie)===g}Le.AsyncMode=O,Le.ConcurrentMode=k,Le.ContextConsumer=U,Le.ContextProvider=F,Le.Element=D,Le.ForwardRef=G,Le.Fragment=j,Le.Lazy=L,Le.Memo=B,Le.Portal=q,Le.Profiler=C,Le.StrictMode=J,Le.Suspense=Y,Le.isAsyncMode=de,Le.isConcurrentMode=Z,Le.isContextConsumer=Q,Le.isContextProvider=se,Le.isElement=ue,Le.isForwardRef=ne,Le.isFragment=ce,Le.isLazy=fe,Le.isMemo=ye,Le.isPortal=me,Le.isProfiler=Ee,Le.isStrictMode=Ae,Le.isSuspense=Ze,Le.isValidElementType=E,Le.typeOf=R})()),Le}var $g;function qv(){return $g||($g=1,process.env.NODE_ENV==="production"?Xs.exports=BP():Xs.exports=HP()),Xs.exports}/*
125
+ */var Mb;function HL(){return Mb||(Mb=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,h=e?Symbol.for("react.forward_ref"):60112,f=e?Symbol.for("react.suspense"):60113,g=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===g||typeof Z=="object"&&Z!==null&&(Z.$$typeof===S||Z.$$typeof===b||Z.$$typeof===l||Z.$$typeof===c||Z.$$typeof===h||Z.$$typeof===y||Z.$$typeof===m||Z.$$typeof===w||Z.$$typeof===v)}function k(Z){if(typeof Z=="object"&&Z!==null){var Oe=Z.$$typeof;switch(Oe){case t:var ve=Z.type;switch(ve){case u:case p:case n:case a:case o:case f:return ve;default:var pt=ve&&ve.$$typeof;switch(pt){case c:case h:case S:case b:case l:return pt;default:return Oe}}case r:return Oe}}}var E=u,R=p,F=c,P=l,L=t,V=h,$=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)===h}function se(Z){return k(Z)===n}function ae(Z){return k(Z)===S}function re(Z){return k(Z)===b}function le(Z){return k(Z)===r}function pe(Z){return k(Z)===a}function de(Z){return k(Z)===o}function ye(Z){return k(Z)===f}Ge.AsyncMode=E,Ge.ConcurrentMode=R,Ge.ContextConsumer=F,Ge.ContextProvider=P,Ge.Element=L,Ge.ForwardRef=V,Ge.Fragment=$,Ge.Lazy=I,Ge.Memo=j,Ge.Portal=W,Ge.Profiler=N,Ge.StrictMode=Y,Ge.Suspense=X,Ge.isAsyncMode=ge,Ge.isConcurrentMode=D,Ge.isContextConsumer=U,Ge.isContextProvider=ee,Ge.isElement=te,Ge.isForwardRef=J,Ge.isFragment=se,Ge.isLazy=ae,Ge.isMemo=re,Ge.isPortal=le,Ge.isProfiler=pe,Ge.isStrictMode=de,Ge.isSuspense=ye,Ge.isValidElementType=x,Ge.typeOf=k})()),Ge}var Lb;function tx(){return Lb||(Lb=1,process.env.NODE_ENV==="production"?Pl.exports=FL():Pl.exports=HL()),Pl.exports}/*
77
126
  object-assign
78
127
  (c) Sindre Sorhus
79
128
  @license MIT
80
- */var Nl,Ig;function qP(){if(Ig)return Nl;Ig=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 l={},c=0;c<10;c++)l["_"+String.fromCharCode(c)]=c;var f=Object.getOwnPropertyNames(l).map(function(m){return l[m]});if(f.join("")!=="0123456789")return!1;var v={};return"abcdefghijklmnopqrst".split("").forEach(function(m){v[m]=m}),Object.keys(Object.assign({},v)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return Nl=s()?Object.assign:function(a,l){for(var c,f=i(a),v,m=1;m<arguments.length;m++){c=Object(arguments[m]);for(var g in c)t.call(c,g)&&(f[g]=c[g]);if(e){v=e(c);for(var p=0;p<v.length;p++)r.call(c,v[p])&&(f[v[p]]=c[v[p]])}}return f},Nl}var jl,Lg;function Yc(){if(Lg)return jl;Lg=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return jl=e,jl}var zl,Mg;function Zv(){return Mg||(Mg=1,zl=Function.call.bind(Object.prototype.hasOwnProperty)),zl}var Wl,Fg;function ZP(){if(Fg)return Wl;Fg=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=Yc(),r={},i=Zv();e=function(a){var l="Warning: "+a;typeof console<"u"&&console.error(l);try{throw new Error(l)}catch{}}}function s(a,l,c,f,v){if(process.env.NODE_ENV!=="production"){for(var m in a)if(i(a,m)){var g;try{if(typeof a[m]!="function"){var p=Error((f||"React class")+": "+c+" type `"+m+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[m]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw p.name="Invariant Violation",p}g=a[m](l,m,f,c,null,t)}catch(x){g=x}if(g&&!(g instanceof Error)&&e((f||"React class")+": type specification of "+c+" `"+m+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof g+". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."),g instanceof Error&&!(g.message in r)){r[g.message]=!0;var b=v?v():"";e("Failed "+c+" type: "+g.message+(b??""))}}}}return s.resetWarningCache=function(){process.env.NODE_ENV!=="production"&&(r={})},Wl=s,Wl}var Ul,Dg;function GP(){if(Dg)return Ul;Dg=1;var e=qv(),t=qP(),r=Yc(),i=Zv(),s=ZP(),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 l(){return null}return Ul=function(c,f){var v=typeof Symbol=="function"&&Symbol.iterator,m="@@iterator";function g(Z){var Q=Z&&(v&&Z[v]||Z[m]);if(typeof Q=="function")return Q}var p="<<anonymous>>",b={array:h("array"),bigint:h("bigint"),bool:h("boolean"),func:h("function"),number:h("number"),object:h("object"),string:h("string"),symbol:h("symbol"),any:S(),arrayOf:E,element:R(),elementType:O(),instanceOf:k,node:G(),objectOf:F,oneOf:U,oneOfType:D,shape:L,exact:B};function x(Z,Q){return Z===Q?Z!==0||1/Z===1/Q:Z!==Z&&Q!==Q}function d(Z,Q){this.message=Z,this.data=Q&&typeof Q=="object"?Q:{},this.stack=""}d.prototype=Error.prototype;function w(Z){if(process.env.NODE_ENV!=="production")var Q={},se=0;function ue(ce,fe,ye,me,Ee,Ae,Ze){if(me=me||p,Ae=Ae||ye,Ze!==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 vt=me+":"+ye;!Q[vt]&&se<3&&(a("You are manually calling a React.PropTypes validation function for the `"+Ae+"` 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[vt]=!0,se++)}}return fe[ye]==null?ce?fe[ye]===null?new d("The "+Ee+" `"+Ae+"` is marked as required "+("in `"+me+"`, but its value is `null`.")):new d("The "+Ee+" `"+Ae+"` is marked as required in "+("`"+me+"`, but its value is `undefined`.")):null:Z(fe,ye,me,Ee,Ae)}var ne=ue.bind(null,!1);return ne.isRequired=ue.bind(null,!0),ne}function h(Z){function Q(se,ue,ne,ce,fe,ye){var me=se[ue],Ee=J(me);if(Ee!==Z){var Ae=Y(me);return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+Ae+"` supplied to `"+ne+"`, expected ")+("`"+Z+"`."),{expectedType:Z})}return null}return w(Q)}function S(){return w(l)}function E(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new d("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 d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an array."))}for(var Ee=0;Ee<ye.length;Ee++){var Ae=Z(ye,Ee,ne,ce,fe+"["+Ee+"]",r);if(Ae instanceof Error)return Ae}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 d("Invalid "+ne+" `"+ce+"` of type "+("`"+ye+"` supplied to `"+ue+"`, expected a single ReactElement."))}return null}return w(Z)}function O(){function Z(Q,se,ue,ne,ce){var fe=Q[se];if(!e.isValidElementType(fe)){var ye=J(fe);return new d("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||p,me=de(se[ue]);return new d("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.")),l;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(Ze,ie){var vt=Y(ie);return vt==="symbol"?String(ie):ie});return new d("Invalid "+ce+" `"+fe+"` of value `"+String(ye)+"` "+("supplied to `"+ne+"`, expected one of "+Ee+"."))}return w(Q)}function F(Z){function Q(se,ue,ne,ce,fe){if(typeof Z!="function")return new d("Property `"+fe+"` of component `"+ne+"` has invalid PropType notation inside objectOf.");var ye=se[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type "+("`"+me+"` supplied to `"+ne+"`, expected an object."));for(var Ee in ye)if(i(ye,Ee)){var Ae=Z(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ae instanceof Error)return Ae}return null}return w(Q)}function D(Z){if(!Array.isArray(Z))return process.env.NODE_ENV!=="production"&&a("Invalid argument supplied to oneOfType, expected an instance of array."),l;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+"."),l}function ue(ne,ce,fe,ye,me){for(var Ee=[],Ae=0;Ae<Z.length;Ae++){var Ze=Z[Ae],ie=Ze(ne,ce,fe,ye,me,r);if(ie==null)return null;ie.data&&i(ie.data,"expectedType")&&Ee.push(ie.data.expectedType)}var vt=Ee.length>0?", expected one of type ["+Ee.join(", ")+"]":"";return new d("Invalid "+ye+" `"+me+"` supplied to "+("`"+fe+"`"+vt+"."))}return w(ue)}function G(){function Z(Q,se,ue,ne,ce){return q(Q[se])?null:new d("Invalid "+ne+" `"+ce+"` supplied to "+("`"+ue+"`, expected a ReactNode."))}return w(Z)}function j(Z,Q,se,ue,ne){return new d((Z||"React class")+": "+Q+" type `"+se+"."+ue+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+ne+"`.")}function L(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));for(var Ee in Z){var Ae=Z[Ee];if(typeof Ae!="function")return j(ne,ce,fe,Ee,Y(Ae));var Ze=Ae(ye,Ee,ne,ce,fe+"."+Ee,r);if(Ze)return Ze}return null}return w(Q)}function B(Z){function Q(se,ue,ne,ce,fe){var ye=se[ue],me=J(ye);if(me!=="object")return new d("Invalid "+ce+" `"+fe+"` of type `"+me+"` "+("supplied to `"+ne+"`, expected `object`."));var Ee=t({},se[ue],Z);for(var Ae in Ee){var Ze=Z[Ae];if(i(Z,Ae)&&typeof Ze!="function")return j(ne,ce,fe,Ae,Y(Ze));if(!Ze)return new d("Invalid "+ce+" `"+fe+"` key `"+Ae+"` supplied to `"+ne+"`.\nBad object: "+JSON.stringify(se[ue],null," ")+`
81
- Valid keys: `+JSON.stringify(Object.keys(Z),null," "));var ie=Ze(ye,Ae,ne,ce,fe+"."+Ae,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=g(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?p:Z.constructor.name}return b.checkPropTypes=s,b.resetWarningCache=s.resetWarningCache,b.PropTypes=b,b},Ul}var Bl,Ng;function KP(){if(Ng)return Bl;Ng=1;var e=Yc();function t(){}function r(){}return r.resetWarningCache=t,Bl=function(){function i(l,c,f,v,m,g){if(g!==e){var p=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 p.name="Invariant Violation",p}}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},Bl}var jg;function VP(){if(jg)return Ys.exports;if(jg=1,process.env.NODE_ENV!=="production"){var e=qv(),t=!0;Ys.exports=GP()(e.isElement,t)}else Ys.exports=KP()();return Ys.exports}var zg;function YP(){return zg||(zg=1,(function(e){(function(t,r){r(e,W,VP())})(Vs,function(t,r,i){Object.defineProperty(t,"__esModule",{value:!0}),t.setHasSupportToCaptureOption=x;var s=l(r),a=l(i);function l(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 O in R)Object.prototype.hasOwnProperty.call(R,O)&&(S[O]=R[O])}return S};function f(S,E){var R={};for(var O in S)E.indexOf(O)>=0||Object.prototype.hasOwnProperty.call(S,O)&&(R[O]=S[O]);return R}function v(S,E){if(!(S instanceof E))throw new TypeError("Cannot call a class as a function")}var m=(function(){function S(E,R){for(var O=0;O<R.length;O++){var k=R[O];k.enumerable=k.enumerable||!1,k.configurable=!0,"value"in k&&(k.writable=!0),Object.defineProperty(E,k.key,k)}}return function(E,R,O){return R&&S(E.prototype,R),O&&S(E,O),E}})();function g(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 p(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 b=!1;function x(S){b=S}try{addEventListener("test",null,Object.defineProperty({},"capture",{get:function(){x(!0)}}))}catch{}function d(){var S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{capture:!0};return b?S:S.capture}function w(S){if("touches"in S){var E=S.touches[0],R=E.pageX,O=E.pageY;return{x:R,y:O}}var k=S.screenX,U=S.screenY;return{x:k,y:U}}var h=(function(S){p(E,S);function E(){var R;v(this,E);for(var O=arguments.length,k=Array(O),U=0;U<O;U++)k[U]=arguments[U];var F=g(this,(R=E.__proto__||Object.getPrototypeOf(E)).call.apply(R,[this].concat(k)));return F._handleSwipeStart=F._handleSwipeStart.bind(F),F._handleSwipeMove=F._handleSwipeMove.bind(F),F._handleSwipeEnd=F._handleSwipeEnd.bind(F),F._onMouseDown=F._onMouseDown.bind(F),F._onMouseMove=F._onMouseMove.bind(F),F._onMouseUp=F._onMouseUp.bind(F),F._setSwiperRef=F._setSwiperRef.bind(F),F}return m(E,[{key:"componentDidMount",value:function(){this.swiper&&this.swiper.addEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"componentWillUnmount",value:function(){this.swiper&&this.swiper.removeEventListener("touchmove",this._handleSwipeMove,d({capture:!0,passive:!1}))}},{key:"_onMouseDown",value:function(O){this.props.allowMouseEvents&&(this.mouseDown=!0,document.addEventListener("mouseup",this._onMouseUp),document.addEventListener("mousemove",this._onMouseMove),this._handleSwipeStart(O))}},{key:"_onMouseMove",value:function(O){this.mouseDown&&this._handleSwipeMove(O)}},{key:"_onMouseUp",value:function(O){this.mouseDown=!1,document.removeEventListener("mouseup",this._onMouseUp),document.removeEventListener("mousemove",this._onMouseMove),this._handleSwipeEnd(O)}},{key:"_handleSwipeStart",value:function(O){var k=w(O),U=k.x,F=k.y;this.moveStart={x:U,y:F},this.props.onSwipeStart(O)}},{key:"_handleSwipeMove",value:function(O){if(this.moveStart){var k=w(O),U=k.x,F=k.y,D=U-this.moveStart.x,G=F-this.moveStart.y;this.moving=!0;var j=this.props.onSwipeMove({x:D,y:G},O);j&&O.cancelable&&O.preventDefault(),this.movePosition={deltaX:D,deltaY:G}}}},{key:"_handleSwipeEnd",value:function(O){this.props.onSwipeEnd(O);var k=this.props.tolerance;this.moving&&this.movePosition&&(this.movePosition.deltaX<-k?this.props.onSwipeLeft(1,O):this.movePosition.deltaX>k&&this.props.onSwipeRight(1,O),this.movePosition.deltaY<-k?this.props.onSwipeUp(1,O):this.movePosition.deltaY>k&&this.props.onSwipeDown(1,O)),this.moveStart=null,this.moving=!1,this.movePosition=null}},{key:"_setSwiperRef",value:function(O){this.swiper=O,this.props.innerRef(O)}},{key:"render",value:function(){var O=this.props;O.tagName;var k=O.className,U=O.style,F=O.children;O.allowMouseEvents,O.onSwipeUp,O.onSwipeDown,O.onSwipeLeft,O.onSwipeRight,O.onSwipeStart,O.onSwipeMove,O.onSwipeEnd,O.innerRef,O.tolerance;var D=f(O,["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},D),F)}}]),E})(r.Component);h.displayName="ReactSwipe",h.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},h.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=h})})(Vs)),Vs}var Wg;function Gv(){return Wg||(Wg=1,(function(e){(function(t,r){r(e,YP())})(Ks,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})})(Ks)),Ks}var no={},Ug;function Kv(){if(Ug)return no;Ug=1,Object.defineProperty(no,"__esModule",{value:!0}),no.default=void 0;var e=t(nv());function t(s){return s&&s.__esModule?s:{default:s}}function r(s,a,l){return a in s?Object.defineProperty(s,a,{value:l,enumerable:!0,configurable:!0,writable:!0}):s[a]=l,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,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 no.default=i,no}var io={},oo={},Bg;function XP(){if(Bg)return oo;Bg=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.outerWidth=void 0;var e=function(r){var i=r.offsetWidth,s=getComputedStyle(r);return i+=parseInt(s.marginLeft)+parseInt(s.marginRight),i};return oo.outerWidth=e,oo}var so={},Hg;function Xc(){if(Hg)return so;Hg=1,Object.defineProperty(so,"__esModule",{value:!0}),so.default=void 0;var e=function(r,i,s){var a=r===0?r:r+i,l=s==="horizontal"?[a,0,0]:[0,a,0],c="translate3d",f="("+l.join(",")+")";return c+f};return so.default=e,so}var ao={},qg;function Vv(){if(qg)return ao;qg=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.default=void 0;var e=function(){return window};return ao.default=e,ao}var Zg;function Yv(){if(Zg)return io;Zg=1,Object.defineProperty(io,"__esModule",{value:!0}),io.default=void 0;var e=f(W),t=l(Kv()),r=XP(),i=l(Xc()),s=l(Gv()),a=l(Vv());function l(F){return F&&F.__esModule?F:{default:F}}function c(){if(typeof WeakMap!="function")return null;var F=new WeakMap;return c=function(){return F},F}function f(F){if(F&&F.__esModule)return F;if(F===null||v(F)!=="object"&&typeof F!="function")return{default:F};var D=c();if(D&&D.has(F))return D.get(F);var G={},j=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var L in F)if(Object.prototype.hasOwnProperty.call(F,L)){var B=j?Object.getOwnPropertyDescriptor(F,L):null;B&&(B.get||B.set)?Object.defineProperty(G,L,B):G[L]=F[L]}return G.default=F,D&&D.set(F,G),G}function v(F){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?v=function(G){return typeof G}:v=function(G){return G&&typeof Symbol=="function"&&G.constructor===Symbol&&G!==Symbol.prototype?"symbol":typeof G},v(F)}function m(){return m=Object.assign||function(F){for(var D=1;D<arguments.length;D++){var G=arguments[D];for(var j in G)Object.prototype.hasOwnProperty.call(G,j)&&(F[j]=G[j])}return F},m.apply(this,arguments)}function g(F,D){if(!(F instanceof D))throw new TypeError("Cannot call a class as a function")}function p(F,D){for(var G=0;G<D.length;G++){var j=D[G];j.enumerable=j.enumerable||!1,j.configurable=!0,"value"in j&&(j.writable=!0),Object.defineProperty(F,j.key,j)}}function b(F,D,G){return D&&p(F.prototype,D),F}function x(F,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function");F.prototype=Object.create(D&&D.prototype,{constructor:{value:F,writable:!0,configurable:!0}}),D&&d(F,D)}function d(F,D){return d=Object.setPrototypeOf||function(j,L){return j.__proto__=L,j},d(F,D)}function w(F){var D=E();return function(){var j=R(F),L;if(D){var B=R(this).constructor;L=Reflect.construct(j,arguments,B)}else L=j.apply(this,arguments);return h(this,L)}}function h(F,D){return D&&(v(D)==="object"||typeof D=="function")?D:S(F)}function S(F){if(F===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return F}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(F){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(G){return G.__proto__||Object.getPrototypeOf(G)},R(F)}function O(F,D,G){return D in F?Object.defineProperty(F,D,{value:G,enumerable:!0,configurable:!0,writable:!0}):F[D]=G,F}var k=function(D){return D.hasOwnProperty("key")},U=(function(F){x(G,F);var D=w(G);function G(j){var L;return g(this,G),L=D.call(this,j),O(S(L),"itemsWrapperRef",void 0),O(S(L),"itemsListRef",void 0),O(S(L),"thumbsRef",void 0),O(S(L),"setItemsWrapperRef",function(B){L.itemsWrapperRef=B}),O(S(L),"setItemsListRef",function(B){L.itemsListRef=B}),O(S(L),"setThumbsRef",function(B,q){L.thumbsRef||(L.thumbsRef=[]),L.thumbsRef[q]=B}),O(S(L),"updateSizes",function(){if(!(!L.props.children||!L.itemsWrapperRef||!L.thumbsRef)){var B=e.Children.count(L.props.children),q=L.itemsWrapperRef.clientWidth,C=L.props.thumbWidth?L.props.thumbWidth:(0,r.outerWidth)(L.thumbsRef[0]),J=Math.floor(q/C),Y=J<B,te=Y?B-J:0;L.setState(function(de,Z){return{itemSize:C,visibleItems:J,firstItem:Y?L.getFirstItem(Z.selectedItem):0,lastPosition:te,showArrows:Y}})}}),O(S(L),"handleClickItem",function(B,q,C){if(!k(C)||C.key==="Enter"){var J=L.props.onSelectItem;typeof J=="function"&&J(B,q)}}),O(S(L),"onSwipeStart",function(){L.setState({swiping:!0})}),O(S(L),"onSwipeEnd",function(){L.setState({swiping:!1})}),O(S(L),"onSwipeMove",function(B){var q=B.x;if(!L.state.itemSize||!L.itemsWrapperRef||!L.state.visibleItems)return!1;var C=0,J=e.Children.count(L.props.children),Y=-(L.state.firstItem*100)/L.state.visibleItems,te=Math.max(J-L.state.visibleItems,0),de=-te*100/L.state.visibleItems;Y===C&&q>0&&(q=0),Y===de&&q<0&&(q=0);var Z=L.itemsWrapperRef.clientWidth,Q=Y+100/(Z/q);return L.itemsListRef&&["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(se){L.itemsListRef.style[se]=(0,i.default)(Q,"%",L.props.axis)}),!0}),O(S(L),"slideRight",function(B){L.moveTo(L.state.firstItem-(typeof B=="number"?B:1))}),O(S(L),"slideLeft",function(B){L.moveTo(L.state.firstItem+(typeof B=="number"?B:1))}),O(S(L),"moveTo",function(B){B=B<0?0:B,B=B>=L.state.lastPosition?L.state.lastPosition:B,L.setState({firstItem:B})}),L.state={selectedItem:j.selectedItem,swiping:!1,showArrows:!1,firstItem:0,visibleItems:0,lastPosition:0},L}return b(G,[{key:"componentDidMount",value:function(){this.setupThumbs()}},{key:"componentDidUpdate",value:function(L){this.props.selectedItem!==this.state.selectedItem&&this.setState({selectedItem:this.props.selectedItem,firstItem:this.getFirstItem(this.props.selectedItem)}),this.props.children!==L.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(L){var B=L;return L>=this.state.lastPosition&&(B=this.state.lastPosition),L<this.state.firstItem+this.state.visibleItems&&(B=this.state.firstItem),L<this.state.firstItem&&(B=L),B}},{key:"renderItems",value:function(){var L=this;return this.props.children.map(function(B,q){var C=t.default.ITEM(!1,q===L.state.selectedItem),J={key:q,ref:function(te){return L.setThumbsRef(te,q)},className:C,onClick:L.handleClickItem.bind(L,q,L.props.children[q]),onKeyDown:L.handleClickItem.bind(L,q,L.props.children[q]),"aria-label":"".concat(L.props.labels.item," ").concat(q+1),style:{width:L.props.thumbWidth}};return e.default.createElement("li",m({},J,{role:"button",tabIndex:0}),B)})}},{key:"render",value:function(){var L=this;if(!this.props.children)return null;var B=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 L.slideRight()},"aria-label":this.props.labels.leftArrow}),B?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 L.setItemsListRef(Q)},style:J},this.renderItems()),e.default.createElement("button",{type:"button",className:t.default.ARROW_NEXT(!C),onClick:function(){return L.slideLeft()},"aria-label":this.props.labels.rightArrow})))}}]),G})(e.Component);return io.default=U,O(U,"displayName","Thumbs"),O(U,"defaultProps",{axis:"horizontal",labels:{leftArrow:"previous slide / item",rightArrow:"next slide / item",item:"slide item"},selectedItem:0,thumbWidth:80,transitionTime:350}),io}var uo={},Gg;function JP(){if(Gg)return uo;Gg=1,Object.defineProperty(uo,"__esModule",{value:!0}),uo.default=void 0;var e=function(){return document};return uo.default=e,uo}var Ut={},Kg;function Xv(){if(Kg)return Ut;Kg=1,Object.defineProperty(Ut,"__esModule",{value:!0}),Ut.setPosition=Ut.getPosition=Ut.isKeyboardEvent=Ut.defaultStatusFormatter=Ut.noop=void 0;var e=W,t=r(Xc());function r(f){return f&&f.__esModule?f:{default:f}}var i=function(){};Ut.noop=i;var s=function(v,m){return"".concat(v," of ").concat(m)};Ut.defaultStatusFormatter=s;var a=function(v){return v?v.hasOwnProperty("key"):!1};Ut.isKeyboardEvent=a;var l=function(v,m){if(m.infiniteLoop&&++v,v===0)return 0;var g=e.Children.count(m.children);if(m.centerMode&&m.axis==="horizontal"){var p=-v*m.centerSlidePercentage,b=g-1;return v&&(v!==b||m.infiniteLoop)?p+=(100-m.centerSlidePercentage)/2:v===b&&(p+=100-m.centerSlidePercentage),p}return-v*100};Ut.getPosition=l;var c=function(v,m){var g={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(p){g[p]=(0,t.default)(v,"%",m)}),g};return Ut.setPosition=c,Ut}var fr={},Vg;function QP(){if(Vg)return fr;Vg=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.fadeAnimationHandler=fr.slideStopSwipingHandler=fr.slideSwipeAnimationHandler=fr.slideAnimationHandler=void 0;var e=W,t=i(Xc()),r=Xv();function i(g){return g&&g.__esModule?g:{default:g}}function s(g,p){var b=Object.keys(g);if(Object.getOwnPropertySymbols){var x=Object.getOwnPropertySymbols(g);p&&(x=x.filter(function(d){return Object.getOwnPropertyDescriptor(g,d).enumerable})),b.push.apply(b,x)}return b}function a(g){for(var p=1;p<arguments.length;p++){var b=arguments[p]!=null?arguments[p]:{};p%2?s(Object(b),!0).forEach(function(x){l(g,x,b[x])}):Object.getOwnPropertyDescriptors?Object.defineProperties(g,Object.getOwnPropertyDescriptors(b)):s(Object(b)).forEach(function(x){Object.defineProperty(g,x,Object.getOwnPropertyDescriptor(b,x))})}return g}function l(g,p,b){return p in g?Object.defineProperty(g,p,{value:b,enumerable:!0,configurable:!0,writable:!0}):g[p]=b,g}var c=function(p,b){var x={},d=b.selectedItem,w=d,h=e.Children.count(p.children)-1,S=p.infiniteLoop&&(d<0||d>h);if(S)return w<0?p.centerMode&&p.centerSlidePercentage&&p.axis==="horizontal"?x.itemListStyle=(0,r.setPosition)(-(h+2)*p.centerSlidePercentage-(100-p.centerSlidePercentage)/2,p.axis):x.itemListStyle=(0,r.setPosition)(-(h+2)*100,p.axis):w>h&&(x.itemListStyle=(0,r.setPosition)(0,p.axis)),x;var E=(0,r.getPosition)(d,p),R=(0,t.default)(E,"%",p.axis),O=p.transitionTime+"ms";return x.itemListStyle={WebkitTransform:R,msTransform:R,OTransform:R,transform:R},b.swiping||(x.itemListStyle=a(a({},x.itemListStyle),{},{WebkitTransitionDuration:O,MozTransitionDuration:O,OTransitionDuration:O,transitionDuration:O,msTransitionDuration:O})),x};fr.slideAnimationHandler=c;var f=function(p,b,x,d){var w={},h=b.axis==="horizontal",S=e.Children.count(b.children),E=0,R=(0,r.getPosition)(x.selectedItem,b),O=b.infiniteLoop?(0,r.getPosition)(S-1,b)-100:(0,r.getPosition)(S-1,b),k=h?p.x:p.y,U=k;R===E&&k>0&&(U=0),R===O&&k<0&&(U=0);var F=R+100/(x.itemSize/U),D=Math.abs(k)>b.swipeScrollTolerance;return b.infiniteLoop&&D&&(x.selectedItem===0&&F>-100?F-=S*100:x.selectedItem===S-1&&F<-S*100&&(F+=S*100)),(!b.preventMovementUntilSwipeScrollTolerance||D||x.swipeMovementStarted)&&(x.swipeMovementStarted||d({swipeMovementStarted:!0}),w.itemListStyle=(0,r.setPosition)(F,b.axis)),D&&!x.cancelClick&&d({cancelClick:!0}),w};fr.slideSwipeAnimationHandler=f;var v=function(p,b){var x=(0,r.getPosition)(b.selectedItem,p),d=(0,r.setPosition)(x,p.axis);return{itemListStyle:d}};fr.slideStopSwipingHandler=v;var m=function(p,b){var x=p.transitionTime+"ms",d="ease-in-out",w={position:"absolute",display:"block",zIndex:-2,minHeight:"100%",opacity:0,top:0,right:0,left:0,bottom:0,transitionTimingFunction:d,msTransitionTimingFunction:d,MozTransitionTimingFunction:d,WebkitTransitionTimingFunction:d,OTransitionTimingFunction:d};return b.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 fr.fadeAnimationHandler=m,fr}var Yg;function eC(){if(Yg)return ro;Yg=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.default=void 0;var e=m(W),t=f(Gv()),r=f(Kv()),i=f(Yv()),s=f(JP()),a=f(Vv()),l=Xv(),c=QP();function f(j){return j&&j.__esModule?j:{default:j}}function v(){if(typeof WeakMap!="function")return null;var j=new WeakMap;return v=function(){return j},j}function m(j){if(j&&j.__esModule)return j;if(j===null||g(j)!=="object"&&typeof j!="function")return{default:j};var L=v();if(L&&L.has(j))return L.get(j);var B={},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(B,C,J):B[C]=j[C]}return B.default=j,L&&L.set(j,B),B}function g(j){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g=function(B){return typeof B}:g=function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},g(j)}function p(){return p=Object.assign||function(j){for(var L=1;L<arguments.length;L++){var B=arguments[L];for(var q in B)Object.prototype.hasOwnProperty.call(B,q)&&(j[q]=B[q])}return j},p.apply(this,arguments)}function b(j,L){var B=Object.keys(j);if(Object.getOwnPropertySymbols){var q=Object.getOwnPropertySymbols(j);L&&(q=q.filter(function(C){return Object.getOwnPropertyDescriptor(j,C).enumerable})),B.push.apply(B,q)}return B}function x(j){for(var L=1;L<arguments.length;L++){var B=arguments[L]!=null?arguments[L]:{};L%2?b(Object(B),!0).forEach(function(q){D(j,q,B[q])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(B)):b(Object(B)).forEach(function(q){Object.defineProperty(j,q,Object.getOwnPropertyDescriptor(B,q))})}return j}function d(j,L){if(!(j instanceof L))throw new TypeError("Cannot call a class as a function")}function w(j,L){for(var B=0;B<L.length;B++){var q=L[B];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(j,q.key,q)}}function h(j,L,B){return L&&w(j.prototype,L),j}function S(j,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(L&&L.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),L&&E(j,L)}function E(j,L){return E=Object.setPrototypeOf||function(q,C){return q.__proto__=C,q},E(j,L)}function R(j){var L=U();return function(){var q=F(j),C;if(L){var J=F(this).constructor;C=Reflect.construct(q,arguments,J)}else C=q.apply(this,arguments);return O(this,C)}}function O(j,L){return L&&(g(L)==="object"||typeof L=="function")?L: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 F(j){return F=Object.setPrototypeOf?Object.getPrototypeOf:function(B){return B.__proto__||Object.getPrototypeOf(B)},F(j)}function D(j,L,B){return L in j?Object.defineProperty(j,L,{value:B,enumerable:!0,configurable:!0,writable:!0}):j[L]=B,j}var G=(function(j){S(B,j);var L=R(B);function B(q){var C;d(this,B),C=L.call(this,q),D(k(C),"thumbsRef",void 0),D(k(C),"carouselWrapperRef",void 0),D(k(C),"listRef",void 0),D(k(C),"itemsRef",void 0),D(k(C),"timer",void 0),D(k(C),"animationHandler",void 0),D(k(C),"setThumbsRef",function(Y){C.thumbsRef=Y}),D(k(C),"setCarouselWrapperRef",function(Y){C.carouselWrapperRef=Y}),D(k(C),"setListRef",function(Y){C.listRef=Y}),D(k(C),"setItemsRef",function(Y,te){C.itemsRef||(C.itemsRef=[]),C.itemsRef[te]=Y}),D(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)))}),D(k(C),"clearAutoPlay",function(){C.timer&&clearTimeout(C.timer)}),D(k(C),"resetAutoPlay",function(){C.clearAutoPlay(),C.autoPlay()}),D(k(C),"stopOnHover",function(){C.setState({isMouseEntered:!0},C.clearAutoPlay)}),D(k(C),"startOnLeave",function(){C.setState({isMouseEntered:!1},C.autoPlay)}),D(k(C),"isFocusWithinTheCarousel",function(){return C.carouselWrapperRef?!!((0,s.default)().activeElement===C.carouselWrapperRef||C.carouselWrapperRef.contains((0,s.default)().activeElement)):!1}),D(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()}}),D(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()}}}),D(k(C),"setMountState",function(){C.setState({hasMount:!0}),C.updateSizes()}),D(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})}}),D(k(C),"handleOnChange",function(Y,te){e.Children.count(C.props.children)<=1||C.props.onChange(Y,te)}),D(k(C),"handleClickThumb",function(Y,te){C.props.onClickThumb(Y,te),C.moveTo(Y)}),D(k(C),"onSwipeStart",function(Y){C.setState({swiping:!0}),C.props.onSwipeStart(Y)}),D(k(C),"onSwipeEnd",function(Y){C.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),C.props.onSwipeEnd(Y),C.clearAutoPlay(),C.state.autoPlay&&C.autoPlay()}),D(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}),D(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))}),D(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))}),D(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()}}),D(k(C),"onClickNext",function(){C.increment(1)}),D(k(C),"onClickPrev",function(){C.decrement(1)}),D(k(C),"onSwipeForward",function(){C.increment(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),D(k(C),"onSwipeBackwards",function(){C.decrement(1),C.props.emulateTouch&&C.setState({cancelClick:!0})}),D(k(C),"changeItem",function(Y){return function(te){(!(0,l.isKeyboardEvent)(te)||te.key==="Enter")&&C.moveTo(Y)}}),D(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])}),D(k(C),"getInitialImage",function(){var Y=C.props.selectedItem,te=C.itemsRef&&C.itemsRef[Y],de=te&&te.getElementsByTagName("img")||[];return de[0]}),D(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 h(B,[{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,p({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())}}]),B})(e.default.Component);return ro.default=G,D(G,"displayName","Carousel"),D(G,"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(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_PREV(!B),onClick:L})},renderArrowNext:function(L,B,q){return e.default.createElement("button",{type:"button","aria-label":q,className:r.default.ARROW_NEXT(!B),onClick:L})},renderIndicator:function(L,B,q,C){return e.default.createElement("li",{className:r.default.DOT(B),onClick:L,onKeyDown:L,value:q,key:q,role:"button",tabIndex:0,"aria-label":"".concat(C," ").concat(q+1)})},renderItem:function(L){return L},renderThumbs:function(L){var B=e.Children.map(L,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 B.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"),[]):B},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}),ro}var Xg={},Jg;function tC(){return Jg||(Jg=1),Xg}var Qg;function rC(){return Qg||(Qg=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(eC()),r=tC(),i=s(Yv());function s(a){return a&&a.__esModule?a:{default:a}}})(Dl)),Dl}var nC=rC();const iC=({tip:e})=>M.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:Jv(e,!0)}),oC=({pages:e})=>M.jsx("div",{className:"min-h-[10rem] w-96",children:M.jsx(nC.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>M.jsx(iC,{tip:t},t.key))})}),sC=({body:e,isInsideCarousel:t})=>M.jsx("article",{className:We(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-grey-100 ",{"w-60":!t}]),children:M.jsx(ma,{children:e,options:{overrides:{a:{component:({children:r,...i})=>M.jsxs("a",{...i,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary-dark",children:[r,M.jsx(et.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})}),aC=({video:e,body:t,title:r,isInsideCarousel:i})=>M.jsxs("div",{className:We([{"flex flex-row":!i,"flex max-h-[10rem] flex-col overflow-y-auto":i}]),children:[M.jsx("div",{className:We([{"mr-1":!i,"mb-1":i}]),children:M.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})}),M.jsx("article",{className:We(["prose prose-sm p-1 text-left text-xs text-grey-100",{"w-60 overflow-auto":!i,"-mt-6":i}]),children:M.jsx(ma,{children:t||"",options:{overrides:{a:{component:({children:s,...a})=>M.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[s,M.jsx(et.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),Jv=(e,t)=>{switch(e.type){case fa.TEXT:return M.jsx(sC,{body:e.body,isInsideCarousel:t});case fa.VIDEO:return M.jsx(aC,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case fa.CAROUSEL:return M.jsx(oC,{pages:e.pages})}},Qv=W.createContext(void 0);function em(e,t){const r=[];return e.forEach(i=>{i.key===t&&r.push(i)}),r}const uC=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:i,show:s},a]=W.useState({tips:{},show:!0});W.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(f=>f.json()).then(f=>{const v=f.reduce((m,g)=>em(f,g.key).length>1?{...m,[g.key]:{type:"carousel",pages:em(f,g.key)}}:{...m,[g.key]:g},{});a(m=>({...m,tips:v}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!s}))};return M.jsx(Qv.Provider,{value:{tips:i,toggleTips:l,show:s,enabled:t},children:e})},ey=e=>{const t=W.useContext(Qv);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}},lC=va(WP)`
129
+ */var jd,$b;function BL(){if($b)return jd;$b=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(h){return l[h]});if(u.join("")!=="0123456789")return!1;var p={};return"abcdefghijklmnopqrst".split("").forEach(function(h){p[h]=h}),Object.keys(Object.assign({},p)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}return jd=o()?Object.assign:function(a,l){for(var c,u=n(a),p,h=1;h<arguments.length;h++){c=Object(arguments[h]);for(var f in c)t.call(c,f)&&(u[f]=c[f]);if(e){p=e(c);for(var g=0;g<p.length;g++)r.call(c,p[g])&&(u[p[g]]=c[p[g]])}}return u},jd}var Fd,zb;function cp(){if(zb)return Fd;zb=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return Fd=e,Fd}var Hd,jb;function rx(){return jb||(jb=1,Hd=Function.call.bind(Object.prototype.hasOwnProperty)),Hd}var Bd,Fb;function WL(){if(Fb)return Bd;Fb=1;var e=function(){};if(process.env.NODE_ENV!=="production"){var t=cp(),r={},n=rx();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 h in a)if(n(a,h)){var f;try{if(typeof a[h]!="function"){var g=Error((u||"React class")+": "+c+" type `"+h+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof a[h]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw g.name="Invariant Violation",g}f=a[h](l,h,u,c,null,t)}catch(S){f=S}if(f&&!(f instanceof Error)&&e((u||"React class")+": type specification of "+c+" `"+h+"` 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={})},Bd=o,Bd}var Wd,Hb;function UL(){if(Hb)return Wd;Hb=1;var e=tx(),t=BL(),r=cp(),n=rx(),o=WL(),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 Wd=function(c,u){var p=typeof Symbol=="function"&&Symbol.iterator,h="@@iterator";function f(D){var U=D&&(p&&D[p]||D[h]);if(typeof U=="function")return U}var g="<<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:L,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(se,ae,re,le,pe,de,ye){if(le=le||g,de=de||re,ye!==r){if(u){var Z=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw Z.name="Invariant Violation",Z}else if(process.env.NODE_ENV!=="production"&&typeof console<"u"){var Oe=le+":"+re;!U[Oe]&&ee<3&&(a("You are manually calling a React.PropTypes validation function for the `"+de+"` prop on `"+le+"`. 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[Oe]=!0,ee++)}}return ae[re]==null?se?ae[re]===null?new v("The "+pe+" `"+de+"` is marked as required "+("in `"+le+"`, but its value is `null`.")):new v("The "+pe+" `"+de+"` is marked as required in "+("`"+le+"`, but its value is `undefined`.")):null:D(ae,re,le,pe,de)}var J=te.bind(null,!1);return J.isRequired=te.bind(null,!0),J}function m(D){function U(ee,te,J,se,ae,re){var le=ee[te],pe=Y(le);if(pe!==D){var de=X(le);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+de+"` 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,se,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 le=Y(re);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an array."))}for(var pe=0;pe<re.length;pe++){var de=D(re,pe,J,se,ae+"["+pe+"]",r);if(de instanceof Error)return de}return null}return y(U)}function k(){function D(U,ee,te,J,se){var ae=U[ee];if(!c(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+se+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement."))}return null}return y(D)}function E(){function D(U,ee,te,J,se){var ae=U[ee];if(!e.isValidElementType(ae)){var re=Y(ae);return new v("Invalid "+J+" `"+se+"` of type "+("`"+re+"` supplied to `"+te+"`, expected a single ReactElement type."))}return null}return y(D)}function R(D){function U(ee,te,J,se,ae){if(!(ee[te]instanceof D)){var re=D.name||g,le=ge(ee[te]);return new v("Invalid "+se+" `"+ae+"` of type "+("`"+le+"` 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,se,ae){for(var re=ee[te],le=0;le<D.length;le++)if(S(re,D[le]))return null;var pe=JSON.stringify(D,function(ye,Z){var Oe=X(Z);return Oe==="symbol"?String(Z):Z});return new v("Invalid "+se+" `"+ae+"` of value `"+String(re)+"` "+("supplied to `"+J+"`, expected one of "+pe+"."))}return y(U)}function P(D){function U(ee,te,J,se,ae){if(typeof D!="function")return new v("Property `"+ae+"` of component `"+J+"` has invalid PropType notation inside objectOf.");var re=ee[te],le=Y(re);if(le!=="object")return new v("Invalid "+se+" `"+ae+"` of type "+("`"+le+"` supplied to `"+J+"`, expected an object."));for(var pe in re)if(n(re,pe)){var de=D(re,pe,J,se,ae+"."+pe,r);if(de instanceof Error)return de}return null}return y(U)}function L(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,se,ae,re,le){for(var pe=[],de=0;de<D.length;de++){var ye=D[de],Z=ye(J,se,ae,re,le,r);if(Z==null)return null;Z.data&&n(Z.data,"expectedType")&&pe.push(Z.data.expectedType)}var Oe=pe.length>0?", expected one of type ["+pe.join(", ")+"]":"";return new v("Invalid "+re+" `"+le+"` supplied to "+("`"+ae+"`"+Oe+"."))}return y(te)}function V(){function D(U,ee,te,J,se){return W(U[ee])?null:new v("Invalid "+J+" `"+se+"` supplied to "+("`"+te+"`, expected a ReactNode."))}return y(D)}function $(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,se,ae){var re=ee[te],le=Y(re);if(le!=="object")return new v("Invalid "+se+" `"+ae+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));for(var pe in D){var de=D[pe];if(typeof de!="function")return $(J,se,ae,pe,X(de));var ye=de(re,pe,J,se,ae+"."+pe,r);if(ye)return ye}return null}return y(U)}function j(D){function U(ee,te,J,se,ae){var re=ee[te],le=Y(re);if(le!=="object")return new v("Invalid "+se+" `"+ae+"` of type `"+le+"` "+("supplied to `"+J+"`, expected `object`."));var pe=t({},ee[te],D);for(var de in pe){var ye=D[de];if(n(D,de)&&typeof ye!="function")return $(J,se,ae,de,X(ye));if(!ye)return new v("Invalid "+se+" `"+ae+"` key `"+de+"` supplied to `"+J+"`.\nBad object: "+JSON.stringify(ee[te],null," ")+`
130
+ Valid keys: `+JSON.stringify(Object.keys(D),null," "));var Z=ye(re,de,J,se,ae+"."+de,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?g:D.constructor.name}return b.checkPropTypes=o,b.resetWarningCache=o.resetWarningCache,b.PropTypes=b,b},Wd}var Ud,Bb;function qL(){if(Bb)return Ud;Bb=1;var e=cp();function t(){}function r(){}return r.resetWarningCache=t,Ud=function(){function n(l,c,u,p,h,f){if(f!==e){var g=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 g.name="Invariant Violation",g}}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},Ud}var Wb;function VL(){if(Wb)return Cl.exports;if(Wb=1,process.env.NODE_ENV!=="production"){var e=tx(),t=!0;Cl.exports=UL()(e.isElement,t)}else Cl.exports=qL()();return Cl.exports}var Ub;function GL(){return Ub||(Ub=1,(function(e){(function(t,r){r(e,z,VL())})(Rl,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 h=(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 g(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){g(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 h(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,L=F-this.moveStart.x,V=P-this.moveStart.y;this.moving=!0;var $=this.props.onSwipeMove({x:L,y:V},E);$&&E.cancelable&&E.preventDefault(),this.movePosition={deltaX:L,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 L=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},L),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})})(Rl)),Rl}var qb;function nx(){return qb||(qb=1,(function(e){(function(t,r){r(e,GL())})(Tl,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})})(Tl)),Tl}var wa={},Vb;function ix(){if(Vb)return wa;Vb=1,Object.defineProperty(wa,"__esModule",{value:!0}),wa.default=void 0;var e=t(ay());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 wa.default=n,wa}var xa={},Sa={},Gb;function KL(){if(Gb)return Sa;Gb=1,Object.defineProperty(Sa,"__esModule",{value:!0}),Sa.outerWidth=void 0;var e=function(r){var n=r.offsetWidth,o=getComputedStyle(r);return n+=parseInt(o.marginLeft)+parseInt(o.marginRight),n};return Sa.outerWidth=e,Sa}var _a={},Kb;function up(){if(Kb)return _a;Kb=1,Object.defineProperty(_a,"__esModule",{value:!0}),_a.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 _a.default=e,_a}var Ea={},Zb;function ox(){if(Zb)return Ea;Zb=1,Object.defineProperty(Ea,"__esModule",{value:!0}),Ea.default=void 0;var e=function(){return window};return Ea.default=e,Ea}var Yb;function ax(){if(Yb)return xa;Yb=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.default=void 0;var e=u(z),t=l(ix()),r=KL(),n=l(up()),o=l(nx()),a=l(ox());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 L=c();if(L&&L.has(P))return L.get(P);var V={},$=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var I in P)if(Object.prototype.hasOwnProperty.call(P,I)){var j=$?Object.getOwnPropertyDescriptor(P,I):null;j&&(j.get||j.set)?Object.defineProperty(V,I,j):V[I]=P[I]}return V.default=P,L&&L.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 h(){return h=Object.assign||function(P){for(var L=1;L<arguments.length;L++){var V=arguments[L];for(var $ in V)Object.prototype.hasOwnProperty.call(V,$)&&(P[$]=V[$])}return P},h.apply(this,arguments)}function f(P,L){if(!(P instanceof L))throw new TypeError("Cannot call a class as a function")}function g(P,L){for(var V=0;V<L.length;V++){var $=L[V];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(P,$.key,$)}}function b(P,L,V){return L&&g(P.prototype,L),P}function S(P,L){if(typeof L!="function"&&L!==null)throw new TypeError("Super expression must either be null or a function");P.prototype=Object.create(L&&L.prototype,{constructor:{value:P,writable:!0,configurable:!0}}),L&&v(P,L)}function v(P,L){return v=Object.setPrototypeOf||function($,I){return $.__proto__=I,$},v(P,L)}function y(P){var L=x();return function(){var $=k(P),I;if(L){var j=k(this).constructor;I=Reflect.construct($,arguments,j)}else I=$.apply(this,arguments);return m(this,I)}}function m(P,L){return L&&(p(L)==="object"||typeof L=="function")?L: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,L,V){return L in P?Object.defineProperty(P,L,{value:V,enumerable:!0,configurable:!0,writable:!0}):P[L]=V,P}var R=function(L){return L.hasOwnProperty("key")},F=(function(P){S(V,P);var L=y(V);function V($){var I;return f(this,V),I=L.call(this,$),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:$.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",h({},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 xa.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}),xa}var ka={},Xb;function ZL(){if(Xb)return ka;Xb=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.default=void 0;var e=function(){return document};return ka.default=e,ka}var fr={},Jb;function sx(){if(Jb)return fr;Jb=1,Object.defineProperty(fr,"__esModule",{value:!0}),fr.setPosition=fr.getPosition=fr.isKeyboardEvent=fr.defaultStatusFormatter=fr.noop=void 0;var e=z,t=r(up());function r(u){return u&&u.__esModule?u:{default:u}}var n=function(){};fr.noop=n;var o=function(p,h){return"".concat(p," of ").concat(h)};fr.defaultStatusFormatter=o;var a=function(p){return p?p.hasOwnProperty("key"):!1};fr.isKeyboardEvent=a;var l=function(p,h){if(h.infiniteLoop&&++p,p===0)return 0;var f=e.Children.count(h.children);if(h.centerMode&&h.axis==="horizontal"){var g=-p*h.centerSlidePercentage,b=f-1;return p&&(p!==b||h.infiniteLoop)?g+=(100-h.centerSlidePercentage)/2:p===b&&(g+=100-h.centerSlidePercentage),g}return-p*100};fr.getPosition=l;var c=function(p,h){var f={};return["WebkitTransform","MozTransform","MsTransform","OTransform","transform","msTransform"].forEach(function(g){f[g]=(0,t.default)(p,"%",h)}),f};return fr.setPosition=c,fr}var Hr={},Qb;function YL(){if(Qb)return Hr;Qb=1,Object.defineProperty(Hr,"__esModule",{value:!0}),Hr.fadeAnimationHandler=Hr.slideStopSwipingHandler=Hr.slideSwipeAnimationHandler=Hr.slideAnimationHandler=void 0;var e=z,t=n(up()),r=sx();function n(f){return f&&f.__esModule?f:{default:f}}function o(f,g){var b=Object.keys(f);if(Object.getOwnPropertySymbols){var S=Object.getOwnPropertySymbols(f);g&&(S=S.filter(function(v){return Object.getOwnPropertyDescriptor(f,v).enumerable})),b.push.apply(b,S)}return b}function a(f){for(var g=1;g<arguments.length;g++){var b=arguments[g]!=null?arguments[g]:{};g%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,g,b){return g in f?Object.defineProperty(f,g,{value:b,enumerable:!0,configurable:!0,writable:!0}):f[g]=b,f}var c=function(g,b){var S={},v=b.selectedItem,y=v,m=e.Children.count(g.children)-1,w=g.infiniteLoop&&(v<0||v>m);if(w)return y<0?g.centerMode&&g.centerSlidePercentage&&g.axis==="horizontal"?S.itemListStyle=(0,r.setPosition)(-(m+2)*g.centerSlidePercentage-(100-g.centerSlidePercentage)/2,g.axis):S.itemListStyle=(0,r.setPosition)(-(m+2)*100,g.axis):y>m&&(S.itemListStyle=(0,r.setPosition)(0,g.axis)),S;var x=(0,r.getPosition)(v,g),k=(0,t.default)(x,"%",g.axis),E=g.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};Hr.slideAnimationHandler=c;var u=function(g,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?g.x:g.y,F=R;k===x&&R>0&&(F=0),k===E&&R<0&&(F=0);var P=k+100/(S.itemSize/F),L=Math.abs(R)>b.swipeScrollTolerance;return b.infiniteLoop&&L&&(S.selectedItem===0&&P>-100?P-=w*100:S.selectedItem===w-1&&P<-w*100&&(P+=w*100)),(!b.preventMovementUntilSwipeScrollTolerance||L||S.swipeMovementStarted)&&(S.swipeMovementStarted||v({swipeMovementStarted:!0}),y.itemListStyle=(0,r.setPosition)(P,b.axis)),L&&!S.cancelClick&&v({cancelClick:!0}),y};Hr.slideSwipeAnimationHandler=u;var p=function(g,b){var S=(0,r.getPosition)(b.selectedItem,g),v=(0,r.setPosition)(S,g.axis);return{itemListStyle:v}};Hr.slideStopSwipingHandler=p;var h=function(g,b){var S=g.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 Hr.fadeAnimationHandler=h,Hr}var e0;function XL(){if(e0)return ya;e0=1,Object.defineProperty(ya,"__esModule",{value:!0}),ya.default=void 0;var e=h(z),t=u(nx()),r=u(ix()),n=u(ax()),o=u(ZL()),a=u(ox()),l=sx(),c=YL();function u($){return $&&$.__esModule?$:{default:$}}function p(){if(typeof WeakMap!="function")return null;var $=new WeakMap;return p=function(){return $},$}function h($){if($&&$.__esModule)return $;if($===null||f($)!=="object"&&typeof $!="function")return{default:$};var I=p();if(I&&I.has($))return I.get($);var j={},W=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in $)if(Object.prototype.hasOwnProperty.call($,N)){var Y=W?Object.getOwnPropertyDescriptor($,N):null;Y&&(Y.get||Y.set)?Object.defineProperty(j,N,Y):j[N]=$[N]}return j.default=$,I&&I.set($,j),j}function f($){"@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($)}function g(){return g=Object.assign||function($){for(var I=1;I<arguments.length;I++){var j=arguments[I];for(var W in j)Object.prototype.hasOwnProperty.call(j,W)&&($[W]=j[W])}return $},g.apply(this,arguments)}function b($,I){var j=Object.keys($);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols($);I&&(W=W.filter(function(N){return Object.getOwnPropertyDescriptor($,N).enumerable})),j.push.apply(j,W)}return j}function S($){for(var I=1;I<arguments.length;I++){var j=arguments[I]!=null?arguments[I]:{};I%2?b(Object(j),!0).forEach(function(W){L($,W,j[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties($,Object.getOwnPropertyDescriptors(j)):b(Object(j)).forEach(function(W){Object.defineProperty($,W,Object.getOwnPropertyDescriptor(j,W))})}return $}function v($,I){if(!($ instanceof I))throw new TypeError("Cannot call a class as a function")}function y($,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($,W.key,W)}}function m($,I,j){return I&&y($.prototype,I),$}function w($,I){if(typeof I!="function"&&I!==null)throw new TypeError("Super expression must either be null or a function");$.prototype=Object.create(I&&I.prototype,{constructor:{value:$,writable:!0,configurable:!0}}),I&&x($,I)}function x($,I){return x=Object.setPrototypeOf||function(W,N){return W.__proto__=N,W},x($,I)}function k($){var I=F();return function(){var W=P($),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($,I){return I&&(f(I)==="object"||typeof I=="function")?I:R($)}function R($){if($===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return $}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($){return P=Object.setPrototypeOf?Object.getPrototypeOf:function(j){return j.__proto__||Object.getPrototypeOf(j)},P($)}function L($,I,j){return I in $?Object.defineProperty($,I,{value:j,enumerable:!0,configurable:!0,writable:!0}):$[I]=j,$}var V=(function($){w(j,$);var I=k(j);function j(W){var N;v(this,j),N=I.call(this,W),L(R(N),"thumbsRef",void 0),L(R(N),"carouselWrapperRef",void 0),L(R(N),"listRef",void 0),L(R(N),"itemsRef",void 0),L(R(N),"timer",void 0),L(R(N),"animationHandler",void 0),L(R(N),"setThumbsRef",function(X){N.thumbsRef=X}),L(R(N),"setCarouselWrapperRef",function(X){N.carouselWrapperRef=X}),L(R(N),"setListRef",function(X){N.listRef=X}),L(R(N),"setItemsRef",function(X,K){N.itemsRef||(N.itemsRef=[]),N.itemsRef[K]=X}),L(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)))}),L(R(N),"clearAutoPlay",function(){N.timer&&clearTimeout(N.timer)}),L(R(N),"resetAutoPlay",function(){N.clearAutoPlay(),N.autoPlay()}),L(R(N),"stopOnHover",function(){N.setState({isMouseEntered:!0},N.clearAutoPlay)}),L(R(N),"startOnLeave",function(){N.setState({isMouseEntered:!1},N.autoPlay)}),L(R(N),"isFocusWithinTheCarousel",function(){return N.carouselWrapperRef?!!((0,o.default)().activeElement===N.carouselWrapperRef||N.carouselWrapperRef.contains((0,o.default)().activeElement)):!1}),L(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()}}),L(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()}}}),L(R(N),"setMountState",function(){N.setState({hasMount:!0}),N.updateSizes()}),L(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})}}),L(R(N),"handleOnChange",function(X,K){e.Children.count(N.props.children)<=1||N.props.onChange(X,K)}),L(R(N),"handleClickThumb",function(X,K){N.props.onClickThumb(X,K),N.moveTo(X)}),L(R(N),"onSwipeStart",function(X){N.setState({swiping:!0}),N.props.onSwipeStart(X)}),L(R(N),"onSwipeEnd",function(X){N.setState({swiping:!1,cancelClick:!1,swipeMovementStarted:!1}),N.props.onSwipeEnd(X),N.clearAutoPlay(),N.state.autoPlay&&N.autoPlay()}),L(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}),L(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))}),L(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))}),L(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()}}),L(R(N),"onClickNext",function(){N.increment(1)}),L(R(N),"onClickPrev",function(){N.decrement(1)}),L(R(N),"onSwipeForward",function(){N.increment(1),N.props.emulateTouch&&N.setState({cancelClick:!0})}),L(R(N),"onSwipeBackwards",function(){N.decrement(1),N.props.emulateTouch&&N.setState({cancelClick:!0})}),L(R(N),"changeItem",function(X){return function(K){(!(0,l.isKeyboardEvent)(K)||K.key==="Enter")&&N.moveTo(X)}}),L(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])}),L(R(N),"getInitialImage",function(){var X=N.props.selectedItem,K=N.itemsRef&&N.itemsRef[X],ge=K&&K.getElementsByTagName("img")||[];return ge[0]}),L(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},se={};if(X){if(J.onSwipeLeft=this.onSwipeForward,J.onSwipeRight=this.onSwipeBackwards,this.props.dynamicHeight){var ae=this.getVariableItemHeight(this.state.selectedItem);se.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}),se.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:se},Y?e.default.createElement(t.default,g({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(le){return N.setListRef(le)},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 ya.default=V,L(V,"displayName","Carousel"),L(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}),ya}var t0={},r0;function JL(){return r0||(r0=1),t0}var n0;function QL(){return n0||(n0=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(XL()),r=JL(),n=o(ax());function o(a){return a&&a.__esModule?a:{default:a}}})(zd)),zd}var e5=QL();const t5=({tip:e})=>A.jsx("div",{className:"h-full grid pb-8 px-8 place-content-center",children:lx(e,!0)}),r5=({pages:e})=>A.jsx("div",{className:"min-h-[10rem] w-96",children:A.jsx(e5.Carousel,{autoPlay:!1,infiniteLoop:!0,showThumbs:!1,showArrows:!0,showStatus:!1,children:e&&e.map(t=>A.jsx(t5,{tip:t},t.key))})}),n5=({body:e,isInsideCarousel:t})=>A.jsx("article",{className:tt(["prose prose-sm max-h-[10rem] overflow-auto p-1 px-2 text-left text-[12px] text-muted",{"w-60":!t}]),children:A.jsx(nc,{children:e,options:{overrides:{a:{component:({children:r,...n})=>A.jsxs("a",{...n,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-start text-primary",children:[r,A.jsx(ct.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})},strong:{component:({children:r,...n})=>A.jsx("span",{...n,className:"font-semibold text-body",children:r})}}}})}),i5=({video:e,body:t,title:r,isInsideCarousel:n})=>A.jsxs("div",{className:tt([{"flex flex-row":!n,"flex max-h-[10rem] flex-col overflow-y-auto":n}]),children:[A.jsx("div",{className:tt([{"mr-1":!n,"mb-1":n}]),children:A.jsx("iframe",{height:n?"auto":90,width:n?"100%":160,src:e==null?void 0:e.link,title:r,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})}),A.jsx("article",{className:tt(["prose prose-sm p-1 text-left text-xs text-muted",{"w-60 overflow-auto":!n,"-mt-6":n}]),children:A.jsx(nc,{children:t||"",options:{overrides:{a:{component:({children:o,...a})=>A.jsxs("a",{...a,target:"_blank",rel:"noopener noreferrer",className:"flex items-start",children:[o,A.jsx(ct.FdOutload,{className:"ml-1 mt-px h-4 w-4"})]})}}}})})]}),lx=(e,t)=>{switch(e.type){case Xl.TEXT:return A.jsx(n5,{body:e.body,isInsideCarousel:t});case Xl.VIDEO:return A.jsx(i5,{video:e.video,body:e.body,title:e.title,isInsideCarousel:t});case Xl.CAROUSEL:return A.jsx(r5,{pages:e.pages})}},cx=z.createContext(void 0);function i0(e,t){const r=[];return e.forEach(n=>{n.key===t&&r.push(n)}),r}const o5=({children:e,enabled:t,baseUrl:r="https://raw.githubusercontent.com/4d/Web-studio-TIPS/main"})=>{const[{tips:n,show:o},a]=z.useState({tips:{},show:!0});z.useEffect(()=>{const c=new AbortController;try{fetch(`${r}/tips.json`,{signal:c.signal}).then(u=>u.json()).then(u=>{const p=u.reduce((h,f)=>i0(u,f.key).length>1?{...h,[f.key]:{type:"carousel",pages:i0(u,f.key)}}:{...h,[f.key]:f},{});a(h=>({...h,tips:p}))})}catch{}return()=>{c.abort()}},[]);const l=()=>{a(c=>({...c,show:!o}))};return A.jsx(cx.Provider,{value:{tips:n,toggleTips:l,show:o,enabled:t},children:e})},ux=e=>{const t=z.useContext(cx);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}},a5=lc(zL)`
82
131
  &[data-state='open'] > * {
83
132
  display: block !important;
84
133
  }
85
- `,ty=({tipKey:e,side:t="right",alwaysOn:r,asButton:i=!1})=>{const{tip:s,enabled:a}=ey(e),[l,c]=W.useState(!1),f=W.useRef(null);return W.useEffect(()=>{if(f.current){const v=new IntersectionObserver(m=>{m[0].isIntersecting||c(!1)});return v.observe(f.current),()=>{f.current&&v.unobserve(f.current)}}},[]),s&&a?M.jsxs(zP,{open:l,onOpenChange:c,children:[M.jsx(lC,{ref:f,className:We("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":i}),onClick:v=>v.stopPropagation(),children:M.jsx("span",{className:We("group-hover:block",{hidden:!r}),children:M.jsx(et.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),M.jsx(UP,{side:t,sideOffset:5,onClick:v=>v.stopPropagation(),children:M.jsx("div",{className:"relative rounded border border-grey-50 bg-grey-900 p-2 text-xs text-white shadow-2xl",children:Jv(s)})})]}):null};var cC=Object.defineProperty,fC=(e,t,r)=>t in e?cC(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Hl=(e,t,r)=>(fC(e,typeof t!="symbol"?t+"":t,r),r);let dC=class{constructor(){Hl(this,"current",this.detect()),Hl(this,"handoffState","pending"),Hl(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"}},gi=new dC,Cr=(e,t)=>{gi.isServer?W.useEffect(e,t):W.useLayoutEffect(e,t)};function mi(e){let t=W.useRef(e);return Cr(()=>{t.current=e},[e]),t}let St=function(e){let t=mi(e);return W.useCallback((...r)=>t.current(...r),[t])};function pC(e,t,r){let[i,s]=W.useState(r),a=e!==void 0,l=W.useRef(a),c=W.useRef(!1),f=W.useRef(!1);return a&&!l.current&&!c.current?(c.current=!0,l.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&&l.current&&!f.current&&(f.current=!0,l.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,St(v=>(a||s(v),t==null?void 0:t(v)))]}function hC(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function Wo(){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 hC(()=>{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=Wo();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 Jc(){let[e]=W.useState(Wo);return W.useEffect(()=>()=>e.dispose(),[e]),e}function gC(){let e=typeof document>"u";return"useSyncExternalStore"in $?(t=>t.useSyncExternalStore)($)(()=>()=>{},()=>!1,()=>!e):!1}function Qc(){let e=gC(),[t,r]=$.useState(gi.isHandoffComplete);return t&&gi.isHandoffComplete===!1&&r(!1),$.useEffect(()=>{t!==!0&&r(!0)},[t]),$.useEffect(()=>gi.handoff(),[]),e?!1:t}var tm;let ef=(tm=W.useId)!=null?tm:function(){let e=Qc(),[t,r]=W.useState(e?()=>gi.nextId():null);return Cr(()=>{t===null&&r(gi.nextId())},[t]),t!=null?""+t:void 0};function Ar(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,Ar),i}function rm(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 mC(e,t){let[r,i]=W.useState(()=>rm(e));return Cr(()=>{i(rm(e))},[e.type,e.as]),Cr(()=>{r||t.current&&t.current instanceof HTMLButtonElement&&!t.current.hasAttribute("type")&&i("button")},[r,t]),r}let vC=Symbol();function Uo(...e){let t=W.useRef(e);W.useEffect(()=>{t.current=e},[e]);let r=St(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[vC]))?void 0:r}function ba(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var ry=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(ry||{}),pn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(pn||{});function Zn({ourProps:e,theirProps:t,slot:r,defaultTag:i,features:s,visible:a=!0,name:l,mergeRefs:c}){c=c??yC;let f=ny(t,e);if(a)return Js(f,r,i,l,c);let v=s??0;if(v&2){let{static:m=!1,...g}=f;if(m)return Js(g,r,i,l,c)}if(v&1){let{unmount:m=!0,...g}=f;return Ar(m?0:1,{0(){return null},1(){return Js({...g,hidden:!0,style:{display:"none"}},r,i,l,c)}})}return Js(f,r,i,l,c)}function Js(e,t={},r,i,s){let{as:a=r,children:l,refName:c="ref",...f}=ql(e,["unmount","static"]),v=e.ref!==void 0?{[c]:e.ref}:{},m=typeof l=="function"?l(t):l;"className"in f&&f.className&&typeof f.className=="function"&&(f.className=f.className(t));let g={};if(t){let p=!1,b=[];for(let[x,d]of Object.entries(t))typeof d=="boolean"&&(p=!0),d===!0&&b.push(x);p&&(g["data-headlessui-state"]=b.join(" "))}if(a===W.Fragment&&Object.keys(vc(f)).length>0){if(!W.isValidElement(m)||Array.isArray(m)&&m.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(d=>` - ${d}`).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(d=>` - ${d}`).join(`
87
- `)].join(`
88
- `));let p=m.props,b=typeof(p==null?void 0:p.className)=="function"?(...d)=>ba(p==null?void 0:p.className(...d),f.className):ba(p==null?void 0:p.className,f.className),x=b?{className:b}:{};return W.cloneElement(m,Object.assign({},ny(m.props,vc(ql(f,["ref"]))),g,v,{ref:s(m.ref,v.ref)},x))}return W.createElement(a,Object.assign({},ql(f,["ref"]),a!==W.Fragment&&v,a!==W.Fragment&&g),m)}function yC(...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 ny(...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 l=r[i];for(let c of l){if((s instanceof Event||(s==null?void 0:s.nativeEvent)instanceof Event)&&s.defaultPrevented)return;c(s,...a)}}});return t}function Gn(e){var t;return Object.assign(W.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function vc(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function ql(e,t=[]){let r=Object.assign({},e);for(let i of t)i in r&&delete r[i];return r}let bC="div";var iy=(e=>(e[e.None=1]="None",e[e.Focusable=2]="Focusable",e[e.Hidden=4]="Hidden",e))(iy||{});function wC(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 Zn({ourProps:a,theirProps:s,slot:{},defaultTag:bC,name:"Hidden"})}let xC=Gn(wC),tf=W.createContext(null);tf.displayName="OpenClosedContext";var Hr=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(Hr||{});function oy(){return W.useContext(tf)}function SC({value:e,children:t}){return W.createElement(tf.Provider,{value:e},t)}function EC(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&&_C(r)?!1:i}function _C(e){if(!e)return!1;let t=e.previousElementSibling;for(;t!==null;){if(t instanceof HTMLLegendElement)return!1;t=t.previousElementSibling}return!0}function OC(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 yc=(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))(yc||{});function rf(){let e=W.useRef(!1);return Cr(()=>(e.current=!0,()=>{e.current=!1}),[]),e}let sy=W.createContext(null);function ay(){let e=W.useContext(sy);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,ay),t}return e}function AC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(sy.Provider,{value:s},r.children)},[t])]}let TC="p";function RC(e,t){let r=ef(),{id:i=`headlessui-description-${r}`,...s}=e,a=ay(),l=Uo(t);Cr(()=>a.register(i),[i,a.register]);let c={ref:l,...a.props,id:i};return Zn({ourProps:c,theirProps:s,slot:a.slot||{},defaultTag:TC,name:a.name||"Description"})}let PC=Gn(RC),CC=Object.assign(PC,{}),uy=W.createContext(null);function ly(){let e=W.useContext(uy);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,ly),t}return e}function kC(){let[e,t]=W.useState([]);return[e.length>0?e.join(" "):void 0,W.useMemo(()=>function(r){let i=St(a=>(t(l=>[...l,a]),()=>t(l=>{let c=l.slice(),f=c.indexOf(a);return f!==-1&&c.splice(f,1),c}))),s=W.useMemo(()=>({register:i,slot:r.slot,name:r.name,props:r.props}),[i,r.slot,r.name,r.props]);return W.createElement(uy.Provider,{value:s},r.children)},[t])]}let $C="label";function IC(e,t){let r=ef(),{id:i=`headlessui-label-${r}`,passive:s=!1,...a}=e,l=ly(),c=Uo(t);Cr(()=>l.register(i),[i,l.register]);let f={ref:c,...l.props,id:i};return s&&("onClick"in f&&(delete f.htmlFor,delete f.onClick),"onClick"in a&&delete a.onClick),Zn({ourProps:f,theirProps:a,slot:l.slot||{},defaultTag:$C,name:l.name||"Label"})}let LC=Gn(IC),MC=Object.assign(LC,{});function FC(e=0){let[t,r]=W.useState(e),i=rf(),s=W.useCallback(f=>{i.current&&r(v=>v|f)},[t,i]),a=W.useCallback(f=>!!(t&f),[t]),l=W.useCallback(f=>{i.current&&r(v=>v&~f)},[r,i]),c=W.useCallback(f=>{i.current&&r(v=>v^f)},[r]);return{flags:t,addFlag:s,hasFlag:a,removeFlag:l,toggleFlag:c}}let nf=W.createContext(null);nf.displayName="GroupContext";let DC=W.Fragment;function NC(e){var t;let[r,i]=W.useState(null),[s,a]=kC(),[l,c]=AC(),f=W.useMemo(()=>({switch:r,setSwitch:i,labelledby:s,describedby:l}),[r,i,s,l]),v={},m=e;return W.createElement(c,{name:"Switch.Description"},W.createElement(a,{name:"Switch.Label",props:{htmlFor:(t=f.switch)==null?void 0:t.id,onClick(g){r&&(g.currentTarget.tagName==="LABEL"&&g.preventDefault(),r.click(),r.focus({preventScroll:!0}))}}},W.createElement(nf.Provider,{value:f},Zn({ourProps:v,theirProps:m,defaultTag:DC,name:"Switch.Group"}))))}let jC="button";function zC(e,t){var r;let i=ef(),{id:s=`headlessui-switch-${i}`,checked:a,defaultChecked:l=!1,onChange:c,disabled:f=!1,name:v,value:m,form:g,...p}=e,b=W.useContext(nf),x=W.useRef(null),d=Uo(x,t,b===null?null:b.setSwitch),[w,h]=pC(a,c,l),S=St(()=>h==null?void 0:h(!w)),E=St(D=>{if(EC(D.currentTarget))return D.preventDefault();D.preventDefault(),S()}),R=St(D=>{D.key===yc.Space?(D.preventDefault(),S()):D.key===yc.Enter&&OC(D.currentTarget)}),O=St(D=>D.preventDefault()),k=W.useMemo(()=>({checked:w}),[w]),U={id:s,ref:d,role:"switch",type:mC(e,x),tabIndex:e.tabIndex===-1?0:(r=e.tabIndex)!=null?r:0,"aria-checked":w,"aria-labelledby":b==null?void 0:b.labelledby,"aria-describedby":b==null?void 0:b.describedby,disabled:f,onClick:E,onKeyUp:R,onKeyPress:O},F=Jc();return W.useEffect(()=>{var D;let G=(D=x.current)==null?void 0:D.closest("form");G&&l!==void 0&&F.addEventListener(G,"reset",()=>{h(l)})},[x,h]),W.createElement(W.Fragment,null,v!=null&&w&&W.createElement(xC,{features:iy.Hidden,...vc({as:"input",type:"checkbox",hidden:!0,readOnly:!0,disabled:f,form:g,checked:w,name:v,value:m})}),Zn({ourProps:U,theirProps:p,slot:k,defaultTag:jC,name:"Switch"}))}let WC=Gn(zC),UC=NC,BC=Object.assign(WC,{Group:UC,Label:MC,Description:CC});function HC(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Zl(e,...t){e&&t.length>0&&e.classList.add(...t)}function Gl(e,...t){e&&t.length>0&&e.classList.remove(...t)}function qC(e,t){let r=Wo();if(!e)return r.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[a,l]=[i,s].map(f=>{let[v=0]=f.split(",").filter(Boolean).map(m=>m.includes("ms")?parseFloat(m):parseFloat(m)*1e3).sort((m,g)=>g-m);return v}),c=a+l;if(c!==0){r.group(v=>{v.setTimeout(()=>{t(),v.dispose()},c),v.addEventListener(e,"transitionrun",m=>{m.target===m.currentTarget&&v.dispose()})});let f=r.addEventListener(e,"transitionend",v=>{v.target===v.currentTarget&&(t(),f())})}else t();return r.add(()=>t()),r.dispose}function ZC(e,t,r,i){let s=r?"enter":"leave",a=Wo(),l=i!==void 0?HC(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=Ar(s,{enter:()=>t.enter,leave:()=>t.leave}),f=Ar(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),v=Ar(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Gl(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Zl(e,...t.base,...c,...v),a.nextFrame(()=>{Gl(e,...t.base,...c,...v),Zl(e,...t.base,...c,...f),qC(e,()=>(Gl(e,...t.base,...c),Zl(e,...t.base,...t.entered),l()))}),a.dispose}function GC({immediate:e,container:t,direction:r,classes:i,onStart:s,onStop:a}){let l=rf(),c=Jc(),f=mi(r);Cr(()=>{e&&(f.current="enter")},[e]),Cr(()=>{let v=Wo();c.add(v.dispose);let m=t.current;if(m&&f.current!=="idle"&&l.current)return v.dispose(),s.current(f.current),v.add(ZC(m,i.current,f.current==="enter",()=>{v.dispose(),a.current(f.current)})),v.dispose},[r])}function ln(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ja=W.createContext(null);ja.displayName="TransitionContext";var KC=(e=>(e.Visible="visible",e.Hidden="hidden",e))(KC||{});function VC(){let e=W.useContext(ja);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function YC(){let e=W.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}let za=W.createContext(null);za.displayName="NestingContext";function Wa(e){return"children"in e?Wa(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function cy(e,t){let r=mi(e),i=W.useRef([]),s=rf(),a=Jc(),l=St((b,x=pn.Hidden)=>{let d=i.current.findIndex(({el:w})=>w===b);d!==-1&&(Ar(x,{[pn.Unmount](){i.current.splice(d,1)},[pn.Hidden](){i.current[d].state="hidden"}}),a.microTask(()=>{var w;!Wa(i)&&s.current&&((w=r.current)==null||w.call(r))}))}),c=St(b=>{let x=i.current.find(({el:d})=>d===b);return x?x.state!=="visible"&&(x.state="visible"):i.current.push({el:b,state:"visible"}),()=>l(b,pn.Unmount)}),f=W.useRef([]),v=W.useRef(Promise.resolve()),m=W.useRef({enter:[],leave:[],idle:[]}),g=St((b,x,d)=>{f.current.splice(0),t&&(t.chains.current[x]=t.chains.current[x].filter(([w])=>w!==b)),t==null||t.chains.current[x].push([b,new Promise(w=>{f.current.push(w)})]),t==null||t.chains.current[x].push([b,new Promise(w=>{Promise.all(m.current[x].map(([h,S])=>S)).then(()=>w())})]),x==="enter"?v.current=v.current.then(()=>t==null?void 0:t.wait.current).then(()=>d(x)):d(x)}),p=St((b,x,d)=>{Promise.all(m.current[x].splice(0).map(([w,h])=>h)).then(()=>{var w;(w=f.current.shift())==null||w()}).then(()=>d(x))});return W.useMemo(()=>({children:i,register:c,unregister:l,onStart:g,onStop:p,wait:v,chains:m}),[c,l,i,g,p,m,v])}function XC(){}let JC=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function nm(e){var t;let r={};for(let i of JC)r[i]=(t=e[i])!=null?t:XC;return r}function QC(e){let t=W.useRef(nm(e));return W.useEffect(()=>{t.current=nm(e)},[e]),t}let ek="div",fy=ry.RenderStrategy;function tk(e,t){var r,i;let{beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c,enter:f,enterFrom:v,enterTo:m,entered:g,leave:p,leaveFrom:b,leaveTo:x,...d}=e,w=W.useRef(null),h=Uo(w,t),S=(r=d.unmount)==null||r?pn.Unmount:pn.Hidden,{show:E,appear:R,initial:O}=VC(),[k,U]=W.useState(E?"visible":"hidden"),F=YC(),{register:D,unregister:G}=F;W.useEffect(()=>D(w),[D,w]),W.useEffect(()=>{if(S===pn.Hidden&&w.current){if(E&&k!=="visible"){U("visible");return}return Ar(k,{hidden:()=>G(w),visible:()=>D(w)})}},[k,w,D,G,E,S]);let j=mi({base:ln(d.className),enter:ln(f),enterFrom:ln(v),enterTo:ln(m),entered:ln(g),leave:ln(p),leaveFrom:ln(b),leaveTo:ln(x)}),L=QC({beforeEnter:s,afterEnter:a,beforeLeave:l,afterLeave:c}),B=Qc();W.useEffect(()=>{if(B&&k==="visible"&&w.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[w,k,B]);let q=O&&!R,C=R&&E&&O,J=!B||q?"idle":E?"enter":"leave",Y=FC(0),te=St(ne=>Ar(ne,{enter:()=>{Y.addFlag(Hr.Opening),L.current.beforeEnter()},leave:()=>{Y.addFlag(Hr.Closing),L.current.beforeLeave()},idle:()=>{}})),de=St(ne=>Ar(ne,{enter:()=>{Y.removeFlag(Hr.Opening),L.current.afterEnter()},leave:()=>{Y.removeFlag(Hr.Closing),L.current.afterLeave()},idle:()=>{}})),Z=cy(()=>{U("hidden"),G(w)},F),Q=W.useRef(!1);GC({immediate:C,container:w,classes:j,direction:J,onStart:mi(ne=>{Q.current=!0,Z.onStart(w,ne,te)}),onStop:mi(ne=>{Q.current=!1,Z.onStop(w,ne,de),ne==="leave"&&!Wa(Z)&&(U("hidden"),G(w))})});let se=d,ue={ref:h};return C?se={...se,className:ba(d.className,...j.current.enter,...j.current.enterFrom)}:Q.current&&(se.className=ba(d.className,(i=w.current)==null?void 0:i.className),se.className===""&&delete se.className),W.createElement(za.Provider,{value:Z},W.createElement(SC,{value:Ar(k,{visible:Hr.Open,hidden:Hr.Closed})|Y.flags},Zn({ourProps:ue,theirProps:se,defaultTag:ek,features:fy,visible:k==="visible",name:"Transition.Child"})))}function rk(e,t){let{show:r,appear:i=!1,unmount:s=!0,...a}=e,l=W.useRef(null),c=Uo(l,t);Qc();let f=oy();if(r===void 0&&f!==null&&(r=(f&Hr.Open)===Hr.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[v,m]=W.useState(r?"visible":"hidden"),g=cy(()=>{m("hidden")}),[p,b]=W.useState(!0),x=W.useRef([r]);Cr(()=>{p!==!1&&x.current[x.current.length-1]!==r&&(x.current.push(r),b(!1))},[x,r]);let d=W.useMemo(()=>({show:r,appear:i,initial:p}),[r,i,p]);W.useEffect(()=>{if(r)m("visible");else if(!Wa(g))m("hidden");else{let E=l.current;if(!E)return;let R=E.getBoundingClientRect();R.x===0&&R.y===0&&R.width===0&&R.height===0&&m("hidden")}},[r,g]);let w={unmount:s},h=St(()=>{var E;p&&b(!1),(E=e.beforeEnter)==null||E.call(e)}),S=St(()=>{var E;p&&b(!1),(E=e.beforeLeave)==null||E.call(e)});return W.createElement(za.Provider,{value:g},W.createElement(ja.Provider,{value:d},Zn({ourProps:{...w,as:W.Fragment,children:W.createElement(dy,{ref:c,...w,...a,beforeEnter:h,beforeLeave:S})},theirProps:{},defaultTag:W.Fragment,features:fy,visible:v==="visible",name:"Transition"})))}function nk(e,t){let r=W.useContext(ja)!==null,i=oy()!==null;return W.createElement(W.Fragment,null,!r&&i?W.createElement(bc,{ref:t,...e}):W.createElement(dy,{ref:t,...e}))}let bc=Gn(rk),dy=Gn(tk),ik=Gn(nk),wa=Object.assign(bc,{Child:ik,Root:bc});const Kl={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"}},py=W.forwardRef(({onChange:e,value:t,size:r="md",className:i="ml-auto",...s},a)=>{const l=c=>{e(c)};return M.jsx("div",{className:We("flex items-center",i),children:M.jsx(BC,{as:"span",ref:a,checked:t,onChange:l,onKeyDown:c=>{c.key==="Enter"&&l(!t)},...s,className:`${t?"bg-primary-dark":"bg-grey-200"}
89
- relative inline-flex shrink-0 ${Kl[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:M.jsx("span",{"aria-hidden":"true",className:`${t?Kl[r].translate:"translate-x-0"}
90
- pointer-events-none inline-block ${Kl[r].switch} transform rounded-full bg-white shadow-lg ring-0 transition duration-200 ease-in-out`})})})});function of(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var Kn=of();function hy(e){Kn=e}var _o={exec:()=>null};function Ce(e,t=""){let r=typeof e=="string"?e:e.source,i={replace:(s,a)=>{let l=typeof a=="string"?a:a.source;return l=l.replace(Rt.caret,"$1"),r=r.replace(s,l),i},getRegex:()=>new RegExp(r,t)};return i}var Rt={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|$))+/,sk=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,ak=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,Bo=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,uk=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,sf=/(?:[*+-]|\d{1,9}[.)])/,gy=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,my=Ce(gy).replace(/bull/g,sf).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(),lk=Ce(gy).replace(/bull/g,sf).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(),af=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ck=/^[^\n]+/,uf=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,fk=Ce(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",uf).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),dk=Ce(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,sf).getRegex(),Ua="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",lf=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,pk=Ce("^ {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",lf).replace("tag",Ua).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vy=Ce(af).replace("hr",Bo).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",Ua).getRegex(),hk=Ce(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vy).getRegex(),cf={blockquote:hk,code:sk,def:fk,fences:ak,heading:uk,hr:Bo,html:pk,lheading:my,list:dk,newline:ok,paragraph:vy,table:_o,text:ck},im=Ce("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",Bo).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",Ua).getRegex(),gk={...cf,lheading:lk,table:im,paragraph:Ce(af).replace("hr",Bo).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",im).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",Ua).getRegex()},mk={...cf,html:Ce(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",lf).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:_o,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:Ce(af).replace("hr",Bo).replace("heading",` *#{1,6} *[^
91
- ]`).replace("lheading",my).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vk=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,yk=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,yy=/^( {2,}|\\)\n(?!\s*$)/,bk=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Ba=/[\p{P}\p{S}]/u,ff=/[\s\p{P}\p{S}]/u,by=/[^\s\p{P}\p{S}]/u,wk=Ce(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,ff).getRegex(),wy=/(?!~)[\p{P}\p{S}]/u,xk=/(?!~)[\s\p{P}\p{S}]/u,Sk=/(?:[^\s\p{P}\p{S}]|~)/u,Ek=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,xy=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,_k=Ce(xy,"u").replace(/punct/g,Ba).getRegex(),Ok=Ce(xy,"u").replace(/punct/g,wy).getRegex(),Sy="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",Ak=Ce(Sy,"gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,ff).replace(/punct/g,Ba).getRegex(),Tk=Ce(Sy,"gu").replace(/notPunctSpace/g,Sk).replace(/punctSpace/g,xk).replace(/punct/g,wy).getRegex(),Rk=Ce("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,by).replace(/punctSpace/g,ff).replace(/punct/g,Ba).getRegex(),Pk=Ce(/\\(punct)/,"gu").replace(/punct/g,Ba).getRegex(),Ck=Ce(/^<(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(),kk=Ce(lf).replace("(?:-->|$)","-->").getRegex(),$k=Ce("^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",kk).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),xa=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,Ik=Ce(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",xa).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ey=Ce(/^!?\[(label)\]\[(ref)\]/).replace("label",xa).replace("ref",uf).getRegex(),_y=Ce(/^!?\[(ref)\](?:\[\])?/).replace("ref",uf).getRegex(),Lk=Ce("reflink|nolink(?!\\()","g").replace("reflink",Ey).replace("nolink",_y).getRegex(),om=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,df={_backpedal:_o,anyPunctuation:Pk,autolink:Ck,blockSkip:Ek,br:yy,code:yk,del:_o,emStrongLDelim:_k,emStrongRDelimAst:Ak,emStrongRDelimUnd:Rk,escape:vk,link:Ik,nolink:_y,punctuation:wk,reflink:Ey,reflinkSearch:Lk,tag:$k,text:bk,url:_o},Mk={...df,link:Ce(/^!?\[(label)\]\((.*?)\)/).replace("label",xa).getRegex(),reflink:Ce(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",xa).getRegex()},wc={...df,emStrongRDelimAst:Tk,emStrongLDelim:Ok,url:Ce(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",om).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:Ce(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",om).getRegex()},Fk={...wc,br:Ce(yy).replace("{2,}","*").getRegex(),text:Ce(wc.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Qs={normal:cf,gfm:gk,pedantic:mk},lo={normal:df,gfm:wc,breaks:Fk,pedantic:Mk},Dk={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},sm=e=>Dk[e];function Sr(e,t){if(t){if(Rt.escapeTest.test(e))return e.replace(Rt.escapeReplace,sm)}else if(Rt.escapeTestNoEncode.test(e))return e.replace(Rt.escapeReplaceNoEncode,sm);return e}function am(e){try{e=encodeURI(e).replace(Rt.percentDecode,"%")}catch{return null}return e}function um(e,t){var a;let r=e.replace(Rt.findPipe,(l,c,f)=>{let v=!1,m=c;for(;--m>=0&&f[m]==="\\";)v=!v;return v?"|":" |"}),i=r.split(Rt.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(Rt.slashPipe,"|");return i}function co(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 Nk(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 lm(e,t,r,i,s){let a=t.href,l=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:l,text:c,tokens:i.inlineTokens(c)};return i.state.inLink=!1,f}function jk(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 l=a.match(r.other.beginningSpace);if(l===null)return a;let[c]=l;return c.length>=s.length?a.slice(s.length):a}).join(`
93
- `)}var Sa=class{constructor(t){ve(this,"options");ve(this,"rules");ve(this,"lexer");this.options=t||Kn}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:co(i,`
94
- `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let i=r[0],s=jk(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=co(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:co(r[0],`
95
- `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let i=co(r[0],`
134
+ `,dx=({tipKey:e,side:t="right",alwaysOn:r,asButton:n=!1})=>{const{tip:o,enabled:a}=ux(e),[l,c]=z.useState(!1),u=z.useRef(null);return z.useEffect(()=>{if(u.current){const p=new IntersectionObserver(h=>{h[0].isIntersecting||c(!1)});return p.observe(u.current),()=>{u.current&&p.unobserve(u.current)}}},[]),o&&a?A.jsxs($L,{open:l,onOpenChange:c,children:[A.jsx(a5,{ref:u,className:tt("focus:outline-none",{"rounded p-1 text-gray-100 hover:bg-primary-hover":n}),onClick:p=>p.stopPropagation(),children:A.jsx("span",{className:tt("group-hover:block",{hidden:!r}),children:A.jsx(ct.FdBulb,{className:"h-4 w-4 text-yellow-300"})})}),A.jsx(jL,{side:t,sideOffset:5,onClick:p=>p.stopPropagation(),children:A.jsx(us,{depth:3,borderType:"light",className:"relative rounded border p-2 text-xs shadow-2xl",children:lx(o)})})]}):null};function dp(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var $i=dp();function fx(e){$i=e}var Ba={exec:()=>null};function He(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(Yt.caret,"$1"),r=r.replace(o,l),n},getRegex:()=>new RegExp(r,t)};return n}var Yt={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")},s5=/^(?:[ \t]*(?:\n|$))+/,l5=/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,c5=/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,fs=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,u5=/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,fp=/(?:[*+-]|\d{1,9}[.)])/,px=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,hx=He(px).replace(/bull/g,fp).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(),d5=He(px).replace(/bull/g,fp).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(),pp=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,f5=/^[^\n]+/,hp=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,p5=He(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",hp).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),h5=He(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,fp).getRegex(),Nc="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",gp=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,g5=He("^ {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",gp).replace("tag",Nc).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),gx=He(pp).replace("hr",fs).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",Nc).getRegex(),v5=He(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",gx).getRegex(),vp={blockquote:v5,code:l5,def:p5,fences:c5,heading:u5,hr:fs,html:g5,lheading:hx,list:h5,newline:s5,paragraph:gx,table:Ba,text:f5},o0=He("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",fs).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",Nc).getRegex(),m5={...vp,lheading:d5,table:o0,paragraph:He(pp).replace("hr",fs).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",o0).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",Nc).getRegex()},b5={...vp,html:He(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",gp).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:Ba,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:He(pp).replace("hr",fs).replace("heading",` *#{1,6} *[^
135
+ ]`).replace("lheading",hx).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},y5=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,w5=/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,vx=/^( {2,}|\\)\n(?!\s*$)/,x5=/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,Dc=/[\p{P}\p{S}]/u,mp=/[\s\p{P}\p{S}]/u,mx=/[^\s\p{P}\p{S}]/u,S5=He(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,mp).getRegex(),bx=/(?!~)[\p{P}\p{S}]/u,_5=/(?!~)[\s\p{P}\p{S}]/u,E5=/(?:[^\s\p{P}\p{S}]|~)/u,k5=/\[(?:[^\[\]`]|`[^`]*?`)*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)|`[^`]*?`|<(?! )[^<>]*?>/g,yx=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,O5=He(yx,"u").replace(/punct/g,Dc).getRegex(),A5=He(yx,"u").replace(/punct/g,bx).getRegex(),wx="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",T5=He(wx,"gu").replace(/notPunctSpace/g,mx).replace(/punctSpace/g,mp).replace(/punct/g,Dc).getRegex(),R5=He(wx,"gu").replace(/notPunctSpace/g,E5).replace(/punctSpace/g,_5).replace(/punct/g,bx).getRegex(),C5=He("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,mx).replace(/punctSpace/g,mp).replace(/punct/g,Dc).getRegex(),P5=He(/\\(punct)/,"gu").replace(/punct/g,Dc).getRegex(),I5=He(/^<(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(),N5=He(gp).replace("(?:-->|$)","-->").getRegex(),D5=He("^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",N5).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),uc=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,M5=He(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",uc).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),xx=He(/^!?\[(label)\]\[(ref)\]/).replace("label",uc).replace("ref",hp).getRegex(),Sx=He(/^!?\[(ref)\](?:\[\])?/).replace("ref",hp).getRegex(),L5=He("reflink|nolink(?!\\()","g").replace("reflink",xx).replace("nolink",Sx).getRegex(),a0=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,bp={_backpedal:Ba,anyPunctuation:P5,autolink:I5,blockSkip:k5,br:vx,code:w5,del:Ba,emStrongLDelim:O5,emStrongRDelimAst:T5,emStrongRDelimUnd:C5,escape:y5,link:M5,nolink:Sx,punctuation:S5,reflink:xx,reflinkSearch:L5,tag:D5,text:x5,url:Ba},$5={...bp,link:He(/^!?\[(label)\]\((.*?)\)/).replace("label",uc).getRegex(),reflink:He(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",uc).getRegex()},Ef={...bp,emStrongRDelimAst:R5,emStrongLDelim:A5,url:He(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",a0).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:He(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",a0).getRegex()},z5={...Ef,br:He(vx).replace("{2,}","*").getRegex(),text:He(Ef.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},Il={normal:vp,gfm:m5,pedantic:b5},Oa={normal:bp,gfm:Ef,breaks:z5,pedantic:$5},j5={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},s0=e=>j5[e];function Qr(e,t){if(t){if(Yt.escapeTest.test(e))return e.replace(Yt.escapeReplace,s0)}else if(Yt.escapeTestNoEncode.test(e))return e.replace(Yt.escapeReplaceNoEncode,s0);return e}function l0(e){try{e=encodeURI(e).replace(Yt.percentDecode,"%")}catch{return null}return e}function c0(e,t){var a;let r=e.replace(Yt.findPipe,(l,c,u)=>{let p=!1,h=c;for(;--h>=0&&u[h]==="\\";)p=!p;return p?"|":" |"}),n=r.split(Yt.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(Yt.slashPipe,"|");return n}function Aa(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 F5(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 u0(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 H5(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 dc=class{constructor(t){Ae(this,"options");Ae(this,"rules");Ae(this,"lexer");this.options=t||$i}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:Aa(n,`
138
+ `)}}}fences(t){let r=this.rules.block.fences.exec(t);if(r){let n=r[0],o=H5(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=Aa(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:Aa(r[0],`
139
+ `)}}blockquote(t){let r=this.rules.block.blockquote.exec(t);if(r){let n=Aa(r[0],`
96
140
  `).split(`
97
- `),s="",a="",l=[];for(;i.length>0;){let c=!1,f=[],v;for(v=0;v<i.length;v++)if(this.rules.other.blockquoteStart.test(i[v]))f.push(i[v]),c=!0;else if(!c)f.push(i[v]);else break;i=i.slice(v);let m=f.join(`
98
- `),g=m.replace(this.rules.other.blockquoteSetextReplace,`
99
- $1`).replace(this.rules.other.blockquoteSetextReplace2,"");s=s?`${s}
100
- ${m}`:m,a=a?`${a}
101
- ${g}`:g;let p=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(g,l,!0),this.lexer.state.top=p,i.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 x=b,d=x.raw+`
102
- `+i.join(`
103
- `),w=this.blockquote(d);l[l.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((b==null?void 0:b.type)==="list"){let x=b,d=x.raw+`
104
- `+i.join(`
105
- `),w=this.list(d);l[l.length-1]=w,s=s.substring(0,s.length-b.raw.length)+w.raw,a=a.substring(0,a.length-x.raw.length)+w.raw,i=d.substring(l.at(-1).raw.length).split(`
106
- `);continue}}return{type:"blockquote",raw:s,tokens:l,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 l=this.rules.other.listItemRegex(i),c=!1;for(;t;){let v=!1,m="",g="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;m=r[0],t=t.substring(m.length);let p=r[2].split(`
107
- `,1)[0].replace(this.rules.other.listReplaceTabs,S=>" ".repeat(3*S.length)),b=t.split(`
108
- `,1)[0],x=!p.trim(),d=0;if(this.options.pedantic?(d=2,g=p.trimStart()):x?d=r[1].length+1:(d=r[2].search(this.rules.other.nonSpaceChar),d=d>4?1:d,g=p.slice(d),d+=r[1].length),x&&this.rules.other.blankLine.test(b)&&(m+=b+`
109
- `,t=t.substring(b.length+1),v=!0),!v){let S=this.rules.other.nextBulletRegex(d),E=this.rules.other.hrRegex(d),R=this.rules.other.fencesBeginRegex(d),O=this.rules.other.headingBeginRegex(d),k=this.rules.other.htmlBeginRegex(d);for(;t;){let U=t.split(`
110
- `,1)[0],F;if(b=U,this.options.pedantic?(b=b.replace(this.rules.other.listReplaceNesting," "),F=b):F=b.replace(this.rules.other.tabCharGlobal," "),R.test(b)||O.test(b)||k.test(b)||S.test(b)||E.test(b))break;if(F.search(this.rules.other.nonSpaceChar)>=d||!b.trim())g+=`
111
- `+F.slice(d);else{if(x||p.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||R.test(p)||O.test(p)||E.test(p))break;g+=`
112
- `+b}!x&&!b.trim()&&(x=!0),m+=U+`
113
- `,t=t.substring(U.length+1),p=F.slice(d)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(m)&&(c=!0));let w=null,h;this.options.gfm&&(w=this.rules.other.listIsTask.exec(g),w&&(h=w[0]!=="[ ] ",g=g.replace(this.rules.other.listReplaceTask,""))),a.items.push({type:"list_item",raw:m,task:!!w,checked:h,loose:!1,text:g,tokens:[]}),a.raw+=m}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 v=0;v<a.items.length;v++)if(this.lexer.state.top=!1,a.items[v].tokens=this.lexer.blockTokens(a.items[v].text,[]),!a.loose){let m=a.items[v].tokens.filter(p=>p.type==="space"),g=m.length>0&&m.some(p=>this.rules.other.anyLine.test(p.raw));a.loose=g}if(a.loose)for(let v=0;v<a.items.length;v++)a.items[v].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=um(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
- `):[],l={type:"table",raw:r[0],header:[],align:[],rows:[]};if(i.length===s.length){for(let f of s)this.rules.other.tableAlignRight.test(f)?l.align.push("right"):this.rules.other.tableAlignCenter.test(f)?l.align.push("center"):this.rules.other.tableAlignLeft.test(f)?l.align.push("left"):l.align.push(null);for(let f=0;f<i.length;f++)l.header.push({text:i[f],tokens:this.lexer.inline(i[f]),header:!0,align:l.align[f]});for(let f of a)l.rows.push(um(f,l.header.length).map((v,m)=>({text:v,tokens:this.lexer.inline(v),header:!1,align:l.align[m]})));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 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 l=co(i.slice(0,-1),"\\");if((i.length-l.length)%2===0)return}else{let l=Nk(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 s=r[2],a="";if(this.options.pedantic){let l=this.rules.other.pedanticHrefTitle.exec(s);l&&(s=l[1],a=l[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)),lm(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 l=i[0].charAt(0);return{type:"text",raw:l,text:l}}return lm(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,l,c,f=a,v=0,m=s[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(m.lastIndex=0,r=r.slice(-1*t.length+a);(s=m.exec(r))!=null;){if(l=s[1]||s[2]||s[3]||s[4]||s[5]||s[6],!l)continue;if(c=[...l].length,s[3]||s[4]){f+=c;continue}else if((s[5]||s[6])&&a%3&&!((a+c)%3)){v+=c;continue}if(f-=c,f>0)continue;c=Math.min(c,c+f+v);let g=[...s[0]][0].length,p=t.slice(0,a+s.index+g+c);if(Math.min(a,c)%2){let x=p.slice(1,-1);return{type:"em",raw:p,text:x,tokens:this.lexer.inlineTokens(x)}}let b=p.slice(2,-2);return{type:"strong",raw:p,text:b,tokens:this.lexer.inlineTokens(b)}}}}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 l;do l=r[0],r[0]=((i=this.rules.inline._backpedal.exec(r[0]))==null?void 0:i[0])??"";while(l!==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}}}},dr=class xc{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||Kn,this.options.tokenizer=this.options.tokenizer||new Sa,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:Rt,block:Qs.normal,inline:lo.normal};this.options.pedantic?(r.block=Qs.pedantic,r.inline=lo.pedantic):this.options.gfm&&(r.block=Qs.gfm,this.options.breaks?r.inline=lo.breaks:r.inline=lo.gfm),this.tokenizer.rules=r}static get rules(){return{block:Qs,inline:lo}}static lex(t,r){return new xc(r).lex(t)}static lexInline(t,r){return new xc(r).inlineTokens(t)}lex(t){t=t.replace(Rt.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,l;for(this.options.pedantic&&(t=t.replace(Rt.tabCharGlobal," ").replace(Rt.spaceLine,""));t;){let c;if((a=(s=this.options.extensions)==null?void 0:s.block)!=null&&a.some(v=>(c=v.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 v=r.at(-1);c.raw.length===1&&v!==void 0?v.raw+=`
117
- `:r.push(c);continue}if(c=this.tokenizer.code(t)){t=t.substring(c.raw.length);let v=r.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.raw.endsWith(`
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 h=u.join(`
142
+ `),f=h.replace(this.rules.other.blockquoteSetextReplace,`
143
+ $1`).replace(this.rules.other.blockquoteSetextReplace2,"");o=o?`${o}
144
+ ${h}`:h,a=a?`${a}
145
+ ${f}`:f;let g=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(f,l,!0),this.lexer.state.top=g,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,h="",f="";if(!(r=l.exec(t))||this.rules.block.hr.test(t))break;h=r[0],t=t.substring(h.length);let g=r[2].split(`
151
+ `,1)[0].replace(this.rules.other.listReplaceTabs,w=>" ".repeat(3*w.length)),b=t.split(`
152
+ `,1)[0],S=!g.trim(),v=0;if(this.options.pedantic?(v=2,f=g.trimStart()):S?v=r[1].length+1:(v=r[2].search(this.rules.other.nonSpaceChar),v=v>4?1:v,f=g.slice(v),v+=r[1].length),S&&this.rules.other.blankLine.test(b)&&(h+=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||g.replace(this.rules.other.tabCharGlobal," ").search(this.rules.other.nonSpaceChar)>=4||k.test(g)||E.test(g)||x.test(g))break;f+=`
156
+ `+b}!S&&!b.trim()&&(S=!0),h+=F+`
157
+ `,t=t.substring(F.length+1),g=P.slice(v)}}a.loose||(c?a.loose=!0:this.rules.other.doubleBlankLine.test(h)&&(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:h,task:!!y,checked:m,loose:!1,text:f,tokens:[]}),a.raw+=h}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 h=a.items[p].tokens.filter(g=>g.type==="space"),f=h.length>0&&h.some(g=>this.rules.other.anyLine.test(g.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=c0(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(c0(u,l.header.length).map((p,h)=>({text:p,tokens:this.lexer.inline(p),header:!1,align:l.align[h]})));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=Aa(n.slice(0,-1),"\\");if((n.length-l.length)%2===0)return}else{let l=F5(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)),u0(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 u0(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,h=o[0][0]==="*"?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(h.lastIndex=0,r=r.slice(-1*t.length+a);(o=h.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,g=t.slice(0,a+o.index+f+c);if(Math.min(a,c)%2){let S=g.slice(1,-1);return{type:"em",raw:g,text:S,tokens:this.lexer.inlineTokens(S)}}let b=g.slice(2,-2);return{type:"strong",raw:g,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}}}},Br=class kf{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||$i,this.options.tokenizer=this.options.tokenizer||new dc,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let r={other:Yt,block:Il.normal,inline:Oa.normal};this.options.pedantic?(r.block=Il.pedantic,r.inline=Oa.pedantic):this.options.gfm&&(r.block=Il.gfm,this.options.breaks?r.inline=Oa.breaks:r.inline=Oa.gfm),this.tokenizer.rules=r}static get rules(){return{block:Il,inline:Oa}}static lex(t,r){return new kf(r).lex(t)}static lexInline(t,r){return new kf(r).inlineTokens(t)}lex(t){t=t.replace(Yt.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(Yt.tabCharGlobal," ").replace(Yt.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,v.text+=`
120
- `+c.text,this.inlineQueue.at(-1).src=v.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 v=r.at(-1);(v==null?void 0:v.type)==="paragraph"||(v==null?void 0:v.type)==="text"?(v.raw+=(v.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,v.text+=`
123
- `+c.raw,this.inlineQueue.at(-1).src=v.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((l=this.options.extensions)!=null&&l.startBlock){let v=1/0,m=t.slice(1),g;this.options.extensions.startBlock.forEach(p=>{g=p.call({lexer:this},m),typeof g=="number"&&g>=0&&(v=Math.min(v,g))}),v<1/0&&v>=0&&(f=t.substring(0,v+1))}if(this.state.top&&(c=this.tokenizer.paragraph(f))){let v=r.at(-1);i&&(v==null?void 0:v.type)==="paragraph"?(v.raw+=(v.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,h=t.slice(1),f;this.options.extensions.startBlock.forEach(g=>{f=g.call({lexer:this},h),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,v.text+=`
126
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.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 v=r.at(-1);(v==null?void 0:v.type)==="text"?(v.raw+=(v.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,v.text+=`
129
- `+c.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=v.text):r.push(c);continue}if(t){let v="Infinite loop on byte: "+t.charCodeAt(0);if(this.options.silent){console.error(v);break}else throw new Error(v)}}return this.state.top=!0,r}inline(t,r=[]){return this.inlineQueue.push({src:t,tokens:r}),r}inlineTokens(t,r=[]){var c,f,v,m,g;let i=t,s=null;if(this.tokens.links){let p=Object.keys(this.tokens.links);if(p.length>0)for(;(s=this.tokenizer.rules.inline.reflinkSearch.exec(i))!=null;)p.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,l="";for(;t;){a||(l=""),a=!1;let p;if((m=(v=this.options.extensions)==null?void 0:v.inline)!=null&&m.some(x=>(p=x.call({lexer:this},t,r))?(t=t.substring(p.raw.length),r.push(p),!0):!1))continue;if(p=this.tokenizer.escape(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.tag(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.link(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(p.raw.length);let x=r.at(-1);p.type==="text"&&(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);continue}if(p=this.tokenizer.emStrong(t,i,l)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.codespan(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.br(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.del(t)){t=t.substring(p.raw.length),r.push(p);continue}if(p=this.tokenizer.autolink(t)){t=t.substring(p.raw.length),r.push(p);continue}if(!this.state.inLink&&(p=this.tokenizer.url(t))){t=t.substring(p.raw.length),r.push(p);continue}let b=t;if((g=this.options.extensions)!=null&&g.startInline){let x=1/0,d=t.slice(1),w;this.options.extensions.startInline.forEach(h=>{w=h.call({lexer:this},d),typeof w=="number"&&w>=0&&(x=Math.min(x,w))}),x<1/0&&x>=0&&(b=t.substring(0,x+1))}if(p=this.tokenizer.inlineText(b)){t=t.substring(p.raw.length),p.raw.slice(-1)!=="_"&&(l=p.raw.slice(-1)),a=!0;let x=r.at(-1);(x==null?void 0:x.type)==="text"?(x.raw+=p.raw,x.text+=p.text):r.push(p);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}},Ea=class{constructor(t){ve(this,"options");ve(this,"parser");this.options=t||Kn}space(t){return""}code({text:t,lang:r,escaped:i}){var l;let s=(l=(r||"").match(Rt.notSpaceStart))==null?void 0:l[0],a=t.replace(Rt.endingNewline,"")+`
130
- `;return s?'<pre><code class="language-'+Sr(s)+'">'+(i?a:Sr(a,!0))+`</code></pre>
131
- `:"<pre><code>"+(i?a:Sr(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,h,f;let n=t,o=null;if(this.tokens.links){let g=Object.keys(this.tokens.links);if(g.length>0)for(;(o=this.tokenizer.rules.inline.reflinkSearch.exec(n))!=null;)g.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 g;if((h=(p=this.options.extensions)==null?void 0:p.inline)!=null&&h.some(S=>(g=S.call({lexer:this},t,r))?(t=t.substring(g.raw.length),r.push(g),!0):!1))continue;if(g=this.tokenizer.escape(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.tag(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.link(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.reflink(t,this.tokens.links)){t=t.substring(g.raw.length);let S=r.at(-1);g.type==="text"&&(S==null?void 0:S.type)==="text"?(S.raw+=g.raw,S.text+=g.text):r.push(g);continue}if(g=this.tokenizer.emStrong(t,n,l)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.codespan(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.br(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.del(t)){t=t.substring(g.raw.length),r.push(g);continue}if(g=this.tokenizer.autolink(t)){t=t.substring(g.raw.length),r.push(g);continue}if(!this.state.inLink&&(g=this.tokenizer.url(t))){t=t.substring(g.raw.length),r.push(g);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(g=this.tokenizer.inlineText(b)){t=t.substring(g.raw.length),g.raw.slice(-1)!=="_"&&(l=g.raw.slice(-1)),a=!0;let S=r.at(-1);(S==null?void 0:S.type)==="text"?(S.raw+=g.raw,S.text+=g.text):r.push(g);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}},fc=class{constructor(t){Ae(this,"options");Ae(this,"parser");this.options=t||$i}space(t){return""}code({text:t,lang:r,escaped:n}){var l;let o=(l=(r||"").match(Yt.notSpaceStart))==null?void 0:l[0],a=t.replace(Yt.endingNewline,"")+`
174
+ `;return o?'<pre><code class="language-'+Qr(o)+'">'+(n?a:Qr(a,!0))+`</code></pre>
175
+ `:"<pre><code>"+(n?a:Qr(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",l=r&&i!==1?' start="'+i+'"':"";return"<"+a+l+`>
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+" "+Sr(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+" "+Qr(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 l=t.rows[a];i="";for(let c=0;c<l.length;c++)i+=this.tablecell(l[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>${Sr(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=am(t);if(a===null)return s;t=a;let l='<a href="'+t+'"';return r&&(l+=' title="'+Sr(r)+'"'),l+=">"+s+"</a>",l}image({href:t,title:r,text:i,tokens:s}){s&&(i=this.parser.parseInline(s,this.parser.textRenderer));let a=am(t);if(a===null)return Sr(i);t=a;let l=`<img src="${t}" alt="${i}"`;return r&&(l+=` title="${Sr(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Sr(t.text)}},pf=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""}},pr=class Sc{constructor(t){ve(this,"options");ve(this,"renderer");ve(this,"textRenderer");this.options=t||Kn,this.options.renderer=this.options.renderer||new Ea,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new pf}static parse(t,r){return new Sc(r).parse(t)}static parseInline(t,r){return new Sc(r).parseInline(t)}parse(t,r=!0){var s,a;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let v=c,m=this.options.extensions.renderers[v.type].call({parser:this},v);if(m!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(v.type)){i+=m||"";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 v=f,m=this.renderer.text(v);for(;l+1<t.length&&t[l+1].type==="text";)v=t[++l],m+=`
148
- `+this.renderer.text(v);r?i+=this.renderer.paragraph({type:"paragraph",raw:m,text:m,tokens:[{type:"text",raw:m,text:m,escaped:!0}]}):i+=m;continue}default:{let v='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return i}parseInline(t,r=this.renderer){var s,a;let i="";for(let l=0;l<t.length;l++){let c=t[l];if((a=(s=this.options.extensions)==null?void 0:s.renderers)!=null&&a[c.type]){let v=this.options.extensions.renderers[c.type].call({parser:this},c);if(v!==!1||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(c.type)){i+=v||"";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 v='Token with "'+f.type+'" type was not found.';if(this.options.silent)return console.error(v),"";throw new Error(v)}}}return i}},ia,ho=(ia=class{constructor(t){ve(this,"options");ve(this,"block");this.options=t||Kn}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?dr.lex:dr.lexInline}provideParser(){return this.block?pr.parse:pr.parseInline}},ve(ia,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),ve(ia,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),ia),Oy=class{constructor(...t){ve(this,"defaults",of());ve(this,"options",this.setOptions);ve(this,"parse",this.parseMarkdown(!0));ve(this,"parseInline",this.parseMarkdown(!1));ve(this,"Parser",pr);ve(this,"Renderer",Ea);ve(this,"TextRenderer",pf);ve(this,"Lexer",dr);ve(this,"Tokenizer",Sa);ve(this,"Hooks",ho);this.use(...t)}walkTokens(t,r){var s,a;let i=[];for(let l of t)switch(i=i.concat(r.call(this,l)),l.type){case"table":{let c=l;for(let f of c.header)i=i.concat(this.walkTokens(f.tokens,r));for(let f of c.rows)for(let v of f)i=i.concat(this.walkTokens(v.tokens,r));break}case"list":{let c=l;i=i.concat(this.walkTokens(c.items,r));break}default:{let c=l;(a=(s=this.defaults.extensions)==null?void 0:s.childTokens)!=null&&a[c.type]?this.defaults.extensions.childTokens[c.type].forEach(f=>{let v=c[f].flat(1/0);i=i.concat(this.walkTokens(v,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 l=r.renderers[a.name];l?r.renderers[a.name]=function(...c){let f=a.renderer.apply(this,c);return f===!1&&(f=l.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 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)}),s.extensions=r),i.renderer){let a=this.defaults.renderer||new Ea(this.defaults);for(let l in i.renderer){if(!(l in a))throw new Error(`renderer '${l}' does not exist`);if(["options","parser"].includes(l))continue;let c=l,f=i.renderer[c],v=a[c];a[c]=(...m)=>{let g=f.apply(a,m);return g===!1&&(g=v.apply(a,m)),g||""}}s.renderer=a}if(i.tokenizer){let a=this.defaults.tokenizer||new Sa(this.defaults);for(let l in i.tokenizer){if(!(l in a))throw new Error(`tokenizer '${l}' does not exist`);if(["options","rules","lexer"].includes(l))continue;let c=l,f=i.tokenizer[c],v=a[c];a[c]=(...m)=>{let g=f.apply(a,m);return g===!1&&(g=v.apply(a,m)),g}}s.tokenizer=a}if(i.hooks){let a=this.defaults.hooks||new ho;for(let l in i.hooks){if(!(l in a))throw new Error(`hook '${l}' does not exist`);if(["options","block"].includes(l))continue;let c=l,f=i.hooks[c],v=a[c];ho.passThroughHooks.has(l)?a[c]=m=>{if(this.defaults.async&&ho.passThroughHooksRespectAsync.has(l))return(async()=>{let p=await f.call(a,m);return v.call(a,p)})();let g=f.call(a,m);return v.call(a,g)}:a[c]=(...m)=>{if(this.defaults.async)return(async()=>{let p=await f.apply(a,m);return p===!1&&(p=await v.apply(a,m)),p})();let g=f.apply(a,m);return g===!1&&(g=v.apply(a,m)),g}}s.hooks=a}if(i.walkTokens){let a=this.defaults.walkTokens,l=i.walkTokens;s.walkTokens=function(c){let f=[];return f.push(l.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 dr.lex(t,r??this.defaults)}parser(t,r){return pr.parse(t,r??this.defaults)}parseMarkdown(t){return(r,i)=>{let s={...i},a={...this.defaults,...s},l=this.onError(!!a.silent,!!a.async);if(this.defaults.async===!0&&s.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,f=await(a.hooks?await a.hooks.provideLexer():t?dr.lex:dr.lexInline)(c,a),v=a.hooks?await a.hooks.processAllTokens(f):f;a.walkTokens&&await Promise.all(this.walkTokens(v,a.walkTokens));let m=await(a.hooks?await a.hooks.provideParser():t?pr.parse:pr.parseInline)(v,a);return a.hooks?await a.hooks.postprocess(m):m})().catch(l);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?dr.lex:dr.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?pr.parse:pr.parseInline)(c,a);return a.hooks&&(f=a.hooks.postprocess(f)),f}catch(c){return l(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>"+Sr(i.message+"",!0)+"</pre>";return r?Promise.resolve(s):s}if(r)return Promise.reject(i);throw i}}},Bn=new Oy;function De(e,t){return Bn.parse(e,t)}De.options=De.setOptions=function(e){return Bn.setOptions(e),De.defaults=Bn.defaults,hy(De.defaults),De};De.getDefaults=of;De.defaults=Kn;De.use=function(...e){return Bn.use(...e),De.defaults=Bn.defaults,hy(De.defaults),De};De.walkTokens=function(e,t){return Bn.walkTokens(e,t)};De.parseInline=Bn.parseInline;De.Parser=pr;De.parser=pr.parse;De.Renderer=Ea;De.TextRenderer=pf;De.Lexer=dr;De.lexer=dr.lex;De.Tokenizer=Sa;De.Hooks=ho;De.parse=De;De.options;De.setOptions;De.use;De.walkTokens;De.parseInline;pr.parse;dr.lex;const zk={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ay=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,Wk=RegExp(Ay.source),cm=(e="")=>Wk.test(e)?e.replace(Ay,t=>zk[t]||"'"):e,fm=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var Uk=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 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(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((v,m)=>this.renderer.tableCell(this.parseInline(v.tokens),{header:!0,align:r.align[m]}));this.renderer.elIdList.pop();const a=this.renderer.tableRow(s),l=this.renderer.tableHeader(a);this.renderer.elIdList.push(0);const c=i.rows.map(v=>{this.renderer.elIdList.push(0);const m=v.map((g,p)=>this.renderer.tableCell(this.parseInline(g.tokens),{header:!1,align:r.align[p]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(m)});this.renderer.elIdList.pop();const f=this.renderer.tableBody(c);return this.renderer.table([l,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(cm(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(cm(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}},Bk=Uk,cn,ze,nt,Ec,Wm,Hk=(Wm=class{constructor(e={}){xt(this,ze);ve(this,"elIdList",[]);xt(this,cn);const{renderer:t}=e;Qe(this,cn,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(...l){return $e(this,ze,Ec).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return $e(this,ze,nt).call(this,`h${t}`,e)}paragraph(e){return $e(this,ze,nt).call(this,"p",e)}link(e,t){const r=fm(e,re(this,cn).baseURL),i=re(this,cn).openLinksInNewTab?"_blank":null;return $e(this,ze,nt).call(this,"a",t,{href:r,target:i})}image(e,t,r=null){const i=fm(e,re(this,cn).baseURL);return $e(this,ze,nt).call(this,"img",null,{src:i,alt:t,title:r})}codespan(e,t=null){const r=t?`${re(this,cn).langPrefix}${t}`:null;return $e(this,ze,nt).call(this,"code",e,{className:r})}code(e,t){return $e(this,ze,nt).call(this,"pre",this.codespan(e,t))}blockquote(e){return $e(this,ze,nt).call(this,"blockquote",e)}list(e,t,r){return $e(this,ze,nt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return $e(this,ze,nt).call(this,"li",e)}checkbox(e){return $e(this,ze,nt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return $e(this,ze,nt).call(this,"table",e)}tableHeader(e){return $e(this,ze,nt).call(this,"thead",e)}tableBody(e){return $e(this,ze,nt).call(this,"tbody",e)}tableRow(e){return $e(this,ze,nt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return $e(this,ze,nt).call(this,r,e,{align:t.align})}strong(e){return $e(this,ze,nt).call(this,"strong",e)}em(e){return $e(this,ze,nt).call(this,"em",e)}del(e){return $e(this,ze,nt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return $e(this,ze,nt).call(this,"hr")}br(){return $e(this,ze,nt).call(this,"br")}},cn=new WeakMap,ze=new WeakSet,nt=function(e,t=null,r={}){const i={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return $e(this,ze,Ec).call(this),W.createElement(e,{...r,...i},t)},Ec=function(){this.elIdList[this.elIdList.length-1]+=1},Wm),qk=Hk;const Zk=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}`)},Gk={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},Kk=new Oy,Vk=e=>{Zk(e);const t={...Gk,...e},r=t.instance??Kk,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),l={renderer:new qk({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new Bk(l),f=t.isInline?c.parseInline(a):c.parse(a);return W.createElement(W.Fragment,null,f)};var Yk=Vk,Xk=Yk;const Jk=({children:e,label:t,placement:r="top",className:i,isDisabled:s,container:a})=>{const[l,c]=W.useState(null),f=W.useRef(null),[v,m]=W.useState(null),[g,p]=W.useState(!1),{styles:b,attributes:x}=ev(l,v,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),d=W.Children.map(e,w=>W.isValidElement(w)?W.cloneElement(w,{ref:c,onMouseEnter:()=>p(!0),onMouseLeave:()=>{f.current=setTimeout(()=>p(!1),50)}}):w);return s?M.jsx(M.Fragment,{children:d}):M.jsxs(M.Fragment,{children:[d,g&&t&&Do.createPortal(M.jsx("div",{ref:m,style:b.popper,...x.popper,className:We("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),p(!0)},onMouseLeave:()=>p(!1),children:M.jsx(Xk,{openLinksInNewTab:!0,children:t})}),a||document.body)]})},Qk=uc.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>${Qr(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=l0(t);if(a===null)return o;t=a;let l='<a href="'+t+'"';return r&&(l+=' title="'+Qr(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=l0(t);if(a===null)return Qr(n);t=a;let l=`<img src="${t}" alt="${n}"`;return r&&(l+=` title="${Qr(r)}"`),l+=">",l}text(t){return"tokens"in t&&t.tokens?this.parser.parseInline(t.tokens):"escaped"in t&&t.escaped?t.text:Qr(t.text)}},yp=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},Wr=class Of{constructor(t){Ae(this,"options");Ae(this,"renderer");Ae(this,"textRenderer");this.options=t||$i,this.options.renderer=this.options.renderer||new fc,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yp}static parse(t,r){return new Of(r).parse(t)}static parseInline(t,r){return new Of(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,h=this.options.extensions.renderers[p.type].call({parser:this},p);if(h!==!1||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(p.type)){n+=h||"";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,h=this.renderer.text(p);for(;l+1<t.length&&t[l+1].type==="text";)p=t[++l],h+=`
192
+ `+this.renderer.text(p);r?n+=this.renderer.paragraph({type:"paragraph",raw:h,text:h,tokens:[{type:"text",raw:h,text:h,escaped:!0}]}):n+=h;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}},zl,Pa=(zl=class{constructor(t){Ae(this,"options");Ae(this,"block");this.options=t||$i}preprocess(t){return t}postprocess(t){return t}processAllTokens(t){return t}emStrongMask(t){return t}provideLexer(){return this.block?Br.lex:Br.lexInline}provideParser(){return this.block?Wr.parse:Wr.parseInline}},Ae(zl,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),Ae(zl,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),zl),_x=class{constructor(...t){Ae(this,"defaults",dp());Ae(this,"options",this.setOptions);Ae(this,"parse",this.parseMarkdown(!0));Ae(this,"parseInline",this.parseMarkdown(!1));Ae(this,"Parser",Wr);Ae(this,"Renderer",fc);Ae(this,"TextRenderer",yp);Ae(this,"Lexer",Br);Ae(this,"Tokenizer",dc);Ae(this,"Hooks",Pa);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 fc(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]=(...h)=>{let f=u.apply(a,h);return f===!1&&(f=p.apply(a,h)),f||""}}o.renderer=a}if(n.tokenizer){let a=this.defaults.tokenizer||new dc(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]=(...h)=>{let f=u.apply(a,h);return f===!1&&(f=p.apply(a,h)),f}}o.tokenizer=a}if(n.hooks){let a=this.defaults.hooks||new Pa;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];Pa.passThroughHooks.has(l)?a[c]=h=>{if(this.defaults.async&&Pa.passThroughHooksRespectAsync.has(l))return(async()=>{let g=await u.call(a,h);return p.call(a,g)})();let f=u.call(a,h);return p.call(a,f)}:a[c]=(...h)=>{if(this.defaults.async)return(async()=>{let g=await u.apply(a,h);return g===!1&&(g=await p.apply(a,h)),g})();let f=u.apply(a,h);return f===!1&&(f=p.apply(a,h)),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 Br.lex(t,r??this.defaults)}parser(t,r){return Wr.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?Br.lex:Br.lexInline)(c,a),p=a.hooks?await a.hooks.processAllTokens(u):u;a.walkTokens&&await Promise.all(this.walkTokens(p,a.walkTokens));let h=await(a.hooks?await a.hooks.provideParser():t?Wr.parse:Wr.parseInline)(p,a);return a.hooks?await a.hooks.postprocess(h):h})().catch(l);try{a.hooks&&(r=a.hooks.preprocess(r));let c=(a.hooks?a.hooks.provideLexer():t?Br.lex:Br.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?Wr.parse:Wr.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>"+Qr(n.message+"",!0)+"</pre>";return r?Promise.resolve(o):o}if(r)return Promise.reject(n);throw n}}},Ni=new _x;function Qe(e,t){return Ni.parse(e,t)}Qe.options=Qe.setOptions=function(e){return Ni.setOptions(e),Qe.defaults=Ni.defaults,fx(Qe.defaults),Qe};Qe.getDefaults=dp;Qe.defaults=$i;Qe.use=function(...e){return Ni.use(...e),Qe.defaults=Ni.defaults,fx(Qe.defaults),Qe};Qe.walkTokens=function(e,t){return Ni.walkTokens(e,t)};Qe.parseInline=Ni.parseInline;Qe.Parser=Wr;Qe.parser=Wr.parse;Qe.Renderer=fc;Qe.TextRenderer=yp;Qe.Lexer=Br;Qe.lexer=Br.lex;Qe.Tokenizer=dc;Qe.Hooks=Pa;Qe.parse=Qe;Qe.options;Qe.setOptions;Qe.use;Qe.walkTokens;Qe.parseInline;Wr.parse;Br.lex;const B5={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},Ex=/&(?:amp|lt|gt|quot|#(?:0+)?39);/g,W5=RegExp(Ex.source),d0=(e="")=>W5.test(e)?e.replace(Ex,t=>B5[t]||"'"):e,f0=(e,t)=>{if(!t)return e;try{return new URL(e,t).href}catch{return e}};var U5=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,h)=>this.renderer.tableCell(this.parseInline(p.tokens),{header:!0,align:r.align[h]}));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 h=p.map((f,g)=>this.renderer.tableCell(this.parseInline(f.tokens),{header:!1,align:r.align[g]}));return this.renderer.elIdList.pop(),this.renderer.tableRow(h)});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(d0(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(d0(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}},q5=U5,Zn,nt,bt,Af,q0,V5=(q0=class{constructor(e={}){Wt(this,nt);Ae(this,"elIdList",[]);Wt(this,Zn);const{renderer:t}=e;gt(this,Zn,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 We(this,nt,Af).call(this),a.apply(this,l)},writable:!0,enumerable:!0,configurable:!0})})}get elementId(){return this.elIdList.join("-")}heading(e,t){return We(this,nt,bt).call(this,`h${t}`,e)}paragraph(e){return We(this,nt,bt).call(this,"p",e)}link(e,t){const r=f0(e,he(this,Zn).baseURL),n=he(this,Zn).openLinksInNewTab?"_blank":null;return We(this,nt,bt).call(this,"a",t,{href:r,target:n})}image(e,t,r=null){const n=f0(e,he(this,Zn).baseURL);return We(this,nt,bt).call(this,"img",null,{src:n,alt:t,title:r})}codespan(e,t=null){const r=t?`${he(this,Zn).langPrefix}${t}`:null;return We(this,nt,bt).call(this,"code",e,{className:r})}code(e,t){return We(this,nt,bt).call(this,"pre",this.codespan(e,t))}blockquote(e){return We(this,nt,bt).call(this,"blockquote",e)}list(e,t,r){return We(this,nt,bt).call(this,t?"ol":"ul",e,t&&r!==1?{start:r}:{})}listItem(e){return We(this,nt,bt).call(this,"li",e)}checkbox(e){return We(this,nt,bt).call(this,"input",null,{type:"checkbox",disabled:!0,checked:e})}table(e){return We(this,nt,bt).call(this,"table",e)}tableHeader(e){return We(this,nt,bt).call(this,"thead",e)}tableBody(e){return We(this,nt,bt).call(this,"tbody",e)}tableRow(e){return We(this,nt,bt).call(this,"tr",e)}tableCell(e,t){const r=t.header?"th":"td";return We(this,nt,bt).call(this,r,e,{align:t.align})}strong(e){return We(this,nt,bt).call(this,"strong",e)}em(e){return We(this,nt,bt).call(this,"em",e)}del(e){return We(this,nt,bt).call(this,"del",e)}text(e){return e}html(e){return e}hr(){return We(this,nt,bt).call(this,"hr")}br(){return We(this,nt,bt).call(this,"br")}},Zn=new WeakMap,nt=new WeakSet,bt=function(e,t=null,r={}){const n={key:`marked-react-${this.elementId}`,suppressHydrationWarning:!0};return We(this,nt,Af).call(this),z.createElement(e,{...r,...n},t)},Af=function(){this.elIdList[this.elIdList.length-1]+=1},q0),G5=V5;const K5=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}`)},Z5={isInline:!1,breaks:!1,gfm:!0,baseURL:void 0,openLinksInNewTab:!0,langPrefix:"language-",renderer:void 0},Y5=new _x,X5=e=>{K5(e);const t={...Z5,...e},r=t.instance??Y5,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 G5({renderer:t.renderer,baseURL:t.baseURL,openLinksInNewTab:t.openLinksInNewTab,langPrefix:t.langPrefix})},c=new q5(l),u=t.isInline?c.parseInline(a):c.parse(a);return z.createElement(z.Fragment,null,u)};var J5=X5,Q5=J5;const e$=({children:e,label:t,placement:r="top",className:n,isDisabled:o,container:a})=>{const[l,c]=z.useState(null),u=z.useRef(null),[p,h]=z.useState(null),[f,g]=z.useState(!1),{styles:b,attributes:S}=Kf(l,p,{placement:r,modifiers:[{name:"offset",options:{offset:[0,8]}},{name:"preventOverflow",options:{rootBoundary:"viewport",padding:8}}]}),v=z.Children.map(e,y=>z.isValidElement(y)?z.cloneElement(y,{ref:c,onMouseEnter:()=>g(!0),onMouseLeave:()=>{u.current=setTimeout(()=>g(!1),50)}}):y);return o?A.jsx(A.Fragment,{children:v}):A.jsxs(A.Fragment,{children:[v,f&&t&&ti.createPortal(A.jsx("div",{ref:h,style:b.popper,...S.popper,className:tt("z-10 select-none rounded bg-purple-200 font-poppins font-medium text-s px-2 py-0.5 text-purple-900 shadow-md",n),onMouseEnter:()=>{u.current&&clearTimeout(u.current),g(!0)},onMouseLeave:()=>g(!1),children:typeof t=="string"?A.jsx(Q5,{openLinksInNewTab:!0,children:t}):t}),a||document.body)]})},t$=({referenceElement:e,label:t})=>{const[r,n]=z.useState(null),{styles:o,attributes:a}=Kf(e,r,{placement:"bottom",modifiers:[{name:"offset",options:{offset:[0,5]}},{name:"preventOverflow",options:{rootBoundary:"viewport"}}]});return A.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:n,style:o.popper,...a.popper,children:t})},r$=lf.keyframes`
150
194
  to {
151
195
  fill: url(#d);
152
196
  stroke-dashoffset: 0;
153
197
  }
154
- `,Ty=va.svg`
198
+ `,kx=lc.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: ${Qk} 1.5s ease-in-out infinite alternate-reverse;
209
+ animation: ${r$} 1.5s ease-in-out infinite alternate-reverse;
166
210
  }
167
211
 
168
212
  & #circle {
@@ -172,37 +216,40 @@ 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
- `,e$=({message:e,version:t})=>M.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-white",children:M.jsxs("div",{className:"flex flex-col text-center",children:[M.jsx("div",{className:"relative mr-4 self-center",children:M.jsx("div",{className:"flex items-center justify-center rounded",children:M.jsxs(Ty,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[M.jsx("defs",{children:M.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[M.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:M.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),M.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:M.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),M.jsx("g",{id:"a"}),M.jsx("g",{id:"b",children:M.jsx("g",{id:"c",children:M.jsxs("g",{children:[M.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"}),M.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"})]})})})]})})}),M.jsxs("div",{children:[M.jsx("span",{className:"text-xs text-grey-200",children:t}),M.jsx("h2",{className:"text-lg text-grey-100",children:e})]})]})});var go={exports:{}};/**
219
+ `,n$=({message:e,version:t})=>A.jsx("div",{className:"absolute inset-0 flex h-screen w-screen flex-col items-center justify-center bg-fd-gray-default text-body",children:A.jsxs("div",{className:"flex flex-col text-center",children:[A.jsx("div",{className:"relative mr-4 self-center",children:A.jsx("div",{className:"flex items-center justify-center rounded",children:A.jsxs(kx,{className:"h-60 w-60",viewBox:"0 0 143.14 136.27",children:[A.jsx("defs",{children:A.jsxs("linearGradient",{id:"d",x1:"50%",y1:"0%",x2:"50%",y2:"100%",children:[A.jsx("stop",{offset:"0%",stopColor:"#2743a6",children:A.jsx("animate",{attributeName:"stop-color",values:"#ffa4c0; #2743a6;",dur:"6s",repeatCount:"indefinite"})}),A.jsx("stop",{offset:"100%",stopColor:"#ffa4c0",children:A.jsx("animate",{attributeName:"stop-color",values:"#2743a6; #ffa4c0;",dur:"2ds",repeatCount:"indefinite"})})]})}),A.jsx("g",{id:"a"}),A.jsx("g",{id:"b",children:A.jsx("g",{id:"c",children:A.jsxs("g",{children:[A.jsx("path",{id:"tail",className:"e",d:"M134.13,79.9l.25-1.2h-21.87l-.21,.7c-.03,.08-2.41,7.72-7.11,14.56-5.87,8.54-12.57,12.63-12.63,12.67l-1,.6,24.25,28.96h27.33l-22.61-26.46c2.2-2.67,10.06-13.09,13.6-29.83Z"}),A.jsx("path",{id:"circle",className:"f",d:"M83.08,113.64l18.93,22.6-33.68,.03-11.17-.03c-9.38,.01-18.55-2.45-26.56-7.11-2.94-1.71-5.72-3.71-8.29-6-8.79-7.8-17.6-19.72-20.92-37.37-.01-.02-.02-.03-.03-.05v-.09c-1.68-9.04-1.93-19.58,0-31.84C8.57,21.67,36.68-.66,69.93,.02c12.81,.27,25.06,4.28,35.59,11.48,.31,.2,.62,.41,.92,.62,.25,.18,.5,.35,.74,.53,8.82,6.31,16.06,14.69,21.02,24.42,.17,.33,.34,.65,.5,.98,.1,.21,.2,.41,.3,.61,4.35,8.92,6.63,18.54,6.54,28.06,0,.36,.02,.71,.02,1.06,0,.82-.03,1.62-.06,2.43h-22c.04-.81,.06-1.61,.06-2.43,0-1.52-.08-3.02-.23-4.5-2.68-22.17-21.26-39.86-43.98-40.63-4.43-.15-8.75,.29-12.88,1.28-.02,0-.04,.01-.05,.01-.48,.12-.95,.24-1.42,.38-.97,.26-1.94,.56-2.89,.9-.23,.07-.46,.15-.69,.24-6.2,2.27-11.84,5.87-16.59,10.67-8.99,9.09-13.84,21.44-13.3,33.9,0,19.98,17.86,39.48,35.59,42.56,6.4,1.37,24.04,1.24,25.96,1.05Z"})]})})})]})})}),A.jsxs("div",{children:[A.jsx("span",{className:"text-xs text-inactive-text",children:t}),A.jsx("h2",{className:"text-lg text-muted",children:e})]})]})});var i$=Object.defineProperty,o$=(e,t,r)=>t in e?i$(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qd=(e,t,r)=>(o$(e,typeof t!="symbol"?t+"":t,r),r);let a$=class{constructor(){qd(this,"current",this.detect()),qd(this,"handoffState","pending"),qd(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"}},Jl=new a$,Ya=(e,t)=>{Jl.isServer?z.useEffect(e,t):z.useLayoutEffect(e,t)};function yo(e){let t=z.useRef(e);return Ya(()=>{t.current=e},[e]),t}let An=function(e){let t=yo(e);return z.useCallback((...r)=>t.current(...r),[t])};function s$(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function ps(){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 s$(()=>{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=ps();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 Ox(){let[e]=z.useState(ps);return z.useEffect(()=>()=>e.dispose(),[e]),e}function l$(){let e=typeof document>"u";return"useSyncExternalStore"in B?(t=>t.useSyncExternalStore)(B)(()=>()=>{},()=>!1,()=>!e):!1}function Ax(){let e=l$(),[t,r]=B.useState(Jl.isHandoffComplete);return t&&Jl.isHandoffComplete===!1&&r(!1),B.useEffect(()=>{t!==!0&&r(!0)},[t]),B.useEffect(()=>Jl.handoff(),[]),e?!1:t}function on(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,on),n}let c$=Symbol();function Tx(...e){let t=z.useRef(e);z.useEffect(()=>{t.current=e},[e]);let r=An(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[c$]))?void 0:r}function pc(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Rx=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Rx||{}),Jn=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(Jn||{});function Cx({ourProps:e,theirProps:t,slot:r,defaultTag:n,features:o,visible:a=!0,name:l,mergeRefs:c}){c=c??u$;let u=Px(t,e);if(a)return Nl(u,r,n,l,c);let p=o??0;if(p&2){let{static:h=!1,...f}=u;if(h)return Nl(f,r,n,l,c)}if(p&1){let{unmount:h=!0,...f}=u;return on(h?0:1,{0(){return null},1(){return Nl({...f,hidden:!0,style:{display:"none"}},r,n,l,c)}})}return Nl(u,r,n,l,c)}function Nl(e,t={},r,n,o){let{as:a=r,children:l,refName:c="ref",...u}=Vd(e,["unmount","static"]),p=e.ref!==void 0?{[c]:e.ref}:{},h=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 g=!1,b=[];for(let[S,v]of Object.entries(t))typeof v=="boolean"&&(g=!0),v===!0&&b.push(S);g&&(f["data-headlessui-state"]=b.join(" "))}if(a===z.Fragment&&Object.keys(p0(u)).length>0){if(!z.isValidElement(h)||Array.isArray(h)&&h.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 g=h.props,b=typeof(g==null?void 0:g.className)=="function"?(...v)=>pc(g==null?void 0:g.className(...v),u.className):pc(g==null?void 0:g.className,u.className),S=b?{className:b}:{};return z.cloneElement(h,Object.assign({},Px(h.props,p0(Vd(u,["ref"]))),f,p,{ref:o(h.ref,p.ref)},S))}return z.createElement(a,Object.assign({},Vd(u,["ref"]),a!==z.Fragment&&p,a!==z.Fragment&&f),h)}function u$(...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 Px(...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 wp(e){var t;return Object.assign(z.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function p0(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Vd(e,t=[]){let r=Object.assign({},e);for(let n of t)n in r&&delete r[n];return r}let xp=z.createContext(null);xp.displayName="OpenClosedContext";var kn=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(kn||{});function Ix(){return z.useContext(xp)}function d$({value:e,children:t}){return z.createElement(xp.Provider,{value:e},t)}function Sp(){let e=z.useRef(!1);return Ya(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function f$(e=0){let[t,r]=z.useState(e),n=Sp(),o=z.useCallback(u=>{n.current&&r(p=>p|u)},[t,n]),a=z.useCallback(u=>!!(t&u),[t]),l=z.useCallback(u=>{n.current&&r(p=>p&~u)},[r,n]),c=z.useCallback(u=>{n.current&&r(p=>p^u)},[r]);return{flags:t,addFlag:o,hasFlag:a,removeFlag:l,toggleFlag:c}}function p$(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function Gd(e,...t){e&&t.length>0&&e.classList.add(...t)}function Kd(e,...t){e&&t.length>0&&e.classList.remove(...t)}function h$(e,t){let r=ps();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(h=>h.includes("ms")?parseFloat(h):parseFloat(h)*1e3).sort((h,f)=>f-h);return p}),c=a+l;if(c!==0){r.group(p=>{p.setTimeout(()=>{t(),p.dispose()},c),p.addEventListener(e,"transitionrun",h=>{h.target===h.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 g$(e,t,r,n){let o=r?"enter":"leave",a=ps(),l=n!==void 0?p$(n):()=>{};o==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let c=on(o,{enter:()=>t.enter,leave:()=>t.leave}),u=on(o,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),p=on(o,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Kd(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),Gd(e,...t.base,...c,...p),a.nextFrame(()=>{Kd(e,...t.base,...c,...p),Gd(e,...t.base,...c,...u),h$(e,()=>(Kd(e,...t.base,...c),Gd(e,...t.base,...t.entered),l()))}),a.dispose}function v$({immediate:e,container:t,direction:r,classes:n,onStart:o,onStop:a}){let l=Sp(),c=Ox(),u=yo(r);Ya(()=>{e&&(u.current="enter")},[e]),Ya(()=>{let p=ps();c.add(p.dispose);let h=t.current;if(h&&u.current!=="idle"&&l.current)return p.dispose(),o.current(u.current),p.add(g$(h,n.current,u.current==="enter",()=>{p.dispose(),a.current(u.current)})),p.dispose},[r])}function Kn(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let Mc=z.createContext(null);Mc.displayName="TransitionContext";var m$=(e=>(e.Visible="visible",e.Hidden="hidden",e))(m$||{});function b$(){let e=z.useContext(Mc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function y$(){let e=z.useContext(Lc);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Lc=z.createContext(null);Lc.displayName="NestingContext";function $c(e){return"children"in e?$c(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Nx(e,t){let r=yo(e),n=z.useRef([]),o=Sp(),a=Ox(),l=An((b,S=Jn.Hidden)=>{let v=n.current.findIndex(({el:y})=>y===b);v!==-1&&(on(S,{[Jn.Unmount](){n.current.splice(v,1)},[Jn.Hidden](){n.current[v].state="hidden"}}),a.microTask(()=>{var y;!$c(n)&&o.current&&((y=r.current)==null||y.call(r))}))}),c=An(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,Jn.Unmount)}),u=z.useRef([]),p=z.useRef(Promise.resolve()),h=z.useRef({enter:[],leave:[],idle:[]}),f=An((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(h.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)}),g=An((b,S,v)=>{Promise.all(h.current[S].splice(0).map(([y,m])=>m)).then(()=>{var y;(y=u.current.shift())==null||y()}).then(()=>v(S))});return z.useMemo(()=>({children:n,register:c,unregister:l,onStart:f,onStop:g,wait:p,chains:h}),[c,l,n,f,g,h,p])}function w$(){}let x$=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function h0(e){var t;let r={};for(let n of x$)r[n]=(t=e[n])!=null?t:w$;return r}function S$(e){let t=z.useRef(h0(e));return z.useEffect(()=>{t.current=h0(e)},[e]),t}let _$="div",Dx=Rx.RenderStrategy;function E$(e,t){var r,n;let{beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c,enter:u,enterFrom:p,enterTo:h,entered:f,leave:g,leaveFrom:b,leaveTo:S,...v}=e,y=z.useRef(null),m=Tx(y,t),w=(r=v.unmount)==null||r?Jn.Unmount:Jn.Hidden,{show:x,appear:k,initial:E}=b$(),[R,F]=z.useState(x?"visible":"hidden"),P=y$(),{register:L,unregister:V}=P;z.useEffect(()=>L(y),[L,y]),z.useEffect(()=>{if(w===Jn.Hidden&&y.current){if(x&&R!=="visible"){F("visible");return}return on(R,{hidden:()=>V(y),visible:()=>L(y)})}},[R,y,L,V,x,w]);let $=yo({base:Kn(v.className),enter:Kn(u),enterFrom:Kn(p),enterTo:Kn(h),entered:Kn(f),leave:Kn(g),leaveFrom:Kn(b),leaveTo:Kn(S)}),I=S$({beforeEnter:o,afterEnter:a,beforeLeave:l,afterLeave:c}),j=Ax();z.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=f$(0),K=An(J=>on(J,{enter:()=>{X.addFlag(kn.Opening),I.current.beforeEnter()},leave:()=>{X.addFlag(kn.Closing),I.current.beforeLeave()},idle:()=>{}})),ge=An(J=>on(J,{enter:()=>{X.removeFlag(kn.Opening),I.current.afterEnter()},leave:()=>{X.removeFlag(kn.Closing),I.current.afterLeave()},idle:()=>{}})),D=Nx(()=>{F("hidden"),V(y)},P),U=z.useRef(!1);v$({immediate:N,container:y,classes:$,direction:Y,onStart:yo(J=>{U.current=!0,D.onStart(y,J,K)}),onStop:yo(J=>{U.current=!1,D.onStop(y,J,ge),J==="leave"&&!$c(D)&&(F("hidden"),V(y))})});let ee=v,te={ref:m};return N?ee={...ee,className:pc(v.className,...$.current.enter,...$.current.enterFrom)}:U.current&&(ee.className=pc(v.className,(n=y.current)==null?void 0:n.className),ee.className===""&&delete ee.className),z.createElement(Lc.Provider,{value:D},z.createElement(d$,{value:on(R,{visible:kn.Open,hidden:kn.Closed})|X.flags},Cx({ourProps:te,theirProps:ee,defaultTag:_$,features:Dx,visible:R==="visible",name:"Transition.Child"})))}function k$(e,t){let{show:r,appear:n=!1,unmount:o=!0,...a}=e,l=z.useRef(null),c=Tx(l,t);Ax();let u=Ix();if(r===void 0&&u!==null&&(r=(u&kn.Open)===kn.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[p,h]=z.useState(r?"visible":"hidden"),f=Nx(()=>{h("hidden")}),[g,b]=z.useState(!0),S=z.useRef([r]);Ya(()=>{g!==!1&&S.current[S.current.length-1]!==r&&(S.current.push(r),b(!1))},[S,r]);let v=z.useMemo(()=>({show:r,appear:n,initial:g}),[r,n,g]);z.useEffect(()=>{if(r)h("visible");else if(!$c(f))h("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&&h("hidden")}},[r,f]);let y={unmount:o},m=An(()=>{var x;g&&b(!1),(x=e.beforeEnter)==null||x.call(e)}),w=An(()=>{var x;g&&b(!1),(x=e.beforeLeave)==null||x.call(e)});return z.createElement(Lc.Provider,{value:f},z.createElement(Mc.Provider,{value:v},Cx({ourProps:{...y,as:z.Fragment,children:z.createElement(Mx,{ref:c,...y,...a,beforeEnter:m,beforeLeave:w})},theirProps:{},defaultTag:z.Fragment,features:Dx,visible:p==="visible",name:"Transition"})))}function O$(e,t){let r=z.useContext(Mc)!==null,n=Ix()!==null;return z.createElement(z.Fragment,null,!r&&n?z.createElement(Tf,{ref:t,...e}):z.createElement(Mx,{ref:t,...e}))}let Tf=wp(k$),Mx=wp(E$),A$=wp(O$),hc=Object.assign(Tf,{Child:A$,Root:Tf});var Ia={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 t$=go.exports,dm;function r$(){return dm||(dm=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.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",f="__lodash_hash_undefined__",v=500,m="__lodash_placeholder__",g=1,p=2,b=4,x=1,d=2,w=1,h=2,S=4,E=8,R=16,O=32,k=64,U=128,F=256,D=512,G=30,j="...",L=800,B=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",h],["curry",E],["curryRight",R],["flip",D],["partial",O],["partialRight",k],["rearg",F]],ce="[object Arguments]",fe="[object Array]",ye="[object AsyncFunction]",me="[object Boolean]",Ee="[object Date]",Ae="[object DOMException]",Ze="[object Error]",ie="[object Function]",vt="[object GeneratorFunction]",lt="[object Map]",mr="[object Number]",Zo="[object Null]",Gt="[object Object]",Go="[object Promise]",Va="[object Proxy]",Mt="[object RegExp]",yt="[object Set]",Kr="[object String]",wn="[object Symbol]",Ai="[object Undefined]",Vr="[object WeakMap]",Ko="[object WeakSet]",Yr="[object ArrayBuffer]",$r="[object DataView]",Ya="[object Float32Array]",Xa="[object Float64Array]",Ja="[object Int8Array]",Qa="[object Int16Array]",eu="[object Int32Array]",tu="[object Uint8Array]",ru="[object Uint8ClampedArray]",nu="[object Uint16Array]",iu="[object Uint32Array]",U0=/\b__p \+= '';/g,B0=/\b(__p \+=) '' \+/g,H0=/(__e\(.*?\)|\b__t\)) \+\n'';/g,If=/&(?:amp|lt|gt|quot|#39);/g,Lf=/[&<>"']/g,q0=RegExp(If.source),Z0=RegExp(Lf.source),G0=/<%-([\s\S]+?)%>/g,K0=/<%([\s\S]+?)%>/g,Mf=/<%=([\s\S]+?)%>/g,V0=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Y0=/^\w*$/,X0=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ou=/[\\^$.*+?()[\]{}|]/g,J0=RegExp(ou.source),su=/^\s+/,Q0=/\s/,eb=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,tb=/\{\n\/\* \[wrapped with (.+)\] \*/,rb=/,? & /,nb=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ib=/[()=,{}\[\]\/\s]/,ob=/\\(\\)?/g,sb=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ff=/\w*$/,ab=/^[-+]0x[0-9a-f]+$/i,ub=/^0b[01]+$/i,lb=/^\[object .+?Constructor\]$/,cb=/^0o[0-7]+$/i,fb=/^(?:0|[1-9]\d*)$/,db=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Vo=/($^)/,pb=/['\n\r\u2028\u2029\\]/g,Yo="\\ud800-\\udfff",hb="\\u0300-\\u036f",gb="\\ufe20-\\ufe2f",mb="\\u20d0-\\u20ff",Df=hb+gb+mb,Nf="\\u2700-\\u27bf",jf="a-z\\xdf-\\xf6\\xf8-\\xff",vb="\\xac\\xb1\\xd7\\xf7",yb="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",bb="\\u2000-\\u206f",wb=" \\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",zf="A-Z\\xc0-\\xd6\\xd8-\\xde",Wf="\\ufe0e\\ufe0f",Uf=vb+yb+bb+wb,au="['’]",xb="["+Yo+"]",Bf="["+Uf+"]",Xo="["+Df+"]",Hf="\\d+",Sb="["+Nf+"]",qf="["+jf+"]",Zf="[^"+Yo+Uf+Hf+Nf+jf+zf+"]",uu="\\ud83c[\\udffb-\\udfff]",Eb="(?:"+Xo+"|"+uu+")",Gf="[^"+Yo+"]",lu="(?:\\ud83c[\\udde6-\\uddff]){2}",cu="[\\ud800-\\udbff][\\udc00-\\udfff]",Vn="["+zf+"]",Kf="\\u200d",Vf="(?:"+qf+"|"+Zf+")",_b="(?:"+Vn+"|"+Zf+")",Yf="(?:"+au+"(?:d|ll|m|re|s|t|ve))?",Xf="(?:"+au+"(?:D|LL|M|RE|S|T|VE))?",Jf=Eb+"?",Qf="["+Wf+"]?",Ob="(?:"+Kf+"(?:"+[Gf,lu,cu].join("|")+")"+Qf+Jf+")*",Ab="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Tb="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ed=Qf+Jf+Ob,Rb="(?:"+[Sb,lu,cu].join("|")+")"+ed,Pb="(?:"+[Gf+Xo+"?",Xo,lu,cu,xb].join("|")+")",Cb=RegExp(au,"g"),kb=RegExp(Xo,"g"),fu=RegExp(uu+"(?="+uu+")|"+Pb+ed,"g"),$b=RegExp([Vn+"?"+qf+"+"+Yf+"(?="+[Bf,Vn,"$"].join("|")+")",_b+"+"+Xf+"(?="+[Bf,Vn+Vf,"$"].join("|")+")",Vn+"?"+Vf+"+"+Yf,Vn+"+"+Xf,Tb,Ab,Hf,Rb].join("|"),"g"),Ib=RegExp("["+Kf+Yo+Df+Wf+"]"),Lb=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Mb=["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"],Fb=-1,Ue={};Ue[Ya]=Ue[Xa]=Ue[Ja]=Ue[Qa]=Ue[eu]=Ue[tu]=Ue[ru]=Ue[nu]=Ue[iu]=!0,Ue[ce]=Ue[fe]=Ue[Yr]=Ue[me]=Ue[$r]=Ue[Ee]=Ue[Ze]=Ue[ie]=Ue[lt]=Ue[mr]=Ue[Gt]=Ue[Mt]=Ue[yt]=Ue[Kr]=Ue[Vr]=!1;var je={};je[ce]=je[fe]=je[Yr]=je[$r]=je[me]=je[Ee]=je[Ya]=je[Xa]=je[Ja]=je[Qa]=je[eu]=je[lt]=je[mr]=je[Gt]=je[Mt]=je[yt]=je[Kr]=je[wn]=je[tu]=je[ru]=je[nu]=je[iu]=!0,je[Ze]=je[ie]=je[Vr]=!1;var Db={À:"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"},Nb={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},jb={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},zb={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Wb=parseFloat,Ub=parseInt,td=typeof Ns=="object"&&Ns&&Ns.Object===Object&&Ns,Bb=typeof self=="object"&&self&&self.Object===Object&&self,dt=td||Bb||Function("return this")(),du=t&&!t.nodeType&&t,xn=du&&!0&&e&&!e.nodeType&&e,rd=xn&&xn.exports===du,pu=rd&&td.process,Kt=(function(){try{var N=xn&&xn.require&&xn.require("util").types;return N||pu&&pu.binding&&pu.binding("util")}catch{}})(),nd=Kt&&Kt.isArrayBuffer,id=Kt&&Kt.isDate,od=Kt&&Kt.isMap,sd=Kt&&Kt.isRegExp,ad=Kt&&Kt.isSet,ud=Kt&&Kt.isTypedArray;function Ft(N,K,H){switch(H.length){case 0:return N.call(K);case 1:return N.call(K,H[0]);case 2:return N.call(K,H[0],H[1]);case 3:return N.call(K,H[0],H[1],H[2])}return N.apply(K,H)}function Hb(N,K,H,ae){for(var be=-1,Pe=N==null?0:N.length;++be<Pe;){var st=N[be];K(ae,st,H(st),N)}return ae}function Vt(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae&&K(N[H],H,N)!==!1;);return N}function qb(N,K){for(var H=N==null?0:N.length;H--&&K(N[H],H,N)!==!1;);return N}function ld(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae;)if(!K(N[H],H,N))return!1;return!0}function Xr(N,K){for(var H=-1,ae=N==null?0:N.length,be=0,Pe=[];++H<ae;){var st=N[H];K(st,H,N)&&(Pe[be++]=st)}return Pe}function Jo(N,K){var H=N==null?0:N.length;return!!H&&Yn(N,K,0)>-1}function hu(N,K,H){for(var ae=-1,be=N==null?0:N.length;++ae<be;)if(H(K,N[ae]))return!0;return!1}function Be(N,K){for(var H=-1,ae=N==null?0:N.length,be=Array(ae);++H<ae;)be[H]=K(N[H],H,N);return be}function Jr(N,K){for(var H=-1,ae=K.length,be=N.length;++H<ae;)N[be+H]=K[H];return N}function gu(N,K,H,ae){var be=-1,Pe=N==null?0:N.length;for(ae&&Pe&&(H=N[++be]);++be<Pe;)H=K(H,N[be],be,N);return H}function Zb(N,K,H,ae){var be=N==null?0:N.length;for(ae&&be&&(H=N[--be]);be--;)H=K(H,N[be],be,N);return H}function mu(N,K){for(var H=-1,ae=N==null?0:N.length;++H<ae;)if(K(N[H],H,N))return!0;return!1}var Gb=vu("length");function Kb(N){return N.split("")}function Vb(N){return N.match(nb)||[]}function cd(N,K,H){var ae;return H(N,function(be,Pe,st){if(K(be,Pe,st))return ae=Pe,!1}),ae}function Qo(N,K,H,ae){for(var be=N.length,Pe=H+(ae?1:-1);ae?Pe--:++Pe<be;)if(K(N[Pe],Pe,N))return Pe;return-1}function Yn(N,K,H){return K===K?aw(N,K,H):Qo(N,fd,H)}function Yb(N,K,H,ae){for(var be=H-1,Pe=N.length;++be<Pe;)if(ae(N[be],K))return be;return-1}function fd(N){return N!==N}function dd(N,K){var H=N==null?0:N.length;return H?bu(N,K)/H:Z}function vu(N){return function(K){return K==null?r:K[N]}}function yu(N){return function(K){return N==null?r:N[K]}}function pd(N,K,H,ae,be){return be(N,function(Pe,st,Ne){H=ae?(ae=!1,Pe):K(H,Pe,st,Ne)}),H}function Xb(N,K){var H=N.length;for(N.sort(K);H--;)N[H]=N[H].value;return N}function bu(N,K){for(var H,ae=-1,be=N.length;++ae<be;){var Pe=K(N[ae]);Pe!==r&&(H=H===r?Pe:H+Pe)}return H}function wu(N,K){for(var H=-1,ae=Array(N);++H<N;)ae[H]=K(H);return ae}function Jb(N,K){return Be(K,function(H){return[H,N[H]]})}function hd(N){return N&&N.slice(0,yd(N)+1).replace(su,"")}function Dt(N){return function(K){return N(K)}}function xu(N,K){return Be(K,function(H){return N[H]})}function Ti(N,K){return N.has(K)}function gd(N,K){for(var H=-1,ae=N.length;++H<ae&&Yn(K,N[H],0)>-1;);return H}function md(N,K){for(var H=N.length;H--&&Yn(K,N[H],0)>-1;);return H}function Qb(N,K){for(var H=N.length,ae=0;H--;)N[H]===K&&++ae;return ae}var ew=yu(Db),tw=yu(Nb);function rw(N){return"\\"+zb[N]}function nw(N,K){return N==null?r:N[K]}function Xn(N){return Ib.test(N)}function iw(N){return Lb.test(N)}function ow(N){for(var K,H=[];!(K=N.next()).done;)H.push(K.value);return H}function Su(N){var K=-1,H=Array(N.size);return N.forEach(function(ae,be){H[++K]=[be,ae]}),H}function vd(N,K){return function(H){return N(K(H))}}function Qr(N,K){for(var H=-1,ae=N.length,be=0,Pe=[];++H<ae;){var st=N[H];(st===K||st===m)&&(N[H]=m,Pe[be++]=H)}return Pe}function es(N){var K=-1,H=Array(N.size);return N.forEach(function(ae){H[++K]=ae}),H}function sw(N){var K=-1,H=Array(N.size);return N.forEach(function(ae){H[++K]=[ae,ae]}),H}function aw(N,K,H){for(var ae=H-1,be=N.length;++ae<be;)if(N[ae]===K)return ae;return-1}function uw(N,K,H){for(var ae=H+1;ae--;)if(N[ae]===K)return ae;return ae}function Jn(N){return Xn(N)?cw(N):Gb(N)}function ar(N){return Xn(N)?fw(N):Kb(N)}function yd(N){for(var K=N.length;K--&&Q0.test(N.charAt(K)););return K}var lw=yu(jb);function cw(N){for(var K=fu.lastIndex=0;fu.test(N);)++K;return K}function fw(N){return N.match(fu)||[]}function dw(N){return N.match($b)||[]}var pw=(function N(K){K=K==null?dt:Qn.defaults(dt.Object(),K,Qn.pick(dt,Mb));var H=K.Array,ae=K.Date,be=K.Error,Pe=K.Function,st=K.Math,Ne=K.Object,Eu=K.RegExp,hw=K.String,Yt=K.TypeError,ts=H.prototype,gw=Pe.prototype,ei=Ne.prototype,rs=K["__core-js_shared__"],ns=gw.toString,Fe=ei.hasOwnProperty,mw=0,bd=(function(){var n=/[^.]+$/.exec(rs&&rs.keys&&rs.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""})(),is=ei.toString,vw=ns.call(Ne),yw=dt._,bw=Eu("^"+ns.call(Fe).replace(ou,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),os=rd?K.Buffer:r,en=K.Symbol,ss=K.Uint8Array,wd=os?os.allocUnsafe:r,as=vd(Ne.getPrototypeOf,Ne),xd=Ne.create,Sd=ei.propertyIsEnumerable,us=ts.splice,Ed=en?en.isConcatSpreadable:r,Ri=en?en.iterator:r,Sn=en?en.toStringTag:r,ls=(function(){try{var n=Tn(Ne,"defineProperty");return n({},"",{}),n}catch{}})(),ww=K.clearTimeout!==dt.clearTimeout&&K.clearTimeout,xw=ae&&ae.now!==dt.Date.now&&ae.now,Sw=K.setTimeout!==dt.setTimeout&&K.setTimeout,cs=st.ceil,fs=st.floor,_u=Ne.getOwnPropertySymbols,Ew=os?os.isBuffer:r,_d=K.isFinite,_w=ts.join,Ow=vd(Ne.keys,Ne),at=st.max,bt=st.min,Aw=ae.now,Tw=K.parseInt,Od=st.random,Rw=ts.reverse,Ou=Tn(K,"DataView"),Pi=Tn(K,"Map"),Au=Tn(K,"Promise"),ti=Tn(K,"Set"),Ci=Tn(K,"WeakMap"),ki=Tn(Ne,"create"),ds=Ci&&new Ci,ri={},Pw=Rn(Ou),Cw=Rn(Pi),kw=Rn(Au),$w=Rn(ti),Iw=Rn(Ci),ps=en?en.prototype:r,$i=ps?ps.valueOf:r,Ad=ps?ps.toString:r;function A(n){if(Je(n)&&!we(n)&&!(n instanceof Te)){if(n instanceof Xt)return n;if(Fe.call(n,"__wrapped__"))return Tp(n)}return new Xt(n)}var ni=(function(){function n(){}return function(o){if(!Ge(o))return{};if(xd)return xd(o);n.prototype=o;var u=new n;return n.prototype=r,u}})();function hs(){}function Xt(n,o){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}A.templateSettings={escape:G0,evaluate:K0,interpolate:Mf,variable:"",imports:{_:A}},A.prototype=hs.prototype,A.prototype.constructor=A,Xt.prototype=ni(hs.prototype),Xt.prototype.constructor=Xt;function Te(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=Q,this.__views__=[]}function Lw(){var n=new Te(this.__wrapped__);return n.__actions__=Pt(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Pt(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Pt(this.__views__),n}function Mw(){if(this.__filtered__){var n=new Te(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function Fw(){var n=this.__wrapped__.value(),o=this.__dir__,u=we(n),y=o<0,_=u?n.length:0,T=K1(0,_,this.__views__),P=T.start,I=T.end,z=I-P,V=y?I:P-1,X=this.__iteratees__,ee=X.length,oe=0,le=bt(z,this.__takeCount__);if(!u||!y&&_==z&&le==z)return Yd(n,this.__actions__);var he=[];e:for(;z--&&oe<le;){V+=o;for(var Se=-1,ge=n[V];++Se<ee;){var Oe=X[Se],Re=Oe.iteratee,zt=Oe.type,At=Re(ge);if(zt==C)ge=At;else if(!At){if(zt==q)continue e;break e}}he[oe++]=ge}return he}Te.prototype=ni(hs.prototype),Te.prototype.constructor=Te;function En(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Dw(){this.__data__=ki?ki(null):{},this.size=0}function Nw(n){var o=this.has(n)&&delete this.__data__[n];return this.size-=o?1:0,o}function jw(n){var o=this.__data__;if(ki){var u=o[n];return u===f?r:u}return Fe.call(o,n)?o[n]:r}function zw(n){var o=this.__data__;return ki?o[n]!==r:Fe.call(o,n)}function Ww(n,o){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=ki&&o===r?f:o,this}En.prototype.clear=Dw,En.prototype.delete=Nw,En.prototype.get=jw,En.prototype.has=zw,En.prototype.set=Ww;function Ir(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Uw(){this.__data__=[],this.size=0}function Bw(n){var o=this.__data__,u=gs(o,n);if(u<0)return!1;var y=o.length-1;return u==y?o.pop():us.call(o,u,1),--this.size,!0}function Hw(n){var o=this.__data__,u=gs(o,n);return u<0?r:o[u][1]}function qw(n){return gs(this.__data__,n)>-1}function Zw(n,o){var u=this.__data__,y=gs(u,n);return y<0?(++this.size,u.push([n,o])):u[y][1]=o,this}Ir.prototype.clear=Uw,Ir.prototype.delete=Bw,Ir.prototype.get=Hw,Ir.prototype.has=qw,Ir.prototype.set=Zw;function Lr(n){var o=-1,u=n==null?0:n.length;for(this.clear();++o<u;){var y=n[o];this.set(y[0],y[1])}}function Gw(){this.size=0,this.__data__={hash:new En,map:new(Pi||Ir),string:new En}}function Kw(n){var o=Ts(this,n).delete(n);return this.size-=o?1:0,o}function Vw(n){return Ts(this,n).get(n)}function Yw(n){return Ts(this,n).has(n)}function Xw(n,o){var u=Ts(this,n),y=u.size;return u.set(n,o),this.size+=u.size==y?0:1,this}Lr.prototype.clear=Gw,Lr.prototype.delete=Kw,Lr.prototype.get=Vw,Lr.prototype.has=Yw,Lr.prototype.set=Xw;function _n(n){var o=-1,u=n==null?0:n.length;for(this.__data__=new Lr;++o<u;)this.add(n[o])}function Jw(n){return this.__data__.set(n,f),this}function Qw(n){return this.__data__.has(n)}_n.prototype.add=_n.prototype.push=Jw,_n.prototype.has=Qw;function ur(n){var o=this.__data__=new Ir(n);this.size=o.size}function e1(){this.__data__=new Ir,this.size=0}function t1(n){var o=this.__data__,u=o.delete(n);return this.size=o.size,u}function r1(n){return this.__data__.get(n)}function n1(n){return this.__data__.has(n)}function i1(n,o){var u=this.__data__;if(u instanceof Ir){var y=u.__data__;if(!Pi||y.length<s-1)return y.push([n,o]),this.size=++u.size,this;u=this.__data__=new Lr(y)}return u.set(n,o),this.size=u.size,this}ur.prototype.clear=e1,ur.prototype.delete=t1,ur.prototype.get=r1,ur.prototype.has=n1,ur.prototype.set=i1;function Td(n,o){var u=we(n),y=!u&&Pn(n),_=!u&&!y&&sn(n),T=!u&&!y&&!_&&ai(n),P=u||y||_||T,I=P?wu(n.length,hw):[],z=I.length;for(var V in n)(o||Fe.call(n,V))&&!(P&&(V=="length"||_&&(V=="offset"||V=="parent")||T&&(V=="buffer"||V=="byteLength"||V=="byteOffset")||Nr(V,z)))&&I.push(V);return I}function Rd(n){var o=n.length;return o?n[Du(0,o-1)]:r}function o1(n,o){return Rs(Pt(n),On(o,0,n.length))}function s1(n){return Rs(Pt(n))}function Tu(n,o,u){(u!==r&&!lr(n[o],u)||u===r&&!(o in n))&&Mr(n,o,u)}function Ii(n,o,u){var y=n[o];(!(Fe.call(n,o)&&lr(y,u))||u===r&&!(o in n))&&Mr(n,o,u)}function gs(n,o){for(var u=n.length;u--;)if(lr(n[u][0],o))return u;return-1}function a1(n,o,u,y){return tn(n,function(_,T,P){o(y,_,u(_),P)}),y}function Pd(n,o){return n&&yr(o,ct(o),n)}function u1(n,o){return n&&yr(o,kt(o),n)}function Mr(n,o,u){o=="__proto__"&&ls?ls(n,o,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[o]=u}function Ru(n,o){for(var u=-1,y=o.length,_=H(y),T=n==null;++u<y;)_[u]=T?r:ul(n,o[u]);return _}function On(n,o,u){return n===n&&(u!==r&&(n=n<=u?n:u),o!==r&&(n=n>=o?n:o)),n}function Jt(n,o,u,y,_,T){var P,I=o&g,z=o&p,V=o&b;if(u&&(P=_?u(n,y,_,T):u(n)),P!==r)return P;if(!Ge(n))return n;var X=we(n);if(X){if(P=Y1(n),!I)return Pt(n,P)}else{var ee=wt(n),oe=ee==ie||ee==vt;if(sn(n))return Qd(n,I);if(ee==Gt||ee==ce||oe&&!_){if(P=z||oe?{}:yp(n),!I)return z?j1(n,u1(P,n)):N1(n,Pd(P,n))}else{if(!je[ee])return _?n:{};P=X1(n,ee,I)}}T||(T=new ur);var le=T.get(n);if(le)return le;T.set(n,P),Gp(n)?n.forEach(function(ge){P.add(Jt(ge,o,u,ge,n,T))}):qp(n)&&n.forEach(function(ge,Oe){P.set(Oe,Jt(ge,o,u,Oe,n,T))});var he=V?z?Ku:Gu:z?kt:ct,Se=X?r:he(n);return Vt(Se||n,function(ge,Oe){Se&&(Oe=ge,ge=n[Oe]),Ii(P,Oe,Jt(ge,o,u,Oe,n,T))}),P}function l1(n){var o=ct(n);return function(u){return Cd(u,n,o)}}function Cd(n,o,u){var y=u.length;if(n==null)return!y;for(n=Ne(n);y--;){var _=u[y],T=o[_],P=n[_];if(P===r&&!(_ in n)||!T(P))return!1}return!0}function kd(n,o,u){if(typeof n!="function")throw new Yt(l);return zi(function(){n.apply(r,u)},o)}function Li(n,o,u,y){var _=-1,T=Jo,P=!0,I=n.length,z=[],V=o.length;if(!I)return z;u&&(o=Be(o,Dt(u))),y?(T=hu,P=!1):o.length>=s&&(T=Ti,P=!1,o=new _n(o));e:for(;++_<I;){var X=n[_],ee=u==null?X:u(X);if(X=y||X!==0?X:0,P&&ee===ee){for(var oe=V;oe--;)if(o[oe]===ee)continue e;z.push(X)}else T(o,ee,y)||z.push(X)}return z}var tn=ip(vr),$d=ip(Cu,!0);function c1(n,o){var u=!0;return tn(n,function(y,_,T){return u=!!o(y,_,T),u}),u}function ms(n,o,u){for(var y=-1,_=n.length;++y<_;){var T=n[y],P=o(T);if(P!=null&&(I===r?P===P&&!jt(P):u(P,I)))var I=P,z=T}return z}function f1(n,o,u,y){var _=n.length;for(u=xe(u),u<0&&(u=-u>_?0:_+u),y=y===r||y>_?_:xe(y),y<0&&(y+=_),y=u>y?0:Vp(y);u<y;)n[u++]=o;return n}function Id(n,o){var u=[];return tn(n,function(y,_,T){o(y,_,T)&&u.push(y)}),u}function pt(n,o,u,y,_){var T=-1,P=n.length;for(u||(u=Q1),_||(_=[]);++T<P;){var I=n[T];o>0&&u(I)?o>1?pt(I,o-1,u,y,_):Jr(_,I):y||(_[_.length]=I)}return _}var Pu=op(),Ld=op(!0);function vr(n,o){return n&&Pu(n,o,ct)}function Cu(n,o){return n&&Ld(n,o,ct)}function vs(n,o){return Xr(o,function(u){return jr(n[u])})}function An(n,o){o=nn(o,n);for(var u=0,y=o.length;n!=null&&u<y;)n=n[br(o[u++])];return u&&u==y?n:r}function Md(n,o,u){var y=o(n);return we(n)?y:Jr(y,u(n))}function _t(n){return n==null?n===r?Ai:Zo:Sn&&Sn in Ne(n)?G1(n):sx(n)}function ku(n,o){return n>o}function d1(n,o){return n!=null&&Fe.call(n,o)}function p1(n,o){return n!=null&&o in Ne(n)}function h1(n,o,u){return n>=bt(o,u)&&n<at(o,u)}function $u(n,o,u){for(var y=u?hu:Jo,_=n[0].length,T=n.length,P=T,I=H(T),z=1/0,V=[];P--;){var X=n[P];P&&o&&(X=Be(X,Dt(o))),z=bt(X.length,z),I[P]=!u&&(o||_>=120&&X.length>=120)?new _n(P&&X):r}X=n[0];var ee=-1,oe=I[0];e:for(;++ee<_&&V.length<z;){var le=X[ee],he=o?o(le):le;if(le=u||le!==0?le:0,!(oe?Ti(oe,he):y(V,he,u))){for(P=T;--P;){var Se=I[P];if(!(Se?Ti(Se,he):y(n[P],he,u)))continue e}oe&&oe.push(he),V.push(le)}}return V}function g1(n,o,u,y){return vr(n,function(_,T,P){o(y,u(_),T,P)}),y}function Mi(n,o,u){o=nn(o,n),n=Sp(n,o);var y=n==null?n:n[br(er(o))];return y==null?r:Ft(y,n,u)}function Fd(n){return Je(n)&&_t(n)==ce}function m1(n){return Je(n)&&_t(n)==Yr}function v1(n){return Je(n)&&_t(n)==Ee}function Fi(n,o,u,y,_){return n===o?!0:n==null||o==null||!Je(n)&&!Je(o)?n!==n&&o!==o:y1(n,o,u,y,Fi,_)}function y1(n,o,u,y,_,T){var P=we(n),I=we(o),z=P?fe:wt(n),V=I?fe:wt(o);z=z==ce?Gt:z,V=V==ce?Gt:V;var X=z==Gt,ee=V==Gt,oe=z==V;if(oe&&sn(n)){if(!sn(o))return!1;P=!0,X=!1}if(oe&&!X)return T||(T=new ur),P||ai(n)?gp(n,o,u,y,_,T):q1(n,o,z,u,y,_,T);if(!(u&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 T||(T=new ur),_(Se,ge,u,y,T)}}return oe?(T||(T=new ur),Z1(n,o,u,y,_,T)):!1}function b1(n){return Je(n)&&wt(n)==lt}function Iu(n,o,u,y){var _=u.length,T=_,P=!y;if(n==null)return!T;for(n=Ne(n);_--;){var I=u[_];if(P&&I[2]?I[1]!==n[I[0]]:!(I[0]in n))return!1}for(;++_<T;){I=u[_];var z=I[0],V=n[z],X=I[1];if(P&&I[2]){if(V===r&&!(z in n))return!1}else{var ee=new ur;if(y)var oe=y(V,X,z,n,o,ee);if(!(oe===r?Fi(X,V,x|d,y,ee):oe))return!1}}return!0}function Dd(n){if(!Ge(n)||tx(n))return!1;var o=jr(n)?bw:lb;return o.test(Rn(n))}function w1(n){return Je(n)&&_t(n)==Mt}function x1(n){return Je(n)&&wt(n)==yt}function S1(n){return Je(n)&&Ls(n.length)&&!!Ue[_t(n)]}function Nd(n){return typeof n=="function"?n:n==null?$t:typeof n=="object"?we(n)?Wd(n[0],n[1]):zd(n):sh(n)}function Lu(n){if(!ji(n))return Ow(n);var o=[];for(var u in Ne(n))Fe.call(n,u)&&u!="constructor"&&o.push(u);return o}function E1(n){if(!Ge(n))return ox(n);var o=ji(n),u=[];for(var y in n)y=="constructor"&&(o||!Fe.call(n,y))||u.push(y);return u}function Mu(n,o){return n<o}function jd(n,o){var u=-1,y=Ct(n)?H(n.length):[];return tn(n,function(_,T,P){y[++u]=o(_,T,P)}),y}function zd(n){var o=Yu(n);return o.length==1&&o[0][2]?wp(o[0][0],o[0][1]):function(u){return u===n||Iu(u,n,o)}}function Wd(n,o){return Ju(n)&&bp(o)?wp(br(n),o):function(u){var y=ul(u,n);return y===r&&y===o?ll(u,n):Fi(o,y,x|d)}}function ys(n,o,u,y,_){n!==o&&Pu(o,function(T,P){if(_||(_=new ur),Ge(T))_1(n,o,P,u,ys,y,_);else{var I=y?y(el(n,P),T,P+"",n,o,_):r;I===r&&(I=T),Tu(n,P,I)}},kt)}function _1(n,o,u,y,_,T,P){var I=el(n,u),z=el(o,u),V=P.get(z);if(V){Tu(n,u,V);return}var X=T?T(I,z,u+"",n,o,P):r,ee=X===r;if(ee){var oe=we(z),le=!oe&&sn(z),he=!oe&&!le&&ai(z);X=z,oe||le||he?we(I)?X=I:tt(I)?X=Pt(I):le?(ee=!1,X=Qd(z,!0)):he?(ee=!1,X=ep(z,!0)):X=[]:Wi(z)||Pn(z)?(X=I,Pn(I)?X=Yp(I):(!Ge(I)||jr(I))&&(X=yp(z))):ee=!1}ee&&(P.set(z,X),_(X,z,y,T,P),P.delete(z)),Tu(n,u,X)}function Ud(n,o){var u=n.length;if(u)return o+=o<0?u:0,Nr(o,u)?n[o]:r}function Bd(n,o,u){o.length?o=Be(o,function(T){return we(T)?function(P){return An(P,T.length===1?T[0]:T)}:T}):o=[$t];var y=-1;o=Be(o,Dt(pe()));var _=jd(n,function(T,P,I){var z=Be(o,function(V){return V(T)});return{criteria:z,index:++y,value:T}});return Xb(_,function(T,P){return D1(T,P,u)})}function O1(n,o){return Hd(n,o,function(u,y){return ll(n,y)})}function Hd(n,o,u){for(var y=-1,_=o.length,T={};++y<_;){var P=o[y],I=An(n,P);u(I,P)&&Di(T,nn(P,n),I)}return T}function A1(n){return function(o){return An(o,n)}}function Fu(n,o,u,y){var _=y?Yb:Yn,T=-1,P=o.length,I=n;for(n===o&&(o=Pt(o)),u&&(I=Be(n,Dt(u)));++T<P;)for(var z=0,V=o[T],X=u?u(V):V;(z=_(I,X,z,y))>-1;)I!==n&&us.call(I,z,1),us.call(n,z,1);return n}function qd(n,o){for(var u=n?o.length:0,y=u-1;u--;){var _=o[u];if(u==y||_!==T){var T=_;Nr(_)?us.call(n,_,1):zu(n,_)}}return n}function Du(n,o){return n+fs(Od()*(o-n+1))}function T1(n,o,u,y){for(var _=-1,T=at(cs((o-n)/(u||1)),0),P=H(T);T--;)P[y?T:++_]=n,n+=u;return P}function Nu(n,o){var u="";if(!n||o<1||o>te)return u;do o%2&&(u+=n),o=fs(o/2),o&&(n+=n);while(o);return u}function _e(n,o){return tl(xp(n,o,$t),n+"")}function R1(n){return Rd(ui(n))}function P1(n,o){var u=ui(n);return Rs(u,On(o,0,u.length))}function Di(n,o,u,y){if(!Ge(n))return n;o=nn(o,n);for(var _=-1,T=o.length,P=T-1,I=n;I!=null&&++_<T;){var z=br(o[_]),V=u;if(z==="__proto__"||z==="constructor"||z==="prototype")return n;if(_!=P){var X=I[z];V=y?y(X,z,I):r,V===r&&(V=Ge(X)?X:Nr(o[_+1])?[]:{})}Ii(I,z,V),I=I[z]}return n}var Zd=ds?function(n,o){return ds.set(n,o),n}:$t,C1=ls?function(n,o){return ls(n,"toString",{configurable:!0,enumerable:!1,value:fl(o),writable:!0})}:$t;function k1(n){return Rs(ui(n))}function Qt(n,o,u){var y=-1,_=n.length;o<0&&(o=-o>_?0:_+o),u=u>_?_:u,u<0&&(u+=_),_=o>u?0:u-o>>>0,o>>>=0;for(var T=H(_);++y<_;)T[y]=n[y+o];return T}function $1(n,o){var u;return tn(n,function(y,_,T){return u=o(y,_,T),!u}),!!u}function bs(n,o,u){var y=0,_=n==null?y:n.length;if(typeof o=="number"&&o===o&&_<=ue){for(;y<_;){var T=y+_>>>1,P=n[T];P!==null&&!jt(P)&&(u?P<=o:P<o)?y=T+1:_=T}return _}return ju(n,o,$t,u)}function ju(n,o,u,y){var _=0,T=n==null?0:n.length;if(T===0)return 0;o=u(o);for(var P=o!==o,I=o===null,z=jt(o),V=o===r;_<T;){var X=fs((_+T)/2),ee=u(n[X]),oe=ee!==r,le=ee===null,he=ee===ee,Se=jt(ee);if(P)var ge=y||he;else V?ge=he&&(y||oe):I?ge=he&&oe&&(y||!le):z?ge=he&&oe&&!le&&(y||!Se):le||Se?ge=!1:ge=y?ee<=o:ee<o;ge?_=X+1:T=X}return bt(T,se)}function Gd(n,o){for(var u=-1,y=n.length,_=0,T=[];++u<y;){var P=n[u],I=o?o(P):P;if(!u||!lr(I,z)){var z=I;T[_++]=P===0?0:P}}return T}function Kd(n){return typeof n=="number"?n:jt(n)?Z:+n}function Nt(n){if(typeof n=="string")return n;if(we(n))return Be(n,Nt)+"";if(jt(n))return Ad?Ad.call(n):"";var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function rn(n,o,u){var y=-1,_=Jo,T=n.length,P=!0,I=[],z=I;if(u)P=!1,_=hu;else if(T>=s){var V=o?null:B1(n);if(V)return es(V);P=!1,_=Ti,z=new _n}else z=o?[]:I;e:for(;++y<T;){var X=n[y],ee=o?o(X):X;if(X=u||X!==0?X:0,P&&ee===ee){for(var oe=z.length;oe--;)if(z[oe]===ee)continue e;o&&z.push(ee),I.push(X)}else _(z,ee,u)||(z!==I&&z.push(ee),I.push(X))}return I}function zu(n,o){return o=nn(o,n),n=Sp(n,o),n==null||delete n[br(er(o))]}function Vd(n,o,u,y){return Di(n,o,u(An(n,o)),y)}function ws(n,o,u,y){for(var _=n.length,T=y?_:-1;(y?T--:++T<_)&&o(n[T],T,n););return u?Qt(n,y?0:T,y?T+1:_):Qt(n,y?T+1:0,y?_:T)}function Yd(n,o){var u=n;return u instanceof Te&&(u=u.value()),gu(o,function(y,_){return _.func.apply(_.thisArg,Jr([y],_.args))},u)}function Wu(n,o,u){var y=n.length;if(y<2)return y?rn(n[0]):[];for(var _=-1,T=H(y);++_<y;)for(var P=n[_],I=-1;++I<y;)I!=_&&(T[_]=Li(T[_]||P,n[I],o,u));return rn(pt(T,1),o,u)}function Xd(n,o,u){for(var y=-1,_=n.length,T=o.length,P={};++y<_;){var I=y<T?o[y]:r;u(P,n[y],I)}return P}function Uu(n){return tt(n)?n:[]}function Bu(n){return typeof n=="function"?n:$t}function nn(n,o){return we(n)?n:Ju(n,o)?[n]:Ap(ke(n))}var I1=_e;function on(n,o,u){var y=n.length;return u=u===r?y:u,!o&&u>=y?n:Qt(n,o,u)}var Jd=ww||function(n){return dt.clearTimeout(n)};function Qd(n,o){if(o)return n.slice();var u=n.length,y=wd?wd(u):new n.constructor(u);return n.copy(y),y}function Hu(n){var o=new n.constructor(n.byteLength);return new ss(o).set(new ss(n)),o}function L1(n,o){var u=o?Hu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function M1(n){var o=new n.constructor(n.source,Ff.exec(n));return o.lastIndex=n.lastIndex,o}function F1(n){return $i?Ne($i.call(n)):{}}function ep(n,o){var u=o?Hu(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function tp(n,o){if(n!==o){var u=n!==r,y=n===null,_=n===n,T=jt(n),P=o!==r,I=o===null,z=o===o,V=jt(o);if(!I&&!V&&!T&&n>o||T&&P&&z&&!I&&!V||y&&P&&z||!u&&z||!_)return 1;if(!y&&!T&&!V&&n<o||V&&u&&_&&!y&&!T||I&&u&&_||!P&&_||!z)return-1}return 0}function D1(n,o,u){for(var y=-1,_=n.criteria,T=o.criteria,P=_.length,I=u.length;++y<P;){var z=tp(_[y],T[y]);if(z){if(y>=I)return z;var V=u[y];return z*(V=="desc"?-1:1)}}return n.index-o.index}function rp(n,o,u,y){for(var _=-1,T=n.length,P=u.length,I=-1,z=o.length,V=at(T-P,0),X=H(z+V),ee=!y;++I<z;)X[I]=o[I];for(;++_<P;)(ee||_<T)&&(X[u[_]]=n[_]);for(;V--;)X[I++]=n[_++];return X}function np(n,o,u,y){for(var _=-1,T=n.length,P=-1,I=u.length,z=-1,V=o.length,X=at(T-I,0),ee=H(X+V),oe=!y;++_<X;)ee[_]=n[_];for(var le=_;++z<V;)ee[le+z]=o[z];for(;++P<I;)(oe||_<T)&&(ee[le+u[P]]=n[_++]);return ee}function Pt(n,o){var u=-1,y=n.length;for(o||(o=H(y));++u<y;)o[u]=n[u];return o}function yr(n,o,u,y){var _=!u;u||(u={});for(var T=-1,P=o.length;++T<P;){var I=o[T],z=y?y(u[I],n[I],I,u,n):r;z===r&&(z=n[I]),_?Mr(u,I,z):Ii(u,I,z)}return u}function N1(n,o){return yr(n,Xu(n),o)}function j1(n,o){return yr(n,mp(n),o)}function xs(n,o){return function(u,y){var _=we(u)?Hb:a1,T=o?o():{};return _(u,n,pe(y,2),T)}}function ii(n){return _e(function(o,u){var y=-1,_=u.length,T=_>1?u[_-1]:r,P=_>2?u[2]:r;for(T=n.length>3&&typeof T=="function"?(_--,T):r,P&&Ot(u[0],u[1],P)&&(T=_<3?r:T,_=1),o=Ne(o);++y<_;){var I=u[y];I&&n(o,I,y,T)}return o})}function ip(n,o){return function(u,y){if(u==null)return u;if(!Ct(u))return n(u,y);for(var _=u.length,T=o?_:-1,P=Ne(u);(o?T--:++T<_)&&y(P[T],T,P)!==!1;);return u}}function op(n){return function(o,u,y){for(var _=-1,T=Ne(o),P=y(o),I=P.length;I--;){var z=P[n?I:++_];if(u(T[z],z,T)===!1)break}return o}}function z1(n,o,u){var y=o&w,_=Ni(n);function T(){var P=this&&this!==dt&&this instanceof T?_:n;return P.apply(y?u:this,arguments)}return T}function sp(n){return function(o){o=ke(o);var u=Xn(o)?ar(o):r,y=u?u[0]:o.charAt(0),_=u?on(u,1).join(""):o.slice(1);return y[n]()+_}}function oi(n){return function(o){return gu(ih(nh(o).replace(Cb,"")),n,"")}}function Ni(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 u=ni(n.prototype),y=n.apply(u,o);return Ge(y)?y:u}}function W1(n,o,u){var y=Ni(n);function _(){for(var T=arguments.length,P=H(T),I=T,z=si(_);I--;)P[I]=arguments[I];var V=T<3&&P[0]!==z&&P[T-1]!==z?[]:Qr(P,z);if(T-=V.length,T<u)return fp(n,o,Ss,_.placeholder,r,P,V,r,r,u-T);var X=this&&this!==dt&&this instanceof _?y:n;return Ft(X,this,P)}return _}function ap(n){return function(o,u,y){var _=Ne(o);if(!Ct(o)){var T=pe(u,3);o=ct(o),u=function(I){return T(_[I],I,_)}}var P=n(o,u,y);return P>-1?_[T?o[P]:P]:r}}function up(n){return Dr(function(o){var u=o.length,y=u,_=Xt.prototype.thru;for(n&&o.reverse();y--;){var T=o[y];if(typeof T!="function")throw new Yt(l);if(_&&!P&&As(T)=="wrapper")var P=new Xt([],!0)}for(y=P?y:u;++y<u;){T=o[y];var I=As(T),z=I=="wrapper"?Vu(T):r;z&&Qu(z[0])&&z[1]==(U|E|O|F)&&!z[4].length&&z[9]==1?P=P[As(z[0])].apply(P,z[3]):P=T.length==1&&Qu(T)?P[I]():P.thru(T)}return function(){var V=arguments,X=V[0];if(P&&V.length==1&&we(X))return P.plant(X).value();for(var ee=0,oe=u?o[ee].apply(this,V):X;++ee<u;)oe=o[ee].call(this,oe);return oe}})}function Ss(n,o,u,y,_,T,P,I,z,V){var X=o&U,ee=o&w,oe=o&h,le=o&(E|R),he=o&D,Se=oe?r:Ni(n);function ge(){for(var Oe=arguments.length,Re=H(Oe),zt=Oe;zt--;)Re[zt]=arguments[zt];if(le)var At=si(ge),Wt=Qb(Re,At);if(y&&(Re=rp(Re,y,_,le)),T&&(Re=np(Re,T,P,le)),Oe-=Wt,le&&Oe<V){var rt=Qr(Re,At);return fp(n,o,Ss,ge.placeholder,u,Re,rt,I,z,V-Oe)}var cr=ee?u:this,Wr=oe?cr[n]:n;return Oe=Re.length,I?Re=ax(Re,I):he&&Oe>1&&Re.reverse(),X&&z<Oe&&(Re.length=z),this&&this!==dt&&this instanceof ge&&(Wr=Se||Ni(Wr)),Wr.apply(cr,Re)}return ge}function lp(n,o){return function(u,y){return g1(u,n,o(y),{})}}function Es(n,o){return function(u,y){var _;if(u===r&&y===r)return o;if(u!==r&&(_=u),y!==r){if(_===r)return y;typeof u=="string"||typeof y=="string"?(u=Nt(u),y=Nt(y)):(u=Kd(u),y=Kd(y)),_=n(u,y)}return _}}function qu(n){return Dr(function(o){return o=Be(o,Dt(pe())),_e(function(u){var y=this;return n(o,function(_){return Ft(_,y,u)})})})}function _s(n,o){o=o===r?" ":Nt(o);var u=o.length;if(u<2)return u?Nu(o,n):o;var y=Nu(o,cs(n/Jn(o)));return Xn(o)?on(ar(y),0,n).join(""):y.slice(0,n)}function U1(n,o,u,y){var _=o&w,T=Ni(n);function P(){for(var I=-1,z=arguments.length,V=-1,X=y.length,ee=H(X+z),oe=this&&this!==dt&&this instanceof P?T:n;++V<X;)ee[V]=y[V];for(;z--;)ee[V++]=arguments[++I];return Ft(oe,_?u:this,ee)}return P}function cp(n){return function(o,u,y){return y&&typeof y!="number"&&Ot(o,u,y)&&(u=y=r),o=zr(o),u===r?(u=o,o=0):u=zr(u),y=y===r?o<u?1:-1:zr(y),T1(o,u,y,n)}}function Os(n){return function(o,u){return typeof o=="string"&&typeof u=="string"||(o=tr(o),u=tr(u)),n(o,u)}}function fp(n,o,u,y,_,T,P,I,z,V){var X=o&E,ee=X?P:r,oe=X?r:P,le=X?T:r,he=X?r:T;o|=X?O:k,o&=~(X?k:O),o&S||(o&=-4);var Se=[n,o,_,le,ee,he,oe,I,z,V],ge=u.apply(r,Se);return Qu(n)&&Ep(ge,Se),ge.placeholder=y,_p(ge,n,o)}function Zu(n){var o=st[n];return function(u,y){if(u=tr(u),y=y==null?0:bt(xe(y),292),y&&_d(u)){var _=(ke(u)+"e").split("e"),T=o(_[0]+"e"+(+_[1]+y));return _=(ke(T)+"e").split("e"),+(_[0]+"e"+(+_[1]-y))}return o(u)}}var B1=ti&&1/es(new ti([,-0]))[1]==Y?function(n){return new ti(n)}:hl;function dp(n){return function(o){var u=wt(o);return u==lt?Su(o):u==yt?sw(o):Jb(o,n(o))}}function Fr(n,o,u,y,_,T,P,I){var z=o&h;if(!z&&typeof n!="function")throw new Yt(l);var V=y?y.length:0;if(V||(o&=-97,y=_=r),P=P===r?P:at(xe(P),0),I=I===r?I:xe(I),V-=_?_.length:0,o&k){var X=y,ee=_;y=_=r}var oe=z?r:Vu(n),le=[n,o,u,y,_,X,ee,T,P,I];if(oe&&ix(le,oe),n=le[0],o=le[1],u=le[2],y=le[3],_=le[4],I=le[9]=le[9]===r?z?0:n.length:at(le[9]-V,0),!I&&o&(E|R)&&(o&=-25),!o||o==w)var he=z1(n,o,u);else o==E||o==R?he=W1(n,o,I):(o==O||o==(w|O))&&!_.length?he=U1(n,o,u,y):he=Ss.apply(r,le);var Se=oe?Zd:Ep;return _p(Se(he,le),n,o)}function pp(n,o,u,y){return n===r||lr(n,ei[u])&&!Fe.call(y,u)?o:n}function hp(n,o,u,y,_,T){return Ge(n)&&Ge(o)&&(T.set(o,n),ys(n,o,r,hp,T),T.delete(o)),n}function H1(n){return Wi(n)?r:n}function gp(n,o,u,y,_,T){var P=u&x,I=n.length,z=o.length;if(I!=z&&!(P&&z>I))return!1;var V=T.get(n),X=T.get(o);if(V&&X)return V==o&&X==n;var ee=-1,oe=!0,le=u&d?new _n:r;for(T.set(n,o),T.set(o,n);++ee<I;){var he=n[ee],Se=o[ee];if(y)var ge=P?y(Se,he,ee,o,n,T):y(he,Se,ee,n,o,T);if(ge!==r){if(ge)continue;oe=!1;break}if(le){if(!mu(o,function(Oe,Re){if(!Ti(le,Re)&&(he===Oe||_(he,Oe,u,y,T)))return le.push(Re)})){oe=!1;break}}else if(!(he===Se||_(he,Se,u,y,T))){oe=!1;break}}return T.delete(n),T.delete(o),oe}function q1(n,o,u,y,_,T,P){switch(u){case $r:if(n.byteLength!=o.byteLength||n.byteOffset!=o.byteOffset)return!1;n=n.buffer,o=o.buffer;case Yr:return!(n.byteLength!=o.byteLength||!T(new ss(n),new ss(o)));case me:case Ee:case mr:return lr(+n,+o);case Ze:return n.name==o.name&&n.message==o.message;case Mt:case Kr:return n==o+"";case lt:var I=Su;case yt:var z=y&x;if(I||(I=es),n.size!=o.size&&!z)return!1;var V=P.get(n);if(V)return V==o;y|=d,P.set(n,o);var X=gp(I(n),I(o),y,_,T,P);return P.delete(n),X;case wn:if($i)return $i.call(n)==$i.call(o)}return!1}function Z1(n,o,u,y,_,T){var P=u&x,I=Gu(n),z=I.length,V=Gu(o),X=V.length;if(z!=X&&!P)return!1;for(var ee=z;ee--;){var oe=I[ee];if(!(P?oe in o:Fe.call(o,oe)))return!1}var le=T.get(n),he=T.get(o);if(le&&he)return le==o&&he==n;var Se=!0;T.set(n,o),T.set(o,n);for(var ge=P;++ee<z;){oe=I[ee];var Oe=n[oe],Re=o[oe];if(y)var zt=P?y(Re,Oe,oe,o,n,T):y(Oe,Re,oe,n,o,T);if(!(zt===r?Oe===Re||_(Oe,Re,u,y,T):zt)){Se=!1;break}ge||(ge=oe=="constructor")}if(Se&&!ge){var At=n.constructor,Wt=o.constructor;At!=Wt&&"constructor"in n&&"constructor"in o&&!(typeof At=="function"&&At instanceof At&&typeof Wt=="function"&&Wt instanceof Wt)&&(Se=!1)}return T.delete(n),T.delete(o),Se}function Dr(n){return tl(xp(n,r,Cp),n+"")}function Gu(n){return Md(n,ct,Xu)}function Ku(n){return Md(n,kt,mp)}var Vu=ds?function(n){return ds.get(n)}:hl;function As(n){for(var o=n.name+"",u=ri[o],y=Fe.call(ri,o)?u.length:0;y--;){var _=u[y],T=_.func;if(T==null||T==n)return _.name}return o}function si(n){var o=Fe.call(A,"placeholder")?A:n;return o.placeholder}function pe(){var n=A.iteratee||dl;return n=n===dl?Nd:n,arguments.length?n(arguments[0],arguments[1]):n}function Ts(n,o){var u=n.__data__;return ex(o)?u[typeof o=="string"?"string":"hash"]:u.map}function Yu(n){for(var o=ct(n),u=o.length;u--;){var y=o[u],_=n[y];o[u]=[y,_,bp(_)]}return o}function Tn(n,o){var u=nw(n,o);return Dd(u)?u:r}function G1(n){var o=Fe.call(n,Sn),u=n[Sn];try{n[Sn]=r;var y=!0}catch{}var _=is.call(n);return y&&(o?n[Sn]=u:delete n[Sn]),_}var Xu=_u?function(n){return n==null?[]:(n=Ne(n),Xr(_u(n),function(o){return Sd.call(n,o)}))}:gl,mp=_u?function(n){for(var o=[];n;)Jr(o,Xu(n)),n=as(n);return o}:gl,wt=_t;(Ou&&wt(new Ou(new ArrayBuffer(1)))!=$r||Pi&&wt(new Pi)!=lt||Au&&wt(Au.resolve())!=Go||ti&&wt(new ti)!=yt||Ci&&wt(new Ci)!=Vr)&&(wt=function(n){var o=_t(n),u=o==Gt?n.constructor:r,y=u?Rn(u):"";if(y)switch(y){case Pw:return $r;case Cw:return lt;case kw:return Go;case $w:return yt;case Iw:return Vr}return o});function K1(n,o,u){for(var y=-1,_=u.length;++y<_;){var T=u[y],P=T.size;switch(T.type){case"drop":n+=P;break;case"dropRight":o-=P;break;case"take":o=bt(o,n+P);break;case"takeRight":n=at(n,o-P);break}}return{start:n,end:o}}function V1(n){var o=n.match(tb);return o?o[1].split(rb):[]}function vp(n,o,u){o=nn(o,n);for(var y=-1,_=o.length,T=!1;++y<_;){var P=br(o[y]);if(!(T=n!=null&&u(n,P)))break;n=n[P]}return T||++y!=_?T:(_=n==null?0:n.length,!!_&&Ls(_)&&Nr(P,_)&&(we(n)||Pn(n)))}function Y1(n){var o=n.length,u=new n.constructor(o);return o&&typeof n[0]=="string"&&Fe.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function yp(n){return typeof n.constructor=="function"&&!ji(n)?ni(as(n)):{}}function X1(n,o,u){var y=n.constructor;switch(o){case Yr:return Hu(n);case me:case Ee:return new y(+n);case $r:return L1(n,u);case Ya:case Xa:case Ja:case Qa:case eu:case tu:case ru:case nu:case iu:return ep(n,u);case lt:return new y;case mr:case Kr:return new y(n);case Mt:return M1(n);case yt:return new y;case wn:return F1(n)}}function J1(n,o){var u=o.length;if(!u)return n;var y=u-1;return o[y]=(u>1?"& ":"")+o[y],o=o.join(u>2?", ":" "),n.replace(eb,`{
183
- /* [wrapped with `+o+`] */
184
- `)}function Q1(n){return we(n)||Pn(n)||!!(Ed&&n&&n[Ed])}function Nr(n,o){var u=typeof n;return o=o??te,!!o&&(u=="number"||u!="symbol"&&fb.test(n))&&n>-1&&n%1==0&&n<o}function Ot(n,o,u){if(!Ge(u))return!1;var y=typeof o;return(y=="number"?Ct(u)&&Nr(o,u.length):y=="string"&&o in u)?lr(u[o],n):!1}function Ju(n,o){if(we(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||jt(n)?!0:Y0.test(n)||!V0.test(n)||o!=null&&n in Ne(o)}function ex(n){var o=typeof n;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?n!=="__proto__":n===null}function Qu(n){var o=As(n),u=A[o];if(typeof u!="function"||!(o in Te.prototype))return!1;if(n===u)return!0;var y=Vu(u);return!!y&&n===y[0]}function tx(n){return!!bd&&bd in n}var rx=rs?jr:ml;function ji(n){var o=n&&n.constructor,u=typeof o=="function"&&o.prototype||ei;return n===u}function bp(n){return n===n&&!Ge(n)}function wp(n,o){return function(u){return u==null?!1:u[n]===o&&(o!==r||n in Ne(u))}}function nx(n){var o=$s(n,function(y){return u.size===v&&u.clear(),y}),u=o.cache;return o}function ix(n,o){var u=n[1],y=o[1],_=u|y,T=_<(w|h|U),P=y==U&&u==E||y==U&&u==F&&n[7].length<=o[8]||y==(U|F)&&o[7].length<=o[8]&&u==E;if(!(T||P))return n;y&w&&(n[2]=o[2],_|=u&w?0:S);var I=o[3];if(I){var z=n[3];n[3]=z?rp(z,I,o[4]):I,n[4]=z?Qr(n[3],m):o[4]}return I=o[5],I&&(z=n[5],n[5]=z?np(z,I,o[6]):I,n[6]=z?Qr(n[5],m):o[6]),I=o[7],I&&(n[7]=I),y&U&&(n[8]=n[8]==null?o[8]:bt(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 u in Ne(n))o.push(u);return o}function sx(n){return is.call(n)}function xp(n,o,u){return o=at(o===r?n.length-1:o,0),function(){for(var y=arguments,_=-1,T=at(y.length-o,0),P=H(T);++_<T;)P[_]=y[o+_];_=-1;for(var I=H(o+1);++_<o;)I[_]=y[_];return I[o]=u(P),Ft(n,this,I)}}function Sp(n,o){return o.length<2?n:An(n,Qt(o,0,-1))}function ax(n,o){for(var u=n.length,y=bt(o.length,u),_=Pt(n);y--;){var T=o[y];n[y]=Nr(T,u)?_[T]:r}return n}function el(n,o){if(!(o==="constructor"&&typeof n[o]=="function")&&o!="__proto__")return n[o]}var Ep=Op(Zd),zi=Sw||function(n,o){return dt.setTimeout(n,o)},tl=Op(C1);function _p(n,o,u){var y=o+"";return tl(n,J1(y,ux(V1(y),u)))}function Op(n){var o=0,u=0;return function(){var y=Aw(),_=B-(y-u);if(u=y,_>0){if(++o>=L)return arguments[0]}else o=0;return n.apply(r,arguments)}}function Rs(n,o){var u=-1,y=n.length,_=y-1;for(o=o===r?y:o;++u<o;){var T=Du(u,_),P=n[T];n[T]=n[u],n[u]=P}return n.length=o,n}var Ap=nx(function(n){var o=[];return n.charCodeAt(0)===46&&o.push(""),n.replace(X0,function(u,y,_,T){o.push(_?T.replace(ob,"$1"):y||u)}),o});function br(n){if(typeof n=="string"||jt(n))return n;var o=n+"";return o=="0"&&1/n==-Y?"-0":o}function Rn(n){if(n!=null){try{return ns.call(n)}catch{}try{return n+""}catch{}}return""}function ux(n,o){return Vt(ne,function(u){var y="_."+u[0];o&u[1]&&!Jo(n,y)&&n.push(y)}),n.sort()}function Tp(n){if(n instanceof Te)return n.clone();var o=new Xt(n.__wrapped__,n.__chain__);return o.__actions__=Pt(n.__actions__),o.__index__=n.__index__,o.__values__=n.__values__,o}function lx(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=at(xe(o),0);var y=n==null?0:n.length;if(!y||o<1)return[];for(var _=0,T=0,P=H(cs(y/o));_<y;)P[T++]=Qt(n,_,_+=o);return P}function cx(n){for(var o=-1,u=n==null?0:n.length,y=0,_=[];++o<u;){var T=n[o];T&&(_[y++]=T)}return _}function fx(){var n=arguments.length;if(!n)return[];for(var o=H(n-1),u=arguments[0],y=n;y--;)o[y-1]=arguments[y];return Jr(we(u)?Pt(u):[u],pt(o,1))}var dx=_e(function(n,o){return tt(n)?Li(n,pt(o,1,tt,!0)):[]}),px=_e(function(n,o){var u=er(o);return tt(u)&&(u=r),tt(n)?Li(n,pt(o,1,tt,!0),pe(u,2)):[]}),hx=_e(function(n,o){var u=er(o);return tt(u)&&(u=r),tt(n)?Li(n,pt(o,1,tt,!0),r,u):[]});function gx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),Qt(n,o<0?0:o,y)):[]}function mx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,0,o<0?0:o)):[]}function vx(n,o){return n&&n.length?ws(n,pe(o,3),!0,!0):[]}function yx(n,o){return n&&n.length?ws(n,pe(o,3),!0):[]}function bx(n,o,u,y){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Ot(n,o,u)&&(u=0,y=_),f1(n,o,u,y)):[]}function Rp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=at(y+_,0)),Qo(n,pe(o,3),_)}function Pp(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y-1;return u!==r&&(_=xe(u),_=u<0?at(y+_,0):bt(_,y-1)),Qo(n,pe(o,3),_,!0)}function Cp(n){var o=n==null?0:n.length;return o?pt(n,1):[]}function wx(n){var o=n==null?0:n.length;return o?pt(n,Y):[]}function xx(n,o){var u=n==null?0:n.length;return u?(o=o===r?1:xe(o),pt(n,o)):[]}function Sx(n){for(var o=-1,u=n==null?0:n.length,y={};++o<u;){var _=n[o];y[_[0]]=_[1]}return y}function kp(n){return n&&n.length?n[0]:r}function Ex(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=u==null?0:xe(u);return _<0&&(_=at(y+_,0)),Yn(n,o,_)}function _x(n){var o=n==null?0:n.length;return o?Qt(n,0,-1):[]}var Ox=_e(function(n){var o=Be(n,Uu);return o.length&&o[0]===n[0]?$u(o):[]}),Ax=_e(function(n){var o=er(n),u=Be(n,Uu);return o===er(u)?o=r:u.pop(),u.length&&u[0]===n[0]?$u(u,pe(o,2)):[]}),Tx=_e(function(n){var o=er(n),u=Be(n,Uu);return o=typeof o=="function"?o:r,o&&u.pop(),u.length&&u[0]===n[0]?$u(u,r,o):[]});function Rx(n,o){return n==null?"":_w.call(n,o)}function er(n){var o=n==null?0:n.length;return o?n[o-1]:r}function Px(n,o,u){var y=n==null?0:n.length;if(!y)return-1;var _=y;return u!==r&&(_=xe(u),_=_<0?at(y+_,0):bt(_,y-1)),o===o?uw(n,o,_):Qo(n,fd,_,!0)}function Cx(n,o){return n&&n.length?Ud(n,xe(o)):r}var kx=_e($p);function $p(n,o){return n&&n.length&&o&&o.length?Fu(n,o):n}function $x(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,pe(u,2)):n}function Ix(n,o,u){return n&&n.length&&o&&o.length?Fu(n,o,r,u):n}var Lx=Dr(function(n,o){var u=n==null?0:n.length,y=Ru(n,o);return qd(n,Be(o,function(_){return Nr(_,u)?+_:_}).sort(tp)),y});function Mx(n,o){var u=[];if(!(n&&n.length))return u;var y=-1,_=[],T=n.length;for(o=pe(o,3);++y<T;){var P=n[y];o(P,y,n)&&(u.push(P),_.push(y))}return qd(n,_),u}function rl(n){return n==null?n:Rw.call(n)}function Fx(n,o,u){var y=n==null?0:n.length;return y?(u&&typeof u!="number"&&Ot(n,o,u)?(o=0,u=y):(o=o==null?0:xe(o),u=u===r?y:xe(u)),Qt(n,o,u)):[]}function Dx(n,o){return bs(n,o)}function Nx(n,o,u){return ju(n,o,pe(u,2))}function jx(n,o){var u=n==null?0:n.length;if(u){var y=bs(n,o);if(y<u&&lr(n[y],o))return y}return-1}function zx(n,o){return bs(n,o,!0)}function Wx(n,o,u){return ju(n,o,pe(u,2),!0)}function Ux(n,o){var u=n==null?0:n.length;if(u){var y=bs(n,o,!0)-1;if(lr(n[y],o))return y}return-1}function Bx(n){return n&&n.length?Gd(n):[]}function Hx(n,o){return n&&n.length?Gd(n,pe(o,2)):[]}function qx(n){var o=n==null?0:n.length;return o?Qt(n,1,o):[]}function Zx(n,o,u){return n&&n.length?(o=u||o===r?1:xe(o),Qt(n,0,o<0?0:o)):[]}function Gx(n,o,u){var y=n==null?0:n.length;return y?(o=u||o===r?1:xe(o),o=y-o,Qt(n,o<0?0:o,y)):[]}function Kx(n,o){return n&&n.length?ws(n,pe(o,3),!1,!0):[]}function Vx(n,o){return n&&n.length?ws(n,pe(o,3)):[]}var Yx=_e(function(n){return rn(pt(n,1,tt,!0))}),Xx=_e(function(n){var o=er(n);return tt(o)&&(o=r),rn(pt(n,1,tt,!0),pe(o,2))}),Jx=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,rn(pt(n,1,tt,!0),r,o)});function Qx(n){return n&&n.length?rn(n):[]}function eS(n,o){return n&&n.length?rn(n,pe(o,2)):[]}function tS(n,o){return o=typeof o=="function"?o:r,n&&n.length?rn(n,r,o):[]}function nl(n){if(!(n&&n.length))return[];var o=0;return n=Xr(n,function(u){if(tt(u))return o=at(u.length,o),!0}),wu(o,function(u){return Be(n,vu(u))})}function Ip(n,o){if(!(n&&n.length))return[];var u=nl(n);return o==null?u:Be(u,function(y){return Ft(o,r,y)})}var rS=_e(function(n,o){return tt(n)?Li(n,o):[]}),nS=_e(function(n){return Wu(Xr(n,tt))}),iS=_e(function(n){var o=er(n);return tt(o)&&(o=r),Wu(Xr(n,tt),pe(o,2))}),oS=_e(function(n){var o=er(n);return o=typeof o=="function"?o:r,Wu(Xr(n,tt),r,o)}),sS=_e(nl);function aS(n,o){return Xd(n||[],o||[],Ii)}function uS(n,o){return Xd(n||[],o||[],Di)}var lS=_e(function(n){var o=n.length,u=o>1?n[o-1]:r;return u=typeof u=="function"?(n.pop(),u):r,Ip(n,u)});function Lp(n){var o=A(n);return o.__chain__=!0,o}function cS(n,o){return o(n),n}function Ps(n,o){return o(n)}var fS=Dr(function(n){var o=n.length,u=o?n[0]:0,y=this.__wrapped__,_=function(T){return Ru(T,n)};return o>1||this.__actions__.length||!(y instanceof Te)||!Nr(u)?this.thru(_):(y=y.slice(u,+u+(o?1:0)),y.__actions__.push({func:Ps,args:[_],thisArg:r}),new Xt(y,this.__chain__).thru(function(T){return o&&!T.length&&T.push(r),T}))});function dS(){return Lp(this)}function pS(){return new Xt(this.value(),this.__chain__)}function hS(){this.__values__===r&&(this.__values__=Kp(this.value()));var n=this.__index__>=this.__values__.length,o=n?r:this.__values__[this.__index__++];return{done:n,value:o}}function gS(){return this}function mS(n){for(var o,u=this;u instanceof hs;){var y=Tp(u);y.__index__=0,y.__values__=r,o?_.__wrapped__=y:o=y;var _=y;u=u.__wrapped__}return _.__wrapped__=n,o}function vS(){var n=this.__wrapped__;if(n instanceof Te){var o=n;return this.__actions__.length&&(o=new Te(this)),o=o.reverse(),o.__actions__.push({func:Ps,args:[rl],thisArg:r}),new Xt(o,this.__chain__)}return this.thru(rl)}function yS(){return Yd(this.__wrapped__,this.__actions__)}var bS=xs(function(n,o,u){Fe.call(n,u)?++n[u]:Mr(n,u,1)});function wS(n,o,u){var y=we(n)?ld:c1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}function xS(n,o){var u=we(n)?Xr:Id;return u(n,pe(o,3))}var SS=ap(Rp),ES=ap(Pp);function _S(n,o){return pt(Cs(n,o),1)}function OS(n,o){return pt(Cs(n,o),Y)}function AS(n,o,u){return u=u===r?1:xe(u),pt(Cs(n,o),u)}function Mp(n,o){var u=we(n)?Vt:tn;return u(n,pe(o,3))}function Fp(n,o){var u=we(n)?qb:$d;return u(n,pe(o,3))}var TS=xs(function(n,o,u){Fe.call(n,u)?n[u].push(o):Mr(n,u,[o])});function RS(n,o,u,y){n=Ct(n)?n:ui(n),u=u&&!y?xe(u):0;var _=n.length;return u<0&&(u=at(_+u,0)),Ms(n)?u<=_&&n.indexOf(o,u)>-1:!!_&&Yn(n,o,u)>-1}var PS=_e(function(n,o,u){var y=-1,_=typeof o=="function",T=Ct(n)?H(n.length):[];return tn(n,function(P){T[++y]=_?Ft(o,P,u):Mi(P,o,u)}),T}),CS=xs(function(n,o,u){Mr(n,u,o)});function Cs(n,o){var u=we(n)?Be:jd;return u(n,pe(o,3))}function kS(n,o,u,y){return n==null?[]:(we(o)||(o=o==null?[]:[o]),u=y?r:u,we(u)||(u=u==null?[]:[u]),Bd(n,o,u))}var $S=xs(function(n,o,u){n[u?0:1].push(o)},function(){return[[],[]]});function IS(n,o,u){var y=we(n)?gu:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,tn)}function LS(n,o,u){var y=we(n)?Zb:pd,_=arguments.length<3;return y(n,pe(o,4),u,_,$d)}function MS(n,o){var u=we(n)?Xr:Id;return u(n,Is(pe(o,3)))}function FS(n){var o=we(n)?Rd:R1;return o(n)}function DS(n,o,u){(u?Ot(n,o,u):o===r)?o=1:o=xe(o);var y=we(n)?o1:P1;return y(n,o)}function NS(n){var o=we(n)?s1:k1;return o(n)}function jS(n){if(n==null)return 0;if(Ct(n))return Ms(n)?Jn(n):n.length;var o=wt(n);return o==lt||o==yt?n.size:Lu(n).length}function zS(n,o,u){var y=we(n)?mu:$1;return u&&Ot(n,o,u)&&(o=r),y(n,pe(o,3))}var WS=_e(function(n,o){if(n==null)return[];var u=o.length;return u>1&&Ot(n,o[0],o[1])?o=[]:u>2&&Ot(o[0],o[1],o[2])&&(o=[o[0]]),Bd(n,pt(o,1),[])}),ks=xw||function(){return dt.Date.now()};function US(n,o){if(typeof o!="function")throw new Yt(l);return n=xe(n),function(){if(--n<1)return o.apply(this,arguments)}}function Dp(n,o,u){return o=u?r:o,o=n&&o==null?n.length:o,Fr(n,U,r,r,r,r,o)}function Np(n,o){var u;if(typeof o!="function")throw new Yt(l);return n=xe(n),function(){return--n>0&&(u=o.apply(this,arguments)),n<=1&&(o=r),u}}var il=_e(function(n,o,u){var y=w;if(u.length){var _=Qr(u,si(il));y|=O}return Fr(n,y,o,u,_)}),jp=_e(function(n,o,u){var y=w|h;if(u.length){var _=Qr(u,si(jp));y|=O}return Fr(o,y,n,u,_)});function zp(n,o,u){o=u?r:o;var y=Fr(n,E,r,r,r,r,r,o);return y.placeholder=zp.placeholder,y}function Wp(n,o,u){o=u?r:o;var y=Fr(n,R,r,r,r,r,r,o);return y.placeholder=Wp.placeholder,y}function Up(n,o,u){var y,_,T,P,I,z,V=0,X=!1,ee=!1,oe=!0;if(typeof n!="function")throw new Yt(l);o=tr(o)||0,Ge(u)&&(X=!!u.leading,ee="maxWait"in u,T=ee?at(tr(u.maxWait)||0,o):T,oe="trailing"in u?!!u.trailing:oe);function le(rt){var cr=y,Wr=_;return y=_=r,V=rt,P=n.apply(Wr,cr),P}function he(rt){return V=rt,I=zi(Oe,o),X?le(rt):P}function Se(rt){var cr=rt-z,Wr=rt-V,ah=o-cr;return ee?bt(ah,T-Wr):ah}function ge(rt){var cr=rt-z,Wr=rt-V;return z===r||cr>=o||cr<0||ee&&Wr>=T}function Oe(){var rt=ks();if(ge(rt))return Re(rt);I=zi(Oe,Se(rt))}function Re(rt){return I=r,oe&&y?le(rt):(y=_=r,P)}function zt(){I!==r&&Jd(I),V=0,y=z=_=I=r}function At(){return I===r?P:Re(ks())}function Wt(){var rt=ks(),cr=ge(rt);if(y=arguments,_=this,z=rt,cr){if(I===r)return he(z);if(ee)return Jd(I),I=zi(Oe,o),le(z)}return I===r&&(I=zi(Oe,o)),P}return Wt.cancel=zt,Wt.flush=At,Wt}var BS=_e(function(n,o){return kd(n,1,o)}),HS=_e(function(n,o,u){return kd(n,tr(o)||0,u)});function qS(n){return Fr(n,D)}function $s(n,o){if(typeof n!="function"||o!=null&&typeof o!="function")throw new Yt(l);var u=function(){var y=arguments,_=o?o.apply(this,y):y[0],T=u.cache;if(T.has(_))return T.get(_);var P=n.apply(this,y);return u.cache=T.set(_,P)||T,P};return u.cache=new($s.Cache||Lr),u}$s.Cache=Lr;function Is(n){if(typeof n!="function")throw new Yt(l);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 ZS(n){return Np(2,n)}var GS=I1(function(n,o){o=o.length==1&&we(o[0])?Be(o[0],Dt(pe())):Be(pt(o,1),Dt(pe()));var u=o.length;return _e(function(y){for(var _=-1,T=bt(y.length,u);++_<T;)y[_]=o[_].call(this,y[_]);return Ft(n,this,y)})}),ol=_e(function(n,o){var u=Qr(o,si(ol));return Fr(n,O,r,o,u)}),Bp=_e(function(n,o){var u=Qr(o,si(Bp));return Fr(n,k,r,o,u)}),KS=Dr(function(n,o){return Fr(n,F,r,r,r,o)});function VS(n,o){if(typeof n!="function")throw new Yt(l);return o=o===r?o:xe(o),_e(n,o)}function YS(n,o){if(typeof n!="function")throw new Yt(l);return o=o==null?0:at(xe(o),0),_e(function(u){var y=u[o],_=on(u,0,o);return y&&Jr(_,y),Ft(n,this,_)})}function XS(n,o,u){var y=!0,_=!0;if(typeof n!="function")throw new Yt(l);return Ge(u)&&(y="leading"in u?!!u.leading:y,_="trailing"in u?!!u.trailing:_),Up(n,o,{leading:y,maxWait:o,trailing:_})}function JS(n){return Dp(n,1)}function QS(n,o){return ol(Bu(o),n)}function eE(){if(!arguments.length)return[];var n=arguments[0];return we(n)?n:[n]}function tE(n){return Jt(n,b)}function rE(n,o){return o=typeof o=="function"?o:r,Jt(n,b,o)}function nE(n){return Jt(n,g|b)}function iE(n,o){return o=typeof o=="function"?o:r,Jt(n,g|b,o)}function oE(n,o){return o==null||Cd(n,o,ct(o))}function lr(n,o){return n===o||n!==n&&o!==o}var sE=Os(ku),aE=Os(function(n,o){return n>=o}),Pn=Fd((function(){return arguments})())?Fd:function(n){return Je(n)&&Fe.call(n,"callee")&&!Sd.call(n,"callee")},we=H.isArray,uE=nd?Dt(nd):m1;function Ct(n){return n!=null&&Ls(n.length)&&!jr(n)}function tt(n){return Je(n)&&Ct(n)}function lE(n){return n===!0||n===!1||Je(n)&&_t(n)==me}var sn=Ew||ml,cE=id?Dt(id):v1;function fE(n){return Je(n)&&n.nodeType===1&&!Wi(n)}function dE(n){if(n==null)return!0;if(Ct(n)&&(we(n)||typeof n=="string"||typeof n.splice=="function"||sn(n)||ai(n)||Pn(n)))return!n.length;var o=wt(n);if(o==lt||o==yt)return!n.size;if(ji(n))return!Lu(n).length;for(var u in n)if(Fe.call(n,u))return!1;return!0}function pE(n,o){return Fi(n,o)}function hE(n,o,u){u=typeof u=="function"?u:r;var y=u?u(n,o):r;return y===r?Fi(n,o,r,u):!!y}function sl(n){if(!Je(n))return!1;var o=_t(n);return o==Ze||o==Ae||typeof n.message=="string"&&typeof n.name=="string"&&!Wi(n)}function gE(n){return typeof n=="number"&&_d(n)}function jr(n){if(!Ge(n))return!1;var o=_t(n);return o==ie||o==vt||o==ye||o==Va}function Hp(n){return typeof n=="number"&&n==xe(n)}function Ls(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=te}function Ge(n){var o=typeof n;return n!=null&&(o=="object"||o=="function")}function Je(n){return n!=null&&typeof n=="object"}var qp=od?Dt(od):b1;function mE(n,o){return n===o||Iu(n,o,Yu(o))}function vE(n,o,u){return u=typeof u=="function"?u:r,Iu(n,o,Yu(o),u)}function yE(n){return Zp(n)&&n!=+n}function bE(n){if(rx(n))throw new be(a);return Dd(n)}function wE(n){return n===null}function xE(n){return n==null}function Zp(n){return typeof n=="number"||Je(n)&&_t(n)==mr}function Wi(n){if(!Je(n)||_t(n)!=Gt)return!1;var o=as(n);if(o===null)return!0;var u=Fe.call(o,"constructor")&&o.constructor;return typeof u=="function"&&u instanceof u&&ns.call(u)==vw}var al=sd?Dt(sd):w1;function SE(n){return Hp(n)&&n>=-te&&n<=te}var Gp=ad?Dt(ad):x1;function Ms(n){return typeof n=="string"||!we(n)&&Je(n)&&_t(n)==Kr}function jt(n){return typeof n=="symbol"||Je(n)&&_t(n)==wn}var ai=ud?Dt(ud):S1;function EE(n){return n===r}function _E(n){return Je(n)&&wt(n)==Vr}function OE(n){return Je(n)&&_t(n)==Ko}var AE=Os(Mu),TE=Os(function(n,o){return n<=o});function Kp(n){if(!n)return[];if(Ct(n))return Ms(n)?ar(n):Pt(n);if(Ri&&n[Ri])return ow(n[Ri]());var o=wt(n),u=o==lt?Su:o==yt?es:ui;return u(n)}function zr(n){if(!n)return n===0?n:0;if(n=tr(n),n===Y||n===-Y){var o=n<0?-1:1;return o*de}return n===n?n:0}function xe(n){var o=zr(n),u=o%1;return o===o?u?o-u:o:0}function Vp(n){return n?On(xe(n),0,Q):0}function tr(n){if(typeof n=="number")return n;if(jt(n))return Z;if(Ge(n)){var o=typeof n.valueOf=="function"?n.valueOf():n;n=Ge(o)?o+"":o}if(typeof n!="string")return n===0?n:+n;n=hd(n);var u=ub.test(n);return u||cb.test(n)?Ub(n.slice(2),u?2:8):ab.test(n)?Z:+n}function Yp(n){return yr(n,kt(n))}function RE(n){return n?On(xe(n),-te,te):n===0?n:0}function ke(n){return n==null?"":Nt(n)}var PE=ii(function(n,o){if(ji(o)||Ct(o)){yr(o,ct(o),n);return}for(var u in o)Fe.call(o,u)&&Ii(n,u,o[u])}),Xp=ii(function(n,o){yr(o,kt(o),n)}),Fs=ii(function(n,o,u,y){yr(o,kt(o),n,y)}),CE=ii(function(n,o,u,y){yr(o,ct(o),n,y)}),kE=Dr(Ru);function $E(n,o){var u=ni(n);return o==null?u:Pd(u,o)}var IE=_e(function(n,o){n=Ne(n);var u=-1,y=o.length,_=y>2?o[2]:r;for(_&&Ot(o[0],o[1],_)&&(y=1);++u<y;)for(var T=o[u],P=kt(T),I=-1,z=P.length;++I<z;){var V=P[I],X=n[V];(X===r||lr(X,ei[V])&&!Fe.call(n,V))&&(n[V]=T[V])}return n}),LE=_e(function(n){return n.push(r,hp),Ft(Jp,r,n)});function ME(n,o){return cd(n,pe(o,3),vr)}function FE(n,o){return cd(n,pe(o,3),Cu)}function DE(n,o){return n==null?n:Pu(n,pe(o,3),kt)}function NE(n,o){return n==null?n:Ld(n,pe(o,3),kt)}function jE(n,o){return n&&vr(n,pe(o,3))}function zE(n,o){return n&&Cu(n,pe(o,3))}function WE(n){return n==null?[]:vs(n,ct(n))}function UE(n){return n==null?[]:vs(n,kt(n))}function ul(n,o,u){var y=n==null?r:An(n,o);return y===r?u:y}function BE(n,o){return n!=null&&vp(n,o,d1)}function ll(n,o){return n!=null&&vp(n,o,p1)}var HE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=is.call(o)),n[o]=u},fl($t)),qE=lp(function(n,o,u){o!=null&&typeof o.toString!="function"&&(o=is.call(o)),Fe.call(n,o)?n[o].push(u):n[o]=[u]},pe),ZE=_e(Mi);function ct(n){return Ct(n)?Td(n):Lu(n)}function kt(n){return Ct(n)?Td(n,!0):E1(n)}function GE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,o(y,_,T),y)}),u}function KE(n,o){var u={};return o=pe(o,3),vr(n,function(y,_,T){Mr(u,_,o(y,_,T))}),u}var VE=ii(function(n,o,u){ys(n,o,u)}),Jp=ii(function(n,o,u,y){ys(n,o,u,y)}),YE=Dr(function(n,o){var u={};if(n==null)return u;var y=!1;o=Be(o,function(T){return T=nn(T,n),y||(y=T.length>1),T}),yr(n,Ku(n),u),y&&(u=Jt(u,g|p|b,H1));for(var _=o.length;_--;)zu(u,o[_]);return u});function XE(n,o){return Qp(n,Is(pe(o)))}var JE=Dr(function(n,o){return n==null?{}:O1(n,o)});function Qp(n,o){if(n==null)return{};var u=Be(Ku(n),function(y){return[y]});return o=pe(o),Hd(n,u,function(y,_){return o(y,_[0])})}function QE(n,o,u){o=nn(o,n);var y=-1,_=o.length;for(_||(_=1,n=r);++y<_;){var T=n==null?r:n[br(o[y])];T===r&&(y=_,T=u),n=jr(T)?T.call(n):T}return n}function e_(n,o,u){return n==null?n:Di(n,o,u)}function t_(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Di(n,o,u,y)}var eh=dp(ct),th=dp(kt);function r_(n,o,u){var y=we(n),_=y||sn(n)||ai(n);if(o=pe(o,4),u==null){var T=n&&n.constructor;_?u=y?new T:[]:Ge(n)?u=jr(T)?ni(as(n)):{}:u={}}return(_?Vt:vr)(n,function(P,I,z){return o(u,P,I,z)}),u}function n_(n,o){return n==null?!0:zu(n,o)}function i_(n,o,u){return n==null?n:Vd(n,o,Bu(u))}function o_(n,o,u,y){return y=typeof y=="function"?y:r,n==null?n:Vd(n,o,Bu(u),y)}function ui(n){return n==null?[]:xu(n,ct(n))}function s_(n){return n==null?[]:xu(n,kt(n))}function a_(n,o,u){return u===r&&(u=o,o=r),u!==r&&(u=tr(u),u=u===u?u:0),o!==r&&(o=tr(o),o=o===o?o:0),On(tr(n),o,u)}function u_(n,o,u){return o=zr(o),u===r?(u=o,o=0):u=zr(u),n=tr(n),h1(n,o,u)}function l_(n,o,u){if(u&&typeof u!="boolean"&&Ot(n,o,u)&&(o=u=r),u===r&&(typeof o=="boolean"?(u=o,o=r):typeof n=="boolean"&&(u=n,n=r)),n===r&&o===r?(n=0,o=1):(n=zr(n),o===r?(o=n,n=0):o=zr(o)),n>o){var y=n;n=o,o=y}if(u||n%1||o%1){var _=Od();return bt(n+_*(o-n+Wb("1e-"+((_+"").length-1))),o)}return Du(n,o)}var c_=oi(function(n,o,u){return o=o.toLowerCase(),n+(u?rh(o):o)});function rh(n){return cl(ke(n).toLowerCase())}function nh(n){return n=ke(n),n&&n.replace(db,ew).replace(kb,"")}function f_(n,o,u){n=ke(n),o=Nt(o);var y=n.length;u=u===r?y:On(xe(u),0,y);var _=u;return u-=o.length,u>=0&&n.slice(u,_)==o}function d_(n){return n=ke(n),n&&Z0.test(n)?n.replace(Lf,tw):n}function p_(n){return n=ke(n),n&&J0.test(n)?n.replace(ou,"\\$&"):n}var h_=oi(function(n,o,u){return n+(u?"-":"")+o.toLowerCase()}),g_=oi(function(n,o,u){return n+(u?" ":"")+o.toLowerCase()}),m_=sp("toLowerCase");function v_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;if(!o||y>=o)return n;var _=(o-y)/2;return _s(fs(_),u)+n+_s(cs(_),u)}function y_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?n+_s(o-y,u):n}function b_(n,o,u){n=ke(n),o=xe(o);var y=o?Jn(n):0;return o&&y<o?_s(o-y,u)+n:n}function w_(n,o,u){return u||o==null?o=0:o&&(o=+o),Tw(ke(n).replace(su,""),o||0)}function x_(n,o,u){return(u?Ot(n,o,u):o===r)?o=1:o=xe(o),Nu(ke(n),o)}function S_(){var n=arguments,o=ke(n[0]);return n.length<3?o:o.replace(n[1],n[2])}var E_=oi(function(n,o,u){return n+(u?"_":"")+o.toLowerCase()});function __(n,o,u){return u&&typeof u!="number"&&Ot(n,o,u)&&(o=u=r),u=u===r?Q:u>>>0,u?(n=ke(n),n&&(typeof o=="string"||o!=null&&!al(o))&&(o=Nt(o),!o&&Xn(n))?on(ar(n),0,u):n.split(o,u)):[]}var O_=oi(function(n,o,u){return n+(u?" ":"")+cl(o)});function A_(n,o,u){return n=ke(n),u=u==null?0:On(xe(u),0,n.length),o=Nt(o),n.slice(u,u+o.length)==o}function T_(n,o,u){var y=A.templateSettings;u&&Ot(n,o,u)&&(o=r),n=ke(n),o=Fs({},o,y,pp);var _=Fs({},o.imports,y.imports,pp),T=ct(_),P=xu(_,T),I,z,V=0,X=o.interpolate||Vo,ee="__p += '",oe=Eu((o.escape||Vo).source+"|"+X.source+"|"+(X===Mf?sb:Vo).source+"|"+(o.evaluate||Vo).source+"|$","g"),le="//# sourceURL="+(Fe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++Fb+"]")+`
185
- `;n.replace(oe,function(ge,Oe,Re,zt,At,Wt){return Re||(Re=zt),ee+=n.slice(V,Wt).replace(pb,rw),Oe&&(I=!0,ee+=`' +
186
- __e(`+Oe+`) +
187
- '`),At&&(z=!0,ee+=`';
188
- `+At+`;
189
- __p += '`),Re&&(ee+=`' +
190
- ((__t = (`+Re+`)) == null ? '' : __t) +
191
- '`),V=Wt+ge.length,ge}),ee+=`';
192
- `;var he=Fe.call(o,"variable")&&o.variable;if(!he)ee=`with (obj) {
193
- `+ee+`
229
+ */var T$=Ia.exports,g0;function R$(){return g0||(g0=1,(function(e,t){(function(){var r,n="4.17.21",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="__lodash_hash_undefined__",p=500,h="__lodash_placeholder__",f=1,g=2,b=4,S=1,v=2,y=1,m=2,w=4,x=8,k=16,E=32,R=64,F=128,P=256,L=512,V=30,$="...",I=800,j=16,W=1,N=2,Y=3,X=1/0,K=9007199254740991,ge=17976931348623157e292,D=NaN,U=4294967295,ee=U-1,te=U>>>1,J=[["ary",F],["bind",y],["bindKey",m],["curry",x],["curryRight",k],["flip",L],["partial",E],["partialRight",R],["rearg",P]],se="[object Arguments]",ae="[object Array]",re="[object AsyncFunction]",le="[object Boolean]",pe="[object Date]",de="[object DOMException]",ye="[object Error]",Z="[object Function]",Oe="[object GeneratorFunction]",ve="[object Map]",pt="[object Number]",Et="[object Null]",Nt="[object Object]",zi="[object Promise]",or="[object Proxy]",Dt="[object RegExp]",Rt="[object Set]",Dr="[object String]",Vr="[object Symbol]",ii="[object Undefined]",Mr="[object WeakMap]",oi="[object WeakSet]",Lr="[object ArrayBuffer]",mr="[object DataView]",un="[object Float32Array]",Mo="[object Float64Array]",ji="[object Int8Array]",ai="[object Int16Array]",si="[object Int32Array]",Lo="[object Uint8Array]",Fi="[object Uint8ClampedArray]",$o="[object Uint16Array]",Hi="[object Uint32Array]",Uc=/\b__p \+= '';/g,$e=/\b(__p \+=) '' \+/g,je=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mt=/&(?:amp|lt|gt|quot|#39);/g,dn=/[&<>"']/g,Bi=RegExp(Mt.source),li=RegExp(dn.source),Wi=/<%-([\s\S]+?)%>/g,Ui=/<%([\s\S]+?)%>/g,In=/<%=([\s\S]+?)%>/g,zo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,tS=/^\w*$/,rS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,qc=/[\\^$.*+?()[\]{}|]/g,nS=RegExp(qc.source),Vc=/^\s+/,iS=/\s/,oS=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,aS=/\{\n\/\* \[wrapped with (.+)\] \*/,sS=/,? & /,lS=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,cS=/[()=,{}\[\]\/\s]/,uS=/\\(\\)?/g,dS=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Up=/\w*$/,fS=/^[-+]0x[0-9a-f]+$/i,pS=/^0b[01]+$/i,hS=/^\[object .+?Constructor\]$/,gS=/^0o[0-7]+$/i,vS=/^(?:0|[1-9]\d*)$/,mS=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,vs=/($^)/,bS=/['\n\r\u2028\u2029\\]/g,ms="\\ud800-\\udfff",yS="\\u0300-\\u036f",wS="\\ufe20-\\ufe2f",xS="\\u20d0-\\u20ff",qp=yS+wS+xS,Vp="\\u2700-\\u27bf",Gp="a-z\\xdf-\\xf6\\xf8-\\xff",SS="\\xac\\xb1\\xd7\\xf7",_S="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ES="\\u2000-\\u206f",kS=" \\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",Kp="A-Z\\xc0-\\xd6\\xd8-\\xde",Zp="\\ufe0e\\ufe0f",Yp=SS+_S+ES+kS,Gc="['’]",OS="["+ms+"]",Xp="["+Yp+"]",bs="["+qp+"]",Jp="\\d+",AS="["+Vp+"]",Qp="["+Gp+"]",eh="[^"+ms+Yp+Jp+Vp+Gp+Kp+"]",Kc="\\ud83c[\\udffb-\\udfff]",TS="(?:"+bs+"|"+Kc+")",th="[^"+ms+"]",Zc="(?:\\ud83c[\\udde6-\\uddff]){2}",Yc="[\\ud800-\\udbff][\\udc00-\\udfff]",qi="["+Kp+"]",rh="\\u200d",nh="(?:"+Qp+"|"+eh+")",RS="(?:"+qi+"|"+eh+")",ih="(?:"+Gc+"(?:d|ll|m|re|s|t|ve))?",oh="(?:"+Gc+"(?:D|LL|M|RE|S|T|VE))?",ah=TS+"?",sh="["+Zp+"]?",CS="(?:"+rh+"(?:"+[th,Zc,Yc].join("|")+")"+sh+ah+")*",PS="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",IS="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",lh=sh+ah+CS,NS="(?:"+[AS,Zc,Yc].join("|")+")"+lh,DS="(?:"+[th+bs+"?",bs,Zc,Yc,OS].join("|")+")",MS=RegExp(Gc,"g"),LS=RegExp(bs,"g"),Xc=RegExp(Kc+"(?="+Kc+")|"+DS+lh,"g"),$S=RegExp([qi+"?"+Qp+"+"+ih+"(?="+[Xp,qi,"$"].join("|")+")",RS+"+"+oh+"(?="+[Xp,qi+nh,"$"].join("|")+")",qi+"?"+nh+"+"+ih,qi+"+"+oh,IS,PS,Jp,NS].join("|"),"g"),zS=RegExp("["+rh+ms+qp+Zp+"]"),jS=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,FS=["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"],HS=-1,it={};it[un]=it[Mo]=it[ji]=it[ai]=it[si]=it[Lo]=it[Fi]=it[$o]=it[Hi]=!0,it[se]=it[ae]=it[Lr]=it[le]=it[mr]=it[pe]=it[ye]=it[Z]=it[ve]=it[pt]=it[Nt]=it[Dt]=it[Rt]=it[Dr]=it[Mr]=!1;var rt={};rt[se]=rt[ae]=rt[Lr]=rt[mr]=rt[le]=rt[pe]=rt[un]=rt[Mo]=rt[ji]=rt[ai]=rt[si]=rt[ve]=rt[pt]=rt[Nt]=rt[Dt]=rt[Rt]=rt[Dr]=rt[Vr]=rt[Lo]=rt[Fi]=rt[$o]=rt[Hi]=!0,rt[ye]=rt[Z]=rt[Mr]=!1;var BS={À:"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"},WS={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},US={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},qS={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},VS=parseFloat,GS=parseInt,ch=typeof ol=="object"&&ol&&ol.Object===Object&&ol,KS=typeof self=="object"&&self&&self.Object===Object&&self,Lt=ch||KS||Function("return this")(),Jc=t&&!t.nodeType&&t,ci=Jc&&!0&&e&&!e.nodeType&&e,uh=ci&&ci.exports===Jc,Qc=uh&&ch.process,br=(function(){try{var q=ci&&ci.require&&ci.require("util").types;return q||Qc&&Qc.binding&&Qc.binding("util")}catch{}})(),dh=br&&br.isArrayBuffer,fh=br&&br.isDate,ph=br&&br.isMap,hh=br&&br.isRegExp,gh=br&&br.isSet,vh=br&&br.isTypedArray;function ar(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 ZS(q,ne,Q,be){for(var Te=-1,Fe=q==null?0:q.length;++Te<Fe;){var kt=q[Te];ne(be,kt,Q(kt),q)}return be}function yr(q,ne){for(var Q=-1,be=q==null?0:q.length;++Q<be&&ne(q[Q],Q,q)!==!1;);return q}function YS(q,ne){for(var Q=q==null?0:q.length;Q--&&ne(q[Q],Q,q)!==!1;);return q}function mh(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 Nn(q,ne){for(var Q=-1,be=q==null?0:q.length,Te=0,Fe=[];++Q<be;){var kt=q[Q];ne(kt,Q,q)&&(Fe[Te++]=kt)}return Fe}function ys(q,ne){var Q=q==null?0:q.length;return!!Q&&Vi(q,ne,0)>-1}function eu(q,ne,Q){for(var be=-1,Te=q==null?0:q.length;++be<Te;)if(Q(ne,q[be]))return!0;return!1}function at(q,ne){for(var Q=-1,be=q==null?0:q.length,Te=Array(be);++Q<be;)Te[Q]=ne(q[Q],Q,q);return Te}function Dn(q,ne){for(var Q=-1,be=ne.length,Te=q.length;++Q<be;)q[Te+Q]=ne[Q];return q}function tu(q,ne,Q,be){var Te=-1,Fe=q==null?0:q.length;for(be&&Fe&&(Q=q[++Te]);++Te<Fe;)Q=ne(Q,q[Te],Te,q);return Q}function XS(q,ne,Q,be){var Te=q==null?0:q.length;for(be&&Te&&(Q=q[--Te]);Te--;)Q=ne(Q,q[Te],Te,q);return Q}function ru(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 JS=nu("length");function QS(q){return q.split("")}function e_(q){return q.match(lS)||[]}function bh(q,ne,Q){var be;return Q(q,function(Te,Fe,kt){if(ne(Te,Fe,kt))return be=Fe,!1}),be}function ws(q,ne,Q,be){for(var Te=q.length,Fe=Q+(be?1:-1);be?Fe--:++Fe<Te;)if(ne(q[Fe],Fe,q))return Fe;return-1}function Vi(q,ne,Q){return ne===ne?f_(q,ne,Q):ws(q,yh,Q)}function t_(q,ne,Q,be){for(var Te=Q-1,Fe=q.length;++Te<Fe;)if(be(q[Te],ne))return Te;return-1}function yh(q){return q!==q}function wh(q,ne){var Q=q==null?0:q.length;return Q?ou(q,ne)/Q:D}function nu(q){return function(ne){return ne==null?r:ne[q]}}function iu(q){return function(ne){return q==null?r:q[ne]}}function xh(q,ne,Q,be,Te){return Te(q,function(Fe,kt,et){Q=be?(be=!1,Fe):ne(Q,Fe,kt,et)}),Q}function r_(q,ne){var Q=q.length;for(q.sort(ne);Q--;)q[Q]=q[Q].value;return q}function ou(q,ne){for(var Q,be=-1,Te=q.length;++be<Te;){var Fe=ne(q[be]);Fe!==r&&(Q=Q===r?Fe:Q+Fe)}return Q}function au(q,ne){for(var Q=-1,be=Array(q);++Q<q;)be[Q]=ne(Q);return be}function n_(q,ne){return at(ne,function(Q){return[Q,q[Q]]})}function Sh(q){return q&&q.slice(0,Oh(q)+1).replace(Vc,"")}function sr(q){return function(ne){return q(ne)}}function su(q,ne){return at(ne,function(Q){return q[Q]})}function jo(q,ne){return q.has(ne)}function _h(q,ne){for(var Q=-1,be=q.length;++Q<be&&Vi(ne,q[Q],0)>-1;);return Q}function Eh(q,ne){for(var Q=q.length;Q--&&Vi(ne,q[Q],0)>-1;);return Q}function i_(q,ne){for(var Q=q.length,be=0;Q--;)q[Q]===ne&&++be;return be}var o_=iu(BS),a_=iu(WS);function s_(q){return"\\"+qS[q]}function l_(q,ne){return q==null?r:q[ne]}function Gi(q){return zS.test(q)}function c_(q){return jS.test(q)}function u_(q){for(var ne,Q=[];!(ne=q.next()).done;)Q.push(ne.value);return Q}function lu(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be,Te){Q[++ne]=[Te,be]}),Q}function kh(q,ne){return function(Q){return q(ne(Q))}}function Mn(q,ne){for(var Q=-1,be=q.length,Te=0,Fe=[];++Q<be;){var kt=q[Q];(kt===ne||kt===h)&&(q[Q]=h,Fe[Te++]=Q)}return Fe}function xs(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be){Q[++ne]=be}),Q}function d_(q){var ne=-1,Q=Array(q.size);return q.forEach(function(be){Q[++ne]=[be,be]}),Q}function f_(q,ne,Q){for(var be=Q-1,Te=q.length;++be<Te;)if(q[be]===ne)return be;return-1}function p_(q,ne,Q){for(var be=Q+1;be--;)if(q[be]===ne)return be;return be}function Ki(q){return Gi(q)?g_(q):JS(q)}function $r(q){return Gi(q)?v_(q):QS(q)}function Oh(q){for(var ne=q.length;ne--&&iS.test(q.charAt(ne)););return ne}var h_=iu(US);function g_(q){for(var ne=Xc.lastIndex=0;Xc.test(q);)++ne;return ne}function v_(q){return q.match(Xc)||[]}function m_(q){return q.match($S)||[]}var b_=(function q(ne){ne=ne==null?Lt:Zi.defaults(Lt.Object(),ne,Zi.pick(Lt,FS));var Q=ne.Array,be=ne.Date,Te=ne.Error,Fe=ne.Function,kt=ne.Math,et=ne.Object,cu=ne.RegExp,y_=ne.String,wr=ne.TypeError,Ss=Q.prototype,w_=Fe.prototype,Yi=et.prototype,_s=ne["__core-js_shared__"],Es=w_.toString,Ye=Yi.hasOwnProperty,x_=0,Ah=(function(){var i=/[^.]+$/.exec(_s&&_s.keys&&_s.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""})(),ks=Yi.toString,S_=Es.call(et),__=Lt._,E_=cu("^"+Es.call(Ye).replace(qc,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Os=uh?ne.Buffer:r,Ln=ne.Symbol,As=ne.Uint8Array,Th=Os?Os.allocUnsafe:r,Ts=kh(et.getPrototypeOf,et),Rh=et.create,Ch=Yi.propertyIsEnumerable,Rs=Ss.splice,Ph=Ln?Ln.isConcatSpreadable:r,Fo=Ln?Ln.iterator:r,ui=Ln?Ln.toStringTag:r,Cs=(function(){try{var i=gi(et,"defineProperty");return i({},"",{}),i}catch{}})(),k_=ne.clearTimeout!==Lt.clearTimeout&&ne.clearTimeout,O_=be&&be.now!==Lt.Date.now&&be.now,A_=ne.setTimeout!==Lt.setTimeout&&ne.setTimeout,Ps=kt.ceil,Is=kt.floor,uu=et.getOwnPropertySymbols,T_=Os?Os.isBuffer:r,Ih=ne.isFinite,R_=Ss.join,C_=kh(et.keys,et),Ot=kt.max,Ht=kt.min,P_=be.now,I_=ne.parseInt,Nh=kt.random,N_=Ss.reverse,du=gi(ne,"DataView"),Ho=gi(ne,"Map"),fu=gi(ne,"Promise"),Xi=gi(ne,"Set"),Bo=gi(ne,"WeakMap"),Wo=gi(et,"create"),Ns=Bo&&new Bo,Ji={},D_=vi(du),M_=vi(Ho),L_=vi(fu),$_=vi(Xi),z_=vi(Bo),Ds=Ln?Ln.prototype:r,Uo=Ds?Ds.valueOf:r,Dh=Ds?Ds.toString:r;function T(i){if(ht(i)&&!Re(i)&&!(i instanceof Me)){if(i instanceof xr)return i;if(Ye.call(i,"__wrapped__"))return Mg(i)}return new xr(i)}var Qi=(function(){function i(){}return function(s){if(!ut(s))return{};if(Rh)return Rh(s);i.prototype=s;var d=new i;return i.prototype=r,d}})();function Ms(){}function xr(i,s){this.__wrapped__=i,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=r}T.templateSettings={escape:Wi,evaluate:Ui,interpolate:In,variable:"",imports:{_:T}},T.prototype=Ms.prototype,T.prototype.constructor=T,xr.prototype=Qi(Ms.prototype),xr.prototype.constructor=xr;function Me(i){this.__wrapped__=i,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=U,this.__views__=[]}function j_(){var i=new Me(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 F_(){if(this.__filtered__){var i=new Me(this);i.__dir__=-1,i.__filtered__=!0}else i=this.clone(),i.__dir__*=-1;return i}function H_(){var i=this.__wrapped__.value(),s=this.__dir__,d=Re(i),_=s<0,O=d?i.length:0,C=QE(0,O,this.__views__),M=C.start,H=C.end,G=H-M,ie=_?H:M-1,oe=this.__iteratees__,ce=oe.length,me=0,Se=Ht(G,this.__takeCount__);if(!d||!_&&O==G&&Se==G)return ig(i,this.__actions__);var Ee=[];e:for(;G--&&me<Se;){ie+=s;for(var Pe=-1,ke=i[ie];++Pe<ce;){var De=oe[Pe],Le=De.iteratee,ur=De.type,Kt=Le(ke);if(ur==N)ke=Kt;else if(!Kt){if(ur==W)continue e;break e}}Ee[me++]=ke}return Ee}Me.prototype=Qi(Ms.prototype),Me.prototype.constructor=Me;function di(i){var s=-1,d=i==null?0:i.length;for(this.clear();++s<d;){var _=i[s];this.set(_[0],_[1])}}function B_(){this.__data__=Wo?Wo(null):{},this.size=0}function W_(i){var s=this.has(i)&&delete this.__data__[i];return this.size-=s?1:0,s}function U_(i){var s=this.__data__;if(Wo){var d=s[i];return d===u?r:d}return Ye.call(s,i)?s[i]:r}function q_(i){var s=this.__data__;return Wo?s[i]!==r:Ye.call(s,i)}function V_(i,s){var d=this.__data__;return this.size+=this.has(i)?0:1,d[i]=Wo&&s===r?u:s,this}di.prototype.clear=B_,di.prototype.delete=W_,di.prototype.get=U_,di.prototype.has=q_,di.prototype.set=V_;function fn(i){var s=-1,d=i==null?0:i.length;for(this.clear();++s<d;){var _=i[s];this.set(_[0],_[1])}}function G_(){this.__data__=[],this.size=0}function K_(i){var s=this.__data__,d=Ls(s,i);if(d<0)return!1;var _=s.length-1;return d==_?s.pop():Rs.call(s,d,1),--this.size,!0}function Z_(i){var s=this.__data__,d=Ls(s,i);return d<0?r:s[d][1]}function Y_(i){return Ls(this.__data__,i)>-1}function X_(i,s){var d=this.__data__,_=Ls(d,i);return _<0?(++this.size,d.push([i,s])):d[_][1]=s,this}fn.prototype.clear=G_,fn.prototype.delete=K_,fn.prototype.get=Z_,fn.prototype.has=Y_,fn.prototype.set=X_;function pn(i){var s=-1,d=i==null?0:i.length;for(this.clear();++s<d;){var _=i[s];this.set(_[0],_[1])}}function J_(){this.size=0,this.__data__={hash:new di,map:new(Ho||fn),string:new di}}function Q_(i){var s=Ks(this,i).delete(i);return this.size-=s?1:0,s}function eE(i){return Ks(this,i).get(i)}function tE(i){return Ks(this,i).has(i)}function rE(i,s){var d=Ks(this,i),_=d.size;return d.set(i,s),this.size+=d.size==_?0:1,this}pn.prototype.clear=J_,pn.prototype.delete=Q_,pn.prototype.get=eE,pn.prototype.has=tE,pn.prototype.set=rE;function fi(i){var s=-1,d=i==null?0:i.length;for(this.__data__=new pn;++s<d;)this.add(i[s])}function nE(i){return this.__data__.set(i,u),this}function iE(i){return this.__data__.has(i)}fi.prototype.add=fi.prototype.push=nE,fi.prototype.has=iE;function zr(i){var s=this.__data__=new fn(i);this.size=s.size}function oE(){this.__data__=new fn,this.size=0}function aE(i){var s=this.__data__,d=s.delete(i);return this.size=s.size,d}function sE(i){return this.__data__.get(i)}function lE(i){return this.__data__.has(i)}function cE(i,s){var d=this.__data__;if(d instanceof fn){var _=d.__data__;if(!Ho||_.length<o-1)return _.push([i,s]),this.size=++d.size,this;d=this.__data__=new pn(_)}return d.set(i,s),this.size=d.size,this}zr.prototype.clear=oE,zr.prototype.delete=aE,zr.prototype.get=sE,zr.prototype.has=lE,zr.prototype.set=cE;function Mh(i,s){var d=Re(i),_=!d&&mi(i),O=!d&&!_&&Hn(i),C=!d&&!_&&!O&&no(i),M=d||_||O||C,H=M?au(i.length,y_):[],G=H.length;for(var ie in i)(s||Ye.call(i,ie))&&!(M&&(ie=="length"||O&&(ie=="offset"||ie=="parent")||C&&(ie=="buffer"||ie=="byteLength"||ie=="byteOffset")||mn(ie,G)))&&H.push(ie);return H}function Lh(i){var s=i.length;return s?i[_u(0,s-1)]:r}function uE(i,s){return Zs(Jt(i),pi(s,0,i.length))}function dE(i){return Zs(Jt(i))}function pu(i,s,d){(d!==r&&!jr(i[s],d)||d===r&&!(s in i))&&hn(i,s,d)}function qo(i,s,d){var _=i[s];(!(Ye.call(i,s)&&jr(_,d))||d===r&&!(s in i))&&hn(i,s,d)}function Ls(i,s){for(var d=i.length;d--;)if(jr(i[d][0],s))return d;return-1}function fE(i,s,d,_){return $n(i,function(O,C,M){s(_,O,d(O),M)}),_}function $h(i,s){return i&&Kr(s,Ct(s),i)}function pE(i,s){return i&&Kr(s,er(s),i)}function hn(i,s,d){s=="__proto__"&&Cs?Cs(i,s,{configurable:!0,enumerable:!0,value:d,writable:!0}):i[s]=d}function hu(i,s){for(var d=-1,_=s.length,O=Q(_),C=i==null;++d<_;)O[d]=C?r:Ku(i,s[d]);return O}function pi(i,s,d){return i===i&&(d!==r&&(i=i<=d?i:d),s!==r&&(i=i>=s?i:s)),i}function Sr(i,s,d,_,O,C){var M,H=s&f,G=s&g,ie=s&b;if(d&&(M=O?d(i,_,O,C):d(i)),M!==r)return M;if(!ut(i))return i;var oe=Re(i);if(oe){if(M=tk(i),!H)return Jt(i,M)}else{var ce=Bt(i),me=ce==Z||ce==Oe;if(Hn(i))return sg(i,H);if(ce==Nt||ce==se||me&&!O){if(M=G||me?{}:Og(i),!H)return G?UE(i,pE(M,i)):WE(i,$h(M,i))}else{if(!rt[ce])return O?i:{};M=rk(i,ce,H)}}C||(C=new zr);var Se=C.get(i);if(Se)return Se;C.set(i,M),tv(i)?i.forEach(function(ke){M.add(Sr(ke,s,d,ke,i,C))}):Qg(i)&&i.forEach(function(ke,De){M.set(De,Sr(ke,s,d,De,i,C))});var Ee=ie?G?Du:Nu:G?er:Ct,Pe=oe?r:Ee(i);return yr(Pe||i,function(ke,De){Pe&&(De=ke,ke=i[De]),qo(M,De,Sr(ke,s,d,De,i,C))}),M}function hE(i){var s=Ct(i);return function(d){return zh(d,i,s)}}function zh(i,s,d){var _=d.length;if(i==null)return!_;for(i=et(i);_--;){var O=d[_],C=s[O],M=i[O];if(M===r&&!(O in i)||!C(M))return!1}return!0}function jh(i,s,d){if(typeof i!="function")throw new wr(l);return Jo(function(){i.apply(r,d)},s)}function Vo(i,s,d,_){var O=-1,C=ys,M=!0,H=i.length,G=[],ie=s.length;if(!H)return G;d&&(s=at(s,sr(d))),_?(C=eu,M=!1):s.length>=o&&(C=jo,M=!1,s=new fi(s));e:for(;++O<H;){var oe=i[O],ce=d==null?oe:d(oe);if(oe=_||oe!==0?oe:0,M&&ce===ce){for(var me=ie;me--;)if(s[me]===ce)continue e;G.push(oe)}else C(s,ce,_)||G.push(oe)}return G}var $n=fg(Gr),Fh=fg(vu,!0);function gE(i,s){var d=!0;return $n(i,function(_,O,C){return d=!!s(_,O,C),d}),d}function $s(i,s,d){for(var _=-1,O=i.length;++_<O;){var C=i[_],M=s(C);if(M!=null&&(H===r?M===M&&!cr(M):d(M,H)))var H=M,G=C}return G}function vE(i,s,d,_){var O=i.length;for(d=Ce(d),d<0&&(d=-d>O?0:O+d),_=_===r||_>O?O:Ce(_),_<0&&(_+=O),_=d>_?0:nv(_);d<_;)i[d++]=s;return i}function Hh(i,s){var d=[];return $n(i,function(_,O,C){s(_,O,C)&&d.push(_)}),d}function $t(i,s,d,_,O){var C=-1,M=i.length;for(d||(d=ik),O||(O=[]);++C<M;){var H=i[C];s>0&&d(H)?s>1?$t(H,s-1,d,_,O):Dn(O,H):_||(O[O.length]=H)}return O}var gu=pg(),Bh=pg(!0);function Gr(i,s){return i&&gu(i,s,Ct)}function vu(i,s){return i&&Bh(i,s,Ct)}function zs(i,s){return Nn(s,function(d){return bn(i[d])})}function hi(i,s){s=jn(s,i);for(var d=0,_=s.length;i!=null&&d<_;)i=i[Zr(s[d++])];return d&&d==_?i:r}function Wh(i,s,d){var _=s(i);return Re(i)?_:Dn(_,d(i))}function Vt(i){return i==null?i===r?ii:Et:ui&&ui in et(i)?JE(i):dk(i)}function mu(i,s){return i>s}function mE(i,s){return i!=null&&Ye.call(i,s)}function bE(i,s){return i!=null&&s in et(i)}function yE(i,s,d){return i>=Ht(s,d)&&i<Ot(s,d)}function bu(i,s,d){for(var _=d?eu:ys,O=i[0].length,C=i.length,M=C,H=Q(C),G=1/0,ie=[];M--;){var oe=i[M];M&&s&&(oe=at(oe,sr(s))),G=Ht(oe.length,G),H[M]=!d&&(s||O>=120&&oe.length>=120)?new fi(M&&oe):r}oe=i[0];var ce=-1,me=H[0];e:for(;++ce<O&&ie.length<G;){var Se=oe[ce],Ee=s?s(Se):Se;if(Se=d||Se!==0?Se:0,!(me?jo(me,Ee):_(ie,Ee,d))){for(M=C;--M;){var Pe=H[M];if(!(Pe?jo(Pe,Ee):_(i[M],Ee,d)))continue e}me&&me.push(Ee),ie.push(Se)}}return ie}function wE(i,s,d,_){return Gr(i,function(O,C,M){s(_,d(O),C,M)}),_}function Go(i,s,d){s=jn(s,i),i=Cg(i,s);var _=i==null?i:i[Zr(Er(s))];return _==null?r:ar(_,i,d)}function Uh(i){return ht(i)&&Vt(i)==se}function xE(i){return ht(i)&&Vt(i)==Lr}function SE(i){return ht(i)&&Vt(i)==pe}function Ko(i,s,d,_,O){return i===s?!0:i==null||s==null||!ht(i)&&!ht(s)?i!==i&&s!==s:_E(i,s,d,_,Ko,O)}function _E(i,s,d,_,O,C){var M=Re(i),H=Re(s),G=M?ae:Bt(i),ie=H?ae:Bt(s);G=G==se?Nt:G,ie=ie==se?Nt:ie;var oe=G==Nt,ce=ie==Nt,me=G==ie;if(me&&Hn(i)){if(!Hn(s))return!1;M=!0,oe=!1}if(me&&!oe)return C||(C=new zr),M||no(i)?_g(i,s,d,_,O,C):YE(i,s,G,d,_,O,C);if(!(d&S)){var Se=oe&&Ye.call(i,"__wrapped__"),Ee=ce&&Ye.call(s,"__wrapped__");if(Se||Ee){var Pe=Se?i.value():i,ke=Ee?s.value():s;return C||(C=new zr),O(Pe,ke,d,_,C)}}return me?(C||(C=new zr),XE(i,s,d,_,O,C)):!1}function EE(i){return ht(i)&&Bt(i)==ve}function yu(i,s,d,_){var O=d.length,C=O,M=!_;if(i==null)return!C;for(i=et(i);O--;){var H=d[O];if(M&&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(M&&H[2]){if(ie===r&&!(G in i))return!1}else{var ce=new zr;if(_)var me=_(ie,oe,G,i,s,ce);if(!(me===r?Ko(oe,ie,S|v,_,ce):me))return!1}}return!0}function qh(i){if(!ut(i)||ak(i))return!1;var s=bn(i)?E_:hS;return s.test(vi(i))}function kE(i){return ht(i)&&Vt(i)==Dt}function OE(i){return ht(i)&&Bt(i)==Rt}function AE(i){return ht(i)&&tl(i.length)&&!!it[Vt(i)]}function Vh(i){return typeof i=="function"?i:i==null?tr:typeof i=="object"?Re(i)?Zh(i[0],i[1]):Kh(i):hv(i)}function wu(i){if(!Xo(i))return C_(i);var s=[];for(var d in et(i))Ye.call(i,d)&&d!="constructor"&&s.push(d);return s}function TE(i){if(!ut(i))return uk(i);var s=Xo(i),d=[];for(var _ in i)_=="constructor"&&(s||!Ye.call(i,_))||d.push(_);return d}function xu(i,s){return i<s}function Gh(i,s){var d=-1,_=Qt(i)?Q(i.length):[];return $n(i,function(O,C,M){_[++d]=s(O,C,M)}),_}function Kh(i){var s=Lu(i);return s.length==1&&s[0][2]?Tg(s[0][0],s[0][1]):function(d){return d===i||yu(d,i,s)}}function Zh(i,s){return zu(i)&&Ag(s)?Tg(Zr(i),s):function(d){var _=Ku(d,i);return _===r&&_===s?Zu(d,i):Ko(s,_,S|v)}}function js(i,s,d,_,O){i!==s&&gu(s,function(C,M){if(O||(O=new zr),ut(C))RE(i,s,M,d,js,_,O);else{var H=_?_(Fu(i,M),C,M+"",i,s,O):r;H===r&&(H=C),pu(i,M,H)}},er)}function RE(i,s,d,_,O,C,M){var H=Fu(i,d),G=Fu(s,d),ie=M.get(G);if(ie){pu(i,d,ie);return}var oe=C?C(H,G,d+"",i,s,M):r,ce=oe===r;if(ce){var me=Re(G),Se=!me&&Hn(G),Ee=!me&&!Se&&no(G);oe=G,me||Se||Ee?Re(H)?oe=H:vt(H)?oe=Jt(H):Se?(ce=!1,oe=sg(G,!0)):Ee?(ce=!1,oe=lg(G,!0)):oe=[]:Qo(G)||mi(G)?(oe=H,mi(H)?oe=iv(H):(!ut(H)||bn(H))&&(oe=Og(G))):ce=!1}ce&&(M.set(G,oe),O(oe,G,_,C,M),M.delete(G)),pu(i,d,oe)}function Yh(i,s){var d=i.length;if(d)return s+=s<0?d:0,mn(s,d)?i[s]:r}function Xh(i,s,d){s.length?s=at(s,function(C){return Re(C)?function(M){return hi(M,C.length===1?C[0]:C)}:C}):s=[tr];var _=-1;s=at(s,sr(_e()));var O=Gh(i,function(C,M,H){var G=at(s,function(ie){return ie(C)});return{criteria:G,index:++_,value:C}});return r_(O,function(C,M){return BE(C,M,d)})}function CE(i,s){return Jh(i,s,function(d,_){return Zu(i,_)})}function Jh(i,s,d){for(var _=-1,O=s.length,C={};++_<O;){var M=s[_],H=hi(i,M);d(H,M)&&Zo(C,jn(M,i),H)}return C}function PE(i){return function(s){return hi(s,i)}}function Su(i,s,d,_){var O=_?t_:Vi,C=-1,M=s.length,H=i;for(i===s&&(s=Jt(s)),d&&(H=at(i,sr(d)));++C<M;)for(var G=0,ie=s[C],oe=d?d(ie):ie;(G=O(H,oe,G,_))>-1;)H!==i&&Rs.call(H,G,1),Rs.call(i,G,1);return i}function Qh(i,s){for(var d=i?s.length:0,_=d-1;d--;){var O=s[d];if(d==_||O!==C){var C=O;mn(O)?Rs.call(i,O,1):Ou(i,O)}}return i}function _u(i,s){return i+Is(Nh()*(s-i+1))}function IE(i,s,d,_){for(var O=-1,C=Ot(Ps((s-i)/(d||1)),0),M=Q(C);C--;)M[_?C:++O]=i,i+=d;return M}function Eu(i,s){var d="";if(!i||s<1||s>K)return d;do s%2&&(d+=i),s=Is(s/2),s&&(i+=i);while(s);return d}function Ie(i,s){return Hu(Rg(i,s,tr),i+"")}function NE(i){return Lh(io(i))}function DE(i,s){var d=io(i);return Zs(d,pi(s,0,d.length))}function Zo(i,s,d,_){if(!ut(i))return i;s=jn(s,i);for(var O=-1,C=s.length,M=C-1,H=i;H!=null&&++O<C;){var G=Zr(s[O]),ie=d;if(G==="__proto__"||G==="constructor"||G==="prototype")return i;if(O!=M){var oe=H[G];ie=_?_(oe,G,H):r,ie===r&&(ie=ut(oe)?oe:mn(s[O+1])?[]:{})}qo(H,G,ie),H=H[G]}return i}var eg=Ns?function(i,s){return Ns.set(i,s),i}:tr,ME=Cs?function(i,s){return Cs(i,"toString",{configurable:!0,enumerable:!1,value:Xu(s),writable:!0})}:tr;function LE(i){return Zs(io(i))}function _r(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 $E(i,s){var d;return $n(i,function(_,O,C){return d=s(_,O,C),!d}),!!d}function Fs(i,s,d){var _=0,O=i==null?_:i.length;if(typeof s=="number"&&s===s&&O<=te){for(;_<O;){var C=_+O>>>1,M=i[C];M!==null&&!cr(M)&&(d?M<=s:M<s)?_=C+1:O=C}return O}return ku(i,s,tr,d)}function ku(i,s,d,_){var O=0,C=i==null?0:i.length;if(C===0)return 0;s=d(s);for(var M=s!==s,H=s===null,G=cr(s),ie=s===r;O<C;){var oe=Is((O+C)/2),ce=d(i[oe]),me=ce!==r,Se=ce===null,Ee=ce===ce,Pe=cr(ce);if(M)var ke=_||Ee;else ie?ke=Ee&&(_||me):H?ke=Ee&&me&&(_||!Se):G?ke=Ee&&me&&!Se&&(_||!Pe):Se||Pe?ke=!1:ke=_?ce<=s:ce<s;ke?O=oe+1:C=oe}return Ht(C,ee)}function tg(i,s){for(var d=-1,_=i.length,O=0,C=[];++d<_;){var M=i[d],H=s?s(M):M;if(!d||!jr(H,G)){var G=H;C[O++]=M===0?0:M}}return C}function rg(i){return typeof i=="number"?i:cr(i)?D:+i}function lr(i){if(typeof i=="string")return i;if(Re(i))return at(i,lr)+"";if(cr(i))return Dh?Dh.call(i):"";var s=i+"";return s=="0"&&1/i==-X?"-0":s}function zn(i,s,d){var _=-1,O=ys,C=i.length,M=!0,H=[],G=H;if(d)M=!1,O=eu;else if(C>=o){var ie=s?null:KE(i);if(ie)return xs(ie);M=!1,O=jo,G=new fi}else G=s?[]:H;e:for(;++_<C;){var oe=i[_],ce=s?s(oe):oe;if(oe=d||oe!==0?oe:0,M&&ce===ce){for(var me=G.length;me--;)if(G[me]===ce)continue e;s&&G.push(ce),H.push(oe)}else O(G,ce,d)||(G!==H&&G.push(ce),H.push(oe))}return H}function Ou(i,s){return s=jn(s,i),i=Cg(i,s),i==null||delete i[Zr(Er(s))]}function ng(i,s,d,_){return Zo(i,s,d(hi(i,s)),_)}function Hs(i,s,d,_){for(var O=i.length,C=_?O:-1;(_?C--:++C<O)&&s(i[C],C,i););return d?_r(i,_?0:C,_?C+1:O):_r(i,_?C+1:0,_?O:C)}function ig(i,s){var d=i;return d instanceof Me&&(d=d.value()),tu(s,function(_,O){return O.func.apply(O.thisArg,Dn([_],O.args))},d)}function Au(i,s,d){var _=i.length;if(_<2)return _?zn(i[0]):[];for(var O=-1,C=Q(_);++O<_;)for(var M=i[O],H=-1;++H<_;)H!=O&&(C[O]=Vo(C[O]||M,i[H],s,d));return zn($t(C,1),s,d)}function og(i,s,d){for(var _=-1,O=i.length,C=s.length,M={};++_<O;){var H=_<C?s[_]:r;d(M,i[_],H)}return M}function Tu(i){return vt(i)?i:[]}function Ru(i){return typeof i=="function"?i:tr}function jn(i,s){return Re(i)?i:zu(i,s)?[i]:Dg(Be(i))}var zE=Ie;function Fn(i,s,d){var _=i.length;return d=d===r?_:d,!s&&d>=_?i:_r(i,s,d)}var ag=k_||function(i){return Lt.clearTimeout(i)};function sg(i,s){if(s)return i.slice();var d=i.length,_=Th?Th(d):new i.constructor(d);return i.copy(_),_}function Cu(i){var s=new i.constructor(i.byteLength);return new As(s).set(new As(i)),s}function jE(i,s){var d=s?Cu(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.byteLength)}function FE(i){var s=new i.constructor(i.source,Up.exec(i));return s.lastIndex=i.lastIndex,s}function HE(i){return Uo?et(Uo.call(i)):{}}function lg(i,s){var d=s?Cu(i.buffer):i.buffer;return new i.constructor(d,i.byteOffset,i.length)}function cg(i,s){if(i!==s){var d=i!==r,_=i===null,O=i===i,C=cr(i),M=s!==r,H=s===null,G=s===s,ie=cr(s);if(!H&&!ie&&!C&&i>s||C&&M&&G&&!H&&!ie||_&&M&&G||!d&&G||!O)return 1;if(!_&&!C&&!ie&&i<s||ie&&d&&O&&!_&&!C||H&&d&&O||!M&&O||!G)return-1}return 0}function BE(i,s,d){for(var _=-1,O=i.criteria,C=s.criteria,M=O.length,H=d.length;++_<M;){var G=cg(O[_],C[_]);if(G){if(_>=H)return G;var ie=d[_];return G*(ie=="desc"?-1:1)}}return i.index-s.index}function ug(i,s,d,_){for(var O=-1,C=i.length,M=d.length,H=-1,G=s.length,ie=Ot(C-M,0),oe=Q(G+ie),ce=!_;++H<G;)oe[H]=s[H];for(;++O<M;)(ce||O<C)&&(oe[d[O]]=i[O]);for(;ie--;)oe[H++]=i[O++];return oe}function dg(i,s,d,_){for(var O=-1,C=i.length,M=-1,H=d.length,G=-1,ie=s.length,oe=Ot(C-H,0),ce=Q(oe+ie),me=!_;++O<oe;)ce[O]=i[O];for(var Se=O;++G<ie;)ce[Se+G]=s[G];for(;++M<H;)(me||O<C)&&(ce[Se+d[M]]=i[O++]);return ce}function Jt(i,s){var d=-1,_=i.length;for(s||(s=Q(_));++d<_;)s[d]=i[d];return s}function Kr(i,s,d,_){var O=!d;d||(d={});for(var C=-1,M=s.length;++C<M;){var H=s[C],G=_?_(d[H],i[H],H,d,i):r;G===r&&(G=i[H]),O?hn(d,H,G):qo(d,H,G)}return d}function WE(i,s){return Kr(i,$u(i),s)}function UE(i,s){return Kr(i,Eg(i),s)}function Bs(i,s){return function(d,_){var O=Re(d)?ZS:fE,C=s?s():{};return O(d,i,_e(_,2),C)}}function eo(i){return Ie(function(s,d){var _=-1,O=d.length,C=O>1?d[O-1]:r,M=O>2?d[2]:r;for(C=i.length>3&&typeof C=="function"?(O--,C):r,M&&Gt(d[0],d[1],M)&&(C=O<3?r:C,O=1),s=et(s);++_<O;){var H=d[_];H&&i(s,H,_,C)}return s})}function fg(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,M=et(d);(s?C--:++C<O)&&_(M[C],C,M)!==!1;);return d}}function pg(i){return function(s,d,_){for(var O=-1,C=et(s),M=_(s),H=M.length;H--;){var G=M[i?H:++O];if(d(C[G],G,C)===!1)break}return s}}function qE(i,s,d){var _=s&y,O=Yo(i);function C(){var M=this&&this!==Lt&&this instanceof C?O:i;return M.apply(_?d:this,arguments)}return C}function hg(i){return function(s){s=Be(s);var d=Gi(s)?$r(s):r,_=d?d[0]:s.charAt(0),O=d?Fn(d,1).join(""):s.slice(1);return _[i]()+O}}function to(i){return function(s){return tu(fv(dv(s).replace(MS,"")),i,"")}}function Yo(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=Qi(i.prototype),_=i.apply(d,s);return ut(_)?_:d}}function VE(i,s,d){var _=Yo(i);function O(){for(var C=arguments.length,M=Q(C),H=C,G=ro(O);H--;)M[H]=arguments[H];var ie=C<3&&M[0]!==G&&M[C-1]!==G?[]:Mn(M,G);if(C-=ie.length,C<d)return yg(i,s,Ws,O.placeholder,r,M,ie,r,r,d-C);var oe=this&&this!==Lt&&this instanceof O?_:i;return ar(oe,this,M)}return O}function gg(i){return function(s,d,_){var O=et(s);if(!Qt(s)){var C=_e(d,3);s=Ct(s),d=function(H){return C(O[H],H,O)}}var M=i(s,d,_);return M>-1?O[C?s[M]:M]:r}}function vg(i){return vn(function(s){var d=s.length,_=d,O=xr.prototype.thru;for(i&&s.reverse();_--;){var C=s[_];if(typeof C!="function")throw new wr(l);if(O&&!M&&Gs(C)=="wrapper")var M=new xr([],!0)}for(_=M?_:d;++_<d;){C=s[_];var H=Gs(C),G=H=="wrapper"?Mu(C):r;G&&ju(G[0])&&G[1]==(F|x|E|P)&&!G[4].length&&G[9]==1?M=M[Gs(G[0])].apply(M,G[3]):M=C.length==1&&ju(C)?M[H]():M.thru(C)}return function(){var ie=arguments,oe=ie[0];if(M&&ie.length==1&&Re(oe))return M.plant(oe).value();for(var ce=0,me=d?s[ce].apply(this,ie):oe;++ce<d;)me=s[ce].call(this,me);return me}})}function Ws(i,s,d,_,O,C,M,H,G,ie){var oe=s&F,ce=s&y,me=s&m,Se=s&(x|k),Ee=s&L,Pe=me?r:Yo(i);function ke(){for(var De=arguments.length,Le=Q(De),ur=De;ur--;)Le[ur]=arguments[ur];if(Se)var Kt=ro(ke),dr=i_(Le,Kt);if(_&&(Le=ug(Le,_,O,Se)),C&&(Le=dg(Le,C,M,Se)),De-=dr,Se&&De<ie){var mt=Mn(Le,Kt);return yg(i,s,Ws,ke.placeholder,d,Le,mt,H,G,ie-De)}var Fr=ce?d:this,wn=me?Fr[i]:i;return De=Le.length,H?Le=fk(Le,H):Ee&&De>1&&Le.reverse(),oe&&G<De&&(Le.length=G),this&&this!==Lt&&this instanceof ke&&(wn=Pe||Yo(wn)),wn.apply(Fr,Le)}return ke}function mg(i,s){return function(d,_){return wE(d,i,s(_),{})}}function Us(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=lr(d),_=lr(_)):(d=rg(d),_=rg(_)),O=i(d,_)}return O}}function Pu(i){return vn(function(s){return s=at(s,sr(_e())),Ie(function(d){var _=this;return i(s,function(O){return ar(O,_,d)})})})}function qs(i,s){s=s===r?" ":lr(s);var d=s.length;if(d<2)return d?Eu(s,i):s;var _=Eu(s,Ps(i/Ki(s)));return Gi(s)?Fn($r(_),0,i).join(""):_.slice(0,i)}function GE(i,s,d,_){var O=s&y,C=Yo(i);function M(){for(var H=-1,G=arguments.length,ie=-1,oe=_.length,ce=Q(oe+G),me=this&&this!==Lt&&this instanceof M?C:i;++ie<oe;)ce[ie]=_[ie];for(;G--;)ce[ie++]=arguments[++H];return ar(me,O?d:this,ce)}return M}function bg(i){return function(s,d,_){return _&&typeof _!="number"&&Gt(s,d,_)&&(d=_=r),s=yn(s),d===r?(d=s,s=0):d=yn(d),_=_===r?s<d?1:-1:yn(_),IE(s,d,_,i)}}function Vs(i){return function(s,d){return typeof s=="string"&&typeof d=="string"||(s=kr(s),d=kr(d)),i(s,d)}}function yg(i,s,d,_,O,C,M,H,G,ie){var oe=s&x,ce=oe?M:r,me=oe?r:M,Se=oe?C:r,Ee=oe?r:C;s|=oe?E:R,s&=~(oe?R:E),s&w||(s&=-4);var Pe=[i,s,O,Se,ce,Ee,me,H,G,ie],ke=d.apply(r,Pe);return ju(i)&&Pg(ke,Pe),ke.placeholder=_,Ig(ke,i,s)}function Iu(i){var s=kt[i];return function(d,_){if(d=kr(d),_=_==null?0:Ht(Ce(_),292),_&&Ih(d)){var O=(Be(d)+"e").split("e"),C=s(O[0]+"e"+(+O[1]+_));return O=(Be(C)+"e").split("e"),+(O[0]+"e"+(+O[1]-_))}return s(d)}}var KE=Xi&&1/xs(new Xi([,-0]))[1]==X?function(i){return new Xi(i)}:ed;function wg(i){return function(s){var d=Bt(s);return d==ve?lu(s):d==Rt?d_(s):n_(s,i(s))}}function gn(i,s,d,_,O,C,M,H){var G=s&m;if(!G&&typeof i!="function")throw new wr(l);var ie=_?_.length:0;if(ie||(s&=-97,_=O=r),M=M===r?M:Ot(Ce(M),0),H=H===r?H:Ce(H),ie-=O?O.length:0,s&R){var oe=_,ce=O;_=O=r}var me=G?r:Mu(i),Se=[i,s,d,_,O,oe,ce,C,M,H];if(me&&ck(Se,me),i=Se[0],s=Se[1],d=Se[2],_=Se[3],O=Se[4],H=Se[9]=Se[9]===r?G?0:i.length:Ot(Se[9]-ie,0),!H&&s&(x|k)&&(s&=-25),!s||s==y)var Ee=qE(i,s,d);else s==x||s==k?Ee=VE(i,s,H):(s==E||s==(y|E))&&!O.length?Ee=GE(i,s,d,_):Ee=Ws.apply(r,Se);var Pe=me?eg:Pg;return Ig(Pe(Ee,Se),i,s)}function xg(i,s,d,_){return i===r||jr(i,Yi[d])&&!Ye.call(_,d)?s:i}function Sg(i,s,d,_,O,C){return ut(i)&&ut(s)&&(C.set(s,i),js(i,s,r,Sg,C),C.delete(s)),i}function ZE(i){return Qo(i)?r:i}function _g(i,s,d,_,O,C){var M=d&S,H=i.length,G=s.length;if(H!=G&&!(M&&G>H))return!1;var ie=C.get(i),oe=C.get(s);if(ie&&oe)return ie==s&&oe==i;var ce=-1,me=!0,Se=d&v?new fi:r;for(C.set(i,s),C.set(s,i);++ce<H;){var Ee=i[ce],Pe=s[ce];if(_)var ke=M?_(Pe,Ee,ce,s,i,C):_(Ee,Pe,ce,i,s,C);if(ke!==r){if(ke)continue;me=!1;break}if(Se){if(!ru(s,function(De,Le){if(!jo(Se,Le)&&(Ee===De||O(Ee,De,d,_,C)))return Se.push(Le)})){me=!1;break}}else if(!(Ee===Pe||O(Ee,Pe,d,_,C))){me=!1;break}}return C.delete(i),C.delete(s),me}function YE(i,s,d,_,O,C,M){switch(d){case mr:if(i.byteLength!=s.byteLength||i.byteOffset!=s.byteOffset)return!1;i=i.buffer,s=s.buffer;case Lr:return!(i.byteLength!=s.byteLength||!C(new As(i),new As(s)));case le:case pe:case pt:return jr(+i,+s);case ye:return i.name==s.name&&i.message==s.message;case Dt:case Dr:return i==s+"";case ve:var H=lu;case Rt:var G=_&S;if(H||(H=xs),i.size!=s.size&&!G)return!1;var ie=M.get(i);if(ie)return ie==s;_|=v,M.set(i,s);var oe=_g(H(i),H(s),_,O,C,M);return M.delete(i),oe;case Vr:if(Uo)return Uo.call(i)==Uo.call(s)}return!1}function XE(i,s,d,_,O,C){var M=d&S,H=Nu(i),G=H.length,ie=Nu(s),oe=ie.length;if(G!=oe&&!M)return!1;for(var ce=G;ce--;){var me=H[ce];if(!(M?me in s:Ye.call(s,me)))return!1}var Se=C.get(i),Ee=C.get(s);if(Se&&Ee)return Se==s&&Ee==i;var Pe=!0;C.set(i,s),C.set(s,i);for(var ke=M;++ce<G;){me=H[ce];var De=i[me],Le=s[me];if(_)var ur=M?_(Le,De,me,s,i,C):_(De,Le,me,i,s,C);if(!(ur===r?De===Le||O(De,Le,d,_,C):ur)){Pe=!1;break}ke||(ke=me=="constructor")}if(Pe&&!ke){var Kt=i.constructor,dr=s.constructor;Kt!=dr&&"constructor"in i&&"constructor"in s&&!(typeof Kt=="function"&&Kt instanceof Kt&&typeof dr=="function"&&dr instanceof dr)&&(Pe=!1)}return C.delete(i),C.delete(s),Pe}function vn(i){return Hu(Rg(i,r,zg),i+"")}function Nu(i){return Wh(i,Ct,$u)}function Du(i){return Wh(i,er,Eg)}var Mu=Ns?function(i){return Ns.get(i)}:ed;function Gs(i){for(var s=i.name+"",d=Ji[s],_=Ye.call(Ji,s)?d.length:0;_--;){var O=d[_],C=O.func;if(C==null||C==i)return O.name}return s}function ro(i){var s=Ye.call(T,"placeholder")?T:i;return s.placeholder}function _e(){var i=T.iteratee||Ju;return i=i===Ju?Vh:i,arguments.length?i(arguments[0],arguments[1]):i}function Ks(i,s){var d=i.__data__;return ok(s)?d[typeof s=="string"?"string":"hash"]:d.map}function Lu(i){for(var s=Ct(i),d=s.length;d--;){var _=s[d],O=i[_];s[d]=[_,O,Ag(O)]}return s}function gi(i,s){var d=l_(i,s);return qh(d)?d:r}function JE(i){var s=Ye.call(i,ui),d=i[ui];try{i[ui]=r;var _=!0}catch{}var O=ks.call(i);return _&&(s?i[ui]=d:delete i[ui]),O}var $u=uu?function(i){return i==null?[]:(i=et(i),Nn(uu(i),function(s){return Ch.call(i,s)}))}:td,Eg=uu?function(i){for(var s=[];i;)Dn(s,$u(i)),i=Ts(i);return s}:td,Bt=Vt;(du&&Bt(new du(new ArrayBuffer(1)))!=mr||Ho&&Bt(new Ho)!=ve||fu&&Bt(fu.resolve())!=zi||Xi&&Bt(new Xi)!=Rt||Bo&&Bt(new Bo)!=Mr)&&(Bt=function(i){var s=Vt(i),d=s==Nt?i.constructor:r,_=d?vi(d):"";if(_)switch(_){case D_:return mr;case M_:return ve;case L_:return zi;case $_:return Rt;case z_:return Mr}return s});function QE(i,s,d){for(var _=-1,O=d.length;++_<O;){var C=d[_],M=C.size;switch(C.type){case"drop":i+=M;break;case"dropRight":s-=M;break;case"take":s=Ht(s,i+M);break;case"takeRight":i=Ot(i,s-M);break}}return{start:i,end:s}}function ek(i){var s=i.match(aS);return s?s[1].split(sS):[]}function kg(i,s,d){s=jn(s,i);for(var _=-1,O=s.length,C=!1;++_<O;){var M=Zr(s[_]);if(!(C=i!=null&&d(i,M)))break;i=i[M]}return C||++_!=O?C:(O=i==null?0:i.length,!!O&&tl(O)&&mn(M,O)&&(Re(i)||mi(i)))}function tk(i){var s=i.length,d=new i.constructor(s);return s&&typeof i[0]=="string"&&Ye.call(i,"index")&&(d.index=i.index,d.input=i.input),d}function Og(i){return typeof i.constructor=="function"&&!Xo(i)?Qi(Ts(i)):{}}function rk(i,s,d){var _=i.constructor;switch(s){case Lr:return Cu(i);case le:case pe:return new _(+i);case mr:return jE(i,d);case un:case Mo:case ji:case ai:case si:case Lo:case Fi:case $o:case Hi:return lg(i,d);case ve:return new _;case pt:case Dr:return new _(i);case Dt:return FE(i);case Rt:return new _;case Vr:return HE(i)}}function nk(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(oS,`{
230
+ /* [wrapped with `+s+`] */
231
+ `)}function ik(i){return Re(i)||mi(i)||!!(Ph&&i&&i[Ph])}function mn(i,s){var d=typeof i;return s=s??K,!!s&&(d=="number"||d!="symbol"&&vS.test(i))&&i>-1&&i%1==0&&i<s}function Gt(i,s,d){if(!ut(d))return!1;var _=typeof s;return(_=="number"?Qt(d)&&mn(s,d.length):_=="string"&&s in d)?jr(d[s],i):!1}function zu(i,s){if(Re(i))return!1;var d=typeof i;return d=="number"||d=="symbol"||d=="boolean"||i==null||cr(i)?!0:tS.test(i)||!zo.test(i)||s!=null&&i in et(s)}function ok(i){var s=typeof i;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?i!=="__proto__":i===null}function ju(i){var s=Gs(i),d=T[s];if(typeof d!="function"||!(s in Me.prototype))return!1;if(i===d)return!0;var _=Mu(d);return!!_&&i===_[0]}function ak(i){return!!Ah&&Ah in i}var sk=_s?bn:rd;function Xo(i){var s=i&&i.constructor,d=typeof s=="function"&&s.prototype||Yi;return i===d}function Ag(i){return i===i&&!ut(i)}function Tg(i,s){return function(d){return d==null?!1:d[i]===s&&(s!==r||i in et(d))}}function lk(i){var s=Qs(i,function(_){return d.size===p&&d.clear(),_}),d=s.cache;return s}function ck(i,s){var d=i[1],_=s[1],O=d|_,C=O<(y|m|F),M=_==F&&d==x||_==F&&d==P&&i[7].length<=s[8]||_==(F|P)&&s[7].length<=s[8]&&d==x;if(!(C||M))return i;_&y&&(i[2]=s[2],O|=d&y?0:w);var H=s[3];if(H){var G=i[3];i[3]=G?ug(G,H,s[4]):H,i[4]=G?Mn(i[3],h):s[4]}return H=s[5],H&&(G=i[5],i[5]=G?dg(G,H,s[6]):H,i[6]=G?Mn(i[5],h):s[6]),H=s[7],H&&(i[7]=H),_&F&&(i[8]=i[8]==null?s[8]:Ht(i[8],s[8])),i[9]==null&&(i[9]=s[9]),i[0]=s[0],i[1]=O,i}function uk(i){var s=[];if(i!=null)for(var d in et(i))s.push(d);return s}function dk(i){return ks.call(i)}function Rg(i,s,d){return s=Ot(s===r?i.length-1:s,0),function(){for(var _=arguments,O=-1,C=Ot(_.length-s,0),M=Q(C);++O<C;)M[O]=_[s+O];O=-1;for(var H=Q(s+1);++O<s;)H[O]=_[O];return H[s]=d(M),ar(i,this,H)}}function Cg(i,s){return s.length<2?i:hi(i,_r(s,0,-1))}function fk(i,s){for(var d=i.length,_=Ht(s.length,d),O=Jt(i);_--;){var C=s[_];i[_]=mn(C,d)?O[C]:r}return i}function Fu(i,s){if(!(s==="constructor"&&typeof i[s]=="function")&&s!="__proto__")return i[s]}var Pg=Ng(eg),Jo=A_||function(i,s){return Lt.setTimeout(i,s)},Hu=Ng(ME);function Ig(i,s,d){var _=s+"";return Hu(i,nk(_,pk(ek(_),d)))}function Ng(i){var s=0,d=0;return function(){var _=P_(),O=j-(_-d);if(d=_,O>0){if(++s>=I)return arguments[0]}else s=0;return i.apply(r,arguments)}}function Zs(i,s){var d=-1,_=i.length,O=_-1;for(s=s===r?_:s;++d<s;){var C=_u(d,O),M=i[C];i[C]=i[d],i[d]=M}return i.length=s,i}var Dg=lk(function(i){var s=[];return i.charCodeAt(0)===46&&s.push(""),i.replace(rS,function(d,_,O,C){s.push(O?C.replace(uS,"$1"):_||d)}),s});function Zr(i){if(typeof i=="string"||cr(i))return i;var s=i+"";return s=="0"&&1/i==-X?"-0":s}function vi(i){if(i!=null){try{return Es.call(i)}catch{}try{return i+""}catch{}}return""}function pk(i,s){return yr(J,function(d){var _="_."+d[0];s&d[1]&&!ys(i,_)&&i.push(_)}),i.sort()}function Mg(i){if(i instanceof Me)return i.clone();var s=new xr(i.__wrapped__,i.__chain__);return s.__actions__=Jt(i.__actions__),s.__index__=i.__index__,s.__values__=i.__values__,s}function hk(i,s,d){(d?Gt(i,s,d):s===r)?s=1:s=Ot(Ce(s),0);var _=i==null?0:i.length;if(!_||s<1)return[];for(var O=0,C=0,M=Q(Ps(_/s));O<_;)M[C++]=_r(i,O,O+=s);return M}function gk(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 vk(){var i=arguments.length;if(!i)return[];for(var s=Q(i-1),d=arguments[0],_=i;_--;)s[_-1]=arguments[_];return Dn(Re(d)?Jt(d):[d],$t(s,1))}var mk=Ie(function(i,s){return vt(i)?Vo(i,$t(s,1,vt,!0)):[]}),bk=Ie(function(i,s){var d=Er(s);return vt(d)&&(d=r),vt(i)?Vo(i,$t(s,1,vt,!0),_e(d,2)):[]}),yk=Ie(function(i,s){var d=Er(s);return vt(d)&&(d=r),vt(i)?Vo(i,$t(s,1,vt,!0),r,d):[]});function wk(i,s,d){var _=i==null?0:i.length;return _?(s=d||s===r?1:Ce(s),_r(i,s<0?0:s,_)):[]}function xk(i,s,d){var _=i==null?0:i.length;return _?(s=d||s===r?1:Ce(s),s=_-s,_r(i,0,s<0?0:s)):[]}function Sk(i,s){return i&&i.length?Hs(i,_e(s,3),!0,!0):[]}function _k(i,s){return i&&i.length?Hs(i,_e(s,3),!0):[]}function Ek(i,s,d,_){var O=i==null?0:i.length;return O?(d&&typeof d!="number"&&Gt(i,s,d)&&(d=0,_=O),vE(i,s,d,_)):[]}function Lg(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=d==null?0:Ce(d);return O<0&&(O=Ot(_+O,0)),ws(i,_e(s,3),O)}function $g(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=_-1;return d!==r&&(O=Ce(d),O=d<0?Ot(_+O,0):Ht(O,_-1)),ws(i,_e(s,3),O,!0)}function zg(i){var s=i==null?0:i.length;return s?$t(i,1):[]}function kk(i){var s=i==null?0:i.length;return s?$t(i,X):[]}function Ok(i,s){var d=i==null?0:i.length;return d?(s=s===r?1:Ce(s),$t(i,s)):[]}function Ak(i){for(var s=-1,d=i==null?0:i.length,_={};++s<d;){var O=i[s];_[O[0]]=O[1]}return _}function jg(i){return i&&i.length?i[0]:r}function Tk(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=d==null?0:Ce(d);return O<0&&(O=Ot(_+O,0)),Vi(i,s,O)}function Rk(i){var s=i==null?0:i.length;return s?_r(i,0,-1):[]}var Ck=Ie(function(i){var s=at(i,Tu);return s.length&&s[0]===i[0]?bu(s):[]}),Pk=Ie(function(i){var s=Er(i),d=at(i,Tu);return s===Er(d)?s=r:d.pop(),d.length&&d[0]===i[0]?bu(d,_e(s,2)):[]}),Ik=Ie(function(i){var s=Er(i),d=at(i,Tu);return s=typeof s=="function"?s:r,s&&d.pop(),d.length&&d[0]===i[0]?bu(d,r,s):[]});function Nk(i,s){return i==null?"":R_.call(i,s)}function Er(i){var s=i==null?0:i.length;return s?i[s-1]:r}function Dk(i,s,d){var _=i==null?0:i.length;if(!_)return-1;var O=_;return d!==r&&(O=Ce(d),O=O<0?Ot(_+O,0):Ht(O,_-1)),s===s?p_(i,s,O):ws(i,yh,O,!0)}function Mk(i,s){return i&&i.length?Yh(i,Ce(s)):r}var Lk=Ie(Fg);function Fg(i,s){return i&&i.length&&s&&s.length?Su(i,s):i}function $k(i,s,d){return i&&i.length&&s&&s.length?Su(i,s,_e(d,2)):i}function zk(i,s,d){return i&&i.length&&s&&s.length?Su(i,s,r,d):i}var jk=vn(function(i,s){var d=i==null?0:i.length,_=hu(i,s);return Qh(i,at(s,function(O){return mn(O,d)?+O:O}).sort(cg)),_});function Fk(i,s){var d=[];if(!(i&&i.length))return d;var _=-1,O=[],C=i.length;for(s=_e(s,3);++_<C;){var M=i[_];s(M,_,i)&&(d.push(M),O.push(_))}return Qh(i,O),d}function Bu(i){return i==null?i:N_.call(i)}function Hk(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:Ce(s),d=d===r?_:Ce(d)),_r(i,s,d)):[]}function Bk(i,s){return Fs(i,s)}function Wk(i,s,d){return ku(i,s,_e(d,2))}function Uk(i,s){var d=i==null?0:i.length;if(d){var _=Fs(i,s);if(_<d&&jr(i[_],s))return _}return-1}function qk(i,s){return Fs(i,s,!0)}function Vk(i,s,d){return ku(i,s,_e(d,2),!0)}function Gk(i,s){var d=i==null?0:i.length;if(d){var _=Fs(i,s,!0)-1;if(jr(i[_],s))return _}return-1}function Kk(i){return i&&i.length?tg(i):[]}function Zk(i,s){return i&&i.length?tg(i,_e(s,2)):[]}function Yk(i){var s=i==null?0:i.length;return s?_r(i,1,s):[]}function Xk(i,s,d){return i&&i.length?(s=d||s===r?1:Ce(s),_r(i,0,s<0?0:s)):[]}function Jk(i,s,d){var _=i==null?0:i.length;return _?(s=d||s===r?1:Ce(s),s=_-s,_r(i,s<0?0:s,_)):[]}function Qk(i,s){return i&&i.length?Hs(i,_e(s,3),!1,!0):[]}function eO(i,s){return i&&i.length?Hs(i,_e(s,3)):[]}var tO=Ie(function(i){return zn($t(i,1,vt,!0))}),rO=Ie(function(i){var s=Er(i);return vt(s)&&(s=r),zn($t(i,1,vt,!0),_e(s,2))}),nO=Ie(function(i){var s=Er(i);return s=typeof s=="function"?s:r,zn($t(i,1,vt,!0),r,s)});function iO(i){return i&&i.length?zn(i):[]}function oO(i,s){return i&&i.length?zn(i,_e(s,2)):[]}function aO(i,s){return s=typeof s=="function"?s:r,i&&i.length?zn(i,r,s):[]}function Wu(i){if(!(i&&i.length))return[];var s=0;return i=Nn(i,function(d){if(vt(d))return s=Ot(d.length,s),!0}),au(s,function(d){return at(i,nu(d))})}function Hg(i,s){if(!(i&&i.length))return[];var d=Wu(i);return s==null?d:at(d,function(_){return ar(s,r,_)})}var sO=Ie(function(i,s){return vt(i)?Vo(i,s):[]}),lO=Ie(function(i){return Au(Nn(i,vt))}),cO=Ie(function(i){var s=Er(i);return vt(s)&&(s=r),Au(Nn(i,vt),_e(s,2))}),uO=Ie(function(i){var s=Er(i);return s=typeof s=="function"?s:r,Au(Nn(i,vt),r,s)}),dO=Ie(Wu);function fO(i,s){return og(i||[],s||[],qo)}function pO(i,s){return og(i||[],s||[],Zo)}var hO=Ie(function(i){var s=i.length,d=s>1?i[s-1]:r;return d=typeof d=="function"?(i.pop(),d):r,Hg(i,d)});function Bg(i){var s=T(i);return s.__chain__=!0,s}function gO(i,s){return s(i),i}function Ys(i,s){return s(i)}var vO=vn(function(i){var s=i.length,d=s?i[0]:0,_=this.__wrapped__,O=function(C){return hu(C,i)};return s>1||this.__actions__.length||!(_ instanceof Me)||!mn(d)?this.thru(O):(_=_.slice(d,+d+(s?1:0)),_.__actions__.push({func:Ys,args:[O],thisArg:r}),new xr(_,this.__chain__).thru(function(C){return s&&!C.length&&C.push(r),C}))});function mO(){return Bg(this)}function bO(){return new xr(this.value(),this.__chain__)}function yO(){this.__values__===r&&(this.__values__=rv(this.value()));var i=this.__index__>=this.__values__.length,s=i?r:this.__values__[this.__index__++];return{done:i,value:s}}function wO(){return this}function xO(i){for(var s,d=this;d instanceof Ms;){var _=Mg(d);_.__index__=0,_.__values__=r,s?O.__wrapped__=_:s=_;var O=_;d=d.__wrapped__}return O.__wrapped__=i,s}function SO(){var i=this.__wrapped__;if(i instanceof Me){var s=i;return this.__actions__.length&&(s=new Me(this)),s=s.reverse(),s.__actions__.push({func:Ys,args:[Bu],thisArg:r}),new xr(s,this.__chain__)}return this.thru(Bu)}function _O(){return ig(this.__wrapped__,this.__actions__)}var EO=Bs(function(i,s,d){Ye.call(i,d)?++i[d]:hn(i,d,1)});function kO(i,s,d){var _=Re(i)?mh:gE;return d&&Gt(i,s,d)&&(s=r),_(i,_e(s,3))}function OO(i,s){var d=Re(i)?Nn:Hh;return d(i,_e(s,3))}var AO=gg(Lg),TO=gg($g);function RO(i,s){return $t(Xs(i,s),1)}function CO(i,s){return $t(Xs(i,s),X)}function PO(i,s,d){return d=d===r?1:Ce(d),$t(Xs(i,s),d)}function Wg(i,s){var d=Re(i)?yr:$n;return d(i,_e(s,3))}function Ug(i,s){var d=Re(i)?YS:Fh;return d(i,_e(s,3))}var IO=Bs(function(i,s,d){Ye.call(i,d)?i[d].push(s):hn(i,d,[s])});function NO(i,s,d,_){i=Qt(i)?i:io(i),d=d&&!_?Ce(d):0;var O=i.length;return d<0&&(d=Ot(O+d,0)),rl(i)?d<=O&&i.indexOf(s,d)>-1:!!O&&Vi(i,s,d)>-1}var DO=Ie(function(i,s,d){var _=-1,O=typeof s=="function",C=Qt(i)?Q(i.length):[];return $n(i,function(M){C[++_]=O?ar(s,M,d):Go(M,s,d)}),C}),MO=Bs(function(i,s,d){hn(i,d,s)});function Xs(i,s){var d=Re(i)?at:Gh;return d(i,_e(s,3))}function LO(i,s,d,_){return i==null?[]:(Re(s)||(s=s==null?[]:[s]),d=_?r:d,Re(d)||(d=d==null?[]:[d]),Xh(i,s,d))}var $O=Bs(function(i,s,d){i[d?0:1].push(s)},function(){return[[],[]]});function zO(i,s,d){var _=Re(i)?tu:xh,O=arguments.length<3;return _(i,_e(s,4),d,O,$n)}function jO(i,s,d){var _=Re(i)?XS:xh,O=arguments.length<3;return _(i,_e(s,4),d,O,Fh)}function FO(i,s){var d=Re(i)?Nn:Hh;return d(i,el(_e(s,3)))}function HO(i){var s=Re(i)?Lh:NE;return s(i)}function BO(i,s,d){(d?Gt(i,s,d):s===r)?s=1:s=Ce(s);var _=Re(i)?uE:DE;return _(i,s)}function WO(i){var s=Re(i)?dE:LE;return s(i)}function UO(i){if(i==null)return 0;if(Qt(i))return rl(i)?Ki(i):i.length;var s=Bt(i);return s==ve||s==Rt?i.size:wu(i).length}function qO(i,s,d){var _=Re(i)?ru:$E;return d&&Gt(i,s,d)&&(s=r),_(i,_e(s,3))}var VO=Ie(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]]),Xh(i,$t(s,1),[])}),Js=O_||function(){return Lt.Date.now()};function GO(i,s){if(typeof s!="function")throw new wr(l);return i=Ce(i),function(){if(--i<1)return s.apply(this,arguments)}}function qg(i,s,d){return s=d?r:s,s=i&&s==null?i.length:s,gn(i,F,r,r,r,r,s)}function Vg(i,s){var d;if(typeof s!="function")throw new wr(l);return i=Ce(i),function(){return--i>0&&(d=s.apply(this,arguments)),i<=1&&(s=r),d}}var Uu=Ie(function(i,s,d){var _=y;if(d.length){var O=Mn(d,ro(Uu));_|=E}return gn(i,_,s,d,O)}),Gg=Ie(function(i,s,d){var _=y|m;if(d.length){var O=Mn(d,ro(Gg));_|=E}return gn(s,_,i,d,O)});function Kg(i,s,d){s=d?r:s;var _=gn(i,x,r,r,r,r,r,s);return _.placeholder=Kg.placeholder,_}function Zg(i,s,d){s=d?r:s;var _=gn(i,k,r,r,r,r,r,s);return _.placeholder=Zg.placeholder,_}function Yg(i,s,d){var _,O,C,M,H,G,ie=0,oe=!1,ce=!1,me=!0;if(typeof i!="function")throw new wr(l);s=kr(s)||0,ut(d)&&(oe=!!d.leading,ce="maxWait"in d,C=ce?Ot(kr(d.maxWait)||0,s):C,me="trailing"in d?!!d.trailing:me);function Se(mt){var Fr=_,wn=O;return _=O=r,ie=mt,M=i.apply(wn,Fr),M}function Ee(mt){return ie=mt,H=Jo(De,s),oe?Se(mt):M}function Pe(mt){var Fr=mt-G,wn=mt-ie,gv=s-Fr;return ce?Ht(gv,C-wn):gv}function ke(mt){var Fr=mt-G,wn=mt-ie;return G===r||Fr>=s||Fr<0||ce&&wn>=C}function De(){var mt=Js();if(ke(mt))return Le(mt);H=Jo(De,Pe(mt))}function Le(mt){return H=r,me&&_?Se(mt):(_=O=r,M)}function ur(){H!==r&&ag(H),ie=0,_=G=O=H=r}function Kt(){return H===r?M:Le(Js())}function dr(){var mt=Js(),Fr=ke(mt);if(_=arguments,O=this,G=mt,Fr){if(H===r)return Ee(G);if(ce)return ag(H),H=Jo(De,s),Se(G)}return H===r&&(H=Jo(De,s)),M}return dr.cancel=ur,dr.flush=Kt,dr}var KO=Ie(function(i,s){return jh(i,1,s)}),ZO=Ie(function(i,s,d){return jh(i,kr(s)||0,d)});function YO(i){return gn(i,L)}function Qs(i,s){if(typeof i!="function"||s!=null&&typeof s!="function")throw new wr(l);var d=function(){var _=arguments,O=s?s.apply(this,_):_[0],C=d.cache;if(C.has(O))return C.get(O);var M=i.apply(this,_);return d.cache=C.set(O,M)||C,M};return d.cache=new(Qs.Cache||pn),d}Qs.Cache=pn;function el(i){if(typeof i!="function")throw new wr(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 XO(i){return Vg(2,i)}var JO=zE(function(i,s){s=s.length==1&&Re(s[0])?at(s[0],sr(_e())):at($t(s,1),sr(_e()));var d=s.length;return Ie(function(_){for(var O=-1,C=Ht(_.length,d);++O<C;)_[O]=s[O].call(this,_[O]);return ar(i,this,_)})}),qu=Ie(function(i,s){var d=Mn(s,ro(qu));return gn(i,E,r,s,d)}),Xg=Ie(function(i,s){var d=Mn(s,ro(Xg));return gn(i,R,r,s,d)}),QO=vn(function(i,s){return gn(i,P,r,r,r,s)});function eA(i,s){if(typeof i!="function")throw new wr(l);return s=s===r?s:Ce(s),Ie(i,s)}function tA(i,s){if(typeof i!="function")throw new wr(l);return s=s==null?0:Ot(Ce(s),0),Ie(function(d){var _=d[s],O=Fn(d,0,s);return _&&Dn(O,_),ar(i,this,O)})}function rA(i,s,d){var _=!0,O=!0;if(typeof i!="function")throw new wr(l);return ut(d)&&(_="leading"in d?!!d.leading:_,O="trailing"in d?!!d.trailing:O),Yg(i,s,{leading:_,maxWait:s,trailing:O})}function nA(i){return qg(i,1)}function iA(i,s){return qu(Ru(s),i)}function oA(){if(!arguments.length)return[];var i=arguments[0];return Re(i)?i:[i]}function aA(i){return Sr(i,b)}function sA(i,s){return s=typeof s=="function"?s:r,Sr(i,b,s)}function lA(i){return Sr(i,f|b)}function cA(i,s){return s=typeof s=="function"?s:r,Sr(i,f|b,s)}function uA(i,s){return s==null||zh(i,s,Ct(s))}function jr(i,s){return i===s||i!==i&&s!==s}var dA=Vs(mu),fA=Vs(function(i,s){return i>=s}),mi=Uh((function(){return arguments})())?Uh:function(i){return ht(i)&&Ye.call(i,"callee")&&!Ch.call(i,"callee")},Re=Q.isArray,pA=dh?sr(dh):xE;function Qt(i){return i!=null&&tl(i.length)&&!bn(i)}function vt(i){return ht(i)&&Qt(i)}function hA(i){return i===!0||i===!1||ht(i)&&Vt(i)==le}var Hn=T_||rd,gA=fh?sr(fh):SE;function vA(i){return ht(i)&&i.nodeType===1&&!Qo(i)}function mA(i){if(i==null)return!0;if(Qt(i)&&(Re(i)||typeof i=="string"||typeof i.splice=="function"||Hn(i)||no(i)||mi(i)))return!i.length;var s=Bt(i);if(s==ve||s==Rt)return!i.size;if(Xo(i))return!wu(i).length;for(var d in i)if(Ye.call(i,d))return!1;return!0}function bA(i,s){return Ko(i,s)}function yA(i,s,d){d=typeof d=="function"?d:r;var _=d?d(i,s):r;return _===r?Ko(i,s,r,d):!!_}function Vu(i){if(!ht(i))return!1;var s=Vt(i);return s==ye||s==de||typeof i.message=="string"&&typeof i.name=="string"&&!Qo(i)}function wA(i){return typeof i=="number"&&Ih(i)}function bn(i){if(!ut(i))return!1;var s=Vt(i);return s==Z||s==Oe||s==re||s==or}function Jg(i){return typeof i=="number"&&i==Ce(i)}function tl(i){return typeof i=="number"&&i>-1&&i%1==0&&i<=K}function ut(i){var s=typeof i;return i!=null&&(s=="object"||s=="function")}function ht(i){return i!=null&&typeof i=="object"}var Qg=ph?sr(ph):EE;function xA(i,s){return i===s||yu(i,s,Lu(s))}function SA(i,s,d){return d=typeof d=="function"?d:r,yu(i,s,Lu(s),d)}function _A(i){return ev(i)&&i!=+i}function EA(i){if(sk(i))throw new Te(a);return qh(i)}function kA(i){return i===null}function OA(i){return i==null}function ev(i){return typeof i=="number"||ht(i)&&Vt(i)==pt}function Qo(i){if(!ht(i)||Vt(i)!=Nt)return!1;var s=Ts(i);if(s===null)return!0;var d=Ye.call(s,"constructor")&&s.constructor;return typeof d=="function"&&d instanceof d&&Es.call(d)==S_}var Gu=hh?sr(hh):kE;function AA(i){return Jg(i)&&i>=-K&&i<=K}var tv=gh?sr(gh):OE;function rl(i){return typeof i=="string"||!Re(i)&&ht(i)&&Vt(i)==Dr}function cr(i){return typeof i=="symbol"||ht(i)&&Vt(i)==Vr}var no=vh?sr(vh):AE;function TA(i){return i===r}function RA(i){return ht(i)&&Bt(i)==Mr}function CA(i){return ht(i)&&Vt(i)==oi}var PA=Vs(xu),IA=Vs(function(i,s){return i<=s});function rv(i){if(!i)return[];if(Qt(i))return rl(i)?$r(i):Jt(i);if(Fo&&i[Fo])return u_(i[Fo]());var s=Bt(i),d=s==ve?lu:s==Rt?xs:io;return d(i)}function yn(i){if(!i)return i===0?i:0;if(i=kr(i),i===X||i===-X){var s=i<0?-1:1;return s*ge}return i===i?i:0}function Ce(i){var s=yn(i),d=s%1;return s===s?d?s-d:s:0}function nv(i){return i?pi(Ce(i),0,U):0}function kr(i){if(typeof i=="number")return i;if(cr(i))return D;if(ut(i)){var s=typeof i.valueOf=="function"?i.valueOf():i;i=ut(s)?s+"":s}if(typeof i!="string")return i===0?i:+i;i=Sh(i);var d=pS.test(i);return d||gS.test(i)?GS(i.slice(2),d?2:8):fS.test(i)?D:+i}function iv(i){return Kr(i,er(i))}function NA(i){return i?pi(Ce(i),-K,K):i===0?i:0}function Be(i){return i==null?"":lr(i)}var DA=eo(function(i,s){if(Xo(s)||Qt(s)){Kr(s,Ct(s),i);return}for(var d in s)Ye.call(s,d)&&qo(i,d,s[d])}),ov=eo(function(i,s){Kr(s,er(s),i)}),nl=eo(function(i,s,d,_){Kr(s,er(s),i,_)}),MA=eo(function(i,s,d,_){Kr(s,Ct(s),i,_)}),LA=vn(hu);function $A(i,s){var d=Qi(i);return s==null?d:$h(d,s)}var zA=Ie(function(i,s){i=et(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],M=er(C),H=-1,G=M.length;++H<G;){var ie=M[H],oe=i[ie];(oe===r||jr(oe,Yi[ie])&&!Ye.call(i,ie))&&(i[ie]=C[ie])}return i}),jA=Ie(function(i){return i.push(r,Sg),ar(av,r,i)});function FA(i,s){return bh(i,_e(s,3),Gr)}function HA(i,s){return bh(i,_e(s,3),vu)}function BA(i,s){return i==null?i:gu(i,_e(s,3),er)}function WA(i,s){return i==null?i:Bh(i,_e(s,3),er)}function UA(i,s){return i&&Gr(i,_e(s,3))}function qA(i,s){return i&&vu(i,_e(s,3))}function VA(i){return i==null?[]:zs(i,Ct(i))}function GA(i){return i==null?[]:zs(i,er(i))}function Ku(i,s,d){var _=i==null?r:hi(i,s);return _===r?d:_}function KA(i,s){return i!=null&&kg(i,s,mE)}function Zu(i,s){return i!=null&&kg(i,s,bE)}var ZA=mg(function(i,s,d){s!=null&&typeof s.toString!="function"&&(s=ks.call(s)),i[s]=d},Xu(tr)),YA=mg(function(i,s,d){s!=null&&typeof s.toString!="function"&&(s=ks.call(s)),Ye.call(i,s)?i[s].push(d):i[s]=[d]},_e),XA=Ie(Go);function Ct(i){return Qt(i)?Mh(i):wu(i)}function er(i){return Qt(i)?Mh(i,!0):TE(i)}function JA(i,s){var d={};return s=_e(s,3),Gr(i,function(_,O,C){hn(d,s(_,O,C),_)}),d}function QA(i,s){var d={};return s=_e(s,3),Gr(i,function(_,O,C){hn(d,O,s(_,O,C))}),d}var eT=eo(function(i,s,d){js(i,s,d)}),av=eo(function(i,s,d,_){js(i,s,d,_)}),tT=vn(function(i,s){var d={};if(i==null)return d;var _=!1;s=at(s,function(C){return C=jn(C,i),_||(_=C.length>1),C}),Kr(i,Du(i),d),_&&(d=Sr(d,f|g|b,ZE));for(var O=s.length;O--;)Ou(d,s[O]);return d});function rT(i,s){return sv(i,el(_e(s)))}var nT=vn(function(i,s){return i==null?{}:CE(i,s)});function sv(i,s){if(i==null)return{};var d=at(Du(i),function(_){return[_]});return s=_e(s),Jh(i,d,function(_,O){return s(_,O[0])})}function iT(i,s,d){s=jn(s,i);var _=-1,O=s.length;for(O||(O=1,i=r);++_<O;){var C=i==null?r:i[Zr(s[_])];C===r&&(_=O,C=d),i=bn(C)?C.call(i):C}return i}function oT(i,s,d){return i==null?i:Zo(i,s,d)}function aT(i,s,d,_){return _=typeof _=="function"?_:r,i==null?i:Zo(i,s,d,_)}var lv=wg(Ct),cv=wg(er);function sT(i,s,d){var _=Re(i),O=_||Hn(i)||no(i);if(s=_e(s,4),d==null){var C=i&&i.constructor;O?d=_?new C:[]:ut(i)?d=bn(C)?Qi(Ts(i)):{}:d={}}return(O?yr:Gr)(i,function(M,H,G){return s(d,M,H,G)}),d}function lT(i,s){return i==null?!0:Ou(i,s)}function cT(i,s,d){return i==null?i:ng(i,s,Ru(d))}function uT(i,s,d,_){return _=typeof _=="function"?_:r,i==null?i:ng(i,s,Ru(d),_)}function io(i){return i==null?[]:su(i,Ct(i))}function dT(i){return i==null?[]:su(i,er(i))}function fT(i,s,d){return d===r&&(d=s,s=r),d!==r&&(d=kr(d),d=d===d?d:0),s!==r&&(s=kr(s),s=s===s?s:0),pi(kr(i),s,d)}function pT(i,s,d){return s=yn(s),d===r?(d=s,s=0):d=yn(d),i=kr(i),yE(i,s,d)}function hT(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=yn(i),s===r?(s=i,i=0):s=yn(s)),i>s){var _=i;i=s,s=_}if(d||i%1||s%1){var O=Nh();return Ht(i+O*(s-i+VS("1e-"+((O+"").length-1))),s)}return _u(i,s)}var gT=to(function(i,s,d){return s=s.toLowerCase(),i+(d?uv(s):s)});function uv(i){return Yu(Be(i).toLowerCase())}function dv(i){return i=Be(i),i&&i.replace(mS,o_).replace(LS,"")}function vT(i,s,d){i=Be(i),s=lr(s);var _=i.length;d=d===r?_:pi(Ce(d),0,_);var O=d;return d-=s.length,d>=0&&i.slice(d,O)==s}function mT(i){return i=Be(i),i&&li.test(i)?i.replace(dn,a_):i}function bT(i){return i=Be(i),i&&nS.test(i)?i.replace(qc,"\\$&"):i}var yT=to(function(i,s,d){return i+(d?"-":"")+s.toLowerCase()}),wT=to(function(i,s,d){return i+(d?" ":"")+s.toLowerCase()}),xT=hg("toLowerCase");function ST(i,s,d){i=Be(i),s=Ce(s);var _=s?Ki(i):0;if(!s||_>=s)return i;var O=(s-_)/2;return qs(Is(O),d)+i+qs(Ps(O),d)}function _T(i,s,d){i=Be(i),s=Ce(s);var _=s?Ki(i):0;return s&&_<s?i+qs(s-_,d):i}function ET(i,s,d){i=Be(i),s=Ce(s);var _=s?Ki(i):0;return s&&_<s?qs(s-_,d)+i:i}function kT(i,s,d){return d||s==null?s=0:s&&(s=+s),I_(Be(i).replace(Vc,""),s||0)}function OT(i,s,d){return(d?Gt(i,s,d):s===r)?s=1:s=Ce(s),Eu(Be(i),s)}function AT(){var i=arguments,s=Be(i[0]);return i.length<3?s:s.replace(i[1],i[2])}var TT=to(function(i,s,d){return i+(d?"_":"")+s.toLowerCase()});function RT(i,s,d){return d&&typeof d!="number"&&Gt(i,s,d)&&(s=d=r),d=d===r?U:d>>>0,d?(i=Be(i),i&&(typeof s=="string"||s!=null&&!Gu(s))&&(s=lr(s),!s&&Gi(i))?Fn($r(i),0,d):i.split(s,d)):[]}var CT=to(function(i,s,d){return i+(d?" ":"")+Yu(s)});function PT(i,s,d){return i=Be(i),d=d==null?0:pi(Ce(d),0,i.length),s=lr(s),i.slice(d,d+s.length)==s}function IT(i,s,d){var _=T.templateSettings;d&&Gt(i,s,d)&&(s=r),i=Be(i),s=nl({},s,_,xg);var O=nl({},s.imports,_.imports,xg),C=Ct(O),M=su(O,C),H,G,ie=0,oe=s.interpolate||vs,ce="__p += '",me=cu((s.escape||vs).source+"|"+oe.source+"|"+(oe===In?dS:vs).source+"|"+(s.evaluate||vs).source+"|$","g"),Se="//# sourceURL="+(Ye.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++HS+"]")+`
232
+ `;i.replace(me,function(ke,De,Le,ur,Kt,dr){return Le||(Le=ur),ce+=i.slice(ie,dr).replace(bS,s_),De&&(H=!0,ce+=`' +
233
+ __e(`+De+`) +
234
+ '`),Kt&&(G=!0,ce+=`';
235
+ `+Kt+`;
236
+ __p += '`),Le&&(ce+=`' +
237
+ ((__t = (`+Le+`)) == null ? '' : __t) +
238
+ '`),ie=dr+ke.length,ke}),ce+=`';
239
+ `;var Ee=Ye.call(s,"variable")&&s.variable;if(!Ee)ce=`with (obj) {
240
+ `+ce+`
194
241
  }
195
- `;else if(ib.test(he))throw new be(c);ee=(z?ee.replace(U0,""):ee).replace(B0,"$1").replace(H0,"$1;"),ee="function("+(he||"obj")+`) {
196
- `+(he?"":`obj || (obj = {});
197
- `)+"var __t, __p = ''"+(I?", __e = _.escape":"")+(z?`, __j = Array.prototype.join;
242
+ `;else if(cS.test(Ee))throw new Te(c);ce=(G?ce.replace(Uc,""):ce).replace($e,"$1").replace(je,"$1;"),ce="function("+(Ee||"obj")+`) {
243
+ `+(Ee?"":`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=oh(function(){return Pe(T,le+"return "+ee).apply(r,P)});if(Se.source=ee,sl(Se))throw Se;return Se}function R_(n){return ke(n).toLowerCase()}function P_(n){return ke(n).toUpperCase()}function C_(n,o,u){if(n=ke(n),n&&(u||o===r))return hd(n);if(!n||!(o=Nt(o)))return n;var y=ar(n),_=ar(o),T=gd(y,_),P=md(y,_)+1;return on(y,T,P).join("")}function k_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.slice(0,yd(n)+1);if(!n||!(o=Nt(o)))return n;var y=ar(n),_=md(y,ar(o))+1;return on(y,0,_).join("")}function $_(n,o,u){if(n=ke(n),n&&(u||o===r))return n.replace(su,"");if(!n||!(o=Nt(o)))return n;var y=ar(n),_=gd(y,ar(o));return on(y,_).join("")}function I_(n,o){var u=G,y=j;if(Ge(o)){var _="separator"in o?o.separator:_;u="length"in o?xe(o.length):u,y="omission"in o?Nt(o.omission):y}n=ke(n);var T=n.length;if(Xn(n)){var P=ar(n);T=P.length}if(u>=T)return n;var I=u-Jn(y);if(I<1)return y;var z=P?on(P,0,I).join(""):n.slice(0,I);if(_===r)return z+y;if(P&&(I+=z.length-I),al(_)){if(n.slice(I).search(_)){var V,X=z;for(_.global||(_=Eu(_.source,ke(Ff.exec(_))+"g")),_.lastIndex=0;V=_.exec(X);)var ee=V.index;z=z.slice(0,ee===r?I:ee)}}else if(n.indexOf(Nt(_),I)!=I){var oe=z.lastIndexOf(_);oe>-1&&(z=z.slice(0,oe))}return z+y}function L_(n){return n=ke(n),n&&q0.test(n)?n.replace(If,lw):n}var M_=oi(function(n,o,u){return n+(u?" ":"")+o.toUpperCase()}),cl=sp("toUpperCase");function ih(n,o,u){return n=ke(n),o=u?r:o,o===r?iw(n)?dw(n):Vb(n):n.match(o)||[]}var oh=_e(function(n,o){try{return Ft(n,r,o)}catch(u){return sl(u)?u:new be(u)}}),F_=Dr(function(n,o){return Vt(o,function(u){u=br(u),Mr(n,u,il(n[u],n))}),n});function D_(n){var o=n==null?0:n.length,u=pe();return n=o?Be(n,function(y){if(typeof y[1]!="function")throw new Yt(l);return[u(y[0]),y[1]]}):[],_e(function(y){for(var _=-1;++_<o;){var T=n[_];if(Ft(T[0],this,y))return Ft(T[1],this,y)}})}function N_(n){return l1(Jt(n,g))}function fl(n){return function(){return n}}function j_(n,o){return n==null||n!==n?o:n}var z_=up(),W_=up(!0);function $t(n){return n}function dl(n){return Nd(typeof n=="function"?n:Jt(n,g))}function U_(n){return zd(Jt(n,g))}function B_(n,o){return Wd(n,Jt(o,g))}var H_=_e(function(n,o){return function(u){return Mi(u,n,o)}}),q_=_e(function(n,o){return function(u){return Mi(n,u,o)}});function pl(n,o,u){var y=ct(o),_=vs(o,y);u==null&&!(Ge(o)&&(_.length||!y.length))&&(u=o,o=n,n=this,_=vs(o,ct(o)));var T=!(Ge(u)&&"chain"in u)||!!u.chain,P=jr(n);return Vt(_,function(I){var z=o[I];n[I]=z,P&&(n.prototype[I]=function(){var V=this.__chain__;if(T||V){var X=n(this.__wrapped__),ee=X.__actions__=Pt(this.__actions__);return ee.push({func:z,args:arguments,thisArg:n}),X.__chain__=V,X}return z.apply(n,Jr([this.value()],arguments))})}),n}function Z_(){return dt._===this&&(dt._=yw),this}function hl(){}function G_(n){return n=xe(n),_e(function(o){return Ud(o,n)})}var K_=qu(Be),V_=qu(ld),Y_=qu(mu);function sh(n){return Ju(n)?vu(br(n)):A1(n)}function X_(n){return function(o){return n==null?r:An(n,o)}}var J_=cp(),Q_=cp(!0);function gl(){return[]}function ml(){return!1}function eO(){return{}}function tO(){return""}function rO(){return!0}function nO(n,o){if(n=xe(n),n<1||n>te)return[];var u=Q,y=bt(n,Q);o=pe(o),n-=Q;for(var _=wu(y,o);++u<n;)o(u);return _}function iO(n){return we(n)?Be(n,br):jt(n)?[n]:Pt(Ap(ke(n)))}function oO(n){var o=++mw;return ke(n)+o}var sO=Es(function(n,o){return n+o},0),aO=Zu("ceil"),uO=Es(function(n,o){return n/o},1),lO=Zu("floor");function cO(n){return n&&n.length?ms(n,$t,ku):r}function fO(n,o){return n&&n.length?ms(n,pe(o,2),ku):r}function dO(n){return dd(n,$t)}function pO(n,o){return dd(n,pe(o,2))}function hO(n){return n&&n.length?ms(n,$t,Mu):r}function gO(n,o){return n&&n.length?ms(n,pe(o,2),Mu):r}var mO=Es(function(n,o){return n*o},1),vO=Zu("round"),yO=Es(function(n,o){return n-o},0);function bO(n){return n&&n.length?bu(n,$t):0}function wO(n,o){return n&&n.length?bu(n,pe(o,2)):0}return A.after=US,A.ary=Dp,A.assign=PE,A.assignIn=Xp,A.assignInWith=Fs,A.assignWith=CE,A.at=kE,A.before=Np,A.bind=il,A.bindAll=F_,A.bindKey=jp,A.castArray=eE,A.chain=Lp,A.chunk=lx,A.compact=cx,A.concat=fx,A.cond=D_,A.conforms=N_,A.constant=fl,A.countBy=bS,A.create=$E,A.curry=zp,A.curryRight=Wp,A.debounce=Up,A.defaults=IE,A.defaultsDeep=LE,A.defer=BS,A.delay=HS,A.difference=dx,A.differenceBy=px,A.differenceWith=hx,A.drop=gx,A.dropRight=mx,A.dropRightWhile=vx,A.dropWhile=yx,A.fill=bx,A.filter=xS,A.flatMap=_S,A.flatMapDeep=OS,A.flatMapDepth=AS,A.flatten=Cp,A.flattenDeep=wx,A.flattenDepth=xx,A.flip=qS,A.flow=z_,A.flowRight=W_,A.fromPairs=Sx,A.functions=WE,A.functionsIn=UE,A.groupBy=TS,A.initial=_x,A.intersection=Ox,A.intersectionBy=Ax,A.intersectionWith=Tx,A.invert=HE,A.invertBy=qE,A.invokeMap=PS,A.iteratee=dl,A.keyBy=CS,A.keys=ct,A.keysIn=kt,A.map=Cs,A.mapKeys=GE,A.mapValues=KE,A.matches=U_,A.matchesProperty=B_,A.memoize=$s,A.merge=VE,A.mergeWith=Jp,A.method=H_,A.methodOf=q_,A.mixin=pl,A.negate=Is,A.nthArg=G_,A.omit=YE,A.omitBy=XE,A.once=ZS,A.orderBy=kS,A.over=K_,A.overArgs=GS,A.overEvery=V_,A.overSome=Y_,A.partial=ol,A.partialRight=Bp,A.partition=$S,A.pick=JE,A.pickBy=Qp,A.property=sh,A.propertyOf=X_,A.pull=kx,A.pullAll=$p,A.pullAllBy=$x,A.pullAllWith=Ix,A.pullAt=Lx,A.range=J_,A.rangeRight=Q_,A.rearg=KS,A.reject=MS,A.remove=Mx,A.rest=VS,A.reverse=rl,A.sampleSize=DS,A.set=e_,A.setWith=t_,A.shuffle=NS,A.slice=Fx,A.sortBy=WS,A.sortedUniq=Bx,A.sortedUniqBy=Hx,A.split=__,A.spread=YS,A.tail=qx,A.take=Zx,A.takeRight=Gx,A.takeRightWhile=Kx,A.takeWhile=Vx,A.tap=cS,A.throttle=XS,A.thru=Ps,A.toArray=Kp,A.toPairs=eh,A.toPairsIn=th,A.toPath=iO,A.toPlainObject=Yp,A.transform=r_,A.unary=JS,A.union=Yx,A.unionBy=Xx,A.unionWith=Jx,A.uniq=Qx,A.uniqBy=eS,A.uniqWith=tS,A.unset=n_,A.unzip=nl,A.unzipWith=Ip,A.update=i_,A.updateWith=o_,A.values=ui,A.valuesIn=s_,A.without=rS,A.words=ih,A.wrap=QS,A.xor=nS,A.xorBy=iS,A.xorWith=oS,A.zip=sS,A.zipObject=aS,A.zipObjectDeep=uS,A.zipWith=lS,A.entries=eh,A.entriesIn=th,A.extend=Xp,A.extendWith=Fs,pl(A,A),A.add=sO,A.attempt=oh,A.camelCase=c_,A.capitalize=rh,A.ceil=aO,A.clamp=a_,A.clone=tE,A.cloneDeep=nE,A.cloneDeepWith=iE,A.cloneWith=rE,A.conformsTo=oE,A.deburr=nh,A.defaultTo=j_,A.divide=uO,A.endsWith=f_,A.eq=lr,A.escape=d_,A.escapeRegExp=p_,A.every=wS,A.find=SS,A.findIndex=Rp,A.findKey=ME,A.findLast=ES,A.findLastIndex=Pp,A.findLastKey=FE,A.floor=lO,A.forEach=Mp,A.forEachRight=Fp,A.forIn=DE,A.forInRight=NE,A.forOwn=jE,A.forOwnRight=zE,A.get=ul,A.gt=sE,A.gte=aE,A.has=BE,A.hasIn=ll,A.head=kp,A.identity=$t,A.includes=RS,A.indexOf=Ex,A.inRange=u_,A.invoke=ZE,A.isArguments=Pn,A.isArray=we,A.isArrayBuffer=uE,A.isArrayLike=Ct,A.isArrayLikeObject=tt,A.isBoolean=lE,A.isBuffer=sn,A.isDate=cE,A.isElement=fE,A.isEmpty=dE,A.isEqual=pE,A.isEqualWith=hE,A.isError=sl,A.isFinite=gE,A.isFunction=jr,A.isInteger=Hp,A.isLength=Ls,A.isMap=qp,A.isMatch=mE,A.isMatchWith=vE,A.isNaN=yE,A.isNative=bE,A.isNil=xE,A.isNull=wE,A.isNumber=Zp,A.isObject=Ge,A.isObjectLike=Je,A.isPlainObject=Wi,A.isRegExp=al,A.isSafeInteger=SE,A.isSet=Gp,A.isString=Ms,A.isSymbol=jt,A.isTypedArray=ai,A.isUndefined=EE,A.isWeakMap=_E,A.isWeakSet=OE,A.join=Rx,A.kebabCase=h_,A.last=er,A.lastIndexOf=Px,A.lowerCase=g_,A.lowerFirst=m_,A.lt=AE,A.lte=TE,A.max=cO,A.maxBy=fO,A.mean=dO,A.meanBy=pO,A.min=hO,A.minBy=gO,A.stubArray=gl,A.stubFalse=ml,A.stubObject=eO,A.stubString=tO,A.stubTrue=rO,A.multiply=mO,A.nth=Cx,A.noConflict=Z_,A.noop=hl,A.now=ks,A.pad=v_,A.padEnd=y_,A.padStart=b_,A.parseInt=w_,A.random=l_,A.reduce=IS,A.reduceRight=LS,A.repeat=x_,A.replace=S_,A.result=QE,A.round=vO,A.runInContext=N,A.sample=FS,A.size=jS,A.snakeCase=E_,A.some=zS,A.sortedIndex=Dx,A.sortedIndexBy=Nx,A.sortedIndexOf=jx,A.sortedLastIndex=zx,A.sortedLastIndexBy=Wx,A.sortedLastIndexOf=Ux,A.startCase=O_,A.startsWith=A_,A.subtract=yO,A.sum=bO,A.sumBy=wO,A.template=T_,A.times=nO,A.toFinite=zr,A.toInteger=xe,A.toLength=Vp,A.toLower=R_,A.toNumber=tr,A.toSafeInteger=RE,A.toString=ke,A.toUpper=P_,A.trim=C_,A.trimEnd=k_,A.trimStart=$_,A.truncate=I_,A.unescape=L_,A.uniqueId=oO,A.upperCase=M_,A.upperFirst=cl,A.each=Mp,A.eachRight=Fp,A.first=kp,pl(A,(function(){var n={};return vr(A,function(o,u){Fe.call(A.prototype,u)||(n[u]=o)}),n})(),{chain:!1}),A.VERSION=i,Vt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){A[n].placeholder=A}),Vt(["drop","take"],function(n,o){Te.prototype[n]=function(u){u=u===r?1:at(xe(u),0);var y=this.__filtered__&&!o?new Te(this):this.clone();return y.__filtered__?y.__takeCount__=bt(u,y.__takeCount__):y.__views__.push({size:bt(u,Q),type:n+(y.__dir__<0?"Right":"")}),y},Te.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Vt(["filter","map","takeWhile"],function(n,o){var u=o+1,y=u==q||u==J;Te.prototype[n]=function(_){var T=this.clone();return T.__iteratees__.push({iteratee:pe(_,3),type:u}),T.__filtered__=T.__filtered__||y,T}}),Vt(["head","last"],function(n,o){var u="take"+(o?"Right":"");Te.prototype[n]=function(){return this[u](1).value()[0]}}),Vt(["initial","tail"],function(n,o){var u="drop"+(o?"":"Right");Te.prototype[n]=function(){return this.__filtered__?new Te(this):this[u](1)}}),Te.prototype.compact=function(){return this.filter($t)},Te.prototype.find=function(n){return this.filter(n).head()},Te.prototype.findLast=function(n){return this.reverse().find(n)},Te.prototype.invokeMap=_e(function(n,o){return typeof n=="function"?new Te(this):this.map(function(u){return Mi(u,n,o)})}),Te.prototype.reject=function(n){return this.filter(Is(pe(n)))},Te.prototype.slice=function(n,o){n=xe(n);var u=this;return u.__filtered__&&(n>0||o<0)?new Te(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),o!==r&&(o=xe(o),u=o<0?u.dropRight(-o):u.take(o-n)),u)},Te.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Te.prototype.toArray=function(){return this.take(Q)},vr(Te.prototype,function(n,o){var u=/^(?:filter|find|map|reject)|While$/.test(o),y=/^(?:head|last)$/.test(o),_=A[y?"take"+(o=="last"?"Right":""):o],T=y||/^find/.test(o);_&&(A.prototype[o]=function(){var P=this.__wrapped__,I=y?[1]:arguments,z=P instanceof Te,V=I[0],X=z||we(P),ee=function(Oe){var Re=_.apply(A,Jr([Oe],I));return y&&oe?Re[0]:Re};X&&u&&typeof V=="function"&&V.length!=1&&(z=X=!1);var oe=this.__chain__,le=!!this.__actions__.length,he=T&&!oe,Se=z&&!le;if(!T&&X){P=Se?P:new Te(this);var ge=n.apply(P,I);return ge.__actions__.push({func:Ps,args:[ee],thisArg:r}),new Xt(ge,oe)}return he&&Se?n.apply(this,I):(ge=this.thru(ee),he?y?ge.value()[0]:ge.value():ge)})}),Vt(["pop","push","shift","sort","splice","unshift"],function(n){var o=ts[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",y=/^(?:pop|shift)$/.test(n);A.prototype[n]=function(){var _=arguments;if(y&&!this.__chain__){var T=this.value();return o.apply(we(T)?T:[],_)}return this[u](function(P){return o.apply(we(P)?P:[],_)})}}),vr(Te.prototype,function(n,o){var u=A[o];if(u){var y=u.name+"";Fe.call(ri,y)||(ri[y]=[]),ri[y].push({name:o,func:u})}}),ri[Ss(r,h).name]=[{name:"wrapper",func:r}],Te.prototype.clone=Lw,Te.prototype.reverse=Mw,Te.prototype.value=Fw,A.prototype.at=fS,A.prototype.chain=dS,A.prototype.commit=pS,A.prototype.next=hS,A.prototype.plant=mS,A.prototype.reverse=vS,A.prototype.toJSON=A.prototype.valueOf=A.prototype.value=yS,A.prototype.first=A.prototype.head,Ri&&(A.prototype[Ri]=gS),A}),Qn=pw();xn?((xn.exports=Qn)._=Qn,du._=Qn):dt._=Qn}).call(t$)})(go,go.exports)),go.exports}var Ve=r$();const _c={FdSave:et.FdSave,FdWarningDanger:et.FdWarningDanger,FdInfoCircle:et.FdInfoCircle,FdInfoBold:et.FdInfoBold};var hf=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(hf||{}),zn=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(zn||{}),pi=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(pi||{});const Ry={[zn.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[zn.DANGER]:{icon:"red-500",button:"primary-dark"},[zn.WARNING]:{icon:"yellow-400",button:"primary-dark"}},Vl=({color:e=zn.PRIMARY,variant:t="solid",children:r,autoFocus:i,...s})=>{const a=Ry[e].button,l=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 M.jsx("button",{autoFocus:i,className:We("w-16 rounded px-2 py-1 text-xs font-medium hover:font-bold focus:outline-none",l),...s,children:r})},n$=({name:e,color:t=zn.PRIMARY,className:r="w-8 h-8"})=>{const i=_c[e]||_c.FdInfoCircle,s=`text-${Ry[t].icon}`;return M.jsx(i,{className:We(r,s)})},i$=({id:e,title:t,message:r,icon:i,type:s,color:a,zIndex:l=3e3,views:c,width:f=520,hasOverlay:v=!0,container:m,onClose:g,onEdit:p})=>{const b=w=>{g({id:e,reason:w})};W.useEffect(()=>{function w(h){h.key==="Escape"&&b(pi.CANCELED)}return window.addEventListener("keyup",w),()=>{window.removeEventListener("keyup",w)}},[]);const x=Ve.merge(Ve.values(c==null?void 0:c.toggles).flatMap(w=>w.value?w.warnings||[]:[]),c==null?void 0:c.tips),d=(w,h)=>{var E;if(!(c!=null&&c.toggles))return;const S=Ve.cloneDeep(c);(E=S.toggles)!=null&&E[w]&&(S.toggles[w].value=h),p({id:e,views:S})};return Do.createPortal(M.jsx(wa,{appear:!0,show:!0,as:W.Fragment,children:M.jsx("div",{className:We("absolute inset-0 flex h-full w-full items-center justify-center overflow-y-auto",{"bg-black bg-opacity-80":v}),style:{zIndex:l},onClick:()=>b(pi.CANCELED),children:M.jsx(wa.Child,{as:W.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:M.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:M.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[i?M.jsx("div",{className:"flex items-center justify-center",children:M.jsx(n$,{name:i,color:a,className:"w-6 h-6"})}):null,M.jsx(o$,{condition:t,children:M.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-white text-center",children:t})}),M.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium text-white",children:r}),M.jsx("div",{className:"text-xs text-white",children:Ve.values(c==null?void 0:c.toggles).map(w=>M.jsx("div",{children:M.jsxs("label",{htmlFor:w.key,className:"flex items-center",children:[M.jsx(py,{size:"xs",value:w.value,onChange:h=>d(w.key,h)}),M.jsx("span",{className:"ml-1",children:w.title})]})},w.key))}),M.jsx(s$,{warnings:x}),M.jsx("div",{className:"flex items-center gap-4",children:s===hf.CONFIRM?M.jsxs(M.Fragment,{children:[M.jsx(Vl,{autoFocus:!0,color:a,onClick:()=>b(pi.CONFIRMED),children:"Confirm"}),M.jsx(Vl,{color:a,variant:"outlined",onClick:()=>b(pi.CANCELED),children:"Cancel"})]}):M.jsx(Vl,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),m||document.body)},o$=e=>e.condition?M.jsx(M.Fragment,{children:e.children}):null,s$=e=>e.warnings?M.jsx(wa,{appear:!0,show:!!e.warnings.length,as:W.Fragment,children:M.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)=>M.jsx(wa.Child,{as:W.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:M.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[M.jsx(et.FdWarningDanger,{className:We({"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")}),M.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Py=(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))(Py||{});const a$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:i,handleZoomOut:s})=>M.jsxs("div",{className:"flex items-center rounded bg-grey-300 p-1",children:[M.jsx(et.FdMinusNaked,{onClick:s,className:We("h-5 w-5 p-1",{"text-grey-200":e<=t,"cursor-pointer rounded hover:bg-purple-800":e>t})}),M.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),M.jsx(et.FdPlusNaked,{onClick:i,className:We("h-5 w-5 p-1",{"text-grey-200":e>=r,"cursor-pointer rounded hover:bg-purple-800":e<r})})]}),u$=$.forwardRef(((e,t)=>$.createElement(yn.span,Xe({},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}})))),l$=u$;function pm(e){const t=$.useRef({value:e,previous:e});return $.useMemo((()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous)),[e])}const[Cy]=Kc("Tooltip",[Na]),gf=Na(),c$=700,[bM,f$]=Cy("TooltipProvider",{isOpenDelayed:!0,delayDuration:c$,onOpen:()=>{},onClose:()=>{}}),[d$,Ha]=Cy("Tooltip"),p$=e=>{const{__scopeTooltip:t,children:r,open:i,defaultOpen:s=!1,onOpenChange:a,delayDuration:l}=e,c=f$("Tooltip",t),f=gf(t),[v,m]=$.useState(null),g=Cv(),p=$.useRef(0),b=l??c.delayDuration,x=$.useRef(!1),{onOpen:d,onClose:w}=c,[h=!1,S]=Uv({prop:i,defaultProp:s,onChange:k=>{k&&(document.dispatchEvent(new CustomEvent("tooltip.open")),d()),a==null||a(k)}}),E=$.useMemo((()=>h?x.current?"delayed-open":"instant-open":"closed"),[h]),R=$.useCallback((()=>{window.clearTimeout(p.current),x.current=!1,S(!0)}),[S]),O=$.useCallback((()=>{window.clearTimeout(p.current),p.current=window.setTimeout((()=>{x.current=!0,S(!0)}),b)}),[b,S]);return $.useEffect((()=>()=>window.clearTimeout(p.current)),[]),$.createElement(jv,f,$.createElement(d$,{scope:t,contentId:g,open:h,stateAttribute:E,trigger:v,onTriggerChange:m,onTriggerEnter:$.useCallback((()=>{c.isOpenDelayed?O():R()}),[c.isOpenDelayed,O,R]),onOpen:$.useCallback(R,[R]),onClose:$.useCallback((()=>{window.clearTimeout(p.current),S(!1),w()}),[S,w])},r))},h$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,...i}=e,s=Ha("TooltipTrigger",r),a=gf(r),l=vn(t,s.onTriggerChange),c=$.useRef(!1),f=$.useCallback((()=>c.current=!1),[]);return $.useEffect((()=>()=>document.removeEventListener("mouseup",f)),[f]),$.createElement(zv,Xe({asChild:!0},a),$.createElement(yn.button,Xe({"aria-describedby":s.open?s.contentId:void 0,"data-state":s.stateAttribute},i,{ref:l,onMouseEnter:Bt(e.onMouseEnter,s.onTriggerEnter),onMouseLeave:Bt(e.onMouseLeave,s.onClose),onMouseDown:Bt(e.onMouseDown,(()=>{s.onClose(),c.current=!0,document.addEventListener("mouseup",f,{once:!0})})),onFocus:Bt(e.onFocus,(()=>{c.current||s.onOpen()})),onBlur:Bt(e.onBlur,s.onClose),onClick:Bt(e.onClick,(v=>{v.detail===0&&s.onClose()}))})))})),g$=$.forwardRef(((e,t)=>{const{forceMount:r,...i}=e,s=Ha("TooltipContent",e.__scopeTooltip);return $.createElement(Zc,{present:r||s.open},$.createElement(m$,Xe({ref:t},i)))})),m$=$.forwardRef(((e,t)=>{const{__scopeTooltip:r,children:i,"aria-label":s,portalled:a=!0,...l}=e,c=Ha("TooltipContent",r),f=gf(r),v=a?Gc:$.Fragment,{onClose:m}=c;return Lv((()=>m())),$.useEffect((()=>(document.addEventListener("tooltip.open",m),()=>document.removeEventListener("tooltip.open",m))),[m]),$.createElement(v,null,$.createElement(v$,{__scopeTooltip:r}),$.createElement(Wv,Xe({"data-state":c.stateAttribute},f,l,{ref:t,style:{...l.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)"}}),$.createElement(Iv,null,i),$.createElement(l$,{id:c.contentId,role:"tooltip"},s||i)))}));function v$(e){const{__scopeTooltip:t}=e,r=Ha("CheckTriggerMoved",t),i=Fv(r.trigger),s=i==null?void 0:i.left,a=pm(s),l=i==null?void 0:i.top,c=pm(l),f=r.onClose;return $.useEffect((()=>{(a!==void 0&&a!==s||c!==void 0&&c!==l)&&f()}),[f,a,c,s,l]),null}const y$=p$,b$=h$,w$=g$;function x$(e){return M.jsxs(y$,{delayDuration:e.delayDuration,open:e.open,children:[M.jsx(b$,{tabIndex:-1,asChild:!0,children:M.jsx("span",{children:e.children})}),M.jsxs(w$,{side:e.side,sideOffset:e.sideOffset,alignOffset:e.alignOffset,children:[typeof e.message=="string"&&M.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 In=30,da=500,S$=()=>M.jsx("div",{className:"h-2 w-full bg-opacity-40 hover:bg-primary-hover"}),E$=e=>{const[t,r]=W.useState(In),i=W.useRef(),s=t>In,a=W.useRef(null);return W.useEffect(()=>{e.isOpen&&!s&&r(da),!e.isOpen&&s&&r(In)},[e.isOpen]),M.jsxs("div",{className:"relative w-full select-none isolate",style:{zIndex:49},children:[M.jsx(EO.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:In,onResizeStart:()=>{i.current&&Date.now()-i.current<200?r(s?In:da):i.current=Date.now()},onResize:(l,c,f)=>{a.current&&cancelAnimationFrame(a.current),a.current=requestAnimationFrame(()=>{var v;(v=e.onResize)==null||v.call(e),a.current=null})},onResizeStop:(l,c,f,v)=>{r(t+v.height)},handleComponent:{top:M.jsx(S$,{})}}),M.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${Ve.kebabCase(e.path)}`,children:[M.jsxs("div",{className:We("flex justify-between items-center px-3 py-0.5",{"flex-1":!s}),children:[M.jsxs("div",{className:"group flex items-center justify-start",children:[M.jsx("span",{className:"mr-2 text-sm text-fd-gray-lighter",children:"Contextual panel"}),M.jsx("span",{}),e.tipKey?M.jsx(ty,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,M.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(In),e.onClose()):(r(da),e.onOpen())},children:s?M.jsx(et.FdDoubleArrowDown,{className:"h-4 w-4 text-white"}):M.jsx(et.FdDoubleArrowUp,{className:"h-4 w-4 text-white"})})]}),e.headerRightSide]}),M.jsxs(ua,{of:s,children:[M.jsx(ua,{of:e.render,children:e.render}),M.jsx(ua,{of:!e.render,children:e.children})]})]})]})};function ky({children:e,viewBox:t="0 0 24 24",...r}){return M.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...r,children:e})}function $y(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return M.jsx(ky,{viewBox:"0 0 24 24",...e,children:M.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function _$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:i,label:s,className:a="",style:l,...c}){const f=W.useRef(null),v=i||M.jsx($y,{}),m=c.checked??e;W.useEffect(()=>{f.current&&(f.current.indeterminate=!!t)},[t]);const g=m||t,p=["base-checkbox-container",a].join(" ");return M.jsxs("label",{className:p,style:l,"data-invalid":r,children:[M.jsx("input",{ref:f,type:"checkbox",className:"base-checkbox-input",checked:m,...c,"aria-invalid":r||void 0}),M.jsx("span",{className:"base-checkbox-control",children:g&&v&&W.cloneElement(v,{isChecked:m,isIndeterminate:t,className:"base-checkbox-icon"})}),s&&M.jsx("span",{className:"base-checkbox-label",children:s})]})}const O$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:i,onReset:s})=>M.jsx("div",{className:"flex h-full w-full items-center justify-center",children:M.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[M.jsxs("div",{className:"relative",children:[M.jsx(et.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-red-500 rounded-full"}),M.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"})]}),M.jsx("p",{className:"mb-2 mt-4 text-2xl text-white",children:e}),M.jsx("p",{className:"text-md mb-4 font-extralight text-grey-100",children:t}),M.jsxs("div",{className:"flex gap-4",children:[i&&M.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&&M.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&&M.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 A$(e,t){const r=W.useRef(!1);W.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Yl=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Xl(e,t,r,i){e.addEventListener?e.addEventListener(t,r,i):e.attachEvent&&e.attachEvent("on".concat(t),r)}function fo(e,t,r,i){e.removeEventListener?e.removeEventListener(t,r,i):e.detachEvent&&e.detachEvent("on".concat(t),r)}function Iy(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 Ly(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 T$(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 Po={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,"-":Yl?173:189,"=":Yl?61:187,";":Yl?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},gr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},mo={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},gt={16:!1,18:!1,17:!1,91:!1},Ye={};for(let e=1;e<20;e++)Po["f".concat(e)]=111+e;let qe=[],Oo=null,My="all";const Br=new Map,_i=e=>Po[e.toLowerCase()]||gr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),R$=e=>Object.keys(Po).find(t=>Po[t]===e),P$=e=>Object.keys(gr).find(t=>gr[t]===e);function Fy(e){My=e||"all"}function Co(){return My||"all"}function C$(){return qe.slice(0)}function k$(){return qe.map(e=>R$(e)||P$(e)||String.fromCharCode(e))}function $$(){const e=[];return Object.keys(Ye).forEach(t=>{Ye[t].forEach(r=>{let{key:i,scope:s,mods:a,shortcut:l}=r;e.push({scope:s,shortcut:l,mods:a,keys:i.split("+").map(c=>_i(c))})})}),e}function I$(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 L$(e){return typeof e=="string"&&(e=_i(e)),qe.indexOf(e)!==-1}function M$(e,t){let r,i;e||(e=Co());for(const s in Ye)if(Object.prototype.hasOwnProperty.call(Ye,s))for(r=Ye[s],i=0;i<r.length;)r[i].scope===e?r.splice(i,1).forEach(l=>{let{element:c}=l;return mf(c)}):i++;Co()===e&&Fy(t||"all")}function F$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=_i(e.key));const r=qe.indexOf(t);if(r>=0&&qe.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&qe.splice(0,qe.length),(t===93||t===224)&&(t=91),t in gt){gt[t]=!1;for(const i in gr)gr[i]===t&&(hr[i]=!1)}}function Dy(e){if(typeof e>"u")Object.keys(Ye).forEach(s=>{Array.isArray(Ye[s])&&Ye[s].forEach(a=>ea(a)),delete Ye[s]}),mf(null);else if(Array.isArray(e))e.forEach(s=>{s.key&&ea(s)});else if(typeof e=="object")e.key&&ea(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=""),ea({key:e,scope:s,method:a,splitKey:"+"})}}const ea=e=>{let{key:t,scope:r,method:i,splitKey:s="+"}=e;Ly(t).forEach(l=>{const c=l.split(s),f=c.length,v=c[f-1],m=v==="*"?"*":_i(v);if(!Ye[m])return;r||(r=Co());const g=f>1?Iy(gr,c):[],p=[];Ye[m]=Ye[m].filter(b=>{const d=(i?b.method===i:!0)&&b.scope===r&&T$(b.mods,g);return d&&p.push(b.element),!d}),p.forEach(b=>mf(b))})};function hm(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 gt)Object.prototype.hasOwnProperty.call(gt,a)&&(!gt[a]&&t.mods.indexOf(+a)>-1||gt[a]&&t.mods.indexOf(+a)===-1)&&(s=!1);(t.mods.length===0&&!gt[16]&&!gt[18]&&!gt[17]&&!gt[91]||s||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(qe),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function gm(e,t){const r=Ye["*"];let i=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!hr.filter.call(this,e))return;if((i===93||i===224)&&(i=91),qe.indexOf(i)===-1&&i!==229&&qe.push(i),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const f=mo[c];e[c]&&qe.indexOf(f)===-1?qe.push(f):!e[c]&&qe.indexOf(f)>-1?qe.splice(qe.indexOf(f),1):c==="metaKey"&&e[c]&&(qe=qe.filter(v=>v in mo||v===i))}),i in gt){gt[i]=!0;for(const c in gr)if(Object.prototype.hasOwnProperty.call(gr,c)){const f=mo[gr[c]];hr[c]=e[f]}if(!r)return}for(const c in gt)Object.prototype.hasOwnProperty.call(gt,c)&&(gt[c]=e[mo[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(qe.indexOf(17)===-1&&qe.push(17),qe.indexOf(18)===-1&&qe.push(18),gt[17]=!0,gt[18]=!0);const s=Co();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)&&hm(e,r[c],s,t);if(!(i in Ye))return;const a=Ye[i],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 f=a[c],{splitKey:v}=f,m=f.key.split(v),g=[];for(let p=0;p<m.length;p++)g.push(_i(m[p]));g.sort().join("")===qe.sort().join("")&&hm(e,f,s,t)}}function hr(e,t,r){qe=[];const i=Ly(e);let s=[],a="all",l=document,c=0,f=!1,v=!0,m="+",g=!1,p=!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&&(f=t.keyup),t.keydown!==void 0&&(v=t.keydown),t.capture!==void 0&&(g=t.capture),typeof t.splitKey=="string"&&(m=t.splitKey),t.single===!0&&(p=!0)),typeof t=="string"&&(a=t),p&&Dy(e,a);c<i.length;c++)e=i[c].split(m),s=[],e.length>1&&(s=Iy(gr,e)),e=e[e.length-1],e=e==="*"?"*":_i(e),e in Ye||(Ye[e]=[]),Ye[e].push({keyup:f,keydown:v,scope:a,mods:s,shortcut:i[c],method:r,key:i[c],splitKey:m,element:l});if(typeof l<"u"&&window){if(!Br.has(l)){const b=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return gm(d,l)},x=function(){let d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;gm(d,l),F$(d)};Br.set(l,{keydownListener:b,keyupListenr:x,capture:g}),Xl(l,"keydown",b,g),Xl(l,"keyup",x,g)}if(!Oo){const b=()=>{qe=[]};Oo={listener:b,capture:g},Xl(window,"focus",b,g)}}}function D$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(Ye).forEach(r=>{Ye[r].filter(s=>s.scope===t&&s.shortcut===e).forEach(s=>{s&&s.method&&s.method()})})}function mf(e){const t=Object.values(Ye).flat();if(t.findIndex(i=>{let{element:s}=i;return s===e})<0){const{keydownListener:i,keyupListenr:s,capture:a}=Br.get(e)||{};i&&s&&(fo(e,"keyup",s,a),fo(e,"keydown",i,a),Br.delete(e))}if((t.length<=0||Br.size<=0)&&(Object.keys(Br).forEach(s=>{const{keydownListener:a,keyupListenr:l,capture:c}=Br.get(s)||{};a&&l&&(fo(s,"keyup",l,c),fo(s,"keydown",a,c),Br.delete(s))}),Br.clear(),Object.keys(Ye).forEach(s=>delete Ye[s]),Oo)){const{listener:s,capture:a}=Oo;fo(window,"focus",s,a),Oo=null}}const Jl={getPressedKeyString:k$,setScope:Fy,getScope:Co,deleteScope:M$,getPressedKeyCodes:C$,getAllKeyCodes:$$,isPressed:L$,filter:I$,trigger:D$,unbind:Dy,keyMap:Po,modifier:gr,modifierMap:mo};for(const e in Jl)Object.prototype.hasOwnProperty.call(Jl,e)&&(hr[e]=Jl[e]);if(typeof window<"u"){const e=window.hotkeys;hr.noConflict=t=>(t&&window.hotkeys===hr&&(window.hotkeys=e),hr),window.hotkeys=hr}hr.filter=()=>!0;function N$(e,t,r,i){r instanceof Array&&(i=r,r=void 0),i=i||[],r=r||{};const{preventDefault:s=!0}=r,a=W.useCallback((c,f)=>{s&&c.preventDefault(),setTimeout(()=>t(c,f))},i),l=()=>{hr.unbind(e,a)};W.useEffect(()=>(hr(e,r,a),l),[e,r,a])}const j$=e=>{const t=W.useRef(null);return W.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 z$(e){const t=W.useRef();return W.useEffect(()=>{t.current=e},[e]),t.current}function W$(e){const t=W.useRef(e);return W.useEffect(()=>{t.current=e},[e]),t}function U$(e){const t=W.useRef(null);return W.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function B$(e){const[t,r]=W.useState(e),i=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},s=W.useCallback((...a)=>a.every(l=>{var c;return(c=t.features[l])==null?void 0:c.enabled}),[t.features]);return{setFeature:i,isFeatureEnabled:s}}const Ny=W.createContext(""),H$=e=>M.jsx(Ny.Provider,{value:e.value,children:e.children}),q$=()=>{const e=W.useContext(Ny);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function Z$(e){const[t,r]=W.useState(e),i=W.useMemo(()=>G$(t,r),[]);return{state:t,actions:{...i,set:s=>{r(typeof s=="function"?s:a=>({...a,...s}))}}}}function G$(e,t=()=>{}){return Object.keys(e).reduce((i,s)=>({...i,[`set${Ve.upperFirst(s)}`]:a=>t(l=>({...l,[s]:a}))}),{})}const K$=(e,t,r={})=>{r={timeout:200,...r};const i=W.useRef(),s=()=>{i.current&&(clearTimeout(i.current),i.current=null)};return W.useCallback((a,...l)=>{s(),t&&a.detail===1&&(i.current=setTimeout(()=>{t(a,...l)},r.timeout)),a.detail%2===0&&e(a,...l)},[t,e,r.timeout])};function mt(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=tI[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(l){return"'"+l+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Si(e){return!!e&&!!e[qt]}function Hn(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)===rI})(e)||Array.isArray(e)||!!e[Em]||!!(!((t=e.constructor)===null||t===void 0)&&t[Em])||vf(e)||yf(e))}function ko(e,t,r){r===void 0&&(r=!1),Oi(e)===0?(r?Object.keys:Sf)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,s){return t(s,i,e)}))}function Oi(e){var t=e[qt];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:vf(e)?2:yf(e)?3:0}function Oc(e,t){return Oi(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function V$(e,t){return Oi(e)===2?e.get(t):e[t]}function jy(e,t,r){var i=Oi(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Y$(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vf(e){return Q$&&e instanceof Map}function yf(e){return eI&&e instanceof Set}function Ln(e){return e.o||e.t}function bf(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=nI(e);delete t[qt];for(var r=Sf(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 $o(e,t){return t===void 0&&(t=!1),wf(e)||Si(e)||!Hn(e)||(Oi(e)>1&&(e.set=e.add=e.clear=e.delete=X$),Object.freeze(e),t&&ko(e,(function(r,i){return $o(i,!0)}),!0)),e}function X$(){mt(2)}function wf(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function Rr(e){var t=iI[e];return t||mt(18,e),t}function mm(){return process.env.NODE_ENV==="production"||Ei||mt(0),Ei}function Ql(e,t){t&&(Rr("Patches"),e.u=[],e.s=[],e.v=t)}function _a(e){Ac(e),e.p.forEach(J$),e.p=null}function Ac(e){e===Ei&&(Ei=e.l)}function vm(e){return Ei={p:[],l:Ei,h:e,m:!0,_:0}}function J$(e){var t=e[qt];t.i===0||t.i===1?t.j():t.g=!0}function ec(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||Rr("ES5").S(t,e,i),i?(r[qt].P&&(_a(t),mt(4)),Hn(e)&&(e=Oa(t,e),t.l||Aa(t,e)),t.u&&Rr("Patches").M(r[qt].t,e,t.u,t.s)):e=Oa(t,r,[]),_a(t),t.u&&t.v(t.u,t.s),e!==Wy?e:void 0}function Oa(e,t,r){if(wf(t))return t;var i=t[qt];if(!i)return ko(t,(function(c,f){return ym(e,i,t,c,f,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Aa(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var s=i.i===4||i.i===5?i.o=bf(i.k):i.o,a=s,l=!1;i.i===3&&(a=new Set(s),s.clear(),l=!0),ko(a,(function(c,f){return ym(e,i,s,c,f,r,l)})),Aa(e,s,!1),r&&e.u&&Rr("Patches").N(i,r,e.u,e.s)}return i.o}function ym(e,t,r,i,s,a,l){if(process.env.NODE_ENV!=="production"&&s===r&&mt(5),Si(s)){var c=Oa(e,s,a&&t&&t.i!==3&&!Oc(t.R,i)?a.concat(i):void 0);if(jy(r,i,c),!Si(c))return;e.m=!1}else l&&r.add(s);if(Hn(s)&&!wf(s)){if(!e.h.D&&e._<1)return;Oa(e,s),t&&t.A.l||Aa(e,s)}}function Aa(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&$o(t,r)}function tc(e,t){var r=e[qt];return(r?Ln(r):e)[t]}function bm(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 Tc(e){e.P||(e.P=!0,e.l&&Tc(e.l))}function rc(e){e.o||(e.o=bf(e.t))}function Rc(e,t,r){var i=vf(t)?Rr("MapSet").F(t,r):yf(t)?Rr("MapSet").T(t,r):e.O?(function(s,a){var l=Array.isArray(s),c={i:l?1:0,A:a?a.A:mm(),P:!1,I:!1,R:{},l:a,t:s,k:null,o:null,j:null,C:!1},f=c,v=Pc;l&&(f=[c],v=vo);var m=Proxy.revocable(f,v),g=m.revoke,p=m.proxy;return c.k=p,c.j=g,p})(t,r):Rr("ES5").J(t,r);return(r?r.A:mm()).p.push(i),i}function zy(e){return Si(e)||mt(22,e),(function t(r){if(!Hn(r))return r;var i,s=r[qt],a=Oi(r);if(s){if(!s.P&&(s.i<4||!Rr("ES5").K(s)))return s.t;s.I=!0,i=wm(r,a),s.I=!1}else i=wm(r,a);return ko(i,(function(l,c){s&&V$(s.t,l)===c||jy(i,l,t(c))})),a===3?new Set(i):i})(e)}function wm(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return bf(e)}var xm,Ei,xf=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Q$=typeof Map<"u",eI=typeof Set<"u",Sm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Wy=xf?Symbol.for("immer-nothing"):((xm={})["immer-nothing"]=!0,xm),Em=xf?Symbol.for("immer-draftable"):"__$immer_draftable",qt=xf?Symbol.for("immer-state"):"__$immer_state",tI={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"},rI=""+Object.prototype.constructor,Sf=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,nI=Object.getOwnPropertyDescriptors||function(e){var t={};return Sf(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},iI={},Pc={get:function(e,t){if(t===qt)return e;var r=Ln(e);if(!Oc(r,t))return(function(s,a,l){var c,f=bm(a,l);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||!Hn(i)?i:i===tc(e.t,t)?(rc(e),e.o[t]=Rc(e.A.h,i,e)):i},has:function(e,t){return t in Ln(e)},ownKeys:function(e){return Reflect.ownKeys(Ln(e))},set:function(e,t,r){var i=bm(Ln(e),t);if(i!=null&&i.set)return i.set.call(e.k,r),!0;if(!e.P){var s=tc(Ln(e),t),a=s==null?void 0:s[qt];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Y$(r,s)&&(r!==void 0||Oc(e.t,t)))return!0;rc(e),Tc(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 tc(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,rc(e),Tc(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Ln(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){mt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){mt(12)}},vo={};ko(Pc,(function(e,t){vo[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),vo.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&mt(13),vo.set.call(this,e,t,void 0)},vo.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&mt(14),Pc.set.call(this,e[0],t,r,e[0])};var oI=(function(){function e(r){var i=this;this.O=Sm,this.D=!0,this.produce=function(s,a,l){if(typeof s=="function"&&typeof a!="function"){var c=a;a=s;var f=i;return function(d){var w=this;d===void 0&&(d=c);for(var h=arguments.length,S=Array(h>1?h-1:0),E=1;E<h;E++)S[E-1]=arguments[E];return f.produce(d,(function(R){var O;return(O=a).call.apply(O,[w,R].concat(S))}))}}var v;if(typeof a!="function"&&mt(6),l!==void 0&&typeof l!="function"&&mt(7),Hn(s)){var m=vm(i),g=Rc(i,s,void 0),p=!0;try{v=a(g),p=!1}finally{p?_a(m):Ac(m)}return typeof Promise<"u"&&v instanceof Promise?v.then((function(d){return Ql(m,l),ec(d,m)}),(function(d){throw _a(m),d})):(Ql(m,l),ec(v,m))}if(!s||typeof s!="object"){if((v=a(s))===void 0&&(v=s),v===Wy&&(v=void 0),i.D&&$o(v,!0),l){var b=[],x=[];Rr("Patches").M(s,v,b,x),l(b,x)}return v}mt(21,s)},this.produceWithPatches=function(s,a){if(typeof s=="function")return function(v){for(var m=arguments.length,g=Array(m>1?m-1:0),p=1;p<m;p++)g[p-1]=arguments[p];return i.produceWithPatches(v,(function(b){return s.apply(void 0,[b].concat(g))}))};var l,c,f=i.produce(s,a,(function(v,m){l=v,c=m}));return typeof Promise<"u"&&f instanceof Promise?f.then((function(v){return[v,l,c]})):[f,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){Hn(r)||mt(8),Si(r)&&(r=zy(r));var i=vm(this),s=Rc(this,r,void 0);return s[qt].C=!0,Ac(i),s},t.finishDraft=function(r,i){var s=r&&r[qt];process.env.NODE_ENV!=="production"&&(s&&s.C||mt(9),s.I&&mt(10));var a=s.A;return Ql(a,i),ec(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Sm&&mt(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 l=Rr("Patches").$;return Si(r)?l(r,i):this.produce(r,(function(c){return l(c,i)}))},e})(),Zt=new oI,sI=Zt.produce;Zt.produceWithPatches.bind(Zt);Zt.setAutoFreeze.bind(Zt);Zt.setUseProxies.bind(Zt);Zt.applyPatches.bind(Zt);Zt.createDraft.bind(Zt);Zt.finishDraft.bind(Zt);function aI(e){var t=W.useState(function(){return $o(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],W.useCallback(function(i){r(typeof i=="function"?sI(i):$o(i))},[])]}const uI=process.env.NODE_ENV==="development",nc=uI&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,lI=(e,t,r)=>{const[i,s]=aI(e),a=W.useRef(null);W.useEffect(()=>{var f;return r&&(a.current=nc==null?void 0:nc.connect({name:r,trace:!0}),(f=a.current)==null||f.init(e)),()=>{var v,m;(m=(v=a.current)==null?void 0:v.disconnect)==null||m.call(v)}},[]);const l=t&&typeof t=="object"?t:{},c=W.useMemo(()=>Object.keys(l).reduce((f,v)=>({...f,[v]:m=>(s(g=>{var p;l[v](g,m),(p=a.current)==null||p.send({type:l[v].name},zy(g))}),c)}),{}),[s]);return{state:i,dispatch:c}};function Zr(e){return typeof e=="function"}function Uy(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 ic=Uy(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 Cc(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var qa=(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 l=this._parentage;if(l)if(this._parentage=null,Array.isArray(l))try{for(var c=dc(l),f=c.next();!f.done;f=c.next()){var v=f.value;v.remove(this)}}catch(d){t={error:d}}finally{try{f&&!f.done&&(r=c.return)&&r.call(c)}finally{if(t)throw t.error}}else l.remove(this);var m=this.initialTeardown;if(Zr(m))try{m()}catch(d){a=d instanceof ic?d.errors:[d]}var g=this._finalizers;if(g){this._finalizers=null;try{for(var p=dc(g),b=p.next();!b.done;b=p.next()){var x=b.value;try{_m(x)}catch(d){a=a??[],d instanceof ic?a=ya(ya([],pc(a)),pc(d.errors)):a.push(d)}}}catch(d){i={error:d}}finally{try{b&&!b.done&&(s=p.return)&&s.call(p)}finally{if(i)throw i.error}}}if(a)throw new ic(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)_m(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)&&Cc(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Cc(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),By=qa.EMPTY;function Hy(e){return e instanceof qa||e&&"closed"in e&&Zr(e.remove)&&Zr(e.add)&&Zr(e.unsubscribe)}function _m(e){Zr(e)?e():e.unsubscribe()}var cI={Promise:void 0},fI={setTimeout:function(e,t){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];return setTimeout.apply(void 0,ya([e,t],pc(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function dI(e){fI.setTimeout(function(){throw e})}function Om(){}function pa(e){e()}var qy=(function(e){Fa(t,e);function t(r){var i=e.call(this)||this;return i.isStopped=!1,r?(i.destination=r,Hy(r)&&r.add(i)):i.destination=gI,i}return t.create=function(r,i,s){return new kc(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})(qa),pI=(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){ta(i)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(i){ta(i)}else ta(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){ta(r)}},e})(),kc=(function(e){Fa(t,e);function t(r,i,s){var a=e.call(this)||this,l;return Zr(r)||!r?l={next:r??void 0,error:i??void 0,complete:s??void 0}:l=r,a.destination=new pI(l),a}return t})(qy);function ta(e){dI(e)}function hI(e){throw e}var gI={closed:!0,next:Om,error:hI,complete:Om},mI=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function vI(e){return e}function yI(e){return e.length===0?vI:e.length===1?e[0]:function(r){return e.reduce(function(i,s){return s(i)},r)}}var Am=(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=wI(t)?t:new kc(t,r,i);return pa(function(){var l=s,c=l.operator,f=l.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=Tm(r),new r(function(s,a){var l=new kc({next:function(c){try{t(c)}catch(f){a(f),l.unsubscribe()}},error:a,complete:s});i.subscribe(l)})},e.prototype._subscribe=function(t){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(t)},e.prototype[mI]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return yI(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=Tm(t),new t(function(i,s){var a;r.subscribe(function(l){return a=l},function(l){return s(l)},function(){return i(a)})})},e.create=function(t){return new e(t)},e})();function Tm(e){var t;return(t=e??cI.Promise)!==null&&t!==void 0?t:Promise}function bI(e){return e&&Zr(e.next)&&Zr(e.error)&&Zr(e.complete)}function wI(e){return e&&e instanceof qy||bI(e)&&Hy(e)}var xI=Uy(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),kr=(function(e){Fa(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 Rm(this,this);return i.operator=r,i},t.prototype._throwIfClosed=function(){if(this.closed)throw new xI},t.prototype.next=function(r){var i=this;pa(function(){var s,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var l=dc(i.currentObservers),c=l.next();!c.done;c=l.next()){var f=c.value;f.next(r)}}catch(v){s={error:v}}finally{try{c&&!c.done&&(a=l.return)&&a.call(l)}finally{if(s)throw s.error}}}})},t.prototype.error=function(r){var i=this;pa(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;pa(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,l=s.isStopped,c=s.observers;return a||l?By:(this.currentObservers=null,c.push(r),new qa(function(){i.currentObservers=null,Cc(c,r)}))},t.prototype._checkFinalizedStatuses=function(r){var i=this,s=i.hasError,a=i.thrownError,l=i.isStopped;s?r.error(a):l&&r.complete()},t.prototype.asObservable=function(){var r=new Am;return r.source=this,r},t.create=function(r,i){return new Rm(r,i)},t})(Am),Rm=(function(e){Fa(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:By},t})(kr),Zy=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Zy||{}),Gy=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Gy||{});const SI=new kr,EI=new kr,Ky=new kr;var Vy=(e=>(e.SAVE_ALL="save-all",e))(Vy||{});const _I=new kr;var Yy=(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))(Yy||{});const OI=new kr;var Xy=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(Xy||{});const AI=new kr,TI=new kr;var Io=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(Io||{});const Ta=new kr,RI=new kr,Ef=255;var _f=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Ef} 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 Jy(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Ef)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 PI(e){if(!e)return null;if(typeof e=="string")try{Jy(e)}catch(t){return t.message}}function CI(e,t){let r="";if(["array","object"].includes(t))try{const i=JSON.parse(e);t==="array"&&(!Array.isArray(i)||!Ve.isObject(i))&&(r=`Invalid value for type ${t}`),t==="object"&&(!Ve.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 kI(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Za(e){const{PLACEHOLDER_PREFIX:t,counter:r}=kI();let i=r;const s=[],a="@!",l=m=>(s.push(m),`${t}${i++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(m,g,p)=>g+l(p)),c=c.replace(/:\d{2}:\d{2}/g,l);const f=new RegExp(":(?!4D\\.\\w+)[CPK]?\\d+","g");let v=c.replace(f,"");for(let m=0;m<s.length;m++){const p=`${t}${m}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(p,"g");v=v.replace(b,s[m])}return v}var Of=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Of||{});const hn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var Ke=(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))(Ke||{}),bn=(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))(bn||{}),Af=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Af||{});const Qy="roles.json",e0="qodlyApp.json",$I="model.4DModel",t0="HTTPHandlers.json",r0="Shared/i18n.json";function II(e){const t=Tf(e);switch(t){case Ke.SETTINGS:return{filename:"Settings",type:t};case Ke.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case Ke.ROLES:return{filename:"Roles & Privileges",type:t};case Ke.LOCALIZATION:return{filename:"Localization",type:t};case Ke.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[i]=r[1].split(".");return{filename:i,type:t}}}}function Tf(e){const t=e.split("."),r=t.pop(),i=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return Ke.MODEL;case r==="WebForm":return Ke.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&i===hn.METHODS):return Ke.METHOD;case(["4dm","4qs","4qm"].includes(r)&&i===hn.CLASSES):return Ke.CLASS;case e===Qy:return Ke.ROLES;case e===t0:return Ke.HTTP_HANDLERS;case e===e0:return Ke.SETTINGS;case e===r0:return Ke.LOCALIZATION;default:return Ke.TEXT}}function LI(e,t=!1){switch(e){case hn.REPORTS:case"report":return"QoDoc";case hn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case hn.CLASSES:case hn.METHODS:return t?"4qs":"4dm";default:return""}}function MI(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function FI(e,t,r){switch(t){case Ke.MOBILEFORM:return`${e}.MForm`;case Ke.WEBFORM:return`${e}.WebForm`;case Ke.REPORT:return`${e}.QoDoc`;case Ke.METHOD:case Ke.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class n0{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 Rf(){const e=new n0;return async t=>{const r=await e.lock();try{const i=await t();return r(),i}catch(i){console.error(i),r();return}}}const i0=Ve.curry((e,t,r)=>e&&Ve.get(r,e)===t),DI=Ve.curry((e,t,r)=>Ve.get(r,e)!==t),NI=Ve.curry((e,t)=>Ve.get(t,"id")!==e),jI=Ve.curry((e,t)=>Ve.get(t,"id")===e),zI=Ve.curry((e,t)=>Ve.get(t,"path")===e);function WI(e="id",t,r){return r.findIndex(i0(e,t))!==-1}function o0(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function UI(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function BI(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 s0(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function HI(e){return e.type==="object"}function a0(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function u0(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!s0(e)}function qI(e){return a0(e)||u0(e)}function ZI(e){return e.applyTo==="dataStore"}function GI(e){return e.applyTo==="dataClass"}function KI(e){return e.applyTo==="entity"}function VI(e){return e.applyTo==="entityCollection"}function YI(e){return e.type==="entity"}function XI(e){return e.type==="entitysel"}function l0(e){return e.dataType==="array"}function c0(e){return e.dataType==="object"}function f0(e){return e.type==="scalar"}function JI(e){return l0(e)||c0(e)||f0(e)}const QI=e=>e!=null&&e.type==="entity",e2=e=>e.type==="entitysel",t2=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",r2=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",n2=e=>e.type==="scalar"&&e.dataType==="date",i2=(e,t)=>(e||"")===(t||"");function o2(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function s2(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const yo="Qodly",d0="Location",p0="UserLanguage",h0="Title",Ra={[yo]:[{id:h0,dataType:"string",type:"scalar",namespace:yo,initialValue:""},{id:d0,dataType:"object",type:"scalar",namespace:yo,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:p0,dataType:"object",type:"scalar",namespace:yo,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 Lo=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(Lo||{}),g0=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(g0||{}),Pf=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(Pf||{});const a2={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function u2(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,...i}=t;return{...{invisible:!1,shared:!1,executedOnServer:!1,preemptive:Lo.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:Pf.table}},...i}}function m0(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[Lo.capable,Lo.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 l2(e,t,r=!1){const i=Ve.isString(t)?t:m0(t);if(!r&&v0(e))return e;const s=y0(e);return`//%attributes = ${i}\r
204
- ${s}`}function v0(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function y0(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const c2=()=>Hc.uuid().replaceAll("-","").toUpperCase(),f2=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");function b0(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 w0(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function d2(e,t){const r=b0(e);return w0(r,t)}function p2(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const ot="/rest/$designer",Ho="/rest/$designer-ext";function h2(...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 $c 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 Me(e,t){var s;Ta.next({action:Io.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();((s=l==null?void 0:l.__ERROR)==null?void 0:s.some(f=>f.errCode===1651))&&Ta.next({action:Io.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new $c(e,r,l)}catch{a=new $c(e,r)}throw a.log(),a}return await r.json()}function g2(e){return Ta.next({action:Io.REQUEST_SENT}),e}var xr={},ht={},Pm;function Fn(){if(Pm)return ht;Pm=1;var e=ht.ValidationError=function(d,w,h,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),d&&(this.message=d),h){var O=h.$id||h.id;this.schema=O||h}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=ht.ValidatorResult=function(d,w,h,S){this.instance=d,this.schema=w,this.options=h,this.path=S.path,this.propertyPath=S.propertyPath,this.errors=[],this.throwError=h&&h.throwError,this.throwFirst=h&&h.throwFirst,this.throwAll=h&&h.throwAll,this.disableFormat=h&&h.disableFormat===!0};t.prototype.addError=function(d){var w;if(typeof d=="string")w=new e(d,this.instance,this.schema,this.path);else{if(!d)throw new Error("Missing error detail");if(!d.message)throw new Error("Missing error message");if(!d.name)throw new Error("Missing validator type");w=new e(d.message,this.instance,this.schema,this.path,d.name,d.argument)}if(this.errors.push(w),this.throwFirst)throw new i(this);if(this.throwError)throw w;return w},t.prototype.importErrors=function(d){typeof d=="string"||d&&d.validatorType?this.addError(d):d&&d.errors&&(this.errors=this.errors.concat(d.errors))};function r(x,d){return d+": "+x.toString()+`
205
- `}t.prototype.toString=function(d){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),ht.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=ht.SchemaError=function x(d,w){this.message=d,this.schema=w,Error.call(this,d),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=ht.SchemaContext=function(d,w,h,S,E){this.schema=d,this.options=w,Array.isArray(h)?(this.path=h,this.propertyPath=h.reduce(function(R,O){return R+c(O)},"instance")):this.propertyPath=h,this.base=S,this.schemas=E};a.prototype.resolve=function(d){return b(this.base,d)},a.prototype.makeChild=function(d,w){var h=w===void 0?this.path:this.path.concat([w]),S=d.$id||d.id;let E=b(this.base,S||"");var R=new a(d,this.options,h,E,Object.create(this.schemas));return S&&!R.schemas[E]&&(R.schemas[E]=d),R};var l=ht.FORMAT_REGEXPS={"date-time":/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])[tT ](2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])(\.\d+)?([zZ]|[+-]([0-5][0-9]):(60|[0-5][0-9]))$/,date:/^\d{4}-(?:0[0-9]{1}|1[0-2]{1})-(3[01]|0[1-9]|[12][0-9])$/,time:/^(2[0-4]|[01][0-9]):([0-5][0-9]):(60|[0-5][0-9])$/,duration:/P(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S)|\d+(D|M(\d+D)?|Y(\d+M(\d+D)?)?)(T\d+(H(\d+M(\d+S)?)?|M(\d+S)?|S))?|\d+W)/i,email:/^(?:[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+\.)*[\w\!\#\$\%\&\'\*\+\-\/\=\?\^\`\{\|\}\~]+@(?:(?:(?:[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!\.)){0,61}[a-zA-Z0-9]?\.)+[a-zA-Z0-9](?:[a-zA-Z0-9\-](?!$)){0,61}[a-zA-Z0-9]?)|(?:\[(?:(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d{1,2}|2[0-4]\d|25[0-5])\]))$/,"idn-email":/^("(?:[!#-\[\]-\u{10FFFF}]|\\[\t -\u{10FFFF}])*"|[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*)@([!#-'*+\-/-9=?A-Z\^-\u{10FFFF}](?:\.?[!#-'*+\-/-9=?A-Z\^-\u{10FFFF}])*|\[[!-Z\^-\u{10FFFF}]*\])$/u,"ip-address":/^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,ipv6:/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,uri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"uri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/,iri:/^[a-zA-Z][a-zA-Z0-9+.-]*:[^\s]*$/,"iri-reference":/^(((([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:?)?)|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?)?))#(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|(([A-Za-z][+\-.0-9A-Za-z]*)?%[0-9A-Fa-f]{2}|[!$&-.0-9;=@_~-\u{10FFFF}]|[A-Za-z][+\-.0-9A-Za-z]*[!$&-*,;=@_~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-.0-9;=@-Z_a-z~-\u{10FFFF}])*((([/?](%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?#|[/?])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*)?|([A-Za-z][+\-.0-9A-Za-z]*(:%[0-9A-Fa-f]{2}|:[!$&-.0-;=?-Z_a-z~-\u{10FFFF}]|[/?])|\?)(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|([A-Za-z][+\-.0-9A-Za-z]*:)?\/((%[0-9A-Fa-f]{2}|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)(:\d*)?[/?]|[!$&-.0-;=?-Z_a-z~-\u{10FFFF}])(%[0-9A-Fa-f]{2}|[!$&-;=?-Z_a-z~-\u{10FFFF}])*|\/((%[0-9A-Fa-f]{2}|[!$&-.0-9;=A-Z_a-z~-\u{10FFFF}])+(:\d*)?|(\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?:\d*|\[(([Vv][0-9A-Fa-f]+\.[!$&-.0-;=A-Z_a-z~-\u{10FFFF}]+)?|[.0-:A-Fa-f]+)\])?)?|[A-Za-z][+\-.0-9A-Za-z]*:?)?$/u,uuid:/^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i,"uri-template":/(%[0-9a-f]{2}|[!#$&(-;=?@\[\]_a-z~]|\{[!#&+,./;=?@|]?(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?(,(%[0-9a-f]{2}|[0-9_a-z])(\.?(%[0-9a-f]{2}|[0-9_a-z]))*(:[1-9]\d{0,3}|\*)?)*\})*/iu,"json-pointer":/^(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*$/iu,"relative-json-pointer":/^\d+(#|(\/([\x00-\x2e0-@\[-}\x7f]|~[01])*)*)$/iu,hostname:/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"host-name":/^(?=.{1,255}$)[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?(?:\.[0-9A-Za-z](?:(?:[0-9A-Za-z]|-){0,61}[0-9A-Za-z])?)*\.?$/,"utc-millisec":function(x){return typeof x=="string"&&parseFloat(x)===parseInt(x,10)&&!isNaN(x)},regex:function(x){var d=!0;try{new RegExp(x)}catch{d=!1}return d},style:/[\r\n\t ]*[^\r\n\t ][^:]*:[\r\n\t ]*[^\r\n\t ;]*[\r\n\t ]*;?/,color:/^(#?([0-9A-Fa-f]{3}){1,2}\b|aqua|black|blue|fuchsia|gray|green|lime|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow|(rgb\(\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*,\s*\b([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\b\s*\))|(rgb\(\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*,\s*(\d?\d%|100%)+\s*\)))$/,phone:/^\+(?:[0-9] ?){6,14}[0-9]$/,alpha:/^[a-zA-Z]+$/,alphanumeric:/^[a-zA-Z0-9]+$/};l.regexp=l.regex,l.pattern=l.regex,l.ipv4=l["ip-address"],ht.isFormat=function(d,w,h){if(typeof d=="string"&&l[w]!==void 0){if(l[w]instanceof RegExp)return l[w].test(d);if(typeof l[w]=="function")return l[w](d)}else if(h&&h.customFormats&&typeof h.customFormats[w]=="function")return h.customFormats[w](d);return!0};var c=ht.makeSuffix=function(d){return d=d.toString(),!d.match(/[.\s\[\]]/)&&!d.match(/^[\d]/)?"."+d:d.match(/^\d+$/)?"["+d+"]":"["+JSON.stringify(d)+"]"};ht.deepCompareStrict=function x(d,w){if(typeof d!=typeof w)return!1;if(Array.isArray(d))return!Array.isArray(w)||d.length!==w.length?!1:d.every(function(E,R){return x(d[R],w[R])});if(typeof d=="object"){if(!d||!w)return d===w;var h=Object.keys(d),S=Object.keys(w);return h.length!==S.length?!1:h.every(function(E){return x(d[E],w[E])})}return d===w};function f(x,d,w,h){typeof w=="object"?d[h]=g(x[h],w):x.indexOf(w)===-1&&d.push(w)}function v(x,d,w){d[w]=x[w]}function m(x,d,w,h){typeof d[h]!="object"||!d[h]?w[h]=d[h]:x[h]?w[h]=g(x[h],d[h]):w[h]=d[h]}function g(x,d){var w=Array.isArray(d),h=w&&[]||{};return w?(x=x||[],h=h.concat(x),d.forEach(f.bind(null,x,h))):(x&&typeof x=="object"&&Object.keys(x).forEach(v.bind(null,x,h)),Object.keys(d).forEach(m.bind(null,x,d,h))),h}ht.deepMerge=g,ht.objectGetPath=function(d,w){for(var h=w.split("/").slice(1),S;typeof(S=h.shift())=="string";){var E=decodeURIComponent(S.replace(/~0/,"~").replace(/~1/g,"/"));if(!(E in d))return;d=d[E]}return d};function p(x){return"/"+encodeURIComponent(x).replace(/~/g,"%7E")}ht.encodePath=function(d){return d.map(p).join("")},ht.getDecimalPlaces=function(d){var w=0;if(isNaN(d))return w;typeof d!="number"&&(d=Number(d));var h=d.toString().split("e");if(h.length===2){if(h[1][0]!=="-")return w;w=Number(h[1].slice(1))}var S=h[0].split(".");return S.length===2&&(w+=S[1].length),w},ht.isSchema=function(d){return typeof d=="object"&&d||typeof d=="boolean"};var b=ht.resolveUrl=function(d,w){const h=new URL(w,new URL(d,"resolve://"));if(h.protocol==="resolve:"){const{pathname:S,search:E,hash:R}=h;return S+E+R}return h.toString()};return ht}var oc,Cm;function m2(){if(Cm)return oc;Cm=1;var e=Fn(),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(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=Array.isArray(p.type)?p.type:[p.type];if(!w.some(this.testType.bind(this,g,p,b,x))){var h=w.map(function(S){if(S){var E=S.$id||S.id;return E?"<"+E+">":S+""}});d.addError({name:"type",argument:h,message:"is not of a type(s) "+h})}return d};function a(m,g,p,b,x){var d=g.throwError,w=g.throwAll;g.throwError=!1,g.throwAll=!1;var h=this.validateSchema(m,x,g,p);return g.throwError=d,g.throwAll=w,!h.valid&&b instanceof Function&&b(h),h.valid}s.anyOf=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x),w=new t(g,p,b,x);if(!Array.isArray(p.anyOf))throw new r("anyOf must be an array");if(!p.anyOf.some(a.bind(this,g,b,x,function(S){w.importErrors(S)}))){var h=p.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+"]"});b.nestedErrors&&d.importErrors(w),d.addError({name:"anyOf",argument:h,message:"is not any of "+h.join(",")})}return d},s.allOf=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.allOf))throw new r("allOf must be an array");var d=new t(g,p,b,x),w=this;return p.allOf.forEach(function(h,S){var E=w.validateSchema(g,h,b,x);if(!E.valid){var R=h.$id||h.id,O=R||h.title&&JSON.stringify(h.title)||h.$ref&&"<"+h.$ref+">"||"[subschema "+S+"]";d.addError({name:"allOf",argument:{id:O,length:E.errors.length,valid:E},message:"does not match allOf schema "+O+" with "+E.errors.length+" error[s]:"}),d.importErrors(E)}}),d},s.oneOf=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.oneOf))throw new r("oneOf must be an array");var d=new t(g,p,b,x),w=new t(g,p,b,x),h=p.oneOf.filter(a.bind(this,g,b,x,function(E){w.importErrors(E)})).length,S=p.oneOf.map(function(E,R){var O=E.$id||E.id;return O||E.title&&JSON.stringify(E.title)||E.$ref&&"<"+E.$ref+">"||"[subschema "+R+"]"});return h!==1&&(b.nestedErrors&&d.importErrors(w),d.addError({name:"oneOf",argument:S,message:"is not exactly one from "+S.join(",")})),d},s.if=function(g,p,b,x){if(g===void 0)return null;if(!e.isSchema(p.if))throw new Error('Expected "if" keyword to be a schema');var d=a.call(this,g,b,x,null,p.if),w=new t(g,p,b,x),h;if(d){if(p.then===void 0)return;if(!e.isSchema(p.then))throw new Error('Expected "then" keyword to be a schema');h=this.validateSchema(g,p.then,b,x.makeChild(p.then)),w.importErrors(h)}else{if(p.else===void 0)return;if(!e.isSchema(p.else))throw new Error('Expected "else" keyword to be a schema');h=this.validateSchema(g,p.else,b,x.makeChild(p.else)),w.importErrors(h)}return w};function l(m,g){if(Object.hasOwnProperty.call(m,g))return m[g];if(g in m){for(;m=Object.getPrototypeOf(m);)if(Object.propertyIsEnumerable.call(m,g))return m[g]}}s.propertyNames=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.propertyNames!==void 0?p.propertyNames:{};if(!e.isSchema(w))throw new r('Expected "propertyNames" to be a schema (object or boolean)');for(var h in g)if(l(g,h)!==void 0){var S=this.validateSchema(h,w,b,x.makeChild(w));d.importErrors(S)}return d}},s.properties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.properties||{};for(var h in w){var S=w[h];if(S!==void 0){if(S===null)throw new r('Unexpected null, expected schema in "properties"');typeof b.preValidateProperty=="function"&&b.preValidateProperty(g,h,S,b,x);var E=l(g,h),R=this.validateSchema(E,S,b,x.makeChild(S,h));R.instance!==d.instance[h]&&(d.instance[h]=R.instance),d.importErrors(R)}}return d}};function c(m,g,p,b,x,d){if(this.types.object(m)&&!(g.properties&&g.properties[x]!==void 0))if(g.additionalProperties===!1)d.addError({name:"additionalProperties",argument:x,message:"is not allowed to have the additional property "+JSON.stringify(x)});else{var w=g.additionalProperties||{};typeof p.preValidateProperty=="function"&&p.preValidateProperty(m,x,w,p,b);var h=this.validateSchema(m[x],w,p,b.makeChild(w,x));h.instance!==d.instance[x]&&(d.instance[x]=h.instance),d.importErrors(h)}}s.patternProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=p.patternProperties||{};for(var h in g){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 O=new RegExp(E,"u")}catch{O=new RegExp(E)}if(O.test(h)){S=!1,typeof b.preValidateProperty=="function"&&b.preValidateProperty(g,h,R,b,x);var k=this.validateSchema(g[h],R,b,x.makeChild(R,h));k.instance!==d.instance[h]&&(d.instance[h]=k.instance),d.importErrors(k)}}}S&&c.call(this,g,p,b,x,h,d)}return d}},s.additionalProperties=function(g,p,b,x){if(this.types.object(g)){if(p.patternProperties)return null;var d=new t(g,p,b,x);for(var w in g)c.call(this,g,p,b,x,w,d);return d}},s.minProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length>=p.minProperties||d.addError({name:"minProperties",argument:p.minProperties,message:"does not meet minimum property length of "+p.minProperties}),d}},s.maxProperties=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x),w=Object.keys(g);return w.length<=p.maxProperties||d.addError({name:"maxProperties",argument:p.maxProperties,message:"does not meet maximum property length of "+p.maxProperties}),d}},s.items=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.items!==void 0){var w=new t(g,p,b,x);return g.every(function(h,S){if(Array.isArray(p.items))var E=p.items[S]===void 0?p.additionalItems:p.items[S];else var E=p.items;if(E===void 0)return!0;if(E===!1)return w.addError({name:"items",message:"additionalItems not permitted"}),!1;var R=d.validateSchema(h,E,b,x.makeChild(E,S));return R.instance!==w.instance[S]&&(w.instance[S]=R.instance),w.importErrors(R),!0}),w}},s.contains=function(g,p,b,x){var d=this;if(this.types.array(g)&&p.contains!==void 0){if(!e.isSchema(p.contains))throw new Error('Expected "contains" keyword to be a schema');var w=new t(g,p,b,x),h=g.some(function(S,E){var R=d.validateSchema(S,p.contains,b,x.makeChild(p.contains,E));return R.errors.length===0});return h===!1&&w.addError({name:"contains",argument:p.contains,message:"must contain an item matching given schema"}),w}},s.minimum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMinimum&&p.exclusiveMinimum===!0?g>p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than "+p.minimum}):g>=p.minimum||d.addError({name:"minimum",argument:p.minimum,message:"must be greater than or equal to "+p.minimum}),d}},s.maximum=function(g,p,b,x){if(this.types.number(g)){var d=new t(g,p,b,x);return p.exclusiveMaximum&&p.exclusiveMaximum===!0?g<p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than "+p.maximum}):g<=p.maximum||d.addError({name:"maximum",argument:p.maximum,message:"must be less than or equal to "+p.maximum}),d}},s.exclusiveMinimum=function(g,p,b,x){if(typeof p.exclusiveMinimum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g>p.exclusiveMinimum;return w||d.addError({name:"exclusiveMinimum",argument:p.exclusiveMinimum,message:"must be strictly greater than "+p.exclusiveMinimum}),d}},s.exclusiveMaximum=function(g,p,b,x){if(typeof p.exclusiveMaximum!="boolean"&&this.types.number(g)){var d=new t(g,p,b,x),w=g<p.exclusiveMaximum;return w||d.addError({name:"exclusiveMaximum",argument:p.exclusiveMaximum,message:"must be strictly less than "+p.exclusiveMaximum}),d}};var f=function(g,p,b,x,d,w){if(this.types.number(g)){var h=p[d];if(h==0)throw new r(d+" cannot be zero");var S=new t(g,p,b,x),E=e.getDecimalPlaces(g),R=e.getDecimalPlaces(h),O=Math.max(E,R),k=Math.pow(10,O);return Math.round(g*k)%Math.round(h*k)!==0&&S.addError({name:d,argument:h,message:w+JSON.stringify(h)}),S}};s.multipleOf=function(g,p,b,x){return f.call(this,g,p,b,x,"multipleOf","is not a multiple of (divisible by) ")},s.divisibleBy=function(g,p,b,x){return f.call(this,g,p,b,x,"divisibleBy","is not divisible by (multiple of) ")},s.required=function(g,p,b,x){var d=new t(g,p,b,x);return g===void 0&&p.required===!0?d.addError({name:"required",message:"is required"}):this.types.object(g)&&Array.isArray(p.required)&&p.required.forEach(function(w){l(g,w)===void 0&&d.addError({name:"required",argument:w,message:"requires property "+JSON.stringify(w)})}),d},s.pattern=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=p.pattern;try{var h=new RegExp(w,"u")}catch{h=new RegExp(w)}return g.match(h)||d.addError({name:"pattern",argument:p.pattern,message:"does not match pattern "+JSON.stringify(p.pattern.toString())}),d}},s.format=function(g,p,b,x){if(g!==void 0){var d=new t(g,p,b,x);return!d.disableFormat&&!e.isFormat(g,p.format,this)&&d.addError({name:"format",argument:p.format,message:"does not conform to the "+JSON.stringify(p.format)+" format"}),d}},s.minLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h>=p.minLength||d.addError({name:"minLength",argument:p.minLength,message:"does not meet minimum length of "+p.minLength}),d}},s.maxLength=function(g,p,b,x){if(this.types.string(g)){var d=new t(g,p,b,x),w=g.match(/[\uDC00-\uDFFF]/g),h=g.length-(w?w.length:0);return h<=p.maxLength||d.addError({name:"maxLength",argument:p.maxLength,message:"does not meet maximum length of "+p.maxLength}),d}},s.minItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length>=p.minItems||d.addError({name:"minItems",argument:p.minItems,message:"does not meet minimum length of "+p.minItems}),d}},s.maxItems=function(g,p,b,x){if(this.types.array(g)){var d=new t(g,p,b,x);return g.length<=p.maxItems||d.addError({name:"maxItems",argument:p.maxItems,message:"does not meet maximum length of "+p.maxItems}),d}};function v(m,g,p){var b,x=p.length;for(b=g+1,x;b<x;b++)if(e.deepCompareStrict(m,p[b]))return!1;return!0}return s.uniqueItems=function(g,p,b,x){if(p.uniqueItems===!0&&this.types.array(g)){var d=new t(g,p,b,x);return g.every(v)||d.addError({name:"uniqueItems",message:"contains duplicate item"}),d}},s.dependencies=function(g,p,b,x){if(this.types.object(g)){var d=new t(g,p,b,x);for(var w in p.dependencies)if(g[w]!==void 0){var h=p.dependencies[w],S=x.makeChild(h,w);if(typeof h=="string"&&(h=[h]),Array.isArray(h))h.forEach(function(R){g[R]===void 0&&d.addError({name:"dependencies",argument:S.propertyPath,message:"property "+R+" not found, required by "+S.propertyPath})});else{var E=this.validateSchema(g,h,b,S);d.instance!==E.instance&&(d.instance=E.instance),E&&E.errors.length&&(d.addError({name:"dependencies",argument:S.propertyPath,message:"does not meet dependency required by "+S.propertyPath}),d.importErrors(E))}}return d}},s.enum=function(g,p,b,x){if(g===void 0)return null;if(!Array.isArray(p.enum))throw new r("enum expects an array",p);var d=new t(g,p,b,x);return p.enum.some(e.deepCompareStrict.bind(null,g))||d.addError({name:"enum",argument:p.enum,message:"is not one of enum values: "+p.enum.map(String).join(",")}),d},s.const=function(g,p,b,x){if(g===void 0)return null;var d=new t(g,p,b,x);return e.deepCompareStrict(p.const,g)||d.addError({name:"const",argument:p.const,message:"does not exactly match expected constant: "+p.const}),d},s.not=s.disallow=function(g,p,b,x){var d=this;if(g===void 0)return null;var w=new t(g,p,b,x),h=p.not||p.disallow;return h?(Array.isArray(h)||(h=[h]),h.forEach(function(S){if(d.testType(g,p,b,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},oc=i,oc}var ra={},km;function Ic(){if(km)return ra;km=1;var e=Fn();ra.SchemaScanResult=t;function t(r,i){this.id=r,this.ref=i}return ra.scan=function(i,s){function a(m,g){if(!g||typeof g!="object")return;if(g.$ref){let d=e.resolveUrl(m,g.$ref);v[d]=v[d]?v[d]+1:0;return}var p=g.$id||g.id;let b=e.resolveUrl(m,p);var x=p?b:m;if(x){if(x.indexOf("#")<0&&(x+="#"),f[x]){if(!e.deepCompareStrict(f[x],g))throw new Error("Schema <"+x+"> already exists with different definition");return f[x]}f[x]=g,x[x.length-1]=="#"&&(f[x.substring(0,x.length-1)]=g)}l(x+"/items",Array.isArray(g.items)?g.items:[g.items]),l(x+"/extends",Array.isArray(g.extends)?g.extends:[g.extends]),a(x+"/additionalItems",g.additionalItems),c(x+"/properties",g.properties),a(x+"/additionalProperties",g.additionalProperties),c(x+"/definitions",g.definitions),c(x+"/patternProperties",g.patternProperties),c(x+"/dependencies",g.dependencies),l(x+"/disallow",g.disallow),l(x+"/allOf",g.allOf),l(x+"/anyOf",g.anyOf),l(x+"/oneOf",g.oneOf),a(x+"/not",g.not)}function l(m,g){if(Array.isArray(g))for(var p=0;p<g.length;p++)a(m+"/"+p,g[p])}function c(m,g){if(!(!g||typeof g!="object"))for(var p in g)a(m+"/"+p,g[p])}var f={},v={};return a(i,s),new t(f,v)},ra}var sc,$m;function v2(){if($m)return sc;$m=1;var e=m2(),t=Fn(),r=Ic().scan,i=t.ValidatorResult,s=t.ValidatorResultError,a=t.SchemaError,l=t.SchemaContext,c="/",f=function g(){this.customFormats=Object.create(g.prototype.customFormats),this.schemas={},this.unresolvedRefs=[],this.types=Object.create(m),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(p,b){var x=this;if(!p)return null;var d=r(b||c,p),w=b||p.$id||p.id;for(var h in d.id)this.schemas[h]=d.id[h];for(var h in d.ref)this.unresolvedRefs.push(h);return this.unresolvedRefs=this.unresolvedRefs.filter(function(S){return typeof x.schemas[S]>"u"}),this.schemas[w]},f.prototype.addSubSchemaArray=function(p,b){if(Array.isArray(b))for(var x=0;x<b.length;x++)this.addSubSchema(p,b[x])},f.prototype.addSubSchemaObject=function(p,b){if(!(!b||typeof b!="object"))for(var x in b)this.addSubSchema(p,b[x])},f.prototype.setSchemas=function(p){this.schemas=p},f.prototype.getSchema=function(p){return this.schemas[p]},f.prototype.validate=function(p,b,x,d){if(typeof b!="boolean"&&typeof b!="object"||b===null)throw new a("Expected `schema` to be an object or boolean");x||(x={});var w=b.$id||b.id;let h=t.resolveUrl(x.base,w||"");if(!d){d=new l(b,x,[],h,Object.create(this.schemas)),d.schemas[h]||(d.schemas[h]=b);var S=r(h,b);for(var E in S.id){var R=S.id[E];d.schemas[E]=R}}if(x.required&&p===void 0){var O=new i(p,b,x,d);return O.addError("is required, but is undefined"),O}var O=this.validateSchema(p,b,x,d);if(O){if(x.throwAll&&O.errors.length)throw new s(O)}else throw new Error("Result undefined");return O};function v(g){var p=typeof g=="string"?g:g.$ref;return typeof p=="string"?p:!1}f.prototype.validateSchema=function(p,b,x,d){var w=new i(p,b,x,d);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 h={schema:b,ctx:d};b.extends.forEach(this.schemaTraverser.bind(this,h)),b=h.schema,h.schema=null,h.ctx=null,h=null}else b=t.deepMerge(b,this.superResolve(b.extends,d));var S=v(b);if(S){var E=this.resolve(b,S,d),R=new l(E.subschema,x,d.path,E.switchSchema,d.schemas);return this.validateSchema(p,E.subschema,x,R)}var O=x&&x.skipAttributes||[];for(var k in b)if(!e.ignoreProperties[k]&&O.indexOf(k)<0){var U=null,F=this.attributes[k];if(F)U=F.call(this,p,b,x,d);else if(x.allowUnknownAttributes===!1)throw new a("Unsupported attribute: "+k,b);U&&w.importErrors(U)}if(typeof x.rewrite=="function"){var D=x.rewrite.call(this,p,b,x,d);w.instance=D}return w},f.prototype.schemaTraverser=function(p,b){p.schema=t.deepMerge(p.schema,this.superResolve(b,p.ctx))},f.prototype.superResolve=function(p,b){var x=v(p);return x?this.resolve(p,x,b).subschema:p},f.prototype.resolve=function(p,b,x){if(b=x.resolve(b),x.schemas[b])return{subschema:x.schemas[b],switchSchema:b};let w=new URL(b,"thismessage::/").hash;var h=w&&w.length&&b.substr(0,b.length-w.length);if(!h||!x.schemas[h])throw new a("no such schema <"+b+">",p);var S=t.objectGetPath(x.schemas[h],w.substr(1));if(S===void 0)throw new a("no such schema "+w+" located in <"+h+">",p);return{subschema:S,switchSchema:b}},f.prototype.testType=function(p,b,x,d,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,p);if(w&&typeof w=="object"){var h=this.validateSchema(p,w,x,d);return h===void 0||!(h&&h.errors.length)}return!0}};var m=f.prototype.types={};return m.string=function(p){return typeof p=="string"},m.number=function(p){return typeof p=="number"&&isFinite(p)},m.integer=function(p){return typeof p=="number"&&p%1===0},m.boolean=function(p){return typeof p=="boolean"},m.array=function(p){return Array.isArray(p)},m.null=function(p){return p===null},m.date=function(p){return p instanceof Date},m.any=function(p){return!0},m.object=function(p){return p&&typeof p=="object"&&!Array.isArray(p)&&!(p instanceof Date)},sc=f,sc}var Im;function y2(){if(Im)return xr;Im=1;var e=xr.Validator=v2();return xr.ValidatorResult=Fn().ValidatorResult,xr.ValidatorResultError=Fn().ValidatorResultError,xr.ValidationError=Fn().ValidationError,xr.SchemaError=Fn().SchemaError,xr.SchemaScanResult=Ic().SchemaScanResult,xr.scan=Ic().scan,xr.validate=function(t,r,i){var s=new e;return s.validate(t,r,i)},xr}var b2=y2();const x0=(e,t,r)=>{const i=e instanceof RegExp?Lm(e,r):e,s=t instanceof RegExp?Lm(t,r):t,a=i!==null&&s!=null&&w2(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)}},Lm=(e,t)=>{const r=t.match(e);return r?r[0]:null},w2=(e,t,r)=>{let i,s,a,l,c,f=r.indexOf(e),v=r.indexOf(t,f+1),m=f;if(f>=0&&v>0){if(e===t)return[f,v];for(i=[],a=r.length;m>=0&&!c;){if(m===f)i.push(m),f=r.indexOf(e,m+1);else if(i.length===1){const g=i.pop();g!==void 0&&(c=[g,v])}else s=i.pop(),s!==void 0&&s<a&&(a=s,l=v),v=r.indexOf(t,m+1);m=f<v&&f>=0?f:v}i.length&&l!==void 0&&(c=[a,l])}return c},S0="\0SLASH"+Math.random()+"\0",E0="\0OPEN"+Math.random()+"\0",Cf="\0CLOSE"+Math.random()+"\0",_0="\0COMMA"+Math.random()+"\0",O0="\0PERIOD"+Math.random()+"\0",x2=new RegExp(S0,"g"),S2=new RegExp(E0,"g"),E2=new RegExp(Cf,"g"),_2=new RegExp(_0,"g"),O2=new RegExp(O0,"g"),A2=/\\\\/g,T2=/\\{/g,R2=/\\}/g,P2=/\\,/g,C2=/\\./g;function ac(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function k2(e){return e.replace(A2,S0).replace(T2,E0).replace(R2,Cf).replace(P2,_0).replace(C2,O0)}function $2(e){return e.replace(x2,"\\").replace(S2,"{").replace(E2,"}").replace(_2,",").replace(O2,".")}function A0(e){if(!e)return[""];const t=[],r=x0("{","}",e);if(!r)return e.split(",");const{pre:i,body:s,post:a}=r,l=i.split(",");l[l.length-1]+="{"+s+"}";const c=A0(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function I2(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),bo(k2(e),!0).map($2)):[]}function L2(e){return"{"+e+"}"}function M2(e){return/^-?0\d/.test(e)}function F2(e,t){return e<=t}function D2(e,t){return e>=t}function bo(e,t){const r=[],i=x0("{","}",e);if(!i)return[e];const s=i.pre,a=i.post.length?bo(i.post,!1):[""];if(/\$$/.test(i.pre))for(let l=0;l<a.length;l++){const c=s+"{"+i.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(i.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(i.body),f=l||c,v=i.body.indexOf(",")>=0;if(!f&&!v)return i.post.match(/,(?!,).*\}/)?(e=i.pre+"{"+i.body+Cf+i.post,bo(e)):[e];let m;if(f)m=i.body.split(/\.\./);else if(m=A0(i.body),m.length===1&&m[0]!==void 0&&(m=bo(m[0],!1).map(L2),m.length===1))return a.map(p=>i.pre+m[0]+p);let g;if(f&&m[0]!==void 0&&m[1]!==void 0){const p=ac(m[0]),b=ac(m[1]),x=Math.max(m[0].length,m[1].length);let d=m.length===3&&m[2]!==void 0?Math.abs(ac(m[2])):1,w=F2;b<p&&(d*=-1,w=D2);const S=m.some(M2);g=[];for(let E=p;w(E,b);E+=d){let R;if(c)R=String.fromCharCode(E),R==="\\"&&(R="");else if(R=String(E),S){const O=x-R.length;if(O>0){const k=new Array(O+1).join("0");E<0?R="-"+k+R.slice(1):R=k+R}}g.push(R)}}else{g=[];for(let p=0;p<m.length;p++)g.push.apply(g,bo(m[p],!1))}for(let p=0;p<g.length;p++)for(let b=0;b<a.length;b++){const x=s+g[p]+a[b];(!t||f||x)&&r.push(x)}}return r}const N2=1024*64,Pa=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>N2)throw new TypeError("pattern is too long")},j2={"[: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]},po=e=>e.replace(/[[\]\\-]/g,"\\$&"),z2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Mm=e=>e.join(""),W2=(e,t)=>{const r=t;if(e.charAt(r)!=="[")throw new Error("not in a brace expression");const i=[],s=[];let a=r+1,l=!1,c=!1,f=!1,v=!1,m=r,g="";e:for(;a<e.length;){const d=e.charAt(a);if((d==="!"||d==="^")&&a===r+1){v=!0,a++;continue}if(d==="]"&&l&&!f){m=a+1;break}if(l=!0,d==="\\"&&!f){f=!0,a++;continue}if(d==="["&&!f){for(const[w,[h,S,E]]of Object.entries(j2))if(e.startsWith(w,a)){if(g)return["$.",!1,e.length-r,!0];a+=w.length,E?s.push(h):i.push(h),c=c||S;continue e}}if(f=!1,g){d>g?i.push(po(g)+"-"+po(d)):d===g&&i.push(po(d)),g="",a++;continue}if(e.startsWith("-]",a+1)){i.push(po(d+"-")),a+=2;continue}if(e.startsWith("-",a+1)){g=d,a+=2;continue}i.push(po(d)),a++}if(m<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])&&!v){const d=i[0].length===2?i[0].slice(-1):i[0];return[z2(d),!1,m-r,!1]}const p="["+(v?"^":"")+Mm(i)+"]",b="["+(v?"":"^")+Mm(s)+"]";return[i.length&&s.length?"("+p+"|"+b+")":i.length?p:b,c,m-r,!0]},wo=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),U2=new Set(["!","?","+","*","@"]),Fm=e=>U2.has(e),B2="(?!(?:^|/)\\.\\.?(?:$|/))",na="(?!\\.)",H2=new Set(["[","."]),q2=new Set(["..","."]),Z2=new Set("().*{}+?[]^$\\!"),G2=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),kf="[^/]",Dm=kf+"*?",Nm=kf+"+?";var ut,ft,qr,He,it,fn,Dn,dn,Er,Nn,Fo,qn,T0,gn,ha,Lc,R0;const Tt=class Tt{constructor(t,r,i={}){xt(this,qn);ve(this,"type");xt(this,ut);xt(this,ft);xt(this,qr,!1);xt(this,He,[]);xt(this,it);xt(this,fn);xt(this,Dn);xt(this,dn,!1);xt(this,Er);xt(this,Nn);xt(this,Fo,!1);this.type=t,t&&Qe(this,ft,!0),Qe(this,it,r),Qe(this,ut,re(this,it)?re(re(this,it),ut):this),Qe(this,Er,re(this,ut)===this?i:re(re(this,ut),Er)),Qe(this,Dn,re(this,ut)===this?[]:re(re(this,ut),Dn)),t==="!"&&!re(re(this,ut),dn)&&re(this,Dn).push(this),Qe(this,fn,re(this,it)?re(re(this,it),He).length:0)}get hasMagic(){if(re(this,ft)!==void 0)return re(this,ft);for(const t of re(this,He))if(typeof t!="string"&&(t.type||t.hasMagic))return Qe(this,ft,!0);return re(this,ft)}toString(){return re(this,Nn)!==void 0?re(this,Nn):this.type?Qe(this,Nn,this.type+"("+re(this,He).map(t=>String(t)).join("|")+")"):Qe(this,Nn,re(this,He).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Tt&&re(r,it)===this))throw new Error("invalid part: "+r);re(this,He).push(r)}}toJSON(){var r;const t=this.type===null?re(this,He).slice().map(i=>typeof i=="string"?i:i.toJSON()):[this.type,...re(this,He).map(i=>i.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===re(this,ut)||re(re(this,ut),dn)&&((r=re(this,it))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(re(this,ut)===this)return!0;if(!((r=re(this,it))!=null&&r.isStart()))return!1;if(re(this,fn)===0)return!0;const t=re(this,it);for(let i=0;i<re(this,fn);i++){const s=re(t,He)[i];if(!(s instanceof Tt&&s.type==="!"))return!1}return!0}isEnd(){var r,i,s;if(re(this,ut)===this||((r=re(this,it))==null?void 0:r.type)==="!")return!0;if(!((i=re(this,it))!=null&&i.isEnd()))return!1;if(!this.type)return(s=re(this,it))==null?void 0:s.isEnd();const t=re(this,it)?re(re(this,it),He).length:0;return re(this,fn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Tt(this.type,t);for(const i of re(this,He))r.copyIn(i);return r}static fromGlob(t,r={}){var s;const i=new Tt(null,void 0,r);return $e(s=Tt,gn,ha).call(s,t,i,0,r),i}toMMPattern(){if(this!==re(this,ut))return re(this,ut).toMMPattern();const t=this.toString(),[r,i,s,a]=this.toRegExpSource();if(!(s||re(this,ft)||re(this,Er).nocase&&!re(this,Er).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return i;const c=(re(this,Er).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return re(this,Er)}toRegExpSource(t){var f;const r=t??!!re(this,Er).dot;if(re(this,ut)===this&&$e(this,qn,T0).call(this),!this.type){const v=this.isStart()&&this.isEnd(),m=re(this,He).map(x=>{var E;const[d,w,h,S]=typeof x=="string"?$e(E=Tt,gn,R0).call(E,x,re(this,ft),v):x.toRegExpSource(t);return Qe(this,ft,re(this,ft)||h),Qe(this,qr,re(this,qr)||S),d}).join("");let g="";if(this.isStart()&&typeof re(this,He)[0]=="string"&&!(re(this,He).length===1&&q2.has(re(this,He)[0]))){const d=H2,w=r&&d.has(m.charAt(0))||m.startsWith("\\.")&&d.has(m.charAt(2))||m.startsWith("\\.\\.")&&d.has(m.charAt(4)),h=!r&&!t&&d.has(m.charAt(0));g=w?B2:h?na:""}let p="";return this.isEnd()&&re(re(this,ut),dn)&&((f=re(this,it))==null?void 0:f.type)==="!"&&(p="(?:$|\\/)"),[g+m+p,wo(m),Qe(this,ft,!!re(this,ft)),re(this,qr)]}const i=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:";let a=$e(this,qn,Lc).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const v=this.toString();return Qe(this,He,[v]),this.type=null,Qe(this,ft,void 0),[v,wo(this.toString()),!1,!1]}let l=!i||t||r||!na?"":$e(this,qn,Lc).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&re(this,Fo))c=(this.isStart()&&!r?na:"")+Nm;else{const v=this.type==="!"?"))"+(this.isStart()&&!r&&!t?na:"")+Dm+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=s+a+v}return[c,wo(a),Qe(this,ft,!!re(this,ft)),re(this,qr)]}};ut=new WeakMap,ft=new WeakMap,qr=new WeakMap,He=new WeakMap,it=new WeakMap,fn=new WeakMap,Dn=new WeakMap,dn=new WeakMap,Er=new WeakMap,Nn=new WeakMap,Fo=new WeakMap,qn=new WeakSet,T0=function(){if(this!==re(this,ut))throw new Error("should only call on root");if(re(this,dn))return this;this.toString(),Qe(this,dn,!0);let t;for(;t=re(this,Dn).pop();){if(t.type!=="!")continue;let r=t,i=re(r,it);for(;i;){for(let s=re(r,fn)+1;!i.type&&s<re(i,He).length;s++)for(const a of re(t,He)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(re(i,He)[s])}r=i,i=re(r,it)}}return this},gn=new WeakSet,ha=function(t,r,i,s){var b,x;let a=!1,l=!1,c=-1,f=!1;if(r.type===null){let d=i,w="";for(;d<t.length;){const h=t.charAt(d++);if(a||h==="\\"){a=!a,w+=h;continue}if(l){d===c+1?(h==="^"||h==="!")&&(f=!0):h==="]"&&!(d===c+2&&f)&&(l=!1),w+=h;continue}else if(h==="["){l=!0,c=d,f=!1,w+=h;continue}if(!s.noext&&Fm(h)&&t.charAt(d)==="("){r.push(w),w="";const S=new Tt(h,r);d=$e(b=Tt,gn,ha).call(b,t,S,d,s),r.push(S);continue}w+=h}return r.push(w),d}let v=i+1,m=new Tt(null,r);const g=[];let p="";for(;v<t.length;){const d=t.charAt(v++);if(a||d==="\\"){a=!a,p+=d;continue}if(l){v===c+1?(d==="^"||d==="!")&&(f=!0):d==="]"&&!(v===c+2&&f)&&(l=!1),p+=d;continue}else if(d==="["){l=!0,c=v,f=!1,p+=d;continue}if(Fm(d)&&t.charAt(v)==="("){m.push(p),p="";const w=new Tt(d,m);m.push(w),v=$e(x=Tt,gn,ha).call(x,t,w,v,s);continue}if(d==="|"){m.push(p),p="",g.push(m),m=new Tt(null,r);continue}if(d===")")return p===""&&re(r,He).length===0&&Qe(r,Fo,!0),m.push(p),p="",r.push(...g,m),v;p+=d}return r.type=null,Qe(r,ft,void 0),Qe(r,He,[t.substring(i-1)]),v},Lc=function(t){return re(this,He).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[i,s,a,l]=r.toRegExpSource(t);return Qe(this,qr,re(this,qr)||l),i}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},R0=function(t,r,i=!1){let s=!1,a="",l=!1;for(let c=0;c<t.length;c++){const f=t.charAt(c);if(s){s=!1,a+=(Z2.has(f)?"\\":"")+f;continue}if(f==="\\"){c===t.length-1?a+="\\\\":s=!0;continue}if(f==="["){const[v,m,g,p]=W2(t,c);if(g){a+=v,l=l||m,c+=g-1,r=r||p;continue}}if(f==="*"){i&&t==="*"?a+=Nm:a+=Dm,r=!0;continue}if(f==="?"){a+=kf,r=!0;continue}a+=G2(f)}return[a,wo(t),!!r,l]},xt(Tt,gn);let Ca=Tt;const K2=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Et=(e,t,r={})=>(Pa(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Ga(t,r).match(e)),V2=/^\*+([^+@!?\*\[\(]*)$/,Y2=e=>t=>!t.startsWith(".")&&t.endsWith(e),X2=e=>t=>t.endsWith(e),J2=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),Q2=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),eL=/^\*+\.\*+$/,tL=e=>!e.startsWith(".")&&e.includes("."),rL=e=>e!=="."&&e!==".."&&e.includes("."),nL=/^\.\*+$/,iL=e=>e!=="."&&e!==".."&&e.startsWith("."),oL=/^\*+$/,sL=e=>e.length!==0&&!e.startsWith("."),aL=e=>e.length!==0&&e!=="."&&e!=="..",uL=/^\?+([^+@!?\*\[\(]*)?$/,lL=([e,t=""])=>{const r=P0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},cL=([e,t=""])=>{const r=C0([e]);return t?(t=t.toLowerCase(),i=>r(i)&&i.toLowerCase().endsWith(t)):r},fL=([e,t=""])=>{const r=C0([e]);return t?i=>r(i)&&i.endsWith(t):r},dL=([e,t=""])=>{const r=P0([e]);return t?i=>r(i)&&i.endsWith(t):r},P0=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},C0=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},k0=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",jm={win32:{sep:"\\"},posix:{sep:"/"}},pL=k0==="win32"?jm.win32.sep:jm.posix.sep;Et.sep=pL;const nr=Symbol("globstar **");Et.GLOBSTAR=nr;const hL="[^/]",gL=hL+"*?",mL="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",vL="(?:(?!(?:\\/|^)\\.).)*?",yL=(e,t={})=>r=>Et(r,e,t);Et.filter=yL;const rr=(e,t={})=>Object.assign({},e,t),bL=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Et;const t=Et;return Object.assign((i,s,a={})=>t(i,s,rr(e,a)),{Minimatch:class extends t.Minimatch{constructor(s,a={}){super(s,rr(e,a))}static defaults(s){return t.defaults(rr(e,s)).Minimatch}},AST:class extends t.AST{constructor(s,a,l={}){super(s,a,rr(e,l))}static fromGlob(s,a={}){return t.AST.fromGlob(s,rr(e,a))}},unescape:(i,s={})=>t.unescape(i,rr(e,s)),escape:(i,s={})=>t.escape(i,rr(e,s)),filter:(i,s={})=>t.filter(i,rr(e,s)),defaults:i=>t.defaults(rr(e,i)),makeRe:(i,s={})=>t.makeRe(i,rr(e,s)),braceExpand:(i,s={})=>t.braceExpand(i,rr(e,s)),match:(i,s,a={})=>t.match(i,s,rr(e,a)),sep:t.sep,GLOBSTAR:nr})};Et.defaults=bL;const $0=(e,t={})=>(Pa(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:I2(e));Et.braceExpand=$0;const wL=(e,t={})=>new Ga(e,t).makeRe();Et.makeRe=wL;const xL=(e,t,r={})=>{const i=new Ga(t,r);return e=e.filter(s=>i.match(s)),i.options.nonull&&!e.length&&e.push(t),e};Et.match=xL;const zm=/[?*]|[+@!]\(.*?\)|\[|\]/,SL=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Ga{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");Pa(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||k0,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,l,c)=>{if(this.isWindows&&this.windowsNoMagicRoot){const f=a[0]===""&&a[1]===""&&(a[2]==="?"||!zm.test(a[2]))&&!zm.test(a[3]),v=/^[a-z]:/i.test(a[0]);if(f)return[...a.slice(0,4),...a.slice(4).map(m=>this.parse(m))];if(v)return[a[0],...a.slice(1).map(m=>this.parse(m))]}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 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(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 l=s;for(;i[l+1]==="**";)l++;l>s&&i.splice(s+1,l-s);let c=i[s+1];const f=i[s+2],v=i[s+3];if(c!==".."||!f||f==="."||f===".."||!v||v==="."||v==="..")continue;r=!0,i.splice(s,1);const m=i.slice(0);m[s]="**",t.push(m),s--}if(!this.preserveMultipleSlashes){for(let l=1;l<i.length-1;l++){const c=i[l];l===1&&c===""&&i[0]===""||(c==="."||c==="")&&(r=!0,i.splice(l,1),l--)}i[0]==="."&&i.length===2&&(i[1]==="."||i[1]==="")&&(r=!0,i.pop())}let a=0;for(;(a=i.indexOf("..",a+1))!==-1;){const l=i[a-1];if(l&&l!=="."&&l!==".."&&l!=="**"){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,l=[],c="";for(;s<t.length&&a<r.length;)if(t[s]===r[a])l.push(c==="b"?r[a]:t[s]),s++,a++;else if(i&&t[s]==="**"&&r[a]===t[s+1])l.push(t[s]),s++;else if(i&&r[a]==="**"&&t[s]===r[a+1])l.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",l.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",l.push(r[a]),s++,a++}else return!1;return t.length===r.length&&l}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 d=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!d&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),h=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),S=!h&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),E=w?3:d?0:void 0,R=S?3:h?0:void 0;if(typeof E=="number"&&typeof R=="number"){const[O,k]=[t[E],r[R]];O.toLowerCase()===k.toLowerCase()&&(r[R]=O,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 l=0,c=0,f=t.length,v=r.length;l<f&&c<v;l++,c++){this.debug("matchOne loop");var m=r[c],g=t[l];if(this.debug(r,m,g),m===!1)return!1;if(m===nr){this.debug("GLOBSTAR",[r,m,g]);var p=l,b=c+1;if(b===v){for(this.debug("** at the end");l<f;l++)if(t[l]==="."||t[l]===".."||!s.dot&&t[l].charAt(0)===".")return!1;return!0}for(;p<f;){var x=t[p];if(this.debug(`
206
- globstar while`,t,p,r,b,x),this.matchOne(t.slice(p),r.slice(b),i))return this.debug("globstar found match!",p,f,x),!0;if(x==="."||x===".."||!s.dot&&x.charAt(0)==="."){this.debug("dot detected!",t,p,r,b);break}this.debug("globstar swallow a segment, and continue"),p++}return!!(i&&(this.debug(`
207
- >>> no match, partial?`,t,p,r,b),p===f))}let d;if(typeof m=="string"?(d=g===m,this.debug("string match",m,g,d)):(d=m.test(g),this.debug("pattern match",m,g,d)),!d)return!1}if(l===f&&c===v)return!0;if(l===f)return i;if(c===v)return l===f-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return $0(this.pattern,this.options)}parse(t){Pa(t);const r=this.options;if(t==="**")return nr;if(t==="")return"";let i,s=null;(i=t.match(oL))?s=r.dot?aL:sL:(i=t.match(V2))?s=(r.nocase?r.dot?Q2:J2:r.dot?X2:Y2)(i[1]):(i=t.match(uL))?s=(r.nocase?r.dot?cL:lL:r.dot?fL:dL)(i):(i=t.match(eL))?s=r.dot?rL:tL:(i=t.match(nL))&&(s=iL);const a=Ca.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?gL:r.dot?mL:vL,s=new Set(r.nocase?["i"]:[]);let a=t.map(f=>{const v=f.map(m=>{if(m instanceof RegExp)for(const g of m.flags.split(""))s.add(g);return typeof m=="string"?SL(m):m===nr?nr:m._src});return v.forEach((m,g)=>{const p=v[g+1],b=v[g-1];m!==nr||b===nr||(b===void 0?p!==void 0&&p!==nr?v[g+1]="(?:\\/|"+i+"\\/)?"+p:v[g]=i:p===void 0?v[g-1]=b+"(?:\\/|"+i+")?":p!==nr&&(v[g-1]=b+"(?:\\/|\\/"+i+"\\/)"+p,v[g+1]=nr))}),v.filter(m=>m!==nr).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+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 l=s[s.length-1];if(!l)for(let c=s.length-2;!l&&c>=0;c--)l=s[c];for(let c=0;c<a.length;c++){const f=a[c];let v=s;if(i.matchBase&&f.length===1&&(v=[l]),this.matchOne(v,f,r))return i.flipNegate?!0:!this.negate}return i.flipNegate?!1:this.negate}static defaults(t){return Et.defaults(t).Minimatch}}Et.AST=Ca;Et.Minimatch=Ga;Et.escape=K2;Et.unescape=wo;const Mo="/$shared",EL={"**/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 I0(e){const t=Object.entries(EL).find(([r])=>Et(e,r));return t==null?void 0:t[1]}function Ka(e){var i;const t=(i=I0(e))==null?void 0:i.content;if(!t)return;const r=e.replace(`${Mo}/`,"Shared/");$f({name:r,content:t,asText:typeof t=="string"})}async function _L(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Me(`${Mo}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){L0(r)&&Ka(`${Mo}/${t}`)}}function qo({path:e,createIfNotExists:t=!1}){const r=`${Mo}/${e}`;return Me(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(i=>{const s=I0(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 b2.Validator().validate(a,s.schema).valid)throw new Error("Invalid Schema");return a}).catch(i=>{if(L0(i)&&t){const s=OL(i,e);Ky.next({message:s,kind:"warning"}),Ka(r)}throw i})}function L0(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 OL(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 AL(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function TL(e){return Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const M0=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Af.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function RL(){const{hostname:e,host:t,protocol:r}=window.location,i=r==="https:";try{const s=await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_APP_SETTINGS}),headers:new Headers({"Content-Type":"application/json"})}),a=(()=>{if(s.rendererPath)return s.rendererPath;const l=`http://${e}:${s.webServerHTTPPort}`,c=`https://${e}:${s.webServerHTTPSPort}`;return s.webServerHTTPPort&&s.webServerHTTPSPort?i?c:l:s.webServerHTTPPort?l: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),M0()}}async function F0(e){return await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function PL(...e){return(await Promise.all(e.map(i=>F0({root:i,verb:bn.GET_FOLDER})))).map(({children:i})=>i.map(({name:s,date:a,type:l})=>({name:s,type:l,date:a,path:`${l}/${s}`}))).flat()}function CL(e,t={}){const{sanitize:r=!0}=t;return Me(`/rest/$getWebForm/${e}`,{method:"GET"}).then(i=>{if(!(i!=null&&i.components)||!r)return i;const s=new Map;return{...i,components:Ve.entries(i.components).map(([a,l])=>{const c=a,{resolvedName:f}=l.type;if(f==="WebformLoader"){const v=Hc.generate();s.set(a,v),a=v}return[a,l,c]}).reduce((a,[l,c,f])=>{var v;return c.nodes&&(c.nodes=c.nodes.map(m=>s.get(m)||m)),c.linkedNodes&&(c.linkedNodes=Ve.entries(c.linkedNodes).reduce((m,[g,p])=>({...m,[g]:s.get(p)||p}),{})),(v=c.props)!=null&&v.events&&(c.props.events=c.props.events.map(m=>(m.type==="navigation"&&m.loader&&(m.loader=s.get(m.loader)||m.loader),m))),{...a,[l]:{...c,props:{...c.props,__originalID:f}}}},{})}})}function kL(e){return Me(ot,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[Ke.METHOD,Ke.CLASS].includes(t.type)?Za(t.content):t.content}))}function $L(e){return e.type==="folder"?Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function IL(e){return e.type==="folder"?(await Me(Ho,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function LL(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function ML(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function FL(e){return(await Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function DL(...e){return await Me(ot,{method:"POST",body:JSON.stringify({verb:bn.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function NL(e){const t=await Me("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function jL(){return await Me("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function zL(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 WL({name:e,path:t="",root:r="root",asText:i=!1}){return Me(ot,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:i}),headers:new Headers({"Content-Type":"application/json"})})}async function UL(e={}){try{return{...await qo({path:"shared_datasources.json",...e}),...Ra}}catch{return{...Ra}}}async function BL(e={}){try{return await qo({path:"shared_app_events.json",...e})}catch{return[]}}async function HL(e={}){try{return await qo({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function qL(e={}){try{return await qo({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function ZL(){try{return await Me("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function GL(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const KL=Rf(),VL=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:Ve.omit(e,Ve.keys(Ra))};return KL(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},YL=Rf(),XL=async e=>{const t={verb:bn.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return YL(()=>Me(ot,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},$f=async e=>{const t=await Me(ot,{method:"POST",body:JSON.stringify({...e,verb:bn.SET_FILE_CONTENT,root:Of.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Tf(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},JL=async e=>await $f({name:"crafted_components.json",path:hn.WEBFORMS,content:e});function QL(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function eM(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function tM(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function rM(e){return Me(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)?Za(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&&Ka(e.path),t})}function nM(e){return Me(ot,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function iM(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function oM(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 sM(e){const t=iM(e).split(/[;,]/g).filter(Boolean).map(s=>{const a=s.split(":")[0].trim(),l=s.split(":")[1].trim();return{name:a,type:l}}),r=oM(e),i=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:i}}async function aM(e,t){const i=e.split(".").pop();try{const s=await Me(ot,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:i}),headers:new Headers({"Content-Type":"application/json"})});s.content=Za(s.content);const{params:a,result:l}=sM(s.parameters);return{...s,params:a,returns:l}}catch(s){return console.error(s),{className:t,functionName:i,filePath:e,content:"",params:[]}}}var D0=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(D0||{});function uM(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function lM(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var N0=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(N0||{}),j0=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(j0||{}),z0=(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))(z0||{}),W0=(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))(W0||{});const cM={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},fM={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}};exports.API_PREFIX=ot;exports.AppLoader=e$;exports.BaseCheckboxIcon=ky;exports.Checkbox=_$;exports.ControlledSwitch=py;exports.DATASOURCE_THEMES=cM;exports.DatasourcesActions=Gy;exports.DebuggerActions=Xy;exports.DefaultCheckboxIcon=$y;exports.DesignerRequestVerb=bn;exports.Dialog=MA;exports.DialogBody=rv;exports.EActivity=D0;exports.EDITOR=fM;exports.EIDENTIFIERS=z0;exports.ERROR_CODES=W0;exports.EWebFormStyleClassScope=N0;exports.EXT_API_PREFIX=Ho;exports.FileFolderType=Ke;exports.FloatingTooltip=x$;exports.FolderRootPath=hn;exports.FolderRootType=Of;exports.HTTPError=$c;exports.HTTP_HANDLERS_TAB_PATH=t0;exports.IPreemptive=Lo;exports.IPublished=g0;exports.IPublishedRestScope=Pf;exports.IdentityProvider=H$;exports.Incase=ua;exports.IndentLines=mv;exports.InvalidJsonError=O$;exports.LOCALIZATION_TAB_PATH=r0;exports.LOCATION_DATASOURCE_ID=d0;exports.LogoSVG=Ty;exports.LspActions=Yy;exports.MAX_FILE_NAME_LENGTH=Ef;exports.MODEL_TAB_PATH=$I;exports.Modal=i$;exports.ModalCloseReason=pi;exports.ModalColor=zn;exports.ModalIcons=_c;exports.ModalType=hf;exports.Mutex=n0;exports.NameError=_f;exports.Overlay=tv;exports.PANEL_EXPANDED_HEIGHT=da;exports.PANEL_INITIAL_HEIGHT=In;exports.Panel=E$;exports.Portal=Bm;exports.PublishOptions=a2;exports.QODLY_NAMESPACE=yo;exports.ROLES_TAB_PATH=Qy;exports.RemoteDebuggerMode=Af;exports.SETTINGS_TAB_PATH=e0;exports.SHARED_API_PREFIX=Mo;exports.SHARED_USER_NAMESPACE=Ra;exports.SourceCodeDescriptor=j0;exports.Switcher=vv;exports.TITLE_DATASOURCE_ID=h0;exports.TabEventsActions=Vy;exports.Tip=ty;exports.TipsProvider=uC;exports.Toast=UT;exports.Tooltip=Jk;exports.Tree=sR;exports.TreeIcon=dv;exports.TreeNode=qc;exports.USER_LANGUAGE_DATASOURCE_ID=p0;exports.WebformActions=Zy;exports.WebformEventsActions=Io;exports.ZoomComponent=a$;exports.ZoomLevel=Py;exports._isArrayDatasource=t2;exports._isObjectDatasource=r2;exports.addAttributesToContent=l2;exports.addFolder=LL;exports.by=i0;exports.byId=jI;exports.byPath=zI;exports.callServerSideParser=g2;exports.checkUpdates=AL;exports.createFolder=QL;exports.datasourcesSubject=SI;exports.debuggerSubject=AI;exports.dropFile=IL;exports.dropFolder=FL;exports.exists=WI;exports.extractWebformName=MI;exports.filterBySeriousError=w0;exports.formatErrorsAsBulletToast=p2;exports.generateUUID=c2;exports.getAppSettings=RL;exports.getCatalog=jL;exports.getDatasourceId=UI;exports.getDefaultAppSettings=M0;exports.getDisplayableFeedbackErrors=d2;exports.getErrorListFromPayload=b0;exports.getFile=kL;exports.getFileContent=WL;exports.getFileExtentionFromType=LI;exports.getFilenameAndTypeFromPath=II;exports.getFilenameFromType=FI;exports.getFilesInfo=DL;exports.getFolder=F0;exports.getFolders=PL;exports.getFunctionContent=aM;exports.getMonacoTheme=GL;exports.getNodeInfo=rM;exports.getSavedConditions=qL;exports.getSharedAppEvents=BL;exports.getSharedCSS=HL;exports.getSharedDatasources=UL;exports.getSharedResource=qo;exports.getSupportedLanguages=zL;exports.getTypeFromExtension=Tf;exports.getUserPrivileges=ZL;exports.getWebForm=CL;exports.hasAttributesString=v0;exports.http=Me;exports.i18nSubject=RI;exports.initializeDefaultProjectFiles=_L;exports.installUpdates=TL;exports.isArrayDatasource=l0;exports.isDataClassMethod=GI;exports.isDataStoreMethod=ZI;exports.isDateDatasource=n2;exports.isEntity=QI;exports.isEntityDatasource=YI;exports.isEntityMethod=KI;exports.isEntitySelection=e2;exports.isEntitySelectionDatasource=XI;exports.isEntitySelectionMethod=VI;exports.isObjectAttribute=HI;exports.isObjectDatasource=c0;exports.isRelatedAttribute=qI;exports.isRelatedEntitiesAttribute=a0;exports.isRelatedEntityAttribute=u0;exports.isSameNamespace=i2;exports.isScalarDatasource=f0;exports.isSimpleAttribute=s0;exports.isSimpleDatasource=JI;exports.loadDS=o2;exports.loadI18n=s2;exports.localeCompare=o0;exports.log=uM;exports.login=NL;exports.lspSubject=OI;exports.moveItem=tM;exports.outBy=DI;exports.outById=NI;exports.parseAttributes=u2;exports.queue=Rf;exports.removeAttributesString=y0;exports.removeItem=eM;exports.renameFile=$L;exports.renameFolder=ML;exports.sanitizeContent=Za;exports.sanitizeNameCY=f2;exports.saveContent=nM;exports.setCraftedComponents=JL;exports.setFileContent=$f;exports.setSharedAppEvents=XL;exports.setSharedSources=VL;exports.splitDatasourceID=BI;exports.stringifyAttributes=m0;exports.tabEventsSubject=_I;exports.tasksManagerSubject=TI;exports.toastSubject=Ky;exports.trackEvent=lM;exports.transformDates=h2;exports.tryCreateSharedResource=Ka;exports.useDidMountEffect=A$;exports.useDoubleClick=K$;exports.useEnhancedState=lI;exports.useFeatureFlags=B$;exports.useForwardedRef=U$;exports.useHotkeys=N$;exports.useIdentity=q$;exports.useOutsideClick=j$;exports.usePrevious=z$;exports.useStateObject=Z$;exports.useStateRef=W$;exports.useTip=ey;exports.validateName=Jy;exports.validateServerSide=PI;exports.validateValue=CI;exports.webformEventsSubject=Ta;exports.webformSubject=EI;
247
+ `)+ce+`return __p
248
+ }`;var Pe=pv(function(){return Fe(C,Se+"return "+ce).apply(r,M)});if(Pe.source=ce,Vu(Pe))throw Pe;return Pe}function NT(i){return Be(i).toLowerCase()}function DT(i){return Be(i).toUpperCase()}function MT(i,s,d){if(i=Be(i),i&&(d||s===r))return Sh(i);if(!i||!(s=lr(s)))return i;var _=$r(i),O=$r(s),C=_h(_,O),M=Eh(_,O)+1;return Fn(_,C,M).join("")}function LT(i,s,d){if(i=Be(i),i&&(d||s===r))return i.slice(0,Oh(i)+1);if(!i||!(s=lr(s)))return i;var _=$r(i),O=Eh(_,$r(s))+1;return Fn(_,0,O).join("")}function $T(i,s,d){if(i=Be(i),i&&(d||s===r))return i.replace(Vc,"");if(!i||!(s=lr(s)))return i;var _=$r(i),O=_h(_,$r(s));return Fn(_,O).join("")}function zT(i,s){var d=V,_=$;if(ut(s)){var O="separator"in s?s.separator:O;d="length"in s?Ce(s.length):d,_="omission"in s?lr(s.omission):_}i=Be(i);var C=i.length;if(Gi(i)){var M=$r(i);C=M.length}if(d>=C)return i;var H=d-Ki(_);if(H<1)return _;var G=M?Fn(M,0,H).join(""):i.slice(0,H);if(O===r)return G+_;if(M&&(H+=G.length-H),Gu(O)){if(i.slice(H).search(O)){var ie,oe=G;for(O.global||(O=cu(O.source,Be(Up.exec(O))+"g")),O.lastIndex=0;ie=O.exec(oe);)var ce=ie.index;G=G.slice(0,ce===r?H:ce)}}else if(i.indexOf(lr(O),H)!=H){var me=G.lastIndexOf(O);me>-1&&(G=G.slice(0,me))}return G+_}function jT(i){return i=Be(i),i&&Bi.test(i)?i.replace(Mt,h_):i}var FT=to(function(i,s,d){return i+(d?" ":"")+s.toUpperCase()}),Yu=hg("toUpperCase");function fv(i,s,d){return i=Be(i),s=d?r:s,s===r?c_(i)?m_(i):e_(i):i.match(s)||[]}var pv=Ie(function(i,s){try{return ar(i,r,s)}catch(d){return Vu(d)?d:new Te(d)}}),HT=vn(function(i,s){return yr(s,function(d){d=Zr(d),hn(i,d,Uu(i[d],i))}),i});function BT(i){var s=i==null?0:i.length,d=_e();return i=s?at(i,function(_){if(typeof _[1]!="function")throw new wr(l);return[d(_[0]),_[1]]}):[],Ie(function(_){for(var O=-1;++O<s;){var C=i[O];if(ar(C[0],this,_))return ar(C[1],this,_)}})}function WT(i){return hE(Sr(i,f))}function Xu(i){return function(){return i}}function UT(i,s){return i==null||i!==i?s:i}var qT=vg(),VT=vg(!0);function tr(i){return i}function Ju(i){return Vh(typeof i=="function"?i:Sr(i,f))}function GT(i){return Kh(Sr(i,f))}function KT(i,s){return Zh(i,Sr(s,f))}var ZT=Ie(function(i,s){return function(d){return Go(d,i,s)}}),YT=Ie(function(i,s){return function(d){return Go(i,d,s)}});function Qu(i,s,d){var _=Ct(s),O=zs(s,_);d==null&&!(ut(s)&&(O.length||!_.length))&&(d=s,s=i,i=this,O=zs(s,Ct(s)));var C=!(ut(d)&&"chain"in d)||!!d.chain,M=bn(i);return yr(O,function(H){var G=s[H];i[H]=G,M&&(i.prototype[H]=function(){var ie=this.__chain__;if(C||ie){var oe=i(this.__wrapped__),ce=oe.__actions__=Jt(this.__actions__);return ce.push({func:G,args:arguments,thisArg:i}),oe.__chain__=ie,oe}return G.apply(i,Dn([this.value()],arguments))})}),i}function XT(){return Lt._===this&&(Lt._=__),this}function ed(){}function JT(i){return i=Ce(i),Ie(function(s){return Yh(s,i)})}var QT=Pu(at),eR=Pu(mh),tR=Pu(ru);function hv(i){return zu(i)?nu(Zr(i)):PE(i)}function rR(i){return function(s){return i==null?r:hi(i,s)}}var nR=bg(),iR=bg(!0);function td(){return[]}function rd(){return!1}function oR(){return{}}function aR(){return""}function sR(){return!0}function lR(i,s){if(i=Ce(i),i<1||i>K)return[];var d=U,_=Ht(i,U);s=_e(s),i-=U;for(var O=au(_,s);++d<i;)s(d);return O}function cR(i){return Re(i)?at(i,Zr):cr(i)?[i]:Jt(Dg(Be(i)))}function uR(i){var s=++x_;return Be(i)+s}var dR=Us(function(i,s){return i+s},0),fR=Iu("ceil"),pR=Us(function(i,s){return i/s},1),hR=Iu("floor");function gR(i){return i&&i.length?$s(i,tr,mu):r}function vR(i,s){return i&&i.length?$s(i,_e(s,2),mu):r}function mR(i){return wh(i,tr)}function bR(i,s){return wh(i,_e(s,2))}function yR(i){return i&&i.length?$s(i,tr,xu):r}function wR(i,s){return i&&i.length?$s(i,_e(s,2),xu):r}var xR=Us(function(i,s){return i*s},1),SR=Iu("round"),_R=Us(function(i,s){return i-s},0);function ER(i){return i&&i.length?ou(i,tr):0}function kR(i,s){return i&&i.length?ou(i,_e(s,2)):0}return T.after=GO,T.ary=qg,T.assign=DA,T.assignIn=ov,T.assignInWith=nl,T.assignWith=MA,T.at=LA,T.before=Vg,T.bind=Uu,T.bindAll=HT,T.bindKey=Gg,T.castArray=oA,T.chain=Bg,T.chunk=hk,T.compact=gk,T.concat=vk,T.cond=BT,T.conforms=WT,T.constant=Xu,T.countBy=EO,T.create=$A,T.curry=Kg,T.curryRight=Zg,T.debounce=Yg,T.defaults=zA,T.defaultsDeep=jA,T.defer=KO,T.delay=ZO,T.difference=mk,T.differenceBy=bk,T.differenceWith=yk,T.drop=wk,T.dropRight=xk,T.dropRightWhile=Sk,T.dropWhile=_k,T.fill=Ek,T.filter=OO,T.flatMap=RO,T.flatMapDeep=CO,T.flatMapDepth=PO,T.flatten=zg,T.flattenDeep=kk,T.flattenDepth=Ok,T.flip=YO,T.flow=qT,T.flowRight=VT,T.fromPairs=Ak,T.functions=VA,T.functionsIn=GA,T.groupBy=IO,T.initial=Rk,T.intersection=Ck,T.intersectionBy=Pk,T.intersectionWith=Ik,T.invert=ZA,T.invertBy=YA,T.invokeMap=DO,T.iteratee=Ju,T.keyBy=MO,T.keys=Ct,T.keysIn=er,T.map=Xs,T.mapKeys=JA,T.mapValues=QA,T.matches=GT,T.matchesProperty=KT,T.memoize=Qs,T.merge=eT,T.mergeWith=av,T.method=ZT,T.methodOf=YT,T.mixin=Qu,T.negate=el,T.nthArg=JT,T.omit=tT,T.omitBy=rT,T.once=XO,T.orderBy=LO,T.over=QT,T.overArgs=JO,T.overEvery=eR,T.overSome=tR,T.partial=qu,T.partialRight=Xg,T.partition=$O,T.pick=nT,T.pickBy=sv,T.property=hv,T.propertyOf=rR,T.pull=Lk,T.pullAll=Fg,T.pullAllBy=$k,T.pullAllWith=zk,T.pullAt=jk,T.range=nR,T.rangeRight=iR,T.rearg=QO,T.reject=FO,T.remove=Fk,T.rest=eA,T.reverse=Bu,T.sampleSize=BO,T.set=oT,T.setWith=aT,T.shuffle=WO,T.slice=Hk,T.sortBy=VO,T.sortedUniq=Kk,T.sortedUniqBy=Zk,T.split=RT,T.spread=tA,T.tail=Yk,T.take=Xk,T.takeRight=Jk,T.takeRightWhile=Qk,T.takeWhile=eO,T.tap=gO,T.throttle=rA,T.thru=Ys,T.toArray=rv,T.toPairs=lv,T.toPairsIn=cv,T.toPath=cR,T.toPlainObject=iv,T.transform=sT,T.unary=nA,T.union=tO,T.unionBy=rO,T.unionWith=nO,T.uniq=iO,T.uniqBy=oO,T.uniqWith=aO,T.unset=lT,T.unzip=Wu,T.unzipWith=Hg,T.update=cT,T.updateWith=uT,T.values=io,T.valuesIn=dT,T.without=sO,T.words=fv,T.wrap=iA,T.xor=lO,T.xorBy=cO,T.xorWith=uO,T.zip=dO,T.zipObject=fO,T.zipObjectDeep=pO,T.zipWith=hO,T.entries=lv,T.entriesIn=cv,T.extend=ov,T.extendWith=nl,Qu(T,T),T.add=dR,T.attempt=pv,T.camelCase=gT,T.capitalize=uv,T.ceil=fR,T.clamp=fT,T.clone=aA,T.cloneDeep=lA,T.cloneDeepWith=cA,T.cloneWith=sA,T.conformsTo=uA,T.deburr=dv,T.defaultTo=UT,T.divide=pR,T.endsWith=vT,T.eq=jr,T.escape=mT,T.escapeRegExp=bT,T.every=kO,T.find=AO,T.findIndex=Lg,T.findKey=FA,T.findLast=TO,T.findLastIndex=$g,T.findLastKey=HA,T.floor=hR,T.forEach=Wg,T.forEachRight=Ug,T.forIn=BA,T.forInRight=WA,T.forOwn=UA,T.forOwnRight=qA,T.get=Ku,T.gt=dA,T.gte=fA,T.has=KA,T.hasIn=Zu,T.head=jg,T.identity=tr,T.includes=NO,T.indexOf=Tk,T.inRange=pT,T.invoke=XA,T.isArguments=mi,T.isArray=Re,T.isArrayBuffer=pA,T.isArrayLike=Qt,T.isArrayLikeObject=vt,T.isBoolean=hA,T.isBuffer=Hn,T.isDate=gA,T.isElement=vA,T.isEmpty=mA,T.isEqual=bA,T.isEqualWith=yA,T.isError=Vu,T.isFinite=wA,T.isFunction=bn,T.isInteger=Jg,T.isLength=tl,T.isMap=Qg,T.isMatch=xA,T.isMatchWith=SA,T.isNaN=_A,T.isNative=EA,T.isNil=OA,T.isNull=kA,T.isNumber=ev,T.isObject=ut,T.isObjectLike=ht,T.isPlainObject=Qo,T.isRegExp=Gu,T.isSafeInteger=AA,T.isSet=tv,T.isString=rl,T.isSymbol=cr,T.isTypedArray=no,T.isUndefined=TA,T.isWeakMap=RA,T.isWeakSet=CA,T.join=Nk,T.kebabCase=yT,T.last=Er,T.lastIndexOf=Dk,T.lowerCase=wT,T.lowerFirst=xT,T.lt=PA,T.lte=IA,T.max=gR,T.maxBy=vR,T.mean=mR,T.meanBy=bR,T.min=yR,T.minBy=wR,T.stubArray=td,T.stubFalse=rd,T.stubObject=oR,T.stubString=aR,T.stubTrue=sR,T.multiply=xR,T.nth=Mk,T.noConflict=XT,T.noop=ed,T.now=Js,T.pad=ST,T.padEnd=_T,T.padStart=ET,T.parseInt=kT,T.random=hT,T.reduce=zO,T.reduceRight=jO,T.repeat=OT,T.replace=AT,T.result=iT,T.round=SR,T.runInContext=q,T.sample=HO,T.size=UO,T.snakeCase=TT,T.some=qO,T.sortedIndex=Bk,T.sortedIndexBy=Wk,T.sortedIndexOf=Uk,T.sortedLastIndex=qk,T.sortedLastIndexBy=Vk,T.sortedLastIndexOf=Gk,T.startCase=CT,T.startsWith=PT,T.subtract=_R,T.sum=ER,T.sumBy=kR,T.template=IT,T.times=lR,T.toFinite=yn,T.toInteger=Ce,T.toLength=nv,T.toLower=NT,T.toNumber=kr,T.toSafeInteger=NA,T.toString=Be,T.toUpper=DT,T.trim=MT,T.trimEnd=LT,T.trimStart=$T,T.truncate=zT,T.unescape=jT,T.uniqueId=uR,T.upperCase=FT,T.upperFirst=Yu,T.each=Wg,T.eachRight=Ug,T.first=jg,Qu(T,(function(){var i={};return Gr(T,function(s,d){Ye.call(T.prototype,d)||(i[d]=s)}),i})(),{chain:!1}),T.VERSION=n,yr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(i){T[i].placeholder=T}),yr(["drop","take"],function(i,s){Me.prototype[i]=function(d){d=d===r?1:Ot(Ce(d),0);var _=this.__filtered__&&!s?new Me(this):this.clone();return _.__filtered__?_.__takeCount__=Ht(d,_.__takeCount__):_.__views__.push({size:Ht(d,U),type:i+(_.__dir__<0?"Right":"")}),_},Me.prototype[i+"Right"]=function(d){return this.reverse()[i](d).reverse()}}),yr(["filter","map","takeWhile"],function(i,s){var d=s+1,_=d==W||d==Y;Me.prototype[i]=function(O){var C=this.clone();return C.__iteratees__.push({iteratee:_e(O,3),type:d}),C.__filtered__=C.__filtered__||_,C}}),yr(["head","last"],function(i,s){var d="take"+(s?"Right":"");Me.prototype[i]=function(){return this[d](1).value()[0]}}),yr(["initial","tail"],function(i,s){var d="drop"+(s?"":"Right");Me.prototype[i]=function(){return this.__filtered__?new Me(this):this[d](1)}}),Me.prototype.compact=function(){return this.filter(tr)},Me.prototype.find=function(i){return this.filter(i).head()},Me.prototype.findLast=function(i){return this.reverse().find(i)},Me.prototype.invokeMap=Ie(function(i,s){return typeof i=="function"?new Me(this):this.map(function(d){return Go(d,i,s)})}),Me.prototype.reject=function(i){return this.filter(el(_e(i)))},Me.prototype.slice=function(i,s){i=Ce(i);var d=this;return d.__filtered__&&(i>0||s<0)?new Me(d):(i<0?d=d.takeRight(-i):i&&(d=d.drop(i)),s!==r&&(s=Ce(s),d=s<0?d.dropRight(-s):d.take(s-i)),d)},Me.prototype.takeRightWhile=function(i){return this.reverse().takeWhile(i).reverse()},Me.prototype.toArray=function(){return this.take(U)},Gr(Me.prototype,function(i,s){var d=/^(?:filter|find|map|reject)|While$/.test(s),_=/^(?:head|last)$/.test(s),O=T[_?"take"+(s=="last"?"Right":""):s],C=_||/^find/.test(s);O&&(T.prototype[s]=function(){var M=this.__wrapped__,H=_?[1]:arguments,G=M instanceof Me,ie=H[0],oe=G||Re(M),ce=function(De){var Le=O.apply(T,Dn([De],H));return _&&me?Le[0]:Le};oe&&d&&typeof ie=="function"&&ie.length!=1&&(G=oe=!1);var me=this.__chain__,Se=!!this.__actions__.length,Ee=C&&!me,Pe=G&&!Se;if(!C&&oe){M=Pe?M:new Me(this);var ke=i.apply(M,H);return ke.__actions__.push({func:Ys,args:[ce],thisArg:r}),new xr(ke,me)}return Ee&&Pe?i.apply(this,H):(ke=this.thru(ce),Ee?_?ke.value()[0]:ke.value():ke)})}),yr(["pop","push","shift","sort","splice","unshift"],function(i){var s=Ss[i],d=/^(?:push|sort|unshift)$/.test(i)?"tap":"thru",_=/^(?:pop|shift)$/.test(i);T.prototype[i]=function(){var O=arguments;if(_&&!this.__chain__){var C=this.value();return s.apply(Re(C)?C:[],O)}return this[d](function(M){return s.apply(Re(M)?M:[],O)})}}),Gr(Me.prototype,function(i,s){var d=T[s];if(d){var _=d.name+"";Ye.call(Ji,_)||(Ji[_]=[]),Ji[_].push({name:s,func:d})}}),Ji[Ws(r,m).name]=[{name:"wrapper",func:r}],Me.prototype.clone=j_,Me.prototype.reverse=F_,Me.prototype.value=H_,T.prototype.at=vO,T.prototype.chain=mO,T.prototype.commit=bO,T.prototype.next=yO,T.prototype.plant=xO,T.prototype.reverse=SO,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=_O,T.prototype.first=T.prototype.head,Fo&&(T.prototype[Fo]=wO),T}),Zi=b_();ci?((ci.exports=Zi)._=Zi,Jc._=Zi):Lt._=Zi}).call(T$)})(Ia,Ia.exports)),Ia.exports}var ze=R$();const Rf={FdSave:ct.FdSave,FdWarningDanger:ct.FdWarningDanger,FdInfoCircle:ct.FdInfoCircle,FdInfoBold:ct.FdInfoBold};var _p=(e=>(e.ALERT="alert",e.CONFIRM="confirm",e))(_p||{}),wo=(e=>(e.PRIMARY="primary",e.WARNING="warning",e.DANGER="danger",e))(wo||{}),vo=(e=>(e.CONFIRMED="confirmed",e.CANCELED="canceled",e))(vo||{});const C$={[wo.PRIMARY]:{icon:"blue-500",button:"primary-dark"},[wo.DANGER]:{icon:"red-500",button:"primary-dark"},[wo.WARNING]:{icon:"yellow-400",button:"primary-dark"}},P$=({name:e,color:t=wo.PRIMARY,className:r="w-8 h-8"})=>{const n=Rf[e]||Rf.FdInfoCircle,o=`text-${C$[t].icon}`;return A.jsx(n,{className:tt(r,o)})},I$=({id:e,title:t,message:r,icon:n,type:o,color:a,zIndex:l=3e3,views:c,width:u=520,hasOverlay:p=!0,container:h,onClose:f,onEdit:g})=>{const b=y=>{f({id:e,reason:y})};z.useEffect(()=>{function y(m){m.key==="Escape"&&b(vo.CANCELED)}return window.addEventListener("keyup",y),()=>{window.removeEventListener("keyup",y)}},[]);const S=ze.merge(ze.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=ze.cloneDeep(c);(x=w.toggles)!=null&&x[y]&&(w.toggles[y].value=m),g({id:e,views:w})};return ti.createPortal(A.jsx(hc,{appear:!0,show:!0,as:z.Fragment,children:A.jsx("div",{className:tt("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(vo.CANCELED),children:A.jsx(hc.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:A.jsx(us,{depth:3,borderType:"light","data-cy":"confirmation-modal-cy",className:"relative rounded-md border",style:{width:u},onClick:y=>y.stopPropagation(),children:A.jsxs("div",{className:"flex flex-col items-center gap-3 p-6 px-12",children:[n?A.jsx("div",{className:"flex items-center justify-center",children:A.jsx(P$,{name:n,color:a,className:"w-6 h-6"})}):null,A.jsx(N$,{condition:t,children:A.jsx("h4",{className:"w-full text-wrap text-lg font-bold leading-6 text-center",children:t})}),A.jsx("p",{className:"w-full text-wrap text-center text-sm font-medium",children:r}),A.jsx("div",{className:"text-xs",children:ze.values(c==null?void 0:c.toggles).map(y=>A.jsx("div",{children:A.jsxs("label",{htmlFor:y.key,className:"flex items-center",children:[A.jsx(tw,{size:"sm",checked:y.value,onChange:m=>v(y.key,m)}),A.jsx("span",{className:"ml-1",children:y.title})]})},y.key))}),A.jsx(D$,{warnings:S}),A.jsx("div",{className:"flex items-center gap-4",children:o===_p.CONFIRM?A.jsxs(A.Fragment,{children:[A.jsx(mo,{autoFocus:!0,color:"primary",onClick:()=>b(vo.CONFIRMED),children:"Confirm"}),A.jsx(mo,{color:"white",variant:"outline",onClick:()=>b(vo.CANCELED),children:"Cancel"})]}):A.jsx(mo,{autoFocus:!0,onClick:()=>b(),children:"OK"})})]})})})})}),h||document.body)},N$=e=>e.condition?A.jsx(A.Fragment,{children:e.children}):null,D$=e=>e.warnings?A.jsx(hc,{appear:!0,show:!!e.warnings.length,as:z.Fragment,children:A.jsx("div",{className:"flex flex-col gap-1 rounded-sm bg-grey-600 p-2 text-xs",children:e.warnings.map((t,r)=>A.jsx(hc.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:A.jsxs("div",{className:"flex flex-1 items-center gap-1 rounded-sm px-2 py-1",children:[A.jsx(ct.FdWarningDanger,{className:tt({"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")}),A.jsx("div",{className:"flex-1",children:t.message})]})},`modal-warnings-${r}`))})}):null;var Lx=(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))(Lx||{});const M$=({zoom:e,minZoom:t=.5,maxZoom:r=10,handleZoomIn:n,handleZoomOut:o})=>A.jsxs(us,{depth:4,className:"flex items-center rounded p-1",children:[A.jsx(ct.FdMinusNaked,{onClick:o,className:tt("h-5 w-5 p-1",{"text-inactive-text":e<=t,"cursor-pointer rounded hover:bg-primary-hover":e>t})}),A.jsxs("span",{className:"mx-1 w-10 select-none text-center text-xs",children:[(e*100).toFixed(0),"%"]}),A.jsx(ct.FdPlusNaked,{onClick:n,className:tt("h-5 w-5 p-1",{"text-inactive-text":e>=r,"cursor-pointer rounded hover:bg-primary-hover":e<r})})]}),Si=30,Ql=500,L$=e=>{const[t,r]=z.useState(Si),[n,o]=z.useState(!1),a=z.useRef(),l=t>Si,c=z.useRef(null);return z.useEffect(()=>{e.isOpen&&!l&&r(Ql),!e.isOpen&&l&&r(Si)},[e.isOpen]),A.jsx(Qy,{enable:{top:!0},className:"relative w-full select-none border-t isolate",style:{zIndex:49},size:{height:t,width:"100%"},maxHeight:700,minHeight:Si,onResizeStart:()=>{o(!0),a.current&&Date.now()-a.current<200?r(l?Si:Ql):a.current=Date.now()},onResize:(u,p,h)=>{c.current&&cancelAnimationFrame(c.current),c.current=requestAnimationFrame(()=>{var f;(f=e.onResize)==null||f.call(e),c.current=null})},onResizeStop:(u,p,h,f)=>{r(t+f.height),o(!1)},handleComponent:{top:A.jsx(ew,{isDragging:n})},depth:1,children:A.jsxs("div",{"data-cy":"contextualPanel",className:"absolute inset-0 flex flex-col overflow-hidden",id:`__cp-${ze.kebabCase(e.path)}`,children:[A.jsxs("div",{className:tt("flex justify-between items-center px-3 py-0.5",{"flex-1":!l}),children:[A.jsxs("div",{className:"group flex items-center justify-start",children:[A.jsx("span",{className:"mr-2 text-sm",children:"Contextual panel"}),A.jsx("span",{}),e.tipKey?A.jsx(dx,{tipKey:e.tipKey,alwaysOn:!0,asButton:!0}):null,A.jsx(mo,{variant:"ghost",color:"white","data-cy":`contextualPanel-toggle-button-${l?"close":"open"}`,onClick:()=>{l?(r(Si),e.onClose()):(r(Ql),e.onOpen())},children:l?A.jsx(ct.FdDoubleArrowDown,{className:"h-4 w-4"}):A.jsx(ct.FdDoubleArrowUp,{className:"h-4 w-4"})})]}),e.headerRightSide]}),A.jsxs(Kl,{of:l,children:[A.jsx(Kl,{of:e.render,children:e.render}),A.jsx(Kl,{of:!e.render,children:e.children})]})]})})};function $x({children:e,viewBox:t="0 0 24 24",...r}){return A.jsx("svg",{viewBox:t,width:"1em",height:"1em",fill:"none",className:"base-icon",...ze.omit(r,"isIndeterminate","isChecked"),children:e})}function zx(e){const t=e.isIndeterminate?"M2 12h20":"M4 11.5L9 17L20 6";return A.jsx($x,{viewBox:"0 0 24 24",...e,children:A.jsx("path",{fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round",d:t})})}function $$({isChecked:e,isIndeterminate:t,isInvalid:r,icon:n,label:o,className:a="",style:l,...c}){const u=z.useRef(null),p=n||A.jsx(zx,{}),h=c.checked??e;z.useEffect(()=>{u.current&&(u.current.indeterminate=!!t)},[t]);const f=h||t,g=["base-checkbox-container",a].join(" ");return A.jsxs("label",{className:g,style:l,"data-invalid":r,children:[A.jsx("input",{ref:u,type:"checkbox",className:"base-checkbox-input",checked:h,...c,"aria-invalid":r||void 0}),A.jsx("span",{className:"base-checkbox-control",children:f&&p&&z.cloneElement(p,{isChecked:h,isIndeterminate:t,className:"base-checkbox-icon"})}),o&&A.jsx("span",{className:"base-checkbox-label",children:o})]})}const z$=z.forwardRef(({label:e,Icon:t,className:r="",disableHover:n=!1,iconClassname:o,...a},l)=>A.jsx(A.Fragment,{children:A.jsx(Zy,{label:e,children:A.jsx(mo,{variant:"ghost",color:"white",className:tt({"hover:bg-transparent":n},r),...a,children:A.jsx(t,{className:tt(o)})})})})),j$=({onChange:e,value:t,delay:r,placeholder:n,containerClassName:o,onFocusInput:a,icon:l,"data-cy":c})=>{const[u,p]=z.useState(t),h=z.useRef(null);return A.jsx(ma.Root,{className:tt("w-full",o),children:A.jsxs(ma.Group,{children:[A.jsx(ma.Icon,{children:l?A.jsx("button",{className:"mr-1 flex h-6 w-7 items-center justify-center text-xs rounded bg-grey-300 hover:bg-primary-hover",onClick:()=>{var f;return(f=h.current)==null?void 0:f.focus()},children:A.jsx("span",{className:`text-base fa ${l}`})}):A.jsx(ct.FdSearch,{})}),A.jsx(ma.Field,{ref:h,"data-cy":c||"search-cy",placeholder:n||"Search",onChange:f=>{p(f.currentTarget.value);const g=ze.escapeRegExp(f.target.value);if(!r)return e(g);ze.debounce(e,r)(g)},value:u,onFocus:()=>a&&a(),onDrop:f=>f.preventDefault()}),t&&A.jsx(ma.Icon,{isAction:!0,onClick:()=>{e(""),p("")},children:A.jsx(ct.FdCloseNaked,{})})]})})},F$=({title:e="Invalid page structure",error:t,onClose:r,onOpenInTextEditor:n,onReset:o})=>A.jsx("div",{className:"flex h-full w-full items-center justify-center",children:A.jsxs("div",{className:"flex flex-col items-center rounded bg-grey-300 px-10 py-6 text-center shadow-md",children:[A.jsxs("div",{className:"relative",children:[A.jsx(ct.FdSanityCheckDefault,{className:"relative z-20 h-12 w-12 text-negative-text rounded-full"}),A.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"})]}),A.jsx("p",{className:"mb-2 mt-4 text-2xl text-body",children:e}),A.jsx("p",{className:"text-md mb-4 font-extralight text-muted",children:t}),A.jsxs("div",{className:"flex gap-4",children:[n&&A.jsx("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&&A.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:"Reset Page"}),r&&A.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 H$(e,t){const r=z.useRef(!1);z.useEffect(()=>{if(r.current)return e();r.current=!0},t)}const Zd=typeof navigator<"u"?navigator.userAgent.toLowerCase().indexOf("firefox")>0:!1;function Yd(e,t,r,n){e.addEventListener?e.addEventListener(t,r,n):e.attachEvent&&e.attachEvent("on".concat(t),r)}function Ta(e,t,r,n){e.removeEventListener?e.removeEventListener(t,r,n):e.detachEvent&&e.detachEvent("on".concat(t),r)}function jx(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 Fx(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 B$(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 Xa={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,"-":Zd?173:189,"=":Zd?61:187,";":Zd?59:186,"'":222,"{":219,"}":221,"[":219,"]":221,"\\":220},qr={"⇧":16,shift:16,"⌥":18,alt:18,option:18,"⌃":17,ctrl:17,control:17,"⌘":91,cmd:91,meta:91,command:91},Na={16:"shiftKey",18:"altKey",17:"ctrlKey",91:"metaKey",shiftKey:16,ctrlKey:17,altKey:18,metaKey:91},jt={16:!1,18:!1,17:!1,91:!1},ft={};for(let e=1;e<20;e++)Xa["f".concat(e)]=111+e;let lt=[],Wa=null,Hx="all";const En=new Map,No=e=>Xa[e.toLowerCase()]||qr[e.toLowerCase()]||e.toUpperCase().charCodeAt(0),W$=e=>Object.keys(Xa).find(t=>Xa[t]===e),U$=e=>Object.keys(qr).find(t=>qr[t]===e);function Bx(e){Hx=e||"all"}function Ja(){return Hx||"all"}function q$(){return lt.slice(0)}function V$(){return lt.map(e=>W$(e)||U$(e)||String.fromCharCode(e))}function G$(){const e=[];return Object.keys(ft).forEach(t=>{ft[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=>No(c))})})}),e}function K$(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 Z$(e){return typeof e=="string"&&(e=No(e)),lt.indexOf(e)!==-1}function Y$(e,t){let r,n;e||(e=Ja());for(const o in ft)if(Object.prototype.hasOwnProperty.call(ft,o))for(r=ft[o],n=0;n<r.length;)r[n].scope===e?r.splice(n,1).forEach(l=>{let{element:c}=l;return Ep(c)}):n++;Ja()===e&&Bx(t||"all")}function X$(e){let t=e.keyCode||e.which||e.charCode;e.key&&e.key.toLowerCase()==="capslock"&&(t=No(e.key));const r=lt.indexOf(t);if(r>=0&&lt.splice(r,1),e.key&&e.key.toLowerCase()==="meta"&&lt.splice(0,lt.length),(t===93||t===224)&&(t=91),t in jt){jt[t]=!1;for(const n in qr)qr[n]===t&&(Ur[n]=!1)}}function Wx(e){if(typeof e>"u")Object.keys(ft).forEach(o=>{Array.isArray(ft[o])&&ft[o].forEach(a=>Dl(a)),delete ft[o]}),Ep(null);else if(Array.isArray(e))e.forEach(o=>{o.key&&Dl(o)});else if(typeof e=="object")e.key&&Dl(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=""),Dl({key:e,scope:o,method:a,splitKey:"+"})}}const Dl=e=>{let{key:t,scope:r,method:n,splitKey:o="+"}=e;Fx(t).forEach(l=>{const c=l.split(o),u=c.length,p=c[u-1],h=p==="*"?"*":No(p);if(!ft[h])return;r||(r=Ja());const f=u>1?jx(qr,c):[],g=[];ft[h]=ft[h].filter(b=>{const v=(n?b.method===n:!0)&&b.scope===r&&B$(b.mods,f);return v&&g.push(b.element),!v}),g.forEach(b=>Ep(b))})};function v0(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 jt)Object.prototype.hasOwnProperty.call(jt,a)&&(!jt[a]&&t.mods.indexOf(+a)>-1||jt[a]&&t.mods.indexOf(+a)===-1)&&(o=!1);(t.mods.length===0&&!jt[16]&&!jt[18]&&!jt[17]&&!jt[91]||o||t.shortcut==="*")&&(t.keys=[],t.keys=t.keys.concat(lt),t.method(e,t)===!1&&(e.preventDefault?e.preventDefault():e.returnValue=!1,e.stopPropagation&&e.stopPropagation(),e.cancelBubble&&(e.cancelBubble=!0)))}}function m0(e,t){const r=ft["*"];let n=e.keyCode||e.which||e.charCode;if(e.key&&e.key.toLowerCase()==="capslock"||!Ur.filter.call(this,e))return;if((n===93||n===224)&&(n=91),lt.indexOf(n)===-1&&n!==229&&lt.push(n),["metaKey","ctrlKey","altKey","shiftKey"].forEach(c=>{const u=Na[c];e[c]&&lt.indexOf(u)===-1?lt.push(u):!e[c]&&lt.indexOf(u)>-1?lt.splice(lt.indexOf(u),1):c==="metaKey"&&e[c]&&(lt=lt.filter(p=>p in Na||p===n))}),n in jt){jt[n]=!0;for(const c in qr)if(Object.prototype.hasOwnProperty.call(qr,c)){const u=Na[qr[c]];Ur[c]=e[u]}if(!r)return}for(const c in jt)Object.prototype.hasOwnProperty.call(jt,c)&&(jt[c]=e[Na[c]]);e.getModifierState&&!(e.altKey&&!e.ctrlKey)&&e.getModifierState("AltGraph")&&(lt.indexOf(17)===-1&&lt.push(17),lt.indexOf(18)===-1&&lt.push(18),jt[17]=!0,jt[18]=!0);const o=Ja();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)&&v0(e,r[c],o,t);if(!(n in ft))return;const a=ft[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,h=u.key.split(p),f=[];for(let g=0;g<h.length;g++)f.push(No(h[g]));f.sort().join("")===lt.sort().join("")&&v0(e,u,o,t)}}function Ur(e,t,r){lt=[];const n=Fx(e);let o=[],a="all",l=document,c=0,u=!1,p=!0,h="+",f=!1,g=!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"&&(h=t.splitKey),t.single===!0&&(g=!0)),typeof t=="string"&&(a=t),g&&Wx(e,a);c<n.length;c++)e=n[c].split(h),o=[],e.length>1&&(o=jx(qr,e)),e=e[e.length-1],e=e==="*"?"*":No(e),e in ft||(ft[e]=[]),ft[e].push({keyup:u,keydown:p,scope:a,mods:o,shortcut:n[c],method:r,key:n[c],splitKey:h,element:l});if(typeof l<"u"&&window){if(!En.has(l)){const b=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;return m0(v,l)},S=function(){let v=arguments.length>0&&arguments[0]!==void 0?arguments[0]:window.event;m0(v,l),X$(v)};En.set(l,{keydownListener:b,keyupListenr:S,capture:f}),Yd(l,"keydown",b,f),Yd(l,"keyup",S,f)}if(!Wa){const b=()=>{lt=[]};Wa={listener:b,capture:f},Yd(window,"focus",b,f)}}}function J$(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"all";Object.keys(ft).forEach(r=>{ft[r].filter(o=>o.scope===t&&o.shortcut===e).forEach(o=>{o&&o.method&&o.method()})})}function Ep(e){const t=Object.values(ft).flat();if(t.findIndex(n=>{let{element:o}=n;return o===e})<0){const{keydownListener:n,keyupListenr:o,capture:a}=En.get(e)||{};n&&o&&(Ta(e,"keyup",o,a),Ta(e,"keydown",n,a),En.delete(e))}if((t.length<=0||En.size<=0)&&(Object.keys(En).forEach(o=>{const{keydownListener:a,keyupListenr:l,capture:c}=En.get(o)||{};a&&l&&(Ta(o,"keyup",l,c),Ta(o,"keydown",a,c),En.delete(o))}),En.clear(),Object.keys(ft).forEach(o=>delete ft[o]),Wa)){const{listener:o,capture:a}=Wa;Ta(window,"focus",o,a),Wa=null}}const Xd={getPressedKeyString:V$,setScope:Bx,getScope:Ja,deleteScope:Y$,getPressedKeyCodes:q$,getAllKeyCodes:G$,isPressed:Z$,filter:K$,trigger:J$,unbind:Wx,keyMap:Xa,modifier:qr,modifierMap:Na};for(const e in Xd)Object.prototype.hasOwnProperty.call(Xd,e)&&(Ur[e]=Xd[e]);if(typeof window<"u"){const e=window.hotkeys;Ur.noConflict=t=>(t&&window.hotkeys===Ur&&(window.hotkeys=e),Ur),window.hotkeys=Ur}Ur.filter=()=>!0;function Q$(e,t,r,n){r instanceof Array&&(n=r,r=void 0),n=n||[],r=r||{};const{preventDefault:o=!0}=r,a=z.useCallback((c,u)=>{o&&c.preventDefault(),setTimeout(()=>t(c,u))},n),l=()=>{Ur.unbind(e,a)};z.useEffect(()=>(Ur(e,r,a),l),[e,r,a])}const ez=e=>{const t=z.useRef(null);return z.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 tz(e){const t=z.useRef();return z.useEffect(()=>{t.current=e},[e]),t.current}function rz(e){const t=z.useRef(e);return z.useEffect(()=>{t.current=e},[e]),t}function nz(e){const t=z.useRef(null);return z.useEffect(()=>{e&&(typeof e=="function"?e(t.current):e.current=t.current)}),t}function iz(e){const[t,r]=z.useState(e),n=(a,l)=>{r(c=>({...c,features:{...c.features,[a]:{enabled:l}}}))},o=z.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 Ux=z.createContext(""),oz=e=>A.jsx(Ux.Provider,{value:e.value,children:e.children}),az=()=>{const e=z.useContext(Ux);if(typeof e!="string")throw new Error("Error while calling useIdentity! Context has incorrect type (expected string)");return e};function sz(e){const[t,r]=z.useState(e),n=z.useMemo(()=>lz(t,r),[]);return{state:t,actions:{...n,set:o=>{r(typeof o=="function"?o:a=>({...a,...o}))}}}}function lz(e,t=()=>{}){return Object.keys(e).reduce((n,o)=>({...n,[`set${ze.upperFirst(o)}`]:a=>t(l=>({...l,[o]:a}))}),{})}const cz=(e,t,r={})=>{r={timeout:200,...r};const n=z.useRef(),o=()=>{n.current&&(clearTimeout(n.current),n.current=null)};return z.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 Ft(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=vz[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 Ao(e){return!!e&&!!e[gr]}function Di(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)===mz})(e)||Array.isArray(e)||!!e[k0]||!!(!((t=e.constructor)===null||t===void 0)&&t[k0])||kp(e)||Op(e))}function Qa(e,t,r){r===void 0&&(r=!1),Do(e)===0?(r?Object.keys:Cp)(e).forEach((function(n){r&&typeof n=="symbol"||t(n,e[n],e)})):e.forEach((function(n,o){return t(o,n,e)}))}function Do(e){var t=e[gr];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:kp(e)?2:Op(e)?3:0}function Cf(e,t){return Do(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function uz(e,t){return Do(e)===2?e.get(t):e[t]}function qx(e,t,r){var n=Do(e);n===2?e.set(t,r):n===3?e.add(r):e[t]=r}function dz(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function kp(e){return hz&&e instanceof Map}function Op(e){return gz&&e instanceof Set}function _i(e){return e.o||e.t}function Ap(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=bz(e);delete t[gr];for(var r=Cp(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 es(e,t){return t===void 0&&(t=!1),Tp(e)||Ao(e)||!Di(e)||(Do(e)>1&&(e.set=e.add=e.clear=e.delete=fz),Object.freeze(e),t&&Qa(e,(function(r,n){return es(n,!0)}),!0)),e}function fz(){Ft(2)}function Tp(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function sn(e){var t=yz[e];return t||Ft(18,e),t}function b0(){return process.env.NODE_ENV==="production"||To||Ft(0),To}function Jd(e,t){t&&(sn("Patches"),e.u=[],e.s=[],e.v=t)}function gc(e){Pf(e),e.p.forEach(pz),e.p=null}function Pf(e){e===To&&(To=e.l)}function y0(e){return To={p:[],l:To,h:e,m:!0,_:0}}function pz(e){var t=e[gr];t.i===0||t.i===1?t.j():t.g=!0}function Qd(e,t){t._=t.p.length;var r=t.p[0],n=e!==void 0&&e!==r;return t.h.O||sn("ES5").S(t,e,n),n?(r[gr].P&&(gc(t),Ft(4)),Di(e)&&(e=vc(t,e),t.l||mc(t,e)),t.u&&sn("Patches").M(r[gr].t,e,t.u,t.s)):e=vc(t,r,[]),gc(t),t.u&&t.v(t.u,t.s),e!==Gx?e:void 0}function vc(e,t,r){if(Tp(t))return t;var n=t[gr];if(!n)return Qa(t,(function(c,u){return w0(e,n,t,c,u,r)}),!0),t;if(n.A!==e)return t;if(!n.P)return mc(e,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ap(n.k):n.o,a=o,l=!1;n.i===3&&(a=new Set(o),o.clear(),l=!0),Qa(a,(function(c,u){return w0(e,n,o,c,u,r,l)})),mc(e,o,!1),r&&e.u&&sn("Patches").N(n,r,e.u,e.s)}return n.o}function w0(e,t,r,n,o,a,l){if(process.env.NODE_ENV!=="production"&&o===r&&Ft(5),Ao(o)){var c=vc(e,o,a&&t&&t.i!==3&&!Cf(t.R,n)?a.concat(n):void 0);if(qx(r,n,c),!Ao(c))return;e.m=!1}else l&&r.add(o);if(Di(o)&&!Tp(o)){if(!e.h.D&&e._<1)return;vc(e,o),t&&t.A.l||mc(e,o)}}function mc(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&es(t,r)}function ef(e,t){var r=e[gr];return(r?_i(r):e)[t]}function x0(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 If(e){e.P||(e.P=!0,e.l&&If(e.l))}function tf(e){e.o||(e.o=Ap(e.t))}function Nf(e,t,r){var n=kp(t)?sn("MapSet").F(t,r):Op(t)?sn("MapSet").T(t,r):e.O?(function(o,a){var l=Array.isArray(o),c={i:l?1:0,A:a?a.A:b0(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=c,p=Df;l&&(u=[c],p=Da);var h=Proxy.revocable(u,p),f=h.revoke,g=h.proxy;return c.k=g,c.j=f,g})(t,r):sn("ES5").J(t,r);return(r?r.A:b0()).p.push(n),n}function Vx(e){return Ao(e)||Ft(22,e),(function t(r){if(!Di(r))return r;var n,o=r[gr],a=Do(r);if(o){if(!o.P&&(o.i<4||!sn("ES5").K(o)))return o.t;o.I=!0,n=S0(r,a),o.I=!1}else n=S0(r,a);return Qa(n,(function(l,c){o&&uz(o.t,l)===c||qx(n,l,t(c))})),a===3?new Set(n):n})(e)}function S0(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Ap(e)}var _0,To,Rp=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hz=typeof Map<"u",gz=typeof Set<"u",E0=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Gx=Rp?Symbol.for("immer-nothing"):((_0={})["immer-nothing"]=!0,_0),k0=Rp?Symbol.for("immer-draftable"):"__$immer_draftable",gr=Rp?Symbol.for("immer-state"):"__$immer_state",vz={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"},mz=""+Object.prototype.constructor,Cp=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,bz=Object.getOwnPropertyDescriptors||function(e){var t={};return Cp(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},yz={},Df={get:function(e,t){if(t===gr)return e;var r=_i(e);if(!Cf(r,t))return(function(o,a,l){var c,u=x0(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||!Di(n)?n:n===ef(e.t,t)?(tf(e),e.o[t]=Nf(e.A.h,n,e)):n},has:function(e,t){return t in _i(e)},ownKeys:function(e){return Reflect.ownKeys(_i(e))},set:function(e,t,r){var n=x0(_i(e),t);if(n!=null&&n.set)return n.set.call(e.k,r),!0;if(!e.P){var o=ef(_i(e),t),a=o==null?void 0:o[gr];if(a&&a.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(dz(r,o)&&(r!==void 0||Cf(e.t,t)))return!0;tf(e),If(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return ef(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,tf(e),If(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=_i(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:n.enumerable,value:r[t]}},defineProperty:function(){Ft(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Ft(12)}},Da={};Qa(Df,(function(e,t){Da[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),Da.deleteProperty=function(e,t){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(t))&&Ft(13),Da.set.call(this,e,t,void 0)},Da.set=function(e,t,r){return process.env.NODE_ENV!=="production"&&t!=="length"&&isNaN(parseInt(t))&&Ft(14),Df.set.call(this,e[0],t,r,e[0])};var wz=(function(){function e(r){var n=this;this.O=E0,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"&&Ft(6),l!==void 0&&typeof l!="function"&&Ft(7),Di(o)){var h=y0(n),f=Nf(n,o,void 0),g=!0;try{p=a(f),g=!1}finally{g?gc(h):Pf(h)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return Jd(h,l),Qd(v,h)}),(function(v){throw gc(h),v})):(Jd(h,l),Qd(p,h))}if(!o||typeof o!="object"){if((p=a(o))===void 0&&(p=o),p===Gx&&(p=void 0),n.D&&es(p,!0),l){var b=[],S=[];sn("Patches").M(o,p,b,S),l(b,S)}return p}Ft(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(p){for(var h=arguments.length,f=Array(h>1?h-1:0),g=1;g<h;g++)f[g-1]=arguments[g];return n.produceWithPatches(p,(function(b){return o.apply(void 0,[b].concat(f))}))};var l,c,u=n.produce(o,a,(function(p,h){l=p,c=h}));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){Di(r)||Ft(8),Ao(r)&&(r=Vx(r));var n=y0(this),o=Nf(this,r,void 0);return o[gr].C=!0,Pf(n),o},t.finishDraft=function(r,n){var o=r&&r[gr];process.env.NODE_ENV!=="production"&&(o&&o.C||Ft(9),o.I&&Ft(10));var a=o.A;return Jd(a,n),Qd(void 0,a)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!E0&&Ft(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=sn("Patches").$;return Ao(r)?l(r,n):this.produce(r,(function(c){return l(c,n)}))},e})(),vr=new wz,xz=vr.produce;vr.produceWithPatches.bind(vr);vr.setAutoFreeze.bind(vr);vr.setUseProxies.bind(vr);vr.applyPatches.bind(vr);vr.createDraft.bind(vr);vr.finishDraft.bind(vr);function Sz(e){var t=z.useState(function(){return es(typeof e=="function"?e():e,!0)}),r=t[1];return[t[0],z.useCallback(function(n){r(typeof n=="function"?xz(n):es(n))},[])]}const _z=process.env.NODE_ENV==="development",rf=_z&&typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:null,Ez=(e,t,r)=>{const[n,o]=Sz(e),a=z.useRef(null);z.useEffect(()=>{var u;return r&&(a.current=rf==null?void 0:rf.connect({name:r,trace:!0}),(u=a.current)==null||u.init(e)),()=>{var p,h;(h=(p=a.current)==null?void 0:p.disconnect)==null||h.call(p)}},[]);const l=t&&typeof t=="object"?t:{},c=z.useMemo(()=>Object.keys(l).reduce((u,p)=>({...u,[p]:h=>(o(f=>{var g;l[p](f,h),(g=a.current)==null||g.send({type:l[p].name},Vx(f))}),c)}),{}),[o]);return{state:n,dispatch:c}},kz=e=>{const t=$p(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()}}},Oz=({datasourceId:e,isDsBuild:t=!1,onChange:r})=>{const{id:n,namespace:o}=$p(e),[a,l]=z.useState(!1),c=z.useCallback(()=>{try{return window.DataSource.getSource(n,o)}catch{return}},[o,n]),u=(f,g)=>{const b=c();b&&b.setValue(f,g)},p=async()=>{const f=c();if(!f)return;const g=await(f==null?void 0:f.getValue());r==null||r(g)},h=f=>{const{id:g}=f;!a&&g&&g.startsWith(n)&&l(!0)};return z.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]),z.useEffect(()=>{if(t)return window.addEventListener("datasource:created",h),()=>window.removeEventListener("datasource:created",h)},[t]),{loaded:a,setCurrentSource:u}};function Rn(e){return typeof e=="function"}function Kx(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 nf=Kx(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 Mf(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}var zc=(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=yf(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 h=this.initialTeardown;if(Rn(h))try{h()}catch(v){a=v instanceof nf?v.errors:[v]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var g=yf(f),b=g.next();!b.done;b=g.next()){var S=b.value;try{O0(S)}catch(v){a=a??[],v instanceof nf?a=cc(cc([],wf(a)),wf(v.errors)):a.push(v)}}}catch(v){n={error:v}}finally{try{b&&!b.done&&(o=g.return)&&o.call(g)}finally{if(n)throw n.error}}}if(a)throw new nf(a)}},e.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)O0(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)&&Mf(r,t)},e.prototype.remove=function(t){var r=this._finalizers;r&&Mf(r,t),t instanceof e&&t._removeParent(this)},e.EMPTY=(function(){var t=new e;return t.closed=!0,t})(),e})(),Zx=zc.EMPTY;function Yx(e){return e instanceof zc||e&&"closed"in e&&Rn(e.remove)&&Rn(e.add)&&Rn(e.unsubscribe)}function O0(e){Rn(e)?e():e.unsubscribe()}var Az={Promise:void 0},Tz={setTimeout:function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];return setTimeout.apply(void 0,cc([e,t],wf(r)))},clearTimeout:function(e){return clearTimeout(e)},delegate:void 0};function Rz(e){Tz.setTimeout(function(){throw e})}function A0(){}function ec(e){e()}var Xx=(function(e){Pc(t,e);function t(r){var n=e.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Yx(r)&&r.add(n)):n.destination=Iz,n}return t.create=function(r,n,o){return new Lf(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})(zc),Cz=(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){Ml(n)}},e.prototype.error=function(t){var r=this.partialObserver;if(r.error)try{r.error(t)}catch(n){Ml(n)}else Ml(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(r){Ml(r)}},e})(),Lf=(function(e){Pc(t,e);function t(r,n,o){var a=e.call(this)||this,l;return Rn(r)||!r?l={next:r??void 0,error:n??void 0,complete:o??void 0}:l=r,a.destination=new Cz(l),a}return t})(Xx);function Ml(e){Rz(e)}function Pz(e){throw e}var Iz={closed:!0,next:A0,error:Pz,complete:A0},Nz=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})();function Dz(e){return e}function Mz(e){return e.length===0?Dz:e.length===1?e[0]:function(r){return e.reduce(function(n,o){return o(n)},r)}}var T0=(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=$z(t)?t:new Lf(t,r,n);return ec(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=R0(r),new r(function(o,a){var l=new Lf({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[Nz]=function(){return this},e.prototype.pipe=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return Mz(t)(this)},e.prototype.toPromise=function(t){var r=this;return t=R0(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 R0(e){var t;return(t=e??Az.Promise)!==null&&t!==void 0?t:Promise}function Lz(e){return e&&Rn(e.next)&&Rn(e.error)&&Rn(e.complete)}function $z(e){return e&&e instanceof Xx||Lz(e)&&Yx(e)}var zz=Kx(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),cn=(function(e){Pc(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 C0(this,this);return n.operator=r,n},t.prototype._throwIfClosed=function(){if(this.closed)throw new zz},t.prototype.next=function(r){var n=this;ec(function(){var o,a;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var l=yf(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;ec(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;ec(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?Zx:(this.currentObservers=null,c.push(r),new zc(function(){n.currentObservers=null,Mf(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 T0;return r.source=this,r},t.create=function(r,n){return new C0(r,n)},t})(T0),C0=(function(e){Pc(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:Zx},t})(cn),Jx=(e=>(e.RELOAD="reload",e.RECOMPUTE="recompute",e))(Jx||{}),Qx=(e=>(e.RENAME="rename",e.TYPE_CHANGE="type-change",e))(Qx||{});const jz=new cn,Fz=new cn,e1=new cn;var t1=(e=>(e.SAVE_ALL="save-all",e))(t1||{});const Hz=new cn;var r1=(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))(r1||{});const Bz=new cn;var n1=(e=>(e.RESEND_BREAKPOINTS="resend-breakpoints",e))(n1||{});const Wz=new cn,Uz=new cn;var ts=(e=>(e.EVENT_STARTED="event-started",e.EVENT_ENDED="event-ended",e.EVENT_EMITED="event-emited",e.REQUEST_SENT="request-sent",e))(ts||{});const bc=new cn,qz=new cn,Pp=255;var Ip=(e=>(e.EMPTY="Please enter a valid name",e.LENGTH_EXCEEDED=`The name is too long, it should not exceed ${Pp} 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))(Ip||{});function jc(e,t){const r=t?e.replace(/\.[^.]+$/,""):e;if(e==="")throw new Error("Please enter a valid name");if(e.length>Pp)throw new Error(Ip.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 Vz(e){if(!e)return null;if(typeof e=="string")try{jc(e)}catch(t){return t.message}}function Gz(e,t){let r="";if(["array","object"].includes(t))try{const n=JSON.parse(e);t==="array"&&(!Array.isArray(n)||!ze.isObject(n))&&(r=`Invalid value for type ${t}`),t==="object"&&(!ze.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 Kz(){return{PLACEHOLDER_PREFIX:`@!MASK_${Date.now().toString(36)+Math.random().toString(36).substring(2,8)}_`,counter:0}}function Fc(e){const{PLACEHOLDER_PREFIX:t,counter:r}=Kz();let n=r;const o=[],a="@!",l=h=>(o.push(h),`${t}${n++}${a}`);let c=e.replace(/("(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/g,l);c=c.replace(/([\{\s]\s*\w+\s*)(:\s*\d+)/g,(h,f,g)=>f+l(g)),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 h=0;h<o.length;h++){const g=`${t}${h}${a}`.replace(/([.*+?^${}()|[\]\\])/g,"\\$1"),b=new RegExp(g,"g");p=p.replace(b,o[h])}return p}var Np=(e=>(e.METHODS="method",e.WEBFORMS="webform",e.CLASSES="class",e.WELCOME="welcome",e.SETTINGS="settings",e.ROOT="root",e.REPORTS="report",e))(Np||{});const Qn={CLASSES:"Classes",METHODS:"Methods",SHARED:"Shared",WEBFORMS:"WebForms",CLASSES_FOLDER:"ClassesFolder",REPORTS:"Reports",DEBUGGER:"Debugger"};var dt=(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))(dt||{}),ni=(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))(ni||{}),Dp=(e=>(e[e.DISABLED=0]="DISABLED",e[e.ENABLED=1]="ENABLED",e))(Dp||{});const i1="roles.json",o1="qodlyApp.json",Zz="model.4DModel",a1="HTTPHandlers.json",s1="Shared/i18n.json";function Yz(e){const t=Mp(e);switch(t){case dt.SETTINGS:return{filename:"Settings",type:t};case dt.HTTP_HANDLERS:return{filename:"HTTP Handlers",type:t};case dt.ROLES:return{filename:"Roles & Privileges",type:t};case dt.LOCALIZATION:return{filename:"Localization",type:t};case dt.MODEL:return{filename:"Model",type:t};default:{const r=e.split("/"),[n]=r[1].split(".");return{filename:n,type:t}}}}function Mp(e){const t=e.split("."),r=t.pop(),n=t.join(".").split("/")[0];switch(!0){case r==="4DModel":return dt.MODEL;case r==="WebForm":return dt.WEBFORM;case(["4dm","4qs","4qm"].includes(r)&&n===Qn.METHODS):return dt.METHOD;case(["4dm","4qs","4qm"].includes(r)&&n===Qn.CLASSES):return dt.CLASS;case e===i1:return dt.ROLES;case e===a1:return dt.HTTP_HANDLERS;case e===o1:return dt.SETTINGS;case e===s1:return dt.LOCALIZATION;default:return dt.TEXT}}function Xz(e,t=!1){switch(e){case Qn.REPORTS:case"report":return"QoDoc";case Qn.WEBFORMS:case"webform":return"WebForm";case"Mobile":case"mform":return"MForm";case"class":case"method":case Qn.CLASSES:case Qn.METHODS:return t?"4qs":"4dm";default:return""}}function Jz(e,t=""){const r=new RegExp("(?<=\\/)(\\w+)(?=\\.)").exec(e);return r?r[1]:t}function Qz(e,t,r){switch(t){case dt.MOBILEFORM:return`${e}.MForm`;case dt.WEBFORM:return`${e}.WebForm`;case dt.REPORT:return`${e}.QoDoc`;case dt.METHOD:case dt.CLASS:return`${e}.${r?"4qs":"4dm"}`;default:return e}}class l1{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 Lp(){const e=new l1;return async t=>{const r=await e.lock();try{const n=await t();return r(),n}catch(n){console.error(n),r();return}}}const c1=ze.curry((e,t,r)=>e&&ze.get(r,e)===t),ej=ze.curry((e,t,r)=>ze.get(r,e)!==t),tj=ze.curry((e,t)=>ze.get(t,"id")!==e),rj=ze.curry((e,t)=>ze.get(t,"id")===e),nj=ze.curry((e,t)=>ze.get(t,"path")===e);function ij(e="id",t,r){return r.findIndex(c1(e,t))!==-1}function u1(e,t){return e.localeCompare(t,void 0,{numeric:!0})}function oj(e){if(!e)return"";const{id:t,namespace:r}=e;return r&&t?`${r}:${t}`:t}function $p(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 d1(e){return["bool","word","string","text","uuid","short","long","number","long64","duration","object","date","image","blob"].includes(e.type||"")}function aj(e){return e.type==="object"}function f1(e){var t;return e.kind==="relatedEntities"||((t=e.type)==null?void 0:t.includes("Selection"))||e.behavior==="relatedEntities"}function p1(e){return e.kind==="relatedEntity"||e.behavior==="relatedEntity"||!d1(e)}function sj(e){return f1(e)||p1(e)}function lj(e){return e.applyTo==="dataStore"}function cj(e){return e.applyTo==="dataClass"}function uj(e){return e.applyTo==="entity"}function dj(e){return e.applyTo==="entityCollection"}function fj(e){return e.type==="entity"}function pj(e){return e.type==="entitysel"}function h1(e){return e.dataType==="array"}function g1(e){return e.dataType==="object"}function v1(e){return e.type==="scalar"}function hj(e){return h1(e)||g1(e)||v1(e)}const gj=e=>e!=null&&e.type==="entity",vj=e=>e.type==="entitysel",mj=e=>e.type==="array"||e.type==="scalar"&&e.dataType==="array",bj=e=>e.type==="object"||e.type==="scalar"&&e.dataType==="object",yj=e=>e.type==="scalar"&&e.dataType==="date",wj=(e,t)=>(e||"")===(t||"");function xj(){return new Promise((e,t)=>{window.addEventListener("bundle:ready",r=>r.data?e():t(r.caughtErr))})}function Sj(){return new Promise(e=>{window.addEventListener("i18n:ready",()=>e())})}const Ma="Qodly",m1="Location",b1="UserLanguage",y1="Title",yc={[Ma]:[{id:y1,dataType:"string",type:"scalar",namespace:Ma,initialValue:""},{id:m1,dataType:"object",type:"scalar",namespace:Ma,initialValue:{urlQuery:[],urlPath:{},Anchor:""},schema:{type:"object",properties:[{name:"urlQuery",type:"object",initialValue:{}},{name:"urlPath",type:"array",initialValue:[]},{name:"Anchor",type:"string",initialValue:""}]}},{id:b1,dataType:"object",type:"scalar",namespace:Ma,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 rs=(e=>(e.capable="capable",e.incapable="incapable",e.indifferent="indifferent",e))(rs||{}),w1=(e=>(e.soap="soap",e.web="web",e.sql="sql",e.rest="rest",e))(w1||{}),zp=(e=>(e.table="table",e.catalog="catalog",e.currentRecord="currentRecord",e.currentSelection="currentSelection",e))(zp||{});const _j={publishedSoap:"soap",publishedWeb:"web",publishedSql:"sql",publishedRest:"rest"};function Ej(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:rs.indifferent,publishedSoap:!1,publishedWsdl:!1,publishedWeb:!1,publishedSql:!1,publishedRest:!!r,publishedRestOptions:r||{table:"",scope:zp.table}},...n}}function x1(e){const t={};return e.invisible&&(t.invisible=!0),e.shared&&(t.shared=!0),e.executedOnServer&&(t.executedOnServer=!0),e.preemptive&&[rs.capable,rs.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 kj(e,t,r=!1){const n=ze.isString(t)?t:x1(t);if(!r&&S1(e))return e;const o=_1(e);return`//%attributes = ${n}\r
251
+ ${o}`}function S1(e){return/^\/\/%attributes.*(?:\r\n|\n)?/g.test(e)}function _1(e){return e.replace(/^\/\/%attributes.*(?:\r\n|\n)?/g,"")}const $f=()=>Pi.uuid().replaceAll("-","").toUpperCase();function Oj(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=$f()),u.attributes){const p=["storage","relatedEntity"];u.attributes=u.attributes.map(h=>p.includes(h.kind)&&!h.uuid?{...h,uuid:$f()}:h)}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 Aj=e=>e.toLowerCase().replace(/[^a-z0-9]/g,"_").replace(/_{2,}/g,"_").replace(/^_|_$/g,"");var Ke=(e=>(e.DATACLASS="dataclass",e.METHOD="method",e.ATTRIBUTE="attribute",e.DATASTORE="datastore",e.SINGLETON="singleton",e.SINGLETON_METHOD="singletonMethod",e))(Ke||{}),ot=(e=>(e.DS_METHOD="dsMethod",e.DATACLASS_METHOD="dataclassMethod",e.ENTITY_METHOD="entityMethod",e.ENTITY_SEL_METHOD="entityselMethod",e))(ot||{});const Tj=[Ke.DATASTORE,Ke.DATACLASS,Ke.ATTRIBUTE,Ke.SINGLETON_METHOD,Ke.SINGLETON,Ke.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD],P0=e=>[ot.DS_METHOD,ot.ENTITY_METHOD,ot.DATACLASS_METHOD].includes(e)?Ke.METHOD:e,wc="guest",jp=[{key:"read",label:"Read",canApplyTo:[Ke.DATASTORE,Ke.DATACLASS,Ke.ATTRIBUTE]},{key:"create",label:"Create",canApplyTo:[Ke.DATASTORE,Ke.DATACLASS,Ke.ATTRIBUTE]},{key:"update",label:"Update",canApplyTo:[Ke.DATASTORE,Ke.DATACLASS,Ke.ATTRIBUTE]},{key:"drop",label:"Delete",canApplyTo:[Ke.DATASTORE,Ke.DATACLASS,Ke.ATTRIBUTE]},{key:"execute",label:"Execute",canApplyTo:[Ke.DATASTORE,Ke.DATACLASS,Ke.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD,Ke.SINGLETON,Ke.SINGLETON_METHOD]},{key:"promote",label:"Promote",canApplyTo:[Ke.METHOD,ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD,Ke.SINGLETON_METHOD]}];function Nr(e,...t){return Array.from(new Set([...e,...t]))}function E1(e){const t={},r=new Map;e.forEach(u=>{const p=u.id||Pi.generate();t[p]={...u,id:p,parents:[],includes:Nr(u.includes||[]),resources:[]},r.set(u.privilege,p)}),Object.entries(t).forEach(([u,p])=>{const h=p.includes.map(f=>{const g=r.get(f);return g?(t[g].parents=Nr(t[g].parents,g),g):""}).filter(Boolean);t[u]={...p,includes:h}});const n=k1(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===wc))return t;const c=Pi.generate();return{[c]:{id:c,privilege:wc,includes:[],parents:[],resources:[]},...t}}function k1(e){return Object.values(e).sort((t,r)=>t.parents.length-r.parents.length)}function Hc(e,t){const r=t[e];let n=[];return r&&r.parents.forEach(o=>{n=Nr(n,...Hc(o,t),o)}),n}function xc(e,t){const r=t[e];let n=[];return r&&r.includes.forEach(o=>{n=Nr(n,...xc(o,t),o)}),n}function Rj(e,t){const r=t[e];if(!r)return[];const n=[e,...Hc(e,t),...r.includes];return Object.keys(t).filter(o=>!n.includes(o))}function Cj(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 Pj(e,t,r){const n=r[e],o=r[t];return!n||!o?r:{...r,[e]:{...r[e],includes:Nr(n.includes,t)},[t]:{...r[t],parents:Nr(o.parents,e)}}}function Ij(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 Nj(e,t){jc(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=Pi.generate();return{[r]:{id:r,privilege:e,includes:[],parents:[],resources:[]},...t}}function Dj(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 Mj(e,t){return e.map(r=>Pn(r,t))}function Pn(e,t){return t[e]?t[e]:null}function O1({applyTo:e,type:t,...r}){return Object.entries(r).reduce((n,[o,a])=>{const l=ze.find(jp,["key",o]);return!l||!l.canApplyTo.includes(t)||(typeof a=="string"?a.split(","):a).forEach(u=>{n[u]=Nr(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 Fp(e){return{permissions:jp.filter(({canApplyTo:t})=>t.includes(e.type)).map(({key:t,label:r})=>{const n={name:t,from:[]};switch(e.type){case Ke.DATASTORE:return{...n,info:I0(r,!0)};case Ke.DATACLASS:return{...n,info:I0(r)};default:return n}}),resource:e.applyTo,type:e.type}}function A1(e,t){const r=T1(t),n={};return e.filter(({type:o})=>Tj.includes(o)).forEach(o=>{const a=O1(o);Object.entries(a).forEach(([l,c])=>{var h;const u=(h=r[l])==null?void 0:h.id;if(!u)return;n[u]=n[u]||{...t[u]};let p=ze.find(n[u].resources,{resource:o.applyTo,type:o.type});p||(p=Fp(o),n[u].resources.push(p)),p.permissions=p.permissions.map(f=>({...f,checked:f.checked||c.includes(f.name)}))})}),{...t,...n}}function T1(e){return Object.values(e).reduce((t,r)=>({...t,[r.privilege]:r}),{})}function Lj(e){var r;if(!e)throw new Error("Invalid roles data");const t=E1(e.privileges||[]);return{forceLogin:(e==null?void 0:e.forceLogin)||!1,restrictedByDefault:(e==null?void 0:e.restrictedByDefault)||!1,privileges:A1(((r=e==null?void 0:e.permissions)==null?void 0:r.allowed)||[],t),roles:((e==null?void 0:e.roles)||[]).map(({id:n=Pi.generate(),role:o,privileges:a=[]})=>({id:n,role:o,privileges:Nr(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 $j(e){const t=Object.values(e.privileges).filter(({includes:n})=>n.length===0).map(({id:n})=>n),r=[...t,...t.map(n=>Hc(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=ze.find(n,{applyTo:l,type:P0(c)});u||(u={applyTo:l,type:P0(c)},n.push(u)),a.forEach(({name:p,checked:h})=>{h&&u&&(u[p]=u[p]||[],u[p].push(o.privilege))})}),n),[])},privileges:r.filter(({privilege:n})=>n!==wc).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 zj(e,t){const r=t[e],n={children:[],links:[],parents:[],selected:e};if(!r)return n;function o(c,u,p=[]){const h=c.reduce((f,g)=>[...f,...t[g][u]],[]);return h.length===0?p:(p.push(h),o(h,u,p))}function a(c){const u=[],p=[];for(let h=c.length-1;h>=0;h-=1){const f=c[h].filter(g=>u.includes(g)?!1:(u.push(g),!0));f.length>0&&p.unshift(Nr(f))}return p}function l(c,u){const p=[];return c.reduce((h,f)=>(f.forEach(g=>{t[g][u==="parents"?"includes":"parents"].forEach(S=>{p.includes(S)&&h.push(u==="parents"?{source:g,target:S}:{source:S,target:g})}),p.push(g)}),h),[])}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 jj(e,t,r){const n=Pn(e,r);if(!n||ze.find(n.resources,{resource:t.applyTo,type:t.type}))return r;const o={...n,resources:[...n.resources,Fp(t)]};return{...r,[e]:o}}function Fj(e,t,r){const n=Pn(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 Hj(e,t){const r=Object.entries(e).map(([n,o])=>{const a=Pn(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 Bj(e,t){const r=Pn(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 Wj(e,t,r,n){const o=Pn(e,n);if(!o)return n;const l=ze.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 Uj(e,t){var u;const r=R1(e,t)||[],n=((u=Pn(e,t))==null?void 0:u.resources)||[],l=([...r,...n].filter(({type:p})=>[ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD].includes(p))||[]).map(({resource:p})=>p);return Object.entries(t).reduce((p,[h,{resources:f}])=>(f.filter(({resource:g,type:b})=>[ot.DS_METHOD,ot.DATACLASS_METHOD,ot.ENTITY_METHOD,ot.ENTITY_SEL_METHOD].includes(b)&&l.includes(g)).forEach(({permissions:g,resource:b})=>{var v;((v=g.find(({name:y})=>y==="promote"))==null?void 0:v.checked)&&(p[b]=Nr(p[b]||[],h))}),p),{})}function R1(e,t){var l;const r=Pn(e,t);if(!r)return[];const n=(l=Object.values(t).find(c=>c.privilege===wc))==null?void 0:l.id;return(n&&n!==e?Nr(xc(e,t),n):xc(e,t)).reduce((c,u)=>(t[u].resources.forEach(h=>{if(h.permissions.filter(({checked:b,name:S})=>b&&S!=="promote").length===0)return;const g=ze.find(c,{type:h.type,resource:h.resource});if(!g){c.push({...h,permissions:h.permissions.map(b=>({...b,from:b.checked?[u]:[],checked:!1}))});return}g.permissions=g.permissions.map((b,S)=>{let{from:v=[]}=b;return h.permissions[S].checked&&!v.includes(u)&&(v=[...v,u]),{...b,from:v,checked:b.checked}})}),c),ze.clone(r.resources.map(c=>({...c,permissions:c.permissions.map(({checked:u,...p})=>({...p,checked:!!u}))}))))}const qj=(e,t,r)=>{const n={id:e,role:t,privileges:[]};return{...r,[n.id]:n}},Vj=(e,t)=>t[e]?Object.values(t).reduce((r,n)=>e===n.id||n.role===""?r:{...r,[n.id]:n},{}):t,Gj=(e,t)=>{if(jc(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 C1(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 P1(e,t){return t?e.filter(r=>r.seriousError===!0):[]}function Kj(e,t){const r=C1(e);return P1(r,t)}function Zj(e){const t=e.map(r=>typeof r.message=="string"?r.message:String(r));return t.length===0?[]:[{messages:t}]}const _t="/rest/$designer",hs="/rest/$designer-ext";function Yj(...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 zf 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 Ze(e,t){var o;bc.next({action:ts.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))&&bc.next({action:ts.EVENT_EMITED,payload:{eventName:"onsessionexpired"}}),a=new zf(e,r,l)}catch{a=new zf(e,r)}throw a.log(),a}return await r.json()}function Xj(e){return bc.next({action:ts.REQUEST_SENT}),e}var Jr={},zt={},N0;function ki(){if(N0)return zt;N0=1;var e=zt.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=zt.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()+`
252
+ `}t.prototype.toString=function(v){return this.errors.map(r).join("")},Object.defineProperty(t.prototype,"valid",{get:function(){return!this.errors.length}}),zt.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=zt.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=zt.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=zt.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"],zt.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=zt.makeSuffix=function(v){return v=v.toString(),!v.match(/[.\s\[\]]/)&&!v.match(/^[\d]/)?"."+v:v.match(/^\d+$/)?"["+v+"]":"["+JSON.stringify(v)+"]"};zt.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 h(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(h.bind(null,S,v,m))),m}zt.deepMerge=f,zt.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 g(S){return"/"+encodeURIComponent(S).replace(/~/g,"%7E")}zt.encodePath=function(v){return v.map(g).join("")},zt.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},zt.isSchema=function(v){return typeof v=="object"&&v||typeof v=="boolean"};var b=zt.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 zt}var of,D0;function Jj(){if(D0)return of;D0=1;var e=ki(),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,g,b,S){if(f===void 0)return null;var v=new t(f,g,b,S),y=Array.isArray(g.type)?g.type:[g.type];if(!y.some(this.testType.bind(this,f,g,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(h,f,g,b,S){var v=f.throwError,y=f.throwAll;f.throwError=!1,f.throwAll=!1;var m=this.validateSchema(h,S,f,g);return f.throwError=v,f.throwAll=y,!m.valid&&b instanceof Function&&b(m),m.valid}o.anyOf=function(f,g,b,S){if(f===void 0)return null;var v=new t(f,g,b,S),y=new t(f,g,b,S);if(!Array.isArray(g.anyOf))throw new r("anyOf must be an array");if(!g.anyOf.some(a.bind(this,f,b,S,function(w){y.importErrors(w)}))){var m=g.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,g,b,S){if(f===void 0)return null;if(!Array.isArray(g.allOf))throw new r("allOf must be an array");var v=new t(f,g,b,S),y=this;return g.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,g,b,S){if(f===void 0)return null;if(!Array.isArray(g.oneOf))throw new r("oneOf must be an array");var v=new t(f,g,b,S),y=new t(f,g,b,S),m=g.oneOf.filter(a.bind(this,f,b,S,function(x){y.importErrors(x)})).length,w=g.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,g,b,S){if(f===void 0)return null;if(!e.isSchema(g.if))throw new Error('Expected "if" keyword to be a schema');var v=a.call(this,f,b,S,null,g.if),y=new t(f,g,b,S),m;if(v){if(g.then===void 0)return;if(!e.isSchema(g.then))throw new Error('Expected "then" keyword to be a schema');m=this.validateSchema(f,g.then,b,S.makeChild(g.then)),y.importErrors(m)}else{if(g.else===void 0)return;if(!e.isSchema(g.else))throw new Error('Expected "else" keyword to be a schema');m=this.validateSchema(f,g.else,b,S.makeChild(g.else)),y.importErrors(m)}return y};function l(h,f){if(Object.hasOwnProperty.call(h,f))return h[f];if(f in h){for(;h=Object.getPrototypeOf(h);)if(Object.propertyIsEnumerable.call(h,f))return h[f]}}o.propertyNames=function(f,g,b,S){if(this.types.object(f)){var v=new t(f,g,b,S),y=g.propertyNames!==void 0?g.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,g,b,S){if(this.types.object(f)){var v=new t(f,g,b,S),y=g.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(h,f,g,b,S,v){if(this.types.object(h)&&!(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 g.preValidateProperty=="function"&&g.preValidateProperty(h,S,y,g,b);var m=this.validateSchema(h[S],y,g,b.makeChild(y,S));m.instance!==v.instance[S]&&(v.instance[S]=m.instance),v.importErrors(m)}}o.patternProperties=function(f,g,b,S){if(this.types.object(f)){var v=new t(f,g,b,S),y=g.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,g,b,S,m,v)}return v}},o.additionalProperties=function(f,g,b,S){if(this.types.object(f)){if(g.patternProperties)return null;var v=new t(f,g,b,S);for(var y in f)c.call(this,f,g,b,S,y,v);return v}},o.minProperties=function(f,g,b,S){if(this.types.object(f)){var v=new t(f,g,b,S),y=Object.keys(f);return y.length>=g.minProperties||v.addError({name:"minProperties",argument:g.minProperties,message:"does not meet minimum property length of "+g.minProperties}),v}},o.maxProperties=function(f,g,b,S){if(this.types.object(f)){var v=new t(f,g,b,S),y=Object.keys(f);return y.length<=g.maxProperties||v.addError({name:"maxProperties",argument:g.maxProperties,message:"does not meet maximum property length of "+g.maxProperties}),v}},o.items=function(f,g,b,S){var v=this;if(this.types.array(f)&&g.items!==void 0){var y=new t(f,g,b,S);return f.every(function(m,w){if(Array.isArray(g.items))var x=g.items[w]===void 0?g.additionalItems:g.items[w];else var x=g.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,g,b,S){var v=this;if(this.types.array(f)&&g.contains!==void 0){if(!e.isSchema(g.contains))throw new Error('Expected "contains" keyword to be a schema');var y=new t(f,g,b,S),m=f.some(function(w,x){var k=v.validateSchema(w,g.contains,b,S.makeChild(g.contains,x));return k.errors.length===0});return m===!1&&y.addError({name:"contains",argument:g.contains,message:"must contain an item matching given schema"}),y}},o.minimum=function(f,g,b,S){if(this.types.number(f)){var v=new t(f,g,b,S);return g.exclusiveMinimum&&g.exclusiveMinimum===!0?f>g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than "+g.minimum}):f>=g.minimum||v.addError({name:"minimum",argument:g.minimum,message:"must be greater than or equal to "+g.minimum}),v}},o.maximum=function(f,g,b,S){if(this.types.number(f)){var v=new t(f,g,b,S);return g.exclusiveMaximum&&g.exclusiveMaximum===!0?f<g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than "+g.maximum}):f<=g.maximum||v.addError({name:"maximum",argument:g.maximum,message:"must be less than or equal to "+g.maximum}),v}},o.exclusiveMinimum=function(f,g,b,S){if(typeof g.exclusiveMinimum!="boolean"&&this.types.number(f)){var v=new t(f,g,b,S),y=f>g.exclusiveMinimum;return y||v.addError({name:"exclusiveMinimum",argument:g.exclusiveMinimum,message:"must be strictly greater than "+g.exclusiveMinimum}),v}},o.exclusiveMaximum=function(f,g,b,S){if(typeof g.exclusiveMaximum!="boolean"&&this.types.number(f)){var v=new t(f,g,b,S),y=f<g.exclusiveMaximum;return y||v.addError({name:"exclusiveMaximum",argument:g.exclusiveMaximum,message:"must be strictly less than "+g.exclusiveMaximum}),v}};var u=function(f,g,b,S,v,y){if(this.types.number(f)){var m=g[v];if(m==0)throw new r(v+" cannot be zero");var w=new t(f,g,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,g,b,S){return u.call(this,f,g,b,S,"multipleOf","is not a multiple of (divisible by) ")},o.divisibleBy=function(f,g,b,S){return u.call(this,f,g,b,S,"divisibleBy","is not divisible by (multiple of) ")},o.required=function(f,g,b,S){var v=new t(f,g,b,S);return f===void 0&&g.required===!0?v.addError({name:"required",message:"is required"}):this.types.object(f)&&Array.isArray(g.required)&&g.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,g,b,S){if(this.types.string(f)){var v=new t(f,g,b,S),y=g.pattern;try{var m=new RegExp(y,"u")}catch{m=new RegExp(y)}return f.match(m)||v.addError({name:"pattern",argument:g.pattern,message:"does not match pattern "+JSON.stringify(g.pattern.toString())}),v}},o.format=function(f,g,b,S){if(f!==void 0){var v=new t(f,g,b,S);return!v.disableFormat&&!e.isFormat(f,g.format,this)&&v.addError({name:"format",argument:g.format,message:"does not conform to the "+JSON.stringify(g.format)+" format"}),v}},o.minLength=function(f,g,b,S){if(this.types.string(f)){var v=new t(f,g,b,S),y=f.match(/[\uDC00-\uDFFF]/g),m=f.length-(y?y.length:0);return m>=g.minLength||v.addError({name:"minLength",argument:g.minLength,message:"does not meet minimum length of "+g.minLength}),v}},o.maxLength=function(f,g,b,S){if(this.types.string(f)){var v=new t(f,g,b,S),y=f.match(/[\uDC00-\uDFFF]/g),m=f.length-(y?y.length:0);return m<=g.maxLength||v.addError({name:"maxLength",argument:g.maxLength,message:"does not meet maximum length of "+g.maxLength}),v}},o.minItems=function(f,g,b,S){if(this.types.array(f)){var v=new t(f,g,b,S);return f.length>=g.minItems||v.addError({name:"minItems",argument:g.minItems,message:"does not meet minimum length of "+g.minItems}),v}},o.maxItems=function(f,g,b,S){if(this.types.array(f)){var v=new t(f,g,b,S);return f.length<=g.maxItems||v.addError({name:"maxItems",argument:g.maxItems,message:"does not meet maximum length of "+g.maxItems}),v}};function p(h,f,g){var b,S=g.length;for(b=f+1,S;b<S;b++)if(e.deepCompareStrict(h,g[b]))return!1;return!0}return o.uniqueItems=function(f,g,b,S){if(g.uniqueItems===!0&&this.types.array(f)){var v=new t(f,g,b,S);return f.every(p)||v.addError({name:"uniqueItems",message:"contains duplicate item"}),v}},o.dependencies=function(f,g,b,S){if(this.types.object(f)){var v=new t(f,g,b,S);for(var y in g.dependencies)if(f[y]!==void 0){var m=g.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,g,b,S){if(f===void 0)return null;if(!Array.isArray(g.enum))throw new r("enum expects an array",g);var v=new t(f,g,b,S);return g.enum.some(e.deepCompareStrict.bind(null,f))||v.addError({name:"enum",argument:g.enum,message:"is not one of enum values: "+g.enum.map(String).join(",")}),v},o.const=function(f,g,b,S){if(f===void 0)return null;var v=new t(f,g,b,S);return e.deepCompareStrict(g.const,f)||v.addError({name:"const",argument:g.const,message:"does not exactly match expected constant: "+g.const}),v},o.not=o.disallow=function(f,g,b,S){var v=this;if(f===void 0)return null;var y=new t(f,g,b,S),m=g.not||g.disallow;return m?(Array.isArray(m)||(m=[m]),m.forEach(function(w){if(v.testType(f,g,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},of=n,of}var Ll={},M0;function jf(){if(M0)return Ll;M0=1;var e=ki();Ll.SchemaScanResult=t;function t(r,n){this.id=r,this.ref=n}return Ll.scan=function(n,o){function a(h,f){if(!f||typeof f!="object")return;if(f.$ref){let v=e.resolveUrl(h,f.$ref);p[v]=p[v]?p[v]+1:0;return}var g=f.$id||f.id;let b=e.resolveUrl(h,g);var S=g?b:h;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(h,f){if(Array.isArray(f))for(var g=0;g<f.length;g++)a(h+"/"+g,f[g])}function c(h,f){if(!(!f||typeof f!="object"))for(var g in f)a(h+"/"+g,f[g])}var u={},p={};return a(n,o),new t(u,p)},Ll}var af,L0;function Qj(){if(L0)return af;L0=1;var e=Jj(),t=ki(),r=jf().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(h),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(g,b){var S=this;if(!g)return null;var v=r(b||c,g),y=b||g.$id||g.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(g,b){if(Array.isArray(b))for(var S=0;S<b.length;S++)this.addSubSchema(g,b[S])},u.prototype.addSubSchemaObject=function(g,b){if(!(!b||typeof b!="object"))for(var S in b)this.addSubSchema(g,b[S])},u.prototype.setSchemas=function(g){this.schemas=g},u.prototype.getSchema=function(g){return this.schemas[g]},u.prototype.validate=function(g,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&&g===void 0){var E=new n(g,b,S,v);return E.addError("is required, but is undefined"),E}var E=this.validateSchema(g,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 g=typeof f=="string"?f:f.$ref;return typeof g=="string"?g:!1}u.prototype.validateSchema=function(g,b,S,v){var y=new n(g,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(g,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,g,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 L=S.rewrite.call(this,g,b,S,v);y.instance=L}return y},u.prototype.schemaTraverser=function(g,b){g.schema=t.deepMerge(g.schema,this.superResolve(b,g.ctx))},u.prototype.superResolve=function(g,b){var S=p(g);return S?this.resolve(g,S,b).subschema:g},u.prototype.resolve=function(g,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+">",g);var w=t.objectGetPath(S.schemas[m],y.substr(1));if(w===void 0)throw new a("no such schema "+y+" located in <"+m+">",g);return{subschema:w,switchSchema:b}},u.prototype.testType=function(g,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,g);if(y&&typeof y=="object"){var m=this.validateSchema(g,y,S,v);return m===void 0||!(m&&m.errors.length)}return!0}};var h=u.prototype.types={};return h.string=function(g){return typeof g=="string"},h.number=function(g){return typeof g=="number"&&isFinite(g)},h.integer=function(g){return typeof g=="number"&&g%1===0},h.boolean=function(g){return typeof g=="boolean"},h.array=function(g){return Array.isArray(g)},h.null=function(g){return g===null},h.date=function(g){return g instanceof Date},h.any=function(g){return!0},h.object=function(g){return g&&typeof g=="object"&&!Array.isArray(g)&&!(g instanceof Date)},af=u,af}var $0;function e3(){if($0)return Jr;$0=1;var e=Jr.Validator=Qj();return Jr.ValidatorResult=ki().ValidatorResult,Jr.ValidatorResultError=ki().ValidatorResultError,Jr.ValidationError=ki().ValidationError,Jr.SchemaError=ki().SchemaError,Jr.SchemaScanResult=jf().SchemaScanResult,Jr.scan=jf().scan,Jr.validate=function(t,r,n){var o=new e;return o.validate(t,r,n)},Jr}var t3=e3();const I1=(e,t,r)=>{const n=e instanceof RegExp?z0(e,r):e,o=t instanceof RegExp?z0(t,r):t,a=n!==null&&o!=null&&r3(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)}},z0=(e,t)=>{const r=t.match(e);return r?r[0]:null},r3=(e,t,r)=>{let n,o,a,l,c,u=r.indexOf(e),p=r.indexOf(t,u+1),h=u;if(u>=0&&p>0){if(e===t)return[u,p];for(n=[],a=r.length;h>=0&&!c;){if(h===u)n.push(h),u=r.indexOf(e,h+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,h+1);h=u<p&&u>=0?u:p}n.length&&l!==void 0&&(c=[a,l])}return c},N1="\0SLASH"+Math.random()+"\0",D1="\0OPEN"+Math.random()+"\0",Hp="\0CLOSE"+Math.random()+"\0",M1="\0COMMA"+Math.random()+"\0",L1="\0PERIOD"+Math.random()+"\0",n3=new RegExp(N1,"g"),i3=new RegExp(D1,"g"),o3=new RegExp(Hp,"g"),a3=new RegExp(M1,"g"),s3=new RegExp(L1,"g"),l3=/\\\\/g,c3=/\\{/g,u3=/\\}/g,d3=/\\,/g,f3=/\\./g;function sf(e){return isNaN(e)?e.charCodeAt(0):parseInt(e,10)}function p3(e){return e.replace(l3,N1).replace(c3,D1).replace(u3,Hp).replace(d3,M1).replace(f3,L1)}function h3(e){return e.replace(n3,"\\").replace(i3,"{").replace(o3,"}").replace(a3,",").replace(s3,".")}function $1(e){if(!e)return[""];const t=[],r=I1("{","}",e);if(!r)return e.split(",");const{pre:n,body:o,post:a}=r,l=n.split(",");l[l.length-1]+="{"+o+"}";const c=$1(a);return a.length&&(l[l.length-1]+=c.shift(),l.push.apply(l,c)),t.push.apply(t,l),t}function g3(e){return e?(e.slice(0,2)==="{}"&&(e="\\{\\}"+e.slice(2)),La(p3(e),!0).map(h3)):[]}function v3(e){return"{"+e+"}"}function m3(e){return/^-?0\d/.test(e)}function b3(e,t){return e<=t}function y3(e,t){return e>=t}function La(e,t){const r=[],n=I1("{","}",e);if(!n)return[e];const o=n.pre,a=n.post.length?La(n.post,!1):[""];if(/\$$/.test(n.pre))for(let l=0;l<a.length;l++){const c=o+"{"+n.body+"}"+a[l];r.push(c)}else{const l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),u=l||c,p=n.body.indexOf(",")>=0;if(!u&&!p)return n.post.match(/,(?!,).*\}/)?(e=n.pre+"{"+n.body+Hp+n.post,La(e)):[e];let h;if(u)h=n.body.split(/\.\./);else if(h=$1(n.body),h.length===1&&h[0]!==void 0&&(h=La(h[0],!1).map(v3),h.length===1))return a.map(g=>n.pre+h[0]+g);let f;if(u&&h[0]!==void 0&&h[1]!==void 0){const g=sf(h[0]),b=sf(h[1]),S=Math.max(h[0].length,h[1].length);let v=h.length===3&&h[2]!==void 0?Math.abs(sf(h[2])):1,y=b3;b<g&&(v*=-1,y=y3);const w=h.some(m3);f=[];for(let x=g;y(x,b);x+=v){let k;if(c)k=String.fromCharCode(x),k==="\\"&&(k="");else if(k=String(x),w){const E=S-k.length;if(E>0){const R=new Array(E+1).join("0");x<0?k="-"+R+k.slice(1):k=R+k}}f.push(k)}}else{f=[];for(let g=0;g<h.length;g++)f.push.apply(f,La(h[g],!1))}for(let g=0;g<f.length;g++)for(let b=0;b<a.length;b++){const S=o+f[g]+a[b];(!t||u||S)&&r.push(S)}}return r}const w3=1024*64,Sc=e=>{if(typeof e!="string")throw new TypeError("invalid pattern");if(e.length>w3)throw new TypeError("pattern is too long")},x3={"[: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]},Ra=e=>e.replace(/[[\]\\-]/g,"\\$&"),S3=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),j0=e=>e.join(""),_3=(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,h=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){h=a+1;break}if(l=!0,v==="\\"&&!u){u=!0,a++;continue}if(v==="["&&!u){for(const[y,[m,w,x]]of Object.entries(x3))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(Ra(f)+"-"+Ra(v)):v===f&&n.push(Ra(v)),f="",a++;continue}if(e.startsWith("-]",a+1)){n.push(Ra(v+"-")),a+=2;continue}if(e.startsWith("-",a+1)){f=v,a+=2;continue}n.push(Ra(v)),a++}if(h<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,h-r,!1]}const g="["+(p?"^":"")+j0(n)+"]",b="["+(p?"":"^")+j0(o)+"]";return[n.length&&o.length?"("+g+"|"+b+")":n.length?g:b,c,h-r,!0]},$a=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/\[([^\/\\])\]/g,"$1"):e.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),E3=new Set(["!","?","+","*","@"]),F0=e=>E3.has(e),k3="(?!(?:^|/)\\.\\.?(?:$|/))",$l="(?!\\.)",O3=new Set(["[","."]),A3=new Set(["..","."]),T3=new Set("().*{}+?[]^$\\!"),R3=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Bp="[^/]",H0=Bp+"*?",B0=Bp+"+?";var Tt,Pt,On,st,xt,Yn,Oi,Xn,tn,Ai,is,Mi,z1,ei,tc,Ff,j1;const Zt=class Zt{constructor(t,r,n={}){Wt(this,Mi);Ae(this,"type");Wt(this,Tt);Wt(this,Pt);Wt(this,On,!1);Wt(this,st,[]);Wt(this,xt);Wt(this,Yn);Wt(this,Oi);Wt(this,Xn,!1);Wt(this,tn);Wt(this,Ai);Wt(this,is,!1);this.type=t,t&&gt(this,Pt,!0),gt(this,xt,r),gt(this,Tt,he(this,xt)?he(he(this,xt),Tt):this),gt(this,tn,he(this,Tt)===this?n:he(he(this,Tt),tn)),gt(this,Oi,he(this,Tt)===this?[]:he(he(this,Tt),Oi)),t==="!"&&!he(he(this,Tt),Xn)&&he(this,Oi).push(this),gt(this,Yn,he(this,xt)?he(he(this,xt),st).length:0)}get hasMagic(){if(he(this,Pt)!==void 0)return he(this,Pt);for(const t of he(this,st))if(typeof t!="string"&&(t.type||t.hasMagic))return gt(this,Pt,!0);return he(this,Pt)}toString(){return he(this,Ai)!==void 0?he(this,Ai):this.type?gt(this,Ai,this.type+"("+he(this,st).map(t=>String(t)).join("|")+")"):gt(this,Ai,he(this,st).map(t=>String(t)).join(""))}push(...t){for(const r of t)if(r!==""){if(typeof r!="string"&&!(r instanceof Zt&&he(r,xt)===this))throw new Error("invalid part: "+r);he(this,st).push(r)}}toJSON(){var r;const t=this.type===null?he(this,st).slice().map(n=>typeof n=="string"?n:n.toJSON()):[this.type,...he(this,st).map(n=>n.toJSON())];return this.isStart()&&!this.type&&t.unshift([]),this.isEnd()&&(this===he(this,Tt)||he(he(this,Tt),Xn)&&((r=he(this,xt))==null?void 0:r.type)==="!")&&t.push({}),t}isStart(){var r;if(he(this,Tt)===this)return!0;if(!((r=he(this,xt))!=null&&r.isStart()))return!1;if(he(this,Yn)===0)return!0;const t=he(this,xt);for(let n=0;n<he(this,Yn);n++){const o=he(t,st)[n];if(!(o instanceof Zt&&o.type==="!"))return!1}return!0}isEnd(){var r,n,o;if(he(this,Tt)===this||((r=he(this,xt))==null?void 0:r.type)==="!")return!0;if(!((n=he(this,xt))!=null&&n.isEnd()))return!1;if(!this.type)return(o=he(this,xt))==null?void 0:o.isEnd();const t=he(this,xt)?he(he(this,xt),st).length:0;return he(this,Yn)===t-1}copyIn(t){typeof t=="string"?this.push(t):this.push(t.clone(this))}clone(t){const r=new Zt(this.type,t);for(const n of he(this,st))r.copyIn(n);return r}static fromGlob(t,r={}){var o;const n=new Zt(null,void 0,r);return We(o=Zt,ei,tc).call(o,t,n,0,r),n}toMMPattern(){if(this!==he(this,Tt))return he(this,Tt).toMMPattern();const t=this.toString(),[r,n,o,a]=this.toRegExpSource();if(!(o||he(this,Pt)||he(this,tn).nocase&&!he(this,tn).nocaseMagicOnly&&t.toUpperCase()!==t.toLowerCase()))return n;const c=(he(this,tn).nocase?"i":"")+(a?"u":"");return Object.assign(new RegExp(`^${r}$`,c),{_src:r,_glob:t})}get options(){return he(this,tn)}toRegExpSource(t){var u;const r=t??!!he(this,tn).dot;if(he(this,Tt)===this&&We(this,Mi,z1).call(this),!this.type){const p=this.isStart()&&this.isEnd(),h=he(this,st).map(S=>{var x;const[v,y,m,w]=typeof S=="string"?We(x=Zt,ei,j1).call(x,S,he(this,Pt),p):S.toRegExpSource(t);return gt(this,Pt,he(this,Pt)||m),gt(this,On,he(this,On)||w),v}).join("");let f="";if(this.isStart()&&typeof he(this,st)[0]=="string"&&!(he(this,st).length===1&&A3.has(he(this,st)[0]))){const v=O3,y=r&&v.has(h.charAt(0))||h.startsWith("\\.")&&v.has(h.charAt(2))||h.startsWith("\\.\\.")&&v.has(h.charAt(4)),m=!r&&!t&&v.has(h.charAt(0));f=y?k3:m?$l:""}let g="";return this.isEnd()&&he(he(this,Tt),Xn)&&((u=he(this,xt))==null?void 0:u.type)==="!"&&(g="(?:$|\\/)"),[f+h+g,$a(h),gt(this,Pt,!!he(this,Pt)),he(this,On)]}const n=this.type==="*"||this.type==="+",o=this.type==="!"?"(?:(?!(?:":"(?:";let a=We(this,Mi,Ff).call(this,r);if(this.isStart()&&this.isEnd()&&!a&&this.type!=="!"){const p=this.toString();return gt(this,st,[p]),this.type=null,gt(this,Pt,void 0),[p,$a(this.toString()),!1,!1]}let l=!n||t||r||!$l?"":We(this,Mi,Ff).call(this,!0);l===a&&(l=""),l&&(a=`(?:${a})(?:${l})*?`);let c="";if(this.type==="!"&&he(this,is))c=(this.isStart()&&!r?$l:"")+B0;else{const p=this.type==="!"?"))"+(this.isStart()&&!r&&!t?$l:"")+H0+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&l?")":this.type==="*"&&l?")?":`)${this.type}`;c=o+a+p}return[c,$a(a),gt(this,Pt,!!he(this,Pt)),he(this,On)]}};Tt=new WeakMap,Pt=new WeakMap,On=new WeakMap,st=new WeakMap,xt=new WeakMap,Yn=new WeakMap,Oi=new WeakMap,Xn=new WeakMap,tn=new WeakMap,Ai=new WeakMap,is=new WeakMap,Mi=new WeakSet,z1=function(){if(this!==he(this,Tt))throw new Error("should only call on root");if(he(this,Xn))return this;this.toString(),gt(this,Xn,!0);let t;for(;t=he(this,Oi).pop();){if(t.type!=="!")continue;let r=t,n=he(r,xt);for(;n;){for(let o=he(r,Yn)+1;!n.type&&o<he(n,st).length;o++)for(const a of he(t,st)){if(typeof a=="string")throw new Error("string part in extglob AST??");a.copyIn(he(n,st)[o])}r=n,n=he(r,xt)}}return this},ei=new WeakSet,tc=function(t,r,n,o){var b,S;let a=!1,l=!1,c=-1,u=!1;if(r.type===null){let v=n,y="";for(;v<t.length;){const m=t.charAt(v++);if(a||m==="\\"){a=!a,y+=m;continue}if(l){v===c+1?(m==="^"||m==="!")&&(u=!0):m==="]"&&!(v===c+2&&u)&&(l=!1),y+=m;continue}else if(m==="["){l=!0,c=v,u=!1,y+=m;continue}if(!o.noext&&F0(m)&&t.charAt(v)==="("){r.push(y),y="";const w=new Zt(m,r);v=We(b=Zt,ei,tc).call(b,t,w,v,o),r.push(w);continue}y+=m}return r.push(y),v}let p=n+1,h=new Zt(null,r);const f=[];let g="";for(;p<t.length;){const v=t.charAt(p++);if(a||v==="\\"){a=!a,g+=v;continue}if(l){p===c+1?(v==="^"||v==="!")&&(u=!0):v==="]"&&!(p===c+2&&u)&&(l=!1),g+=v;continue}else if(v==="["){l=!0,c=p,u=!1,g+=v;continue}if(F0(v)&&t.charAt(p)==="("){h.push(g),g="";const y=new Zt(v,h);h.push(y),p=We(S=Zt,ei,tc).call(S,t,y,p,o);continue}if(v==="|"){h.push(g),g="",f.push(h),h=new Zt(null,r);continue}if(v===")")return g===""&&he(r,st).length===0&&gt(r,is,!0),h.push(g),g="",r.push(...f,h),p;g+=v}return r.type=null,gt(r,Pt,void 0),gt(r,st,[t.substring(n-1)]),p},Ff=function(t){return he(this,st).map(r=>{if(typeof r=="string")throw new Error("string type in extglob ast??");const[n,o,a,l]=r.toRegExpSource(t);return gt(this,On,he(this,On)||l),n}).filter(r=>!(this.isStart()&&this.isEnd())||!!r).join("|")},j1=function(t,r,n=!1){let o=!1,a="",l=!1;for(let c=0;c<t.length;c++){const u=t.charAt(c);if(o){o=!1,a+=(T3.has(u)?"\\":"")+u;continue}if(u==="\\"){c===t.length-1?a+="\\\\":o=!0;continue}if(u==="["){const[p,h,f,g]=_3(t,c);if(f){a+=p,l=l||h,c+=f-1,r=r||g;continue}}if(u==="*"){n&&t==="*"?a+=B0:a+=H0,r=!0;continue}if(u==="?"){a+=Bp,r=!0;continue}a+=R3(u)}return[a,$a(t),!!r,l]},Wt(Zt,ei);let _c=Zt;const C3=(e,{windowsPathsNoEscape:t=!1}={})=>t?e.replace(/[?*()[\]]/g,"[$&]"):e.replace(/[?*()[\]\\]/g,"\\$&"),Ut=(e,t,r={})=>(Sc(t),!r.nocomment&&t.charAt(0)==="#"?!1:new Bc(t,r).match(e)),P3=/^\*+([^+@!?\*\[\(]*)$/,I3=e=>t=>!t.startsWith(".")&&t.endsWith(e),N3=e=>t=>t.endsWith(e),D3=e=>(e=e.toLowerCase(),t=>!t.startsWith(".")&&t.toLowerCase().endsWith(e)),M3=e=>(e=e.toLowerCase(),t=>t.toLowerCase().endsWith(e)),L3=/^\*+\.\*+$/,$3=e=>!e.startsWith(".")&&e.includes("."),z3=e=>e!=="."&&e!==".."&&e.includes("."),j3=/^\.\*+$/,F3=e=>e!=="."&&e!==".."&&e.startsWith("."),H3=/^\*+$/,B3=e=>e.length!==0&&!e.startsWith("."),W3=e=>e.length!==0&&e!=="."&&e!=="..",U3=/^\?+([^+@!?\*\[\(]*)?$/,q3=([e,t=""])=>{const r=F1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},V3=([e,t=""])=>{const r=H1([e]);return t?(t=t.toLowerCase(),n=>r(n)&&n.toLowerCase().endsWith(t)):r},G3=([e,t=""])=>{const r=H1([e]);return t?n=>r(n)&&n.endsWith(t):r},K3=([e,t=""])=>{const r=F1([e]);return t?n=>r(n)&&n.endsWith(t):r},F1=([e])=>{const t=e.length;return r=>r.length===t&&!r.startsWith(".")},H1=([e])=>{const t=e.length;return r=>r.length===t&&r!=="."&&r!==".."},B1=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",W0={win32:{sep:"\\"},posix:{sep:"/"}},Z3=B1==="win32"?W0.win32.sep:W0.posix.sep;Ut.sep=Z3;const Ar=Symbol("globstar **");Ut.GLOBSTAR=Ar;const Y3="[^/]",X3=Y3+"*?",J3="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Q3="(?:(?!(?:\\/|^)\\.).)*?",eF=(e,t={})=>r=>Ut(r,e,t);Ut.filter=eF;const Or=(e,t={})=>Object.assign({},e,t),tF=e=>{if(!e||typeof e!="object"||!Object.keys(e).length)return Ut;const t=Ut;return Object.assign((n,o,a={})=>t(n,o,Or(e,a)),{Minimatch:class extends t.Minimatch{constructor(o,a={}){super(o,Or(e,a))}static defaults(o){return t.defaults(Or(e,o)).Minimatch}},AST:class extends t.AST{constructor(o,a,l={}){super(o,a,Or(e,l))}static fromGlob(o,a={}){return t.AST.fromGlob(o,Or(e,a))}},unescape:(n,o={})=>t.unescape(n,Or(e,o)),escape:(n,o={})=>t.escape(n,Or(e,o)),filter:(n,o={})=>t.filter(n,Or(e,o)),defaults:n=>t.defaults(Or(e,n)),makeRe:(n,o={})=>t.makeRe(n,Or(e,o)),braceExpand:(n,o={})=>t.braceExpand(n,Or(e,o)),match:(n,o,a={})=>t.match(n,o,Or(e,a)),sep:t.sep,GLOBSTAR:Ar})};Ut.defaults=tF;const W1=(e,t={})=>(Sc(e),t.nobrace||!/\{(?:(?!\{).)*\}/.test(e)?[e]:g3(e));Ut.braceExpand=W1;const rF=(e,t={})=>new Bc(e,t).makeRe();Ut.makeRe=rF;const nF=(e,t,r={})=>{const n=new Bc(t,r);return e=e.filter(o=>n.match(o)),n.options.nonull&&!e.length&&e.push(t),e};Ut.match=nF;const U0=/[?*]|[+@!]\(.*?\)|\[|\]/,iF=e=>e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&");class Bc{constructor(t,r={}){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,"regexp");Sc(t),r=r||{},this.options=r,this.pattern=t,this.platform=r.platform||B1,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 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]==="?"||!U0.test(a[2]))&&!U0.test(a[3]),p=/^[a-z]:/i.test(a[0]);if(u)return[...a.slice(0,4),...a.slice(4).map(h=>this.parse(h))];if(p)return[a[0],...a.slice(1).map(h=>this.parse(h))]}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(let n=0;n<t.length;n++)for(let o=0;o<t[n].length;o++)t[n][o]==="**"&&(t[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!=="**"&&(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 h=n.slice(0);h[o]="**",t.push(h),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){const o=this.options;if(this.isWindows){const v=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),y=!v&&t[0]===""&&t[1]===""&&t[2]==="?"&&/^[a-z]:$/i.test(t[3]),m=typeof r[0]=="string"&&/^[a-z]:$/i.test(r[0]),w=!m&&r[0]===""&&r[1]===""&&r[2]==="?"&&typeof r[3]=="string"&&/^[a-z]:$/i.test(r[3]),x=y?3:v?0:void 0,k=w?3:m?0:void 0;if(typeof x=="number"&&typeof k=="number"){const[E,R]=[t[x],r[k]];E.toLowerCase()===R.toLowerCase()&&(r[k]=E,k>x?r=r.slice(k):x>k&&(t=t.slice(x)))}}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 l=0,c=0,u=t.length,p=r.length;l<u&&c<p;l++,c++){this.debug("matchOne loop");var h=r[c],f=t[l];if(this.debug(r,h,f),h===!1)return!1;if(h===Ar){this.debug("GLOBSTAR",[r,h,f]);var g=l,b=c+1;if(b===p){for(this.debug("** at the end");l<u;l++)if(t[l]==="."||t[l]===".."||!o.dot&&t[l].charAt(0)===".")return!1;return!0}for(;g<u;){var S=t[g];if(this.debug(`
253
+ globstar while`,t,g,r,b,S),this.matchOne(t.slice(g),r.slice(b),n))return this.debug("globstar found match!",g,u,S),!0;if(S==="."||S===".."||!o.dot&&S.charAt(0)==="."){this.debug("dot detected!",t,g,r,b);break}this.debug("globstar swallow a segment, and continue"),g++}return!!(n&&(this.debug(`
254
+ >>> no match, partial?`,t,g,r,b),g===u))}let v;if(typeof h=="string"?(v=f===h,this.debug("string match",h,f,v)):(v=h.test(f),this.debug("pattern match",h,f,v)),!v)return!1}if(l===u&&c===p)return!0;if(l===u)return n;if(c===p)return l===u-1&&t[l]==="";throw new Error("wtf?")}braceExpand(){return W1(this.pattern,this.options)}parse(t){Sc(t);const r=this.options;if(t==="**")return Ar;if(t==="")return"";let n,o=null;(n=t.match(H3))?o=r.dot?W3:B3:(n=t.match(P3))?o=(r.nocase?r.dot?M3:D3:r.dot?N3:I3)(n[1]):(n=t.match(U3))?o=(r.nocase?r.dot?V3:q3:r.dot?G3:K3)(n):(n=t.match(L3))?o=r.dot?z3:$3:(n=t.match(j3))&&(o=F3);const a=_c.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?X3:r.dot?J3:Q3,o=new Set(r.nocase?["i"]:[]);let a=t.map(u=>{const p=u.map(h=>{if(h instanceof RegExp)for(const f of h.flags.split(""))o.add(f);return typeof h=="string"?iF(h):h===Ar?Ar:h._src});return p.forEach((h,f)=>{const g=p[f+1],b=p[f-1];h!==Ar||b===Ar||(b===void 0?g!==void 0&&g!==Ar?p[f+1]="(?:\\/|"+n+"\\/)?"+g:p[f]=n:g===void 0?p[f-1]=b+"(?:\\/|"+n+")?":g!==Ar&&(p[f-1]=b+"(?:\\/|\\/"+n+"\\/)"+g,p[f+1]=Ar))}),p.filter(h=>h!==Ar).join("/")}).join("|");const[l,c]=t.length>1?["(?:",")"]:["",""];a="^"+l+a+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(let c=0;c<a.length;c++){const u=a[c];let p=o;if(n.matchBase&&u.length===1&&(p=[l]),this.matchOne(p,u,r))return n.flipNegate?!0:!this.negate}return n.flipNegate?!1:this.negate}static defaults(t){return Ut.defaults(t).Minimatch}}Ut.AST=_c;Ut.Minimatch=Bc;Ut.escape=C3;Ut.unescape=$a;const ns="/$shared",oF={"**/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 U1(e){const t=Object.entries(oF).find(([r])=>Ut(e,r));return t==null?void 0:t[1]}function Wc(e){var n;const t=(n=U1(e))==null?void 0:n.content;if(!t)return;const r=e.replace(`${ns}/`,"Shared/");Wp({name:r,content:t,asText:typeof t=="string"})}async function aF(){const e=["CustomComponents/manifest.json","shared_app_events.json","shared_css.json","saved_conditions.json","i18n.json"];for(const t of e)try{await Ze(`${ns}/${t}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch(r){q1(r)&&Wc(`${ns}/${t}`)}}function gs({path:e,createIfNotExists:t=!1}){const r=`${ns}/${e}`;return Ze(`${r}?t=${Date.now()}`,{method:"GET",headers:new Headers({"Content-Type":"application/json"})}).then(n=>{const o=U1(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 t3.Validator().validate(a,o.schema).valid)throw new Error("Invalid Schema");return a}).catch(n=>{if(q1(n)&&t){const o=sF(n,e);e1.next({message:o,kind:"warning"}),Wc(r)}throw n})}function q1(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 sF(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 lF(e){return Ze(hs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function cF(e){return Ze(hs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}const V1=()=>{const{host:e,protocol:t}=window.location,r=t==="https:";return{projectOpened:!1,remoteDebuggerMode:Dp.DISABLED,baseUrl:"",qodly:!0,urls:{renderer:"/$lib/renderer/",debugger:`ws${r?"s":""}://${e}/remoteDebugger`,lsp:`ws${r?"s":""}://${e}/LSP`},isRestActive:!0}};async function uF(){const{hostname:e,host:t,protocol:r}=window.location,n=r==="https:";try{const o=await Ze(_t,{method:"POST",body:JSON.stringify({verb:ni.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),V1()}}async function G1(e){return await Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function dF(...e){return(await Promise.all(e.map(n=>G1({root:n,verb:ni.GET_FOLDER})))).map(({children:n})=>n.map(({name:o,date:a,type:l})=>({name:o,type:l,date:a,path:`${l}/${o}`}))).flat()}function fF(e,t={}){const{sanitize:r=!0}=t;return Ze(`/rest/$getWebForm/${e}`,{method:"GET"}).then(n=>{if(!(n!=null&&n.components)||!r)return n;const o=new Map;return{...n,components:ze.entries(n.components).map(([a,l])=>{const c=a,{resolvedName:u}=l.type;if(u==="WebformLoader"){const p=Pi.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(h=>o.get(h)||h)),c.linkedNodes&&(c.linkedNodes=ze.entries(c.linkedNodes).reduce((h,[f,g])=>({...h,[f]:o.get(g)||g}),{})),(p=c.props)!=null&&p.events&&(c.props.events=c.props.events.map(h=>(h.type==="navigation"&&h.loader&&(h.loader=o.get(h.loader)||h.loader),h))),{...a,[l]:{...c,props:{...c.props,__originalID:u}}}},{})}})}function pF(e){return Ze(_t,{method:"POST",headers:new Headers({"Content-Type":"application/json"}),body:JSON.stringify(e)}).then(t=>({...t,content:[dt.METHOD,dt.CLASS].includes(t.type)?Fc(t.content):t.content}))}function hF(e){return e.type==="folder"?Ze(hs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}):Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function gF(e){return e.type==="folder"?(await Ze(hs,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted:(await Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}function vF(e){return Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function mF(e){return Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}async function bF(e){return(await Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})).deleted}async function yF(...e){return await Ze(_t,{method:"POST",body:JSON.stringify({verb:ni.GET_FILES_INFO,files:e}),headers:new Headers({"Content-Type":"application/json"})})}async function wF(e){const t=await Ze("/api/login",{method:"POST",body:JSON.stringify({accessKey:e}),headers:new Headers({"Content-Type":"application/json"})});return t.isLogged&&t.success}async function xF(){return await Ze("/rest/$catalog/$all?$metadata=full",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}async function SF(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 _F({name:e,path:t="",root:r="root",asText:n=!1}){return Ze(_t,{method:"POST",body:JSON.stringify({verb:"getFileContent",root:r,path:t,name:e,asText:n}),headers:new Headers({"Content-Type":"application/json"})})}async function EF(e={}){try{return{...await gs({path:"shared_datasources.json",...e}),...yc}}catch{return{...yc}}}async function kF(e={}){try{return await gs({path:"shared_app_events.json",...e})}catch{return[]}}async function OF(e={}){try{return await gs({path:"shared_css.json",...e})}catch{return{classes:[]}}}async function AF(e={}){try{return await gs({path:"saved_conditions.json",...e})}catch{return{conditions:[]}}}async function TF(){try{return await Ze("/rest/$info/privileges",{method:"GET",headers:new Headers({"Content-Type":"application/json"})})}catch{return{privileges:[]}}}async function RF(){try{return await(await fetch(`monaco_theme.json?t=${Date.now()}`)).json()}catch{return null}}const CF=Lp(),PF=async e=>{const t={verb:ni.SET_FILE_CONTENT,asText:!1,name:"shared_datasources.json",path:"",root:"shared",content:ze.omit(e,ze.keys(yc))};return CF(()=>Ze(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},IF=Lp(),NF=async e=>{const t={verb:ni.SET_FILE_CONTENT,asText:!1,name:"shared_app_events.json",path:"",root:"shared",content:e};return IF(()=>Ze(_t,{method:"POST",body:JSON.stringify(t),headers:new Headers({"Content-Type":"application/json"})}))},Wp=async e=>{const t=await Ze(_t,{method:"POST",body:JSON.stringify({...e,verb:ni.SET_FILE_CONTENT,root:Np.ROOT}),headers:new Headers({"Content-Type":"application/json"})}),r=Mp(`${e.path||"Sources"}/${e.name}`);return{...t,type:r,size:0}},DF=async e=>await Wp({name:"crafted_components.json",path:Qn.WEBFORMS,content:e});function MF(e){return Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function LF(e){return Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function $F(e){return Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function zF(e){return Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})}).then(t=>Array.isArray(t)?t:{...t,content:["4dm","4qm","4qs"].includes(t.ext)?Fc(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&&Wc(e.path),t})}function jF(e){return Ze(_t,{method:"POST",body:JSON.stringify(e),headers:new Headers({"Content-Type":"application/json"})})}function FF(e){const t=new RegExp(/^\((.+)(?=\))/gi).exec(e);return t!==null?t[1]:""}function HF(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 BF(e){const t=FF(e).split(/[;,]/g).filter(Boolean).map(o=>{const a=o.split(":")[0].trim(),l=o.split(":")[1].trim();return{name:a,type:l}}),r=HF(e),n=r?{name:r.split(":")[0].trim(),type:r.split(":")[1].trim()}:{name:"result",type:"Variable"};return{params:t,result:n}}async function WF(e,t){const n=e.split(".").pop();try{const o=await Ze(_t,{method:"POST",body:JSON.stringify({verb:"getFunctionContent",className:t,functionName:n}),headers:new Headers({"Content-Type":"application/json"})});o.content=Fc(o.content);const{params:a,result:l}=BF(o.parameters);return{...o,params:a,returns:l}}catch(o){return console.error(o),{className:t,functionName:n,filePath:e,content:"",params:[]}}}var K1=(e=>(e.STUDIO_LOADED="UA-1-0",e.WELCOME_TOUR_INIT="UA-1-3",e.WELCOME_TOUR_END="UA-1-4",e))(K1||{});function UF(e,t){fetch("/api/v1/activity",{body:JSON.stringify({AID:e,...t}),headers:{"Content-Type":"application/json"},method:"POST"}).catch(r=>{})}function qF(e){window.pagesense=window.pagesense||[],window.pagesense.push(["trackEvent",e])}var Z1=(e=>(e.LOCAL="local",e.SHARED="shared",e.THEME="theme",e))(Z1||{}),Y1=(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))(Y1||{}),X1=(e=>(e[e.METHOD=1]="METHOD",e[e.CLASS=10]="CLASS",e))(X1||{}),J1=(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))(J1||{}),Q1=(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))(Q1||{});const VF={transparent:{backgroundColor:"transparent"},black:{backgroundColor:"#4a4a4a",color:"white",padding:"3px 5px",borderRadius:5},grey:{backgroundColor:"#e8e8e8",color:"#262626",padding:"3px 5px",borderRadius:5}},GF={Code:{key:"editors:code",config:{language:"4d",theme:"fd-dark"}},WebForm:{key:"editors:webforms"}},eS=z.createContext(void 0),KF=z.memo(({children:e,isInsideStudio:t,isStandaloneEditor:r})=>{const n=z.useMemo(()=>({isInsideStudio:t,isStandaloneEditor:r}),[t,r]);return A.jsx(eS.Provider,{value:n,children:e})});function ZF(){const e=z.useContext(eS);return e===void 0?{isInsideStudio:!1,isStandaloneEditor:!1}:e}exports.API_PREFIX=_t;exports.AppLoader=n$;exports.BaseCheckboxIcon=$x;exports.Checkbox=$$;exports.DATASOURCE_THEMES=VF;exports.DatasourcesActions=Qx;exports.DebuggerActions=n1;exports.DefaultCheckboxIcon=zx;exports.DesignerRequestVerb=ni;exports.Dialog=jC;exports.DialogBody=oy;exports.EActivity=K1;exports.EDITOR=GF;exports.EIDENTIFIERS=J1;exports.EPermissionType=Ke;exports.ERROR_CODES=Q1;exports.ESetting=Y1;exports.ESubPermissionType=ot;exports.EWebFormStyleClassScope=Z1;exports.EXT_API_PREFIX=hs;exports.FileFolderType=dt;exports.FolderRootPath=Qn;exports.FolderRootType=Np;exports.HTTPError=zf;exports.HTTP_HANDLERS_TAB_PATH=a1;exports.IPreemptive=rs;exports.IPublished=w1;exports.IPublishedRestScope=zp;exports.IdentityProvider=oz;exports.Incase=Kl;exports.IndentLines=yy;exports.InvalidJsonError=F$;exports.LOCALIZATION_TAB_PATH=s1;exports.LOCATION_DATASOURCE_ID=m1;exports.LogoSVG=kx;exports.LspActions=r1;exports.MAX_FILE_NAME_LENGTH=Pp;exports.MODEL_TAB_PATH=Zz;exports.Modal=I$;exports.ModalCloseReason=vo;exports.ModalColor=wo;exports.ModalIcons=Rf;exports.ModalType=_p;exports.Mutex=l1;exports.NameError=Ip;exports.Overlay=iy;exports.PANEL_EXPANDED_HEIGHT=Ql;exports.PANEL_INITIAL_HEIGHT=Si;exports.PERMISSIONS=jp;exports.Panel=L$;exports.PopperTooltip=t$;exports.Portal=G0;exports.PublishOptions=_j;exports.QODLY_NAMESPACE=Ma;exports.ROLES_TAB_PATH=i1;exports.RemoteDebuggerMode=Dp;exports.SETTINGS_TAB_PATH=o1;exports.SHARED_API_PREFIX=ns;exports.SHARED_USER_NAMESPACE=yc;exports.SearchInput=j$;exports.SourceCodeDescriptor=X1;exports.StudioContextProvider=KF;exports.Switcher=wy;exports.TITLE_DATASOURCE_ID=y1;exports.TabEventsActions=t1;exports.Tip=dx;exports.TipsProvider=o5;exports.Toast=VP;exports.ToolbarIcon=z$;exports.Tooltip=e$;exports.Tree=ZD;exports.TreeIcon=gy;exports.TreeNode=Xf;exports.USER_LANGUAGE_DATASOURCE_ID=b1;exports.WebformActions=Jx;exports.WebformEventsActions=ts;exports.ZoomComponent=M$;exports.ZoomLevel=Lx;exports._isArrayDatasource=mj;exports._isObjectDatasource=bj;exports.actionsToPrivs=O1;exports.addAttributesToContent=kj;exports.addFolder=vF;exports.addPermission=jj;exports.addPrivilegeIn=Pj;exports.allowed=Rj;exports.by=c1;exports.byId=rj;exports.byPath=nj;exports.callServerSideParser=Xj;exports.checkUpdates=lF;exports.children=xc;exports.createFolder=MF;exports.createPrivilege=Nj;exports.createRole=qj;exports.datasourcesSubject=jz;exports.debuggerSubject=Wz;exports.dropFile=gF;exports.dropFolder=bF;exports.exists=ij;exports.extractWebformName=Jz;exports.filterBySeriousError=P1;exports.formatErrorsAsBulletToast=Zj;exports.generateUUID=$f;exports.getAppSettings=uF;exports.getCatalog=xF;exports.getDatasourceId=oj;exports.getDefaultAppSettings=V1;exports.getDictByName=T1;exports.getDisplayableFeedbackErrors=Kj;exports.getErrorListFromPayload=C1;exports.getFile=pF;exports.getFileContent=_F;exports.getFileExtentionFromType=Xz;exports.getFilenameAndTypeFromPath=Yz;exports.getFilenameFromType=Qz;exports.getFilesInfo=yF;exports.getFolder=G1;exports.getFolders=dF;exports.getFunctionContent=WF;exports.getGraphData=zj;exports.getInheritedResources=R1;exports.getMonacoTheme=RF;exports.getNodeInfo=zF;exports.getPrivilegeById=Pn;exports.getPromotions=Uj;exports.getResourceFromType=Fp;exports.getSavedConditions=AF;exports.getSharedAppEvents=kF;exports.getSharedCSS=OF;exports.getSharedDatasources=EF;exports.getSharedResource=gs;exports.getSupportedLanguages=SF;exports.getTypeFromExtension=Mp;exports.getUserPrivileges=TF;exports.getWebForm=fF;exports.hasAttributesString=S1;exports.http=Ze;exports.i18nSubject=qz;exports.initializeDefaultProjectFiles=aF;exports.installUpdates=cF;exports.isArrayDatasource=h1;exports.isDataClassMethod=cj;exports.isDataStoreMethod=lj;exports.isDateDatasource=yj;exports.isEntity=gj;exports.isEntityDatasource=fj;exports.isEntityMethod=uj;exports.isEntitySelection=vj;exports.isEntitySelectionDatasource=pj;exports.isEntitySelectionMethod=dj;exports.isObjectAttribute=aj;exports.isObjectDatasource=g1;exports.isRelatedAttribute=sj;exports.isRelatedEntitiesAttribute=f1;exports.isRelatedEntityAttribute=p1;exports.isSameNamespace=wj;exports.isScalarDatasource=v1;exports.isSimpleAttribute=d1;exports.isSimpleDatasource=hj;exports.loadDS=xj;exports.loadI18n=Sj;exports.localeCompare=u1;exports.log=UF;exports.login=wF;exports.lspSubject=Bz;exports.moveItem=$F;exports.outBy=ej;exports.outById=tj;exports.parents=Hc;exports.parseAttributes=Ej;exports.parseCatalog=Oj;exports.populateShallow=Mj;exports.queue=Lp;exports.removeAttributesString=_1;exports.removeItem=LF;exports.removeMultiplePermissions=Hj;exports.removePermission=Fj;exports.removePrivilege=Cj;exports.removePrivilegeFrom=Ij;exports.removeRole=Vj;exports.renameFile=hF;exports.renameFolder=mF;exports.renamePrivilege=Dj;exports.resetResources=Bj;exports.rolesToAPI=$j;exports.sanitizeContent=Fc;exports.sanitizeNameCY=Aj;exports.sanitizePermissions=A1;exports.sanitizePrivileges=E1;exports.sanitizeRoles=Lj;exports.saveContent=jF;exports.saveRole=Gj;exports.setCraftedComponents=DF;exports.setFileContent=Wp;exports.setSharedAppEvents=NF;exports.setSharedSources=PF;exports.sortPrivileges=k1;exports.splitDatasourceID=$p;exports.stringifyAttributes=x1;exports.tabEventsSubject=Hz;exports.tasksManagerSubject=Uz;exports.toastSubject=e1;exports.togglePermission=Wj;exports.trackEvent=qF;exports.transformDates=Yj;exports.tryCreateSharedResource=Wc;exports.uniquePush=Nr;exports.useDidMountEffect=H$;exports.useDoubleClick=cz;exports.useDsChangeRenderer=Oz;exports.useDsRendererAdapter=kz;exports.useEnhancedState=Ez;exports.useFeatureFlags=iz;exports.useForwardedRef=nz;exports.useHotkeys=Q$;exports.useIdentity=az;exports.useOutsideClick=ez;exports.usePrevious=tz;exports.useStateObject=sz;exports.useStateRef=rz;exports.useStudioContext=ZF;exports.useTip=ux;exports.validateName=jc;exports.validateServerSide=Vz;exports.validateValue=Gz;exports.webformEventsSubject=bc;exports.webformSubject=Fz;
208
255
  //# sourceMappingURL=index.cjs.js.map